Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAPI Update #740

Merged
merged 1 commit into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
47 changes: 41 additions & 6 deletions embedded/openapi/spec3.beta.sdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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.",
Expand Down Expand Up @@ -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",
Expand All @@ -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.",
Expand Down Expand Up @@ -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",
Expand All @@ -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`.",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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.",
Expand Down Expand Up @@ -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",
Expand All @@ -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.",
Expand Down Expand Up @@ -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",
Expand All @@ -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.",
Expand Down
28 changes: 24 additions & 4 deletions embedded/openapi/spec3.json
Original file line number Diff line number Diff line change
Expand Up @@ -81266,6 +81266,10 @@
"discount": {
"maxLength": 5000,
"type": "string"
},
"promotion_code": {
"maxLength": 5000,
"type": "string"
}
},
"title": "discounts_data_param",
Expand All @@ -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.",
Expand Down Expand Up @@ -81646,6 +81650,10 @@
"discount": {
"maxLength": 5000,
"type": "string"
},
"promotion_code": {
"maxLength": 5000,
"type": "string"
}
},
"title": "discounts_data_param",
Expand All @@ -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.",
Expand Down Expand Up @@ -82286,6 +82294,10 @@
"discount": {
"maxLength": 5000,
"type": "string"
},
"promotion_code": {
"maxLength": 5000,
"type": "string"
}
},
"title": "discounts_data_param",
Expand All @@ -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`.",
Expand Down Expand Up @@ -85519,6 +85531,10 @@
"discount": {
"maxLength": 5000,
"type": "string"
},
"promotion_code": {
"maxLength": 5000,
"type": "string"
}
},
"title": "discounts_data_param",
Expand Down Expand Up @@ -86568,6 +86584,10 @@
"discount": {
"maxLength": 5000,
"type": "string"
},
"promotion_code": {
"maxLength": 5000,
"type": "string"
}
},
"title": "discounts_data_param",
Expand All @@ -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.",
Expand Down