@getopenpay/openpay-js-react 0.2.31 → 0.2.33
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/.tsbuildinfo +1 -1
- package/dist/index.d.ts +16 -5
- package/dist/index.js +2007 -2020
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/// <reference types="applepayjs" />
|
|
2
|
+
/// <reference types="googlepay" />
|
|
3
|
+
|
|
1
4
|
import { FC } from 'react';
|
|
2
5
|
import { z } from 'zod';
|
|
3
6
|
|
|
@@ -6,7 +9,7 @@ declare type AirwallexApplePayFlowCustomParams = {
|
|
|
6
9
|
amount: Amount;
|
|
7
10
|
pending?: boolean;
|
|
8
11
|
label?: string;
|
|
9
|
-
applePayPaymentRequest?:
|
|
12
|
+
applePayPaymentRequest?: ApplePayPaymentRequest;
|
|
10
13
|
};
|
|
11
14
|
defaultFieldValues?: DefaultFieldValues;
|
|
12
15
|
};
|
|
@@ -15,7 +18,7 @@ declare type AirwallexGooglePayFlowCustomParams = {
|
|
|
15
18
|
overridePaymentRequest?: {
|
|
16
19
|
amount: Amount;
|
|
17
20
|
pending?: boolean;
|
|
18
|
-
googlePayPaymentRequest?:
|
|
21
|
+
googlePayPaymentRequest?: GooglePayPaymentRequest;
|
|
19
22
|
};
|
|
20
23
|
defaultFieldValues?: DefaultFieldValues;
|
|
21
24
|
};
|
|
@@ -65,11 +68,15 @@ declare type ApplePayFlowCustomParams = {
|
|
|
65
68
|
amount: Amount;
|
|
66
69
|
pending?: boolean;
|
|
67
70
|
label?: string;
|
|
68
|
-
applePayPaymentRequest?:
|
|
71
|
+
applePayPaymentRequest?: ApplePayPaymentRequest;
|
|
69
72
|
};
|
|
70
73
|
defaultFieldValues?: DefaultFieldValues;
|
|
71
74
|
};
|
|
72
75
|
|
|
76
|
+
declare type ApplePayPaymentRequest =
|
|
77
|
+
| ((current: ApplePayJS.ApplePayPaymentRequest) => Partial<ApplePayJS.ApplePayPaymentRequest>)
|
|
78
|
+
| Partial<ApplePayJS.ApplePayPaymentRequest>;
|
|
79
|
+
|
|
73
80
|
declare enum Blockchain {
|
|
74
81
|
EVM = 'EVM',
|
|
75
82
|
SOL = 'Solana',
|
|
@@ -299,11 +306,15 @@ declare type GooglePayFlowCustomParams = {
|
|
|
299
306
|
amount: Amount;
|
|
300
307
|
pending?: boolean;
|
|
301
308
|
label?: string;
|
|
302
|
-
googlePayPaymentRequest?:
|
|
309
|
+
googlePayPaymentRequest?: GooglePayPaymentRequest;
|
|
303
310
|
};
|
|
304
311
|
defaultFieldValues?: DefaultFieldValues;
|
|
305
312
|
};
|
|
306
313
|
|
|
314
|
+
declare type GooglePayPaymentRequest =
|
|
315
|
+
| ((current: PaymentDataRequest) => Partial<PaymentDataRequest>)
|
|
316
|
+
| Partial<PaymentDataRequest>;
|
|
317
|
+
|
|
307
318
|
export declare type InitAirwallexApplePayFlowResult = {
|
|
308
319
|
isAvailable: boolean;
|
|
309
320
|
isLoading: boolean;
|
|
@@ -643,7 +654,7 @@ export declare type PaymentRequestStartParams = {
|
|
|
643
654
|
amount: Amount;
|
|
644
655
|
pending?: boolean;
|
|
645
656
|
label?: string;
|
|
646
|
-
applePayPaymentRequest?:
|
|
657
|
+
applePayPaymentRequest?: ApplePayPaymentRequest;
|
|
647
658
|
};
|
|
648
659
|
};
|
|
649
660
|
|