@cimplify/sdk 0.101.1 → 0.103.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/advanced.d.mts +3 -3
- package/dist/advanced.d.ts +3 -3
- package/dist/advanced.js +23 -22
- package/dist/advanced.mjs +4 -3
- package/dist/{chunk-QPRI2NII.js → chunk-2P4KXFB6.js} +6 -0
- package/dist/{chunk-4G5UWFC3.mjs → chunk-3V4DVXV3.mjs} +6 -1
- package/dist/{chunk-YHPMFTMN.mjs → chunk-C2JSNJUC.mjs} +406 -95
- package/dist/chunk-CNN7Z2IP.js +125 -0
- package/dist/{chunk-DKLHCZ5M.mjs → chunk-GERXZQSX.mjs} +487 -11
- package/dist/chunk-GOHSXBKW.mjs +105 -0
- package/dist/{chunk-7H6IL7CX.mjs → chunk-H7ACMHM3.mjs} +40 -15
- package/dist/{chunk-Z3K2D3TE.mjs → chunk-J6PNHDHL.mjs} +453 -483
- package/dist/{chunk-NIOUSKQQ.js → chunk-JG5CQNCB.js} +5 -0
- package/dist/{chunk-YER7DIOM.js → chunk-JSWJ4XDE.js} +471 -519
- package/dist/{chunk-DLW3RWRK.mjs → chunk-M4URVKHE.mjs} +46 -12
- package/dist/{chunk-WMEC5JWN.js → chunk-NNG6IFFX.js} +50 -13
- package/dist/{chunk-ICCCSVN3.js → chunk-QOWPGS7Z.js} +42 -16
- package/dist/{chunk-YDA46OZ6.js → chunk-R6OLQ33I.js} +560 -80
- package/dist/{chunk-H5SSGN7W.js → chunk-VIL6IQCG.js} +408 -97
- package/dist/{chunk-O3YUHLZL.mjs → chunk-VNPEYLB2.mjs} +5 -0
- package/dist/{client-Db554902.d.ts → client-BfpNjJ_a.d.mts} +93 -299
- package/dist/{client-CdTx7X_X.d.mts → client-DHBwvh7U.d.ts} +93 -299
- package/dist/{client-WkUcvRvO.d.mts → client-DpqRobY9.d.mts} +2 -2
- package/dist/{client-D40kI8z2.d.ts → client-Dqg2mc-7.d.ts} +2 -2
- package/dist/{index-D3UXgAYl.d.ts → index-C8uDqLwJ.d.ts} +14 -4
- package/dist/{index-BjWUkYgY.d.mts → index-e2y6AK70.d.mts} +14 -4
- package/dist/index.d.mts +92 -8
- package/dist/index.d.ts +92 -8
- package/dist/index.js +225 -188
- package/dist/index.mjs +7 -6
- package/dist/link-cuNVYc2s.d.mts +297 -0
- package/dist/link-cuNVYc2s.d.ts +297 -0
- package/dist/mock/cli.mjs +412 -94
- package/dist/mock/library.js +412 -94
- package/dist/mock/library.mjs +412 -94
- package/dist/mock/msw.js +412 -94
- package/dist/mock/msw.mjs +412 -94
- package/dist/{product-DwKdC_to.d.mts → payment-H5LoIvXU.d.mts} +207 -7
- package/dist/{product-DwKdC_to.d.ts → payment-H5LoIvXU.d.ts} +207 -7
- package/dist/{price-CiQUd_XX.d.mts → price-BvePgDXe.d.mts} +1 -1
- package/dist/{price-D9EOj8y8.d.ts → price-C2RqscMY.d.ts} +1 -1
- package/dist/react.d.mts +6 -4
- package/dist/react.d.ts +6 -4
- package/dist/react.js +203 -198
- package/dist/react.mjs +11 -6
- package/dist/{server-CeDb93WA.d.ts → server-C7FyLdrz.d.mts} +11 -9
- package/dist/{server-D-nSkrUr.d.mts → server-DoXIpSd7.d.ts} +11 -9
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +11 -10
- package/dist/server.mjs +5 -4
- package/dist/testing/msw.d.mts +2 -2
- package/dist/testing/msw.d.ts +2 -2
- package/dist/testing/msw.js +4 -3
- package/dist/testing/msw.mjs +3 -2
- package/dist/testing/suite.d.mts +6 -6
- package/dist/testing/suite.d.ts +6 -6
- package/dist/testing/suite.js +26 -25
- package/dist/testing/suite.mjs +7 -6
- package/dist/testing.d.mts +175 -45
- package/dist/testing.d.ts +175 -45
- package/dist/testing.js +86 -81
- package/dist/testing.mjs +8 -7
- package/dist/utils.d.mts +4 -4
- package/dist/utils.d.ts +4 -4
- package/dist/utils.js +37 -29
- package/dist/utils.mjs +2 -2
- package/package.json +7 -1
- package/dist/payment-CRqjGrx6.d.mts +0 -113
- package/dist/payment-DO1Z1Ip6.d.ts +0 -113
package/dist/index.d.mts
CHANGED
|
@@ -1,14 +1,87 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as
|
|
3
|
-
import {
|
|
4
|
-
export { A as AddOn, a as AddOnDetails, b as AddOnGroupDetails, c as AddOnOption, d as AddOnOptionDetails, e as AddOnOptionPrice, f as AddOnWithOptions, g as AddToCartInput, h as
|
|
5
|
-
export {
|
|
1
|
+
import { bR as PaymentAuthorizationAdapter, bT as PaymentAuthorizationContext, bU as PaymentAuthorizationOutcome, R as ChatReplyCard } from './client-BfpNjJ_a.mjs';
|
|
2
|
+
export { A as AbortablePromise, a as ActivityRecommendation, b as ActivityRecommendationsResponse, c as ActivityService, d as ActivityStateResponse, e as AddressInfo, f as AmountToPay, g as AuthService, h as AuthStatus, i as AuthenticatedCustomer, j as AuthenticatedData, k as AuthorizeCardPopupOptions, l as AutocompletePrediction, m as AutocompleteResponse, n as AvailabilityResult, o as AvailableSlot, B as Booking, p as BookingModificationType, q as BookingStatus, r as BookingWithDetails, s as BufferTimes, t as Business, u as BusinessDetailsDTO, v as BusinessHours, w as BusinessPreferences, x as BusinessService, y as BusinessSettings, z as BusinessWithLocations, C as CacheOptions, D as CancelBookingInput, E as CancelBookingResult, F as CancelOrderInput, G as CancellationPolicy, H as CardPopupAction, I as CartOperations, J as CatalogueQueries, K as CatalogueResult, L as CatalogueSnapshot, M as CategoryInfo, N as ChatAttachment, O as ChatConversation, P as ChatConversationResponse, Q as ChatMessage, S as ChatReplyContext, T as ChatUploadAttachment, U as ChatWidgetStarter, V as CheckSlotAvailabilityInput, W as CheckSlotAvailabilityResult, X as CheckoutAddressInfo, Y as CheckoutCartData, Z as CheckoutCartItem, _ as CheckoutCollectionMethod, $ as CheckoutCollectionOption, a0 as CheckoutCollectionOptions, a1 as CheckoutCustomerInfo, a2 as CheckoutFormData, a3 as CheckoutInput, a4 as CheckoutMode, a8 as CheckoutOperations, a5 as CheckoutOrderType, a6 as CheckoutPaymentMethod, a7 as CheckoutResult, a8 as CheckoutService, a9 as CheckoutStatus, aa as CheckoutStatusContext, ab as CheckoutStep, ac as CimplifyClient, ad as CimplifyConfig, ae as CimplifyElement, af as CimplifyElements, ag as ClaimConversationResult, ah as ContentType, ai as CustomerBooking, aj as CustomerBookingServiceItem, ak as CustomerServicePreferences, al as DayAvailability, am as DeliveryFeeDetails, an as DeliveryFeeResponse, ao as DeliveryOption, ap as DeliveryOptionsQuery, aq as DeliveryOptionsResponse, ar as DeliveryService, as as DepositResult, at as DismissMessageResponse, au as ELEMENTS_AUTH_CONTACT_TYPES, av as ELEMENTS_AUTH_MODES, aw as ELEMENTS_AUTH_PROMPTS, ax as ELEMENT_TYPES, ay as EVENT_TYPES, az as ElementAppearance, aA as ElementEventHandler, aB as ElementEventType, aC as ElementOptions, aD as ElementType, aE as ElementsAuthContactType, aF as ElementsAuthMode, aG as ElementsAuthOptions, aH as ElementsAuthPrompt, aI as ElementsCheckoutData, aJ as ElementsCheckoutResult, aK as ElementsCustomerInfo, aL as ElementsOptions, aM as EnrichedOrder, aN as EnrichedOrderItem, aO as Err, aP as FeeBearerType, aQ as FetchQuoteInput, aR as FulfillmentLink, aS as FulfillmentStatus, aT as FulfillmentSummaryDTO, aU as FulfillmentType, aV as FxQuote, aW as FxQuoteRequest, aX as FxQuoteStatus, aY as FxRateResponse, aZ as FxService, a_ as GetAvailableSlotsInput, a$ as GetDeliveryOptionsParams, b0 as GetOrdersOptions, b1 as GetProductsOptions, b2 as GroupOrderInfo, b3 as IframeToParentMessage, b4 as InventoryService, b5 as LifecyclePhase, b6 as LineItem, b7 as LineType, b8 as LinkService, b9 as LiteBootstrap, ba as LiteDayHours, bb as LiteHoursRange, bc as LiteService, bd as Location, be as LocationBooking, bf as LocationTaxBehavior, bg as LocationTaxOverrides, bh as LocationTimeProfile, bi as LocationWithDetails, bj as MESSAGE_TYPES, bk as MobileMoneyDetails, bl as NextAction, bm as ObservabilityHooks, bn as Ok, bo as Order, bp as OrderCustomerInfo, bq as OrderDiscountInfo, br as OrderFilter, bs as OrderFulfillmentSummary, bt as OrderGroup, bu as OrderGroupDetails, bv as OrderGroupPayment, bw as OrderGroupPaymentState, bx as OrderGroupPaymentStatus, by as OrderGroupPaymentSummary, bz as OrderGroupStatus, bA as OrderHistory, bB as OrderLineState, bC as OrderLineStatus, bD as OrderLocationInfo, bE as OrderPaymentEvent, bF as OrderPricingView, bG as OrderQueries, bH as OrderSplitDetail, bI as OrderStaffInfo, bJ as OrderStatus, bK as OrderTimestampsDTO, bL as OrderType, bM as Origin, bN as OriginActor, bO as OriginChannel, bP as OtpResult, bQ as ParentToIframeMessage, bS as PaymentAuthorizationAdapterRegistry, bV as PaymentInfoDTO, bW as PaymentMethodInfo, bX as PaymentState, bY as PickupTime, bZ as PickupTimeType, b_ as PlaceDetailsResponse, b$ as PlacesService, c0 as PriceQuote, c1 as PricingOverrides, c2 as ProcessAndResolveOptions, c3 as ProcessCheckoutOptions, c4 as ProcessCheckoutResult, c5 as ProviderResolutionSource, c6 as QuoteBundleSelectionInput, c7 as QuoteCompositeSelectionInput, c8 as QuoteDynamicBuckets, c9 as QuoteStatus, ca as QuoteUiMessage, cb as ReadRequestOptions, cc as RefreshQuoteInput, cd as RefreshQuoteResult, ce as RefundOrderInput, cf as RelatedCandidate, cg as RelatedProduct, ch as RelatedProductsEnrichment, ci as RelationType, cj as ReminderMethod, ck as ReminderSettings, cl as ReorderResult, cm as RequestContext, cn as RequestErrorEvent, co as RequestOptions, cp as RequestSource, cq as RequestStartEvent, cr as RequestSuccessEvent, cs as RescheduleBookingInput, ct as RescheduleBookingResult, cu as RescheduleHistoryRecord, cv as ResourceAssignment, cw as ResourceInfo, cx as Result, cy as RetryEvent, cz as Room, cA as SchedulingMetadata, cB as SchedulingResult, cC as SchedulingService, cD as SenderType, cE as Service, cF as ServiceAvailabilityParams, cG as ServiceAvailabilityResult, cH as ServiceCharge, cI as ServiceNotes, cJ as ServiceScheduleRequest, cK as ServiceStatus, cL as SessionActivityData, cM as SessionChangeEvent, cN as SessionMessage, cO as SlotResourceInfo, cP as SlotStaffInfo, cQ as Staff, cR as StaffAssignment, cS as StaffRole, cT as StaffScheduleItem, cU as StockLevel, cV as StockStatus, cW as StoreCreditBalance, cX as StoreCreditQueries, cY as StorefrontBootstrap, cZ as SubscriptionService, c_ as SupportService, c$ as Table, d0 as TimeRange, d1 as TimeRanges, d2 as TimeSlot, d3 as TrackCategoryViewOptions, d4 as TrackProductViewOptions, d5 as UpdateOrderStatusInput, d6 as UpdateProfileInput, d7 as UploadInitResponse, d8 as UploadResult, d9 as UploadService, da as combine, db as combineObject, dc as createCimplifyClient, dd as createDefaultPaymentAuthorizationAdapterRegistry, de as createElements, df as err, dg as flatMap, dh as fromPromise, di as getOrElse, dj as isErr, dk as isOk, dl as mapError, dm as mapResult, dn as ok, dp as toNullable, dq as tryCatch, dr as unwrap } from './client-BfpNjJ_a.mjs';
|
|
3
|
+
import { bs as ProductWithDetails, bO as TaxPriceDisplayMode, be as Product, aA as DurationUnit, k as ApiError } from './payment-H5LoIvXU.mjs';
|
|
4
|
+
export { A as AddOn, a as AddOnDetails, b as AddOnGroupDetails, c as AddOnOption, d as AddOnOptionDetails, e as AddOnOptionPrice, f as AddOnWithOptions, g as AddToCartInput, h as AddressAuthorizationData, i as AddressValue, j as AdjustmentType, l as AppliedDiscount, m as AttributeAppliesTo, n as AttributeType, o as AttributeValidationRules, p as AttributeVisibility, q as AuthorizationType, B as BOUNDARY_KIND, r as BenefitType, s as BillingFrequency, t as BillingMarkupType, u as BillingPlanType, v as BoundaryKind, w as Bundle, x as BundleComponentData, y as BundleComponentInfo, z as BundleComponentVariantView, C as BundleComponentView, D as BundlePriceType, E as BundleProduct, F as BundleSelectionData, G as BundleSelectionInput, H as BundleStoredSelection, I as BundleSummary, J as BundleWithDetails, K as Cart, L as CartAddOn, M as CartChannel, N as CartItem, O as CartItemDetails, P as CartMutationResult, Q as CartNotice, R as CartStatus, S as CartSummary, T as CartTotals, U as Category, V as CategorySummary, W as ChosenPrice, X as CimplifyError, Y as Collection, Z as CollectionProduct, _ as CollectionSummary, $ as ComponentGroup, a0 as ComponentGroupWithComponents, a1 as ComponentPriceBreakdown, a2 as ComponentSchedulingData, a3 as ComponentSelectionInput, a4 as ComponentSourceType, a5 as Composite, a6 as CompositeComponent, a7 as CompositeComponentView, a8 as CompositeGroupView, a9 as CompositePriceBreakdown, aa as CompositePriceResult, ab as CompositePricingMode, ac as CompositeSelectionData, a3 as CompositeSelectionInput, ad as CompositeStoredSelection, ae as CompositeWithDetails, af as CurrencyCode, ag as CustomAttributeDefinition, ah as CustomAttributeValue, ai as CustomerInputValue, aj as DURATION_UNIT, ak as DateRangeValue, al as Deal, am as DealBenefitType, an as DepositType, ao as DestinationQuote, ap as DestinationQuoteAddress, aq as DestinationQuoteInput, ar as DigitalProductType, as as DiscountBreakdown, at as DiscountDetails, au as DiscountValidation, av as DisplayAddOn, aw as DisplayAddOnOption, ax as DisplayCart, ay as DisplayCartItem, az as DisplayMode, aB as ERROR_HINTS, aC as EligiblePlansQuery, aD as ErrorCode, aE as ErrorCodeType, aF as ErrorHint, aG as FacetValue, aH as FormattedPlanOption, aI as GroupPricingBehavior, aJ as INPUT_FIELD_TYPE, aK as IdempotencyMismatchError, aL as InitializePaymentResult, aM as InputFieldType, aN as InputFieldValidation, aO as InventoryType, aP as KnowledgeArticle, aQ as LineConfiguration, aR as LocationProductPrice, aS as LocationValue, aT as MeasurementValue, aU as Money, aV as PRODUCT_TYPE, aW as Pagination, aX as PaginationParams, aY as Payment, aZ as PaymentAuthorizationKind, a_ as PaymentAuthorizationSubmission, a$ as PaymentErrorDetails, b0 as PaymentMethod, b1 as PaymentMethodType, b2 as PaymentProcessingState, b3 as PaymentProvider, b4 as PaymentResponse, b5 as PaymentStatus, b6 as PaymentStatusResponse, b7 as PhoneValue, b8 as Price, b9 as PriceAdjustment, ba as PriceDecisionPath, bb as PriceEntryType, bc as PricePathTaxInfo, bd as PriceSource, bf as ProductAddOn, bg as ProductAvailability, bh as ProductAvailabilityNow, bi as ProductBillingPlan, bj as ProductDealInfo, bk as ProductInputField, bl as ProductProperty, bm as ProductRenderHint, bn as ProductTaxonomy, bo as ProductTimeProfile, bp as ProductType, bq as ProductVariant, br as ProductVariantValue, bt as PropertyFacet, bu as PropertySource, bv as QuantityPricingTier, bw as RENDER_HINT, bx as RelatedProductView, by as SaleCapInfo, bz as SaleInfo, bA as SalesChannel, bB as SchedulingMode, bC as SelectedAddOnOption, bD as SemanticKind, bE as SignatureValue, bF as SubmitAuthorizationInput, bG as Subscription, bH as SubscriptionInvoice, bI as SubscriptionItem, bJ as SubscriptionStatus, bK as SubscriptionWithDetails, bL as Tag, bM as TagsResponse, bN as TaxPathComponent, bP as TaxonomyAttributeTemplate, bQ as TaxonomyWithChildren, bR as UICart, bS as UICartBusiness, bT as UICartCustomer, bU as UICartLocation, bV as UICartPricing, bW as UpcomingSale, bX as UpdateCartItemInput, bY as VariantAxis, bZ as VariantAxisSelection, b_ as VariantAxisValue, b$ as VariantAxisValueView, c0 as VariantAxisView, c1 as VariantAxisWithValues, c2 as VariantDetails, c3 as VariantDetailsDTO, c4 as VariantDisplayAttribute, c5 as VariantLocationAvailability, c6 as VariantStrategy, c7 as VariantView, c8 as ZERO, ca as currencyCode, cb as enrichError, cc as getErrorHint, cd as isCimplifyError, ce as isIdempotencyMismatchError, cf as isQuoteConflictRequiringConsent, cg as isQuoteError, ch as isRetryableError, ci as isSupportedCurrency, cj as money, ck as moneyFromNumber } from './payment-H5LoIvXU.mjs';
|
|
5
|
+
export { A as AUTHORIZATION_TYPE, a as AUTH_MUTATION, b as AddressData, c as AuthResponse, C as CHECKOUT_MODE, d as CHECKOUT_MUTATION, e as CHECKOUT_STEP, f as CONTACT_TYPE, g as ContactType, h as CreateAddressInput, i as CreateMobileMoneyInput, j as Customer, k as CustomerAddress, l as CustomerLinkPreferences, m as CustomerMobileMoney, D as DEFAULT_COUNTRY, n as DEFAULT_CURRENCY, o as DEVICE_TYPE, p as DeviceType, E as EnrollAndLinkOrderInput, q as EnrollAndLinkOrderResult, r as EnrollmentData, L as LINK_MUTATION, s as LINK_QUERY, t as LinkData, u as LinkEnrollResult, v as LinkSession, w as LinkStatusResult, M as MAX_PAYMENT_AUTHORIZATION_STEPS, x as MOBILE_MONEY_PROVIDER, y as MobileMoneyData, z as MobileMoneyProvider, O as ORDER_MUTATION, B as ORDER_TYPE, P as PAYMENT_METHOD, F as PAYMENT_MUTATION, G as PAYMENT_STATE, H as PICKUP_TIME_TYPE, R as RequestOtpInput, I as RevokeAllSessionsResult, J as RevokeSessionResult, U as UpdateAddressInput, V as VerifyOtpInput } from './link-cuNVYc2s.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 resolvePhoneCountryCode } from './index-e2y6AK70.mjs';
|
|
6
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';
|
|
7
|
-
export {
|
|
8
|
-
export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-CiQUd_XX.mjs';
|
|
8
|
+
export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-BvePgDXe.mjs';
|
|
9
9
|
export { generateIdempotencyKey } from './advanced.mjs';
|
|
10
10
|
import 'libphonenumber-js';
|
|
11
11
|
|
|
12
|
+
interface PaystackPopupOptions {
|
|
13
|
+
key: string;
|
|
14
|
+
email: string;
|
|
15
|
+
amount?: number;
|
|
16
|
+
currency?: string;
|
|
17
|
+
reference?: string;
|
|
18
|
+
accessCode?: string;
|
|
19
|
+
}
|
|
20
|
+
interface PaystackPopupResult {
|
|
21
|
+
success: boolean;
|
|
22
|
+
reference?: string;
|
|
23
|
+
error?: string;
|
|
24
|
+
}
|
|
25
|
+
type PaystackPopup = (options: PaystackPopupOptions, signal?: AbortSignal) => Promise<PaystackPopupResult>;
|
|
26
|
+
/** Built-in adapter for Paystack Inline. */
|
|
27
|
+
declare class PaystackAuthorizationAdapter implements PaymentAuthorizationAdapter {
|
|
28
|
+
private readonly openPopup;
|
|
29
|
+
readonly provider = "paystack";
|
|
30
|
+
constructor(openPopup?: PaystackPopup);
|
|
31
|
+
authorize(context: PaymentAuthorizationContext): Promise<PaymentAuthorizationOutcome>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
interface StripeErrorLike {
|
|
35
|
+
type?: string;
|
|
36
|
+
code?: string;
|
|
37
|
+
message?: string;
|
|
38
|
+
}
|
|
39
|
+
interface StripePaymentIntentLike {
|
|
40
|
+
id?: string;
|
|
41
|
+
status?: string;
|
|
42
|
+
}
|
|
43
|
+
interface StripePaymentElementLike {
|
|
44
|
+
mount(target: HTMLElement): void;
|
|
45
|
+
destroy?: () => void;
|
|
46
|
+
unmount?: () => void;
|
|
47
|
+
on?: (event: string, handler: (event?: {
|
|
48
|
+
error?: StripeErrorLike;
|
|
49
|
+
}) => void) => void;
|
|
50
|
+
}
|
|
51
|
+
interface StripeElementsLike {
|
|
52
|
+
create(type: "payment", options?: Record<string, unknown>): StripePaymentElementLike;
|
|
53
|
+
submit?: () => Promise<{
|
|
54
|
+
error?: StripeErrorLike;
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
57
|
+
interface StripeLike {
|
|
58
|
+
elements(options: {
|
|
59
|
+
clientSecret: string;
|
|
60
|
+
}): StripeElementsLike;
|
|
61
|
+
confirmPayment(options: {
|
|
62
|
+
elements: StripeElementsLike;
|
|
63
|
+
confirmParams: {
|
|
64
|
+
return_url: string;
|
|
65
|
+
};
|
|
66
|
+
redirect: "if_required";
|
|
67
|
+
}): Promise<{
|
|
68
|
+
error?: StripeErrorLike;
|
|
69
|
+
paymentIntent?: StripePaymentIntentLike;
|
|
70
|
+
}>;
|
|
71
|
+
}
|
|
72
|
+
type StripeLoader = (publicKey: string) => Promise<StripeLike | null>;
|
|
73
|
+
/**
|
|
74
|
+
* Stripe card adapter backed by the Payment Element. It reports only that the
|
|
75
|
+
* provider interaction was submitted; CheckoutResolver still polls Cimplify
|
|
76
|
+
* before returning checkout success.
|
|
77
|
+
*/
|
|
78
|
+
declare class StripeAuthorizationAdapter implements PaymentAuthorizationAdapter {
|
|
79
|
+
private readonly loadStripe;
|
|
80
|
+
readonly provider = "stripe";
|
|
81
|
+
constructor(loadStripe?: StripeLoader);
|
|
82
|
+
authorize(context: PaymentAuthorizationContext): Promise<PaymentAuthorizationOutcome>;
|
|
83
|
+
}
|
|
84
|
+
|
|
12
85
|
interface GalleryImage {
|
|
13
86
|
url: string;
|
|
14
87
|
/** null = product-level image; otherwise the variant it belongs to. */
|
|
@@ -70,6 +143,17 @@ interface CustomerPricingInfo {
|
|
|
70
143
|
items: QuantityBreak[];
|
|
71
144
|
}
|
|
72
145
|
|
|
146
|
+
/**
|
|
147
|
+
* Whether customer-facing totals must present the tax-inclusive amount as the
|
|
148
|
+
* price. True for inclusive-arithmetic markets (Ghana VAT) and for markets
|
|
149
|
+
* whose reviewed presentation policy is `gross_required` even though the tax
|
|
150
|
+
* arithmetic itself is exclusive (Nigeria, Singapore, South Africa, UAE).
|
|
151
|
+
*/
|
|
152
|
+
declare function displaysGrossPrices(pricing: {
|
|
153
|
+
tax_inclusive: boolean;
|
|
154
|
+
price_display_mode?: TaxPriceDisplayMode | null;
|
|
155
|
+
}): boolean;
|
|
156
|
+
|
|
73
157
|
type BasisFields = Pick<Product, "type" | "price_basis" | "duration_unit" | "scheduling_mode">;
|
|
74
158
|
/** Whether this service schedules whole stays (per-duration-unit billing
|
|
75
159
|
* default, unit reservations) rather than intraday slots. The server-resolved
|
|
@@ -163,4 +247,4 @@ interface AssetUrlOptions extends AssetTransform {
|
|
|
163
247
|
declare function assetUrl(path: string, opts?: AssetUrlOptions): string;
|
|
164
248
|
declare function isCimplifyAsset(src: string, base?: string): boolean;
|
|
165
249
|
|
|
166
|
-
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, type PriceListItem, Product, ProductWithDetails, type QuantityBreak, type QueryRequest, type ResolvedQuantityBreak, type ResponseMetadata, type SilentSignInOptions, type SilentSignInResult, allGalleryImages, assetUrl, chatMessageCards, isCimplifyAsset, isMultiDayService, priceBasisLabel, resolveGallery, serviceBillingMultiplier, signInSilent, stayLength, stayPeriods };
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,87 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as
|
|
3
|
-
import {
|
|
4
|
-
export { A as AddOn, a as AddOnDetails, b as AddOnGroupDetails, c as AddOnOption, d as AddOnOptionDetails, e as AddOnOptionPrice, f as AddOnWithOptions, g as AddToCartInput, h as
|
|
5
|
-
export {
|
|
1
|
+
import { bR as PaymentAuthorizationAdapter, bT as PaymentAuthorizationContext, bU as PaymentAuthorizationOutcome, R as ChatReplyCard } from './client-DHBwvh7U.js';
|
|
2
|
+
export { A as AbortablePromise, a as ActivityRecommendation, b as ActivityRecommendationsResponse, c as ActivityService, d as ActivityStateResponse, e as AddressInfo, f as AmountToPay, g as AuthService, h as AuthStatus, i as AuthenticatedCustomer, j as AuthenticatedData, k as AuthorizeCardPopupOptions, l as AutocompletePrediction, m as AutocompleteResponse, n as AvailabilityResult, o as AvailableSlot, B as Booking, p as BookingModificationType, q as BookingStatus, r as BookingWithDetails, s as BufferTimes, t as Business, u as BusinessDetailsDTO, v as BusinessHours, w as BusinessPreferences, x as BusinessService, y as BusinessSettings, z as BusinessWithLocations, C as CacheOptions, D as CancelBookingInput, E as CancelBookingResult, F as CancelOrderInput, G as CancellationPolicy, H as CardPopupAction, I as CartOperations, J as CatalogueQueries, K as CatalogueResult, L as CatalogueSnapshot, M as CategoryInfo, N as ChatAttachment, O as ChatConversation, P as ChatConversationResponse, Q as ChatMessage, S as ChatReplyContext, T as ChatUploadAttachment, U as ChatWidgetStarter, V as CheckSlotAvailabilityInput, W as CheckSlotAvailabilityResult, X as CheckoutAddressInfo, Y as CheckoutCartData, Z as CheckoutCartItem, _ as CheckoutCollectionMethod, $ as CheckoutCollectionOption, a0 as CheckoutCollectionOptions, a1 as CheckoutCustomerInfo, a2 as CheckoutFormData, a3 as CheckoutInput, a4 as CheckoutMode, a8 as CheckoutOperations, a5 as CheckoutOrderType, a6 as CheckoutPaymentMethod, a7 as CheckoutResult, a8 as CheckoutService, a9 as CheckoutStatus, aa as CheckoutStatusContext, ab as CheckoutStep, ac as CimplifyClient, ad as CimplifyConfig, ae as CimplifyElement, af as CimplifyElements, ag as ClaimConversationResult, ah as ContentType, ai as CustomerBooking, aj as CustomerBookingServiceItem, ak as CustomerServicePreferences, al as DayAvailability, am as DeliveryFeeDetails, an as DeliveryFeeResponse, ao as DeliveryOption, ap as DeliveryOptionsQuery, aq as DeliveryOptionsResponse, ar as DeliveryService, as as DepositResult, at as DismissMessageResponse, au as ELEMENTS_AUTH_CONTACT_TYPES, av as ELEMENTS_AUTH_MODES, aw as ELEMENTS_AUTH_PROMPTS, ax as ELEMENT_TYPES, ay as EVENT_TYPES, az as ElementAppearance, aA as ElementEventHandler, aB as ElementEventType, aC as ElementOptions, aD as ElementType, aE as ElementsAuthContactType, aF as ElementsAuthMode, aG as ElementsAuthOptions, aH as ElementsAuthPrompt, aI as ElementsCheckoutData, aJ as ElementsCheckoutResult, aK as ElementsCustomerInfo, aL as ElementsOptions, aM as EnrichedOrder, aN as EnrichedOrderItem, aO as Err, aP as FeeBearerType, aQ as FetchQuoteInput, aR as FulfillmentLink, aS as FulfillmentStatus, aT as FulfillmentSummaryDTO, aU as FulfillmentType, aV as FxQuote, aW as FxQuoteRequest, aX as FxQuoteStatus, aY as FxRateResponse, aZ as FxService, a_ as GetAvailableSlotsInput, a$ as GetDeliveryOptionsParams, b0 as GetOrdersOptions, b1 as GetProductsOptions, b2 as GroupOrderInfo, b3 as IframeToParentMessage, b4 as InventoryService, b5 as LifecyclePhase, b6 as LineItem, b7 as LineType, b8 as LinkService, b9 as LiteBootstrap, ba as LiteDayHours, bb as LiteHoursRange, bc as LiteService, bd as Location, be as LocationBooking, bf as LocationTaxBehavior, bg as LocationTaxOverrides, bh as LocationTimeProfile, bi as LocationWithDetails, bj as MESSAGE_TYPES, bk as MobileMoneyDetails, bl as NextAction, bm as ObservabilityHooks, bn as Ok, bo as Order, bp as OrderCustomerInfo, bq as OrderDiscountInfo, br as OrderFilter, bs as OrderFulfillmentSummary, bt as OrderGroup, bu as OrderGroupDetails, bv as OrderGroupPayment, bw as OrderGroupPaymentState, bx as OrderGroupPaymentStatus, by as OrderGroupPaymentSummary, bz as OrderGroupStatus, bA as OrderHistory, bB as OrderLineState, bC as OrderLineStatus, bD as OrderLocationInfo, bE as OrderPaymentEvent, bF as OrderPricingView, bG as OrderQueries, bH as OrderSplitDetail, bI as OrderStaffInfo, bJ as OrderStatus, bK as OrderTimestampsDTO, bL as OrderType, bM as Origin, bN as OriginActor, bO as OriginChannel, bP as OtpResult, bQ as ParentToIframeMessage, bS as PaymentAuthorizationAdapterRegistry, bV as PaymentInfoDTO, bW as PaymentMethodInfo, bX as PaymentState, bY as PickupTime, bZ as PickupTimeType, b_ as PlaceDetailsResponse, b$ as PlacesService, c0 as PriceQuote, c1 as PricingOverrides, c2 as ProcessAndResolveOptions, c3 as ProcessCheckoutOptions, c4 as ProcessCheckoutResult, c5 as ProviderResolutionSource, c6 as QuoteBundleSelectionInput, c7 as QuoteCompositeSelectionInput, c8 as QuoteDynamicBuckets, c9 as QuoteStatus, ca as QuoteUiMessage, cb as ReadRequestOptions, cc as RefreshQuoteInput, cd as RefreshQuoteResult, ce as RefundOrderInput, cf as RelatedCandidate, cg as RelatedProduct, ch as RelatedProductsEnrichment, ci as RelationType, cj as ReminderMethod, ck as ReminderSettings, cl as ReorderResult, cm as RequestContext, cn as RequestErrorEvent, co as RequestOptions, cp as RequestSource, cq as RequestStartEvent, cr as RequestSuccessEvent, cs as RescheduleBookingInput, ct as RescheduleBookingResult, cu as RescheduleHistoryRecord, cv as ResourceAssignment, cw as ResourceInfo, cx as Result, cy as RetryEvent, cz as Room, cA as SchedulingMetadata, cB as SchedulingResult, cC as SchedulingService, cD as SenderType, cE as Service, cF as ServiceAvailabilityParams, cG as ServiceAvailabilityResult, cH as ServiceCharge, cI as ServiceNotes, cJ as ServiceScheduleRequest, cK as ServiceStatus, cL as SessionActivityData, cM as SessionChangeEvent, cN as SessionMessage, cO as SlotResourceInfo, cP as SlotStaffInfo, cQ as Staff, cR as StaffAssignment, cS as StaffRole, cT as StaffScheduleItem, cU as StockLevel, cV as StockStatus, cW as StoreCreditBalance, cX as StoreCreditQueries, cY as StorefrontBootstrap, cZ as SubscriptionService, c_ as SupportService, c$ as Table, d0 as TimeRange, d1 as TimeRanges, d2 as TimeSlot, d3 as TrackCategoryViewOptions, d4 as TrackProductViewOptions, d5 as UpdateOrderStatusInput, d6 as UpdateProfileInput, d7 as UploadInitResponse, d8 as UploadResult, d9 as UploadService, da as combine, db as combineObject, dc as createCimplifyClient, dd as createDefaultPaymentAuthorizationAdapterRegistry, de as createElements, df as err, dg as flatMap, dh as fromPromise, di as getOrElse, dj as isErr, dk as isOk, dl as mapError, dm as mapResult, dn as ok, dp as toNullable, dq as tryCatch, dr as unwrap } from './client-DHBwvh7U.js';
|
|
3
|
+
import { bs as ProductWithDetails, bO as TaxPriceDisplayMode, be as Product, aA as DurationUnit, k as ApiError } from './payment-H5LoIvXU.js';
|
|
4
|
+
export { A as AddOn, a as AddOnDetails, b as AddOnGroupDetails, c as AddOnOption, d as AddOnOptionDetails, e as AddOnOptionPrice, f as AddOnWithOptions, g as AddToCartInput, h as AddressAuthorizationData, i as AddressValue, j as AdjustmentType, l as AppliedDiscount, m as AttributeAppliesTo, n as AttributeType, o as AttributeValidationRules, p as AttributeVisibility, q as AuthorizationType, B as BOUNDARY_KIND, r as BenefitType, s as BillingFrequency, t as BillingMarkupType, u as BillingPlanType, v as BoundaryKind, w as Bundle, x as BundleComponentData, y as BundleComponentInfo, z as BundleComponentVariantView, C as BundleComponentView, D as BundlePriceType, E as BundleProduct, F as BundleSelectionData, G as BundleSelectionInput, H as BundleStoredSelection, I as BundleSummary, J as BundleWithDetails, K as Cart, L as CartAddOn, M as CartChannel, N as CartItem, O as CartItemDetails, P as CartMutationResult, Q as CartNotice, R as CartStatus, S as CartSummary, T as CartTotals, U as Category, V as CategorySummary, W as ChosenPrice, X as CimplifyError, Y as Collection, Z as CollectionProduct, _ as CollectionSummary, $ as ComponentGroup, a0 as ComponentGroupWithComponents, a1 as ComponentPriceBreakdown, a2 as ComponentSchedulingData, a3 as ComponentSelectionInput, a4 as ComponentSourceType, a5 as Composite, a6 as CompositeComponent, a7 as CompositeComponentView, a8 as CompositeGroupView, a9 as CompositePriceBreakdown, aa as CompositePriceResult, ab as CompositePricingMode, ac as CompositeSelectionData, a3 as CompositeSelectionInput, ad as CompositeStoredSelection, ae as CompositeWithDetails, af as CurrencyCode, ag as CustomAttributeDefinition, ah as CustomAttributeValue, ai as CustomerInputValue, aj as DURATION_UNIT, ak as DateRangeValue, al as Deal, am as DealBenefitType, an as DepositType, ao as DestinationQuote, ap as DestinationQuoteAddress, aq as DestinationQuoteInput, ar as DigitalProductType, as as DiscountBreakdown, at as DiscountDetails, au as DiscountValidation, av as DisplayAddOn, aw as DisplayAddOnOption, ax as DisplayCart, ay as DisplayCartItem, az as DisplayMode, aB as ERROR_HINTS, aC as EligiblePlansQuery, aD as ErrorCode, aE as ErrorCodeType, aF as ErrorHint, aG as FacetValue, aH as FormattedPlanOption, aI as GroupPricingBehavior, aJ as INPUT_FIELD_TYPE, aK as IdempotencyMismatchError, aL as InitializePaymentResult, aM as InputFieldType, aN as InputFieldValidation, aO as InventoryType, aP as KnowledgeArticle, aQ as LineConfiguration, aR as LocationProductPrice, aS as LocationValue, aT as MeasurementValue, aU as Money, aV as PRODUCT_TYPE, aW as Pagination, aX as PaginationParams, aY as Payment, aZ as PaymentAuthorizationKind, a_ as PaymentAuthorizationSubmission, a$ as PaymentErrorDetails, b0 as PaymentMethod, b1 as PaymentMethodType, b2 as PaymentProcessingState, b3 as PaymentProvider, b4 as PaymentResponse, b5 as PaymentStatus, b6 as PaymentStatusResponse, b7 as PhoneValue, b8 as Price, b9 as PriceAdjustment, ba as PriceDecisionPath, bb as PriceEntryType, bc as PricePathTaxInfo, bd as PriceSource, bf as ProductAddOn, bg as ProductAvailability, bh as ProductAvailabilityNow, bi as ProductBillingPlan, bj as ProductDealInfo, bk as ProductInputField, bl as ProductProperty, bm as ProductRenderHint, bn as ProductTaxonomy, bo as ProductTimeProfile, bp as ProductType, bq as ProductVariant, br as ProductVariantValue, bt as PropertyFacet, bu as PropertySource, bv as QuantityPricingTier, bw as RENDER_HINT, bx as RelatedProductView, by as SaleCapInfo, bz as SaleInfo, bA as SalesChannel, bB as SchedulingMode, bC as SelectedAddOnOption, bD as SemanticKind, bE as SignatureValue, bF as SubmitAuthorizationInput, bG as Subscription, bH as SubscriptionInvoice, bI as SubscriptionItem, bJ as SubscriptionStatus, bK as SubscriptionWithDetails, bL as Tag, bM as TagsResponse, bN as TaxPathComponent, bP as TaxonomyAttributeTemplate, bQ as TaxonomyWithChildren, bR as UICart, bS as UICartBusiness, bT as UICartCustomer, bU as UICartLocation, bV as UICartPricing, bW as UpcomingSale, bX as UpdateCartItemInput, bY as VariantAxis, bZ as VariantAxisSelection, b_ as VariantAxisValue, b$ as VariantAxisValueView, c0 as VariantAxisView, c1 as VariantAxisWithValues, c2 as VariantDetails, c3 as VariantDetailsDTO, c4 as VariantDisplayAttribute, c5 as VariantLocationAvailability, c6 as VariantStrategy, c7 as VariantView, c8 as ZERO, ca as currencyCode, cb as enrichError, cc as getErrorHint, cd as isCimplifyError, ce as isIdempotencyMismatchError, cf as isQuoteConflictRequiringConsent, cg as isQuoteError, ch as isRetryableError, ci as isSupportedCurrency, cj as money, ck as moneyFromNumber } from './payment-H5LoIvXU.js';
|
|
5
|
+
export { A as AUTHORIZATION_TYPE, a as AUTH_MUTATION, b as AddressData, c as AuthResponse, C as CHECKOUT_MODE, d as CHECKOUT_MUTATION, e as CHECKOUT_STEP, f as CONTACT_TYPE, g as ContactType, h as CreateAddressInput, i as CreateMobileMoneyInput, j as Customer, k as CustomerAddress, l as CustomerLinkPreferences, m as CustomerMobileMoney, D as DEFAULT_COUNTRY, n as DEFAULT_CURRENCY, o as DEVICE_TYPE, p as DeviceType, E as EnrollAndLinkOrderInput, q as EnrollAndLinkOrderResult, r as EnrollmentData, L as LINK_MUTATION, s as LINK_QUERY, t as LinkData, u as LinkEnrollResult, v as LinkSession, w as LinkStatusResult, M as MAX_PAYMENT_AUTHORIZATION_STEPS, x as MOBILE_MONEY_PROVIDER, y as MobileMoneyData, z as MobileMoneyProvider, O as ORDER_MUTATION, B as ORDER_TYPE, P as PAYMENT_METHOD, F as PAYMENT_MUTATION, G as PAYMENT_STATE, H as PICKUP_TIME_TYPE, R as RequestOtpInput, I as RevokeAllSessionsResult, J as RevokeSessionResult, U as UpdateAddressInput, V as VerifyOtpInput } from './link-cuNVYc2s.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 resolvePhoneCountryCode } from './index-C8uDqLwJ.js';
|
|
6
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';
|
|
7
|
-
export {
|
|
8
|
-
export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-D9EOj8y8.js';
|
|
8
|
+
export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-C2RqscMY.js';
|
|
9
9
|
export { generateIdempotencyKey } from './advanced.js';
|
|
10
10
|
import 'libphonenumber-js';
|
|
11
11
|
|
|
12
|
+
interface PaystackPopupOptions {
|
|
13
|
+
key: string;
|
|
14
|
+
email: string;
|
|
15
|
+
amount?: number;
|
|
16
|
+
currency?: string;
|
|
17
|
+
reference?: string;
|
|
18
|
+
accessCode?: string;
|
|
19
|
+
}
|
|
20
|
+
interface PaystackPopupResult {
|
|
21
|
+
success: boolean;
|
|
22
|
+
reference?: string;
|
|
23
|
+
error?: string;
|
|
24
|
+
}
|
|
25
|
+
type PaystackPopup = (options: PaystackPopupOptions, signal?: AbortSignal) => Promise<PaystackPopupResult>;
|
|
26
|
+
/** Built-in adapter for Paystack Inline. */
|
|
27
|
+
declare class PaystackAuthorizationAdapter implements PaymentAuthorizationAdapter {
|
|
28
|
+
private readonly openPopup;
|
|
29
|
+
readonly provider = "paystack";
|
|
30
|
+
constructor(openPopup?: PaystackPopup);
|
|
31
|
+
authorize(context: PaymentAuthorizationContext): Promise<PaymentAuthorizationOutcome>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
interface StripeErrorLike {
|
|
35
|
+
type?: string;
|
|
36
|
+
code?: string;
|
|
37
|
+
message?: string;
|
|
38
|
+
}
|
|
39
|
+
interface StripePaymentIntentLike {
|
|
40
|
+
id?: string;
|
|
41
|
+
status?: string;
|
|
42
|
+
}
|
|
43
|
+
interface StripePaymentElementLike {
|
|
44
|
+
mount(target: HTMLElement): void;
|
|
45
|
+
destroy?: () => void;
|
|
46
|
+
unmount?: () => void;
|
|
47
|
+
on?: (event: string, handler: (event?: {
|
|
48
|
+
error?: StripeErrorLike;
|
|
49
|
+
}) => void) => void;
|
|
50
|
+
}
|
|
51
|
+
interface StripeElementsLike {
|
|
52
|
+
create(type: "payment", options?: Record<string, unknown>): StripePaymentElementLike;
|
|
53
|
+
submit?: () => Promise<{
|
|
54
|
+
error?: StripeErrorLike;
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
57
|
+
interface StripeLike {
|
|
58
|
+
elements(options: {
|
|
59
|
+
clientSecret: string;
|
|
60
|
+
}): StripeElementsLike;
|
|
61
|
+
confirmPayment(options: {
|
|
62
|
+
elements: StripeElementsLike;
|
|
63
|
+
confirmParams: {
|
|
64
|
+
return_url: string;
|
|
65
|
+
};
|
|
66
|
+
redirect: "if_required";
|
|
67
|
+
}): Promise<{
|
|
68
|
+
error?: StripeErrorLike;
|
|
69
|
+
paymentIntent?: StripePaymentIntentLike;
|
|
70
|
+
}>;
|
|
71
|
+
}
|
|
72
|
+
type StripeLoader = (publicKey: string) => Promise<StripeLike | null>;
|
|
73
|
+
/**
|
|
74
|
+
* Stripe card adapter backed by the Payment Element. It reports only that the
|
|
75
|
+
* provider interaction was submitted; CheckoutResolver still polls Cimplify
|
|
76
|
+
* before returning checkout success.
|
|
77
|
+
*/
|
|
78
|
+
declare class StripeAuthorizationAdapter implements PaymentAuthorizationAdapter {
|
|
79
|
+
private readonly loadStripe;
|
|
80
|
+
readonly provider = "stripe";
|
|
81
|
+
constructor(loadStripe?: StripeLoader);
|
|
82
|
+
authorize(context: PaymentAuthorizationContext): Promise<PaymentAuthorizationOutcome>;
|
|
83
|
+
}
|
|
84
|
+
|
|
12
85
|
interface GalleryImage {
|
|
13
86
|
url: string;
|
|
14
87
|
/** null = product-level image; otherwise the variant it belongs to. */
|
|
@@ -70,6 +143,17 @@ interface CustomerPricingInfo {
|
|
|
70
143
|
items: QuantityBreak[];
|
|
71
144
|
}
|
|
72
145
|
|
|
146
|
+
/**
|
|
147
|
+
* Whether customer-facing totals must present the tax-inclusive amount as the
|
|
148
|
+
* price. True for inclusive-arithmetic markets (Ghana VAT) and for markets
|
|
149
|
+
* whose reviewed presentation policy is `gross_required` even though the tax
|
|
150
|
+
* arithmetic itself is exclusive (Nigeria, Singapore, South Africa, UAE).
|
|
151
|
+
*/
|
|
152
|
+
declare function displaysGrossPrices(pricing: {
|
|
153
|
+
tax_inclusive: boolean;
|
|
154
|
+
price_display_mode?: TaxPriceDisplayMode | null;
|
|
155
|
+
}): boolean;
|
|
156
|
+
|
|
73
157
|
type BasisFields = Pick<Product, "type" | "price_basis" | "duration_unit" | "scheduling_mode">;
|
|
74
158
|
/** Whether this service schedules whole stays (per-duration-unit billing
|
|
75
159
|
* default, unit reservations) rather than intraday slots. The server-resolved
|
|
@@ -163,4 +247,4 @@ interface AssetUrlOptions extends AssetTransform {
|
|
|
163
247
|
declare function assetUrl(path: string, opts?: AssetUrlOptions): string;
|
|
164
248
|
declare function isCimplifyAsset(src: string, base?: string): boolean;
|
|
165
249
|
|
|
166
|
-
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, type PriceListItem, Product, ProductWithDetails, type QuantityBreak, type QueryRequest, type ResolvedQuantityBreak, type ResponseMetadata, type SilentSignInOptions, type SilentSignInResult, allGalleryImages, assetUrl, chatMessageCards, isCimplifyAsset, isMultiDayService, priceBasisLabel, resolveGallery, serviceBillingMultiplier, signInSilent, stayLength, stayPeriods };
|
|
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 };
|