Class ShippingInfoImportDraftImpl
java.lang.Object
com.commercetools.importapi.models.orders.ShippingInfoImportDraftImpl
- All Implemented Interfaces:
ShippingInfoImportDraft
,io.vrap.rmf.base.client.Draft<ShippingInfoImportDraft>
,io.vrap.rmf.base.client.ModelBase
public class ShippingInfoImportDraftImpl
extends Object
implements ShippingInfoImportDraft, io.vrap.rmf.base.client.ModelBase
Maps to an order's shippingInfo
property. This field is usually populated by the cart assosciated with the order, but when importing orders you must provide a draft representation as a part of the OrderImport.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Note that you can not add aDeliveryItem
on import, asLineItems
andCustomLineItems
are not yet referencable by anid
.getPrice()
References a shipping method by key.References a tax category by key.int
hashCode()
void
setDeliveries
(Delivery... deliveries) Note that you can not add aDeliveryItem
on import, asLineItems
andCustomLineItems
are not yet referencable by anid
.void
setDeliveries
(List<Delivery> deliveries) Note that you can not add aDeliveryItem
on import, asLineItems
andCustomLineItems
are not yet referencable by anid
.void
setDiscountedPrice
(DiscountedLineItemPriceDraft discountedPrice) set discountedPricevoid
setPrice
(TypedMoney price) set pricevoid
setShippingMethod
(ShippingMethodKeyReference shippingMethod) References a shipping method by key.void
setShippingMethodName
(String shippingMethodName) set shippingMethodNamevoid
setShippingMethodState
(ShippingMethodState shippingMethodState) set shippingMethodStatevoid
setShippingRate
(ShippingRateDraft shippingRate) set shippingRatevoid
setTaxCategory
(TaxCategoryKeyReference taxCategory) References a tax category by key.void
setTaxRate
(TaxRate taxRate) set taxRateMethods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.importapi.models.orders.ShippingInfoImportDraft
withShippingInfoImportDraft
-
Constructor Details
-
ShippingInfoImportDraftImpl
public ShippingInfoImportDraftImpl()create empty instance
-
-
Method Details
-
getShippingMethodName
- Specified by:
getShippingMethodName
in interfaceShippingInfoImportDraft
- Returns:
- shippingMethodName
-
getPrice
- Specified by:
getPrice
in interfaceShippingInfoImportDraft
- Returns:
- price
-
getShippingRate
- Specified by:
getShippingRate
in interfaceShippingInfoImportDraft
- Returns:
- shippingRate
-
getTaxRate
- Specified by:
getTaxRate
in interfaceShippingInfoImportDraft
- Returns:
- taxRate
-
getTaxCategory
References a tax category by key.
- Specified by:
getTaxCategory
in interfaceShippingInfoImportDraft
- Returns:
- taxCategory
-
getShippingMethod
References a shipping method by key.
- Specified by:
getShippingMethod
in interfaceShippingInfoImportDraft
- Returns:
- shippingMethod
-
getDeliveries
Note that you can not add a
DeliveryItem
on import, asLineItems
andCustomLineItems
are not yet referencable by anid
.- Specified by:
getDeliveries
in interfaceShippingInfoImportDraft
- Returns:
- deliveries
-
getDiscountedPrice
- Specified by:
getDiscountedPrice
in interfaceShippingInfoImportDraft
- Returns:
- discountedPrice
-
getShippingMethodState
- Specified by:
getShippingMethodState
in interfaceShippingInfoImportDraft
- Returns:
- shippingMethodState
-
setShippingMethodName
Description copied from interface:ShippingInfoImportDraft
set shippingMethodName- Specified by:
setShippingMethodName
in interfaceShippingInfoImportDraft
- Parameters:
shippingMethodName
- value to be set
-
setPrice
Description copied from interface:ShippingInfoImportDraft
set price- Specified by:
setPrice
in interfaceShippingInfoImportDraft
- Parameters:
price
- value to be set
-
setShippingRate
Description copied from interface:ShippingInfoImportDraft
set shippingRate- Specified by:
setShippingRate
in interfaceShippingInfoImportDraft
- Parameters:
shippingRate
- value to be set
-
setTaxRate
Description copied from interface:ShippingInfoImportDraft
set taxRate- Specified by:
setTaxRate
in interfaceShippingInfoImportDraft
- Parameters:
taxRate
- value to be set
-
setTaxCategory
Description copied from interface:ShippingInfoImportDraft
References a tax category by key.
- Specified by:
setTaxCategory
in interfaceShippingInfoImportDraft
- Parameters:
taxCategory
- value to be set
-
setShippingMethod
Description copied from interface:ShippingInfoImportDraft
References a shipping method by key.
- Specified by:
setShippingMethod
in interfaceShippingInfoImportDraft
- Parameters:
shippingMethod
- value to be set
-
setDeliveries
Description copied from interface:ShippingInfoImportDraft
Note that you can not add a
DeliveryItem
on import, asLineItems
andCustomLineItems
are not yet referencable by anid
.- Specified by:
setDeliveries
in interfaceShippingInfoImportDraft
- Parameters:
deliveries
- values to be set
-
setDeliveries
Description copied from interface:ShippingInfoImportDraft
Note that you can not add a
DeliveryItem
on import, asLineItems
andCustomLineItems
are not yet referencable by anid
.- Specified by:
setDeliveries
in interfaceShippingInfoImportDraft
- Parameters:
deliveries
- values to be set
-
setDiscountedPrice
Description copied from interface:ShippingInfoImportDraft
set discountedPrice- Specified by:
setDiscountedPrice
in interfaceShippingInfoImportDraft
- Parameters:
discountedPrice
- value to be set
-
setShippingMethodState
Description copied from interface:ShippingInfoImportDraft
set shippingMethodState- Specified by:
setShippingMethodState
in interfaceShippingInfoImportDraft
- Parameters:
shippingMethodState
- value to be set
-
equals
-
hashCode
-