AutoScaleBasedOnQuantity
Type: schema
TypeScript Definition
typescript
AutoScaleBasedOnQuantity: {{
/** @constant */
spending_criteria_type: "minimum-quantity";
products: {
product_id: string | null;
variant_id: string | null;
/** @constant */
auto_scale: true;
slab: {
buy_quantity: number;
get_quantity: number;
/** @enum {unknown} */
condition: "greater-or-equal";
};
}[];
};
/**
* BankTransfer
* @description Bank transfer payment - IMPS, NEFT, RTGS
*/
}OpenAPI Schema
json
{
"title": "AutoScaleBasedOnQuantity",
"type": "object",
"externalDocs": {
"url": "https://llm-docs.commercengine.io/storefront/schemas/AutoScaleBasedOnQuantity",
"description": "API reference for the AutoScaleBasedOnQuantity 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",
"auto_scale",
"slab"
],
"properties": {
"product_id": {
"type": [
"string",
"null"
]
},
"variant_id": {
"type": [
"string",
"null"
]
},
"auto_scale": {
"type": "boolean",
"const": true
},
"slab": {
"type": "object",
"properties": {
"buy_quantity": {
"type": "integer"
},
"get_quantity": {
"type": "integer"
},
"condition": {
"enum": [
"greater-or-equal"
]
}
},
"required": [
"buy_quantity",
"get_quantity",
"condition"
]
}
}
}
}
}
}Auto-generated from OpenAPI spec and TypeScript definitions