@cimplify/sdk 0.1.0 → 0.2.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/index.d.mts CHANGED
@@ -2555,12 +2555,360 @@ declare const ORDER_MUTATION: {
2555
2555
  declare const DEFAULT_CURRENCY = "GHS";
2556
2556
  declare const DEFAULT_COUNTRY = "GHA";
2557
2557
 
2558
- /** Currency symbol mapping */
2558
+ /**
2559
+ * Price Types
2560
+ *
2561
+ * Types for price parsing, formatting, and display utilities.
2562
+ */
2563
+ /**
2564
+ * Individual tax component (e.g., VAT, NHIL, GETFund)
2565
+ */
2566
+ interface TaxComponent {
2567
+ /** Tax component name */
2568
+ name: string;
2569
+ /** Tax rate as percentage (e.g., 15.0 for 15%) */
2570
+ rate: number;
2571
+ }
2572
+ /**
2573
+ * Complete tax information from a price path
2574
+ */
2575
+ interface TaxInfo {
2576
+ /** Total tax rate as percentage */
2577
+ taxRate: number;
2578
+ /** Calculated tax amount */
2579
+ taxAmount: number;
2580
+ /** Whether tax is included in the displayed price */
2581
+ isInclusive: boolean;
2582
+ /** Individual tax components that make up the total */
2583
+ components: TaxComponent[];
2584
+ }
2585
+ /**
2586
+ * Price information in snake_case format (as returned from backend)
2587
+ * Used by components that work with raw API responses
2588
+ */
2589
+ interface PriceInfo {
2590
+ /** Original price before markup/discount */
2591
+ base_price: number;
2592
+ /** Final price after all adjustments */
2593
+ final_price: number;
2594
+ /** Markup percentage if applicable */
2595
+ markup_percentage?: number;
2596
+ /** Markup amount if applicable */
2597
+ markup_amount?: number;
2598
+ /** Currency code (e.g., "GHS", "USD") */
2599
+ currency?: string;
2600
+ /** Tax information */
2601
+ tax_info?: TaxInfo;
2602
+ /** Decision path showing pricing adjustments */
2603
+ decision_path?: string;
2604
+ }
2605
+ /**
2606
+ * Parsed price from a signed price path
2607
+ * Contains all extracted pricing information with validation status
2608
+ */
2609
+ interface ParsedPrice {
2610
+ /** Original price before markup/discount */
2611
+ basePrice: number;
2612
+ /** Final price after all adjustments */
2613
+ finalPrice: number;
2614
+ /** Currency code (e.g., "GHS", "USD") */
2615
+ currency: string;
2616
+ /** Decision path showing how price was calculated */
2617
+ decisionPath: string;
2618
+ /** Discount percentage if final < base */
2619
+ discountPercentage?: number;
2620
+ /** Markup percentage if final > base */
2621
+ markupPercentage?: number;
2622
+ /** Markup amount if final > base */
2623
+ markupAmount?: number;
2624
+ /** Tax information extracted from the path */
2625
+ taxInfo?: TaxInfo;
2626
+ /** Whether the price path is valid and not expired */
2627
+ isValid: boolean;
2628
+ /** Whether the price path has expired */
2629
+ isExpired: boolean;
2630
+ /** Unix timestamp when the price expires */
2631
+ expiryTimestamp?: number;
2632
+ }
2633
+ /**
2634
+ * Minimal product shape for price utilities
2635
+ * Allows extracting price from either price_path or price_info
2636
+ */
2637
+ interface ProductWithPrice {
2638
+ /** Signed price path from backend */
2639
+ price_path?: string | null;
2640
+ /** Pre-parsed price info */
2641
+ price_info?: PriceInfo;
2642
+ }
2643
+ /**
2644
+ * Options for price formatting functions
2645
+ */
2646
+ interface FormatPriceOptions {
2647
+ /** Currency code (default: "GHS") */
2648
+ currency?: string;
2649
+ /** Locale for Intl.NumberFormat (default: "en-US") */
2650
+ locale?: string;
2651
+ /** Minimum fraction digits (default: 2) */
2652
+ minimumFractionDigits?: number;
2653
+ /** Maximum fraction digits (default: 2) */
2654
+ maximumFractionDigits?: number;
2655
+ }
2656
+ /**
2657
+ * Options for compact price formatting
2658
+ */
2659
+ interface FormatCompactOptions {
2660
+ /** Currency code (default: "GHS") */
2661
+ currency?: string;
2662
+ /** Number of decimal places for compact notation (default: 1) */
2663
+ decimals?: number;
2664
+ }
2665
+
2666
+ /**
2667
+ * Price Utilities
2668
+ *
2669
+ * Comprehensive utilities for parsing, formatting, and displaying prices.
2670
+ * Handles signed price paths from the backend, currency formatting,
2671
+ * and product price helpers.
2672
+ *
2673
+ * @example
2674
+ * ```typescript
2675
+ * import {
2676
+ * formatPrice,
2677
+ * formatPriceCompact,
2678
+ * parsePricePath,
2679
+ * isOnSale,
2680
+ * getDiscountPercentage
2681
+ * } from '@cimplify/sdk';
2682
+ *
2683
+ * // Format prices
2684
+ * formatPrice(29.99, 'USD'); // "$29.99"
2685
+ * formatPrice(29.99, 'GHS'); // "GH₵29.99"
2686
+ * formatPriceCompact(1500000, 'USD'); // "$1.5M"
2687
+ *
2688
+ * // Check for discounts
2689
+ * if (isOnSale(product)) {
2690
+ * console.log(`${getDiscountPercentage(product)}% off!`);
2691
+ * }
2692
+ * ```
2693
+ */
2694
+
2695
+ /**
2696
+ * Currency code to symbol mapping
2697
+ * Includes major world currencies and African currencies
2698
+ */
2559
2699
  declare const CURRENCY_SYMBOLS: Record<string, string>;
2560
2700
  /**
2561
- * Format a money value with currency symbol
2701
+ * Get currency symbol for a currency code
2702
+ * @param currencyCode - ISO 4217 currency code (e.g., "USD", "GHS")
2703
+ * @returns Currency symbol or the code itself if not found
2704
+ *
2705
+ * @example
2706
+ * getCurrencySymbol('USD') // "$"
2707
+ * getCurrencySymbol('GHS') // "GH₵"
2708
+ * getCurrencySymbol('XYZ') // "XYZ"
2709
+ */
2710
+ declare function getCurrencySymbol(currencyCode: string): string;
2711
+ /**
2712
+ * Format a number compactly with K/M/B suffixes
2713
+ * @param value - Number to format
2714
+ * @param decimals - Decimal places (default: 1)
2715
+ * @returns Compact string representation
2716
+ *
2717
+ * @example
2718
+ * formatNumberCompact(1234) // "1.2K"
2719
+ * formatNumberCompact(1500000) // "1.5M"
2720
+ * formatNumberCompact(2500000000) // "2.5B"
2721
+ */
2722
+ declare function formatNumberCompact(value: number, decimals?: number): string;
2723
+ /**
2724
+ * Format a price with locale-aware currency formatting
2725
+ * Uses Intl.NumberFormat for proper localization
2726
+ *
2727
+ * @param amount - Price amount (number or string)
2728
+ * @param currency - ISO 4217 currency code (default: "GHS")
2729
+ * @param locale - BCP 47 locale string (default: "en-US")
2730
+ * @returns Formatted price string
2731
+ *
2732
+ * @example
2733
+ * formatPrice(29.99, 'USD') // "$29.99"
2734
+ * formatPrice(29.99, 'GHS') // "GH₵29.99"
2735
+ * formatPrice('29.99', 'EUR') // "€29.99"
2736
+ * formatPrice(1234.56, 'USD', 'de-DE') // "1.234,56 $"
2737
+ */
2738
+ declare function formatPrice(amount: number | string, currency?: string, locale?: string): string;
2739
+ /**
2740
+ * Format a price with +/- sign for adjustments
2741
+ * Useful for showing price changes, modifiers, or discounts
2742
+ *
2743
+ * @param amount - Adjustment amount (positive or negative)
2744
+ * @param currency - ISO 4217 currency code (default: "GHS")
2745
+ * @param locale - BCP 47 locale string (default: "en-US")
2746
+ * @returns Formatted adjustment string with sign
2747
+ *
2748
+ * @example
2749
+ * formatPriceAdjustment(5.00, 'USD') // "+$5.00"
2750
+ * formatPriceAdjustment(-3.50, 'GHS') // "-GH₵3.50"
2751
+ * formatPriceAdjustment(0, 'EUR') // "€0.00"
2752
+ */
2753
+ declare function formatPriceAdjustment(amount: number, currency?: string, locale?: string): string;
2754
+ /**
2755
+ * Format a price compactly for large numbers
2756
+ * Uses K/M/B suffixes for thousands, millions, billions
2757
+ *
2758
+ * @param amount - Price amount (number or string)
2759
+ * @param currency - ISO 4217 currency code (default: "GHS")
2760
+ * @param decimals - Decimal places for compact notation (default: 1)
2761
+ * @returns Compact formatted price
2762
+ *
2763
+ * @example
2764
+ * formatPriceCompact(999, 'USD') // "$999.00"
2765
+ * formatPriceCompact(1500, 'GHS') // "GH₵1.5K"
2766
+ * formatPriceCompact(2500000, 'USD') // "$2.5M"
2767
+ * formatPriceCompact(1200000000, 'EUR') // "€1.2B"
2768
+ */
2769
+ declare function formatPriceCompact(amount: number | string, currency?: string, decimals?: number): string;
2770
+ /**
2771
+ * Simple currency symbol + amount format
2772
+ * Lighter alternative to formatPrice without Intl
2773
+ *
2774
+ * @param amount - Price amount (number or string)
2775
+ * @param currency - ISO 4217 currency code (default: "GHS")
2776
+ * @returns Simple formatted price
2777
+ *
2778
+ * @example
2779
+ * formatMoney(29.99, 'USD') // "$29.99"
2780
+ * formatMoney('15.00', 'GHS') // "GH₵15.00"
2562
2781
  */
2563
2782
  declare function formatMoney(amount: string | number, currency?: string): string;
2783
+ /**
2784
+ * Parse a price string or number to a numeric value
2785
+ * Handles various input formats gracefully
2786
+ *
2787
+ * @param value - Value to parse (string, number, or undefined)
2788
+ * @returns Parsed numeric value, or 0 if invalid
2789
+ *
2790
+ * @example
2791
+ * parsePrice('29.99') // 29.99
2792
+ * parsePrice(29.99) // 29.99
2793
+ * parsePrice('$29.99') // 29.99 (strips non-numeric prefix)
2794
+ * parsePrice(undefined) // 0
2795
+ * parsePrice('invalid') // 0
2796
+ */
2797
+ declare function parsePrice(value: string | number | undefined | null): number;
2798
+ /**
2799
+ * Parse a signed price path from the backend
2800
+ *
2801
+ * Price paths are HMAC-SHA256 signed and contain:
2802
+ * - Base price (original price before markup)
2803
+ * - Final price (what customer pays)
2804
+ * - Currency
2805
+ * - Tax information
2806
+ * - Decision path (pricing adjustments trail)
2807
+ *
2808
+ * Format: "base_price|final_price|currency|tax_info|decision_path§expiry§signature"
2809
+ *
2810
+ * @param signedPricePath - The signed price path from backend
2811
+ * @returns ParsedPrice object with extracted pricing information
2812
+ *
2813
+ * @example
2814
+ * const parsed = parsePricePath(product.price_path);
2815
+ * console.log(parsed.finalPrice); // 29.99
2816
+ * console.log(parsed.currency); // "GHS"
2817
+ * console.log(parsed.isValid); // true
2818
+ * console.log(parsed.taxInfo); // { taxRate: 15, ... }
2819
+ */
2820
+ declare function parsePricePath(signedPricePath: string | undefined | null): ParsedPrice;
2821
+ /**
2822
+ * Convert a ParsedPrice to PriceInfo format
2823
+ * Useful for compatibility with components expecting snake_case format
2824
+ *
2825
+ * @param parsedPrice - The parsed price object
2826
+ * @returns PriceInfo object in snake_case format
2827
+ */
2828
+ declare function parsedPriceToPriceInfo(parsedPrice: ParsedPrice): PriceInfo;
2829
+ /**
2830
+ * Extract PriceInfo directly from a signed price path
2831
+ * Convenience function that parses and converts in one step
2832
+ *
2833
+ * @param signedPricePath - The signed price path from backend
2834
+ * @returns PriceInfo object ready for use in components
2835
+ *
2836
+ * @example
2837
+ * const priceInfo = extractPriceInfo(product.price_path);
2838
+ * console.log(priceInfo.final_price); // 29.99
2839
+ */
2840
+ declare function extractPriceInfo(signedPricePath: string | undefined | null): PriceInfo;
2841
+ /**
2842
+ * Get the display price from a product
2843
+ * Handles both price_path and pre-parsed price_info
2844
+ *
2845
+ * @param product - Product with price_path or price_info
2846
+ * @returns The final price to display
2847
+ *
2848
+ * @example
2849
+ * const price = getDisplayPrice(product);
2850
+ * console.log(formatPrice(price, 'GHS')); // "GH₵29.99"
2851
+ */
2852
+ declare function getDisplayPrice(product: ProductWithPrice): number;
2853
+ /**
2854
+ * Get the base price from a product (before markup/discount)
2855
+ *
2856
+ * @param product - Product with price_path or price_info
2857
+ * @returns The base price before adjustments
2858
+ */
2859
+ declare function getBasePrice(product: ProductWithPrice): number;
2860
+ /**
2861
+ * Check if a product is on sale (discounted)
2862
+ *
2863
+ * @param product - Product with price_path or price_info
2864
+ * @returns True if the final price is less than the base price
2865
+ *
2866
+ * @example
2867
+ * if (isOnSale(product)) {
2868
+ * return <Badge>Sale!</Badge>;
2869
+ * }
2870
+ */
2871
+ declare function isOnSale(product: ProductWithPrice): boolean;
2872
+ /**
2873
+ * Get the discount percentage for a product on sale
2874
+ *
2875
+ * @param product - Product with price_path or price_info
2876
+ * @returns Discount percentage (0-100), or 0 if not on sale
2877
+ *
2878
+ * @example
2879
+ * const discount = getDiscountPercentage(product);
2880
+ * if (discount > 0) {
2881
+ * return <Badge>{discount}% OFF</Badge>;
2882
+ * }
2883
+ */
2884
+ declare function getDiscountPercentage(product: ProductWithPrice): number;
2885
+ /**
2886
+ * Get the markup percentage for a product
2887
+ *
2888
+ * @param product - Product with price_path or price_info
2889
+ * @returns Markup percentage, or 0 if no markup
2890
+ */
2891
+ declare function getMarkupPercentage(product: ProductWithPrice): number;
2892
+ /**
2893
+ * Get the currency for a product
2894
+ *
2895
+ * @param product - Product with price_path or price_info
2896
+ * @returns Currency code (default: "GHS")
2897
+ */
2898
+ declare function getProductCurrency(product: ProductWithPrice): string;
2899
+ /**
2900
+ * Format a product's display price
2901
+ * Convenience function combining getDisplayPrice and formatPrice
2902
+ *
2903
+ * @param product - Product with price_path or price_info
2904
+ * @param locale - BCP 47 locale string (default: "en-US")
2905
+ * @returns Formatted price string
2906
+ *
2907
+ * @example
2908
+ * <span>{formatProductPrice(product)}</span> // "GH₵29.99"
2909
+ */
2910
+ declare function formatProductPrice(product: ProductWithPrice, locale?: string): string;
2911
+
2564
2912
  /**
2565
2913
  * Categorize payment errors into user-friendly messages
2566
2914
  */
@@ -2617,4 +2965,4 @@ interface ApiResponse<T> {
2617
2965
  metadata?: ResponseMetadata;
2618
2966
  }
2619
2967
 
2620
- export { AUTHORIZATION_TYPE, AUTH_MUTATION, type AddOn, type AddOnDetails, type AddOnGroupDetails, type AddOnOption, type AddOnOptionDetails, type AddOnOptionPrice, type AddOnWithOptions, type AddToCartInput, type AddressData, type AdjustmentType, type AmountToPay, type ApiError, type ApiResponse, type AppliedDiscount, type AuthResponse, AuthService, type AuthStatus, type AuthorizationType, type AvailabilityCheck, type AvailabilityResult, type AvailableSlot, type BenefitType, type Booking, type BookingRequirementOverride, type BookingStatus, type BookingWithDetails, type BufferTimes, type Bundle, type BundleComponentData, type BundleComponentInfo, type BundlePriceType, type BundleProduct, type BundleSelectionData, type BundleSelectionInput, type BundleStoredSelection, type BundleSummary, type BundleWithDetails, type Business, type BusinessHours, type BusinessPreferences, BusinessService, type BusinessSettings, type BusinessType, type BusinessWithLocations, CHECKOUT_MODE, CHECKOUT_MUTATION, CHECKOUT_STEP, CURRENCY_SYMBOLS, type CancelBookingInput, type CancelOrderInput, type CancellationPolicy, type Cart, type CartAddOn, type CartChannel, type CartItem, type CartItemDetails, CartOperations, type CartStatus, type CartSummary, type CartTotals, CatalogueQueries, type Category, type CategoryInfo, type CategorySummary, type ChangePasswordInput, type CheckSlotAvailabilityInput, type CheckoutAddressInfo, type CheckoutCustomerInfo, type CheckoutFormData, type CheckoutInput, type CheckoutMode, CheckoutService as CheckoutOperations, type CheckoutOrderType, type CheckoutPaymentMethod, type CheckoutResult, CheckoutService, type CheckoutStep, type ChosenPrice, CimplifyClient, type CimplifyConfig, CimplifyError, type Collection, type CollectionProduct, type CollectionSummary, type ComponentGroup, type ComponentGroupWithComponents, type ComponentPriceBreakdown, type ComponentSelectionInput, type ComponentSourceType, type Composite, type CompositeComponent, type CompositePriceBreakdown, type CompositePriceResult, type CompositePricingMode, type CompositeSelectionData, type ComponentSelectionInput as CompositeSelectionInput, type CompositeStoredSelection, type CompositeWithDetails, type ContactType, type CreateAddressInput, type CreateMobileMoneyInput, type Currency, type Customer, type CustomerAddress, type CustomerLinkPreferences, type CustomerMobileMoney, type CustomerServicePreferences, DEFAULT_COUNTRY, DEFAULT_CURRENCY, type DayAvailability, type DepositResult, type DepositType, type DeviceType, type DigitalProductType, type DiscountBreakdown, type DiscountDetails, type DisplayAddOn, type DisplayAddOnOption, type DisplayCart, type DisplayCartItem, type EnrollAndLinkOrderInput, type EnrollAndLinkOrderResult, type EnrollmentData, type FeeBearerType, type FulfillmentLink, type FulfillmentStatus, type FulfillmentType, type GetAvailableSlotsInput, type GetOrdersOptions, type GetProductsOptions, type GroupPricingBehavior, type InitializePaymentResult, InventoryService, type InventorySummary, type InventoryType, type KitchenOrderItem, type KitchenOrderResult, LINK_MUTATION, LINK_QUERY, type LineConfiguration, type LineItem, type LineType, type LinkData, type LinkEnrollResult, LinkService, type LinkSession, type LinkStatusResult, type LiteBootstrap, LiteService, type Location, type LocationAppointment, type LocationProductPrice, type LocationStock, type LocationTaxBehavior, type LocationTaxOverrides, type LocationTimeProfile, type LocationWithDetails, MOBILE_MONEY_PROVIDER, MOBILE_MONEY_PROVIDERS, type MobileMoneyData, type MobileMoneyDetails, type MobileMoneyProvider, type Money, type MutationRequest, ORDER_MUTATION, ORDER_TYPE, type Order, type OrderChannel, type OrderFilter, type OrderFulfillmentSummary, type OrderGroup, type OrderGroupDetails, type OrderGroupPayment, type OrderGroupPaymentState, type OrderGroupPaymentSummary, type OrderHistory, type OrderLineState, type OrderLineStatus, type OrderPaymentEvent, OrderQueries, type OrderSplitDetail, type OrderStatus, type OtpResult, PAYMENT_METHOD, PAYMENT_MUTATION, PAYMENT_STATE, PICKUP_TIME_TYPE, type Pagination, type PaginationParams, type Payment, type PaymentErrorDetails, type PaymentMethod, type PaymentMethodType, type PaymentProcessingState, type PaymentProvider, type PaymentResponse, type PaymentState, type PaymentStatus, type PaymentStatusResponse, type PickupTime, type PickupTimeType, type Price, type PriceAdjustment, type PriceDecisionPath, type PriceEntryType, type PricePathTaxInfo, type PriceSource, type PricingOverrides, type Product, type ProductAddOn, type ProductAvailability, type ProductStock, type ProductTimeProfile, type ProductType, type ProductVariant, type ProductVariantValue, type ProductWithDetails, QueryBuilder, type QueryRequest, type RefundOrderInput, type ReminderMethod, type ReminderSettings, type RequestOtpInput, type RescheduleBookingInput, type ResourceAssignment, type ResourceAvailabilityException, type ResourceAvailabilityRule, type ResourceType, type ResponseMetadata, type RevokeAllSessionsResult, type RevokeSessionResult, type Room, type SalesChannel, type SchedulingMetadata, type SchedulingResult, SchedulingService, type SearchOptions, type SelectedAddOnOption, type Service, type ServiceAvailabilityException, type ServiceAvailabilityParams, type ServiceAvailabilityResult, type ServiceAvailabilityRule, type ServiceCharge, type ServiceNotes, type ServiceScheduleRequest, type ServiceStaffRequirement, type ServiceStatus, type ServiceWithStaff, type Staff, type StaffAssignment, type StaffAvailabilityException, type StaffAvailabilityRule, type StaffBookingProfile, type StaffRole, type StaffScheduleItem, type Stock, type StockLevel, type StockOwnershipType, type StockStatus, type StorefrontBootstrap, type SubmitAuthorizationInput, type Table, type TableInfo, type TaxPathComponent, type TimeRange, type TimeRanges, type TimeSlot, type UICart, type UICartBusiness, type UICartCustomer, type UICartLocation, type UICartPricing, type UpdateAddressInput, type UpdateCartItemInput, type UpdateOrderStatusInput, type UpdateProfileInput, type VariantAxis, type VariantAxisSelection, type VariantAxisValue, type VariantAxisWithValues, type VariantDetails, type VariantDetailsDTO, type VariantDisplayAttribute, type VariantLocationAvailability, type VariantStock, type VariantStrategy, type VerifyOtpInput, categorizePaymentError, createCimplifyClient, detectMobileMoneyProvider, formatMoney, normalizePaymentResponse, normalizeStatusResponse, query };
2968
+ export { AUTHORIZATION_TYPE, AUTH_MUTATION, type AddOn, type AddOnDetails, type AddOnGroupDetails, type AddOnOption, type AddOnOptionDetails, type AddOnOptionPrice, type AddOnWithOptions, type AddToCartInput, type AddressData, type AdjustmentType, type AmountToPay, type ApiError, type ApiResponse, type AppliedDiscount, type AuthResponse, AuthService, type AuthStatus, type AuthorizationType, type AvailabilityCheck, type AvailabilityResult, type AvailableSlot, type BenefitType, type Booking, type BookingRequirementOverride, type BookingStatus, type BookingWithDetails, type BufferTimes, type Bundle, type BundleComponentData, type BundleComponentInfo, type BundlePriceType, type BundleProduct, type BundleSelectionData, type BundleSelectionInput, type BundleStoredSelection, type BundleSummary, type BundleWithDetails, type Business, type BusinessHours, type BusinessPreferences, BusinessService, type BusinessSettings, type BusinessType, type BusinessWithLocations, CHECKOUT_MODE, CHECKOUT_MUTATION, CHECKOUT_STEP, CURRENCY_SYMBOLS, type CancelBookingInput, type CancelOrderInput, type CancellationPolicy, type Cart, type CartAddOn, type CartChannel, type CartItem, type CartItemDetails, CartOperations, type CartStatus, type CartSummary, type CartTotals, CatalogueQueries, type Category, type CategoryInfo, type CategorySummary, type ChangePasswordInput, type CheckSlotAvailabilityInput, type CheckoutAddressInfo, type CheckoutCustomerInfo, type CheckoutFormData, type CheckoutInput, type CheckoutMode, CheckoutService as CheckoutOperations, type CheckoutOrderType, type CheckoutPaymentMethod, type CheckoutResult, CheckoutService, type CheckoutStep, type ChosenPrice, CimplifyClient, type CimplifyConfig, CimplifyError, type Collection, type CollectionProduct, type CollectionSummary, type ComponentGroup, type ComponentGroupWithComponents, type ComponentPriceBreakdown, type ComponentSelectionInput, type ComponentSourceType, type Composite, type CompositeComponent, type CompositePriceBreakdown, type CompositePriceResult, type CompositePricingMode, type CompositeSelectionData, type ComponentSelectionInput as CompositeSelectionInput, type CompositeStoredSelection, type CompositeWithDetails, type ContactType, type CreateAddressInput, type CreateMobileMoneyInput, type Currency, type Customer, type CustomerAddress, type CustomerLinkPreferences, type CustomerMobileMoney, type CustomerServicePreferences, DEFAULT_COUNTRY, DEFAULT_CURRENCY, type DayAvailability, type DepositResult, type DepositType, type DeviceType, type DigitalProductType, type DiscountBreakdown, type DiscountDetails, type DisplayAddOn, type DisplayAddOnOption, type DisplayCart, type DisplayCartItem, type EnrollAndLinkOrderInput, type EnrollAndLinkOrderResult, type EnrollmentData, type FeeBearerType, type FormatCompactOptions, type FormatPriceOptions, type FulfillmentLink, type FulfillmentStatus, type FulfillmentType, type GetAvailableSlotsInput, type GetOrdersOptions, type GetProductsOptions, type GroupPricingBehavior, type InitializePaymentResult, InventoryService, type InventorySummary, type InventoryType, type KitchenOrderItem, type KitchenOrderResult, LINK_MUTATION, LINK_QUERY, type LineConfiguration, type LineItem, type LineType, type LinkData, type LinkEnrollResult, LinkService, type LinkSession, type LinkStatusResult, type LiteBootstrap, LiteService, type Location, type LocationAppointment, type LocationProductPrice, type LocationStock, type LocationTaxBehavior, type LocationTaxOverrides, type LocationTimeProfile, type LocationWithDetails, MOBILE_MONEY_PROVIDER, MOBILE_MONEY_PROVIDERS, type MobileMoneyData, type MobileMoneyDetails, type MobileMoneyProvider, type Money, type MutationRequest, ORDER_MUTATION, ORDER_TYPE, type Order, type OrderChannel, type OrderFilter, type OrderFulfillmentSummary, type OrderGroup, type OrderGroupDetails, type OrderGroupPayment, type OrderGroupPaymentState, type OrderGroupPaymentSummary, type OrderHistory, type OrderLineState, type OrderLineStatus, type OrderPaymentEvent, OrderQueries, type OrderSplitDetail, type OrderStatus, type OtpResult, PAYMENT_METHOD, PAYMENT_MUTATION, PAYMENT_STATE, PICKUP_TIME_TYPE, type Pagination, type PaginationParams, type ParsedPrice, type Payment, type PaymentErrorDetails, type PaymentMethod, type PaymentMethodType, type PaymentProcessingState, type PaymentProvider, type PaymentResponse, type PaymentState, type PaymentStatus, type PaymentStatusResponse, type PickupTime, type PickupTimeType, type Price, type PriceAdjustment, type PriceDecisionPath, type PriceEntryType, type PriceInfo, type PricePathTaxInfo, type PriceSource, type PricingOverrides, type Product, type ProductAddOn, type ProductAvailability, type ProductStock, type ProductTimeProfile, type ProductType, type ProductVariant, type ProductVariantValue, type ProductWithDetails, type ProductWithPrice, QueryBuilder, type QueryRequest, type RefundOrderInput, type ReminderMethod, type ReminderSettings, type RequestOtpInput, type RescheduleBookingInput, type ResourceAssignment, type ResourceAvailabilityException, type ResourceAvailabilityRule, type ResourceType, type ResponseMetadata, type RevokeAllSessionsResult, type RevokeSessionResult, type Room, type SalesChannel, type SchedulingMetadata, type SchedulingResult, SchedulingService, type SearchOptions, type SelectedAddOnOption, type Service, type ServiceAvailabilityException, type ServiceAvailabilityParams, type ServiceAvailabilityResult, type ServiceAvailabilityRule, type ServiceCharge, type ServiceNotes, type ServiceScheduleRequest, type ServiceStaffRequirement, type ServiceStatus, type ServiceWithStaff, type Staff, type StaffAssignment, type StaffAvailabilityException, type StaffAvailabilityRule, type StaffBookingProfile, type StaffRole, type StaffScheduleItem, type Stock, type StockLevel, type StockOwnershipType, type StockStatus, type StorefrontBootstrap, type SubmitAuthorizationInput, type Table, type TableInfo, type TaxComponent, type TaxInfo, type TaxPathComponent, type TimeRange, type TimeRanges, type TimeSlot, type UICart, type UICartBusiness, type UICartCustomer, type UICartLocation, type UICartPricing, type UpdateAddressInput, type UpdateCartItemInput, type UpdateOrderStatusInput, type UpdateProfileInput, type VariantAxis, type VariantAxisSelection, type VariantAxisValue, type VariantAxisWithValues, type VariantDetails, type VariantDetailsDTO, type VariantDisplayAttribute, type VariantLocationAvailability, type VariantStock, type VariantStrategy, type VerifyOtpInput, categorizePaymentError, createCimplifyClient, detectMobileMoneyProvider, extractPriceInfo, formatMoney, formatNumberCompact, formatPrice, formatPriceAdjustment, formatPriceCompact, formatProductPrice, getBasePrice, getCurrencySymbol, getDiscountPercentage, getDisplayPrice, getMarkupPercentage, getProductCurrency, isOnSale, normalizePaymentResponse, normalizeStatusResponse, parsePrice, parsePricePath, parsedPriceToPriceInfo, query };