@bigcommerce/checkout-sdk 1.204.0 → 1.206.1
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 +29 -0
- package/dist/checkout-button.js +1 -1
- package/dist/checkout-button.js.map +1 -1
- package/dist/checkout-button.umd.js +5 -5
- package/dist/checkout-button.umd.js.map +1 -1
- package/dist/checkout-sdk.d.ts +16 -1
- package/dist/checkout-sdk.js +1 -1
- package/dist/checkout-sdk.js.map +1 -1
- package/dist/checkout-sdk.umd.js +7 -7
- package/dist/checkout-sdk.umd.js.map +1 -1
- package/dist/embedded-checkout.umd.js +5 -5
- package/dist/embedded-checkout.umd.js.map +1 -1
- package/dist/hosted-form.umd.js +2 -2
- package/dist/hosted-form.umd.js.map +1 -1
- package/dist/internal-mappers.umd.js +1 -1
- package/dist/internal-mappers.umd.js.map +1 -1
- package/docs/README.md +1 -0
- package/docs/interfaces/adyencomponent.md +17 -0
- package/docs/interfaces/adyencomponentevents.md +16 -0
- package/docs/interfaces/adyencreditcardcomponentoptions.md +18 -0
- package/docs/interfaces/adyenv2paymentinitializeoptions.md +25 -0
- package/docs/interfaces/cardpaymentmethodstate.md +3 -3
- package/docs/interfaces/cardstate.md +14 -0
- package/docs/interfaces/cardstateerrors.md +11 -0
- package/package.json +1 -1
package/dist/checkout-sdk.d.ts
CHANGED
|
@@ -68,6 +68,10 @@ declare interface AdyenBaseCardComponentOptions {
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
declare interface AdyenComponent {
|
|
71
|
+
componentRef?: {
|
|
72
|
+
showValidation(): void;
|
|
73
|
+
};
|
|
74
|
+
state?: CardState;
|
|
71
75
|
mount(containerId: string): HTMLElement;
|
|
72
76
|
unmount(): void;
|
|
73
77
|
}
|
|
@@ -83,6 +87,7 @@ declare interface AdyenComponentEvents {
|
|
|
83
87
|
* incomplete field. Called again when errors are cleared.
|
|
84
88
|
*/
|
|
85
89
|
onError?(state: AdyenComponentState, component: AdyenComponent): void;
|
|
90
|
+
onFieldValid?(state: AdyenComponentState, component: AdyenComponent): void;
|
|
86
91
|
}
|
|
87
92
|
|
|
88
93
|
declare type AdyenComponentState = (CardState | WechatState);
|
|
@@ -252,6 +257,8 @@ declare interface AdyenV2PaymentInitializeOptions {
|
|
|
252
257
|
* Optional. Overwriting the default options
|
|
253
258
|
*/
|
|
254
259
|
options?: Omit<AdyenCreditCardComponentOptions, 'onChange'> | AdyenIdealComponentOptions;
|
|
260
|
+
shouldShowNumberField?: boolean;
|
|
261
|
+
validateCardFields(componentState: AdyenComponentState): void;
|
|
255
262
|
}
|
|
256
263
|
|
|
257
264
|
/**
|
|
@@ -1133,12 +1140,20 @@ declare interface CardPaymentMethodState extends AdyenPaymentMethodState {
|
|
|
1133
1140
|
encryptedExpiryMonth: string;
|
|
1134
1141
|
encryptedExpiryYear: string;
|
|
1135
1142
|
encryptedSecurityCode: string;
|
|
1136
|
-
holderName
|
|
1143
|
+
holderName: string;
|
|
1137
1144
|
}
|
|
1138
1145
|
|
|
1139
1146
|
declare interface CardState {
|
|
1140
1147
|
data: CardDataPaymentMethodState;
|
|
1141
1148
|
isValid?: boolean;
|
|
1149
|
+
valid?: {
|
|
1150
|
+
[key: string]: boolean;
|
|
1151
|
+
};
|
|
1152
|
+
errors?: CardStateErrors;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
declare interface CardStateErrors {
|
|
1156
|
+
[key: string]: string;
|
|
1142
1157
|
}
|
|
1143
1158
|
|
|
1144
1159
|
declare interface Cart {
|