@bigcommerce/checkout-sdk 1.661.4 → 1.661.5
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/checkout-button.js +1 -1
- package/dist/checkout-button.umd.js +1 -1
- package/dist/checkout-sdk.d.ts +32 -10
- 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/hosted-form-v2-iframe-host.js +1 -1
- package/dist/hosted-form-v2-iframe-host.umd.js +1 -1
- package/docs/README.md +7 -3
- package/docs/interfaces/AdyenComponent.md +1 -1
- package/docs/interfaces/AdyenComponentEvents.md +4 -2
- package/docs/interfaces/AdyenComponentState.md +47 -0
- package/docs/interfaces/AdyenCreditCardComponentOptions.md +2 -2
- package/docs/interfaces/AdyenIdealComponentOptions.md +101 -0
- package/docs/interfaces/CardState.md +0 -7
- package/docs/interfaces/CardStateData.md +43 -0
- package/docs/interfaces/IdealStateData.md +15 -0
- package/docs/interfaces/SepaStateData.md +22 -0
- package/package.json +1 -1
package/dist/checkout-sdk.d.ts
CHANGED
|
@@ -135,22 +135,24 @@ declare interface AdyenComponent {
|
|
|
135
135
|
props?: {
|
|
136
136
|
type?: string;
|
|
137
137
|
};
|
|
138
|
-
state?:
|
|
138
|
+
state?: AdyenComponentState;
|
|
139
139
|
mount(containerId: string): HTMLElement;
|
|
140
140
|
unmount(): void;
|
|
141
141
|
submit(): void;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
+
declare type AdyenComponentEventState = CardState | BoletoState | WechatState;
|
|
145
|
+
|
|
144
146
|
declare interface AdyenComponentEvents {
|
|
145
147
|
/**
|
|
146
148
|
* Called when the shopper enters data in the card input fields.
|
|
147
149
|
* Here you have the option to override your main Adyen Checkout configuration.
|
|
148
150
|
*/
|
|
149
|
-
onChange?(state:
|
|
151
|
+
onChange?(state: AdyenComponentEventState, component: AdyenComponent): void;
|
|
150
152
|
/**
|
|
151
153
|
* Called when the shopper selects the Pay button and payment details are valid.
|
|
152
154
|
*/
|
|
153
|
-
onSubmit?(state:
|
|
155
|
+
onSubmit?(state: AdyenComponentEventState, component: AdyenComponent): void;
|
|
154
156
|
/**
|
|
155
157
|
* Called in case of an invalid card number, invalid expiry date, or
|
|
156
158
|
* incomplete field. Called again when errors are cleared.
|
|
@@ -159,7 +161,15 @@ declare interface AdyenComponentEvents {
|
|
|
159
161
|
onFieldValid?(state: AdyenValidationState, component: AdyenComponent): void;
|
|
160
162
|
}
|
|
161
163
|
|
|
162
|
-
declare
|
|
164
|
+
declare interface AdyenComponentState {
|
|
165
|
+
data?: CardStateData | IdealStateData | SepaStateData;
|
|
166
|
+
issuer?: string;
|
|
167
|
+
isValid?: boolean;
|
|
168
|
+
valid?: {
|
|
169
|
+
[key: string]: boolean;
|
|
170
|
+
};
|
|
171
|
+
errors?: CardStateErrors;
|
|
172
|
+
}
|
|
163
173
|
|
|
164
174
|
declare interface AdyenCreditCardComponentOptions extends AdyenBaseCardComponentOptions, AdyenComponentEvents {
|
|
165
175
|
/**
|
|
@@ -196,7 +206,7 @@ declare interface AdyenCreditCardComponentOptions extends AdyenBaseCardComponent
|
|
|
196
206
|
placeholders?: CreditCardPlaceHolder | SepaPlaceHolder;
|
|
197
207
|
}
|
|
198
208
|
|
|
199
|
-
declare interface AdyenIdealComponentOptions extends AdyenBaseCardComponentOptions {
|
|
209
|
+
declare interface AdyenIdealComponentOptions extends AdyenBaseCardComponentOptions, AdyenComponentEvents {
|
|
200
210
|
/**
|
|
201
211
|
* Optional. Set to **false** to remove the bank logos from the iDEAL form.
|
|
202
212
|
*/
|
|
@@ -1728,10 +1738,6 @@ declare interface CardCvcElementOptions extends BaseIndividualElementOptions {
|
|
|
1728
1738
|
placeholder?: string;
|
|
1729
1739
|
}
|
|
1730
1740
|
|
|
1731
|
-
declare interface CardDataPaymentMethodState {
|
|
1732
|
-
paymentMethod: CardPaymentMethodState;
|
|
1733
|
-
}
|
|
1734
|
-
|
|
1735
1741
|
declare interface CardDataPaymentMethodState {
|
|
1736
1742
|
paymentMethod: CardPaymentMethodState;
|
|
1737
1743
|
installments?: {
|
|
@@ -1793,13 +1799,20 @@ declare interface CardPaymentMethodState extends AdyenPaymentMethodState {
|
|
|
1793
1799
|
declare interface CardState {
|
|
1794
1800
|
data: CardDataPaymentMethodState;
|
|
1795
1801
|
isValid?: boolean;
|
|
1796
|
-
issuer?: string;
|
|
1797
1802
|
valid?: {
|
|
1798
1803
|
[key: string]: boolean;
|
|
1799
1804
|
};
|
|
1800
1805
|
errors?: CardStateErrors;
|
|
1801
1806
|
}
|
|
1802
1807
|
|
|
1808
|
+
declare interface CardStateData {
|
|
1809
|
+
encryptedCardNumber: string;
|
|
1810
|
+
encryptedExpiryMonth: string;
|
|
1811
|
+
encryptedExpiryYear: string;
|
|
1812
|
+
encryptedSecurityCode: string;
|
|
1813
|
+
holderName: string;
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1803
1816
|
declare interface CardStateErrors {
|
|
1804
1817
|
[key: string]: string;
|
|
1805
1818
|
}
|
|
@@ -5468,6 +5481,10 @@ declare interface IdealElementOptions extends BaseElementOptions_2 {
|
|
|
5468
5481
|
hideIcon?: boolean;
|
|
5469
5482
|
}
|
|
5470
5483
|
|
|
5484
|
+
declare interface IdealStateData {
|
|
5485
|
+
issuer: string;
|
|
5486
|
+
}
|
|
5487
|
+
|
|
5471
5488
|
declare interface IframeEvent<TType = string, TPayload = any> {
|
|
5472
5489
|
type: TType;
|
|
5473
5490
|
payload?: TPayload;
|
|
@@ -7443,6 +7460,11 @@ declare interface SepaPlaceHolder {
|
|
|
7443
7460
|
ibanNumber?: string;
|
|
7444
7461
|
}
|
|
7445
7462
|
|
|
7463
|
+
declare interface SepaStateData {
|
|
7464
|
+
ownerName: string;
|
|
7465
|
+
ibanNumber: string;
|
|
7466
|
+
}
|
|
7467
|
+
|
|
7446
7468
|
declare interface SetIframeStyleCommand {
|
|
7447
7469
|
type: ExtensionCommandType.SetIframeStyle;
|
|
7448
7470
|
payload: {
|