commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
ShippingMethod
ShippingMethodDraft.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\ShippingMethod
;
10
11
use
Commercetools\Api\Models\Common\LocalizedString
;
12
use
Commercetools\Api\Models\TaxCategory\TaxCategoryResourceIdentifier
;
13
use
Commercetools\Api\Models\Type\CustomFieldsDraft
;
14
use
Commercetools\Base\DateTimeImmutableCollection
;
15
use
Commercetools\Base\JsonObject
;
16
17
interface
ShippingMethodDraft
extends
JsonObject
18
{
19
public
const
FIELD_KEY
=
'key'
;
20
public
const
FIELD_NAME
=
'name'
;
21
public
const
FIELD_LOCALIZED_NAME
=
'localizedName'
;
22
public
const
FIELD_DESCRIPTION
=
'description'
;
23
public
const
FIELD_LOCALIZED_DESCRIPTION
=
'localizedDescription'
;
24
public
const
FIELD_TAX_CATEGORY
=
'taxCategory'
;
25
public
const
FIELD_ZONE_RATES
=
'zoneRates'
;
26
public
const
FIELD_ACTIVE
=
'active'
;
27
public
const
FIELD_IS_DEFAULT
=
'isDefault'
;
28
public
const
FIELD_PREDICATE
=
'predicate'
;
29
public
const
FIELD_CUSTOM
=
'custom'
;
30
37
public
function
getKey
();
38
45
public
function
getName
();
46
53
public
function
getLocalizedName
();
54
61
public
function
getDescription
();
62
69
public
function
getLocalizedDescription
();
70
77
public
function
getTaxCategory
();
78
85
public
function
getZoneRates
();
86
93
public
function
getActive
();
94
101
public
function
getIsDefault
();
102
109
public
function
getPredicate
();
110
117
public
function
getCustom
();
118
122
public
function
setKey
(?
string
$key): void;
123
127
public
function
setName
(?
string
$name): void;
128
132
public
function
setLocalizedName
(?
LocalizedString
$localizedName): void;
133
137
public
function
setDescription
(?
string
$description): void;
138
142
public
function
setLocalizedDescription
(?
LocalizedString
$localizedDescription): void;
143
147
public
function
setTaxCategory
(?
TaxCategoryResourceIdentifier
$taxCategory): void;
148
152
public
function
setZoneRates
(?
ZoneRateDraftCollection
$zoneRates): void;
153
157
public
function
setActive
(?
bool
$active): void;
158
162
public
function
setIsDefault
(?
bool
$isDefault): void;
163
167
public
function
setPredicate
(?
string
$predicate): void;
168
172
public
function
setCustom
(?
CustomFieldsDraft
$custom): void;
173
}
Commercetools\Api\Models\ShippingMethod\ZoneRateDraftCollection
Definition:
ZoneRateDraftCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Common\LocalizedString
Definition:
LocalizedString.php:14
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft
Definition:
ShippingMethodDraft.php:18
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
ShippingMethodDraft.php:29
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\setName
setName(?string $name)
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\setLocalizedName
setLocalizedName(?LocalizedString $localizedName)
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\FIELD_DESCRIPTION
const FIELD_DESCRIPTION
Definition:
ShippingMethodDraft.php:22
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\getDescription
getDescription()
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\getTaxCategory
getTaxCategory()
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\setTaxCategory
setTaxCategory(?TaxCategoryResourceIdentifier $taxCategory)
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\setActive
setActive(?bool $active)
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\FIELD_TAX_CATEGORY
const FIELD_TAX_CATEGORY
Definition:
ShippingMethodDraft.php:24
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\setZoneRates
setZoneRates(?ZoneRateDraftCollection $zoneRates)
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\FIELD_NAME
const FIELD_NAME
Definition:
ShippingMethodDraft.php:20
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\setPredicate
setPredicate(?string $predicate)
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\getZoneRates
getZoneRates()
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\getActive
getActive()
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\getCustom
getCustom()
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\FIELD_ACTIVE
const FIELD_ACTIVE
Definition:
ShippingMethodDraft.php:26
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\setLocalizedDescription
setLocalizedDescription(?LocalizedString $localizedDescription)
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\getPredicate
getPredicate()
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\FIELD_PREDICATE
const FIELD_PREDICATE
Definition:
ShippingMethodDraft.php:28
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\getLocalizedName
getLocalizedName()
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\FIELD_LOCALIZED_NAME
const FIELD_LOCALIZED_NAME
Definition:
ShippingMethodDraft.php:21
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\getLocalizedDescription
getLocalizedDescription()
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\FIELD_ZONE_RATES
const FIELD_ZONE_RATES
Definition:
ShippingMethodDraft.php:25
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\FIELD_KEY
const FIELD_KEY
Definition:
ShippingMethodDraft.php:19
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\getIsDefault
getIsDefault()
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\getKey
getKey()
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\setIsDefault
setIsDefault(?bool $isDefault)
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\FIELD_LOCALIZED_DESCRIPTION
const FIELD_LOCALIZED_DESCRIPTION
Definition:
ShippingMethodDraft.php:23
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\FIELD_IS_DEFAULT
const FIELD_IS_DEFAULT
Definition:
ShippingMethodDraft.php:27
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\setCustom
setCustom(?CustomFieldsDraft $custom)
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\setKey
setKey(?string $key)
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\getName
getName()
Commercetools\Api\Models\ShippingMethod\ShippingMethodDraft\setDescription
setDescription(?string $description)
Commercetools\Api\Models\TaxCategory\TaxCategoryResourceIdentifier
Definition:
TaxCategoryResourceIdentifier.php:16
Commercetools\Api\Models\Type\CustomFieldsDraft
Definition:
CustomFieldsDraft.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\ShippingMethod
Definition:
CartClassificationTier.php:9
Generated by
1.9.1