commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
ShippingMethod
ShippingMethod.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\ShippingMethod
;
10
11
use
Commercetools\Api\Models\Common\BaseResource
;
12
use
Commercetools\Api\Models\Common\CreatedBy
;
13
use
Commercetools\Api\Models\Common\LastModifiedBy
;
14
use
Commercetools\Api\Models\Common\LocalizedString
;
15
use
Commercetools\Api\Models\TaxCategory\TaxCategoryReference
;
16
use
Commercetools\Api\Models\Type\CustomFields
;
17
use
Commercetools\Base\DateTimeImmutableCollection
;
18
use
Commercetools\Base\JsonObject
;
19
use DateTimeImmutable;
20
21
interface
ShippingMethod
extends
BaseResource
22
{
23
public
const
FIELD_LAST_MODIFIED_BY
=
'lastModifiedBy'
;
24
public
const
FIELD_CREATED_BY
=
'createdBy'
;
25
public
const
FIELD_KEY
=
'key'
;
26
public
const
FIELD_NAME
=
'name'
;
27
public
const
FIELD_LOCALIZED_NAME
=
'localizedName'
;
28
public
const
FIELD_DESCRIPTION
=
'description'
;
29
public
const
FIELD_LOCALIZED_DESCRIPTION
=
'localizedDescription'
;
30
public
const
FIELD_TAX_CATEGORY
=
'taxCategory'
;
31
public
const
FIELD_ZONE_RATES
=
'zoneRates'
;
32
public
const
FIELD_ACTIVE
=
'active'
;
33
public
const
FIELD_IS_DEFAULT
=
'isDefault'
;
34
public
const
FIELD_PREDICATE
=
'predicate'
;
35
public
const
FIELD_CUSTOM
=
'custom'
;
36
43
public
function
getId
();
44
51
public
function
getVersion
();
52
59
public
function
getCreatedAt
();
60
67
public
function
getLastModifiedAt
();
68
75
public
function
getLastModifiedBy
();
76
83
public
function
getCreatedBy
();
84
91
public
function
getKey
();
92
99
public
function
getName
();
100
107
public
function
getLocalizedName
();
108
115
public
function
getDescription
();
116
123
public
function
getLocalizedDescription
();
124
131
public
function
getTaxCategory
();
132
139
public
function
getZoneRates
();
140
148
public
function
getActive
();
149
156
public
function
getIsDefault
();
157
164
public
function
getPredicate
();
165
172
public
function
getCustom
();
173
177
public
function
setId
(?
string
$id): void;
178
182
public
function
setVersion
(?
int
$version): void;
183
187
public
function
setCreatedAt
(?DateTimeImmutable $createdAt): void;
188
192
public
function
setLastModifiedAt
(?DateTimeImmutable $lastModifiedAt): void;
193
197
public
function
setLastModifiedBy
(?
LastModifiedBy
$lastModifiedBy): void;
198
202
public
function
setCreatedBy
(?
CreatedBy
$createdBy): void;
203
207
public
function
setKey
(?
string
$key): void;
208
212
public
function
setName
(?
string
$name): void;
213
217
public
function
setLocalizedName
(?
LocalizedString
$localizedName): void;
218
222
public
function
setDescription
(?
string
$description): void;
223
227
public
function
setLocalizedDescription
(?
LocalizedString
$localizedDescription): void;
228
232
public
function
setTaxCategory
(?
TaxCategoryReference
$taxCategory): void;
233
237
public
function
setZoneRates
(?
ZoneRateCollection
$zoneRates): void;
238
242
public
function
setActive
(?
bool
$active): void;
243
247
public
function
setIsDefault
(?
bool
$isDefault): void;
248
252
public
function
setPredicate
(?
string
$predicate): void;
253
257
public
function
setCustom
(?
CustomFields
$custom): void;
258
}
Commercetools\Api\Models\ShippingMethod\ZoneRateCollection
Definition:
ZoneRateCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Common\BaseResource
Definition:
BaseResource.php:249
Commercetools\Api\Models\Common\CreatedBy
Definition:
CreatedBy.php:16
Commercetools\Api\Models\Common\LastModifiedBy
Definition:
LastModifiedBy.php:16
Commercetools\Api\Models\Common\LocalizedString
Definition:
LocalizedString.php:14
Commercetools\Api\Models\ShippingMethod\ShippingMethod
Definition:
ShippingMethod.php:22
Commercetools\Api\Models\ShippingMethod\ShippingMethod\FIELD_PREDICATE
const FIELD_PREDICATE
Definition:
ShippingMethod.php:34
Commercetools\Api\Models\ShippingMethod\ShippingMethod\setLocalizedDescription
setLocalizedDescription(?LocalizedString $localizedDescription)
Commercetools\Api\Models\ShippingMethod\ShippingMethod\setId
setId(?string $id)
Commercetools\Api\Models\ShippingMethod\ShippingMethod\setLastModifiedAt
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
Commercetools\Api\Models\ShippingMethod\ShippingMethod\getLocalizedName
getLocalizedName()
Commercetools\Api\Models\ShippingMethod\ShippingMethod\getCustom
getCustom()
Commercetools\Api\Models\ShippingMethod\ShippingMethod\getCreatedBy
getCreatedBy()
Commercetools\Api\Models\ShippingMethod\ShippingMethod\getLocalizedDescription
getLocalizedDescription()
Commercetools\Api\Models\ShippingMethod\ShippingMethod\FIELD_NAME
const FIELD_NAME
Definition:
ShippingMethod.php:26
Commercetools\Api\Models\ShippingMethod\ShippingMethod\FIELD_TAX_CATEGORY
const FIELD_TAX_CATEGORY
Definition:
ShippingMethod.php:30
Commercetools\Api\Models\ShippingMethod\ShippingMethod\setTaxCategory
setTaxCategory(?TaxCategoryReference $taxCategory)
Commercetools\Api\Models\ShippingMethod\ShippingMethod\setName
setName(?string $name)
Commercetools\Api\Models\ShippingMethod\ShippingMethod\getDescription
getDescription()
Commercetools\Api\Models\ShippingMethod\ShippingMethod\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
ShippingMethod.php:35
Commercetools\Api\Models\ShippingMethod\ShippingMethod\setVersion
setVersion(?int $version)
Commercetools\Api\Models\ShippingMethod\ShippingMethod\FIELD_IS_DEFAULT
const FIELD_IS_DEFAULT
Definition:
ShippingMethod.php:33
Commercetools\Api\Models\ShippingMethod\ShippingMethod\getIsDefault
getIsDefault()
Commercetools\Api\Models\ShippingMethod\ShippingMethod\getId
getId()
Commercetools\Api\Models\ShippingMethod\ShippingMethod\setCreatedAt
setCreatedAt(?DateTimeImmutable $createdAt)
Commercetools\Api\Models\ShippingMethod\ShippingMethod\getCreatedAt
getCreatedAt()
Commercetools\Api\Models\ShippingMethod\ShippingMethod\getVersion
getVersion()
Commercetools\Api\Models\ShippingMethod\ShippingMethod\FIELD_CREATED_BY
const FIELD_CREATED_BY
Definition:
ShippingMethod.php:24
Commercetools\Api\Models\ShippingMethod\ShippingMethod\getTaxCategory
getTaxCategory()
Commercetools\Api\Models\ShippingMethod\ShippingMethod\FIELD_KEY
const FIELD_KEY
Definition:
ShippingMethod.php:25
Commercetools\Api\Models\ShippingMethod\ShippingMethod\FIELD_LAST_MODIFIED_BY
const FIELD_LAST_MODIFIED_BY
Definition:
ShippingMethod.php:23
Commercetools\Api\Models\ShippingMethod\ShippingMethod\FIELD_LOCALIZED_DESCRIPTION
const FIELD_LOCALIZED_DESCRIPTION
Definition:
ShippingMethod.php:29
Commercetools\Api\Models\ShippingMethod\ShippingMethod\getKey
getKey()
Commercetools\Api\Models\ShippingMethod\ShippingMethod\FIELD_DESCRIPTION
const FIELD_DESCRIPTION
Definition:
ShippingMethod.php:28
Commercetools\Api\Models\ShippingMethod\ShippingMethod\FIELD_ACTIVE
const FIELD_ACTIVE
Definition:
ShippingMethod.php:32
Commercetools\Api\Models\ShippingMethod\ShippingMethod\setPredicate
setPredicate(?string $predicate)
Commercetools\Api\Models\ShippingMethod\ShippingMethod\setActive
setActive(?bool $active)
Commercetools\Api\Models\ShippingMethod\ShippingMethod\setLocalizedName
setLocalizedName(?LocalizedString $localizedName)
Commercetools\Api\Models\ShippingMethod\ShippingMethod\getZoneRates
getZoneRates()
Commercetools\Api\Models\ShippingMethod\ShippingMethod\FIELD_ZONE_RATES
const FIELD_ZONE_RATES
Definition:
ShippingMethod.php:31
Commercetools\Api\Models\ShippingMethod\ShippingMethod\setZoneRates
setZoneRates(?ZoneRateCollection $zoneRates)
Commercetools\Api\Models\ShippingMethod\ShippingMethod\getActive
getActive()
Commercetools\Api\Models\ShippingMethod\ShippingMethod\getLastModifiedAt
getLastModifiedAt()
Commercetools\Api\Models\ShippingMethod\ShippingMethod\FIELD_LOCALIZED_NAME
const FIELD_LOCALIZED_NAME
Definition:
ShippingMethod.php:27
Commercetools\Api\Models\ShippingMethod\ShippingMethod\setDescription
setDescription(?string $description)
Commercetools\Api\Models\ShippingMethod\ShippingMethod\setCustom
setCustom(?CustomFields $custom)
Commercetools\Api\Models\ShippingMethod\ShippingMethod\setIsDefault
setIsDefault(?bool $isDefault)
Commercetools\Api\Models\ShippingMethod\ShippingMethod\setLastModifiedBy
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
Commercetools\Api\Models\ShippingMethod\ShippingMethod\getLastModifiedBy
getLastModifiedBy()
Commercetools\Api\Models\ShippingMethod\ShippingMethod\setCreatedBy
setCreatedBy(?CreatedBy $createdBy)
Commercetools\Api\Models\ShippingMethod\ShippingMethod\setKey
setKey(?string $key)
Commercetools\Api\Models\ShippingMethod\ShippingMethod\getName
getName()
Commercetools\Api\Models\ShippingMethod\ShippingMethod\getPredicate
getPredicate()
Commercetools\Api\Models\TaxCategory\TaxCategoryReference
Definition:
TaxCategoryReference.php:16
Commercetools\Api\Models\Type\CustomFields
Definition:
CustomFields.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\ShippingMethod
Definition:
CartClassificationTier.php:9
Generated by
1.9.1