@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
package/package.json
CHANGED
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
106
|
"name": "@paydock/client-sdk",
|
|
107
|
-
"version": "1.
|
|
107
|
+
"version": "1.133.1-beta",
|
|
108
108
|
"scripts": {
|
|
109
109
|
"build:doc": "node docs/html/marked.js",
|
|
110
110
|
"build:js": "rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript",
|
|
@@ -216,6 +216,9 @@
|
|
|
216
216
|
"vitest": "3.0.5",
|
|
217
217
|
"zod": "3.23.8"
|
|
218
218
|
},
|
|
219
|
+
"overrides": {
|
|
220
|
+
"sha.js@>=2.0.0 <=2.4.11": "2.4.12"
|
|
221
|
+
},
|
|
219
222
|
"engines": {
|
|
220
223
|
"node": ">=16.0.0"
|
|
221
224
|
},
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { ApiInternal } from '../../api/api-internal';
|
|
2
|
-
import { Container } from '../../components/container';
|
|
3
|
-
import { EventEmitter } from '../../helper/event-emitter';
|
|
4
|
-
import type { BaseServiceConfig, BaseWalletMeta, OnClickEventData, OnCrateOTTSuccessfulEventData, OnErrorEventData, OnUnavailableEventData, WalletPaymentSource } from '../interfaces';
|
|
5
|
-
import type { CreateOTTRequest, CreateOTTResponse, WalletType } from '../types';
|
|
6
|
-
export declare abstract class BaseOpenWallet<T extends BaseWalletMeta> implements WalletPaymentSource {
|
|
7
|
-
protected container: Container;
|
|
8
|
-
protected api: ApiInternal;
|
|
9
|
-
protected env: string;
|
|
10
|
-
protected serviceId: string;
|
|
11
|
-
protected meta: T;
|
|
12
|
-
protected eventEmitter: EventEmitter;
|
|
13
|
-
abstract readonly walletType: WalletType;
|
|
14
|
-
constructor(selector: string, publicKeyOrAccessToken: string, serviceId: string, meta: T, requiredMetaFields: string[]);
|
|
15
|
-
private getApiAuthType;
|
|
16
|
-
setEnv(env: string, alias?: string): void;
|
|
17
|
-
private validateRequiredMetaFields;
|
|
18
|
-
abstract load(): void;
|
|
19
|
-
abstract setMeta(meta: object): void;
|
|
20
|
-
onClick(handler: (data: OnClickEventData) => Promise<string>): () => void;
|
|
21
|
-
onSuccess(handler?: (data: OnCrateOTTSuccessfulEventData) => void): Promise<unknown> | (() => void);
|
|
22
|
-
onUnavailable(handler?: (data: OnUnavailableEventData) => void): Promise<unknown> | (() => void);
|
|
23
|
-
onError(handler?: (data: OnErrorEventData) => void): Promise<unknown> | (() => void);
|
|
24
|
-
protected getServiceWalletConfig<K>(): Promise<BaseServiceConfig<K>>;
|
|
25
|
-
protected executeOpenWalletCallback<K, U extends {
|
|
26
|
-
request_type: string;
|
|
27
|
-
}>(data: U): Promise<K>;
|
|
28
|
-
protected createOTT(data: CreateOTTRequest): Promise<CreateOTTResponse>;
|
|
29
|
-
protected handleOnError(error: Error): void;
|
|
30
|
-
protected handleOnUnavailable(reason?: string): void;
|
|
31
|
-
destroy(): void;
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=base-open-wallet.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base-open-wallet.d.ts","sourceRoot":"","sources":["../../../src/open-wallets/base/base-open-wallet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAEpE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAGvD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,6BAA6B,EAE7B,gBAAgB,EAChB,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEhF,8BAAsB,cAAc,CAAC,CAAC,SAAS,cAAc,CAC3D,YAAW,mBAAmB;IAE9B,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC;IAC/B,SAAS,CAAC,GAAG,EAAE,WAAW,CAAC;IAC3B,SAAS,CAAC,GAAG,SAAe;IAC5B,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC;IAClB,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IAErC,kBAAyB,UAAU,EAAE,UAAU,CAAC;gBAG9C,QAAQ,EAAE,MAAM,EAChB,sBAAsB,EAAE,MAAM,EAC9B,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,CAAC,EACP,kBAAkB,EAAE,MAAM,EAAE;IAa9B,OAAO,CAAC,cAAc;IAOf,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;IAKhD,OAAO,CAAC,0BAA0B;aAYlB,IAAI,IAAI,IAAI;aAEZ,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAMpC,OAAO,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,OAAO,CAAC,MAAM,CAAC;IAS5D,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,6BAA6B,KAAK,IAAI;IASjE,aAAa,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,sBAAsB,KAAK,IAAI;IAW9D,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI;IAezD,SAAS,CAAC,sBAAsB,CAAC,CAAC,KAAK,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;cA0CpD,yBAAyB,CAAC,CAAC,EAAE,CAAC,SAAS;QAAE,YAAY,EAAE,MAAM,CAAA;KAAE,EAC7E,IAAI,EAAE,CAAC,GACN,OAAO,CAAC,CAAC,CAAC;IA0Bb,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IA4CvE,SAAS,CAAC,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAgB3C,SAAS,CAAC,mBAAmB,CAAC,MAAM,SAAyB,GAAG,IAAI;IAgB7D,OAAO,IAAI,IAAI;CAMvB"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export interface BaseServiceConfig<T = Record<string, unknown>> {
|
|
2
|
-
type: string;
|
|
3
|
-
credentials?: T;
|
|
4
|
-
meta?: Record<string, unknown>;
|
|
5
|
-
}
|
|
6
|
-
export interface ApplePayServiceConfig {
|
|
7
|
-
apple: {
|
|
8
|
-
merchant: {
|
|
9
|
-
merchant_id: string;
|
|
10
|
-
domain_name: string;
|
|
11
|
-
display_name: string;
|
|
12
|
-
};
|
|
13
|
-
certificate: {
|
|
14
|
-
certificate_id: string;
|
|
15
|
-
private_key: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export interface GooglePayServiceConfig {
|
|
20
|
-
google_pay: {
|
|
21
|
-
merchant: {
|
|
22
|
-
merchant_id: string;
|
|
23
|
-
merchant_name: string;
|
|
24
|
-
};
|
|
25
|
-
gateway_merchant_id: string;
|
|
26
|
-
allowed_auth_methods: string[];
|
|
27
|
-
allowed_card_networks: string[];
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=base-service-config.interface.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base-service-config.interface.d.ts","sourceRoot":"","sources":["../../../src/open-wallets/interfaces/base-service-config.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC5D,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,CAAC,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE;QACL,QAAQ,EAAE;YACR,WAAW,EAAE,MAAM,CAAC;YACpB,WAAW,EAAE,MAAM,CAAC;YACpB,YAAY,EAAE,MAAM,CAAC;SACtB,CAAC;QAEF,WAAW,EAAE;YACX,cAAc,EAAE,MAAM,CAAC;YACvB,WAAW,EAAE,MAAM,CAAC;SACrB,CAAC;KACH,CAAC;CACH;AAED,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE;QACV,QAAQ,EAAE;YACR,WAAW,EAAE,MAAM,CAAC;YACpB,aAAa,EAAE,MAAM,CAAC;SACvB,CAAC;QAEF,mBAAmB,EAAE,MAAM,CAAC;QAC5B,oBAAoB,EAAE,MAAM,EAAE,CAAC;QAC/B,qBAAqB,EAAE,MAAM,EAAE,CAAC;KACjC,CAAC;CACH"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base-wallet-meta.interface.d.ts","sourceRoot":"","sources":["../../../src/open-wallets/interfaces/base-wallet-meta.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Open Wallets - Services
|
|
3
|
-
*
|
|
4
|
-
* This module exports all service implementations for the Open Wallets system.
|
|
5
|
-
* These services provide the core business logic for OTT handling and error management.
|
|
6
|
-
*
|
|
7
|
-
* Currently no services are implemented in this module.
|
|
8
|
-
*/
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/open-wallets/services/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/// <reference types="applepayjs" />
|
|
2
|
-
/// <reference types="googlepay" />
|
|
3
|
-
export interface CreateOTTResponse {
|
|
4
|
-
status: number;
|
|
5
|
-
error: string | null;
|
|
6
|
-
resource: {
|
|
7
|
-
type: string;
|
|
8
|
-
data: {
|
|
9
|
-
token: string;
|
|
10
|
-
'3ds_required': boolean;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
export interface CreateOTTRequest {
|
|
15
|
-
checkoutData: CheckoutResponse;
|
|
16
|
-
}
|
|
17
|
-
export type CheckoutResponse = ApplePayJS.ApplePayPaymentAuthorizedEvent | google.payments.api.PaymentAuthorizationResult;
|
|
18
|
-
export declare enum CheckoutActionCode {
|
|
19
|
-
COMPLETE = "COMPLETE",
|
|
20
|
-
CANCEL = "CANCEL",
|
|
21
|
-
ERROR = "ERROR",
|
|
22
|
-
CHANGE_CARD = "CHANGE_CARD",
|
|
23
|
-
ADD_CARD = "ADD_CARD",
|
|
24
|
-
SWITCH_CONSUMER = "SWITCH_CONSUMER"
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=ott-backend.type.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ott-backend.type.d.ts","sourceRoot":"","sources":["../../../src/open-wallets/types/ott-backend.type.ts"],"names":[],"mappings":";;AAAA,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE;QACR,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE;YACJ,KAAK,EAAE,MAAM,CAAC;YACd,cAAc,EAAE,OAAO,CAAC;SACzB,CAAC;KACH,CAAC;CACH;AAED,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,gBAAgB,CAAC;CAChC;AAED,MAAM,MAAM,gBAAgB,GACxB,UAAU,CAAC,8BAA8B,GACzC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,0BAA0B,CAAC;AAEnD,oBAAY,kBAAkB;IAC5B,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,eAAe,oBAAoB;CACpC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ott-response.type.d.ts","sourceRoot":"","sources":["../../../src/open-wallets/types/ott-response.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,WAAW,EAAE,UAAU,CAAC;CACzB"}
|