You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 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.
* 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.
31
33
*/
32
34
product_code: string|null;
33
35
34
36
/**
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.
36
40
*/
37
41
product_name: string;
38
42
39
43
/**
40
-
* Number of items of the product. Positive integer.
44
+
* The quantity of items. Required for L3 rates. An integer greater than 0.
41
45
*/
42
46
quantity: number;
43
47
@@ -47,12 +51,12 @@ declare module 'stripe' {
47
51
tax: PaymentIntentAmountDetailsLineItem.Tax|null;
48
52
49
53
/**
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.
51
55
*/
52
56
unit_cost: number;
53
57
54
58
/**
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.
56
60
*/
57
61
unit_of_measure: string|null;
58
62
}
@@ -111,7 +115,9 @@ declare module 'stripe' {
111
115
112
116
interfaceTax{
113
117
/**
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.
Copy file name to clipboardExpand all lines: types/PaymentIntents.d.ts
+17-7Lines changed: 17 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -243,7 +243,9 @@ declare module 'stripe' {
243
243
namespacePaymentIntent{
244
244
interfaceAmountDetails{
245
245
/**
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.
247
249
*/
248
250
discount_amount?: number;
249
251
@@ -262,24 +264,26 @@ declare module 'stripe' {
262
264
namespaceAmountDetails{
263
265
interfaceShipping{
264
266
/**
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.
266
268
*/
267
269
amount: number|null;
268
270
269
271
/**
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.
271
273
*/
272
274
from_postal_code: string|null;
273
275
274
276
/**
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.
276
278
*/
277
279
to_postal_code: string|null;
278
280
}
279
281
280
282
interfaceTax{
281
283
/**
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.
283
287
*/
284
288
total_tax_amount: number|null;
285
289
}
@@ -1435,12 +1439,18 @@ declare module 'stripe' {
1435
1439
1436
1440
interfacePaymentDetails{
1437
1441
/**
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.
1439
1445
*/
1440
1446
customer_reference: string|null;
1441
1447
1442
1448
/**
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.
0 commit comments