Skip to content

Commit

Permalink
Update OpenAPI specification
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Apr 2, 2024
1 parent bf3cc30 commit dc96158
Show file tree
Hide file tree
Showing 6 changed files with 231 additions and 61 deletions.
47 changes: 41 additions & 6 deletions 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
85 changes: 64 additions & 21 deletions openapi/spec3.beta.sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92394,15 +92394,21 @@ paths:
- type
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
type: object
type: array
- enum:
- ''
type: string
description: >-
The coupons to redeem into discounts for the invoice item or
invoice line item.
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.
items:
Expand Down Expand Up @@ -92809,17 +92815,23 @@ paths:
- type
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
type: object
type: array
- enum:
- ''
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.
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.
items:
Expand Down Expand Up @@ -93530,17 +93542,23 @@ paths:
- type
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
type: object
type: array
- enum:
- ''
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.
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
Expand Down Expand Up @@ -104575,6 +104593,12 @@ paths:
- type
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
type: object
type: array
Expand Down Expand Up @@ -105519,17 +105543,23 @@ paths:
- type
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
type: object
type: array
- enum:
- ''
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.
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
Expand Down Expand Up @@ -106253,16 +106283,23 @@ paths:
- type
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
type: object
type: array
- enum:
- ''
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.
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.
items:
Expand Down Expand Up @@ -107191,17 +107228,23 @@ paths:
- type
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
type: object
type: array
- enum:
- ''
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.
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.
maxLength: 5000
Expand Down

0 comments on commit dc96158

Please sign in to comment.