commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
ShippingMethodDraft.php
1 <?php
2 
3 declare(strict_types=1);
10 
16 
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 }
setTaxCategory(?TaxCategoryResourceIdentifier $taxCategory)
setZoneRates(?ZoneRateDraftCollection $zoneRates)
setLocalizedDescription(?LocalizedString $localizedDescription)