@odus/checkout 1.11.3 → 1.13.0
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 +16 -16
- package/dist/api/createApplePaySession.mutation.d.ts.map +1 -1
- package/dist/api/getCheckoutDetails.query.d.ts.map +1 -1
- package/dist/checkout.es.js +160 -141
- package/dist/components/checkout/form/Form.d.ts +7 -0
- package/dist/components/checkout/form/Form.d.ts.map +1 -1
- package/dist/components/checkout/form/FormComponentManager.d.ts +2 -1
- package/dist/components/checkout/form/FormComponentManager.d.ts.map +1 -1
- package/dist/components/payment-methods/applePay/ApplePayButton.d.ts +1 -0
- package/dist/components/payment-methods/applePay/ApplePayButton.d.ts.map +1 -1
- package/dist/core/api/CheckoutAPI.service.d.ts.map +1 -1
- package/dist/core/constants/apiRoutes.constants.d.ts +14 -0
- package/dist/core/constants/apiRoutes.constants.d.ts.map +1 -0
- package/dist/elements/BaseElement.d.ts +8 -0
- package/dist/elements/BaseElement.d.ts.map +1 -1
- package/dist/elements/CardElement.d.ts +10 -3
- package/dist/elements/CardElement.d.ts.map +1 -1
- package/dist/elements/OdusElements.d.ts +8 -0
- package/dist/elements/OdusElements.d.ts.map +1 -1
- package/dist/elements/card/VgsCardAdapter.d.ts +2 -0
- package/dist/elements/card/VgsCardAdapter.d.ts.map +1 -1
- package/dist/elements.es.js +247 -215
- package/dist/phone.js +8 -14
- package/dist/services/checkout/Checkout.service.d.ts +2 -0
- package/dist/services/checkout/Checkout.service.d.ts.map +1 -1
- package/dist/services/checkout/CheckoutForm.service.d.ts +2 -0
- package/dist/services/checkout/CheckoutForm.service.d.ts.map +1 -1
- package/dist/services/telemetry/LoadTimer.service.d.ts +28 -0
- package/dist/services/telemetry/LoadTimer.service.d.ts.map +1 -0
- package/dist/services/telemetry/Telemetry.service.d.ts.map +1 -1
- package/dist/shared.js +633 -583
- package/dist/types/telemetry/TelemetryEvents.type.d.ts +35 -0
- package/dist/types/telemetry/TelemetryEvents.type.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/api/getSupportedPaymentMethods.query.d.ts +0 -7
- package/dist/api/getSupportedPaymentMethods.query.d.ts.map +0 -1
|
@@ -17,6 +17,7 @@ export declare const CheckoutEvents: {
|
|
|
17
17
|
readonly VGS_TOKENIZATION_SUCCESS: "vgs.tokenization.success";
|
|
18
18
|
readonly VGS_TOKENIZATION_FAILED: "vgs.tokenization.failed";
|
|
19
19
|
readonly CARD_CAPTURE_UNAVAILABLE: "card.capture.unavailable";
|
|
20
|
+
readonly APPLE_PAY_START_FAILED: "apple_pay.start.failed";
|
|
20
21
|
};
|
|
21
22
|
export type CheckoutEventName = (typeof CheckoutEvents)[keyof typeof CheckoutEvents];
|
|
22
23
|
export declare const CheckoutMeasurements: {
|
|
@@ -79,4 +80,38 @@ export declare const CardCaptureUnavailableReasons: {
|
|
|
79
80
|
readonly NO_TOKENIZATION_SESSION: "no_tokenization_session";
|
|
80
81
|
};
|
|
81
82
|
export type CardCaptureUnavailableReason = (typeof CardCaptureUnavailableReasons)[keyof typeof CardCaptureUnavailableReasons];
|
|
83
|
+
/**
|
|
84
|
+
* The shopper tapped Apple Pay and could not pay with it. `stage` says where
|
|
85
|
+
* the session stopped. A shopper who closes the sheet does not send this.
|
|
86
|
+
*/
|
|
87
|
+
export type ApplePayStartFailedAttributes = {
|
|
88
|
+
payment_id: string;
|
|
89
|
+
stage: ApplePayStartFailedStage;
|
|
90
|
+
error_message: string;
|
|
91
|
+
};
|
|
92
|
+
export declare const ApplePayStartFailedStages: {
|
|
93
|
+
/** The session could not be created or begun. */
|
|
94
|
+
readonly SESSION_START: "session_start";
|
|
95
|
+
/** The merchant session could not be fetched, decoded or completed. */
|
|
96
|
+
readonly MERCHANT_VALIDATION: "merchant_validation";
|
|
97
|
+
};
|
|
98
|
+
export type ApplePayStartFailedStage = (typeof ApplePayStartFailedStages)[keyof typeof ApplePayStartFailedStages];
|
|
99
|
+
/**
|
|
100
|
+
* Why a checkout load ended without the checkout becoming ready. Sent as the
|
|
101
|
+
* `reason` of `checkout.load_time` and `form.render_time` when `status` is
|
|
102
|
+
* `failed`.
|
|
103
|
+
*/
|
|
104
|
+
export declare const CheckoutLoadFailureReasons: {
|
|
105
|
+
readonly ASSOCIATION_FAILED: "association_failed";
|
|
106
|
+
readonly INIT_FAILED: "init_failed";
|
|
107
|
+
readonly FIELDS_NOT_READY: "fields_not_ready";
|
|
108
|
+
readonly NO_TOKENIZATION_SESSION: "no_tokenization_session";
|
|
109
|
+
};
|
|
110
|
+
export type CheckoutLoadFailureReason = (typeof CheckoutLoadFailureReasons)[keyof typeof CheckoutLoadFailureReasons];
|
|
111
|
+
export type CheckoutLoadOutcome = {
|
|
112
|
+
status: 'ready';
|
|
113
|
+
} | {
|
|
114
|
+
status: 'failed';
|
|
115
|
+
reason: CheckoutLoadFailureReason;
|
|
116
|
+
};
|
|
82
117
|
//# sourceMappingURL=TelemetryEvents.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TelemetryEvents.type.d.ts","sourceRoot":"","sources":["../../../src/types/telemetry/TelemetryEvents.type.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"TelemetryEvents.type.d.ts","sourceRoot":"","sources":["../../../src/types/telemetry/TelemetryEvents.type.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;CAmCjB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAC3B,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAMvD,eAAO,MAAM,oBAAoB;;;;;;CAMvB,CAAC;AAEX,MAAM,MAAM,uBAAuB,GACjC,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAMnE,MAAM,MAAM,6BAA6B,GAAG;IAC1C,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,M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BAA6B,GAAG;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,wBAAwB,CAAC;IAChC,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,yBAAyB;IACpC,iDAAiD;;IAEjD,uEAAuE;;CAE/D,CAAC;AAEX,MAAM,MAAM,wBAAwB,GAClC,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC;AAE7E;;;;GAIG;AACH,eAAO,MAAM,0BAA0B;;;;;CAG7B,CAAC;AAEX,MAAM,MAAM,yBAAyB,GACnC,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,OAAO,0BAA0B,CAAC,CAAC;AAE/E,MAAM,MAAM,mBAAmB,GAC7B;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,GAAG;IAAE,MAAM,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,yBAAyB,CAAA;CAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odus/checkout",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"displayName": "
|
|
3
|
+
"version": "1.13.0",
|
|
4
|
+
"displayName": "ODUS Checkout SDK",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"odus",
|
|
7
7
|
"checkout",
|
|
@@ -132,6 +132,6 @@
|
|
|
132
132
|
"dependencies": {
|
|
133
133
|
"@types/applepayjs": "^14.0.9",
|
|
134
134
|
"@vgs/collect-js": "^0.8.0",
|
|
135
|
-
"libphonenumber-js": "^1.13.
|
|
135
|
+
"libphonenumber-js": "^1.13.14"
|
|
136
136
|
}
|
|
137
137
|
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Environment } from '../types/checkout/CheckoutConfig.type';
|
|
2
|
-
export declare const getSupportedPaymentMethods: ({ id, checkoutKey, environment, }: {
|
|
3
|
-
id: string;
|
|
4
|
-
checkoutKey: string;
|
|
5
|
-
environment: Environment;
|
|
6
|
-
}) => Promise<any>;
|
|
7
|
-
//# sourceMappingURL=getSupportedPaymentMethods.query.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getSupportedPaymentMethods.query.d.ts","sourceRoot":"","sources":["../../src/api/getSupportedPaymentMethods.query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAGzE,eAAO,MAAM,0BAA0B,GAAU,mCAI9C;IACD,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,WAAW,CAAC;CAC1B,iBAmBA,CAAC"}
|