VAT changes

VAT OMS contract changes

  1. CalculatedShoppingCart
    • SubTotalAmount removed (total - payment - shipping)
    • VatRate value => 21 => 0.21m
    • Added VatBreakdownItems collection
  2. CalculatedShoppingCartLine
    • Changed TotalFromPrice (decimal) to TotalAmountFrom (decimal?)
    • VatTotalAmount (decimal) (VAT applied to TotalAmount)
    • VatTotalAmountFrom (decimal?) (VAT applied to TotalAmountFrom)
    • VatRate value => 21 => 0.21m
  3. Order
    • SubTotalAmount removed (total - payment - shipping)
    • Added VatBreakdownItems collection
  4. Orderline
    • Quantity removed (single line orders, was leftover)
    • TotalAmount removed (Price == TotalAmount when there's no quantity)
    • VatRate value => 21 => 0.21m
    • PriceFrom (decimal?)
    • VatPrice (decimal) (VAT applied to Price)
    • VatPriceFrom (decimal?) (VAT applied to PriceFrom)
  5. VatBreakdownItem
    • BreakdownType (enum: total, payment & shipping)
    • Amount (decimal) => TotalAmount the breakdown is applied to
    • VatAmount (decimal) => Amount VAT for the breakdown type
    • VatRate (decimal) => VAT rate (f.e. 0.21m)

Example for VAT breakdown:

AmountBreakdownTypeVatAmountVatRate
2.95Payment0.510.21
1.82Shipment0.320.21
0.68Shipment0.060.09
44.67Total7.750.21
16.63Total1.380.09

VAT DMS contract changes

  1. Product
    • Price removed (ProductPricing should be used)
    • FromPrice removed (ProductPricing should be used)
    • BasePrice (decimal) added (f.e. Tweakwise feed)
  2. ProductPricing
    • PriceInclVat (decimal) => Price (decimal)
    • PriceFromInclVat (decimal) => PriceFrom (decimal?)
    • PriceFromExclVat removed
    • PriceExclVat removed
    • VatRate value => 21 => 0.21m
    • VatPrice (decimal) (VAT applied to price)
    • VatPriceFrom (decimal) (VAT applied to pricefrom)