@cimplify/sdk 0.103.0 → 0.104.1
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 +3 -7
- package/dist/advanced.d.ts +3 -7
- package/dist/advanced.js +23 -23
- package/dist/advanced.mjs +4 -4
- package/dist/{client-DHBwvh7U.d.ts → catalogue-BlQ85Uma.d.mts} +492 -748
- package/dist/{client-BfpNjJ_a.d.mts → catalogue-C8TqOj9K.d.ts} +492 -748
- package/dist/{payment-H5LoIvXU.d.mts → checkout-BqK9XUz5.d.mts} +4338 -1495
- package/dist/{payment-H5LoIvXU.d.ts → checkout-BqK9XUz5.d.ts} +4338 -1495
- package/dist/{chunk-GOHSXBKW.mjs → chunk-33VCYWVL.mjs} +25 -1
- package/dist/{chunk-C2JSNJUC.mjs → chunk-6G3ANKQA.mjs} +1080 -369
- package/dist/{chunk-QOWPGS7Z.js → chunk-BWEIMKLF.js} +572 -17
- package/dist/{chunk-JSWJ4XDE.js → chunk-DQEXY542.js} +1630 -824
- package/dist/{chunk-CNN7Z2IP.js → chunk-EV2EVOYS.js} +27 -0
- package/dist/{chunk-VIL6IQCG.js → chunk-HYFA67A7.js} +1084 -373
- package/dist/{chunk-H7ACMHM3.mjs → chunk-L5SNEU2O.mjs} +553 -16
- package/dist/{chunk-JG5CQNCB.js → chunk-RBNBSQI7.mjs} +221 -19
- package/dist/{chunk-VNPEYLB2.mjs → chunk-SFUJMS5E.js} +265 -2
- package/dist/{chunk-M4URVKHE.mjs → chunk-U54CWUUT.mjs} +11 -2
- package/dist/{chunk-GERXZQSX.mjs → chunk-UFOWPN3D.mjs} +967 -582
- package/dist/{chunk-J6PNHDHL.mjs → chunk-V4457OKB.mjs} +1580 -785
- package/dist/{chunk-R6OLQ33I.js → chunk-WXREIBFW.js} +1041 -654
- package/dist/{chunk-NNG6IFFX.js → chunk-XAUSDMMZ.js} +13 -3
- package/dist/{client-DpqRobY9.d.mts → client-DhXeiUrf.d.ts} +2 -2
- package/dist/{client-Dqg2mc-7.d.ts → client-mXiUrV4X.d.mts} +2 -2
- package/dist/{index-C8uDqLwJ.d.ts → index-B0AdZvrM.d.mts} +9 -4
- package/dist/{index-e2y6AK70.d.mts → index-CK8Nk5uQ.d.ts} +9 -4
- package/dist/index-DPWI5XcU.d.ts +8 -0
- package/dist/index-DVfUh-ci.d.mts +8 -0
- package/dist/index.d.mts +34 -15
- package/dist/index.d.ts +34 -15
- package/dist/index.js +306 -133
- package/dist/index.mjs +7 -6
- package/dist/mock/cli.mjs +1494 -395
- package/dist/mock/library.js +1220 -361
- package/dist/mock/library.mjs +1220 -361
- package/dist/mock/msw.js +1220 -361
- package/dist/mock/msw.mjs +1220 -361
- package/dist/{price-C2RqscMY.d.ts → price-6hQIIac9.d.ts} +1 -1
- package/dist/{price-BvePgDXe.d.mts → price-BUDv1rI7.d.mts} +1 -1
- package/dist/react.d.mts +10 -5
- package/dist/react.d.ts +10 -5
- package/dist/react.js +279 -225
- package/dist/react.mjs +140 -86
- package/dist/{server-DoXIpSd7.d.ts → server-DJ0mSs9i.d.mts} +33 -57
- package/dist/{server-C7FyLdrz.d.mts → server-DSTX76Ki.d.ts} +33 -57
- package/dist/server.d.mts +3 -4
- package/dist/server.d.ts +3 -4
- package/dist/server.js +12 -11
- package/dist/server.mjs +6 -5
- package/dist/styles.css +2 -2
- package/dist/testing/msw.d.mts +2 -2
- package/dist/testing/msw.d.ts +2 -2
- package/dist/testing/msw.js +4 -4
- package/dist/testing/msw.mjs +3 -3
- package/dist/testing/suite.d.mts +5 -6
- package/dist/testing/suite.d.ts +5 -6
- package/dist/testing/suite.js +29 -28
- package/dist/testing/suite.mjs +10 -9
- package/dist/testing.d.mts +2217 -14
- package/dist/testing.d.ts +2217 -14
- package/dist/testing.js +173 -83
- package/dist/testing.mjs +28 -10
- package/dist/utils.d.mts +3 -4
- package/dist/utils.d.ts +3 -4
- package/dist/utils.js +35 -31
- package/dist/utils.mjs +2 -2
- package/package.json +9 -9
- package/registry/chat-widget.json +1 -1
- package/registry/order-history.json +1 -1
- package/registry/order-summary.json +1 -1
- package/dist/link-cuNVYc2s.d.mts +0 -297
- package/dist/link-cuNVYc2s.d.ts +0 -297
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkSFUJMS5E_js = require('./chunk-SFUJMS5E.js');
|
|
4
4
|
|
|
5
5
|
// src/utils/price.ts
|
|
6
6
|
var CURRENCY_SYMBOLS = {
|
|
@@ -468,14 +468,14 @@ function normalizeStatusResponse(response) {
|
|
|
468
468
|
return {
|
|
469
469
|
status: "pending",
|
|
470
470
|
paid: false,
|
|
471
|
-
amount:
|
|
471
|
+
amount: chunkSFUJMS5E_js.moneyFromNumber(0),
|
|
472
472
|
currency: "",
|
|
473
473
|
message: "No status available"
|
|
474
474
|
};
|
|
475
475
|
}
|
|
476
476
|
const res = response;
|
|
477
477
|
const normalizedStatus = normalizePaymentStatusValue(res.status ?? void 0);
|
|
478
|
-
const normalizedAmount = typeof res.amount === "string" ?
|
|
478
|
+
const normalizedAmount = typeof res.amount === "string" ? chunkSFUJMS5E_js.money(res.amount) : typeof res.amount === "number" && Number.isFinite(res.amount) ? chunkSFUJMS5E_js.moneyFromNumber(res.amount) : chunkSFUJMS5E_js.moneyFromNumber(0);
|
|
479
479
|
const normalizedCurrency = typeof res.currency === "string" && res.currency.trim().length > 0 ? res.currency : "";
|
|
480
480
|
const paidValue = res.paid === true && normalizedStatus !== "authorized" && !PAYMENT_REQUIRES_ACTION_STATUSES.has(normalizedStatus) && !PAYMENT_FAILURE_STATUSES.has(normalizedStatus);
|
|
481
481
|
const derivedPaid = paidValue || PAYMENT_SUCCESS_STATUSES.has(normalizedStatus);
|
|
@@ -513,6 +513,15 @@ function canonicalMobileMoneyProvider(provider) {
|
|
|
513
513
|
const normalized = provider.trim().toLowerCase().replace(/[\s_-]+/g, "");
|
|
514
514
|
return MOBILE_MONEY_PROVIDER_ALIASES[normalized] ?? null;
|
|
515
515
|
}
|
|
516
|
+
var PURCHASE_INTENT_NETWORK_BY_PROVIDER = {
|
|
517
|
+
mtn: chunkSFUJMS5E_js.PURCHASE_INTENT_MOBILE_MONEY_NETWORK.MTN,
|
|
518
|
+
telecel: chunkSFUJMS5E_js.PURCHASE_INTENT_MOBILE_MONEY_NETWORK.TELECEL,
|
|
519
|
+
airteltigo: chunkSFUJMS5E_js.PURCHASE_INTENT_MOBILE_MONEY_NETWORK.AIRTEL
|
|
520
|
+
};
|
|
521
|
+
function purchaseIntentMobileMoneyNetwork(provider) {
|
|
522
|
+
const canonical = canonicalMobileMoneyProvider(provider);
|
|
523
|
+
return canonical ? PURCHASE_INTENT_NETWORK_BY_PROVIDER[canonical] ?? null : null;
|
|
524
|
+
}
|
|
516
525
|
var LOOPBACK_AUTHORIZATION_HOSTS = /* @__PURE__ */ new Set(["localhost", "127.0.0.1", "[::1]"]);
|
|
517
526
|
function paymentAuthorizationUrl(value) {
|
|
518
527
|
if (typeof value !== "string" || !value.trim()) return null;
|
|
@@ -571,3 +580,4 @@ exports.normalizePaymentResponse = normalizePaymentResponse;
|
|
|
571
580
|
exports.normalizeStatusResponse = normalizeStatusResponse;
|
|
572
581
|
exports.parsePrice = parsePrice;
|
|
573
582
|
exports.paymentAuthorizationUrl = paymentAuthorizationUrl;
|
|
583
|
+
exports.purchaseIntentMobileMoneyNetwork = purchaseIntentMobileMoneyNetwork;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as AppHandle, C as CreateAppOptions } from './server-
|
|
1
|
+
import { C as CimplifyClient } from './catalogue-C8TqOj9K.js';
|
|
2
|
+
import { A as AppHandle, C as CreateAppOptions } from './server-DSTX76Ki.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Test client + fixtures.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as AppHandle, C as CreateAppOptions } from './server-
|
|
1
|
+
import { C as CimplifyClient } from './catalogue-BlQ85Uma.mjs';
|
|
2
|
+
import { A as AppHandle, C as CreateAppOptions } from './server-DJ0mSs9i.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Test client + fixtures.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { P as ProductWithPrice } from './price-
|
|
3
|
-
import { z as MobileMoneyProvider } from './link-cuNVYc2s.js';
|
|
1
|
+
import { cC as Money, C as CurrencyCode, dx as PricePathTaxInfo, P as Product, e as ProductWithDetails, e5 as QuantityPricingTier, cA as MobileMoneyProvider, db as PaymentErrorDetails, dl as PaymentResponse, dn as PaymentStatusResponse, dX as PurchaseIntentMobileMoneyNetwork } from './checkout-BqK9XUz5.mjs';
|
|
2
|
+
import { P as ProductWithPrice } from './price-BUDv1rI7.mjs';
|
|
4
3
|
import { CountryCode } from 'libphonenumber-js';
|
|
5
4
|
|
|
6
5
|
declare const CURRENCY_SYMBOLS: Record<string, string>;
|
|
@@ -62,6 +61,12 @@ declare const MOBILE_MONEY_PROVIDERS: {
|
|
|
62
61
|
type CanonicalMobileMoneyProvider = Extract<MobileMoneyProvider, "mtn" | "telecel" | "airteltigo" | "mpesa">;
|
|
63
62
|
/** Normalize route-catalog and legacy network aliases to storefront provider codes. */
|
|
64
63
|
declare function canonicalMobileMoneyProvider(provider: string | null | undefined): CanonicalMobileMoneyProvider | null;
|
|
64
|
+
/**
|
|
65
|
+
* Collapse storefront aliases to Checkout's closed durable network vocabulary.
|
|
66
|
+
* M-PESA is deliberately absent until the backend can issue a matching
|
|
67
|
+
* PurchaseIntent payment option.
|
|
68
|
+
*/
|
|
69
|
+
declare function purchaseIntentMobileMoneyNetwork(provider: string | null | undefined): PurchaseIntentMobileMoneyNetwork | null;
|
|
65
70
|
/**
|
|
66
71
|
* Validate an external payment-authorization URL before browser navigation.
|
|
67
72
|
* Provider payloads are data, not executable navigation instructions: only
|
|
@@ -78,4 +83,4 @@ declare function resolvePhoneCountryCode(options?: PhoneNormalizationOptions): C
|
|
|
78
83
|
declare function normalizePhoneToE164(raw: string, options?: PhoneNormalizationOptions): string | null;
|
|
79
84
|
declare function isValidPhoneForContext(raw: string, options?: PhoneNormalizationOptions): boolean;
|
|
80
85
|
|
|
81
|
-
export { isTaxInclusive as A, isValidPhoneForContext as B, CURRENCY_SYMBOLS as C, normalizePaymentResponse as D, normalizePhoneToE164 as E, normalizeStatusResponse as F, parsePrice as G, paymentAuthorizationUrl as H,
|
|
86
|
+
export { isTaxInclusive as A, isValidPhoneForContext as B, CURRENCY_SYMBOLS as C, normalizePaymentResponse as D, normalizePhoneToE164 as E, normalizeStatusResponse as F, parsePrice as G, paymentAuthorizationUrl as H, purchaseIntentMobileMoneyNetwork as I, resolvePhoneCountryCode as J, MOBILE_MONEY_PROVIDERS as M, PAYMENT_TERMINAL_FAILURE_STATUSES as P, type CanonicalMobileMoneyProvider as a, categorizePaymentError as b, canonicalMobileMoneyProvider as c, detectMobileMoneyProvider as d, formatNumberCompact as e, formatMoney as f, formatPrice as g, formatPriceAdjustment as h, formatPriceCompact as i, formatPriceRange as j, formatPriceWithTax as k, formatProductPrice as l, getBasePrice as m, getCurrencySymbol as n, getDiscountPercentage as o, getDisplayPrice as p, getMarkupPercentage as q, getPriceRange as r, getProductCurrency as s, getTaxAmount as t, getUnitPriceAtQuantity as u, hasTaxInfo as v, isOnSale as w, isPaymentStatusFailure as x, isPaymentStatusRequiresAction as y, isPaymentStatusSuccess as z };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { P as ProductWithPrice } from './price-
|
|
3
|
-
import { z as MobileMoneyProvider } from './link-cuNVYc2s.mjs';
|
|
1
|
+
import { cC as Money, C as CurrencyCode, dx as PricePathTaxInfo, P as Product, e as ProductWithDetails, e5 as QuantityPricingTier, cA as MobileMoneyProvider, db as PaymentErrorDetails, dl as PaymentResponse, dn as PaymentStatusResponse, dX as PurchaseIntentMobileMoneyNetwork } from './checkout-BqK9XUz5.js';
|
|
2
|
+
import { P as ProductWithPrice } from './price-6hQIIac9.js';
|
|
4
3
|
import { CountryCode } from 'libphonenumber-js';
|
|
5
4
|
|
|
6
5
|
declare const CURRENCY_SYMBOLS: Record<string, string>;
|
|
@@ -62,6 +61,12 @@ declare const MOBILE_MONEY_PROVIDERS: {
|
|
|
62
61
|
type CanonicalMobileMoneyProvider = Extract<MobileMoneyProvider, "mtn" | "telecel" | "airteltigo" | "mpesa">;
|
|
63
62
|
/** Normalize route-catalog and legacy network aliases to storefront provider codes. */
|
|
64
63
|
declare function canonicalMobileMoneyProvider(provider: string | null | undefined): CanonicalMobileMoneyProvider | null;
|
|
64
|
+
/**
|
|
65
|
+
* Collapse storefront aliases to Checkout's closed durable network vocabulary.
|
|
66
|
+
* M-PESA is deliberately absent until the backend can issue a matching
|
|
67
|
+
* PurchaseIntent payment option.
|
|
68
|
+
*/
|
|
69
|
+
declare function purchaseIntentMobileMoneyNetwork(provider: string | null | undefined): PurchaseIntentMobileMoneyNetwork | null;
|
|
65
70
|
/**
|
|
66
71
|
* Validate an external payment-authorization URL before browser navigation.
|
|
67
72
|
* Provider payloads are data, not executable navigation instructions: only
|
|
@@ -78,4 +83,4 @@ declare function resolvePhoneCountryCode(options?: PhoneNormalizationOptions): C
|
|
|
78
83
|
declare function normalizePhoneToE164(raw: string, options?: PhoneNormalizationOptions): string | null;
|
|
79
84
|
declare function isValidPhoneForContext(raw: string, options?: PhoneNormalizationOptions): boolean;
|
|
80
85
|
|
|
81
|
-
export { isTaxInclusive as A, isValidPhoneForContext as B, CURRENCY_SYMBOLS as C, normalizePaymentResponse as D, normalizePhoneToE164 as E, normalizeStatusResponse as F, parsePrice as G, paymentAuthorizationUrl as H,
|
|
86
|
+
export { isTaxInclusive as A, isValidPhoneForContext as B, CURRENCY_SYMBOLS as C, normalizePaymentResponse as D, normalizePhoneToE164 as E, normalizeStatusResponse as F, parsePrice as G, paymentAuthorizationUrl as H, purchaseIntentMobileMoneyNetwork as I, resolvePhoneCountryCode as J, MOBILE_MONEY_PROVIDERS as M, PAYMENT_TERMINAL_FAILURE_STATUSES as P, type CanonicalMobileMoneyProvider as a, categorizePaymentError as b, canonicalMobileMoneyProvider as c, detectMobileMoneyProvider as d, formatNumberCompact as e, formatMoney as f, formatPrice as g, formatPriceAdjustment as h, formatPriceCompact as i, formatPriceRange as j, formatPriceWithTax as k, formatProductPrice as l, getBasePrice as m, getCurrencySymbol as n, getDiscountPercentage as o, getDisplayPrice as p, getMarkupPercentage as q, getPriceRange as r, getProductCurrency as s, getTaxAmount as t, getUnitPriceAtQuantity as u, hasTaxInfo as v, isOnSale as w, isPaymentStatusFailure as x, isPaymentStatusRequiresAction as y, isPaymentStatusSuccess as z };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import './catalogue-C8TqOj9K.js';
|
|
2
|
+
import './checkout-BqK9XUz5.js';
|
|
3
|
+
|
|
4
|
+
declare function generateIdempotencyKey(prefix?: string): string;
|
|
5
|
+
declare function intentIdempotencyKey(scope: string, fingerprint: string, storage?: Storage | null): string;
|
|
6
|
+
declare function clearIntentIdempotencyKey(scope: string, storage?: Storage | null): void;
|
|
7
|
+
|
|
8
|
+
export { clearIntentIdempotencyKey as c, generateIdempotencyKey as g, intentIdempotencyKey as i };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import './catalogue-BlQ85Uma.mjs';
|
|
2
|
+
import './checkout-BqK9XUz5.mjs';
|
|
3
|
+
|
|
4
|
+
declare function generateIdempotencyKey(prefix?: string): string;
|
|
5
|
+
declare function intentIdempotencyKey(scope: string, fingerprint: string, storage?: Storage | null): string;
|
|
6
|
+
declare function clearIntentIdempotencyKey(scope: string, storage?: Storage | null): void;
|
|
7
|
+
|
|
8
|
+
export { clearIntentIdempotencyKey as c, generateIdempotencyKey as g, intentIdempotencyKey as i };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export {
|
|
6
|
-
export { C as CURRENCY_SYMBOLS, a as CanonicalMobileMoneyProvider, M as MOBILE_MONEY_PROVIDERS, P as PAYMENT_TERMINAL_FAILURE_STATUSES, c as canonicalMobileMoneyProvider, b as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, e as formatNumberCompact, g as formatPrice, h as formatPriceAdjustment, i as formatPriceCompact, j as formatPriceRange, k as formatPriceWithTax, l as formatProductPrice, m as getBasePrice, n as getCurrencySymbol, o as getDiscountPercentage, p as getDisplayPrice, q as getMarkupPercentage, r as getPriceRange, s as getProductCurrency, t as getTaxAmount, u as getUnitPriceAtQuantity, v as hasTaxInfo, w as isOnSale, x as isPaymentStatusFailure, y as isPaymentStatusRequiresAction, z as isPaymentStatusSuccess, A as isTaxInclusive, B as isValidPhoneForContext, D as normalizePaymentResponse, E as normalizePhoneToE164, F as normalizeStatusResponse, G as parsePrice, H as paymentAuthorizationUrl, I as resolvePhoneCountryCode } from './index-
|
|
1
|
+
import { P as PaymentAuthorizationAdapter, c as PaymentAuthorizationContext, d as PaymentAuthorizationOutcome, e as ChatReplyCard } from './catalogue-BlQ85Uma.mjs';
|
|
2
|
+
export { A as ActivityRecommendation, f as ActivityRecommendationsResponse, g as ActivityService, h as ActivityStateResponse, i as AmountToPay, j as AuthService, k as AuthStatus, l as AuthorizeCardPopupOptions, m as AutocompletePrediction, n as AutocompleteResponse, o as AvailabilityResult, p as AvailableSlot, B as Booking, q as BookingModificationType, r as BookingStatus, s as BookingWithDetails, t as BufferTimes, u as Business, v as BusinessDetailsDTO, w as BusinessHours, x as BusinessPreferences, y as BusinessService, z as BusinessSettings, D as BusinessWithLocations, a as CacheOptions, E as CancelBookingInput, F as CancelBookingResult, G as CancelOrderInput, H as CancellationPolicy, I as CardPopupAction, J as CartOperations, K as CatalogueQueries, L as CatalogueResult, M as CatalogueSnapshot, N as CategoryInfo, O as ChatAttachment, Q as ChatConversation, S as ChatConversationResponse, T as ChatMessage, U as ChatReplyContext, V as ChatUploadAttachment, W as ChatWidgetStarter, X as CheckSlotAvailabilityInput, Y as CheckSlotAvailabilityResult, Z as CheckoutInput, _ as CheckoutOperations, _ as CheckoutService, C as CimplifyClient, $ as CimplifyConfig, a0 as CimplifyElement, a1 as CimplifyElements, a2 as ClaimConversationResult, a3 as ClaimExternalChatsResult, a4 as ContentType, a5 as CustomerBooking, a6 as CustomerBookingServiceItem, a7 as CustomerServicePreferences, a8 as DayAvailability, a9 as DeliveryFeeDetails, aa as DeliveryFeeResponse, ab as DeliveryFeeStatus, ac as DeliveryOption, ad as DeliveryOptionsQuery, ae as DeliveryOptionsResponse, af as DeliveryService, ag as DepositResult, ah as DismissMessageResponse, ai as EnrichedOrder, aj as EnrichedOrderItem, ak as Err, al as ExternalChatClaimAttempt, am as ExternalChatClaimDisposition, an as FeeBearerType, ao as FetchQuoteInput, ap as FulfillmentLink, aq as FulfillmentStatus, ar as FulfillmentSummaryDTO, as as FulfillmentType, at as FxQuote, au as FxQuoteRequest, av as FxQuoteStatus, aw as FxRateResponse, ax as FxService, ay as GetAvailableSlotsInput, az as GetDeliveryOptionsParams, aA as GetOrdersOptions, aB as GetProductsOptions, aC as GroupOrderInfo, aD as HostedPurchaseIntentService, aE as InventoryService, aF as LifecyclePhase, aG as LineItem, aH as LineType, aI as LinkService, aJ as LiteBootstrap, aK as LiteDayHours, aL as LiteHoursRange, aM as LiteService, aN as Location, aO as LocationBooking, aP as LocationTaxBehavior, aQ as LocationTaxOverrides, aR as LocationTimeProfile, aS as LocationWithDetails, aT as ObservabilityHooks, aU as Ok, aV as Order, aW as OrderCustomerInfo, aX as OrderDiscountInfo, aY as OrderFilter, aZ as OrderFulfillmentSummary, a_ as OrderGroup, a$ as OrderGroupDetails, b0 as OrderGroupPayment, b1 as OrderGroupPaymentState, b2 as OrderGroupPaymentStatus, b3 as OrderGroupPaymentSummary, b4 as OrderGroupStatus, b5 as OrderHistory, b6 as OrderLineState, b7 as OrderLineStatus, b8 as OrderLocationInfo, b9 as OrderPaymentEvent, ba as OrderPricingView, bb as OrderQueries, bc as OrderSplitDetail, bd as OrderStaffInfo, be as OrderStatus, bf as OrderTimestampsDTO, bg as Origin, bh as OriginActor, bi as OriginChannel, bj as OtpResult, bk as PAYMENT_AUTHORIZATION_OUTCOME_STATUS, bl as PAYMENT_AUTHORIZATION_PROVIDER, bm as PURCHASE_INTENT_ROUTE, bn as PaymentAuthorizationAdapterRegistry, bo as PaymentInfoDTO, bp as PaymentState, bq as PlaceDetailsResponse, br as PlacesService, bs as PriceQuote, bt as PricingOverrides, bu as ProviderResolutionSource, bv as PurchaseIntentActionDecision, bw as PurchaseIntentRequestOptions, bx as PurchaseIntentResolveOptions, by as PurchaseIntentResolveStatus, bz as PurchaseIntentResolver, bA as PurchaseIntentService, bB as PurchaseIntentTransport, bC as QuoteBundleSelectionInput, bD as QuoteCompositeSelectionInput, bE as QuoteDynamicBuckets, bF as QuoteStatus, bG as QuoteUiMessage, R as ReadRequestOptions, bH as RefreshQuoteInput, bI as RefreshQuoteResult, bJ as RefundOrderInput, bK as RelatedCandidate, bL as RelatedProduct, bM as RelatedProductsEnrichment, bN as RelationType, bO as ReminderMethod, bP as ReminderSettings, bQ as ReorderResult, bR as RequestContext, bS as RequestErrorEvent, bT as RequestOptions, bU as RequestRetryPolicy, bV as RequestSource, bW as RequestStartEvent, bX as RequestSuccessEvent, bY as RescheduleBookingInput, bZ as RescheduleBookingResult, b_ as RescheduleHistoryRecord, b$ as ResourceAssignment, c0 as ResourceInfo, b as Result, c1 as RetryEvent, c2 as Room, c3 as SESSION_CHANGE_SOURCE, c4 as SchedulingMetadata, c5 as SchedulingResult, c6 as SchedulingService, c7 as SenderType, c8 as Service, c9 as ServiceAvailabilityParams, ca as ServiceAvailabilityResult, cb as ServiceCharge, cc as ServiceNotes, cd as ServiceScheduleRequest, ce as ServiceStatus, cf as SessionActivityData, cg as SessionChangeEvent, ch as SessionChangeSource, ci as SessionMessage, cj as SlotResourceInfo, ck as SlotStaffInfo, cl as Staff, cm as StaffAssignment, cn as StaffRole, co as StaffScheduleItem, cp as StockLevel, cq as StockStatus, cr as StoreCreditBalance, cs as StoreCreditQueries, ct as StorefrontBootstrap, cu as SubscriptionService, cv as SupportService, cw as Table, cx as TimeRange, cy as TimeRanges, cz as TimeSlot, cA as TrackCategoryViewOptions, cB as TrackProductViewOptions, cC as UpdateOrderStatusInput, cD as UpdateProfileInput, cE as UploadInitResponse, cF as UploadResult, cG as UploadService, cH as combine, cI as combineObject, cJ as createCimplifyClient, cK as createDefaultPaymentAuthorizationAdapterRegistry, cL as createElements, cM as err, cN as flatMap, cO as fromPromise, cP as getOrElse, cQ as isErr, cR as isOk, cS as mapError, cT as mapResult, cU as ok, cV as toNullable, cW as tryCatch, cX as unwrap } from './catalogue-BlQ85Uma.mjs';
|
|
3
|
+
export { c as clearPurchaseIntentIdempotencyKey, g as generateIdempotencyKey, i as purchaseIntentIdempotencyKey } from './index-DVfUh-ci.mjs';
|
|
4
|
+
import { f as CheckoutPaymentMethodKind, g as CheckoutTermsView, h as PaymentOptionView, i as ConfirmPurchaseIntentRequest, e as ProductWithDetails, T as TaxPriceDisplayMode, P as Product, D as DurationUnit, A as ApiError } from './checkout-BqK9XUz5.mjs';
|
|
5
|
+
export { j as AUTHORIZATION_TYPE, k as AUTH_MUTATION, l as AbortablePromise, m as AddOn, n as AddOnDetails, o as AddOnGroupDetails, p as AddOnOption, q as AddOnOptionDetails, r as AddOnOptionPrice, s as AddOnWithOptions, t as AddToCartInput, u as AddressAuthorizationData, v as AddressData, w as AddressInfo, x as AddressValue, y as AdjustmentType, z as AppliedDiscount, B as AttributeAppliesTo, E as AttributeType, F as AttributeValidationRules, G as AttributeVisibility, H as AuthResponse, I as AuthenticatedCustomer, J as AuthenticatedData, K as AuthorizationType, L as BOUNDARY_KIND, M as BenefitType, N as BillingFrequency, O as BillingMarkupType, Q as BillingPlanType, R as BoundaryKind, V as Bundle, W as BundleComponentData, X as BundleComponentInfo, Y as BundleComponentVariantView, Z as BundleComponentView, _ as BundlePriceType, $ as BundleProduct, a0 as BundleSelectionData, a1 as BundleSelectionInput, a2 as BundleStoredSelection, a3 as BundleSummary, a4 as BundleWithDetails, a5 as CHECKOUT_COMPLIANCE_LANE, a6 as CHECKOUT_COMPLIANCE_REASON, a7 as CHECKOUT_INVALIDATION_REASON, a8 as CHECKOUT_MATERIAL_TERMS_COMPONENT, a9 as CHECKOUT_MODE, aa as CHECKOUT_MUTATION, ab as CHECKOUT_NEXT_ACTION, ac as CHECKOUT_ORDER_RESULT_STATUS, ad as CHECKOUT_STATUS, ae as CHECKOUT_STEP, af as CHECKOUT_TERMS_COMPONENT, ag as CHECKOUT_TERMS_DELTA_KIND, ah as CONTACT_TYPE, ai as CanonicalSourceAuthority, aj as Cart, ak as CartAddOn, al as CartChannel, am as CartIntentCheckoutInput, an as CartItem, ao as CartItemDetails, ap as CartMutationResult, aq as CartNotice, ar as CartStatus, as as CartSummary, at as CartTotals, b as Category, au as CategorySummary, av as CheckoutAddressInfo, aw as CheckoutCartData, ax as CheckoutCartItem, ay as CheckoutCollectionMethod, az as CheckoutCollectionOption, aA as CheckoutCollectionOptions, aB as CheckoutComplianceDecision, aC as CheckoutComplianceLane, aD as CheckoutComplianceReasonCode, aE as CheckoutCustomerInfo, aF as CheckoutDestinationInput, aG as CheckoutFormData, aH as CheckoutInvalidationReason, aI as CheckoutMaterialTerms, aJ as CheckoutMaterialTermsComponent, aK as CheckoutMode, aL as CheckoutMoneyComponents, aM as CheckoutOfferKind, aN as CheckoutOrderType, aO as CheckoutPaymentMethod, aP as CheckoutResult, aQ as CheckoutSourceKind, aR as CheckoutStatus, aS as CheckoutStatusContext, aT as CheckoutStep, aU as CheckoutTermsComponent, aV as CheckoutTermsDelta, a as ChosenPrice, c as CimplifyError, d as Collection, aW as CollectionProduct, aX as CollectionSummary, aY as ComponentGroup, aZ as ComponentGroupWithComponents, a_ as ComponentPriceBreakdown, a$ as ComponentSchedulingData, b0 as ComponentSelectionInput, b1 as ComponentSourceType, b2 as Composite, b3 as CompositeComponent, b4 as CompositeComponentView, b5 as CompositeGroupView, b6 as CompositePriceBreakdown, b7 as CompositePriceResult, b8 as CompositePricingMode, b9 as CompositeSelectionData, b0 as CompositeSelectionInput, ba as CompositeStoredSelection, bb as CompositeWithDetails, bc as ConfirmPurchaseIntentResponse, bd as ContactType, be as CreateAddressInput, bf as CreateMobileMoneyInput, C as CurrencyCode, bg as CustomAttributeDefinition, bh as CustomAttributeValue, bi as Customer, bj as CustomerAddress, bk as CustomerInputValue, bl as CustomerLinkPreferences, bm as CustomerMobileMoney, bn as DEFAULT_COUNTRY, bo as DEFAULT_CURRENCY, bp as DEVICE_TYPE, bq as DURATION_UNIT, br as DateRangeValue, bs as Deal, bt as DealBenefitType, bu as DepositType, bv as DestinationQuote, bw as DestinationQuoteAddress, bx as DestinationQuoteInput, by as DeviceType, bz as DigitalProductType, bA as DiscountBreakdown, bB as DiscountDetails, bC as DiscountValidation, bD as DisplayAddOn, bE as DisplayAddOnOption, bF as DisplayCart, bG as DisplayCartItem, bH as DisplayMode, bI as ELEMENTS_AUTH_CONTACT_TYPES, bJ as ELEMENTS_AUTH_MODES, bK as ELEMENTS_AUTH_PROMPTS, bL as ELEMENT_TYPES, bM as ERROR_HINTS, bN as EVENT_TYPES, bO as ElementAppearance, bP as ElementEventHandler, bQ as ElementEventType, bR as ElementOptions, bS as ElementType, bT as ElementsAuthContactType, bU as ElementsAuthMode, bV as ElementsAuthOptions, bW as ElementsAuthPrompt, bX as ElementsCheckoutData, bY as ElementsCheckoutResult, bZ as ElementsCustomerInfo, b_ as ElementsOptions, b$ as EligiblePlansQuery, c0 as EnrollAndLinkOrderInput, c1 as EnrollAndLinkOrderResult, c2 as EnrollmentData, c3 as ErrorCode, c4 as ErrorCodeType, c5 as ErrorHint, c6 as FacetValue, c7 as FormattedPlanOption, c8 as GroupPricingBehavior, c9 as INPUT_FIELD_TYPE, ca as IdempotencyMismatchError, cb as IframeToParentMessage, cc as InitializePaymentResult, cd as InputFieldType, ce as InputFieldValidation, cf as InventoryType, cg as KnowledgeArticle, ch as LEGACY_CHECKOUT_PAYMENT_METHOD_ALIAS, ci as LEGACY_CHECKOUT_PAYMENT_STATUS, cj as LINK_MUTATION, ck as LINK_QUERY, cl as LineConfiguration, cm as LinkData, cn as LinkEnrollResult, co as LinkSession, cp as LinkStatusResult, cq as LocationProductPrice, cr as LocationValue, cs as MAX_PAYMENT_AUTHORIZATION_STEPS, ct as MESSAGE_TYPES, cu as MOBILE_MONEY_PROVIDER, cv as MOBILE_MONEY_TENDER_AUTHORITY_KIND, cw as MeasurementValue, cx as MintPurchaseIntentRequest, cy as MobileMoneyData, cz as MobileMoneyDetails, cA as MobileMoneyProvider, cB as MobileMoneyTenderPreference, cC as Money, cD as NativeAddOnSelection, cE as NextAction, cF as ORDER_MUTATION, cG as ORDER_TYPE, cH as OfferRef, cI as OrderType, cJ as PAYMENT_COLLECTION_MODE, cK as PAYMENT_INSTRUMENT_DISPLAY_KIND, cL as PAYMENT_METHOD, cM as PAYMENT_MUTATION, cN as PAYMENT_OPTION_NEXT_ACTION, cO as PAYMENT_OPTION_STATUS, cP as PAYMENT_STATE, cQ as PICKUP_TIME_TYPE, cR as PRODUCT_TYPE, cS as PURCHASE_INTENT_ACTION_DECISION, cT as PURCHASE_INTENT_CONFIRM_STATUS, cU as PURCHASE_INTENT_ERROR_CODE, cV as PURCHASE_INTENT_LINE_CONFIGURATION_KIND, cW as PURCHASE_INTENT_MOBILE_MONEY_NETWORK, cX as PURCHASE_INTENT_OFFER_KIND, cY as PURCHASE_INTENT_PAYMENT_METHOD, cZ as PURCHASE_INTENT_PAYMENT_PROVIDER, c_ as PURCHASE_INTENT_RESOLUTION_KIND, c$ as PURCHASE_INTENT_RESOLVE_STATUS, d0 as PURCHASE_INTENT_SELLABLE_KIND, d1 as PURCHASE_INTENT_SOURCE_KIND, d2 as PURCHASE_INTENT_STATUS, d3 as PURCHASING_PRINCIPAL_KIND, d4 as Pagination, d5 as PaginationParams, d6 as ParentToIframeMessage, d7 as Payment, d8 as PaymentAuthorizationKind, d9 as PaymentAuthorizationSubmission, da as PaymentCollectionMode, db as PaymentErrorDetails, dc as PaymentInstrumentDisplay, dd as PaymentMethod, de as PaymentMethodInfo, df as PaymentMethodType, dg as PaymentNextActionKind, dh as PaymentOptionStatus, di as PaymentProcessingState, dj as PaymentProvider, dk as PaymentProviderKind, dl as PaymentResponse, dm as PaymentStatus, dn as PaymentStatusResponse, dp as PhoneValue, dq as PickupTime, dr as PickupTimeType, ds as PreparePurchaseIntentRequest, dt as Price, du as PriceAdjustment, dv as PriceDecisionPath, dw as PriceEntryType, dx as PricePathTaxInfo, dy as PriceSource, dz as ProcessAndResolveOptions, dA as ProcessCheckoutOptions, dB as ProcessCheckoutResult, dC as ProductAddOn, dD as ProductAvailability, dE as ProductAvailabilityNow, dF as ProductBillingPlan, dG as ProductDealInfo, dH as ProductInputField, dI as ProductProperty, dJ as ProductRenderHint, dK as ProductTaxonomy, dL as ProductTimeProfile, dM as ProductType, dN as ProductVariant, dO as ProductVariantValue, dP as PropertyFacet, dQ as PropertySource, dR as PurchaseIntentActionResponse, dS as PurchaseIntentCustomerInput, dT as PurchaseIntentLineConfiguration, dU as PurchaseIntentLineInput, dV as PurchaseIntentLinePricingView, dW as PurchaseIntentLineView, dX as PurchaseIntentMobileMoneyNetwork, dY as PurchaseIntentResolution, dZ as PurchaseIntentReviewResponse, d_ as PurchaseIntentSimpleLineConfiguration, d$ as PurchaseIntentSourceInput, e0 as PurchaseIntentStatus, e1 as PurchaseIntentTenderPreference, e2 as PurchaseIntentTerminalResponse, e3 as PurchaseIntentView, e4 as PurchasingPrincipal, e5 as QuantityPricingTier, e6 as RENDER_HINT, e7 as RefreshCheckoutTermsRequest, e8 as RelatedProductView, e9 as RequestOtpInput, ea as RequestOtpResult, eb as RevokeAllSessionsResult, ec as RevokeSessionResult, ed as SaleCapInfo, S as SaleInfo, ee as SalesChannel, ef as SchedulingMode, eg as SelectedAddOnOption, eh as SellableKind, ei as SellableRef, ej as SemanticKind, ek as SignatureValue, el as SubmitAuthorizationInput, em as SubmitPurchaseIntentActionRequest, en as Subscription, eo as SubscriptionInvoice, ep as SubscriptionItem, eq as SubscriptionStatus, er as SubscriptionWithDetails, es as Tag, et as TagsResponse, eu as TaxPathComponent, ev as TaxonomyAttributeTemplate, ew as TaxonomyWithChildren, ex as UICart, ey as UICartBusiness, ez as UICartCustomer, eA as UICartLocation, eB as UICartPricing, eC as UnavailableLine, U as UpcomingSale, eD as UpdateAddressInput, eE as UpdateCartItemInput, eF as VariantAxis, eG as VariantAxisSelection, eH as VariantAxisValue, eI as VariantAxisValueView, eJ as VariantAxisView, eK as VariantAxisWithValues, eL as VariantDetails, eM as VariantDetailsDTO, eN as VariantDisplayAttribute, eO as VariantLocationAvailability, eP as VariantStrategy, eQ as VariantView, eR as VerifyOtpInput, eS as ZERO, eT as currencyCode, eU as enrichError, eV as getErrorHint, eW as isCimplifyError, eX as isIdempotencyMismatchError, eY as isQuoteConflictRequiringConsent, eZ as isQuoteError, e_ as isRetryableError, e$ as isSupportedCurrency, f0 as money, f1 as moneyFromNumber } from './checkout-BqK9XUz5.mjs';
|
|
6
|
+
export { C as CURRENCY_SYMBOLS, a as CanonicalMobileMoneyProvider, M as MOBILE_MONEY_PROVIDERS, P as PAYMENT_TERMINAL_FAILURE_STATUSES, c as canonicalMobileMoneyProvider, b as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, e as formatNumberCompact, g as formatPrice, h as formatPriceAdjustment, i as formatPriceCompact, j as formatPriceRange, k as formatPriceWithTax, l as formatProductPrice, m as getBasePrice, n as getCurrencySymbol, o as getDiscountPercentage, p as getDisplayPrice, q as getMarkupPercentage, r as getPriceRange, s as getProductCurrency, t as getTaxAmount, u as getUnitPriceAtQuantity, v as hasTaxInfo, w as isOnSale, x as isPaymentStatusFailure, y as isPaymentStatusRequiresAction, z as isPaymentStatusSuccess, A as isTaxInclusive, B as isValidPhoneForContext, D as normalizePaymentResponse, E as normalizePhoneToE164, F as normalizeStatusResponse, G as parsePrice, H as paymentAuthorizationUrl, I as purchaseIntentMobileMoneyNetwork, J as resolvePhoneCountryCode } from './index-B0AdZvrM.mjs';
|
|
7
7
|
export { A as AdConfig, a as AdContextValue, b as AdCreative, c as AdPosition, d as AdSlot, e as AdTheme, S as SignInOptions, g as getVariantDisplayName, s as startSignIn } from './sign-in-DQlIdqsi.mjs';
|
|
8
|
-
export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-
|
|
9
|
-
export { generateIdempotencyKey } from './advanced.mjs';
|
|
8
|
+
export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-BUDv1rI7.mjs';
|
|
10
9
|
import 'libphonenumber-js';
|
|
11
10
|
|
|
12
11
|
interface PaystackPopupOptions {
|
|
@@ -26,11 +25,13 @@ type PaystackPopup = (options: PaystackPopupOptions, signal?: AbortSignal) => Pr
|
|
|
26
25
|
/** Built-in adapter for Paystack Inline. */
|
|
27
26
|
declare class PaystackAuthorizationAdapter implements PaymentAuthorizationAdapter {
|
|
28
27
|
private readonly openPopup;
|
|
29
|
-
readonly provider
|
|
28
|
+
readonly provider: "paystack";
|
|
30
29
|
constructor(openPopup?: PaystackPopup);
|
|
31
30
|
authorize(context: PaymentAuthorizationContext): Promise<PaymentAuthorizationOutcome>;
|
|
32
31
|
}
|
|
33
32
|
|
|
33
|
+
declare const STRIPE_REDIRECT_MODE: "if_required";
|
|
34
|
+
declare const STRIPE_PAYMENT_ELEMENT_TYPE: "payment";
|
|
34
35
|
interface StripeErrorLike {
|
|
35
36
|
type?: string;
|
|
36
37
|
code?: string;
|
|
@@ -49,7 +50,7 @@ interface StripePaymentElementLike {
|
|
|
49
50
|
}) => void) => void;
|
|
50
51
|
}
|
|
51
52
|
interface StripeElementsLike {
|
|
52
|
-
create(type:
|
|
53
|
+
create(type: typeof STRIPE_PAYMENT_ELEMENT_TYPE, options?: Record<string, unknown>): StripePaymentElementLike;
|
|
53
54
|
submit?: () => Promise<{
|
|
54
55
|
error?: StripeErrorLike;
|
|
55
56
|
}>;
|
|
@@ -63,25 +64,43 @@ interface StripeLike {
|
|
|
63
64
|
confirmParams: {
|
|
64
65
|
return_url: string;
|
|
65
66
|
};
|
|
66
|
-
redirect:
|
|
67
|
+
redirect: typeof STRIPE_REDIRECT_MODE;
|
|
67
68
|
}): Promise<{
|
|
68
69
|
error?: StripeErrorLike;
|
|
69
70
|
paymentIntent?: StripePaymentIntentLike;
|
|
70
71
|
}>;
|
|
71
72
|
}
|
|
72
|
-
type StripeLoader = (publicKey: string
|
|
73
|
+
type StripeLoader = (publicKey: string, options?: {
|
|
74
|
+
stripeAccount?: string;
|
|
75
|
+
}) => Promise<StripeLike | null>;
|
|
73
76
|
/**
|
|
74
77
|
* Stripe card adapter backed by the Payment Element. It reports only that the
|
|
75
|
-
* provider interaction was submitted;
|
|
78
|
+
* provider interaction was submitted; PurchaseIntentResolver still polls Cimplify
|
|
76
79
|
* before returning checkout success.
|
|
77
80
|
*/
|
|
78
81
|
declare class StripeAuthorizationAdapter implements PaymentAuthorizationAdapter {
|
|
79
82
|
private readonly loadStripe;
|
|
80
|
-
readonly provider
|
|
83
|
+
readonly provider: "stripe";
|
|
81
84
|
constructor(loadStripe?: StripeLoader);
|
|
82
85
|
authorize(context: PaymentAuthorizationContext): Promise<PaymentAuthorizationOutcome>;
|
|
83
86
|
}
|
|
84
87
|
|
|
88
|
+
interface PurchaseIntentPaymentSelection {
|
|
89
|
+
method_kind: CheckoutPaymentMethodKind;
|
|
90
|
+
/** Select one exact server-issued option when the terms contain several. */
|
|
91
|
+
payment_option_id?: string;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Select an eligible option without coupling a purchase intent to any UI's
|
|
95
|
+
* legacy form shape. Ranking remains server-owned; callers only state tender
|
|
96
|
+
* and, optionally, the exact saved instrument the shopper selected.
|
|
97
|
+
*/
|
|
98
|
+
declare function selectPurchaseIntentPaymentOption(terms: CheckoutTermsView, selection: PurchaseIntentPaymentSelection): PaymentOptionView | undefined;
|
|
99
|
+
/** Freeze explicit consent to the exact terms and option rendered by the UI. */
|
|
100
|
+
declare function createPurchaseIntentConfirmation(terms: CheckoutTermsView, paymentOption: PaymentOptionView | null | undefined, idempotencyKey: string): ConfirmPurchaseIntentRequest;
|
|
101
|
+
/** True when confirmation must name one server-issued collection option. */
|
|
102
|
+
declare function purchaseIntentRequiresPaymentOption(terms: CheckoutTermsView): boolean;
|
|
103
|
+
|
|
85
104
|
interface GalleryImage {
|
|
86
105
|
url: string;
|
|
87
106
|
/** null = product-level image; otherwise the variant it belongs to. */
|
|
@@ -247,4 +266,4 @@ interface AssetUrlOptions extends AssetTransform {
|
|
|
247
266
|
declare function assetUrl(path: string, opts?: AssetUrlOptions): string;
|
|
248
267
|
declare function isCimplifyAsset(src: string, base?: string): boolean;
|
|
249
268
|
|
|
250
|
-
export { ApiError, type ApiResponse, type AssetTransform, type AssetUrlOptions, CIMPLIFY_CDN_HOSTS, ChatReplyCard, type CustomerGroup, type CustomerPricingInfo, DEFAULT_CDN_BASE_URL, DurationUnit, type FrontendContext, type GalleryImage, type MutationRequest, PaymentAuthorizationAdapter, PaymentAuthorizationContext, PaymentAuthorizationOutcome, PaystackAuthorizationAdapter, type PaystackPopup, type PaystackPopupOptions, type PaystackPopupResult, type PriceListItem, Product, ProductWithDetails, type QuantityBreak, type QueryRequest, type ResolvedQuantityBreak, type ResponseMetadata, type SilentSignInOptions, type SilentSignInResult, StripeAuthorizationAdapter, type StripeLike, type StripeLoader, TaxPriceDisplayMode, allGalleryImages, assetUrl, chatMessageCards, displaysGrossPrices, isCimplifyAsset, isMultiDayService, priceBasisLabel, resolveGallery, serviceBillingMultiplier, signInSilent, stayLength, stayPeriods };
|
|
269
|
+
export { ApiError, type ApiResponse, type AssetTransform, type AssetUrlOptions, CIMPLIFY_CDN_HOSTS, ChatReplyCard, CheckoutPaymentMethodKind, CheckoutTermsView, ConfirmPurchaseIntentRequest, type CustomerGroup, type CustomerPricingInfo, DEFAULT_CDN_BASE_URL, DurationUnit, type FrontendContext, type GalleryImage, type MutationRequest, PaymentAuthorizationAdapter, PaymentAuthorizationContext, PaymentAuthorizationOutcome, PaymentOptionView, PaystackAuthorizationAdapter, type PaystackPopup, type PaystackPopupOptions, type PaystackPopupResult, type PriceListItem, Product, ProductWithDetails, type PurchaseIntentPaymentSelection, type QuantityBreak, type QueryRequest, type ResolvedQuantityBreak, type ResponseMetadata, type SilentSignInOptions, type SilentSignInResult, StripeAuthorizationAdapter, type StripeLike, type StripeLoader, TaxPriceDisplayMode, allGalleryImages, assetUrl, chatMessageCards, createPurchaseIntentConfirmation, displaysGrossPrices, isCimplifyAsset, isMultiDayService, priceBasisLabel, purchaseIntentRequiresPaymentOption, resolveGallery, selectPurchaseIntentPaymentOption, serviceBillingMultiplier, signInSilent, stayLength, stayPeriods };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export {
|
|
6
|
-
export { C as CURRENCY_SYMBOLS, a as CanonicalMobileMoneyProvider, M as MOBILE_MONEY_PROVIDERS, P as PAYMENT_TERMINAL_FAILURE_STATUSES, c as canonicalMobileMoneyProvider, b as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, e as formatNumberCompact, g as formatPrice, h as formatPriceAdjustment, i as formatPriceCompact, j as formatPriceRange, k as formatPriceWithTax, l as formatProductPrice, m as getBasePrice, n as getCurrencySymbol, o as getDiscountPercentage, p as getDisplayPrice, q as getMarkupPercentage, r as getPriceRange, s as getProductCurrency, t as getTaxAmount, u as getUnitPriceAtQuantity, v as hasTaxInfo, w as isOnSale, x as isPaymentStatusFailure, y as isPaymentStatusRequiresAction, z as isPaymentStatusSuccess, A as isTaxInclusive, B as isValidPhoneForContext, D as normalizePaymentResponse, E as normalizePhoneToE164, F as normalizeStatusResponse, G as parsePrice, H as paymentAuthorizationUrl, I as resolvePhoneCountryCode } from './index-
|
|
1
|
+
import { P as PaymentAuthorizationAdapter, c as PaymentAuthorizationContext, d as PaymentAuthorizationOutcome, e as ChatReplyCard } from './catalogue-C8TqOj9K.js';
|
|
2
|
+
export { A as ActivityRecommendation, f as ActivityRecommendationsResponse, g as ActivityService, h as ActivityStateResponse, i as AmountToPay, j as AuthService, k as AuthStatus, l as AuthorizeCardPopupOptions, m as AutocompletePrediction, n as AutocompleteResponse, o as AvailabilityResult, p as AvailableSlot, B as Booking, q as BookingModificationType, r as BookingStatus, s as BookingWithDetails, t as BufferTimes, u as Business, v as BusinessDetailsDTO, w as BusinessHours, x as BusinessPreferences, y as BusinessService, z as BusinessSettings, D as BusinessWithLocations, a as CacheOptions, E as CancelBookingInput, F as CancelBookingResult, G as CancelOrderInput, H as CancellationPolicy, I as CardPopupAction, J as CartOperations, K as CatalogueQueries, L as CatalogueResult, M as CatalogueSnapshot, N as CategoryInfo, O as ChatAttachment, Q as ChatConversation, S as ChatConversationResponse, T as ChatMessage, U as ChatReplyContext, V as ChatUploadAttachment, W as ChatWidgetStarter, X as CheckSlotAvailabilityInput, Y as CheckSlotAvailabilityResult, Z as CheckoutInput, _ as CheckoutOperations, _ as CheckoutService, C as CimplifyClient, $ as CimplifyConfig, a0 as CimplifyElement, a1 as CimplifyElements, a2 as ClaimConversationResult, a3 as ClaimExternalChatsResult, a4 as ContentType, a5 as CustomerBooking, a6 as CustomerBookingServiceItem, a7 as CustomerServicePreferences, a8 as DayAvailability, a9 as DeliveryFeeDetails, aa as DeliveryFeeResponse, ab as DeliveryFeeStatus, ac as DeliveryOption, ad as DeliveryOptionsQuery, ae as DeliveryOptionsResponse, af as DeliveryService, ag as DepositResult, ah as DismissMessageResponse, ai as EnrichedOrder, aj as EnrichedOrderItem, ak as Err, al as ExternalChatClaimAttempt, am as ExternalChatClaimDisposition, an as FeeBearerType, ao as FetchQuoteInput, ap as FulfillmentLink, aq as FulfillmentStatus, ar as FulfillmentSummaryDTO, as as FulfillmentType, at as FxQuote, au as FxQuoteRequest, av as FxQuoteStatus, aw as FxRateResponse, ax as FxService, ay as GetAvailableSlotsInput, az as GetDeliveryOptionsParams, aA as GetOrdersOptions, aB as GetProductsOptions, aC as GroupOrderInfo, aD as HostedPurchaseIntentService, aE as InventoryService, aF as LifecyclePhase, aG as LineItem, aH as LineType, aI as LinkService, aJ as LiteBootstrap, aK as LiteDayHours, aL as LiteHoursRange, aM as LiteService, aN as Location, aO as LocationBooking, aP as LocationTaxBehavior, aQ as LocationTaxOverrides, aR as LocationTimeProfile, aS as LocationWithDetails, aT as ObservabilityHooks, aU as Ok, aV as Order, aW as OrderCustomerInfo, aX as OrderDiscountInfo, aY as OrderFilter, aZ as OrderFulfillmentSummary, a_ as OrderGroup, a$ as OrderGroupDetails, b0 as OrderGroupPayment, b1 as OrderGroupPaymentState, b2 as OrderGroupPaymentStatus, b3 as OrderGroupPaymentSummary, b4 as OrderGroupStatus, b5 as OrderHistory, b6 as OrderLineState, b7 as OrderLineStatus, b8 as OrderLocationInfo, b9 as OrderPaymentEvent, ba as OrderPricingView, bb as OrderQueries, bc as OrderSplitDetail, bd as OrderStaffInfo, be as OrderStatus, bf as OrderTimestampsDTO, bg as Origin, bh as OriginActor, bi as OriginChannel, bj as OtpResult, bk as PAYMENT_AUTHORIZATION_OUTCOME_STATUS, bl as PAYMENT_AUTHORIZATION_PROVIDER, bm as PURCHASE_INTENT_ROUTE, bn as PaymentAuthorizationAdapterRegistry, bo as PaymentInfoDTO, bp as PaymentState, bq as PlaceDetailsResponse, br as PlacesService, bs as PriceQuote, bt as PricingOverrides, bu as ProviderResolutionSource, bv as PurchaseIntentActionDecision, bw as PurchaseIntentRequestOptions, bx as PurchaseIntentResolveOptions, by as PurchaseIntentResolveStatus, bz as PurchaseIntentResolver, bA as PurchaseIntentService, bB as PurchaseIntentTransport, bC as QuoteBundleSelectionInput, bD as QuoteCompositeSelectionInput, bE as QuoteDynamicBuckets, bF as QuoteStatus, bG as QuoteUiMessage, R as ReadRequestOptions, bH as RefreshQuoteInput, bI as RefreshQuoteResult, bJ as RefundOrderInput, bK as RelatedCandidate, bL as RelatedProduct, bM as RelatedProductsEnrichment, bN as RelationType, bO as ReminderMethod, bP as ReminderSettings, bQ as ReorderResult, bR as RequestContext, bS as RequestErrorEvent, bT as RequestOptions, bU as RequestRetryPolicy, bV as RequestSource, bW as RequestStartEvent, bX as RequestSuccessEvent, bY as RescheduleBookingInput, bZ as RescheduleBookingResult, b_ as RescheduleHistoryRecord, b$ as ResourceAssignment, c0 as ResourceInfo, b as Result, c1 as RetryEvent, c2 as Room, c3 as SESSION_CHANGE_SOURCE, c4 as SchedulingMetadata, c5 as SchedulingResult, c6 as SchedulingService, c7 as SenderType, c8 as Service, c9 as ServiceAvailabilityParams, ca as ServiceAvailabilityResult, cb as ServiceCharge, cc as ServiceNotes, cd as ServiceScheduleRequest, ce as ServiceStatus, cf as SessionActivityData, cg as SessionChangeEvent, ch as SessionChangeSource, ci as SessionMessage, cj as SlotResourceInfo, ck as SlotStaffInfo, cl as Staff, cm as StaffAssignment, cn as StaffRole, co as StaffScheduleItem, cp as StockLevel, cq as StockStatus, cr as StoreCreditBalance, cs as StoreCreditQueries, ct as StorefrontBootstrap, cu as SubscriptionService, cv as SupportService, cw as Table, cx as TimeRange, cy as TimeRanges, cz as TimeSlot, cA as TrackCategoryViewOptions, cB as TrackProductViewOptions, cC as UpdateOrderStatusInput, cD as UpdateProfileInput, cE as UploadInitResponse, cF as UploadResult, cG as UploadService, cH as combine, cI as combineObject, cJ as createCimplifyClient, cK as createDefaultPaymentAuthorizationAdapterRegistry, cL as createElements, cM as err, cN as flatMap, cO as fromPromise, cP as getOrElse, cQ as isErr, cR as isOk, cS as mapError, cT as mapResult, cU as ok, cV as toNullable, cW as tryCatch, cX as unwrap } from './catalogue-C8TqOj9K.js';
|
|
3
|
+
export { c as clearPurchaseIntentIdempotencyKey, g as generateIdempotencyKey, i as purchaseIntentIdempotencyKey } from './index-DPWI5XcU.js';
|
|
4
|
+
import { f as CheckoutPaymentMethodKind, g as CheckoutTermsView, h as PaymentOptionView, i as ConfirmPurchaseIntentRequest, e as ProductWithDetails, T as TaxPriceDisplayMode, P as Product, D as DurationUnit, A as ApiError } from './checkout-BqK9XUz5.js';
|
|
5
|
+
export { j as AUTHORIZATION_TYPE, k as AUTH_MUTATION, l as AbortablePromise, m as AddOn, n as AddOnDetails, o as AddOnGroupDetails, p as AddOnOption, q as AddOnOptionDetails, r as AddOnOptionPrice, s as AddOnWithOptions, t as AddToCartInput, u as AddressAuthorizationData, v as AddressData, w as AddressInfo, x as AddressValue, y as AdjustmentType, z as AppliedDiscount, B as AttributeAppliesTo, E as AttributeType, F as AttributeValidationRules, G as AttributeVisibility, H as AuthResponse, I as AuthenticatedCustomer, J as AuthenticatedData, K as AuthorizationType, L as BOUNDARY_KIND, M as BenefitType, N as BillingFrequency, O as BillingMarkupType, Q as BillingPlanType, R as BoundaryKind, V as Bundle, W as BundleComponentData, X as BundleComponentInfo, Y as BundleComponentVariantView, Z as BundleComponentView, _ as BundlePriceType, $ as BundleProduct, a0 as BundleSelectionData, a1 as BundleSelectionInput, a2 as BundleStoredSelection, a3 as BundleSummary, a4 as BundleWithDetails, a5 as CHECKOUT_COMPLIANCE_LANE, a6 as CHECKOUT_COMPLIANCE_REASON, a7 as CHECKOUT_INVALIDATION_REASON, a8 as CHECKOUT_MATERIAL_TERMS_COMPONENT, a9 as CHECKOUT_MODE, aa as CHECKOUT_MUTATION, ab as CHECKOUT_NEXT_ACTION, ac as CHECKOUT_ORDER_RESULT_STATUS, ad as CHECKOUT_STATUS, ae as CHECKOUT_STEP, af as CHECKOUT_TERMS_COMPONENT, ag as CHECKOUT_TERMS_DELTA_KIND, ah as CONTACT_TYPE, ai as CanonicalSourceAuthority, aj as Cart, ak as CartAddOn, al as CartChannel, am as CartIntentCheckoutInput, an as CartItem, ao as CartItemDetails, ap as CartMutationResult, aq as CartNotice, ar as CartStatus, as as CartSummary, at as CartTotals, b as Category, au as CategorySummary, av as CheckoutAddressInfo, aw as CheckoutCartData, ax as CheckoutCartItem, ay as CheckoutCollectionMethod, az as CheckoutCollectionOption, aA as CheckoutCollectionOptions, aB as CheckoutComplianceDecision, aC as CheckoutComplianceLane, aD as CheckoutComplianceReasonCode, aE as CheckoutCustomerInfo, aF as CheckoutDestinationInput, aG as CheckoutFormData, aH as CheckoutInvalidationReason, aI as CheckoutMaterialTerms, aJ as CheckoutMaterialTermsComponent, aK as CheckoutMode, aL as CheckoutMoneyComponents, aM as CheckoutOfferKind, aN as CheckoutOrderType, aO as CheckoutPaymentMethod, aP as CheckoutResult, aQ as CheckoutSourceKind, aR as CheckoutStatus, aS as CheckoutStatusContext, aT as CheckoutStep, aU as CheckoutTermsComponent, aV as CheckoutTermsDelta, a as ChosenPrice, c as CimplifyError, d as Collection, aW as CollectionProduct, aX as CollectionSummary, aY as ComponentGroup, aZ as ComponentGroupWithComponents, a_ as ComponentPriceBreakdown, a$ as ComponentSchedulingData, b0 as ComponentSelectionInput, b1 as ComponentSourceType, b2 as Composite, b3 as CompositeComponent, b4 as CompositeComponentView, b5 as CompositeGroupView, b6 as CompositePriceBreakdown, b7 as CompositePriceResult, b8 as CompositePricingMode, b9 as CompositeSelectionData, b0 as CompositeSelectionInput, ba as CompositeStoredSelection, bb as CompositeWithDetails, bc as ConfirmPurchaseIntentResponse, bd as ContactType, be as CreateAddressInput, bf as CreateMobileMoneyInput, C as CurrencyCode, bg as CustomAttributeDefinition, bh as CustomAttributeValue, bi as Customer, bj as CustomerAddress, bk as CustomerInputValue, bl as CustomerLinkPreferences, bm as CustomerMobileMoney, bn as DEFAULT_COUNTRY, bo as DEFAULT_CURRENCY, bp as DEVICE_TYPE, bq as DURATION_UNIT, br as DateRangeValue, bs as Deal, bt as DealBenefitType, bu as DepositType, bv as DestinationQuote, bw as DestinationQuoteAddress, bx as DestinationQuoteInput, by as DeviceType, bz as DigitalProductType, bA as DiscountBreakdown, bB as DiscountDetails, bC as DiscountValidation, bD as DisplayAddOn, bE as DisplayAddOnOption, bF as DisplayCart, bG as DisplayCartItem, bH as DisplayMode, bI as ELEMENTS_AUTH_CONTACT_TYPES, bJ as ELEMENTS_AUTH_MODES, bK as ELEMENTS_AUTH_PROMPTS, bL as ELEMENT_TYPES, bM as ERROR_HINTS, bN as EVENT_TYPES, bO as ElementAppearance, bP as ElementEventHandler, bQ as ElementEventType, bR as ElementOptions, bS as ElementType, bT as ElementsAuthContactType, bU as ElementsAuthMode, bV as ElementsAuthOptions, bW as ElementsAuthPrompt, bX as ElementsCheckoutData, bY as ElementsCheckoutResult, bZ as ElementsCustomerInfo, b_ as ElementsOptions, b$ as EligiblePlansQuery, c0 as EnrollAndLinkOrderInput, c1 as EnrollAndLinkOrderResult, c2 as EnrollmentData, c3 as ErrorCode, c4 as ErrorCodeType, c5 as ErrorHint, c6 as FacetValue, c7 as FormattedPlanOption, c8 as GroupPricingBehavior, c9 as INPUT_FIELD_TYPE, ca as IdempotencyMismatchError, cb as IframeToParentMessage, cc as InitializePaymentResult, cd as InputFieldType, ce as InputFieldValidation, cf as InventoryType, cg as KnowledgeArticle, ch as LEGACY_CHECKOUT_PAYMENT_METHOD_ALIAS, ci as LEGACY_CHECKOUT_PAYMENT_STATUS, cj as LINK_MUTATION, ck as LINK_QUERY, cl as LineConfiguration, cm as LinkData, cn as LinkEnrollResult, co as LinkSession, cp as LinkStatusResult, cq as LocationProductPrice, cr as LocationValue, cs as MAX_PAYMENT_AUTHORIZATION_STEPS, ct as MESSAGE_TYPES, cu as MOBILE_MONEY_PROVIDER, cv as MOBILE_MONEY_TENDER_AUTHORITY_KIND, cw as MeasurementValue, cx as MintPurchaseIntentRequest, cy as MobileMoneyData, cz as MobileMoneyDetails, cA as MobileMoneyProvider, cB as MobileMoneyTenderPreference, cC as Money, cD as NativeAddOnSelection, cE as NextAction, cF as ORDER_MUTATION, cG as ORDER_TYPE, cH as OfferRef, cI as OrderType, cJ as PAYMENT_COLLECTION_MODE, cK as PAYMENT_INSTRUMENT_DISPLAY_KIND, cL as PAYMENT_METHOD, cM as PAYMENT_MUTATION, cN as PAYMENT_OPTION_NEXT_ACTION, cO as PAYMENT_OPTION_STATUS, cP as PAYMENT_STATE, cQ as PICKUP_TIME_TYPE, cR as PRODUCT_TYPE, cS as PURCHASE_INTENT_ACTION_DECISION, cT as PURCHASE_INTENT_CONFIRM_STATUS, cU as PURCHASE_INTENT_ERROR_CODE, cV as PURCHASE_INTENT_LINE_CONFIGURATION_KIND, cW as PURCHASE_INTENT_MOBILE_MONEY_NETWORK, cX as PURCHASE_INTENT_OFFER_KIND, cY as PURCHASE_INTENT_PAYMENT_METHOD, cZ as PURCHASE_INTENT_PAYMENT_PROVIDER, c_ as PURCHASE_INTENT_RESOLUTION_KIND, c$ as PURCHASE_INTENT_RESOLVE_STATUS, d0 as PURCHASE_INTENT_SELLABLE_KIND, d1 as PURCHASE_INTENT_SOURCE_KIND, d2 as PURCHASE_INTENT_STATUS, d3 as PURCHASING_PRINCIPAL_KIND, d4 as Pagination, d5 as PaginationParams, d6 as ParentToIframeMessage, d7 as Payment, d8 as PaymentAuthorizationKind, d9 as PaymentAuthorizationSubmission, da as PaymentCollectionMode, db as PaymentErrorDetails, dc as PaymentInstrumentDisplay, dd as PaymentMethod, de as PaymentMethodInfo, df as PaymentMethodType, dg as PaymentNextActionKind, dh as PaymentOptionStatus, di as PaymentProcessingState, dj as PaymentProvider, dk as PaymentProviderKind, dl as PaymentResponse, dm as PaymentStatus, dn as PaymentStatusResponse, dp as PhoneValue, dq as PickupTime, dr as PickupTimeType, ds as PreparePurchaseIntentRequest, dt as Price, du as PriceAdjustment, dv as PriceDecisionPath, dw as PriceEntryType, dx as PricePathTaxInfo, dy as PriceSource, dz as ProcessAndResolveOptions, dA as ProcessCheckoutOptions, dB as ProcessCheckoutResult, dC as ProductAddOn, dD as ProductAvailability, dE as ProductAvailabilityNow, dF as ProductBillingPlan, dG as ProductDealInfo, dH as ProductInputField, dI as ProductProperty, dJ as ProductRenderHint, dK as ProductTaxonomy, dL as ProductTimeProfile, dM as ProductType, dN as ProductVariant, dO as ProductVariantValue, dP as PropertyFacet, dQ as PropertySource, dR as PurchaseIntentActionResponse, dS as PurchaseIntentCustomerInput, dT as PurchaseIntentLineConfiguration, dU as PurchaseIntentLineInput, dV as PurchaseIntentLinePricingView, dW as PurchaseIntentLineView, dX as PurchaseIntentMobileMoneyNetwork, dY as PurchaseIntentResolution, dZ as PurchaseIntentReviewResponse, d_ as PurchaseIntentSimpleLineConfiguration, d$ as PurchaseIntentSourceInput, e0 as PurchaseIntentStatus, e1 as PurchaseIntentTenderPreference, e2 as PurchaseIntentTerminalResponse, e3 as PurchaseIntentView, e4 as PurchasingPrincipal, e5 as QuantityPricingTier, e6 as RENDER_HINT, e7 as RefreshCheckoutTermsRequest, e8 as RelatedProductView, e9 as RequestOtpInput, ea as RequestOtpResult, eb as RevokeAllSessionsResult, ec as RevokeSessionResult, ed as SaleCapInfo, S as SaleInfo, ee as SalesChannel, ef as SchedulingMode, eg as SelectedAddOnOption, eh as SellableKind, ei as SellableRef, ej as SemanticKind, ek as SignatureValue, el as SubmitAuthorizationInput, em as SubmitPurchaseIntentActionRequest, en as Subscription, eo as SubscriptionInvoice, ep as SubscriptionItem, eq as SubscriptionStatus, er as SubscriptionWithDetails, es as Tag, et as TagsResponse, eu as TaxPathComponent, ev as TaxonomyAttributeTemplate, ew as TaxonomyWithChildren, ex as UICart, ey as UICartBusiness, ez as UICartCustomer, eA as UICartLocation, eB as UICartPricing, eC as UnavailableLine, U as UpcomingSale, eD as UpdateAddressInput, eE as UpdateCartItemInput, eF as VariantAxis, eG as VariantAxisSelection, eH as VariantAxisValue, eI as VariantAxisValueView, eJ as VariantAxisView, eK as VariantAxisWithValues, eL as VariantDetails, eM as VariantDetailsDTO, eN as VariantDisplayAttribute, eO as VariantLocationAvailability, eP as VariantStrategy, eQ as VariantView, eR as VerifyOtpInput, eS as ZERO, eT as currencyCode, eU as enrichError, eV as getErrorHint, eW as isCimplifyError, eX as isIdempotencyMismatchError, eY as isQuoteConflictRequiringConsent, eZ as isQuoteError, e_ as isRetryableError, e$ as isSupportedCurrency, f0 as money, f1 as moneyFromNumber } from './checkout-BqK9XUz5.js';
|
|
6
|
+
export { C as CURRENCY_SYMBOLS, a as CanonicalMobileMoneyProvider, M as MOBILE_MONEY_PROVIDERS, P as PAYMENT_TERMINAL_FAILURE_STATUSES, c as canonicalMobileMoneyProvider, b as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, e as formatNumberCompact, g as formatPrice, h as formatPriceAdjustment, i as formatPriceCompact, j as formatPriceRange, k as formatPriceWithTax, l as formatProductPrice, m as getBasePrice, n as getCurrencySymbol, o as getDiscountPercentage, p as getDisplayPrice, q as getMarkupPercentage, r as getPriceRange, s as getProductCurrency, t as getTaxAmount, u as getUnitPriceAtQuantity, v as hasTaxInfo, w as isOnSale, x as isPaymentStatusFailure, y as isPaymentStatusRequiresAction, z as isPaymentStatusSuccess, A as isTaxInclusive, B as isValidPhoneForContext, D as normalizePaymentResponse, E as normalizePhoneToE164, F as normalizeStatusResponse, G as parsePrice, H as paymentAuthorizationUrl, I as purchaseIntentMobileMoneyNetwork, J as resolvePhoneCountryCode } from './index-CK8Nk5uQ.js';
|
|
7
7
|
export { A as AdConfig, a as AdContextValue, b as AdCreative, c as AdPosition, d as AdSlot, e as AdTheme, S as SignInOptions, g as getVariantDisplayName, s as startSignIn } from './sign-in-DQlIdqsi.js';
|
|
8
|
-
export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-
|
|
9
|
-
export { generateIdempotencyKey } from './advanced.js';
|
|
8
|
+
export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-6hQIIac9.js';
|
|
10
9
|
import 'libphonenumber-js';
|
|
11
10
|
|
|
12
11
|
interface PaystackPopupOptions {
|
|
@@ -26,11 +25,13 @@ type PaystackPopup = (options: PaystackPopupOptions, signal?: AbortSignal) => Pr
|
|
|
26
25
|
/** Built-in adapter for Paystack Inline. */
|
|
27
26
|
declare class PaystackAuthorizationAdapter implements PaymentAuthorizationAdapter {
|
|
28
27
|
private readonly openPopup;
|
|
29
|
-
readonly provider
|
|
28
|
+
readonly provider: "paystack";
|
|
30
29
|
constructor(openPopup?: PaystackPopup);
|
|
31
30
|
authorize(context: PaymentAuthorizationContext): Promise<PaymentAuthorizationOutcome>;
|
|
32
31
|
}
|
|
33
32
|
|
|
33
|
+
declare const STRIPE_REDIRECT_MODE: "if_required";
|
|
34
|
+
declare const STRIPE_PAYMENT_ELEMENT_TYPE: "payment";
|
|
34
35
|
interface StripeErrorLike {
|
|
35
36
|
type?: string;
|
|
36
37
|
code?: string;
|
|
@@ -49,7 +50,7 @@ interface StripePaymentElementLike {
|
|
|
49
50
|
}) => void) => void;
|
|
50
51
|
}
|
|
51
52
|
interface StripeElementsLike {
|
|
52
|
-
create(type:
|
|
53
|
+
create(type: typeof STRIPE_PAYMENT_ELEMENT_TYPE, options?: Record<string, unknown>): StripePaymentElementLike;
|
|
53
54
|
submit?: () => Promise<{
|
|
54
55
|
error?: StripeErrorLike;
|
|
55
56
|
}>;
|
|
@@ -63,25 +64,43 @@ interface StripeLike {
|
|
|
63
64
|
confirmParams: {
|
|
64
65
|
return_url: string;
|
|
65
66
|
};
|
|
66
|
-
redirect:
|
|
67
|
+
redirect: typeof STRIPE_REDIRECT_MODE;
|
|
67
68
|
}): Promise<{
|
|
68
69
|
error?: StripeErrorLike;
|
|
69
70
|
paymentIntent?: StripePaymentIntentLike;
|
|
70
71
|
}>;
|
|
71
72
|
}
|
|
72
|
-
type StripeLoader = (publicKey: string
|
|
73
|
+
type StripeLoader = (publicKey: string, options?: {
|
|
74
|
+
stripeAccount?: string;
|
|
75
|
+
}) => Promise<StripeLike | null>;
|
|
73
76
|
/**
|
|
74
77
|
* Stripe card adapter backed by the Payment Element. It reports only that the
|
|
75
|
-
* provider interaction was submitted;
|
|
78
|
+
* provider interaction was submitted; PurchaseIntentResolver still polls Cimplify
|
|
76
79
|
* before returning checkout success.
|
|
77
80
|
*/
|
|
78
81
|
declare class StripeAuthorizationAdapter implements PaymentAuthorizationAdapter {
|
|
79
82
|
private readonly loadStripe;
|
|
80
|
-
readonly provider
|
|
83
|
+
readonly provider: "stripe";
|
|
81
84
|
constructor(loadStripe?: StripeLoader);
|
|
82
85
|
authorize(context: PaymentAuthorizationContext): Promise<PaymentAuthorizationOutcome>;
|
|
83
86
|
}
|
|
84
87
|
|
|
88
|
+
interface PurchaseIntentPaymentSelection {
|
|
89
|
+
method_kind: CheckoutPaymentMethodKind;
|
|
90
|
+
/** Select one exact server-issued option when the terms contain several. */
|
|
91
|
+
payment_option_id?: string;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Select an eligible option without coupling a purchase intent to any UI's
|
|
95
|
+
* legacy form shape. Ranking remains server-owned; callers only state tender
|
|
96
|
+
* and, optionally, the exact saved instrument the shopper selected.
|
|
97
|
+
*/
|
|
98
|
+
declare function selectPurchaseIntentPaymentOption(terms: CheckoutTermsView, selection: PurchaseIntentPaymentSelection): PaymentOptionView | undefined;
|
|
99
|
+
/** Freeze explicit consent to the exact terms and option rendered by the UI. */
|
|
100
|
+
declare function createPurchaseIntentConfirmation(terms: CheckoutTermsView, paymentOption: PaymentOptionView | null | undefined, idempotencyKey: string): ConfirmPurchaseIntentRequest;
|
|
101
|
+
/** True when confirmation must name one server-issued collection option. */
|
|
102
|
+
declare function purchaseIntentRequiresPaymentOption(terms: CheckoutTermsView): boolean;
|
|
103
|
+
|
|
85
104
|
interface GalleryImage {
|
|
86
105
|
url: string;
|
|
87
106
|
/** null = product-level image; otherwise the variant it belongs to. */
|
|
@@ -247,4 +266,4 @@ interface AssetUrlOptions extends AssetTransform {
|
|
|
247
266
|
declare function assetUrl(path: string, opts?: AssetUrlOptions): string;
|
|
248
267
|
declare function isCimplifyAsset(src: string, base?: string): boolean;
|
|
249
268
|
|
|
250
|
-
export { ApiError, type ApiResponse, type AssetTransform, type AssetUrlOptions, CIMPLIFY_CDN_HOSTS, ChatReplyCard, type CustomerGroup, type CustomerPricingInfo, DEFAULT_CDN_BASE_URL, DurationUnit, type FrontendContext, type GalleryImage, type MutationRequest, PaymentAuthorizationAdapter, PaymentAuthorizationContext, PaymentAuthorizationOutcome, PaystackAuthorizationAdapter, type PaystackPopup, type PaystackPopupOptions, type PaystackPopupResult, type PriceListItem, Product, ProductWithDetails, type QuantityBreak, type QueryRequest, type ResolvedQuantityBreak, type ResponseMetadata, type SilentSignInOptions, type SilentSignInResult, StripeAuthorizationAdapter, type StripeLike, type StripeLoader, TaxPriceDisplayMode, allGalleryImages, assetUrl, chatMessageCards, displaysGrossPrices, isCimplifyAsset, isMultiDayService, priceBasisLabel, resolveGallery, serviceBillingMultiplier, signInSilent, stayLength, stayPeriods };
|
|
269
|
+
export { ApiError, type ApiResponse, type AssetTransform, type AssetUrlOptions, CIMPLIFY_CDN_HOSTS, ChatReplyCard, CheckoutPaymentMethodKind, CheckoutTermsView, ConfirmPurchaseIntentRequest, type CustomerGroup, type CustomerPricingInfo, DEFAULT_CDN_BASE_URL, DurationUnit, type FrontendContext, type GalleryImage, type MutationRequest, PaymentAuthorizationAdapter, PaymentAuthorizationContext, PaymentAuthorizationOutcome, PaymentOptionView, PaystackAuthorizationAdapter, type PaystackPopup, type PaystackPopupOptions, type PaystackPopupResult, type PriceListItem, Product, ProductWithDetails, type PurchaseIntentPaymentSelection, type QuantityBreak, type QueryRequest, type ResolvedQuantityBreak, type ResponseMetadata, type SilentSignInOptions, type SilentSignInResult, StripeAuthorizationAdapter, type StripeLike, type StripeLoader, TaxPriceDisplayMode, allGalleryImages, assetUrl, chatMessageCards, createPurchaseIntentConfirmation, displaysGrossPrices, isCimplifyAsset, isMultiDayService, priceBasisLabel, purchaseIntentRequiresPaymentOption, resolveGallery, selectPurchaseIntentPaymentOption, serviceBillingMultiplier, signInSilent, stayLength, stayPeriods };
|