@paynext/sdk 0.0.103 → 0.0.105
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/index.d.ts +46 -8
- package/dist/index.es.js +1971 -1953
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +27 -27
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ declare interface ApplePayTransaction {
|
|
|
31
31
|
}>;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
declare interface AttemptResult {
|
|
34
|
+
export declare interface AttemptResult {
|
|
35
35
|
paymentMethod: PaymentMethod;
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -83,7 +83,7 @@ declare interface CheckoutConfig_2 {
|
|
|
83
83
|
state: ICheckoutState;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
declare interface CheckoutError {
|
|
86
|
+
export declare interface CheckoutError {
|
|
87
87
|
status: 'declined' | 'failed';
|
|
88
88
|
status_reason: {
|
|
89
89
|
advice_code: 'try_again_later' | 'do_not_try_again';
|
|
@@ -163,6 +163,44 @@ export declare interface CheckoutTranslate {
|
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
declare interface CheckoutTranslateOverrides {
|
|
166
|
+
card?: {
|
|
167
|
+
required?: string;
|
|
168
|
+
number?: {
|
|
169
|
+
label?: string;
|
|
170
|
+
error?: {
|
|
171
|
+
invalid?: string;
|
|
172
|
+
incomplete?: string;
|
|
173
|
+
unsupported?: string;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
expiry?: {
|
|
177
|
+
label?: string;
|
|
178
|
+
placeholder?: string;
|
|
179
|
+
error?: {
|
|
180
|
+
invalid?: string;
|
|
181
|
+
incomplete?: string;
|
|
182
|
+
expired?: string;
|
|
183
|
+
tooFarInFuture?: string;
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
cvc?: {
|
|
187
|
+
label?: string;
|
|
188
|
+
placeholder?: string;
|
|
189
|
+
error?: {
|
|
190
|
+
incomplete?: string;
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
name?: {
|
|
194
|
+
label?: string;
|
|
195
|
+
placeholder?: string;
|
|
196
|
+
};
|
|
197
|
+
pay?: {
|
|
198
|
+
button?: string;
|
|
199
|
+
};
|
|
200
|
+
compact?: {
|
|
201
|
+
button?: string;
|
|
202
|
+
};
|
|
203
|
+
};
|
|
166
204
|
status?: {
|
|
167
205
|
error?: string;
|
|
168
206
|
invalidSession?: string;
|
|
@@ -267,12 +305,12 @@ declare interface GooglePayTransaction {
|
|
|
267
305
|
}>;
|
|
268
306
|
}
|
|
269
307
|
|
|
270
|
-
declare type HTMLStyles = {
|
|
308
|
+
export declare type HTMLStyles = {
|
|
271
309
|
styles?: CSSProperties;
|
|
272
310
|
className?: string;
|
|
273
311
|
};
|
|
274
312
|
|
|
275
|
-
declare interface IApplePayButtonStyles {
|
|
313
|
+
export declare interface IApplePayButtonStyles {
|
|
276
314
|
styles?: Partial<Pick<ApplePayOptions, 'type' | 'style' | 'padding' | 'borderRadius' | 'size'>>;
|
|
277
315
|
}
|
|
278
316
|
|
|
@@ -290,11 +328,11 @@ declare interface ICheckoutState {
|
|
|
290
328
|
styles: StylesState;
|
|
291
329
|
}
|
|
292
330
|
|
|
293
|
-
declare interface IGooglePayButtonStyles {
|
|
331
|
+
export declare interface IGooglePayButtonStyles {
|
|
294
332
|
styles?: Partial<Pick<GooglePayOptions, 'type' | 'color' | 'borderRadius' | 'size'>>;
|
|
295
333
|
}
|
|
296
334
|
|
|
297
|
-
declare interface InputStyles {
|
|
335
|
+
export declare interface InputStyles {
|
|
298
336
|
field?: HTMLStyles;
|
|
299
337
|
label?: HTMLStyles;
|
|
300
338
|
error?: HTMLStyles;
|
|
@@ -306,11 +344,11 @@ declare interface InputStyles {
|
|
|
306
344
|
};
|
|
307
345
|
}
|
|
308
346
|
|
|
309
|
-
declare interface IPayPalButtonStyles {
|
|
347
|
+
export declare interface IPayPalButtonStyles {
|
|
310
348
|
styles?: PayPalButtonStyle;
|
|
311
349
|
}
|
|
312
350
|
|
|
313
|
-
declare interface ISubmitButtonStyles extends HTMLStyles {
|
|
351
|
+
export declare interface ISubmitButtonStyles extends HTMLStyles {
|
|
314
352
|
iconSvg?: string;
|
|
315
353
|
}
|
|
316
354
|
|