SbPublicApiCartPricing

snowbee.ecom.cart.SbPublicApiCartPricing

Cart totals over the priced lines

completerequired

False when at least one line has no pricing; the totals then exclude it

Exampletrue
currencyIsoCoderequired

ISO 4217 currency of every amount in the cart

Example"NOK"
grossAmountrequired

Gross amount of the cart, what the shopper pays before freight

  • Format: BigDecimal
  • Pattern: ^-?\d+(\.\d{1,2})?$
Example"598"
netAmountrequired
  • Format: BigDecimal
  • Pattern: ^-?\d+(\.\d{1,2})?$
Example"478.4"
vatAmountrequired
  • Format: BigDecimal
  • Pattern: ^-?\d+(\.\d{1,2})?$
Example"119.6"
View raw schema
{
  "type": "object",
  "description": "Cart totals over the priced lines",
  "properties": {
    "complete": {
      "type": "boolean",
      "description": "False when at least one line has no pricing; the totals then exclude it",
      "example": "true",
      "title": "Boolean"
    },
    "currencyIsoCode": {
      "type": "string",
      "description": "ISO 4217 currency of every amount in the cart",
      "example": "NOK",
      "title": "String"
    },
    "grossAmount": {
      "type": "string",
      "format": "BigDecimal",
      "description": "Gross amount of the cart, what the shopper pays before freight",
      "example": "598",
      "pattern": "^-?\\d+(\\.\\d{1,2})?$",
      "title": "BigDecimalAsString"
    },
    "netAmount": {
      "type": "string",
      "format": "BigDecimal",
      "example": "478.4",
      "pattern": "^-?\\d+(\\.\\d{1,2})?$",
      "title": "BigDecimalAsString"
    },
    "vatAmount": {
      "type": "string",
      "format": "BigDecimal",
      "example": "119.6",
      "pattern": "^-?\\d+(\\.\\d{1,2})?$",
      "title": "BigDecimalAsString"
    }
  },
  "required": [
    "complete",
    "currencyIsoCode",
    "grossAmount",
    "netAmount",
    "vatAmount"
  ],
  "title": "SbPublicApiCartPricing"
}