@bigcommerce/checkout-sdk 1.302.0 → 1.304.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 +20 -0
- package/dist/checkout-button.js +1 -1
- package/dist/checkout-button.js.map +1 -1
- package/dist/checkout-button.umd.js +1 -1
- package/dist/checkout-button.umd.js.map +1 -1
- package/dist/checkout-sdk.d.ts +23 -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/dist/internal-mappers.d.ts +2 -0
- 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/Checkout.md +7 -0
- package/docs/interfaces/Order.md +7 -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.
|
|
@@ -2189,6 +2181,7 @@ declare interface Checkout {
|
|
|
2189
2181
|
createdTime: string;
|
|
2190
2182
|
updatedTime: string;
|
|
2191
2183
|
payments?: CheckoutPayment[];
|
|
2184
|
+
channelId: number;
|
|
2192
2185
|
}
|
|
2193
2186
|
|
|
2194
2187
|
declare class CheckoutButtonErrorSelector {
|
|
@@ -5874,6 +5867,7 @@ declare interface Order {
|
|
|
5874
5867
|
status: string;
|
|
5875
5868
|
taxes: Tax[];
|
|
5876
5869
|
taxTotal: number;
|
|
5870
|
+
channelId: number;
|
|
5877
5871
|
}
|
|
5878
5872
|
|
|
5879
5873
|
declare interface OrderConsignment {
|
|
@@ -5981,7 +5975,7 @@ declare interface PayPalInstrument extends BaseAccountInstrument {
|
|
|
5981
5975
|
method: 'paypal';
|
|
5982
5976
|
}
|
|
5983
5977
|
|
|
5984
|
-
declare type PaymentInitializeOptions = BasePaymentInitializeOptions & WithApplePayPaymentInitializeOptions;
|
|
5978
|
+
declare type PaymentInitializeOptions = BasePaymentInitializeOptions & WithAdyenV2PaymentInitializeOptions & WithAdyenV3PaymentInitializeOptions & WithApplePayPaymentInitializeOptions;
|
|
5985
5979
|
|
|
5986
5980
|
declare type PaymentInstrument = CardInstrument | AccountInstrument;
|
|
5987
5981
|
|
|
@@ -7518,6 +7512,22 @@ declare interface WithAccountCreation {
|
|
|
7518
7512
|
shouldCreateAccount?: boolean;
|
|
7519
7513
|
}
|
|
7520
7514
|
|
|
7515
|
+
declare interface WithAdyenV2PaymentInitializeOptions {
|
|
7516
|
+
/**
|
|
7517
|
+
* The options that are required to initialize the Apple Pay payment
|
|
7518
|
+
* method. They can be omitted unless you need to support Apple Pay.
|
|
7519
|
+
*/
|
|
7520
|
+
adyenv2?: AdyenV2PaymentInitializeOptions;
|
|
7521
|
+
}
|
|
7522
|
+
|
|
7523
|
+
declare interface WithAdyenV3PaymentInitializeOptions {
|
|
7524
|
+
/**
|
|
7525
|
+
* The options that are required to initialize the Apple Pay payment
|
|
7526
|
+
* method. They can be omitted unless you need to support Apple Pay.
|
|
7527
|
+
*/
|
|
7528
|
+
adyenv3?: AdyenV3PaymentInitializeOptions;
|
|
7529
|
+
}
|
|
7530
|
+
|
|
7521
7531
|
declare interface WithApplePayButtonInitializeOptions {
|
|
7522
7532
|
applepay?: ApplePayButtonInitializeOptions_2;
|
|
7523
7533
|
}
|