diff --git a/embedded/openapi/spec3.beta.sdk.json b/embedded/openapi/spec3.beta.sdk.json index 2c9f7cfc..57bcf2fd 100644 --- a/embedded/openapi/spec3.beta.sdk.json +++ b/embedded/openapi/spec3.beta.sdk.json @@ -102403,6 +102403,11 @@ ], "title": "discount_end", "type": "object" + }, + "promotion_code": { + "description": "ID of the promotion code to create a new discount for.", + "maxLength": 5000, + "type": "string" } }, "title": "discounts_data_param", @@ -102417,7 +102422,7 @@ "type": "string" } ], - "description": "The coupons to redeem into discounts for the invoice item or invoice line item." + "description": "The coupons and promotion codes to redeem into discounts for the invoice item or invoice line item." }, "expand": { "description": "Specifies which fields in the response should be expanded.", @@ -102852,6 +102857,11 @@ ], "title": "discount_end", "type": "object" + }, + "promotion_code": { + "description": "ID of the promotion code to create a new discount for.", + "maxLength": 5000, + "type": "string" } }, "title": "discounts_data_param", @@ -102866,7 +102876,7 @@ "type": "string" } ], - "description": "The coupons & existing discounts which apply to the invoice item or invoice line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts." + "description": "The coupons, promotion codes & existing discounts which apply to the invoice item or invoice line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts." }, "expand": { "description": "Specifies which fields in the response should be expanded.", @@ -103643,6 +103653,11 @@ ], "title": "discount_end", "type": "object" + }, + "promotion_code": { + "description": "ID of the promotion code to create a new discount for.", + "maxLength": 5000, + "type": "string" } }, "title": "discounts_data_param", @@ -103657,7 +103672,7 @@ "type": "string" } ], - "description": "The coupons to redeem into discounts for the invoice. If not specified, inherits the discount from the invoice's customer. Pass an empty string to avoid inheriting any discounts." + "description": "The coupons and promotion codes to redeem into discounts for the invoice. If not specified, inherits the discount from the invoice's customer. Pass an empty string to avoid inheriting any discounts." }, "due_date": { "description": "The date on which payment for this invoice is due. Valid only for invoices where `collection_method=send_invoice`.", @@ -114430,6 +114445,11 @@ ], "title": "discount_end", "type": "object" + }, + "promotion_code": { + "description": "ID of the promotion code to create a new discount for.", + "maxLength": 5000, + "type": "string" } }, "title": "discounts_data_param", @@ -115417,6 +115437,11 @@ ], "title": "discount_end", "type": "object" + }, + "promotion_code": { + "description": "ID of the promotion code to create a new discount for.", + "maxLength": 5000, + "type": "string" } }, "title": "discounts_data_param", @@ -115431,7 +115456,7 @@ "type": "string" } ], - "description": "The coupons & existing discounts which apply to the line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts." + "description": "The coupons, promotion codes & existing discounts which apply to the line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts." }, "invoice_item": { "description": "ID of an unassigned invoice item to assign to this invoice. If not provided, a new item will be created.", @@ -116163,6 +116188,11 @@ ], "title": "discount_end", "type": "object" + }, + "promotion_code": { + "description": "ID of the promotion code to create a new discount for.", + "maxLength": 5000, + "type": "string" } }, "title": "discounts_data_param", @@ -116177,7 +116207,7 @@ "type": "string" } ], - "description": "The coupons & existing discounts which apply to the line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts." + "description": "The coupons, promotion codes & existing discounts which apply to the line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts." }, "expand": { "description": "Specifies which fields in the response should be expanded.", @@ -117192,6 +117222,11 @@ ], "title": "discount_end", "type": "object" + }, + "promotion_code": { + "description": "ID of the promotion code to create a new discount for.", + "maxLength": 5000, + "type": "string" } }, "title": "discounts_data_param", @@ -117206,7 +117241,7 @@ "type": "string" } ], - "description": "The coupons & existing discounts which apply to the line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts." + "description": "The coupons, promotion codes & existing discounts which apply to the line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts." }, "id": { "description": "ID of an existing line item on the invoice.", diff --git a/embedded/openapi/spec3.json b/embedded/openapi/spec3.json index 9175fa11..c6f724b7 100644 --- a/embedded/openapi/spec3.json +++ b/embedded/openapi/spec3.json @@ -81266,6 +81266,10 @@ "discount": { "maxLength": 5000, "type": "string" + }, + "promotion_code": { + "maxLength": 5000, + "type": "string" } }, "title": "discounts_data_param", @@ -81280,7 +81284,7 @@ "type": "string" } ], - "description": "The coupons to redeem into discounts for the invoice item or invoice line item." + "description": "The coupons and promotion codes to redeem into discounts for the invoice item or invoice line item." }, "expand": { "description": "Specifies which fields in the response should be expanded.", @@ -81646,6 +81650,10 @@ "discount": { "maxLength": 5000, "type": "string" + }, + "promotion_code": { + "maxLength": 5000, + "type": "string" } }, "title": "discounts_data_param", @@ -81660,7 +81668,7 @@ "type": "string" } ], - "description": "The coupons & existing discounts which apply to the invoice item or invoice line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts." + "description": "The coupons, promotion codes & existing discounts which apply to the invoice item or invoice line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts." }, "expand": { "description": "Specifies which fields in the response should be expanded.", @@ -82286,6 +82294,10 @@ "discount": { "maxLength": 5000, "type": "string" + }, + "promotion_code": { + "maxLength": 5000, + "type": "string" } }, "title": "discounts_data_param", @@ -82300,7 +82312,7 @@ "type": "string" } ], - "description": "The coupons to redeem into discounts for the invoice. If not specified, inherits the discount from the invoice's customer. Pass an empty string to avoid inheriting any discounts." + "description": "The coupons and promotion codes to redeem into discounts for the invoice. If not specified, inherits the discount from the invoice's customer. Pass an empty string to avoid inheriting any discounts." }, "due_date": { "description": "The date on which payment for this invoice is due. Valid only for invoices where `collection_method=send_invoice`.", @@ -85519,6 +85531,10 @@ "discount": { "maxLength": 5000, "type": "string" + }, + "promotion_code": { + "maxLength": 5000, + "type": "string" } }, "title": "discounts_data_param", @@ -86568,6 +86584,10 @@ "discount": { "maxLength": 5000, "type": "string" + }, + "promotion_code": { + "maxLength": 5000, + "type": "string" } }, "title": "discounts_data_param", @@ -86582,7 +86602,7 @@ "type": "string" } ], - "description": "The coupons & existing discounts which apply to the line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts." + "description": "The coupons, promotion codes & existing discounts which apply to the line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts." }, "expand": { "description": "Specifies which fields in the response should be expanded.",