Skip to content

Commit c2ecbed

Browse files
OpenAPI Update (#740)
Update OpenAPI for dc9615857c32bcea36b4ed88ab1e6291a71d649a Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
1 parent 7b12bb1 commit c2ecbed

File tree

2 files changed

+65
-10
lines changed

2 files changed

+65
-10
lines changed

embedded/openapi/spec3.beta.sdk.json

Lines changed: 41 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102403,6 +102403,11 @@
102403102403
],
102404102404
"title": "discount_end",
102405102405
"type": "object"
102406+
},
102407+
"promotion_code": {
102408+
"description": "ID of the promotion code to create a new discount for.",
102409+
"maxLength": 5000,
102410+
"type": "string"
102406102411
}
102407102412
},
102408102413
"title": "discounts_data_param",
@@ -102417,7 +102422,7 @@
102417102422
"type": "string"
102418102423
}
102419102424
],
102420-
"description": "The coupons to redeem into discounts for the invoice item or invoice line item."
102425+
"description": "The coupons and promotion codes to redeem into discounts for the invoice item or invoice line item."
102421102426
},
102422102427
"expand": {
102423102428
"description": "Specifies which fields in the response should be expanded.",
@@ -102852,6 +102857,11 @@
102852102857
],
102853102858
"title": "discount_end",
102854102859
"type": "object"
102860+
},
102861+
"promotion_code": {
102862+
"description": "ID of the promotion code to create a new discount for.",
102863+
"maxLength": 5000,
102864+
"type": "string"
102855102865
}
102856102866
},
102857102867
"title": "discounts_data_param",
@@ -102866,7 +102876,7 @@
102866102876
"type": "string"
102867102877
}
102868102878
],
102869-
"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."
102879+
"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."
102870102880
},
102871102881
"expand": {
102872102882
"description": "Specifies which fields in the response should be expanded.",
@@ -103643,6 +103653,11 @@
103643103653
],
103644103654
"title": "discount_end",
103645103655
"type": "object"
103656+
},
103657+
"promotion_code": {
103658+
"description": "ID of the promotion code to create a new discount for.",
103659+
"maxLength": 5000,
103660+
"type": "string"
103646103661
}
103647103662
},
103648103663
"title": "discounts_data_param",
@@ -103657,7 +103672,7 @@
103657103672
"type": "string"
103658103673
}
103659103674
],
103660-
"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."
103675+
"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."
103661103676
},
103662103677
"due_date": {
103663103678
"description": "The date on which payment for this invoice is due. Valid only for invoices where `collection_method=send_invoice`.",
@@ -114430,6 +114445,11 @@
114430114445
],
114431114446
"title": "discount_end",
114432114447
"type": "object"
114448+
},
114449+
"promotion_code": {
114450+
"description": "ID of the promotion code to create a new discount for.",
114451+
"maxLength": 5000,
114452+
"type": "string"
114433114453
}
114434114454
},
114435114455
"title": "discounts_data_param",
@@ -115417,6 +115437,11 @@
115417115437
],
115418115438
"title": "discount_end",
115419115439
"type": "object"
115440+
},
115441+
"promotion_code": {
115442+
"description": "ID of the promotion code to create a new discount for.",
115443+
"maxLength": 5000,
115444+
"type": "string"
115420115445
}
115421115446
},
115422115447
"title": "discounts_data_param",
@@ -115431,7 +115456,7 @@
115431115456
"type": "string"
115432115457
}
115433115458
],
115434-
"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."
115459+
"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."
115435115460
},
115436115461
"invoice_item": {
115437115462
"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 @@
116163116188
],
116164116189
"title": "discount_end",
116165116190
"type": "object"
116191+
},
116192+
"promotion_code": {
116193+
"description": "ID of the promotion code to create a new discount for.",
116194+
"maxLength": 5000,
116195+
"type": "string"
116166116196
}
116167116197
},
116168116198
"title": "discounts_data_param",
@@ -116177,7 +116207,7 @@
116177116207
"type": "string"
116178116208
}
116179116209
],
116180-
"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."
116210+
"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."
116181116211
},
116182116212
"expand": {
116183116213
"description": "Specifies which fields in the response should be expanded.",
@@ -117192,6 +117222,11 @@
117192117222
],
117193117223
"title": "discount_end",
117194117224
"type": "object"
117225+
},
117226+
"promotion_code": {
117227+
"description": "ID of the promotion code to create a new discount for.",
117228+
"maxLength": 5000,
117229+
"type": "string"
117195117230
}
117196117231
},
117197117232
"title": "discounts_data_param",
@@ -117206,7 +117241,7 @@
117206117241
"type": "string"
117207117242
}
117208117243
],
117209-
"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."
117244+
"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."
117210117245
},
117211117246
"id": {
117212117247
"description": "ID of an existing line item on the invoice.",

embedded/openapi/spec3.json

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81266,6 +81266,10 @@
8126681266
"discount": {
8126781267
"maxLength": 5000,
8126881268
"type": "string"
81269+
},
81270+
"promotion_code": {
81271+
"maxLength": 5000,
81272+
"type": "string"
8126981273
}
8127081274
},
8127181275
"title": "discounts_data_param",
@@ -81280,7 +81284,7 @@
8128081284
"type": "string"
8128181285
}
8128281286
],
81283-
"description": "The coupons to redeem into discounts for the invoice item or invoice line item."
81287+
"description": "The coupons and promotion codes to redeem into discounts for the invoice item or invoice line item."
8128481288
},
8128581289
"expand": {
8128681290
"description": "Specifies which fields in the response should be expanded.",
@@ -81646,6 +81650,10 @@
8164681650
"discount": {
8164781651
"maxLength": 5000,
8164881652
"type": "string"
81653+
},
81654+
"promotion_code": {
81655+
"maxLength": 5000,
81656+
"type": "string"
8164981657
}
8165081658
},
8165181659
"title": "discounts_data_param",
@@ -81660,7 +81668,7 @@
8166081668
"type": "string"
8166181669
}
8166281670
],
81663-
"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."
81671+
"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."
8166481672
},
8166581673
"expand": {
8166681674
"description": "Specifies which fields in the response should be expanded.",
@@ -82286,6 +82294,10 @@
8228682294
"discount": {
8228782295
"maxLength": 5000,
8228882296
"type": "string"
82297+
},
82298+
"promotion_code": {
82299+
"maxLength": 5000,
82300+
"type": "string"
8228982301
}
8229082302
},
8229182303
"title": "discounts_data_param",
@@ -82300,7 +82312,7 @@
8230082312
"type": "string"
8230182313
}
8230282314
],
82303-
"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."
82315+
"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."
8230482316
},
8230582317
"due_date": {
8230682318
"description": "The date on which payment for this invoice is due. Valid only for invoices where `collection_method=send_invoice`.",
@@ -85519,6 +85531,10 @@
8551985531
"discount": {
8552085532
"maxLength": 5000,
8552185533
"type": "string"
85534+
},
85535+
"promotion_code": {
85536+
"maxLength": 5000,
85537+
"type": "string"
8552285538
}
8552385539
},
8552485540
"title": "discounts_data_param",
@@ -86568,6 +86584,10 @@
8656886584
"discount": {
8656986585
"maxLength": 5000,
8657086586
"type": "string"
86587+
},
86588+
"promotion_code": {
86589+
"maxLength": 5000,
86590+
"type": "string"
8657186591
}
8657286592
},
8657386593
"title": "discounts_data_param",
@@ -86582,7 +86602,7 @@
8658286602
"type": "string"
8658386603
}
8658486604
],
86585-
"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."
86605+
"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."
8658686606
},
8658786607
"expand": {
8658886608
"description": "Specifies which fields in the response should be expanded.",

0 commit comments

Comments
 (0)