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
{
"title": "CartBasedFulfillmentOption",
"type": "object",
"externalDocs": {
"url": "https://llm-docs.commercengine.io/storefront/schemas/CartBasedFulfillmentOption",
"description": "API reference for the CartBasedFulfillmentOption schema"
},
"required": [
"cart_id"
],
"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"
}
}
}Auto-generated from OpenAPI spec and TypeScript definitions