@stripe/stripe-js 1.42.0 → 1.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pure.esm.js +1 -1
- package/dist/pure.js +1 -1
- package/dist/stripe.esm.js +1 -1
- package/dist/stripe.js +1 -1
- package/package.json +1 -1
- package/types/stripe-js/elements/cart.d.ts +16 -0
- package/types/stripe-js/elements/payment-method-messaging.d.ts +2 -2
- package/types/stripe-js/payment-intents.d.ts +9 -9
package/dist/pure.esm.js
CHANGED
package/dist/pure.js
CHANGED
package/dist/stripe.esm.js
CHANGED
package/dist/stripe.js
CHANGED
package/package.json
CHANGED
|
@@ -111,16 +111,32 @@ export type StripeCartElement = StripeElementBase & {
|
|
|
111
111
|
| {
|
|
112
112
|
product: string;
|
|
113
113
|
price?: null;
|
|
114
|
+
item_details?: null;
|
|
114
115
|
quantity?: number | null;
|
|
115
116
|
}
|
|
116
117
|
| {
|
|
118
|
+
product?: null;
|
|
117
119
|
price: string;
|
|
120
|
+
item_details?: null;
|
|
121
|
+
quantity?: number | null;
|
|
122
|
+
}
|
|
123
|
+
| {
|
|
124
|
+
price?: null;
|
|
118
125
|
product?: null;
|
|
126
|
+
item_details: CartItemDetails;
|
|
119
127
|
quantity?: number | null;
|
|
120
128
|
}
|
|
121
129
|
): Promise<{error?: StripeError}>;
|
|
122
130
|
};
|
|
123
131
|
|
|
132
|
+
export type CartItemDetails = {
|
|
133
|
+
external_id: string;
|
|
134
|
+
name: string;
|
|
135
|
+
description?: string;
|
|
136
|
+
image?: string;
|
|
137
|
+
unit_amount: number;
|
|
138
|
+
};
|
|
139
|
+
|
|
124
140
|
export type CartDescriptor = 'cart' | 'bag' | 'basket';
|
|
125
141
|
|
|
126
142
|
export type CartShowOnAdd = 'never' | 'auto';
|
|
@@ -80,9 +80,9 @@ export interface StripePaymentMethodMessagingElementOptions {
|
|
|
80
80
|
| 'SE';
|
|
81
81
|
|
|
82
82
|
/**
|
|
83
|
-
* The
|
|
83
|
+
* The logo color to display in the message. Defaults to black
|
|
84
84
|
*/
|
|
85
|
-
|
|
85
|
+
logoColor?: 'black' | 'white' | 'color';
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
88
|
* The font size of the promotional message.
|
|
@@ -658,16 +658,16 @@ export interface ConfirmCustomerBalancePaymentData
|
|
|
658
658
|
funding_type?: 'bank_transfer';
|
|
659
659
|
bank_transfer?: {
|
|
660
660
|
type:
|
|
661
|
-
| '
|
|
662
|
-
| '
|
|
663
|
-
| '
|
|
664
|
-
| '
|
|
665
|
-
| '
|
|
666
|
-
| '
|
|
667
|
-
|
|
668
|
-
country: 'ES' | 'FR' | 'IE' | 'NL';
|
|
661
|
+
| 'eu_bank_transfer'
|
|
662
|
+
| 'gb_bank_transfer'
|
|
663
|
+
| 'id_bank_transfer'
|
|
664
|
+
| 'jp_bank_transfer'
|
|
665
|
+
| 'mx_bank_transfer'
|
|
666
|
+
| 'us_bank_transfer';
|
|
667
|
+
eu_bank_transfer?: {
|
|
668
|
+
country: 'DE' | 'ES' | 'FR' | 'IE' | 'NL';
|
|
669
669
|
};
|
|
670
|
-
|
|
670
|
+
id_bank_transfer?: {
|
|
671
671
|
bank: 'bni' | 'bca';
|
|
672
672
|
};
|
|
673
673
|
requested_address_types?: Array<
|