@cimplify/sdk 0.8.5 → 0.8.7
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/advanced.d.mts +1 -1
- package/dist/advanced.d.ts +1 -1
- package/dist/advanced.js +113 -1
- package/dist/advanced.mjs +113 -1
- package/dist/{client-iRG2DBq0.d.mts → client-6MsOWo8f.d.mts} +19 -1
- package/dist/{client-8SahVQEy.d.ts → client-CVJ0S99a.d.ts} +19 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +113 -1
- package/dist/index.mjs +113 -1
- package/dist/react.d.mts +28 -2
- package/dist/react.d.ts +28 -2
- package/dist/react.js +309 -17
- package/dist/react.mjs +309 -18
- package/package.json +1 -1
package/dist/advanced.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AuthService, B as BusinessService, i as CartOperations, b as CatalogueQueries, j as CheckoutOperations, j as CheckoutService, t as CimplifyElement, s as CimplifyElements, v as ELEMENT_TYPES, E as EVENT_TYPES, z as ElementEventType, x as ElementOptions, y as ElementType, w as ElementsOptions, F as FetchQuoteInput, q as FxService, G as GetProductsOptions, I as InventoryService, L as LinkService, p as LiteService, M as MESSAGE_TYPES, O as OrderQueries, P as PriceQuote, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, h as RefreshQuoteResult, o as SchedulingService, S as SearchOptions, u as createElements, k as generateIdempotencyKey } from './client-
|
|
1
|
+
export { A as AuthService, B as BusinessService, i as CartOperations, b as CatalogueQueries, j as CheckoutOperations, j as CheckoutService, t as CimplifyElement, s as CimplifyElements, v as ELEMENT_TYPES, E as EVENT_TYPES, z as ElementEventType, x as ElementOptions, y as ElementType, w as ElementsOptions, F as FetchQuoteInput, q as FxService, G as GetProductsOptions, I as InventoryService, L as LinkService, p as LiteService, M as MESSAGE_TYPES, O as OrderQueries, P as PriceQuote, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, h as RefreshQuoteResult, o as SchedulingService, S as SearchOptions, u as createElements, k as generateIdempotencyKey } from './client-6MsOWo8f.mjs';
|
|
2
2
|
import './payment-CLIWNMaP.mjs';
|
|
3
3
|
|
|
4
4
|
type Operator = "==" | "!=" | ">" | "<" | ">=" | "<=" | "contains" | "startsWith";
|
package/dist/advanced.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AuthService, B as BusinessService, i as CartOperations, b as CatalogueQueries, j as CheckoutOperations, j as CheckoutService, t as CimplifyElement, s as CimplifyElements, v as ELEMENT_TYPES, E as EVENT_TYPES, z as ElementEventType, x as ElementOptions, y as ElementType, w as ElementsOptions, F as FetchQuoteInput, q as FxService, G as GetProductsOptions, I as InventoryService, L as LinkService, p as LiteService, M as MESSAGE_TYPES, O as OrderQueries, P as PriceQuote, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, h as RefreshQuoteResult, o as SchedulingService, S as SearchOptions, u as createElements, k as generateIdempotencyKey } from './client-
|
|
1
|
+
export { A as AuthService, B as BusinessService, i as CartOperations, b as CatalogueQueries, j as CheckoutOperations, j as CheckoutService, t as CimplifyElement, s as CimplifyElements, v as ELEMENT_TYPES, E as EVENT_TYPES, z as ElementEventType, x as ElementOptions, y as ElementType, w as ElementsOptions, F as FetchQuoteInput, q as FxService, G as GetProductsOptions, I as InventoryService, L as LinkService, p as LiteService, M as MESSAGE_TYPES, O as OrderQueries, P as PriceQuote, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, h as RefreshQuoteResult, o as SchedulingService, S as SearchOptions, u as createElements, k as generateIdempotencyKey } from './client-CVJ0S99a.js';
|
|
2
2
|
import './payment-CLIWNMaP.js';
|
|
3
3
|
|
|
4
4
|
type Operator = "==" | "!=" | ">" | "<" | ">=" | "<=" | "contains" | "startsWith";
|
package/dist/advanced.js
CHANGED
|
@@ -799,6 +799,10 @@ var DEFAULT_POLL_INTERVAL_MS = 3e3;
|
|
|
799
799
|
var DEFAULT_MAX_POLL_ATTEMPTS = 60;
|
|
800
800
|
var MAX_CONSECUTIVE_NETWORK_ERRORS = 5;
|
|
801
801
|
var CARD_PROVIDER_PAYSTACK = "paystack";
|
|
802
|
+
var NEXT_ACTION_NONE = "none";
|
|
803
|
+
var NEXT_ACTION_CARD_POPUP = "card_popup";
|
|
804
|
+
var NEXT_ACTION_REDIRECT = "redirect";
|
|
805
|
+
var NEXT_ACTION_AUTHORIZATION = "authorization";
|
|
802
806
|
function normalizeCardPopupError(error) {
|
|
803
807
|
if (!error || error === "PAYMENT_CANCELLED" || error === "CANCELLED") {
|
|
804
808
|
return "PAYMENT_CANCELLED";
|
|
@@ -838,7 +842,8 @@ function isValidMobileMoneyProvider(value) {
|
|
|
838
842
|
return VALID_MOBILE_MONEY_PROVIDERS.has(value);
|
|
839
843
|
}
|
|
840
844
|
function normalizeAuthorizationType(value) {
|
|
841
|
-
|
|
845
|
+
const lower = value?.toLowerCase();
|
|
846
|
+
return lower === "otp" || lower === "pin" ? lower : void 0;
|
|
842
847
|
}
|
|
843
848
|
function formatMoney2(value) {
|
|
844
849
|
if (typeof value === "number" && Number.isFinite(value)) {
|
|
@@ -885,6 +890,9 @@ var CheckoutResolver = class {
|
|
|
885
890
|
if (!checkoutResult.order_id) {
|
|
886
891
|
return this.fail("CHECKOUT_FAILED", "Checkout did not return an order ID.", false);
|
|
887
892
|
}
|
|
893
|
+
if (checkoutResult.next_action) {
|
|
894
|
+
return this.resolveNextAction(checkoutResult);
|
|
895
|
+
}
|
|
888
896
|
let latestCheckoutResult = checkoutResult;
|
|
889
897
|
let authorizationType = normalizeAuthorizationType(checkoutResult.authorization_type);
|
|
890
898
|
let paymentReference = checkoutResult.payment_reference;
|
|
@@ -1000,6 +1008,110 @@ var CheckoutResolver = class {
|
|
|
1000
1008
|
return this.fail("CHECKOUT_FAILED", message, true);
|
|
1001
1009
|
}
|
|
1002
1010
|
}
|
|
1011
|
+
async resolveNextAction(checkoutResult) {
|
|
1012
|
+
const action = checkoutResult.next_action;
|
|
1013
|
+
if (this.isSuccessfulStatus(checkoutResult.payment_status)) {
|
|
1014
|
+
return this.finalizeSuccess(checkoutResult);
|
|
1015
|
+
}
|
|
1016
|
+
let latestCheckoutResult = checkoutResult;
|
|
1017
|
+
let paymentReference = checkoutResult.payment_reference;
|
|
1018
|
+
switch (action.type) {
|
|
1019
|
+
case NEXT_ACTION_NONE:
|
|
1020
|
+
return this.finalizeSuccess(checkoutResult);
|
|
1021
|
+
case NEXT_ACTION_CARD_POPUP: {
|
|
1022
|
+
const provider = normalizeCardProvider(action.provider);
|
|
1023
|
+
this.emit("awaiting_authorization", {
|
|
1024
|
+
display_text: "Complete payment in the card authorization popup.",
|
|
1025
|
+
order_id: checkoutResult.order_id,
|
|
1026
|
+
order_number: checkoutResult.order_number
|
|
1027
|
+
});
|
|
1028
|
+
if (!this.allowPopups) {
|
|
1029
|
+
return this.fail(
|
|
1030
|
+
"PROVIDER_UNAVAILABLE",
|
|
1031
|
+
"Card payment popup is unavailable in this environment.",
|
|
1032
|
+
false
|
|
1033
|
+
);
|
|
1034
|
+
}
|
|
1035
|
+
const popupResult = await openCardPopup(
|
|
1036
|
+
provider,
|
|
1037
|
+
checkoutResult,
|
|
1038
|
+
this.checkoutData.customer.email || "customer@cimplify.io",
|
|
1039
|
+
this.getOrderCurrency(checkoutResult),
|
|
1040
|
+
this.signal
|
|
1041
|
+
);
|
|
1042
|
+
if (!popupResult.success) {
|
|
1043
|
+
const popupError = normalizeCardPopupError(popupResult.error);
|
|
1044
|
+
if (popupError === "POPUP_BLOCKED") {
|
|
1045
|
+
return this.fail(
|
|
1046
|
+
"POPUP_BLOCKED",
|
|
1047
|
+
"Unable to open card payment popup. Please allow popups and try again.",
|
|
1048
|
+
true
|
|
1049
|
+
);
|
|
1050
|
+
}
|
|
1051
|
+
if (popupError === "PROVIDER_UNAVAILABLE") {
|
|
1052
|
+
return this.fail("PROVIDER_UNAVAILABLE", "Card payment provider is unavailable.", false);
|
|
1053
|
+
}
|
|
1054
|
+
return this.fail("PAYMENT_CANCELLED", "Card payment was cancelled before completion.", true);
|
|
1055
|
+
}
|
|
1056
|
+
paymentReference = popupResult.reference || paymentReference;
|
|
1057
|
+
break;
|
|
1058
|
+
}
|
|
1059
|
+
case NEXT_ACTION_REDIRECT: {
|
|
1060
|
+
if (typeof window !== "undefined" && this.returnUrl) {
|
|
1061
|
+
window.location.assign(action.authorization_url);
|
|
1062
|
+
return this.fail("REDIRECT_REQUIRED", "Redirecting to complete payment authorization.", true);
|
|
1063
|
+
}
|
|
1064
|
+
if (typeof window !== "undefined") {
|
|
1065
|
+
const popup = window.open(
|
|
1066
|
+
action.authorization_url,
|
|
1067
|
+
"cimplify-auth",
|
|
1068
|
+
"width=520,height=760,noopener,noreferrer"
|
|
1069
|
+
);
|
|
1070
|
+
if (!popup) {
|
|
1071
|
+
return this.fail(
|
|
1072
|
+
"POPUP_BLOCKED",
|
|
1073
|
+
"Authorization popup was blocked. Please allow popups and retry.",
|
|
1074
|
+
true
|
|
1075
|
+
);
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
break;
|
|
1079
|
+
}
|
|
1080
|
+
case NEXT_ACTION_AUTHORIZATION: {
|
|
1081
|
+
const authType = normalizeAuthorizationType(action.authorization_type);
|
|
1082
|
+
const authorization = await this.handleAuthorization({
|
|
1083
|
+
authorizationType: authType,
|
|
1084
|
+
paymentReference,
|
|
1085
|
+
displayText: action.display_text,
|
|
1086
|
+
provider: checkoutResult.provider
|
|
1087
|
+
});
|
|
1088
|
+
if (!authorization.ok) {
|
|
1089
|
+
return authorization.result;
|
|
1090
|
+
}
|
|
1091
|
+
if (authorization.value) {
|
|
1092
|
+
latestCheckoutResult = authorization.value;
|
|
1093
|
+
paymentReference = authorization.value.payment_reference || paymentReference;
|
|
1094
|
+
if (this.isSuccessfulStatus(authorization.value.payment_status)) {
|
|
1095
|
+
return this.finalizeSuccess(authorization.value);
|
|
1096
|
+
}
|
|
1097
|
+
if (this.isFailureStatus(authorization.value.payment_status)) {
|
|
1098
|
+
return this.fail(
|
|
1099
|
+
"AUTHORIZATION_FAILED",
|
|
1100
|
+
authorization.value.display_text || "Payment authorization failed.",
|
|
1101
|
+
false
|
|
1102
|
+
);
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
break;
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
return this.pollUntilTerminal({
|
|
1109
|
+
orderId: checkoutResult.order_id,
|
|
1110
|
+
latestCheckoutResult,
|
|
1111
|
+
paymentReference,
|
|
1112
|
+
authorizationType: normalizeAuthorizationType(checkoutResult.authorization_type)
|
|
1113
|
+
});
|
|
1114
|
+
}
|
|
1003
1115
|
async pollUntilTerminal(input) {
|
|
1004
1116
|
let consecutiveErrors = 0;
|
|
1005
1117
|
let latestCheckoutResult = input.latestCheckoutResult;
|
package/dist/advanced.mjs
CHANGED
|
@@ -797,6 +797,10 @@ var DEFAULT_POLL_INTERVAL_MS = 3e3;
|
|
|
797
797
|
var DEFAULT_MAX_POLL_ATTEMPTS = 60;
|
|
798
798
|
var MAX_CONSECUTIVE_NETWORK_ERRORS = 5;
|
|
799
799
|
var CARD_PROVIDER_PAYSTACK = "paystack";
|
|
800
|
+
var NEXT_ACTION_NONE = "none";
|
|
801
|
+
var NEXT_ACTION_CARD_POPUP = "card_popup";
|
|
802
|
+
var NEXT_ACTION_REDIRECT = "redirect";
|
|
803
|
+
var NEXT_ACTION_AUTHORIZATION = "authorization";
|
|
800
804
|
function normalizeCardPopupError(error) {
|
|
801
805
|
if (!error || error === "PAYMENT_CANCELLED" || error === "CANCELLED") {
|
|
802
806
|
return "PAYMENT_CANCELLED";
|
|
@@ -836,7 +840,8 @@ function isValidMobileMoneyProvider(value) {
|
|
|
836
840
|
return VALID_MOBILE_MONEY_PROVIDERS.has(value);
|
|
837
841
|
}
|
|
838
842
|
function normalizeAuthorizationType(value) {
|
|
839
|
-
|
|
843
|
+
const lower = value?.toLowerCase();
|
|
844
|
+
return lower === "otp" || lower === "pin" ? lower : void 0;
|
|
840
845
|
}
|
|
841
846
|
function formatMoney2(value) {
|
|
842
847
|
if (typeof value === "number" && Number.isFinite(value)) {
|
|
@@ -883,6 +888,9 @@ var CheckoutResolver = class {
|
|
|
883
888
|
if (!checkoutResult.order_id) {
|
|
884
889
|
return this.fail("CHECKOUT_FAILED", "Checkout did not return an order ID.", false);
|
|
885
890
|
}
|
|
891
|
+
if (checkoutResult.next_action) {
|
|
892
|
+
return this.resolveNextAction(checkoutResult);
|
|
893
|
+
}
|
|
886
894
|
let latestCheckoutResult = checkoutResult;
|
|
887
895
|
let authorizationType = normalizeAuthorizationType(checkoutResult.authorization_type);
|
|
888
896
|
let paymentReference = checkoutResult.payment_reference;
|
|
@@ -998,6 +1006,110 @@ var CheckoutResolver = class {
|
|
|
998
1006
|
return this.fail("CHECKOUT_FAILED", message, true);
|
|
999
1007
|
}
|
|
1000
1008
|
}
|
|
1009
|
+
async resolveNextAction(checkoutResult) {
|
|
1010
|
+
const action = checkoutResult.next_action;
|
|
1011
|
+
if (this.isSuccessfulStatus(checkoutResult.payment_status)) {
|
|
1012
|
+
return this.finalizeSuccess(checkoutResult);
|
|
1013
|
+
}
|
|
1014
|
+
let latestCheckoutResult = checkoutResult;
|
|
1015
|
+
let paymentReference = checkoutResult.payment_reference;
|
|
1016
|
+
switch (action.type) {
|
|
1017
|
+
case NEXT_ACTION_NONE:
|
|
1018
|
+
return this.finalizeSuccess(checkoutResult);
|
|
1019
|
+
case NEXT_ACTION_CARD_POPUP: {
|
|
1020
|
+
const provider = normalizeCardProvider(action.provider);
|
|
1021
|
+
this.emit("awaiting_authorization", {
|
|
1022
|
+
display_text: "Complete payment in the card authorization popup.",
|
|
1023
|
+
order_id: checkoutResult.order_id,
|
|
1024
|
+
order_number: checkoutResult.order_number
|
|
1025
|
+
});
|
|
1026
|
+
if (!this.allowPopups) {
|
|
1027
|
+
return this.fail(
|
|
1028
|
+
"PROVIDER_UNAVAILABLE",
|
|
1029
|
+
"Card payment popup is unavailable in this environment.",
|
|
1030
|
+
false
|
|
1031
|
+
);
|
|
1032
|
+
}
|
|
1033
|
+
const popupResult = await openCardPopup(
|
|
1034
|
+
provider,
|
|
1035
|
+
checkoutResult,
|
|
1036
|
+
this.checkoutData.customer.email || "customer@cimplify.io",
|
|
1037
|
+
this.getOrderCurrency(checkoutResult),
|
|
1038
|
+
this.signal
|
|
1039
|
+
);
|
|
1040
|
+
if (!popupResult.success) {
|
|
1041
|
+
const popupError = normalizeCardPopupError(popupResult.error);
|
|
1042
|
+
if (popupError === "POPUP_BLOCKED") {
|
|
1043
|
+
return this.fail(
|
|
1044
|
+
"POPUP_BLOCKED",
|
|
1045
|
+
"Unable to open card payment popup. Please allow popups and try again.",
|
|
1046
|
+
true
|
|
1047
|
+
);
|
|
1048
|
+
}
|
|
1049
|
+
if (popupError === "PROVIDER_UNAVAILABLE") {
|
|
1050
|
+
return this.fail("PROVIDER_UNAVAILABLE", "Card payment provider is unavailable.", false);
|
|
1051
|
+
}
|
|
1052
|
+
return this.fail("PAYMENT_CANCELLED", "Card payment was cancelled before completion.", true);
|
|
1053
|
+
}
|
|
1054
|
+
paymentReference = popupResult.reference || paymentReference;
|
|
1055
|
+
break;
|
|
1056
|
+
}
|
|
1057
|
+
case NEXT_ACTION_REDIRECT: {
|
|
1058
|
+
if (typeof window !== "undefined" && this.returnUrl) {
|
|
1059
|
+
window.location.assign(action.authorization_url);
|
|
1060
|
+
return this.fail("REDIRECT_REQUIRED", "Redirecting to complete payment authorization.", true);
|
|
1061
|
+
}
|
|
1062
|
+
if (typeof window !== "undefined") {
|
|
1063
|
+
const popup = window.open(
|
|
1064
|
+
action.authorization_url,
|
|
1065
|
+
"cimplify-auth",
|
|
1066
|
+
"width=520,height=760,noopener,noreferrer"
|
|
1067
|
+
);
|
|
1068
|
+
if (!popup) {
|
|
1069
|
+
return this.fail(
|
|
1070
|
+
"POPUP_BLOCKED",
|
|
1071
|
+
"Authorization popup was blocked. Please allow popups and retry.",
|
|
1072
|
+
true
|
|
1073
|
+
);
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
break;
|
|
1077
|
+
}
|
|
1078
|
+
case NEXT_ACTION_AUTHORIZATION: {
|
|
1079
|
+
const authType = normalizeAuthorizationType(action.authorization_type);
|
|
1080
|
+
const authorization = await this.handleAuthorization({
|
|
1081
|
+
authorizationType: authType,
|
|
1082
|
+
paymentReference,
|
|
1083
|
+
displayText: action.display_text,
|
|
1084
|
+
provider: checkoutResult.provider
|
|
1085
|
+
});
|
|
1086
|
+
if (!authorization.ok) {
|
|
1087
|
+
return authorization.result;
|
|
1088
|
+
}
|
|
1089
|
+
if (authorization.value) {
|
|
1090
|
+
latestCheckoutResult = authorization.value;
|
|
1091
|
+
paymentReference = authorization.value.payment_reference || paymentReference;
|
|
1092
|
+
if (this.isSuccessfulStatus(authorization.value.payment_status)) {
|
|
1093
|
+
return this.finalizeSuccess(authorization.value);
|
|
1094
|
+
}
|
|
1095
|
+
if (this.isFailureStatus(authorization.value.payment_status)) {
|
|
1096
|
+
return this.fail(
|
|
1097
|
+
"AUTHORIZATION_FAILED",
|
|
1098
|
+
authorization.value.display_text || "Payment authorization failed.",
|
|
1099
|
+
false
|
|
1100
|
+
);
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
break;
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
return this.pollUntilTerminal({
|
|
1107
|
+
orderId: checkoutResult.order_id,
|
|
1108
|
+
latestCheckoutResult,
|
|
1109
|
+
paymentReference,
|
|
1110
|
+
authorizationType: normalizeAuthorizationType(checkoutResult.authorization_type)
|
|
1111
|
+
});
|
|
1112
|
+
}
|
|
1001
1113
|
async pollUntilTerminal(input) {
|
|
1002
1114
|
let consecutiveErrors = 0;
|
|
1003
1115
|
let latestCheckoutResult = input.latestCheckoutResult;
|
|
@@ -1102,6 +1102,23 @@ interface CheckoutFormData {
|
|
|
1102
1102
|
pay_currency?: CurrencyCode;
|
|
1103
1103
|
fx_quote_id?: string;
|
|
1104
1104
|
}
|
|
1105
|
+
type NextAction = {
|
|
1106
|
+
type: "none";
|
|
1107
|
+
} | {
|
|
1108
|
+
type: "card_popup";
|
|
1109
|
+
provider: string;
|
|
1110
|
+
client_secret: string;
|
|
1111
|
+
public_key: string;
|
|
1112
|
+
} | {
|
|
1113
|
+
type: "redirect";
|
|
1114
|
+
authorization_url: string;
|
|
1115
|
+
} | {
|
|
1116
|
+
type: "authorization";
|
|
1117
|
+
authorization_type: AuthorizationType;
|
|
1118
|
+
display_text?: string;
|
|
1119
|
+
} | {
|
|
1120
|
+
type: "poll";
|
|
1121
|
+
};
|
|
1105
1122
|
interface CheckoutResult {
|
|
1106
1123
|
order_id: string;
|
|
1107
1124
|
order_number: string;
|
|
@@ -1116,6 +1133,7 @@ interface CheckoutResult {
|
|
|
1116
1133
|
provider?: string;
|
|
1117
1134
|
client_secret?: string;
|
|
1118
1135
|
public_key?: string;
|
|
1136
|
+
next_action?: NextAction;
|
|
1119
1137
|
fx?: {
|
|
1120
1138
|
base_currency: CurrencyCode;
|
|
1121
1139
|
base_amount: Money;
|
|
@@ -2323,4 +2341,4 @@ declare class CimplifyClient {
|
|
|
2323
2341
|
}
|
|
2324
2342
|
declare function createCimplifyClient(config?: CimplifyConfig): CimplifyClient;
|
|
2325
2343
|
|
|
2326
|
-
export { type
|
|
2344
|
+
export { type CheckoutStatusContext as $, AuthService as A, BusinessService as B, CimplifyClient as C, type CheckoutMode as D, EVENT_TYPES as E, type FetchQuoteInput as F, type GetProductsOptions as G, type CheckoutOrderType as H, InventoryService as I, type CheckoutPaymentMethod as J, type CheckoutStep as K, LinkService as L, MESSAGE_TYPES as M, type CheckoutFormData as N, OrderQueries as O, type PriceQuote as P, type QuoteCompositeSelectionInput as Q, type RefreshQuoteInput as R, type SearchOptions as S, type TableInfo as T, type UpdateProfileInput as U, type CheckoutResult as V, type NextAction as W, type ProcessCheckoutOptions as X, type ProcessCheckoutResult as Y, type ProcessAndResolveOptions as Z, type CheckoutStatus as _, type CimplifyConfig as a, type OrderFilter as a$, type AbortablePromise as a0, type MobileMoneyProvider as a1, type DeviceType as a2, type ContactType as a3, CHECKOUT_MODE as a4, ORDER_TYPE as a5, PAYMENT_METHOD as a6, CHECKOUT_STEP as a7, PAYMENT_STATE as a8, PICKUP_TIME_TYPE as a9, tryCatch as aA, combine as aB, combineObject as aC, type CatalogueResult as aD, type CatalogueSnapshot as aE, type OrderStatus as aF, type PaymentState as aG, type OrderChannel as aH, type LineType as aI, type OrderLineState as aJ, type OrderLineStatus as aK, type FulfillmentType as aL, type FulfillmentStatus as aM, type FulfillmentLink as aN, type OrderFulfillmentSummary as aO, type FeeBearerType as aP, type AmountToPay as aQ, type LineItem as aR, type Order as aS, type OrderHistory as aT, type OrderGroupPaymentState as aU, type OrderGroup as aV, type OrderGroupPayment as aW, type OrderSplitDetail as aX, type OrderGroupPaymentSummary as aY, type OrderGroupDetails as aZ, type OrderPaymentEvent as a_, MOBILE_MONEY_PROVIDER as aa, AUTHORIZATION_TYPE as ab, DEVICE_TYPE as ac, CONTACT_TYPE as ad, LINK_QUERY as ae, LINK_MUTATION as af, AUTH_MUTATION as ag, CHECKOUT_MUTATION as ah, PAYMENT_MUTATION as ai, ORDER_MUTATION as aj, DEFAULT_CURRENCY as ak, DEFAULT_COUNTRY as al, type Result as am, type Ok as an, type Err as ao, ok as ap, err as aq, isOk as ar, isErr as as, mapResult as at, mapError as au, flatMap as av, getOrElse as aw, unwrap as ax, toNullable as ay, fromPromise as az, CatalogueQueries as b, type VariantStock as b$, type CheckoutInput as b0, type UpdateOrderStatusInput as b1, type CancelOrderInput as b2, type RefundOrderInput as b3, type ServiceStatus as b4, type StaffRole as b5, type ReminderMethod as b6, type CustomerServicePreferences as b7, type BufferTimes as b8, type ReminderSettings as b9, type BusinessSettings as bA, type BusinessHours as bB, type CategoryInfo as bC, type Service as bD, type Staff as bE, type TimeSlot as bF, type AvailableSlot as bG, type DayAvailability as bH, type BookingStatus as bI, type Booking as bJ, type BookingWithDetails as bK, type CustomerBookingServiceItem as bL, type CustomerBooking as bM, type GetAvailableSlotsInput as bN, type CheckSlotAvailabilityInput as bO, type CheckSlotAvailabilityResult as bP, type RescheduleBookingInput as bQ, type CancelBookingInput as bR, type CancelBookingResult as bS, type RescheduleBookingResult as bT, type ServiceAvailabilityParams as bU, type ServiceAvailabilityResult as bV, type StockOwnershipType as bW, type StockStatus as bX, type Stock as bY, type StockLevel as bZ, type ProductStock as b_, type CancellationPolicy as ba, type ServiceNotes as bb, type PricingOverrides as bc, type SchedulingMetadata as bd, type StaffAssignment as be, type ResourceAssignment as bf, type SchedulingResult as bg, type DepositResult as bh, type ServiceScheduleRequest as bi, type StaffScheduleItem as bj, type LocationAppointment as bk, type BusinessType as bl, type BusinessPreferences as bm, type Business as bn, type LocationTaxBehavior as bo, type LocationTaxOverrides as bp, type Location as bq, type TimeRange as br, type TimeRanges as bs, type LocationTimeProfile as bt, type Table as bu, type Room as bv, type ServiceCharge as bw, type StorefrontBootstrap as bx, type BusinessWithLocations as by, type LocationWithDetails as bz, createCimplifyClient as c, type LocationStock as c0, type AvailabilityCheck as c1, type AvailabilityResult as c2, type InventorySummary as c3, type Customer as c4, type CustomerAddress as c5, type CustomerMobileMoney as c6, type CustomerLinkPreferences as c7, type LinkData as c8, type CreateAddressInput as c9, type RequestErrorEvent as cA, type RetryEvent as cB, type SessionChangeEvent as cC, type ObservabilityHooks as cD, type OrderType as cE, type ElementAppearance as cF, type AddressInfo as cG, type PaymentMethodInfo as cH, type AuthenticatedCustomer as cI, type ElementsCustomerInfo as cJ, type AuthenticatedData as cK, type ElementsCheckoutData as cL, type ElementsCheckoutResult as cM, type CheckoutCartItem as cN, type CheckoutCartData as cO, type ParentToIframeMessage as cP, type IframeToParentMessage as cQ, type ElementEventHandler as cR, type UpdateAddressInput as ca, type CreateMobileMoneyInput as cb, type EnrollmentData as cc, type AddressData as cd, type MobileMoneyData as ce, type EnrollAndLinkOrderInput as cf, type LinkStatusResult as cg, type LinkEnrollResult as ch, type EnrollAndLinkOrderResult as ci, type LinkSession as cj, type RevokeSessionResult as ck, type RevokeAllSessionsResult as cl, type RequestOtpInput as cm, type VerifyOtpInput as cn, type AuthResponse as co, type PickupTimeType as cp, type PickupTime as cq, type CheckoutAddressInfo as cr, type MobileMoneyDetails as cs, type CheckoutCustomerInfo as ct, type FxQuoteRequest as cu, type FxQuote as cv, type FxRateResponse as cw, type RequestContext as cx, type RequestStartEvent as cy, type RequestSuccessEvent as cz, type QuoteBundleSelectionInput as d, type QuoteStatus as e, type QuoteDynamicBuckets as f, type QuoteUiMessage as g, type RefreshQuoteResult as h, CartOperations as i, CheckoutService as j, generateIdempotencyKey as k, type GetOrdersOptions as l, type AuthStatus as m, type OtpResult as n, SchedulingService as o, LiteService as p, FxService as q, type LiteBootstrap as r, CimplifyElements as s, CimplifyElement as t, createElements as u, ELEMENT_TYPES as v, type ElementsOptions as w, type ElementOptions as x, type ElementType as y, type ElementEventType as z };
|
|
@@ -1102,6 +1102,23 @@ interface CheckoutFormData {
|
|
|
1102
1102
|
pay_currency?: CurrencyCode;
|
|
1103
1103
|
fx_quote_id?: string;
|
|
1104
1104
|
}
|
|
1105
|
+
type NextAction = {
|
|
1106
|
+
type: "none";
|
|
1107
|
+
} | {
|
|
1108
|
+
type: "card_popup";
|
|
1109
|
+
provider: string;
|
|
1110
|
+
client_secret: string;
|
|
1111
|
+
public_key: string;
|
|
1112
|
+
} | {
|
|
1113
|
+
type: "redirect";
|
|
1114
|
+
authorization_url: string;
|
|
1115
|
+
} | {
|
|
1116
|
+
type: "authorization";
|
|
1117
|
+
authorization_type: AuthorizationType;
|
|
1118
|
+
display_text?: string;
|
|
1119
|
+
} | {
|
|
1120
|
+
type: "poll";
|
|
1121
|
+
};
|
|
1105
1122
|
interface CheckoutResult {
|
|
1106
1123
|
order_id: string;
|
|
1107
1124
|
order_number: string;
|
|
@@ -1116,6 +1133,7 @@ interface CheckoutResult {
|
|
|
1116
1133
|
provider?: string;
|
|
1117
1134
|
client_secret?: string;
|
|
1118
1135
|
public_key?: string;
|
|
1136
|
+
next_action?: NextAction;
|
|
1119
1137
|
fx?: {
|
|
1120
1138
|
base_currency: CurrencyCode;
|
|
1121
1139
|
base_amount: Money;
|
|
@@ -2323,4 +2341,4 @@ declare class CimplifyClient {
|
|
|
2323
2341
|
}
|
|
2324
2342
|
declare function createCimplifyClient(config?: CimplifyConfig): CimplifyClient;
|
|
2325
2343
|
|
|
2326
|
-
export { type
|
|
2344
|
+
export { type CheckoutStatusContext as $, AuthService as A, BusinessService as B, CimplifyClient as C, type CheckoutMode as D, EVENT_TYPES as E, type FetchQuoteInput as F, type GetProductsOptions as G, type CheckoutOrderType as H, InventoryService as I, type CheckoutPaymentMethod as J, type CheckoutStep as K, LinkService as L, MESSAGE_TYPES as M, type CheckoutFormData as N, OrderQueries as O, type PriceQuote as P, type QuoteCompositeSelectionInput as Q, type RefreshQuoteInput as R, type SearchOptions as S, type TableInfo as T, type UpdateProfileInput as U, type CheckoutResult as V, type NextAction as W, type ProcessCheckoutOptions as X, type ProcessCheckoutResult as Y, type ProcessAndResolveOptions as Z, type CheckoutStatus as _, type CimplifyConfig as a, type OrderFilter as a$, type AbortablePromise as a0, type MobileMoneyProvider as a1, type DeviceType as a2, type ContactType as a3, CHECKOUT_MODE as a4, ORDER_TYPE as a5, PAYMENT_METHOD as a6, CHECKOUT_STEP as a7, PAYMENT_STATE as a8, PICKUP_TIME_TYPE as a9, tryCatch as aA, combine as aB, combineObject as aC, type CatalogueResult as aD, type CatalogueSnapshot as aE, type OrderStatus as aF, type PaymentState as aG, type OrderChannel as aH, type LineType as aI, type OrderLineState as aJ, type OrderLineStatus as aK, type FulfillmentType as aL, type FulfillmentStatus as aM, type FulfillmentLink as aN, type OrderFulfillmentSummary as aO, type FeeBearerType as aP, type AmountToPay as aQ, type LineItem as aR, type Order as aS, type OrderHistory as aT, type OrderGroupPaymentState as aU, type OrderGroup as aV, type OrderGroupPayment as aW, type OrderSplitDetail as aX, type OrderGroupPaymentSummary as aY, type OrderGroupDetails as aZ, type OrderPaymentEvent as a_, MOBILE_MONEY_PROVIDER as aa, AUTHORIZATION_TYPE as ab, DEVICE_TYPE as ac, CONTACT_TYPE as ad, LINK_QUERY as ae, LINK_MUTATION as af, AUTH_MUTATION as ag, CHECKOUT_MUTATION as ah, PAYMENT_MUTATION as ai, ORDER_MUTATION as aj, DEFAULT_CURRENCY as ak, DEFAULT_COUNTRY as al, type Result as am, type Ok as an, type Err as ao, ok as ap, err as aq, isOk as ar, isErr as as, mapResult as at, mapError as au, flatMap as av, getOrElse as aw, unwrap as ax, toNullable as ay, fromPromise as az, CatalogueQueries as b, type VariantStock as b$, type CheckoutInput as b0, type UpdateOrderStatusInput as b1, type CancelOrderInput as b2, type RefundOrderInput as b3, type ServiceStatus as b4, type StaffRole as b5, type ReminderMethod as b6, type CustomerServicePreferences as b7, type BufferTimes as b8, type ReminderSettings as b9, type BusinessSettings as bA, type BusinessHours as bB, type CategoryInfo as bC, type Service as bD, type Staff as bE, type TimeSlot as bF, type AvailableSlot as bG, type DayAvailability as bH, type BookingStatus as bI, type Booking as bJ, type BookingWithDetails as bK, type CustomerBookingServiceItem as bL, type CustomerBooking as bM, type GetAvailableSlotsInput as bN, type CheckSlotAvailabilityInput as bO, type CheckSlotAvailabilityResult as bP, type RescheduleBookingInput as bQ, type CancelBookingInput as bR, type CancelBookingResult as bS, type RescheduleBookingResult as bT, type ServiceAvailabilityParams as bU, type ServiceAvailabilityResult as bV, type StockOwnershipType as bW, type StockStatus as bX, type Stock as bY, type StockLevel as bZ, type ProductStock as b_, type CancellationPolicy as ba, type ServiceNotes as bb, type PricingOverrides as bc, type SchedulingMetadata as bd, type StaffAssignment as be, type ResourceAssignment as bf, type SchedulingResult as bg, type DepositResult as bh, type ServiceScheduleRequest as bi, type StaffScheduleItem as bj, type LocationAppointment as bk, type BusinessType as bl, type BusinessPreferences as bm, type Business as bn, type LocationTaxBehavior as bo, type LocationTaxOverrides as bp, type Location as bq, type TimeRange as br, type TimeRanges as bs, type LocationTimeProfile as bt, type Table as bu, type Room as bv, type ServiceCharge as bw, type StorefrontBootstrap as bx, type BusinessWithLocations as by, type LocationWithDetails as bz, createCimplifyClient as c, type LocationStock as c0, type AvailabilityCheck as c1, type AvailabilityResult as c2, type InventorySummary as c3, type Customer as c4, type CustomerAddress as c5, type CustomerMobileMoney as c6, type CustomerLinkPreferences as c7, type LinkData as c8, type CreateAddressInput as c9, type RequestErrorEvent as cA, type RetryEvent as cB, type SessionChangeEvent as cC, type ObservabilityHooks as cD, type OrderType as cE, type ElementAppearance as cF, type AddressInfo as cG, type PaymentMethodInfo as cH, type AuthenticatedCustomer as cI, type ElementsCustomerInfo as cJ, type AuthenticatedData as cK, type ElementsCheckoutData as cL, type ElementsCheckoutResult as cM, type CheckoutCartItem as cN, type CheckoutCartData as cO, type ParentToIframeMessage as cP, type IframeToParentMessage as cQ, type ElementEventHandler as cR, type UpdateAddressInput as ca, type CreateMobileMoneyInput as cb, type EnrollmentData as cc, type AddressData as cd, type MobileMoneyData as ce, type EnrollAndLinkOrderInput as cf, type LinkStatusResult as cg, type LinkEnrollResult as ch, type EnrollAndLinkOrderResult as ci, type LinkSession as cj, type RevokeSessionResult as ck, type RevokeAllSessionsResult as cl, type RequestOtpInput as cm, type VerifyOtpInput as cn, type AuthResponse as co, type PickupTimeType as cp, type PickupTime as cq, type CheckoutAddressInfo as cr, type MobileMoneyDetails as cs, type CheckoutCustomerInfo as ct, type FxQuoteRequest as cu, type FxQuote as cv, type FxRateResponse as cw, type RequestContext as cx, type RequestStartEvent as cy, type RequestSuccessEvent as cz, type QuoteBundleSelectionInput as d, type QuoteStatus as e, type QuoteDynamicBuckets as f, type QuoteUiMessage as g, type RefreshQuoteResult as h, CartOperations as i, CheckoutService as j, generateIdempotencyKey as k, type GetOrdersOptions as l, type AuthStatus as m, type OtpResult as n, SchedulingService as o, LiteService as p, FxService as q, type LiteBootstrap as r, CimplifyElements as s, CimplifyElement as t, createElements as u, ELEMENT_TYPES as v, type ElementsOptions as w, type ElementOptions as x, type ElementType as y, type ElementEventType as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { ab as AUTHORIZATION_TYPE, ag as AUTH_MUTATION, a0 as AbortablePromise, cd as AddressData, cG as AddressInfo, aQ as AmountToPay, co as AuthResponse, A as AuthService, m as AuthStatus, cI as AuthenticatedCustomer, cK as AuthenticatedData, c1 as AvailabilityCheck, c2 as AvailabilityResult, bG as AvailableSlot, bJ as Booking, bI as BookingStatus, bK as BookingWithDetails, b8 as BufferTimes, bn as Business, bB as BusinessHours, bm as BusinessPreferences, B as BusinessService, bA as BusinessSettings, bl as BusinessType, by as BusinessWithLocations, a4 as CHECKOUT_MODE, ah as CHECKOUT_MUTATION, a7 as CHECKOUT_STEP, ad as CONTACT_TYPE, bR as CancelBookingInput, bS as CancelBookingResult, b2 as CancelOrderInput, ba as CancellationPolicy, i as CartOperations, b as CatalogueQueries, aD as CatalogueResult, aE as CatalogueSnapshot, bC as CategoryInfo, bO as CheckSlotAvailabilityInput, bP as CheckSlotAvailabilityResult, cr as CheckoutAddressInfo, cO as CheckoutCartData, cN as CheckoutCartItem, ct as CheckoutCustomerInfo, N as CheckoutFormData, b0 as CheckoutInput, D as CheckoutMode, j as CheckoutOperations, H as CheckoutOrderType, J as CheckoutPaymentMethod, V as CheckoutResult, j as CheckoutService, _ as CheckoutStatus, $ as CheckoutStatusContext, K as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, t as CimplifyElement, s as CimplifyElements, a3 as ContactType, c9 as CreateAddressInput, cb as CreateMobileMoneyInput, c4 as Customer, c5 as CustomerAddress, bM as CustomerBooking, bL as CustomerBookingServiceItem, c7 as CustomerLinkPreferences, c6 as CustomerMobileMoney, b7 as CustomerServicePreferences, al as DEFAULT_COUNTRY, ak as DEFAULT_CURRENCY, ac as DEVICE_TYPE, bH as DayAvailability, bh as DepositResult, a2 as DeviceType, v as ELEMENT_TYPES, E as EVENT_TYPES, cF as ElementAppearance, cR as ElementEventHandler, z as ElementEventType, x as ElementOptions, y as ElementType, cL as ElementsCheckoutData, cM as ElementsCheckoutResult, cJ as ElementsCustomerInfo, w as ElementsOptions, cf as EnrollAndLinkOrderInput, ci as EnrollAndLinkOrderResult, cc as EnrollmentData, ao as Err, aP as FeeBearerType, F as FetchQuoteInput, aN as FulfillmentLink, aM as FulfillmentStatus, aL as FulfillmentType, cv as FxQuote, cu as FxQuoteRequest, cw as FxRateResponse, q as FxService, bN as GetAvailableSlotsInput, l as GetOrdersOptions, G as GetProductsOptions, cQ as IframeToParentMessage, I as InventoryService, c3 as InventorySummary, af as LINK_MUTATION, ae as LINK_QUERY, aR as LineItem, aI as LineType, c8 as LinkData, ch as LinkEnrollResult, L as LinkService, cj as LinkSession, cg as LinkStatusResult, r as LiteBootstrap, p as LiteService, bq as Location, bk as LocationAppointment, c0 as LocationStock, bo as LocationTaxBehavior, bp as LocationTaxOverrides, bt as LocationTimeProfile, bz as LocationWithDetails, M as MESSAGE_TYPES, aa as MOBILE_MONEY_PROVIDER, ce as MobileMoneyData, cs as MobileMoneyDetails, a1 as MobileMoneyProvider, W as NextAction, aj as ORDER_MUTATION, a5 as ORDER_TYPE, cD as ObservabilityHooks, an as Ok, aS as Order, aH as OrderChannel, a$ as OrderFilter, aO as OrderFulfillmentSummary, aV as OrderGroup, aZ as OrderGroupDetails, aW as OrderGroupPayment, aU as OrderGroupPaymentState, aY as OrderGroupPaymentSummary, aT as OrderHistory, aJ as OrderLineState, aK as OrderLineStatus, a_ as OrderPaymentEvent, O as OrderQueries, aX as OrderSplitDetail, aF as OrderStatus, cE as OrderType, n as OtpResult, a6 as PAYMENT_METHOD, ai as PAYMENT_MUTATION, a8 as PAYMENT_STATE, a9 as PICKUP_TIME_TYPE, cP as ParentToIframeMessage, cH as PaymentMethodInfo, aG as PaymentState, cq as PickupTime, cp as PickupTimeType, P as PriceQuote, bc as PricingOverrides, Z as ProcessAndResolveOptions, X as ProcessCheckoutOptions, Y as ProcessCheckoutResult, b_ as ProductStock, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, h as RefreshQuoteResult, b3 as RefundOrderInput, b6 as ReminderMethod, b9 as ReminderSettings, cx as RequestContext, cA as RequestErrorEvent, cm as RequestOtpInput, cy as RequestStartEvent, cz as RequestSuccessEvent, bQ as RescheduleBookingInput, bT as RescheduleBookingResult, bf as ResourceAssignment, am as Result, cB as RetryEvent, cl as RevokeAllSessionsResult, ck as RevokeSessionResult, bv as Room, bd as SchedulingMetadata, bg as SchedulingResult, o as SchedulingService, S as SearchOptions, bD as Service, bU as ServiceAvailabilityParams, bV as ServiceAvailabilityResult, bw as ServiceCharge, bb as ServiceNotes, bi as ServiceScheduleRequest, b4 as ServiceStatus, cC as SessionChangeEvent, bE as Staff, be as StaffAssignment, b5 as StaffRole, bj as StaffScheduleItem, bY as Stock, bZ as StockLevel, bW as StockOwnershipType, bX as StockStatus, bx as StorefrontBootstrap, bu as Table, T as TableInfo, br as TimeRange, bs as TimeRanges, bF as TimeSlot, ca as UpdateAddressInput, b1 as UpdateOrderStatusInput, U as UpdateProfileInput, b$ as VariantStock, cn as VerifyOtpInput, aB as combine, aC as combineObject, c as createCimplifyClient, u as createElements, aq as err, av as flatMap, az as fromPromise, k as generateIdempotencyKey, aw as getOrElse, as as isErr, ar as isOk, au as mapError, at as mapResult, ap as ok, ay as toNullable, aA as tryCatch, ax as unwrap } from './client-6MsOWo8f.mjs';
|
|
2
2
|
export { QueryBuilder, query } from './advanced.mjs';
|
|
3
3
|
import { A as ApiError } from './payment-CLIWNMaP.mjs';
|
|
4
4
|
export { B as AddOn, at as AddOnDetails, aP as AddOnGroupDetails, G as AddOnOption, aO as AddOnOptionDetails, H as AddOnOptionPrice, F as AddOnWithOptions, aU as AddToCartInput, ai as AdjustmentType, ap as AppliedDiscount, a_ as AuthorizationType, ao as BenefitType, T as Bundle, Y as BundleComponentData, _ as BundleComponentInfo, R as BundlePriceType, W as BundleProduct, ay as BundleSelectionData, aw as BundleSelectionInput, ax as BundleStoredSelection, U as BundleSummary, X as BundleWithDetails, aD as Cart, au as CartAddOn, ag as CartChannel, aE as CartItem, aR as CartItemDetails, af as CartStatus, aW as CartSummary, aF as CartTotals, K as Category, L as CategorySummary, an as ChosenPrice, h as CimplifyError, N as Collection, Q as CollectionProduct, O as CollectionSummary, a4 as ComponentGroup, a5 as ComponentGroupWithComponents, a9 as ComponentPriceBreakdown, a7 as ComponentSelectionInput, a1 as ComponentSourceType, a2 as Composite, a6 as CompositeComponent, aA as CompositePriceBreakdown, a8 as CompositePriceResult, $ as CompositePricingMode, aB as CompositeSelectionData, a7 as CompositeSelectionInput, az as CompositeStoredSelection, a3 as CompositeWithDetails, b as Currency, C as CurrencyCode, p as DepositType, D as DigitalProductType, aq as DiscountBreakdown, ar as DiscountDetails, aI as DisplayAddOn, aJ as DisplayAddOnOption, aG as DisplayCart, aH as DisplayCartItem, g as ERROR_HINTS, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, a0 as GroupPricingBehavior, b2 as InitializePaymentResult, I as InventoryType, aC as LineConfiguration, ac as LocationProductPrice, M as Money, d as Pagination, P as PaginationParams, b1 as Payment, b5 as PaymentErrorDetails, b0 as PaymentMethod, aZ as PaymentMethodType, a$ as PaymentProcessingState, aY as PaymentProvider, b3 as PaymentResponse, aX as PaymentStatus, b4 as PaymentStatusResponse, ab as Price, aj as PriceAdjustment, am as PriceDecisionPath, aa as PriceEntryType, al as PricePathTaxInfo, ah as PriceSource, q as Product, J as ProductAddOn, ad as ProductAvailability, o as ProductRenderHint, ae as ProductTimeProfile, n as ProductType, s as ProductVariant, x as ProductVariantValue, r as ProductWithDetails, S as SalesChannel, as as SelectedAddOnOption, b6 as SubmitAuthorizationInput, ak as TaxPathComponent, aS as UICart, aK as UICartBusiness, aM as UICartCustomer, aL as UICartLocation, aN as UICartPricing, aT as UICartResponse, aV as UpdateCartItemInput, u as VariantAxis, z as VariantAxisSelection, w as VariantAxisValue, v as VariantAxisWithValues, av as VariantDetails, aQ as VariantDetailsDTO, t as VariantDisplayAttribute, y as VariantLocationAvailability, V as VariantStrategy, Z as ZERO, c as currencyCode, k as enrichError, j as getErrorHint, i as isCimplifyError, l as isRetryableError, m as money, a as moneyFromNumber } from './payment-CLIWNMaP.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { ab as AUTHORIZATION_TYPE, ag as AUTH_MUTATION, a0 as AbortablePromise, cd as AddressData, cG as AddressInfo, aQ as AmountToPay, co as AuthResponse, A as AuthService, m as AuthStatus, cI as AuthenticatedCustomer, cK as AuthenticatedData, c1 as AvailabilityCheck, c2 as AvailabilityResult, bG as AvailableSlot, bJ as Booking, bI as BookingStatus, bK as BookingWithDetails, b8 as BufferTimes, bn as Business, bB as BusinessHours, bm as BusinessPreferences, B as BusinessService, bA as BusinessSettings, bl as BusinessType, by as BusinessWithLocations, a4 as CHECKOUT_MODE, ah as CHECKOUT_MUTATION, a7 as CHECKOUT_STEP, ad as CONTACT_TYPE, bR as CancelBookingInput, bS as CancelBookingResult, b2 as CancelOrderInput, ba as CancellationPolicy, i as CartOperations, b as CatalogueQueries, aD as CatalogueResult, aE as CatalogueSnapshot, bC as CategoryInfo, bO as CheckSlotAvailabilityInput, bP as CheckSlotAvailabilityResult, cr as CheckoutAddressInfo, cO as CheckoutCartData, cN as CheckoutCartItem, ct as CheckoutCustomerInfo, N as CheckoutFormData, b0 as CheckoutInput, D as CheckoutMode, j as CheckoutOperations, H as CheckoutOrderType, J as CheckoutPaymentMethod, V as CheckoutResult, j as CheckoutService, _ as CheckoutStatus, $ as CheckoutStatusContext, K as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, t as CimplifyElement, s as CimplifyElements, a3 as ContactType, c9 as CreateAddressInput, cb as CreateMobileMoneyInput, c4 as Customer, c5 as CustomerAddress, bM as CustomerBooking, bL as CustomerBookingServiceItem, c7 as CustomerLinkPreferences, c6 as CustomerMobileMoney, b7 as CustomerServicePreferences, al as DEFAULT_COUNTRY, ak as DEFAULT_CURRENCY, ac as DEVICE_TYPE, bH as DayAvailability, bh as DepositResult, a2 as DeviceType, v as ELEMENT_TYPES, E as EVENT_TYPES, cF as ElementAppearance, cR as ElementEventHandler, z as ElementEventType, x as ElementOptions, y as ElementType, cL as ElementsCheckoutData, cM as ElementsCheckoutResult, cJ as ElementsCustomerInfo, w as ElementsOptions, cf as EnrollAndLinkOrderInput, ci as EnrollAndLinkOrderResult, cc as EnrollmentData, ao as Err, aP as FeeBearerType, F as FetchQuoteInput, aN as FulfillmentLink, aM as FulfillmentStatus, aL as FulfillmentType, cv as FxQuote, cu as FxQuoteRequest, cw as FxRateResponse, q as FxService, bN as GetAvailableSlotsInput, l as GetOrdersOptions, G as GetProductsOptions, cQ as IframeToParentMessage, I as InventoryService, c3 as InventorySummary, af as LINK_MUTATION, ae as LINK_QUERY, aR as LineItem, aI as LineType, c8 as LinkData, ch as LinkEnrollResult, L as LinkService, cj as LinkSession, cg as LinkStatusResult, r as LiteBootstrap, p as LiteService, bq as Location, bk as LocationAppointment, c0 as LocationStock, bo as LocationTaxBehavior, bp as LocationTaxOverrides, bt as LocationTimeProfile, bz as LocationWithDetails, M as MESSAGE_TYPES, aa as MOBILE_MONEY_PROVIDER, ce as MobileMoneyData, cs as MobileMoneyDetails, a1 as MobileMoneyProvider, W as NextAction, aj as ORDER_MUTATION, a5 as ORDER_TYPE, cD as ObservabilityHooks, an as Ok, aS as Order, aH as OrderChannel, a$ as OrderFilter, aO as OrderFulfillmentSummary, aV as OrderGroup, aZ as OrderGroupDetails, aW as OrderGroupPayment, aU as OrderGroupPaymentState, aY as OrderGroupPaymentSummary, aT as OrderHistory, aJ as OrderLineState, aK as OrderLineStatus, a_ as OrderPaymentEvent, O as OrderQueries, aX as OrderSplitDetail, aF as OrderStatus, cE as OrderType, n as OtpResult, a6 as PAYMENT_METHOD, ai as PAYMENT_MUTATION, a8 as PAYMENT_STATE, a9 as PICKUP_TIME_TYPE, cP as ParentToIframeMessage, cH as PaymentMethodInfo, aG as PaymentState, cq as PickupTime, cp as PickupTimeType, P as PriceQuote, bc as PricingOverrides, Z as ProcessAndResolveOptions, X as ProcessCheckoutOptions, Y as ProcessCheckoutResult, b_ as ProductStock, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, h as RefreshQuoteResult, b3 as RefundOrderInput, b6 as ReminderMethod, b9 as ReminderSettings, cx as RequestContext, cA as RequestErrorEvent, cm as RequestOtpInput, cy as RequestStartEvent, cz as RequestSuccessEvent, bQ as RescheduleBookingInput, bT as RescheduleBookingResult, bf as ResourceAssignment, am as Result, cB as RetryEvent, cl as RevokeAllSessionsResult, ck as RevokeSessionResult, bv as Room, bd as SchedulingMetadata, bg as SchedulingResult, o as SchedulingService, S as SearchOptions, bD as Service, bU as ServiceAvailabilityParams, bV as ServiceAvailabilityResult, bw as ServiceCharge, bb as ServiceNotes, bi as ServiceScheduleRequest, b4 as ServiceStatus, cC as SessionChangeEvent, bE as Staff, be as StaffAssignment, b5 as StaffRole, bj as StaffScheduleItem, bY as Stock, bZ as StockLevel, bW as StockOwnershipType, bX as StockStatus, bx as StorefrontBootstrap, bu as Table, T as TableInfo, br as TimeRange, bs as TimeRanges, bF as TimeSlot, ca as UpdateAddressInput, b1 as UpdateOrderStatusInput, U as UpdateProfileInput, b$ as VariantStock, cn as VerifyOtpInput, aB as combine, aC as combineObject, c as createCimplifyClient, u as createElements, aq as err, av as flatMap, az as fromPromise, k as generateIdempotencyKey, aw as getOrElse, as as isErr, ar as isOk, au as mapError, at as mapResult, ap as ok, ay as toNullable, aA as tryCatch, ax as unwrap } from './client-CVJ0S99a.js';
|
|
2
2
|
export { QueryBuilder, query } from './advanced.js';
|
|
3
3
|
import { A as ApiError } from './payment-CLIWNMaP.js';
|
|
4
4
|
export { B as AddOn, at as AddOnDetails, aP as AddOnGroupDetails, G as AddOnOption, aO as AddOnOptionDetails, H as AddOnOptionPrice, F as AddOnWithOptions, aU as AddToCartInput, ai as AdjustmentType, ap as AppliedDiscount, a_ as AuthorizationType, ao as BenefitType, T as Bundle, Y as BundleComponentData, _ as BundleComponentInfo, R as BundlePriceType, W as BundleProduct, ay as BundleSelectionData, aw as BundleSelectionInput, ax as BundleStoredSelection, U as BundleSummary, X as BundleWithDetails, aD as Cart, au as CartAddOn, ag as CartChannel, aE as CartItem, aR as CartItemDetails, af as CartStatus, aW as CartSummary, aF as CartTotals, K as Category, L as CategorySummary, an as ChosenPrice, h as CimplifyError, N as Collection, Q as CollectionProduct, O as CollectionSummary, a4 as ComponentGroup, a5 as ComponentGroupWithComponents, a9 as ComponentPriceBreakdown, a7 as ComponentSelectionInput, a1 as ComponentSourceType, a2 as Composite, a6 as CompositeComponent, aA as CompositePriceBreakdown, a8 as CompositePriceResult, $ as CompositePricingMode, aB as CompositeSelectionData, a7 as CompositeSelectionInput, az as CompositeStoredSelection, a3 as CompositeWithDetails, b as Currency, C as CurrencyCode, p as DepositType, D as DigitalProductType, aq as DiscountBreakdown, ar as DiscountDetails, aI as DisplayAddOn, aJ as DisplayAddOnOption, aG as DisplayCart, aH as DisplayCartItem, g as ERROR_HINTS, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, a0 as GroupPricingBehavior, b2 as InitializePaymentResult, I as InventoryType, aC as LineConfiguration, ac as LocationProductPrice, M as Money, d as Pagination, P as PaginationParams, b1 as Payment, b5 as PaymentErrorDetails, b0 as PaymentMethod, aZ as PaymentMethodType, a$ as PaymentProcessingState, aY as PaymentProvider, b3 as PaymentResponse, aX as PaymentStatus, b4 as PaymentStatusResponse, ab as Price, aj as PriceAdjustment, am as PriceDecisionPath, aa as PriceEntryType, al as PricePathTaxInfo, ah as PriceSource, q as Product, J as ProductAddOn, ad as ProductAvailability, o as ProductRenderHint, ae as ProductTimeProfile, n as ProductType, s as ProductVariant, x as ProductVariantValue, r as ProductWithDetails, S as SalesChannel, as as SelectedAddOnOption, b6 as SubmitAuthorizationInput, ak as TaxPathComponent, aS as UICart, aK as UICartBusiness, aM as UICartCustomer, aL as UICartLocation, aN as UICartPricing, aT as UICartResponse, aV as UpdateCartItemInput, u as VariantAxis, z as VariantAxisSelection, w as VariantAxisValue, v as VariantAxisWithValues, av as VariantDetails, aQ as VariantDetailsDTO, t as VariantDisplayAttribute, y as VariantLocationAvailability, V as VariantStrategy, Z as ZERO, c as currencyCode, k as enrichError, j as getErrorHint, i as isCimplifyError, l as isRetryableError, m as money, a as moneyFromNumber } from './payment-CLIWNMaP.js';
|