@getopenpay/openpay-js 0.2.32 → 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/index.d.ts +14 -3
- package/dist/index.es.js +1181 -1174
- package/dist/index.umd.js +16 -16
- package/package.json +4 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/// <reference types="applepayjs" />
|
|
2
|
+
/// <reference types="googlepay" />
|
|
3
|
+
|
|
1
4
|
import { PaymentRequest as PaymentRequest_2 } from '@stripe/stripe-js';
|
|
2
5
|
import { Subject } from 'rxjs';
|
|
3
6
|
import { z } from 'zod';
|
|
@@ -47,11 +50,15 @@ declare type ApplePayFlowCustomParams = {
|
|
|
47
50
|
amount: Amount;
|
|
48
51
|
pending?: boolean;
|
|
49
52
|
label?: string;
|
|
50
|
-
applePayPaymentRequest?:
|
|
53
|
+
applePayPaymentRequest?: ApplePayPaymentRequest;
|
|
51
54
|
};
|
|
52
55
|
defaultFieldValues?: DefaultFieldValues;
|
|
53
56
|
};
|
|
54
57
|
|
|
58
|
+
declare type ApplePayPaymentRequest =
|
|
59
|
+
| ((current: ApplePayJS.ApplePayPaymentRequest) => Partial<ApplePayJS.ApplePayPaymentRequest>)
|
|
60
|
+
| Partial<ApplePayJS.ApplePayPaymentRequest>;
|
|
61
|
+
|
|
55
62
|
declare enum Blockchain {
|
|
56
63
|
EVM = 'EVM',
|
|
57
64
|
SOL = 'Solana',
|
|
@@ -288,11 +295,15 @@ declare type GooglePayFlowCustomParams = {
|
|
|
288
295
|
amount: Amount;
|
|
289
296
|
pending?: boolean;
|
|
290
297
|
label?: string;
|
|
291
|
-
googlePayPaymentRequest?:
|
|
298
|
+
googlePayPaymentRequest?: GooglePayPaymentRequest;
|
|
292
299
|
};
|
|
293
300
|
defaultFieldValues?: DefaultFieldValues;
|
|
294
301
|
};
|
|
295
302
|
|
|
303
|
+
declare type GooglePayPaymentRequest =
|
|
304
|
+
| ((current: PaymentDataRequest) => Partial<PaymentDataRequest>)
|
|
305
|
+
| Partial<PaymentDataRequest>;
|
|
306
|
+
|
|
296
307
|
declare type InitApplePayFlowResult = {
|
|
297
308
|
processor: PaymentProcessor;
|
|
298
309
|
isAvailable: boolean;
|
|
@@ -1025,7 +1036,7 @@ declare type PaymentRequestStartParams = {
|
|
|
1025
1036
|
amount: Amount;
|
|
1026
1037
|
pending?: boolean;
|
|
1027
1038
|
label?: string;
|
|
1028
|
-
applePayPaymentRequest?:
|
|
1039
|
+
applePayPaymentRequest?: ApplePayPaymentRequest;
|
|
1029
1040
|
};
|
|
1030
1041
|
};
|
|
1031
1042
|
|