Skip to content

ShippingCostCondition ​

Type: schema

TypeScript Definition ​

typescript
ShippingCostCondition: {{
            order_total: components["schemas"]["Comparison"];
        } | {
            /** @description e.g. ["air","surface"] */
            shipping_mode: string[];
        } | {
            /** @description e.g. ["dhl","fedex"] */
            providers: string[];
        };
        /** ShippingCostPolicy */
}

Component References ​

ReferenceResolves To
components["schemas"]["Comparison"]Comparison

OpenAPI Schema ​

json
{
  "title": "ShippingCostCondition",
  "type": "object",
  "oneOf": [
    {
      "additionalProperties": false,
      "title": "Order Total",
      "required": [
        "order_total"
      ],
      "properties": {
        "order_total": {
          "$ref": "#/components/schemas/Comparison"
        }
      }
    },
    {
      "additionalProperties": false,
      "title": "Shipping Mode",
      "required": [
        "shipping_mode"
      ],
      "properties": {
        "shipping_mode": {
          "description": "e.g. [\"air\",\"surface\"]",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    {
      "additionalProperties": false,
      "title": "Shipping Providers",
      "required": [
        "providers"
      ],
      "properties": {
        "providers": {
          "description": "e.g. [\"dhl\",\"fedex\"]",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  ]
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: