Skip to content

Commit 37daf9d

Browse files
Update generated code (#2477)
Update generated code for v2102 and Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
1 parent f66f5a3 commit 37daf9d

5 files changed

Lines changed: 177 additions & 81 deletions

File tree

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
577fcb57736b925392ea563c0284df9002c75ac9
1+
3ccf295957c8cadc88e1463ea3ab4ec683a0314f

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2099
1+
v2102

types/PaymentIntentAmountDetailsLineItems.d.ts

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ declare module 'stripe' {
1717
object: 'payment_intent_amount_details_line_item';
1818

1919
/**
20-
* The amount an item was discounted for. Positive integer.
20+
* The discount applied on this line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0.
21+
*
22+
* This field is mutually exclusive with the `amount_details[discount_amount]` field.
2123
*/
2224
discount_amount: number | null;
2325

@@ -27,17 +29,19 @@ declare module 'stripe' {
2729
payment_method_options: PaymentIntentAmountDetailsLineItem.PaymentMethodOptions | null;
2830

2931
/**
30-
* Unique identifier of the product. At most 12 characters long.
32+
* The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long.
3133
*/
3234
product_code: string | null;
3335

3436
/**
35-
* Name of the product. At most 100 characters long.
37+
* The product name of the line item. Required for L3 rates. At most 1024 characters long.
38+
*
39+
* For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters.
3640
*/
3741
product_name: string;
3842

3943
/**
40-
* Number of items of the product. Positive integer.
44+
* The quantity of items. Required for L3 rates. An integer greater than 0.
4145
*/
4246
quantity: number;
4347

@@ -47,12 +51,12 @@ declare module 'stripe' {
4751
tax: PaymentIntentAmountDetailsLineItem.Tax | null;
4852

4953
/**
50-
* Cost of the product. Non-negative integer.
54+
* The unit cost of the line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
5155
*/
5256
unit_cost: number;
5357

5458
/**
55-
* A unit of measure for the line item, such as gallons, feet, meters, etc.
59+
* A unit of measure for the line item, such as gallons, feet, meters, etc. Required for L3 rates. At most 12 alphanumeric characters long.
5660
*/
5761
unit_of_measure: string | null;
5862
}
@@ -111,7 +115,9 @@ declare module 'stripe' {
111115

112116
interface Tax {
113117
/**
114-
* Total portion of the amount that is for tax.
118+
* The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0.
119+
*
120+
* This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
115121
*/
116122
total_tax_amount: number;
117123
}

types/PaymentIntents.d.ts

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,9 @@ declare module 'stripe' {
243243
namespace PaymentIntent {
244244
interface AmountDetails {
245245
/**
246-
* The total discount applied on the transaction.
246+
* The total discount applied on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0.
247+
*
248+
* This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
247249
*/
248250
discount_amount?: number;
249251

@@ -262,24 +264,26 @@ declare module 'stripe' {
262264
namespace AmountDetails {
263265
interface Shipping {
264266
/**
265-
* Portion of the amount that is for shipping.
267+
* If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than or equal to 0.
266268
*/
267269
amount: number | null;
268270

269271
/**
270-
* The postal code that represents the shipping source.
272+
* If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed.
271273
*/
272274
from_postal_code: string | null;
273275

274276
/**
275-
* The postal code that represents the shipping destination.
277+
* If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed.
276278
*/
277279
to_postal_code: string | null;
278280
}
279281

280282
interface Tax {
281283
/**
282-
* Total portion of the amount that is for tax.
284+
* The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0.
285+
*
286+
* This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
283287
*/
284288
total_tax_amount: number | null;
285289
}
@@ -1435,12 +1439,18 @@ declare module 'stripe' {
14351439

14361440
interface PaymentDetails {
14371441
/**
1438-
* Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
1442+
* A unique value to identify the customer. This field is available only for card payments.
1443+
*
1444+
* This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
14391445
*/
14401446
customer_reference: string | null;
14411447

14421448
/**
1443-
* A unique value assigned by the business to identify the transaction.
1449+
* A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
1450+
*
1451+
* Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.
1452+
*
1453+
* For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
14441454
*/
14451455
order_reference: string | null;
14461456
}

0 commit comments

Comments
 (0)