Skip to content

CartBasedFulfillmentOption ​

Type: schema

TypeScript Definition ​

typescript
CartBasedFulfillmentOption: {{
            cart_id: string;
            /**
             * @description Omit or send null to use the cart's fulfillment type.
             * @enum {string|null}
             */
            fulfillment_type?: "delivery" | "collect-in-store" | null;
            warehouse_id?: string[];
            /**
             * @description Accepted for compatibility; does not change the available options.
             * @enum {string}
             */
            mode?: "SURFACE" | "AIR" | "ALL";
            /** @description Accepted for compatibility; does not filter the available options. */
            shipping_provider_id?: string;
        };
        /**
         * CartCouponEvent
         * @description Emitted when a coupon is applied to or removed from a cart. Removing a coupon when none is applied emits nothing.
         */
}

OpenAPI Schema ​

json
{
  "type": "object",
  "properties": {
    "cart_id": {
      "type": "string",
      "minLength": 1,
      "pattern": "\\S"
    },
    "fulfillment_type": {
      "description": "Omit or send null to use the cart's fulfillment type.",
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "delivery",
        "collect-in-store",
        null
      ]
    },
    "warehouse_id": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "pattern": "\\S"
      }
    },
    "mode": {
      "description": "Accepted for compatibility; does not change the available options.",
      "type": "string",
      "enum": [
        "SURFACE",
        "AIR",
        "ALL"
      ]
    },
    "shipping_provider_id": {
      "description": "Accepted for compatibility; does not filter the available options.",
      "type": "string",
      "minLength": 1,
      "pattern": "\\S"
    }
  },
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/admin-pos/schemas/CartBasedFulfillmentOption"
  },
  "required": [
    "cart_id"
  ],
  "title": "CartBasedFulfillmentOption"
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: