CustomSlabsBasedOnQuantity
Type: schema
TypeScript Definition
typescript
CustomSlabsBasedOnQuantity: {{
/** @constant */
spending_criteria_type: "minimum-quantity";
products: {
product_id: string | null;
variant_id: string | null;
slabs: {
buy_quantity: number;
get_quantity: number;
/** @enum {unknown} */
condition: "greater-or-equal";
}[];
}[];
};
/**
* DateAttribute
* @description Attribute for date values
*/
}OpenAPI Schema
json
{
"title": "CustomSlabsBasedOnQuantity",
"type": "object",
"externalDocs": {
"url": "https://llm-docs.commercengine.io/storefront/schemas/CustomSlabsBasedOnQuantity",
"description": "API reference for the CustomSlabsBasedOnQuantity schema"
},
"required": [
"spending_criteria_type",
"products"
],
"properties": {
"spending_criteria_type": {
"type": "string",
"const": "minimum-quantity"
},
"products": {
"type": "array",
"items": {
"type": "object",
"required": [
"product_id",
"variant_id",
"slabs"
],
"properties": {
"product_id": {
"type": [
"string",
"null"
]
},
"variant_id": {
"type": [
"string",
"null"
]
},
"slabs": {
"type": "array",
"items": {
"type": "object",
"required": [
"buy_quantity",
"get_quantity",
"condition"
],
"properties": {
"buy_quantity": {
"type": "integer"
},
"get_quantity": {
"type": "integer"
},
"condition": {
"enum": [
"greater-or-equal"
]
}
}
}
}
}
}
}
}
}Auto-generated from OpenAPI spec and TypeScript definitions