Package | Description |
---|---|
io.sphere.sdk.carts |
Provides model classes and builders for carts.
|
io.sphere.sdk.orders |
Provides model classes and builders for orders.
|
io.sphere.sdk.products |
Provides model classes and builders for products.
|
io.sphere.sdk.taxcategories |
Provides model classes and builders for tax categories.
|
Modifier and Type | Method and Description |
---|---|
TaxRate |
LineItem.getTaxRate() |
TaxRate |
CartShippingInfo.getTaxRate() |
TaxRate |
CustomLineItem.getTaxRate() |
Modifier and Type | Method and Description |
---|---|
TaxRate |
ShippingInfoImportDraft.getTaxRate() |
TaxRate |
CustomLineItemImportDraft.getTaxRate() |
TaxRate |
LineItemImportDraft.getTaxRate() |
TaxRate |
OrderShippingInfo.getTaxRate() |
TaxRate |
ShippingInfoImportDraftBuilder.getTaxRate() |
TaxRate |
ShippingInfoImportDraftDsl.getTaxRate() |
Modifier and Type | Method and Description |
---|---|
static OrderShippingInfo |
OrderShippingInfo.of(String shippingMethodName,
javax.money.MonetaryAmount price,
ShippingRate shippingRate,
TaxRate taxRate,
Reference<TaxCategory> taxCategory,
Reference<ShippingMethod> shippingMethod,
List<Delivery> deliveries)
Creates an
OrderShippingInfo for the OrderImportDraft . |
static ShippingInfoImportDraftBuilder |
ShippingInfoImportDraftBuilder.of(String shippingMethodName,
javax.money.MonetaryAmount price,
ShippingRate shippingRate,
TaxRate taxRate,
ResourceIdentifier<TaxCategory> taxCategory,
ResourceIdentifier<ShippingMethod> shippingMethod,
ShippingMethodState shippingMethodState,
List<Delivery> deliveries)
Creates a new object initialized with the given values.
|
static ShippingInfoImportDraftDsl |
ShippingInfoImportDraftDsl.of(String shippingMethodName,
javax.money.MonetaryAmount price,
ShippingRate shippingRate,
TaxRate taxRate,
ResourceIdentifier<TaxCategory> taxCategory,
ResourceIdentifier<ShippingMethod> shippingMethod,
ShippingMethodState shippingMethodState,
List<Delivery> deliveries)
Creates a new object initialized with the given values.
|
CustomLineItemImportDraftBuilder |
CustomLineItemImportDraftBuilder.taxRate(TaxRate taxRate) |
LineItemImportDraftBuilder |
LineItemImportDraftBuilder.taxRate(TaxRate taxRate) |
ShippingInfoImportDraftBuilder |
ShippingInfoImportDraftBuilder.taxRate(TaxRate taxRate)
Sets the
taxRate property of this builder. |
ShippingInfoImportDraftDsl |
ShippingInfoImportDraftDsl.withTaxRate(TaxRate taxRate) |
Modifier and Type | Method and Description |
---|---|
static javax.money.MonetaryAmount |
PriceUtils.calculateGrossPrice(javax.money.MonetaryAmount amount,
TaxRate taxRate)
Calculates the gross price of the given amount according to its tax rate.
|
static javax.money.MonetaryAmount |
PriceUtils.calculateNetPrice(javax.money.MonetaryAmount amount,
TaxRate taxRate)
Calculates the net price of the given amount according to its tax rate.
|
Modifier and Type | Method and Description |
---|---|
List<TaxRate> |
TaxCategory.getRates() |
default List<TaxRate> |
TaxCategory.getTaxRates()
Gets the tax rates.
|
Modifier and Type | Method and Description |
---|---|
static TaxRateDraftBuilder |
TaxRateDraftBuilder.of(TaxRate taxRate) |