UpdatePhysicalProductSubscription
Type: schema
TypeScript Definition
typescript
UpdatePhysicalProductSubscription: {{
/** @constant */
command: "update";
/** @enum {unknown} */
billing_frequency?: "monthly";
/** @default 1 */
billing_interval: number;
/** @description null means there is no limit on number of invoices generated. If specified, then subscription will be revoked automatically after billing limit is reached. */
billing_limit?: number | null;
/** @enum {unknown} */
shipping_frequency?: "monthly";
/** @default 1 */
shipping_interval: number;
/** @description null means there is no limit on number of deliveries completed. If specified, then subscription will be revoked automatically after shipping limit is reached. */
shipping_limit?: number | null;
} & components["schemas"]["SubscriptionBehaviour"] & {
invoice_items?: components["schemas"]["SubscriptionInvoiceItem"][];
};
/**
* UpiPayment
* @description UPI Payment
*/
}Component References
| Reference | Resolves To |
|---|---|
components["schemas"]["SubscriptionBehaviour"] | SubscriptionBehaviour |
components["schemas"]["SubscriptionInvoiceItem"] | SubscriptionInvoiceItem |
OpenAPI Schema
json
{
"title": "UpdatePhysicalProductSubscription",
"externalDocs": {
"url": "https://llm-docs.commercengine.io/storefront/schemas/UpdatePhysicalProductSubscription",
"description": "API reference for the UpdatePhysicalProductSubscription schema"
},
"allOf": [
{
"type": "object",
"required": [
"command"
],
"properties": {
"command": {
"type": "string",
"const": "update"
},
"billing_frequency": {
"enum": [
"monthly"
]
},
"billing_interval": {
"type": "integer",
"default": 1
},
"billing_limit": {
"description": "null means there is no limit on number of invoices generated. If specified, then subscription will be revoked automatically after billing limit is reached.",
"type": [
"integer",
"null"
]
},
"shipping_frequency": {
"enum": [
"monthly"
]
},
"shipping_interval": {
"type": "integer",
"default": 1
},
"shipping_limit": {
"description": "null means there is no limit on number of deliveries completed. If specified, then subscription will be revoked automatically after shipping limit is reached.",
"type": [
"integer",
"null"
]
}
}
},
{
"$ref": "#/components/schemas/SubscriptionBehaviour"
},
{
"type": "object",
"properties": {
"invoice_items": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SubscriptionInvoiceItem"
}
}
}
}
],
"x-tags": [
"Subscriptions"
]
}Auto-generated from OpenAPI spec and TypeScript definitions