@bigcommerce/checkout-sdk 1.301.1 → 1.303.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/CHANGELOG.md +14 -0
- package/dist/checkout-button.js +1 -1
- package/dist/checkout-button.umd.js +1 -1
- package/dist/checkout-sdk.d.ts +27 -13
- package/dist/checkout-sdk.js +1 -1
- package/dist/checkout-sdk.js.map +1 -1
- package/dist/checkout-sdk.umd.js +1 -1
- package/dist/checkout-sdk.umd.js.map +1 -1
- package/docs/README.md +3 -1
- package/docs/interfaces/AdyenBaseCardComponentOptions_2.md +7 -0
- package/docs/interfaces/AdyenV3CreditCardComponentOptions.md +11 -0
- package/docs/interfaces/AdyenV3PaymentInitializeOptions.md +1 -1
- package/docs/interfaces/BasePaymentInitializeOptions.md +0 -20
- package/docs/interfaces/StripeUPEShippingInitializeOptions.md +20 -0
- package/docs/interfaces/WithAdyenV2PaymentInitializeOptions.md +18 -0
- package/docs/interfaces/WithAdyenV3PaymentInitializeOptions.md +18 -0
- package/package.json +1 -1
package/dist/checkout-sdk.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="applepayjs" />
|
|
2
|
+
import { Omit as Omit_2 } from '@bigcommerce/checkout-sdk/payment-integration-api';
|
|
2
3
|
import { RequestOptions as RequestOptions_2 } from '@bigcommerce/request-sender';
|
|
3
4
|
import { Response } from '@bigcommerce/request-sender';
|
|
4
5
|
import { Timeout } from '@bigcommerce/request-sender';
|
|
@@ -123,6 +124,7 @@ declare interface AdyenBaseCardComponentOptions_2 {
|
|
|
123
124
|
* for a list of supported properties.
|
|
124
125
|
*/
|
|
125
126
|
styles?: StyleOptions_2;
|
|
127
|
+
showBrandsUnderCardNumber?: boolean;
|
|
126
128
|
}
|
|
127
129
|
|
|
128
130
|
declare interface AdyenComponent {
|
|
@@ -365,7 +367,7 @@ declare interface AdyenV2PaymentInitializeOptions {
|
|
|
365
367
|
/**
|
|
366
368
|
* Optional. Overwriting the default options
|
|
367
369
|
*/
|
|
368
|
-
options?:
|
|
370
|
+
options?: Omit_2<AdyenCreditCardComponentOptions, 'onChange'> | AdyenIdealComponentOptions;
|
|
369
371
|
shouldShowNumberField?: boolean;
|
|
370
372
|
validateCardFields(validateState: AdyenV2ValidationState): void;
|
|
371
373
|
}
|
|
@@ -499,7 +501,7 @@ declare interface AdyenV3PaymentInitializeOptions {
|
|
|
499
501
|
/**
|
|
500
502
|
* Optional. Overwriting the default options
|
|
501
503
|
*/
|
|
502
|
-
options?:
|
|
504
|
+
options?: Omit_2<AdyenV3CreditCardComponentOptions, 'onChange'>;
|
|
503
505
|
shouldShowNumberField?: boolean;
|
|
504
506
|
validateCardFields(validateState: AdyenV3ValidationState): void;
|
|
505
507
|
}
|
|
@@ -1226,16 +1228,6 @@ declare interface BasePaymentInitializeOptions extends PaymentRequestOptions {
|
|
|
1226
1228
|
* consumption.
|
|
1227
1229
|
*/
|
|
1228
1230
|
creditCard?: CreditCardPaymentInitializeOptions;
|
|
1229
|
-
/**
|
|
1230
|
-
* The options that are required to initialize the AdyenV2 payment
|
|
1231
|
-
* method. They can be omitted unless you need to support AdyenV2.
|
|
1232
|
-
*/
|
|
1233
|
-
adyenv2?: AdyenV2PaymentInitializeOptions;
|
|
1234
|
-
/**
|
|
1235
|
-
* The options that are required to initialize the AdyenV3 payment
|
|
1236
|
-
* method. They can be omitted unless you need to support AdyenV3.
|
|
1237
|
-
*/
|
|
1238
|
-
adyenv3?: AdyenV3PaymentInitializeOptions;
|
|
1239
1231
|
/**
|
|
1240
1232
|
* The options that are required to initialize the Amazon Pay payment
|
|
1241
1233
|
* method. They can be omitted unless you need to support AmazonPay.
|
|
@@ -5981,7 +5973,7 @@ declare interface PayPalInstrument extends BaseAccountInstrument {
|
|
|
5981
5973
|
method: 'paypal';
|
|
5982
5974
|
}
|
|
5983
5975
|
|
|
5984
|
-
declare type PaymentInitializeOptions = BasePaymentInitializeOptions & WithApplePayPaymentInitializeOptions;
|
|
5976
|
+
declare type PaymentInitializeOptions = BasePaymentInitializeOptions & WithAdyenV2PaymentInitializeOptions & WithAdyenV3PaymentInitializeOptions & WithApplePayPaymentInitializeOptions;
|
|
5985
5977
|
|
|
5986
5978
|
declare type PaymentInstrument = CardInstrument | AccountInstrument;
|
|
5987
5979
|
|
|
@@ -7270,6 +7262,12 @@ declare interface StripeUPEShippingInitializeOptions {
|
|
|
7270
7262
|
getStyles?(): {
|
|
7271
7263
|
[key: string]: string;
|
|
7272
7264
|
};
|
|
7265
|
+
/**
|
|
7266
|
+
* get the state code needed for shipping stripe element
|
|
7267
|
+
* @param country
|
|
7268
|
+
* @param state
|
|
7269
|
+
*/
|
|
7270
|
+
getStripeState(country: string, state: string): string;
|
|
7273
7271
|
}
|
|
7274
7272
|
|
|
7275
7273
|
/**
|
|
@@ -7512,6 +7510,22 @@ declare interface WithAccountCreation {
|
|
|
7512
7510
|
shouldCreateAccount?: boolean;
|
|
7513
7511
|
}
|
|
7514
7512
|
|
|
7513
|
+
declare interface WithAdyenV2PaymentInitializeOptions {
|
|
7514
|
+
/**
|
|
7515
|
+
* The options that are required to initialize the Apple Pay payment
|
|
7516
|
+
* method. They can be omitted unless you need to support Apple Pay.
|
|
7517
|
+
*/
|
|
7518
|
+
adyenv2?: AdyenV2PaymentInitializeOptions;
|
|
7519
|
+
}
|
|
7520
|
+
|
|
7521
|
+
declare interface WithAdyenV3PaymentInitializeOptions {
|
|
7522
|
+
/**
|
|
7523
|
+
* The options that are required to initialize the Apple Pay payment
|
|
7524
|
+
* method. They can be omitted unless you need to support Apple Pay.
|
|
7525
|
+
*/
|
|
7526
|
+
adyenv3?: AdyenV3PaymentInitializeOptions;
|
|
7527
|
+
}
|
|
7528
|
+
|
|
7515
7529
|
declare interface WithApplePayButtonInitializeOptions {
|
|
7516
7530
|
applepay?: ApplePayButtonInitializeOptions_2;
|
|
7517
7531
|
}
|