public class ShippingInfoImpl extends Object implements ShippingInfo, io.vrap.rmf.base.client.ModelBase
Constructor and Description |
---|
ShippingInfoImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<Delivery> |
getDeliveries()
Deliveries are compilations of information on how the articles are being delivered to the customers.
|
DiscountedLineItemPrice |
getDiscountedPrice() |
TypedMoney |
getPrice()
Determined based on the ShippingRate and its tiered prices, and either the sum of LineItem prices or the
shippingRateInput field. |
ShippingMethodReference |
getShippingMethod()
Not set if custom shipping method is used.
|
String |
getShippingMethodName() |
ShippingMethodState |
getShippingMethodState()
Indicates whether the ShippingMethod referenced in this ShippingInfo is allowed for the cart or not.
|
ShippingRate |
getShippingRate()
The shipping rate used to determine the price.
|
TaxCategoryReference |
getTaxCategory() |
TaxedItemPrice |
getTaxedPrice()
Set once the
taxRate is set. |
TaxRate |
getTaxRate()
Will be set automatically in the
Platform TaxMode once the shipping address is set is set. |
int |
hashCode() |
void |
setDeliveries(Delivery... deliveries) |
void |
setDeliveries(List<Delivery> deliveries) |
void |
setDiscountedPrice(DiscountedLineItemPrice discountedPrice) |
void |
setPrice(TypedMoney price) |
void |
setShippingMethod(ShippingMethodReference shippingMethod) |
void |
setShippingMethodName(String shippingMethodName) |
void |
setShippingMethodState(ShippingMethodState shippingMethodState) |
void |
setShippingRate(ShippingRate shippingRate) |
void |
setTaxCategory(TaxCategoryReference taxCategory) |
void |
setTaxedPrice(TaxedItemPrice taxedPrice) |
void |
setTaxRate(TaxRate taxRate) |
getClass, notify, notifyAll, toString, wait, wait, wait
builder, builder, of, of, withShippingInfo
public String getShippingMethodName()
getShippingMethodName
in interface ShippingInfo
public TypedMoney getPrice()
Determined based on the ShippingRate and its tiered prices, and either the sum of LineItem prices or the shippingRateInput
field.
getPrice
in interface ShippingInfo
public ShippingRate getShippingRate()
The shipping rate used to determine the price.
getShippingRate
in interface ShippingInfo
public TaxedItemPrice getTaxedPrice()
Set once the taxRate
is set.
getTaxedPrice
in interface ShippingInfo
public TaxRate getTaxRate()
Will be set automatically in the Platform
TaxMode once the shipping address is set is set.
For the External
tax mode the tax rate has to be set explicitly with the ExternalTaxRateDraft.
getTaxRate
in interface ShippingInfo
public TaxCategoryReference getTaxCategory()
getTaxCategory
in interface ShippingInfo
public ShippingMethodReference getShippingMethod()
Not set if custom shipping method is used.
getShippingMethod
in interface ShippingInfo
public List<Delivery> getDeliveries()
Deliveries are compilations of information on how the articles are being delivered to the customers.
getDeliveries
in interface ShippingInfo
public DiscountedLineItemPrice getDiscountedPrice()
getDiscountedPrice
in interface ShippingInfo
public ShippingMethodState getShippingMethodState()
Indicates whether the ShippingMethod referenced in this ShippingInfo is allowed for the cart or not.
getShippingMethodState
in interface ShippingInfo
public void setShippingMethodName(String shippingMethodName)
setShippingMethodName
in interface ShippingInfo
public void setPrice(TypedMoney price)
setPrice
in interface ShippingInfo
public void setShippingRate(ShippingRate shippingRate)
setShippingRate
in interface ShippingInfo
public void setTaxedPrice(TaxedItemPrice taxedPrice)
setTaxedPrice
in interface ShippingInfo
public void setTaxRate(TaxRate taxRate)
setTaxRate
in interface ShippingInfo
public void setTaxCategory(TaxCategoryReference taxCategory)
setTaxCategory
in interface ShippingInfo
public void setShippingMethod(ShippingMethodReference shippingMethod)
setShippingMethod
in interface ShippingInfo
public void setDeliveries(Delivery... deliveries)
setDeliveries
in interface ShippingInfo
public void setDeliveries(List<Delivery> deliveries)
setDeliveries
in interface ShippingInfo
public void setDiscountedPrice(DiscountedLineItemPrice discountedPrice)
setDiscountedPrice
in interface ShippingInfo
public void setShippingMethodState(ShippingMethodState shippingMethodState)
setShippingMethodState
in interface ShippingInfo