@paydock/client-sdk 1.131.0 → 1.133.1-beta
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/README.md +166 -0
- package/bundles/index.cjs +12754 -11064
- package/bundles/index.cjs.d.ts +1231 -905
- package/bundles/index.mjs +12753 -11064
- package/bundles/index.mjs.d.ts +1231 -905
- package/bundles/types/afterpay-on-site-messaging/afterpay-on-site-messaging.d.ts +40 -0
- package/bundles/types/afterpay-on-site-messaging/afterpay-on-site-messaging.d.ts.map +1 -0
- package/bundles/types/afterpay-on-site-messaging/afterpay-on-site-messaging.interfaces.d.ts +29 -0
- package/bundles/types/afterpay-on-site-messaging/afterpay-on-site-messaging.interfaces.d.ts.map +1 -0
- package/bundles/types/afterpay-on-site-messaging/afterpay-on-site-messaging.service.d.ts +14 -0
- package/bundles/types/afterpay-on-site-messaging/afterpay-on-site-messaging.service.d.ts.map +1 -0
- package/bundles/types/afterpay-on-site-messaging/index.d.ts +18 -0
- package/bundles/types/afterpay-on-site-messaging/index.d.ts.map +1 -0
- package/bundles/types/api/api-payment-source-internal.d.ts +2 -1
- package/bundles/types/api/api-payment-source-internal.d.ts.map +1 -1
- package/bundles/types/api/api-service-internal.d.ts +13 -6
- package/bundles/types/api/api-service-internal.d.ts.map +1 -1
- package/bundles/types/checkout/v1/layout-widgets/payment-methods-template.d.ts.map +1 -1
- package/bundles/types/checkout/v3/instructions/instruction.card_form.show.d.ts +1 -0
- package/bundles/types/checkout/v3/instructions/instruction.card_form.show.d.ts.map +1 -1
- package/bundles/types/checkout/v3/instructions/instruction.payment_methods.show.d.ts.map +1 -1
- package/bundles/types/components/param.d.ts +3 -1
- package/bundles/types/components/param.d.ts.map +1 -1
- package/bundles/types/index-cba.d.ts +9 -6
- package/bundles/types/index-cba.d.ts.map +1 -1
- package/bundles/types/index.d.ts +9 -6
- package/bundles/types/index.d.ts.map +1 -1
- package/bundles/types/open-wallets/base/open-wallet-buttons.d.ts +198 -0
- package/bundles/types/open-wallets/base/open-wallet-buttons.d.ts.map +1 -0
- package/bundles/types/open-wallets/base/open-wallet.service.d.ts +27 -0
- package/bundles/types/open-wallets/base/open-wallet.service.d.ts.map +1 -0
- package/bundles/types/open-wallets/enum/event.enum.d.ts +8 -1
- package/bundles/types/open-wallets/enum/event.enum.d.ts.map +1 -1
- package/bundles/types/open-wallets/enum/payload-format.enum.d.ts +4 -0
- package/bundles/types/open-wallets/enum/payload-format.enum.d.ts.map +1 -0
- package/bundles/types/open-wallets/enum/service-group.enum.d.ts +5 -0
- package/bundles/types/open-wallets/enum/service-group.enum.d.ts.map +1 -0
- package/bundles/types/open-wallets/index.d.ts +2 -2
- package/bundles/types/open-wallets/index.d.ts.map +1 -1
- package/bundles/types/open-wallets/interfaces/apple-pay/apple-pay-payment-request.interface.d.ts +495 -0
- package/bundles/types/open-wallets/interfaces/apple-pay/apple-pay-payment-request.interface.d.ts.map +1 -0
- package/bundles/types/open-wallets/interfaces/apple-pay/index.d.ts +2 -0
- package/bundles/types/open-wallets/interfaces/apple-pay/index.d.ts.map +1 -0
- package/bundles/types/open-wallets/interfaces/events.interface.d.ts +5 -6
- package/bundles/types/open-wallets/interfaces/events.interface.d.ts.map +1 -1
- package/bundles/types/open-wallets/interfaces/google-pay/google-pay-meta.interface.d.ts +54 -0
- package/bundles/types/open-wallets/interfaces/google-pay/google-pay-meta.interface.d.ts.map +1 -0
- package/bundles/types/open-wallets/interfaces/google-pay/index.d.ts +2 -0
- package/bundles/types/open-wallets/interfaces/google-pay/index.d.ts.map +1 -0
- package/bundles/types/open-wallets/interfaces/index.d.ts +1 -3
- package/bundles/types/open-wallets/interfaces/index.d.ts.map +1 -1
- package/bundles/types/open-wallets/interfaces/open-wallet-meta.interface.d.ts +11 -0
- package/bundles/types/open-wallets/interfaces/open-wallet-meta.interface.d.ts.map +1 -0
- package/bundles/types/open-wallets/interfaces/payment-source.interface.d.ts +0 -1
- package/bundles/types/open-wallets/interfaces/payment-source.interface.d.ts.map +1 -1
- package/bundles/types/open-wallets/services/apple-pay/apple-pay.open-wallet.service.d.ts +64 -0
- package/bundles/types/open-wallets/services/apple-pay/apple-pay.open-wallet.service.d.ts.map +1 -0
- package/bundles/types/open-wallets/services/apple-pay/index.d.ts +2 -0
- package/bundles/types/open-wallets/services/apple-pay/index.d.ts.map +1 -0
- package/bundles/types/open-wallets/services/google-pay/constants/google-pay.constants.d.ts +11 -0
- package/bundles/types/open-wallets/services/google-pay/constants/google-pay.constants.d.ts.map +1 -0
- package/bundles/types/open-wallets/services/google-pay/constants/index.d.ts +2 -0
- package/bundles/types/open-wallets/services/google-pay/constants/index.d.ts.map +1 -0
- package/bundles/types/open-wallets/services/google-pay/google-pay.open-wallet.service.d.ts +55 -0
- package/bundles/types/open-wallets/services/google-pay/google-pay.open-wallet.service.d.ts.map +1 -0
- package/bundles/types/open-wallets/services/google-pay/index.d.ts +2 -0
- package/bundles/types/open-wallets/services/google-pay/index.d.ts.map +1 -0
- package/bundles/types/open-wallets/services/google-pay/utils/google-pay.utils.d.ts +20 -0
- package/bundles/types/open-wallets/services/google-pay/utils/google-pay.utils.d.ts.map +1 -0
- package/bundles/types/open-wallets/services/google-pay/utils/index.d.ts +2 -0
- package/bundles/types/open-wallets/services/google-pay/utils/index.d.ts.map +1 -0
- package/bundles/types/open-wallets/services/google-pay/validation/google-pay.validation.d.ts +3 -0
- package/bundles/types/open-wallets/services/google-pay/validation/google-pay.validation.d.ts.map +1 -0
- package/bundles/types/open-wallets/services/google-pay/validation/index.d.ts +2 -0
- package/bundles/types/open-wallets/services/google-pay/validation/index.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/apple-pay/apple-pay-button-style.type.d.ts +2 -0
- package/bundles/types/open-wallets/types/apple-pay/apple-pay-button-style.type.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/apple-pay/apple-pay-button-type.type.d.ts +2 -0
- package/bundles/types/open-wallets/types/apple-pay/apple-pay-button-type.type.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/apple-pay/index.d.ts +3 -0
- package/bundles/types/open-wallets/types/apple-pay/index.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/base-event-data.interface.d.ts +5 -0
- package/bundles/types/open-wallets/types/base-event-data.interface.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/google-pay/google-pay-button-color.type.d.ts +2 -0
- package/bundles/types/open-wallets/types/google-pay/google-pay-button-color.type.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/google-pay/google-pay-button-size-mode.type.d.ts +2 -0
- package/bundles/types/open-wallets/types/google-pay/google-pay-button-size-mode.type.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/google-pay/google-pay-button-type.type.d.ts +2 -0
- package/bundles/types/open-wallets/types/google-pay/google-pay-button-type.type.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/google-pay/index.d.ts +4 -0
- package/bundles/types/open-wallets/types/google-pay/index.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/index.d.ts +1 -2
- package/bundles/types/open-wallets/types/index.d.ts.map +1 -1
- package/bundles/types/open-wallets/types/on-shipping-address-change-event-data.interface.d.ts +21 -0
- package/bundles/types/open-wallets/types/on-shipping-address-change-event-data.interface.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/on-shipping-address-change-event-response.interface.d.ts +6 -0
- package/bundles/types/open-wallets/types/on-shipping-address-change-event-response.interface.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/on-shipping-option-change-event-data.interface.d.ts +13 -0
- package/bundles/types/open-wallets/types/on-shipping-option-change-event-data.interface.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/on-shipping-option-change-event-response.interface.d.ts +4 -0
- package/bundles/types/open-wallets/types/on-shipping-option-change-event-response.interface.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/payment-source.type.d.ts +85 -0
- package/bundles/types/open-wallets/types/payment-source.type.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/shipping-event-to-response.type.d.ts +6 -0
- package/bundles/types/open-wallets/types/shipping-event-to-response.type.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/wallet-type.type.d.ts +2 -2
- package/bundles/types/open-wallets/types/wallet-type.type.d.ts.map +1 -1
- package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts +16 -16
- package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts +9 -9
- package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts.map +1 -1
- package/bundles/types/widget/html-multi-widget.d.ts +13 -1
- package/bundles/types/widget/html-multi-widget.d.ts.map +1 -1
- package/bundles/types/widget/multi-widget.d.ts +7 -4
- package/bundles/types/widget/multi-widget.d.ts.map +1 -1
- package/bundles/widget.umd.js +12754 -11064
- package/bundles/widget.umd.js.d.ts +1231 -905
- package/bundles/widget.umd.js.min.d.ts +1231 -905
- package/bundles/widget.umd.min.js +1 -1
- package/docs/afterpay-on-site-messaging-examples.md +60 -0
- package/docs/afterpay-on-site-messaging.md +104 -0
- package/docs/open-wallet-buttons-examples.md +1188 -0
- package/package.json +4 -1
- package/bundles/types/open-wallets/base/base-open-wallet.d.ts +0 -33
- package/bundles/types/open-wallets/base/base-open-wallet.d.ts.map +0 -1
- package/bundles/types/open-wallets/interfaces/base-service-config.interface.d.ts +0 -30
- package/bundles/types/open-wallets/interfaces/base-service-config.interface.d.ts.map +0 -1
- package/bundles/types/open-wallets/interfaces/base-wallet-meta.interface.d.ts +0 -5
- package/bundles/types/open-wallets/interfaces/base-wallet-meta.interface.d.ts.map +0 -1
- package/bundles/types/open-wallets/services/index.d.ts +0 -9
- package/bundles/types/open-wallets/services/index.d.ts.map +0 -1
- package/bundles/types/open-wallets/types/ott-backend.type.d.ts +0 -26
- package/bundles/types/open-wallets/types/ott-backend.type.d.ts.map +0 -1
- package/bundles/types/open-wallets/types/ott-response.type.d.ts +0 -8
- package/bundles/types/open-wallets/types/ott-response.type.d.ts.map +0 -1
|
@@ -0,0 +1 @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CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,iBAAiB,CAAC;cAqCpD,oCAAoC,CAClD,CAAC,SAAS,gCAAgC,GAAG,+BAA+B,EAC5E,SAAS,EAAE,CAAC,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;IAcpD,SAAS,CAAC,mBAAmB,CAAC,MAAM,SAAyB,GAAG,IAAI;IAYpE,SAAS,CAAC,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAgBpC,OAAO,IAAI,IAAI;CAMvB"}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
export declare enum EVENT {
|
|
2
|
+
ON_UPDATE = "onUpdate",
|
|
2
3
|
ON_CLICK = "onClick",
|
|
4
|
+
ON_CHECKOUT_CLOSE = "onCheckoutClose",
|
|
3
5
|
SUCCESS = "success",
|
|
4
6
|
UNAVAILABLE = "unavailable",
|
|
5
|
-
ERROR = "error"
|
|
7
|
+
ERROR = "error",
|
|
8
|
+
UPDATE = "update",
|
|
9
|
+
LOADED = "loaded",
|
|
10
|
+
CHECKOUT_CLOSE = "checkoutClose",
|
|
11
|
+
ON_SHIPPING_ADDRESS_CHANGE = "onShippingAddressChange",
|
|
12
|
+
ON_SHIPPING_OPTIONS_CHANGE = "onShippingOptionsChange"
|
|
6
13
|
}
|
|
7
14
|
export type OpenWalletEventType = EVENT;
|
|
8
15
|
//# sourceMappingURL=event.enum.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.enum.d.ts","sourceRoot":"","sources":["../../../src/open-wallets/enum/event.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,KAAK;IACf,QAAQ,YAAY;IACpB,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,KAAK,UAAU;
|
|
1
|
+
{"version":3,"file":"event.enum.d.ts","sourceRoot":"","sources":["../../../src/open-wallets/enum/event.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,KAAK;IACf,SAAS,aAAa;IACtB,QAAQ,YAAY;IACpB,iBAAiB,oBAAoB;IACrC,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,cAAc,kBAAkB;IAChC,0BAA0B,4BAA4B;IACtD,0BAA0B,4BAA4B;CACvD;AAED,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload-format.enum.d.ts","sourceRoot":"","sources":["../../../src/open-wallets/enum/payload-format.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,gBAAgB,qBAAqB;CACtC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-group.enum.d.ts","sourceRoot":"","sources":["../../../src/open-wallets/enum/service-group.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,YAAY,iBAAiB;IAC7B,MAAM,WAAW;CAClB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export type * from './interfaces';
|
|
1
|
+
export { OpenWalletButtons } from './base/open-wallet-buttons';
|
|
3
2
|
export { EVENT, type OpenWalletEventType } from './enum/event.enum';
|
|
3
|
+
export type * from './interfaces';
|
|
4
4
|
export type * from './types';
|
|
5
5
|
export { WALLET_TYPES } from './types/wallet-type.type';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/open-wallets/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/open-wallets/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACpE,mBAAmB,cAAc,CAAC;AAIlC,mBAAmB,SAAS,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC"}
|
package/bundles/types/open-wallets/interfaces/apple-pay/apple-pay-payment-request.interface.d.ts
ADDED
|
@@ -0,0 +1,495 @@
|
|
|
1
|
+
type ApplePayMerchantCapability =
|
|
2
|
+
/**
|
|
3
|
+
* Required. This value must be supplied.
|
|
4
|
+
*/
|
|
5
|
+
'supports3DS'
|
|
6
|
+
/**
|
|
7
|
+
* Include this value only if you support China Union Pay transactions.
|
|
8
|
+
*/
|
|
9
|
+
| 'supportsEMV'
|
|
10
|
+
/**
|
|
11
|
+
* Optional. If present, only transactions that are categorized as credit cards are allowed.
|
|
12
|
+
*/
|
|
13
|
+
| 'supportsCredit'
|
|
14
|
+
/**
|
|
15
|
+
* Optional. If present, only transactions that are categorized as debit cards are allowed.
|
|
16
|
+
*/
|
|
17
|
+
| 'supportsDebit';
|
|
18
|
+
type ApplePayContactField = 'email' | 'name' | 'phone' | 'postalAddress';
|
|
19
|
+
export interface ApplePayPaymentContact {
|
|
20
|
+
/**
|
|
21
|
+
* An email address for the contact.
|
|
22
|
+
*/
|
|
23
|
+
email_address?: string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* The contact's family name.
|
|
26
|
+
*/
|
|
27
|
+
family_name?: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* The contact's given name.
|
|
30
|
+
*/
|
|
31
|
+
given_name?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* A phone number for the contact.
|
|
34
|
+
*/
|
|
35
|
+
phone_number?: string | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* The phonetic spelling of the contact's family name.
|
|
38
|
+
*/
|
|
39
|
+
phonetic_family_name?: string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* The phonetic spelling of the contact's given name.
|
|
42
|
+
*/
|
|
43
|
+
phonetic_given_name?: string | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* The street portion of the address for the contact.
|
|
46
|
+
*/
|
|
47
|
+
address_lines?: string[] | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* The city for the contact.
|
|
50
|
+
*/
|
|
51
|
+
locality?: string | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Additional information associated with the location, typically defined at the city or town level (such as district or neighborhood), in a postal address.
|
|
54
|
+
*/
|
|
55
|
+
sub_locality?: string | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* The state for the contact.
|
|
58
|
+
*/
|
|
59
|
+
administrative_area?: string | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* The subadministrative area (such as a county or other region) in a postal address.
|
|
62
|
+
*/
|
|
63
|
+
sub_administrative_area?: string | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* The zip code or postal code, where applicable, for the contact.
|
|
66
|
+
*/
|
|
67
|
+
postal_code?: string | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* The name of the country for the contact.
|
|
70
|
+
*/
|
|
71
|
+
country?: string | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* The contact's two-letter ISO 3166 country code.
|
|
74
|
+
*/
|
|
75
|
+
country_code?: string | undefined;
|
|
76
|
+
}
|
|
77
|
+
type ApplePayShippingContactEditingMode =
|
|
78
|
+
/**
|
|
79
|
+
* The user can edit the shipping contact on the payment sheet.
|
|
80
|
+
*/
|
|
81
|
+
'available'
|
|
82
|
+
/**
|
|
83
|
+
* The user can’t edit the shipping contact on the payment sheet.
|
|
84
|
+
*/
|
|
85
|
+
| 'storePickup'
|
|
86
|
+
/**
|
|
87
|
+
* The user can edit the shipping contact on the payment sheet.
|
|
88
|
+
* @deprecated Use ApplePayShippingContactEditingMode.available instead.
|
|
89
|
+
*/
|
|
90
|
+
| 'enabled';
|
|
91
|
+
type ApplePayLineItemType =
|
|
92
|
+
/**
|
|
93
|
+
* A line item representing the known, final cost.
|
|
94
|
+
*/
|
|
95
|
+
'final'
|
|
96
|
+
/**
|
|
97
|
+
* A line item representing an estimated or unknown cost.
|
|
98
|
+
*/
|
|
99
|
+
| 'pending';
|
|
100
|
+
/**
|
|
101
|
+
* A type that indicates the time a payment occurs in a transaction.
|
|
102
|
+
*/
|
|
103
|
+
type ApplePayPaymentTiming =
|
|
104
|
+
/**
|
|
105
|
+
* A value that specifies that the payment occurs when the transaction is complete.
|
|
106
|
+
*/
|
|
107
|
+
'immediate'
|
|
108
|
+
/**
|
|
109
|
+
* A value that specifies that the payment occurs in the future.
|
|
110
|
+
*/
|
|
111
|
+
| 'deferred'
|
|
112
|
+
/**
|
|
113
|
+
* A value that specifies that the payment occurs on a regular basis.
|
|
114
|
+
*/
|
|
115
|
+
| 'recurring'
|
|
116
|
+
/**
|
|
117
|
+
* A value that specifies that the payment occurs automatically when the account falls below the automaticReloadPaymentThresholdAmount amount.
|
|
118
|
+
*/
|
|
119
|
+
| 'automaticReload';
|
|
120
|
+
/**
|
|
121
|
+
* A type that indicates calendrical units, such as year, month, day, and hour.
|
|
122
|
+
*/
|
|
123
|
+
type ApplePayRecurringPaymentDateUnit =
|
|
124
|
+
/**
|
|
125
|
+
* A value that specifies the year unit.
|
|
126
|
+
*/
|
|
127
|
+
'year'
|
|
128
|
+
/**
|
|
129
|
+
* A value that specifies the month unit.
|
|
130
|
+
*/
|
|
131
|
+
| 'month'
|
|
132
|
+
/**
|
|
133
|
+
* A value that specifies the day unit.
|
|
134
|
+
*/
|
|
135
|
+
| 'day'
|
|
136
|
+
/**
|
|
137
|
+
* A value that specifies the hour unit.
|
|
138
|
+
*/
|
|
139
|
+
| 'hour'
|
|
140
|
+
/**
|
|
141
|
+
* A value that specifies the minute unit.
|
|
142
|
+
*/
|
|
143
|
+
| 'minute';
|
|
144
|
+
/**
|
|
145
|
+
* Defines a line item in a payment request - for example, total, tax, discount, or grand total.
|
|
146
|
+
*/
|
|
147
|
+
interface ApplePayLineItem {
|
|
148
|
+
/**
|
|
149
|
+
* A short, localized description of the line item.
|
|
150
|
+
*/
|
|
151
|
+
label: string;
|
|
152
|
+
/**
|
|
153
|
+
* The line item's amount.
|
|
154
|
+
*/
|
|
155
|
+
amount: string;
|
|
156
|
+
/**
|
|
157
|
+
* A value that indicates if the line item is final or pending.
|
|
158
|
+
*/
|
|
159
|
+
type?: ApplePayLineItemType | undefined;
|
|
160
|
+
/**
|
|
161
|
+
* The time that the payment occurs as part of a successful transaction.
|
|
162
|
+
*/
|
|
163
|
+
payment_timing?: ApplePayPaymentTiming;
|
|
164
|
+
/**
|
|
165
|
+
* The date of the first payment.
|
|
166
|
+
*/
|
|
167
|
+
recurring_payment_start_date?: Date;
|
|
168
|
+
/**
|
|
169
|
+
* The amount of time — in calendar units, such as day, month, or year — that represents a fraction of the total payment interval.
|
|
170
|
+
*/
|
|
171
|
+
recurring_payment_interval_unit?: ApplePayRecurringPaymentDateUnit;
|
|
172
|
+
/**
|
|
173
|
+
* The number of interval units that make up the total payment interval.
|
|
174
|
+
*/
|
|
175
|
+
recurring_payment_interval_count?: number;
|
|
176
|
+
/**
|
|
177
|
+
* The date of the final payment.
|
|
178
|
+
*/
|
|
179
|
+
recurring_payment_end_date?: Date;
|
|
180
|
+
/**
|
|
181
|
+
* The date, in the future, of the payment.
|
|
182
|
+
*/
|
|
183
|
+
deferred_payment_date?: Date;
|
|
184
|
+
/**
|
|
185
|
+
* The balance an account reaches before the merchant applies the automatic reload amount.
|
|
186
|
+
*/
|
|
187
|
+
automatic_reload_payment_threshold_amount?: string;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* A type that indicates how purchased items are to be shipped.
|
|
191
|
+
*/
|
|
192
|
+
type ApplePayShippingType = 'shipping' | 'delivery' | 'storePickup' | 'servicePickup';
|
|
193
|
+
/**
|
|
194
|
+
* When specifying a range using date components, provide all elements of the ApplePayDateComponents down to the level of granularity that you want to expose.
|
|
195
|
+
* For example, if you specify a range of days, be sure to include values for both months and years in addition to days in the ApplePayDateComponents.
|
|
196
|
+
*
|
|
197
|
+
* Apple Pay on the Web uses the Gregorian calendar when processing dates.
|
|
198
|
+
*/
|
|
199
|
+
interface ApplePayDateComponents {
|
|
200
|
+
/**
|
|
201
|
+
* A number that represents a day.
|
|
202
|
+
*/
|
|
203
|
+
days: number;
|
|
204
|
+
/**
|
|
205
|
+
* A number between 1 and 12 that represents a month.
|
|
206
|
+
*/
|
|
207
|
+
months: number;
|
|
208
|
+
/**
|
|
209
|
+
* A number that represents a year.
|
|
210
|
+
*/
|
|
211
|
+
years: number;
|
|
212
|
+
/**
|
|
213
|
+
* A number that represents an hour.
|
|
214
|
+
*/
|
|
215
|
+
hours: number;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* A dictionary that specifies the start and end dates for a range of time.
|
|
219
|
+
*/
|
|
220
|
+
interface ApplePayDateComponentsRange {
|
|
221
|
+
/**
|
|
222
|
+
* The start date and time of the range.
|
|
223
|
+
*/
|
|
224
|
+
start_date_components: ApplePayDateComponents;
|
|
225
|
+
/**
|
|
226
|
+
* The end date and time of the range.
|
|
227
|
+
*/
|
|
228
|
+
end_date_components: ApplePayDateComponents;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Defines a shipping method for delivering physical goods.
|
|
232
|
+
*/
|
|
233
|
+
interface ApplePayShippingMethod {
|
|
234
|
+
/**
|
|
235
|
+
* A short description of the shipping method.
|
|
236
|
+
*/
|
|
237
|
+
label: string;
|
|
238
|
+
/**
|
|
239
|
+
* A further description of the shipping method.
|
|
240
|
+
*/
|
|
241
|
+
detail: string;
|
|
242
|
+
/**
|
|
243
|
+
* The amount associated with this shipping method.
|
|
244
|
+
*/
|
|
245
|
+
amount: string;
|
|
246
|
+
/**
|
|
247
|
+
* A client-defined identifier.
|
|
248
|
+
*/
|
|
249
|
+
identifier: string;
|
|
250
|
+
/**
|
|
251
|
+
* A dictionary that specifies the start and end dates for a range of time.
|
|
252
|
+
*/
|
|
253
|
+
date_components_range?: ApplePayDateComponentsRange;
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Use ApplePayPaymentTokenContext to authorize a payment amount for each payment token in a multimerchant payment request.
|
|
257
|
+
* To enable multiple merchants for a transaction, use one ApplePayPaymentTokenContext object for each merchant.
|
|
258
|
+
*
|
|
259
|
+
* You can optionally associate each payment token with the merchant’s top-level domain.
|
|
260
|
+
*/
|
|
261
|
+
interface ApplePayPaymentTokenContext {
|
|
262
|
+
/**
|
|
263
|
+
* The Apply Pay merchant identifier.
|
|
264
|
+
*/
|
|
265
|
+
merchant_identifier: string;
|
|
266
|
+
/**
|
|
267
|
+
* An external identifier for the merchant.
|
|
268
|
+
*/
|
|
269
|
+
external_identifier: string;
|
|
270
|
+
/**
|
|
271
|
+
* The merchant's display name that the Apple Pay server associates with the payment token.
|
|
272
|
+
*/
|
|
273
|
+
merchant_name: string;
|
|
274
|
+
/**
|
|
275
|
+
* The merchant's top-level domain that the Apple Pay server associates with the payment token.
|
|
276
|
+
*/
|
|
277
|
+
merchant_domain?: string;
|
|
278
|
+
/**
|
|
279
|
+
* The amount to authorize for the payment token context.
|
|
280
|
+
*/
|
|
281
|
+
amount: string;
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Use an ApplePayAutomaticReloadPaymentRequest object to provide the user with payment details and a way to manage payment methods for an automatic reload payment.
|
|
285
|
+
* You can optionally display a billing agreement and set up merchant token life-cycle notifications for the request.
|
|
286
|
+
* For more information about the merchant token life-cycle notifications, see Apple Pay Merchant Token Management API.
|
|
287
|
+
*
|
|
288
|
+
* Apple Pay issues an Apple Pay Merchant Token if the user’s payment network supports merchant-specific payment tokens.
|
|
289
|
+
* Otherwise, Apple Pay issues a device token for the payment request.
|
|
290
|
+
*/
|
|
291
|
+
interface ApplePayAutomaticReloadPaymentRequest {
|
|
292
|
+
/**
|
|
293
|
+
* A description of the automatic reload payment that Apple Pay displays in the payment sheet.
|
|
294
|
+
*/
|
|
295
|
+
payment_description: string;
|
|
296
|
+
/**
|
|
297
|
+
* A line item that contains the reload amount and balance threshold for the automatic reload payment.
|
|
298
|
+
*/
|
|
299
|
+
automatic_reload_billing: ApplePayLineItem;
|
|
300
|
+
/**
|
|
301
|
+
* A localized billing agreement that the payment sheet displays to the user before the user authorizes the payment.
|
|
302
|
+
*/
|
|
303
|
+
billing_agreement?: string;
|
|
304
|
+
/**
|
|
305
|
+
* A URL to a web page where the user can update or delete the payment method for the automatic reload payment.
|
|
306
|
+
*/
|
|
307
|
+
management_url: string;
|
|
308
|
+
/**
|
|
309
|
+
* A URL you provide to receive life-cycle notifications from the Apple Pay servers about the Apple Pay merchant token for the recurring payment.
|
|
310
|
+
*/
|
|
311
|
+
token_notification_url?: string;
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* A dictionary that represents a request to set up a recurring payment, typically a subscription.
|
|
315
|
+
*
|
|
316
|
+
* Important
|
|
317
|
+
* You must include the recurringPaymentRequest property in the ApplePayPaymentRequest object to specify a request for a recurring payment.
|
|
318
|
+
* Use an ApplePayRecurringPaymentRequest object to provide the user with payment details and a way to manage payment methods for a recurring payment.
|
|
319
|
+
* You can optionally display a billing agreement and set up merchant token life-cycle notifications for the request.
|
|
320
|
+
*/
|
|
321
|
+
interface ApplePayRecurringPaymentRequest {
|
|
322
|
+
/**
|
|
323
|
+
* A description of the recurring payment that Apple Pay displays to the user in the payment sheet.
|
|
324
|
+
*/
|
|
325
|
+
payment_description: string;
|
|
326
|
+
/**
|
|
327
|
+
* A localized billing agreement that the payment sheet displays to the user before the user authorizes the payment.
|
|
328
|
+
*/
|
|
329
|
+
billing_agreement?: string;
|
|
330
|
+
/**
|
|
331
|
+
* The regular billing cycle for the recurring payment, including start and end dates, an interval, and an interval count.
|
|
332
|
+
*/
|
|
333
|
+
regular_billing: ApplePayLineItem;
|
|
334
|
+
/**
|
|
335
|
+
* The trial billing cycle for the recurring payment.
|
|
336
|
+
*/
|
|
337
|
+
trial_billing?: ApplePayLineItem;
|
|
338
|
+
/**
|
|
339
|
+
* A URL to a web page where the user can update or delete the payment method for the recurring payment.
|
|
340
|
+
*/
|
|
341
|
+
management_url: string;
|
|
342
|
+
/**
|
|
343
|
+
* A URL you provide for receiving life-cycle notifications from the Apple Pay servers about the Apple Pay merchant token for the recurring payment.
|
|
344
|
+
*/
|
|
345
|
+
token_notification_url?: string;
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* A dictionary that represents a request to set up a deferred payment, such as a hotel booking or a pre-order.
|
|
349
|
+
*/
|
|
350
|
+
interface ApplePayDeferredPaymentRequest {
|
|
351
|
+
/**
|
|
352
|
+
* The localized billing agreement the framework displays to the user prior to payment authorization.
|
|
353
|
+
*/
|
|
354
|
+
billing_agreement?: string | undefined;
|
|
355
|
+
/**
|
|
356
|
+
* A dictionary that contains details about the deferred payment.
|
|
357
|
+
*/
|
|
358
|
+
deferred_billing: ApplePayLineItem;
|
|
359
|
+
/**
|
|
360
|
+
* The date and time at the destination location of the payment.
|
|
361
|
+
*/
|
|
362
|
+
free_cancellation_date?: Date | undefined;
|
|
363
|
+
/**
|
|
364
|
+
* The time zone at the destination location of the payment.
|
|
365
|
+
*/
|
|
366
|
+
free_cancellation_date_time_zone?: string | undefined;
|
|
367
|
+
/**
|
|
368
|
+
* A URL that links to a page on your web site where the user can manage the payment method for the deferred payment, including deleting it.
|
|
369
|
+
*/
|
|
370
|
+
management_url: string;
|
|
371
|
+
/**
|
|
372
|
+
* A description of the deferred payment.
|
|
373
|
+
*/
|
|
374
|
+
payment_description: string;
|
|
375
|
+
/**
|
|
376
|
+
* A URL to receive life-cycle notifications for the merchant-specific payment token the system issues for the request, if applicable.
|
|
377
|
+
*/
|
|
378
|
+
token_notification_url?: string | undefined;
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* Values you use to enable or disable Apple Pay Later for a specific transaction.
|
|
382
|
+
*/
|
|
383
|
+
type ApplePayLaterAvailability =
|
|
384
|
+
/**
|
|
385
|
+
* Apple Pay Later is available.
|
|
386
|
+
* This is the default.
|
|
387
|
+
*/
|
|
388
|
+
'available'
|
|
389
|
+
/**
|
|
390
|
+
* Apple Pay Later is unavailable because one or more ineligible or prohibited items are in the shopping cart, such as gift cards
|
|
391
|
+
*/
|
|
392
|
+
| 'unavailableItemIneligible'
|
|
393
|
+
/**
|
|
394
|
+
* Apple Pay Later is unavailable because there’s a recurring payment or subscription in the shopping cart.
|
|
395
|
+
*/
|
|
396
|
+
| 'unavailableRecurringTransaction';
|
|
397
|
+
export interface ApplePayPaymentRequest {
|
|
398
|
+
/**
|
|
399
|
+
* An array of the payment capabilities that the merchant supports, such as credit or debit.
|
|
400
|
+
* The value must at least contain ApplePayMerchantCapability.supports3DS.
|
|
401
|
+
*/
|
|
402
|
+
merchant_capabilities: ApplePayMerchantCapability[];
|
|
403
|
+
/**
|
|
404
|
+
* The payment networks supported by the merchant.
|
|
405
|
+
*/
|
|
406
|
+
supported_networks: string[];
|
|
407
|
+
/**
|
|
408
|
+
* The merchant's two-letter ISO 3166 country code.
|
|
409
|
+
*/
|
|
410
|
+
country_code: string;
|
|
411
|
+
/**
|
|
412
|
+
* The billing information that you require from the user in order to process the transaction.
|
|
413
|
+
*/
|
|
414
|
+
required_billing_contact_fields?: ApplePayContactField[] | undefined;
|
|
415
|
+
/**
|
|
416
|
+
* Billing contact information for the user.
|
|
417
|
+
*/
|
|
418
|
+
billing_contact?: ApplePayPaymentContact | undefined;
|
|
419
|
+
/**
|
|
420
|
+
* The shipping information that you require from the user in order to fulfill the order.
|
|
421
|
+
*/
|
|
422
|
+
required_shipping_contact_fields?: ApplePayContactField[] | undefined;
|
|
423
|
+
/**
|
|
424
|
+
* Shipping contact information for the user.
|
|
425
|
+
*/
|
|
426
|
+
shipping_contact?: ApplePayPaymentContact | undefined;
|
|
427
|
+
/**
|
|
428
|
+
* Optional user-defined data.
|
|
429
|
+
*/
|
|
430
|
+
application_data?: string | undefined;
|
|
431
|
+
/**
|
|
432
|
+
* A list of ISO 3166 country codes for limiting payments to cards from specific countries.
|
|
433
|
+
*/
|
|
434
|
+
supported_countries?: string[] | undefined;
|
|
435
|
+
/**
|
|
436
|
+
* A Boolean value that determines whether the payment sheet displays the coupon code field.
|
|
437
|
+
*/
|
|
438
|
+
supports_coupon_code?: boolean | undefined;
|
|
439
|
+
/**
|
|
440
|
+
* The initial coupon code for the payment request.
|
|
441
|
+
*/
|
|
442
|
+
coupon_code?: string | undefined;
|
|
443
|
+
/**
|
|
444
|
+
* A value that indicates whether the shipping mode prevents the user from editing the shipping address.
|
|
445
|
+
*/
|
|
446
|
+
shipping_contact_editing_mode?: ApplePayShippingContactEditingMode;
|
|
447
|
+
/**
|
|
448
|
+
* A line item representing the total for the payment.
|
|
449
|
+
*/
|
|
450
|
+
total: ApplePayLineItem;
|
|
451
|
+
/**
|
|
452
|
+
* A set of line items that explain recurring payments and/or additional charges.
|
|
453
|
+
*/
|
|
454
|
+
line_items?: ApplePayLineItem[] | undefined;
|
|
455
|
+
/**
|
|
456
|
+
* The three-letter ISO 4217 currency code for the payment.
|
|
457
|
+
*/
|
|
458
|
+
currency_code: string;
|
|
459
|
+
/**
|
|
460
|
+
* How the items are to be shipped.
|
|
461
|
+
*/
|
|
462
|
+
shipping_type?: ApplePayShippingType | undefined;
|
|
463
|
+
/**
|
|
464
|
+
* A set of shipping method objects that describe the available shipping methods.
|
|
465
|
+
*/
|
|
466
|
+
shipping_methods?: ApplePayShippingMethod[] | undefined;
|
|
467
|
+
/**
|
|
468
|
+
* An array of payment token contexts that requests multiple payment tokens to support a multimerchant payment.
|
|
469
|
+
*/
|
|
470
|
+
multi_token_contexts?: ApplePayPaymentTokenContext[];
|
|
471
|
+
/**
|
|
472
|
+
* A property that requests an automatic reload payment, such as a store card top-up.
|
|
473
|
+
*/
|
|
474
|
+
automatic_reload_payment_request?: ApplePayAutomaticReloadPaymentRequest;
|
|
475
|
+
/**
|
|
476
|
+
* This property is optional. Use it to indicate that the payment request is for a recurring payment.
|
|
477
|
+
* Apple Pay issues an Apple Pay Merchant Token if the user's payment network supports merchant-specific payment tokens.
|
|
478
|
+
* Otherwise, Apple Pay issues a device token for the payment request.
|
|
479
|
+
*
|
|
480
|
+
* Important
|
|
481
|
+
* You can't use this property with multi_token_contexts or automatic_reload_payment_request properties.
|
|
482
|
+
* Simultaneous use of these properties results in an error and cancels the payment request.
|
|
483
|
+
*/
|
|
484
|
+
recurring_payment_request?: ApplePayRecurringPaymentRequest;
|
|
485
|
+
/**
|
|
486
|
+
* A property that requests a deferred payment, such as a hotel booking or a pre-order.
|
|
487
|
+
*/
|
|
488
|
+
deferred_payment_request?: ApplePayDeferredPaymentRequest;
|
|
489
|
+
/**
|
|
490
|
+
* A value that indicates whether Apple Pay Later is available for a transaction.
|
|
491
|
+
*/
|
|
492
|
+
apple_pay_later_availability?: ApplePayLaterAvailability;
|
|
493
|
+
}
|
|
494
|
+
export {};
|
|
495
|
+
//# sourceMappingURL=apple-pay-payment-request.interface.d.ts.map
|
package/bundles/types/open-wallets/interfaces/apple-pay/apple-pay-payment-request.interface.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apple-pay-payment-request.interface.d.ts","sourceRoot":"","sources":["../../../../src/open-wallets/interfaces/apple-pay/apple-pay-payment-request.interface.ts"],"names":[],"mappings":"AAAA,KAAK,0BAA0B;AAC7B;;GAEG;AACD,aAAa;AACf;;GAEG;GACD,aAAa;AACf;;GAEG;GACD,gBAAgB;AAClB;;GAEG;GACD,eAAe,CAAC;AAEpB,KAAK,oBAAoB,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,eAAe,CAAC;AAEzE,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEnC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEjC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEhC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAElC;;OAEG;IAC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AQG;IACH,yBAAyB,CAAC,EAAE,+BAA+B,CAAC;IAE5D;;OAEG;IACH,wBAAwB,CAAC,EAAE,8BAA8B,CAAC;IAE1D;;OAEG;IACH,4BAA4B,CAAC,EAAE,yBAAyB,CAAC;CAC1D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/open-wallets/interfaces/apple-pay/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,uCAAuC,CAAC"}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import type { BaseEventData } from '../../wallet-buttons-express/interfaces/base-event-data.interface';
|
|
2
2
|
import type { EVENT } from '../enum/event.enum';
|
|
3
|
-
import type {
|
|
3
|
+
import type { Billing, CreateOTTResponse, Shipping } from '../types/payment-source.type';
|
|
4
4
|
export interface OnClickEventData {
|
|
5
5
|
request_type: string;
|
|
6
6
|
wallet_type?: string;
|
|
7
7
|
meta?: Record<string, unknown>;
|
|
8
8
|
}
|
|
9
9
|
export interface OnCrateOTTSuccessfulEventData {
|
|
10
|
-
token:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
wallet_type: string;
|
|
10
|
+
token: CreateOTTResponse;
|
|
11
|
+
amount: number;
|
|
12
|
+
shipping?: Shipping;
|
|
13
|
+
billing?: Billing;
|
|
15
14
|
}
|
|
16
15
|
export interface OnCreateOTTErrorEventData extends BaseEventData<{
|
|
17
16
|
message?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.interface.d.ts","sourceRoot":"","sources":["../../../src/open-wallets/interfaces/events.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mEAAmE,CAAC;AACvG,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"events.interface.d.ts","sourceRoot":"","sources":["../../../src/open-wallets/interfaces/events.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mEAAmE,CAAC;AACvG,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EACV,OAAO,EACP,iBAAiB,EACjB,QAAQ,EACT,MAAM,8BAA8B,CAAC;AAEtC,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,6BAA6B;IAC5C,KAAK,EAAE,iBAAiB,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,yBACf,SAAQ,aAAa,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;IACF,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;CACpB;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,CAAC,EAAE;QACR,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;CACH"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { IGooglePayShippingOption } from '../../../components/param';
|
|
2
|
+
import type { GooglePayButtonColor, GooglePayButtonSizeMode, GooglePayButtonType } from '../../types/google-pay';
|
|
3
|
+
import type { OpenWalletMeta, OpenWalletMetaStyles } from '../open-wallet-meta.interface';
|
|
4
|
+
export type GooglePayAuthMethod = 'PAN_ONLY' | 'CRYPTOGRAM_3DS';
|
|
5
|
+
export type GooglePayCardNetwork = 'AMEX' | 'DISCOVER' | 'ELECTRON' | 'ELO' | 'ELO_DEBIT' | 'INTERAC' | 'JCB' | 'MAESTRO' | 'MASTERCARD' | 'VISA';
|
|
6
|
+
type BillingAddressFormat = 'MIN' | 'FULL';
|
|
7
|
+
export interface GooglePayOpenWalletMetaStyles extends OpenWalletMetaStyles {
|
|
8
|
+
button_type?: GooglePayButtonType;
|
|
9
|
+
button_size_mode?: GooglePayButtonSizeMode;
|
|
10
|
+
button_color?: GooglePayButtonColor;
|
|
11
|
+
}
|
|
12
|
+
export interface GooglePayOpenWalletMeta extends OpenWalletMeta {
|
|
13
|
+
merchant_name?: string;
|
|
14
|
+
request_shipping?: boolean;
|
|
15
|
+
show_billing_address?: boolean;
|
|
16
|
+
shipping_options?: IGooglePayShippingOption[];
|
|
17
|
+
amount_label?: string;
|
|
18
|
+
style?: GooglePayOpenWalletMetaStyles;
|
|
19
|
+
card_config?: GooglePayCardConfig;
|
|
20
|
+
}
|
|
21
|
+
export interface GooglePayCardConfig {
|
|
22
|
+
type: 'CARD' | 'PAYPAL';
|
|
23
|
+
parameters: {
|
|
24
|
+
allowed_auth_methods: GooglePayAuthMethod[];
|
|
25
|
+
allowed_card_networks: GooglePayCardNetwork[];
|
|
26
|
+
allow_prepaid_cards?: boolean;
|
|
27
|
+
allow_credit_cards?: boolean;
|
|
28
|
+
assurance_details_required?: boolean;
|
|
29
|
+
billing_address_required?: boolean;
|
|
30
|
+
billing_address_parameters?: {
|
|
31
|
+
format: BillingAddressFormat;
|
|
32
|
+
phone_number_required?: boolean;
|
|
33
|
+
};
|
|
34
|
+
card_network_parameters?: {
|
|
35
|
+
card_network: GooglePayCardNetwork;
|
|
36
|
+
acquirer_bin?: string;
|
|
37
|
+
acquirer_merchant_id?: string;
|
|
38
|
+
}[];
|
|
39
|
+
};
|
|
40
|
+
tokenization_specification?: {
|
|
41
|
+
type: 'PAYMENT_GATEWAY';
|
|
42
|
+
parameters: {
|
|
43
|
+
[key: string]: string;
|
|
44
|
+
};
|
|
45
|
+
} | {
|
|
46
|
+
type: 'DIRECT';
|
|
47
|
+
parameters: {
|
|
48
|
+
protocol_version: string;
|
|
49
|
+
public_key: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export {};
|
|
54
|
+
//# sourceMappingURL=google-pay-meta.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google-pay-meta.interface.d.ts","sourceRoot":"","sources":["../../../../src/open-wallets/interfaces/google-pay/google-pay-meta.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,KAAK,EACV,oBAAoB,EACpB,uBAAuB,EACvB,mBAAmB,EACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EACV,cAAc,EACd,oBAAoB,EACrB,MAAM,+BAA+B,CAAC;AAEvC,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,gBAAgB,CAAC;AAChE,MAAM,MAAM,oBAAoB,GAC5B,MAAM,GACN,UAAU,GACV,UAAU,GACV,KAAK,GACL,WAAW,GACX,SAAS,GACT,KAAK,GACL,SAAS,GACT,YAAY,GACZ,MAAM,CAAC;AACX,KAAK,oBAAoB,GAAG,KAAK,GAAG,MAAM,CAAC;AAE3C,MAAM,WAAW,6BAA8B,SAAQ,oBAAoB;IACzE,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC,gBAAgB,CAAC,EAAE,uBAAuB,CAAC;IAC3C,YAAY,CAAC,EAAE,oBAAoB,CAAC;CACrC;AAED,MAAM,WAAW,uBAAwB,SAAQ,cAAc;IAC7D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,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