commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
lib
commercetools-api
src
Models
Me
MyCustomerRemoveAddressActionModel.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Me
;
10
11
use
Commercetools\Base\DateTimeImmutableCollection
;
12
use
Commercetools\Base\JsonObject
;
13
use
Commercetools\Base\JsonObjectModel
;
14
use
Commercetools\Base\MapperFactory
;
15
use stdClass;
16
20
final
class
MyCustomerRemoveAddressActionModel
extends
JsonObjectModel
implements
MyCustomerRemoveAddressAction
21
{
22
public
const
DISCRIMINATOR_VALUE
=
'removeAddress'
;
27
protected
$action
;
28
33
protected
$addressId
;
34
39
protected
$addressKey
;
40
41
45
public
function
__construct
(
46
?
string
$addressId
=
null
,
47
?
string
$addressKey
=
null
,
48
?
string
$action
=
null
49
) {
50
$this->addressId =
$addressId
;
51
$this->addressKey =
$addressKey
;
52
$this->action =
$action
??
self::DISCRIMINATOR_VALUE
;
53
}
54
59
public
function
getAction
()
60
{
61
if
(is_null($this->action)) {
63
$data = $this->
raw
(self::FIELD_ACTION);
64
if
(is_null($data)) {
65
return
null
;
66
}
67
$this->action = (string) $data;
68
}
69
70
return
$this->action
;
71
}
72
79
public
function
getAddressId
()
80
{
81
if
(is_null($this->addressId)) {
83
$data = $this->
raw
(self::FIELD_ADDRESS_ID);
84
if
(is_null($data)) {
85
return
null
;
86
}
87
$this->addressId = (string) $data;
88
}
89
90
return
$this->addressId
;
91
}
92
99
public
function
getAddressKey
()
100
{
101
if
(is_null($this->addressKey)) {
103
$data = $this->
raw
(self::FIELD_ADDRESS_KEY);
104
if
(is_null($data)) {
105
return
null
;
106
}
107
$this->addressKey = (string) $data;
108
}
109
110
return
$this->addressKey
;
111
}
112
113
117
public
function
setAddressId
(?
string
$addressId
): void
118
{
119
$this->addressId =
$addressId
;
120
}
121
125
public
function
setAddressKey
(?
string
$addressKey
): void
126
{
127
$this->addressKey =
$addressKey
;
128
}
129
}
Commercetools\Api\Models\Me\MyCustomerRemoveAddressActionModel
Definition
MyCustomerRemoveAddressActionModel.php:21
Commercetools\Api\Models\Me\MyCustomerRemoveAddressActionModel\getAddressKey
getAddressKey()
Definition
MyCustomerRemoveAddressActionModel.php:99
Commercetools\Api\Models\Me\MyCustomerRemoveAddressActionModel\$addressKey
$addressKey
Definition
MyCustomerRemoveAddressActionModel.php:39
Commercetools\Api\Models\Me\MyCustomerRemoveAddressActionModel\$addressId
$addressId
Definition
MyCustomerRemoveAddressActionModel.php:33
Commercetools\Api\Models\Me\MyCustomerRemoveAddressActionModel\setAddressKey
setAddressKey(?string $addressKey)
Definition
MyCustomerRemoveAddressActionModel.php:125
Commercetools\Api\Models\Me\MyCustomerRemoveAddressActionModel\getAction
getAction()
Definition
MyCustomerRemoveAddressActionModel.php:59
Commercetools\Api\Models\Me\MyCustomerRemoveAddressActionModel\DISCRIMINATOR_VALUE
const DISCRIMINATOR_VALUE
Definition
MyCustomerRemoveAddressActionModel.php:22
Commercetools\Api\Models\Me\MyCustomerRemoveAddressActionModel\getAddressId
getAddressId()
Definition
MyCustomerRemoveAddressActionModel.php:79
Commercetools\Api\Models\Me\MyCustomerRemoveAddressActionModel\$action
$action
Definition
MyCustomerRemoveAddressActionModel.php:27
Commercetools\Api\Models\Me\MyCustomerRemoveAddressActionModel\__construct
__construct(?string $addressId=null, ?string $addressKey=null, ?string $action=null)
Definition
MyCustomerRemoveAddressActionModel.php:45
Commercetools\Api\Models\Me\MyCustomerRemoveAddressActionModel\setAddressId
setAddressId(?string $addressId)
Definition
MyCustomerRemoveAddressActionModel.php:117
Commercetools\Base\BaseJsonObject\raw
raw(string $field)
Definition
BaseJsonObject.php:57
Commercetools\Base\DateTimeImmutableCollection
Definition
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition
MapperFactory.php:16
Commercetools\Api\Models\Me\MyCustomerRemoveAddressAction
Definition
MyCustomerRemoveAddressAction.php:15
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\Api\Models\Me
Definition
MyBusinessUnitAddAddressAction.php:9
Generated by
1.9.8