@cimplify/sdk 0.104.0 → 0.105.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.
Files changed (71) hide show
  1. package/dist/advanced.d.mts +3 -7
  2. package/dist/advanced.d.ts +3 -7
  3. package/dist/advanced.js +23 -23
  4. package/dist/advanced.mjs +4 -4
  5. package/dist/{client-BuLcOWLv.d.ts → catalogue-D1jkpGcr.d.ts} +415 -763
  6. package/dist/{client-D5AoobFc.d.mts → catalogue-DjutZ0FC.d.mts} +415 -763
  7. package/dist/{payment-g0HFkEDU.d.mts → checkout-XoV4HNg2.d.mts} +4156 -1498
  8. package/dist/{payment-g0HFkEDU.d.ts → checkout-XoV4HNg2.d.ts} +4156 -1498
  9. package/dist/{chunk-GOHSXBKW.mjs → chunk-33VCYWVL.mjs} +25 -1
  10. package/dist/{chunk-OKADBZAI.mjs → chunk-37ZZCE7P.mjs} +808 -574
  11. package/dist/{chunk-5BDYDZ4U.js → chunk-3IMPJEUI.js} +892 -657
  12. package/dist/{chunk-YVAEY3VC.js → chunk-7PMMV5X4.js} +1040 -364
  13. package/dist/{chunk-H3RATH4B.mjs → chunk-AVXA4F6G.js} +293 -2
  14. package/dist/{chunk-CNN7Z2IP.js → chunk-EV2EVOYS.js} +27 -0
  15. package/dist/{chunk-4BKOKHE3.js → chunk-NJYR6GGM.mjs} +244 -19
  16. package/dist/{chunk-DYIAX3WI.mjs → chunk-NYDVVNZI.mjs} +11 -2
  17. package/dist/{chunk-E4K2VQDD.js → chunk-PDTXSUHZ.js} +559 -16
  18. package/dist/{chunk-2WPVUIHX.mjs → chunk-Q5HX7LVE.mjs} +1036 -360
  19. package/dist/{chunk-5RT4HYMP.mjs → chunk-TINYV5E2.mjs} +542 -15
  20. package/dist/{chunk-7PDEX54K.js → chunk-UYFTOIFW.js} +13 -3
  21. package/dist/{chunk-OCCNG6MO.mjs → chunk-X7RPMALQ.mjs} +1310 -722
  22. package/dist/{chunk-IQFFSKE2.js → chunk-XHVQDEVO.js} +1345 -746
  23. package/dist/{client-BVNWjk6W.d.ts → client-BBZj15JJ.d.ts} +2 -2
  24. package/dist/{client-fM716k7G.d.mts → client-CZ8MjJ_o.d.mts} +2 -2
  25. package/dist/index-CZjNWbQf.d.ts +8 -0
  26. package/dist/index-DNxWfRHF.d.mts +8 -0
  27. package/dist/{index-BtcoqrY1.d.ts → index-DRMBo26v.d.mts} +9 -4
  28. package/dist/{index-D7Tf3v7c.d.mts → index-DweR60Cv.d.ts} +9 -4
  29. package/dist/index.d.mts +31 -14
  30. package/dist/index.d.ts +31 -14
  31. package/dist/index.js +325 -133
  32. package/dist/index.mjs +6 -6
  33. package/dist/mock/cli.mjs +1450 -386
  34. package/dist/mock/library.js +1176 -352
  35. package/dist/mock/library.mjs +1176 -352
  36. package/dist/mock/msw.js +1176 -352
  37. package/dist/mock/msw.mjs +1176 -352
  38. package/dist/{price-BLIeAb8K.d.ts → price-CUGIYRtD.d.mts} +1 -1
  39. package/dist/{price-Czq_cTC_.d.mts → price-De-sxcuj.d.ts} +1 -1
  40. package/dist/react.d.mts +10 -5
  41. package/dist/react.d.ts +10 -5
  42. package/dist/react.js +227 -197
  43. package/dist/react.mjs +90 -60
  44. package/dist/{server-DKK_D-PP.d.ts → server-Byr4d0hL.d.mts} +31 -57
  45. package/dist/{server-BkVhOIwn.d.mts → server-C_RIDnHU.d.ts} +31 -57
  46. package/dist/server.d.mts +3 -4
  47. package/dist/server.d.ts +3 -4
  48. package/dist/server.js +11 -11
  49. package/dist/server.mjs +5 -5
  50. package/dist/styles.css +2 -2
  51. package/dist/testing/msw.d.mts +2 -2
  52. package/dist/testing/msw.d.ts +2 -2
  53. package/dist/testing/msw.js +4 -4
  54. package/dist/testing/msw.mjs +3 -3
  55. package/dist/testing/suite.d.mts +5 -6
  56. package/dist/testing/suite.d.ts +5 -6
  57. package/dist/testing/suite.js +29 -28
  58. package/dist/testing/suite.mjs +10 -9
  59. package/dist/testing.d.mts +2478 -14
  60. package/dist/testing.d.ts +2478 -14
  61. package/dist/testing.js +167 -89
  62. package/dist/testing.mjs +24 -10
  63. package/dist/utils.d.mts +3 -4
  64. package/dist/utils.d.ts +3 -4
  65. package/dist/utils.js +35 -31
  66. package/dist/utils.mjs +2 -2
  67. package/package.json +9 -9
  68. package/registry/order-history.json +1 -1
  69. package/registry/order-summary.json +1 -1
  70. package/dist/link-D9iSVxt5.d.mts +0 -308
  71. package/dist/link-D9iSVxt5.d.ts +0 -308
package/dist/testing.d.ts CHANGED
@@ -1,10 +1,9 @@
1
1
  import { z } from 'zod';
2
2
  import { $ZodType } from 'zod/v4/core';
3
- export { A as AddFirstProductOptions, a as AddFirstProductResult, P as ProductSummary, T as TestClientHandle, c as createTestClient, f as fixtures } from './client-BVNWjk6W.js';
4
- import './client-BuLcOWLv.js';
5
- import './payment-g0HFkEDU.js';
6
- import './link-D9iSVxt5.js';
7
- import './server-DKK_D-PP.js';
3
+ export { A as AddFirstProductOptions, a as AddFirstProductResult, P as ProductSummary, T as TestClientHandle, c as createTestClient, f as fixtures } from './client-BBZj15JJ.js';
4
+ import './catalogue-D1jkpGcr.js';
5
+ import './checkout-XoV4HNg2.js';
6
+ import './server-C_RIDnHU.js';
8
7
  import 'hono';
9
8
 
10
9
  /**
@@ -1434,8 +1433,10 @@ declare const assertCart: (value: unknown) => asserts value is {
1434
1433
  };
1435
1434
 
1436
1435
  /**
1437
- * Checkout schemas — request body and response shapes for `POST /checkout`
1438
- * and the subsequent `POST /payments/authorization` flow.
1436
+ * Deprecated CheckoutService compatibility schemas. These validate the flat
1437
+ * SDK adapter input and its legacy projection over PurchaseIntent. They do
1438
+ * not describe a backend `/checkout` endpoint, and deprecated action
1439
+ * submission is owner-fenced through the PurchaseIntent attempt route.
1439
1440
  */
1440
1441
 
1441
1442
  declare const CheckoutCustomerSchema: z.ZodObject<{
@@ -1455,10 +1456,18 @@ declare const CheckoutBodySchema: z.ZodObject<{
1455
1456
  notes: z.ZodOptional<z.ZodString>;
1456
1457
  save_details: z.ZodOptional<z.ZodBoolean>;
1457
1458
  }, z.core.$strip>;
1458
- order_type: z.ZodString;
1459
+ order_type: z.ZodEnum<{
1460
+ readonly DELIVERY: "delivery";
1461
+ readonly PICKUP: "pickup";
1462
+ readonly DINE_IN: "dine-in";
1463
+ readonly WALK_IN: "walk-in";
1464
+ }>;
1459
1465
  address_info: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1460
1466
  delivery_rate_id: z.ZodOptional<z.ZodString>;
1461
- payment_method: z.ZodString;
1467
+ payment_method: z.ZodEnum<{
1468
+ readonly MOBILE_MONEY: "mobile_money";
1469
+ readonly CARD: "card";
1470
+ }>;
1462
1471
  mobile_money_details: z.ZodOptional<z.ZodObject<{
1463
1472
  phone_number: z.ZodString;
1464
1473
  provider: z.ZodString;
@@ -1478,8 +1487,8 @@ declare const assertCheckoutBody: (value: unknown) => asserts value is {
1478
1487
  notes?: string | undefined;
1479
1488
  save_details?: boolean | undefined;
1480
1489
  };
1481
- order_type: string;
1482
- payment_method: string;
1490
+ order_type: "delivery" | "pickup" | "dine-in" | "walk-in";
1491
+ payment_method: "mobile_money" | "card";
1483
1492
  location_id?: string | undefined;
1484
1493
  address_info?: Record<string, unknown> | undefined;
1485
1494
  delivery_rate_id?: string | undefined;
@@ -1532,6 +1541,13 @@ declare const NextActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1532
1541
  }, z.core.$strip>;
1533
1542
  }, z.core.$strip>]>;
1534
1543
  display_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1544
+ }, z.core.$strip>, z.ZodObject<{
1545
+ type: z.ZodLiteral<"terms_changed">;
1546
+ replacement: z.ZodUnknown;
1547
+ deltas: z.ZodArray<z.ZodUnknown>;
1548
+ }, z.core.$strip>, z.ZodObject<{
1549
+ type: z.ZodLiteral<"selection_unavailable">;
1550
+ lines: z.ZodArray<z.ZodUnknown>;
1535
1551
  }, z.core.$strip>, z.ZodObject<{
1536
1552
  type: z.ZodLiteral<"poll">;
1537
1553
  }, z.core.$strip>], "type">;
@@ -1582,6 +1598,13 @@ declare const CheckoutResponseSchema: z.ZodObject<{
1582
1598
  }, z.core.$strip>;
1583
1599
  }, z.core.$strip>]>;
1584
1600
  display_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1601
+ }, z.core.$strip>, z.ZodObject<{
1602
+ type: z.ZodLiteral<"terms_changed">;
1603
+ replacement: z.ZodUnknown;
1604
+ deltas: z.ZodArray<z.ZodUnknown>;
1605
+ }, z.core.$strip>, z.ZodObject<{
1606
+ type: z.ZodLiteral<"selection_unavailable">;
1607
+ lines: z.ZodArray<z.ZodUnknown>;
1585
1608
  }, z.core.$strip>, z.ZodObject<{
1586
1609
  type: z.ZodLiteral<"poll">;
1587
1610
  }, z.core.$strip>], "type">;
@@ -1621,6 +1644,13 @@ declare const assertCheckoutResponse: (value: unknown) => asserts value is {
1621
1644
  };
1622
1645
  };
1623
1646
  display_text?: string | null | undefined;
1647
+ } | {
1648
+ type: "terms_changed";
1649
+ replacement: unknown;
1650
+ deltas: unknown[];
1651
+ } | {
1652
+ type: "selection_unavailable";
1653
+ lines: unknown[];
1624
1654
  } | {
1625
1655
  type: "poll";
1626
1656
  };
@@ -1642,6 +1672,1554 @@ declare const assertCheckoutResponse: (value: unknown) => asserts value is {
1642
1672
  public_key?: string | null | undefined;
1643
1673
  };
1644
1674
 
1675
+ declare const PurchaseIntentSourceInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1676
+ kind: z.ZodLiteral<"product">;
1677
+ product_id: z.ZodString;
1678
+ }, z.core.$strict>, z.ZodObject<{
1679
+ kind: z.ZodLiteral<"collection">;
1680
+ collection_id: z.ZodString;
1681
+ }, z.core.$strict>, z.ZodObject<{
1682
+ kind: z.ZodLiteral<"sale">;
1683
+ sale_id: z.ZodString;
1684
+ }, z.core.$strict>, z.ZodObject<{
1685
+ kind: z.ZodLiteral<"post">;
1686
+ signed_handoff: z.ZodString;
1687
+ }, z.core.$strict>, z.ZodObject<{
1688
+ kind: z.ZodLiteral<"live">;
1689
+ signed_handoff: z.ZodString;
1690
+ signed_beat_identity: z.ZodString;
1691
+ }, z.core.$strict>, z.ZodObject<{
1692
+ kind: z.ZodLiteral<"cart">;
1693
+ cart_id: z.ZodString;
1694
+ }, z.core.$strict>, z.ZodObject<{
1695
+ kind: z.ZodLiteral<"chat">;
1696
+ thread_id: z.ZodString;
1697
+ }, z.core.$strict>], "kind">;
1698
+ declare const PurchaseIntentTenderPreferenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1699
+ method_kind: z.ZodLiteral<"card">;
1700
+ stored_instrument_id: z.ZodOptional<z.ZodString>;
1701
+ }, z.core.$strict>, z.ZodObject<{
1702
+ method_kind: z.ZodLiteral<"mobile_money">;
1703
+ authority: z.ZodDiscriminatedUnion<[z.ZodObject<{
1704
+ authority_kind: z.ZodLiteral<"transient">;
1705
+ phone_number: z.ZodString;
1706
+ network: z.ZodEnum<{
1707
+ readonly MTN: "mtn";
1708
+ readonly TELECEL: "telecel";
1709
+ readonly AIRTEL: "airtel";
1710
+ }>;
1711
+ }, z.core.$strict>, z.ZodObject<{
1712
+ authority_kind: z.ZodLiteral<"saved_reference">;
1713
+ stored_instrument_id: z.ZodString;
1714
+ }, z.core.$strict>], "authority_kind">;
1715
+ }, z.core.$strict>], "method_kind">;
1716
+ declare const MintPurchaseIntentRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
1717
+ source: z.ZodUnion<readonly [z.ZodObject<{
1718
+ kind: z.ZodLiteral<"cart">;
1719
+ cart_id: z.ZodString;
1720
+ }, z.core.$strict>, z.ZodObject<{
1721
+ kind: z.ZodLiteral<"chat">;
1722
+ thread_id: z.ZodString;
1723
+ }, z.core.$strict>]>;
1724
+ checkout: z.ZodObject<{
1725
+ customer: z.ZodObject<{
1726
+ name: z.ZodString;
1727
+ email: z.ZodString;
1728
+ phone: z.ZodString;
1729
+ notes: z.ZodOptional<z.ZodString>;
1730
+ save_details: z.ZodOptional<z.ZodBoolean>;
1731
+ }, z.core.$strip>;
1732
+ order_type: z.ZodString;
1733
+ address_info: z.ZodObject<{
1734
+ street_address: z.ZodOptional<z.ZodString>;
1735
+ apartment: z.ZodOptional<z.ZodString>;
1736
+ city: z.ZodOptional<z.ZodString>;
1737
+ region: z.ZodOptional<z.ZodString>;
1738
+ postal_code: z.ZodOptional<z.ZodString>;
1739
+ country: z.ZodOptional<z.ZodString>;
1740
+ delivery_instructions: z.ZodOptional<z.ZodString>;
1741
+ phone_for_delivery: z.ZodOptional<z.ZodString>;
1742
+ latitude: z.ZodOptional<z.ZodNumber>;
1743
+ longitude: z.ZodOptional<z.ZodNumber>;
1744
+ pickup_time: z.ZodOptional<z.ZodString>;
1745
+ guest_count: z.ZodOptional<z.ZodNumber>;
1746
+ seating_time: z.ZodOptional<z.ZodString>;
1747
+ seating_requests: z.ZodOptional<z.ZodString>;
1748
+ }, z.core.$strip>;
1749
+ location_id: z.ZodOptional<z.ZodString>;
1750
+ delivery_rate_id: z.ZodOptional<z.ZodString>;
1751
+ special_instructions: z.ZodOptional<z.ZodString>;
1752
+ link_address_id: z.ZodOptional<z.ZodString>;
1753
+ link_payment_method_id: z.ZodOptional<z.ZodString>;
1754
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1755
+ pay_currency: z.ZodOptional<z.ZodString>;
1756
+ fx_quote_id: z.ZodOptional<z.ZodString>;
1757
+ use_store_credit: z.ZodOptional<z.ZodBoolean>;
1758
+ voucher_code: z.ZodOptional<z.ZodString>;
1759
+ pay_deposit: z.ZodOptional<z.ZodBoolean>;
1760
+ tender_preference: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1761
+ method_kind: z.ZodLiteral<"card">;
1762
+ stored_instrument_id: z.ZodOptional<z.ZodString>;
1763
+ }, z.core.$strict>, z.ZodObject<{
1764
+ method_kind: z.ZodLiteral<"mobile_money">;
1765
+ authority: z.ZodDiscriminatedUnion<[z.ZodObject<{
1766
+ authority_kind: z.ZodLiteral<"transient">;
1767
+ phone_number: z.ZodString;
1768
+ network: z.ZodEnum<{
1769
+ readonly MTN: "mtn";
1770
+ readonly TELECEL: "telecel";
1771
+ readonly AIRTEL: "airtel";
1772
+ }>;
1773
+ }, z.core.$strict>, z.ZodObject<{
1774
+ authority_kind: z.ZodLiteral<"saved_reference">;
1775
+ stored_instrument_id: z.ZodString;
1776
+ }, z.core.$strict>], "authority_kind">;
1777
+ }, z.core.$strict>], "method_kind">>;
1778
+ }, z.core.$strip>;
1779
+ client_intent_key: z.ZodString;
1780
+ destination: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1781
+ address_id: z.ZodString;
1782
+ delivery_rate_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1783
+ }, z.core.$strip>>>;
1784
+ }, z.core.$strict>, z.ZodObject<{
1785
+ source: z.ZodUnion<readonly [z.ZodObject<{
1786
+ kind: z.ZodLiteral<"product">;
1787
+ product_id: z.ZodString;
1788
+ }, z.core.$strict>, z.ZodObject<{
1789
+ kind: z.ZodLiteral<"collection">;
1790
+ collection_id: z.ZodString;
1791
+ }, z.core.$strict>, z.ZodObject<{
1792
+ kind: z.ZodLiteral<"sale">;
1793
+ sale_id: z.ZodString;
1794
+ }, z.core.$strict>, z.ZodObject<{
1795
+ kind: z.ZodLiteral<"post">;
1796
+ signed_handoff: z.ZodString;
1797
+ }, z.core.$strict>, z.ZodObject<{
1798
+ kind: z.ZodLiteral<"live">;
1799
+ signed_handoff: z.ZodString;
1800
+ signed_beat_identity: z.ZodString;
1801
+ }, z.core.$strict>]>;
1802
+ lines: z.ZodArray<z.ZodObject<{
1803
+ sellable: z.ZodObject<{
1804
+ kind: z.ZodEnum<{
1805
+ readonly PRODUCT: "product";
1806
+ readonly VARIANT: "variant";
1807
+ }>;
1808
+ product_id: z.ZodString;
1809
+ variant_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1810
+ location_id: z.ZodString;
1811
+ }, z.core.$strip>;
1812
+ quantity: z.ZodNumber;
1813
+ configuration: z.ZodObject<{
1814
+ kind: z.ZodLiteral<"simple">;
1815
+ variant_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1816
+ add_ons: z.ZodOptional<z.ZodArray<z.ZodObject<{
1817
+ option_id: z.ZodString;
1818
+ quantity: z.ZodNumber;
1819
+ }, z.core.$strip>>>;
1820
+ customer_inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1821
+ field_id: z.ZodString;
1822
+ field_name: z.ZodOptional<z.ZodString>;
1823
+ field_type: z.ZodOptional<z.ZodString>;
1824
+ value: z.ZodUnknown;
1825
+ }, z.core.$strip>>>;
1826
+ }, z.core.$strip>;
1827
+ offer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1828
+ kind: z.ZodEnum<{
1829
+ readonly CATALOGUE: "catalogue";
1830
+ readonly SALE: "sale";
1831
+ readonly RAPID: "rapid";
1832
+ }>;
1833
+ id: z.ZodString;
1834
+ version: z.ZodString;
1835
+ }, z.core.$strip>>>;
1836
+ }, z.core.$strip>>;
1837
+ client_intent_key: z.ZodString;
1838
+ destination: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1839
+ address_id: z.ZodString;
1840
+ delivery_rate_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1841
+ }, z.core.$strip>>>;
1842
+ }, z.core.$strict>]>;
1843
+ declare const CheckoutTermsViewSchema: z.ZodObject<{
1844
+ id: z.ZodString;
1845
+ intent_revision: z.ZodNumber;
1846
+ terms_version: z.ZodNumber;
1847
+ terms_digest: z.ZodString;
1848
+ money: z.ZodObject<{
1849
+ currency: z.ZodString;
1850
+ subtotal: z.ZodString;
1851
+ discount_total: z.ZodString;
1852
+ tax_total: z.ZodString;
1853
+ delivery_total: z.ZodString;
1854
+ statutory_total: z.ZodString;
1855
+ total_obligation: z.ZodString;
1856
+ due_now: z.ZodString;
1857
+ rail_amount: z.ZodString;
1858
+ store_credit_consumed: z.ZodString;
1859
+ voucher_credit_consumed: z.ZodString;
1860
+ }, z.core.$strip>;
1861
+ material: z.ZodObject<{
1862
+ line_digest: z.ZodString;
1863
+ destination_digest: z.ZodString;
1864
+ delivery_promise_digest: z.ZodString;
1865
+ entitlement_digest: z.ZodString;
1866
+ cancellation_terms_digest: z.ZodString;
1867
+ }, z.core.$strip>;
1868
+ compliance: z.ZodObject<{
1869
+ disposition: z.ZodOptional<z.ZodEnum<{
1870
+ readonly EXECUTE: "execute";
1871
+ readonly STORE_PURCHASE: "store_purchase";
1872
+ readonly LINK_OUT: "link_out";
1873
+ readonly LOCKED: "locked";
1874
+ }>>;
1875
+ purchase_policy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1876
+ policy_version: z.ZodNumber;
1877
+ surface: z.ZodEnum<{
1878
+ readonly NATIVE_IOS: "native_ios";
1879
+ readonly NATIVE_ANDROID: "native_android";
1880
+ readonly WEB: "web";
1881
+ }>;
1882
+ market_region: z.ZodString;
1883
+ store_region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1884
+ }, z.core.$strip>>>;
1885
+ policy_name: z.ZodString;
1886
+ policy_version: z.ZodNumber;
1887
+ lane: z.ZodEnum<{
1888
+ readonly COMMERCE_CORE: "commerce_core";
1889
+ readonly NATIVE: "native";
1890
+ readonly STORE_KIT: "store_kit";
1891
+ readonly PERMITTED_EXTERNAL: "permitted_external";
1892
+ readonly BROWSE_ONLY: "browse_only";
1893
+ }>;
1894
+ reason_code: z.ZodEnum<{
1895
+ readonly COMMERCE_CORE: "commerce_core";
1896
+ readonly PHYSICAL_GOODS_NATIVE: "physical_goods_native";
1897
+ readonly PHYSICAL_WORLD_COMMERCE_NATIVE: "physical_world_commerce_native";
1898
+ readonly STORE_KIT_REQUIRED: "store_kit_required";
1899
+ readonly PERMITTED_EXTERNAL_PURCHASE: "permitted_external_purchase";
1900
+ readonly DISTRIBUTION_AUTHORITY_UNVERIFIED: "distribution_authority_unverified";
1901
+ readonly PRODUCT_POLICY_UNRESOLVED: "product_policy_unresolved";
1902
+ readonly MIXED_LANE_UNSUPPORTED: "mixed_lane_unsupported";
1903
+ readonly EXTERNAL_DIGITAL_NATIVE: "external_digital_native";
1904
+ readonly MIXED_FACTS_NATIVE: "mixed_facts_native";
1905
+ readonly UNRESOLVED_FACTS_NATIVE: "unresolved_facts_native";
1906
+ }>;
1907
+ evidence_digest: z.ZodString;
1908
+ }, z.core.$strip>;
1909
+ protection: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1910
+ status: z.ZodEnum<{
1911
+ readonly PROTECTED: "protected";
1912
+ readonly UNAVAILABLE: "unavailable";
1913
+ }>;
1914
+ message: z.ZodString;
1915
+ public_policy_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1916
+ }, z.core.$strip>>>;
1917
+ payment_options: z.ZodArray<z.ZodObject<{
1918
+ id: z.ZodString;
1919
+ rank: z.ZodNumber;
1920
+ method_kind: z.ZodEnum<{
1921
+ readonly CARD: "card";
1922
+ readonly MOBILE_MONEY: "mobile_money";
1923
+ readonly OFFLINE: "offline";
1924
+ }>;
1925
+ collection_mode: z.ZodEnum<{
1926
+ readonly REQUEST_TO_PAY: "request_to_pay";
1927
+ readonly MANDATE_DEBIT: "mandate_debit";
1928
+ readonly CREDENTIAL_CHARGE: "credential_charge";
1929
+ readonly OFFLINE_TENDER: "offline_tender";
1930
+ }>;
1931
+ provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1932
+ readonly STRIPE: "stripe";
1933
+ readonly PAYSTACK: "paystack";
1934
+ readonly CELLULANT: "cellulant";
1935
+ readonly MTN_MOMO: "mtn_momo";
1936
+ }>>>;
1937
+ instrument: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1938
+ kind: z.ZodLiteral<"card">;
1939
+ brand: z.ZodString;
1940
+ last4: z.ZodString;
1941
+ exp_month: z.ZodNumber;
1942
+ exp_year: z.ZodNumber;
1943
+ }, z.core.$strip>, z.ZodObject<{
1944
+ kind: z.ZodLiteral<"mobile_money">;
1945
+ network: z.ZodString;
1946
+ masked_number: z.ZodString;
1947
+ }, z.core.$strip>, z.ZodObject<{
1948
+ kind: z.ZodLiteral<"erased">;
1949
+ }, z.core.$strip>], "kind">>>;
1950
+ principal_amount: z.ZodString;
1951
+ fee_amount: z.ZodString;
1952
+ customer_debit_amount: z.ZodString;
1953
+ currency: z.ZodString;
1954
+ protection: z.ZodObject<{
1955
+ status: z.ZodEnum<{
1956
+ readonly PROTECTED: "protected";
1957
+ readonly UNAVAILABLE: "unavailable";
1958
+ }>;
1959
+ message: z.ZodString;
1960
+ public_policy_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1961
+ }, z.core.$strip>;
1962
+ status: z.ZodEnum<{
1963
+ readonly ELIGIBLE: "eligible";
1964
+ readonly INELIGIBLE: "ineligible";
1965
+ readonly EXPIRED: "expired";
1966
+ }>;
1967
+ expected_next_action: z.ZodEnum<{
1968
+ readonly NONE: "none";
1969
+ readonly PROVIDER_APPROVAL: "provider_approval";
1970
+ readonly STEP_UP: "step_up";
1971
+ }>;
1972
+ expires_at: z.ZodISODateTime;
1973
+ }, z.core.$strip>>;
1974
+ valid_until: z.ZodISODateTime;
1975
+ created_at: z.ZodISODateTime;
1976
+ }, z.core.$strict>;
1977
+ declare const PurchaseIntentViewSchema: z.ZodObject<{
1978
+ disposition: z.ZodOptional<z.ZodEnum<{
1979
+ readonly EXECUTE: "execute";
1980
+ readonly STORE_PURCHASE: "store_purchase";
1981
+ readonly LINK_OUT: "link_out";
1982
+ readonly LOCKED: "locked";
1983
+ }>>;
1984
+ id: z.ZodString;
1985
+ seller_business_id: z.ZodString;
1986
+ principal: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1987
+ kind: z.ZodLiteral<"account">;
1988
+ account_id: z.ZodString;
1989
+ }, z.core.$strict>, z.ZodObject<{
1990
+ kind: z.ZodLiteral<"business">;
1991
+ business_id: z.ZodString;
1992
+ }, z.core.$strict>, z.ZodObject<{
1993
+ kind: z.ZodLiteral<"guest">;
1994
+ }, z.core.$strict>, z.ZodObject<{
1995
+ kind: z.ZodLiteral<"recognised">;
1996
+ verified: z.ZodBoolean;
1997
+ }, z.core.$strict>], "kind">>>;
1998
+ revision: z.ZodNumber;
1999
+ status: z.ZodEnum<{
2000
+ readonly DRAFT: "draft";
2001
+ readonly OPEN: "open";
2002
+ readonly CONVERTED: "converted";
2003
+ readonly CANCELLED: "cancelled";
2004
+ readonly EXPIRED: "expired";
2005
+ }>;
2006
+ source: z.ZodObject<{
2007
+ store_region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2008
+ native_platform: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2009
+ readonly IOS: "ios";
2010
+ readonly ANDROID: "android";
2011
+ }>>>;
2012
+ purchase_surface: z.ZodOptional<z.ZodEnum<{
2013
+ readonly NATIVE_APP: "native_app";
2014
+ readonly WEB: "web";
2015
+ }>>;
2016
+ kind: z.ZodEnum<{
2017
+ readonly PRODUCT: "product";
2018
+ readonly COLLECTION: "collection";
2019
+ readonly SALE: "sale";
2020
+ readonly POST: "post";
2021
+ readonly LIVE: "live";
2022
+ readonly CART: "cart";
2023
+ readonly CHAT: "chat";
2024
+ readonly MANUAL: "manual";
2025
+ }>;
2026
+ source_id: z.ZodString;
2027
+ social_post_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2028
+ source_version: z.ZodString;
2029
+ seller_business_id: z.ZodString;
2030
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
2031
+ kind: z.ZodLiteral<"account">;
2032
+ account_id: z.ZodString;
2033
+ }, z.core.$strict>, z.ZodObject<{
2034
+ kind: z.ZodLiteral<"business">;
2035
+ business_id: z.ZodString;
2036
+ }, z.core.$strict>], "kind">;
2037
+ binding_digest: z.ZodString;
2038
+ }, z.core.$strict>;
2039
+ lines: z.ZodArray<z.ZodObject<{
2040
+ sellable: z.ZodObject<{
2041
+ kind: z.ZodEnum<{
2042
+ readonly PRODUCT: "product";
2043
+ readonly VARIANT: "variant";
2044
+ }>;
2045
+ product_id: z.ZodString;
2046
+ variant_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2047
+ location_id: z.ZodString;
2048
+ }, z.core.$strip>;
2049
+ quantity: z.ZodNumber;
2050
+ offer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2051
+ kind: z.ZodEnum<{
2052
+ readonly CATALOGUE: "catalogue";
2053
+ readonly SALE: "sale";
2054
+ readonly RAPID: "rapid";
2055
+ }>;
2056
+ id: z.ZodString;
2057
+ version: z.ZodString;
2058
+ }, z.core.$strip>>>;
2059
+ id: z.ZodString;
2060
+ ordinal: z.ZodNumber;
2061
+ configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
2062
+ kind: z.ZodLiteral<"simple">;
2063
+ variant_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2064
+ add_ons: z.ZodOptional<z.ZodArray<z.ZodObject<{
2065
+ option_id: z.ZodString;
2066
+ quantity: z.ZodNumber;
2067
+ }, z.core.$strip>>>;
2068
+ customer_inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2069
+ field_id: z.ZodString;
2070
+ field_name: z.ZodOptional<z.ZodString>;
2071
+ field_type: z.ZodOptional<z.ZodString>;
2072
+ value: z.ZodUnknown;
2073
+ }, z.core.$strip>>>;
2074
+ }, z.core.$strip>, z.ZodObject<{
2075
+ kind: z.ZodLiteral<"cart">;
2076
+ configuration: z.ZodObject<{
2077
+ type: z.ZodEnum<{
2078
+ service: "service";
2079
+ digital: "digital";
2080
+ bundle: "bundle";
2081
+ composite: "composite";
2082
+ simple: "simple";
2083
+ }>;
2084
+ }, z.core.$loose>;
2085
+ }, z.core.$strip>], "kind">;
2086
+ }, z.core.$strip>>;
2087
+ line_pricing: z.ZodArray<z.ZodObject<{
2088
+ intent_line_id: z.ZodString;
2089
+ quantity: z.ZodNumber;
2090
+ unit_price: z.ZodString;
2091
+ line_subtotal: z.ZodString;
2092
+ currency: z.ZodString;
2093
+ }, z.core.$strict>>;
2094
+ current_terms: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2095
+ id: z.ZodString;
2096
+ intent_revision: z.ZodNumber;
2097
+ terms_version: z.ZodNumber;
2098
+ terms_digest: z.ZodString;
2099
+ money: z.ZodObject<{
2100
+ currency: z.ZodString;
2101
+ subtotal: z.ZodString;
2102
+ discount_total: z.ZodString;
2103
+ tax_total: z.ZodString;
2104
+ delivery_total: z.ZodString;
2105
+ statutory_total: z.ZodString;
2106
+ total_obligation: z.ZodString;
2107
+ due_now: z.ZodString;
2108
+ rail_amount: z.ZodString;
2109
+ store_credit_consumed: z.ZodString;
2110
+ voucher_credit_consumed: z.ZodString;
2111
+ }, z.core.$strip>;
2112
+ material: z.ZodObject<{
2113
+ line_digest: z.ZodString;
2114
+ destination_digest: z.ZodString;
2115
+ delivery_promise_digest: z.ZodString;
2116
+ entitlement_digest: z.ZodString;
2117
+ cancellation_terms_digest: z.ZodString;
2118
+ }, z.core.$strip>;
2119
+ compliance: z.ZodObject<{
2120
+ disposition: z.ZodOptional<z.ZodEnum<{
2121
+ readonly EXECUTE: "execute";
2122
+ readonly STORE_PURCHASE: "store_purchase";
2123
+ readonly LINK_OUT: "link_out";
2124
+ readonly LOCKED: "locked";
2125
+ }>>;
2126
+ purchase_policy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2127
+ policy_version: z.ZodNumber;
2128
+ surface: z.ZodEnum<{
2129
+ readonly NATIVE_IOS: "native_ios";
2130
+ readonly NATIVE_ANDROID: "native_android";
2131
+ readonly WEB: "web";
2132
+ }>;
2133
+ market_region: z.ZodString;
2134
+ store_region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2135
+ }, z.core.$strip>>>;
2136
+ policy_name: z.ZodString;
2137
+ policy_version: z.ZodNumber;
2138
+ lane: z.ZodEnum<{
2139
+ readonly COMMERCE_CORE: "commerce_core";
2140
+ readonly NATIVE: "native";
2141
+ readonly STORE_KIT: "store_kit";
2142
+ readonly PERMITTED_EXTERNAL: "permitted_external";
2143
+ readonly BROWSE_ONLY: "browse_only";
2144
+ }>;
2145
+ reason_code: z.ZodEnum<{
2146
+ readonly COMMERCE_CORE: "commerce_core";
2147
+ readonly PHYSICAL_GOODS_NATIVE: "physical_goods_native";
2148
+ readonly PHYSICAL_WORLD_COMMERCE_NATIVE: "physical_world_commerce_native";
2149
+ readonly STORE_KIT_REQUIRED: "store_kit_required";
2150
+ readonly PERMITTED_EXTERNAL_PURCHASE: "permitted_external_purchase";
2151
+ readonly DISTRIBUTION_AUTHORITY_UNVERIFIED: "distribution_authority_unverified";
2152
+ readonly PRODUCT_POLICY_UNRESOLVED: "product_policy_unresolved";
2153
+ readonly MIXED_LANE_UNSUPPORTED: "mixed_lane_unsupported";
2154
+ readonly EXTERNAL_DIGITAL_NATIVE: "external_digital_native";
2155
+ readonly MIXED_FACTS_NATIVE: "mixed_facts_native";
2156
+ readonly UNRESOLVED_FACTS_NATIVE: "unresolved_facts_native";
2157
+ }>;
2158
+ evidence_digest: z.ZodString;
2159
+ }, z.core.$strip>;
2160
+ protection: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2161
+ status: z.ZodEnum<{
2162
+ readonly PROTECTED: "protected";
2163
+ readonly UNAVAILABLE: "unavailable";
2164
+ }>;
2165
+ message: z.ZodString;
2166
+ public_policy_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2167
+ }, z.core.$strip>>>;
2168
+ payment_options: z.ZodArray<z.ZodObject<{
2169
+ id: z.ZodString;
2170
+ rank: z.ZodNumber;
2171
+ method_kind: z.ZodEnum<{
2172
+ readonly CARD: "card";
2173
+ readonly MOBILE_MONEY: "mobile_money";
2174
+ readonly OFFLINE: "offline";
2175
+ }>;
2176
+ collection_mode: z.ZodEnum<{
2177
+ readonly REQUEST_TO_PAY: "request_to_pay";
2178
+ readonly MANDATE_DEBIT: "mandate_debit";
2179
+ readonly CREDENTIAL_CHARGE: "credential_charge";
2180
+ readonly OFFLINE_TENDER: "offline_tender";
2181
+ }>;
2182
+ provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2183
+ readonly STRIPE: "stripe";
2184
+ readonly PAYSTACK: "paystack";
2185
+ readonly CELLULANT: "cellulant";
2186
+ readonly MTN_MOMO: "mtn_momo";
2187
+ }>>>;
2188
+ instrument: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2189
+ kind: z.ZodLiteral<"card">;
2190
+ brand: z.ZodString;
2191
+ last4: z.ZodString;
2192
+ exp_month: z.ZodNumber;
2193
+ exp_year: z.ZodNumber;
2194
+ }, z.core.$strip>, z.ZodObject<{
2195
+ kind: z.ZodLiteral<"mobile_money">;
2196
+ network: z.ZodString;
2197
+ masked_number: z.ZodString;
2198
+ }, z.core.$strip>, z.ZodObject<{
2199
+ kind: z.ZodLiteral<"erased">;
2200
+ }, z.core.$strip>], "kind">>>;
2201
+ principal_amount: z.ZodString;
2202
+ fee_amount: z.ZodString;
2203
+ customer_debit_amount: z.ZodString;
2204
+ currency: z.ZodString;
2205
+ protection: z.ZodObject<{
2206
+ status: z.ZodEnum<{
2207
+ readonly PROTECTED: "protected";
2208
+ readonly UNAVAILABLE: "unavailable";
2209
+ }>;
2210
+ message: z.ZodString;
2211
+ public_policy_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2212
+ }, z.core.$strip>;
2213
+ status: z.ZodEnum<{
2214
+ readonly ELIGIBLE: "eligible";
2215
+ readonly INELIGIBLE: "ineligible";
2216
+ readonly EXPIRED: "expired";
2217
+ }>;
2218
+ expected_next_action: z.ZodEnum<{
2219
+ readonly NONE: "none";
2220
+ readonly PROVIDER_APPROVAL: "provider_approval";
2221
+ readonly STEP_UP: "step_up";
2222
+ }>;
2223
+ expires_at: z.ZodISODateTime;
2224
+ }, z.core.$strip>>;
2225
+ valid_until: z.ZodISODateTime;
2226
+ created_at: z.ZodISODateTime;
2227
+ }, z.core.$strict>>>;
2228
+ converted_order_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2229
+ expires_at: z.ZodISODateTime;
2230
+ created_at: z.ZodISODateTime;
2231
+ updated_at: z.ZodISODateTime;
2232
+ }, z.core.$strict>;
2233
+ declare const ConfirmPurchaseIntentRequestSchema: z.ZodObject<{
2234
+ accepted_intent_revision: z.ZodNumber;
2235
+ accepted_terms_version: z.ZodNumber;
2236
+ accepted_due_now: z.ZodString;
2237
+ accepted_customer_debit_amount: z.ZodString;
2238
+ currency: z.ZodString;
2239
+ payment_option_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2240
+ idempotency_key: z.ZodString;
2241
+ }, z.core.$strict>;
2242
+ declare const PreparePurchaseIntentRequestSchema: z.ZodObject<{
2243
+ expected_intent_revision: z.ZodNumber;
2244
+ idempotency_key: z.ZodString;
2245
+ checkout: z.ZodObject<{
2246
+ customer: z.ZodObject<{
2247
+ name: z.ZodString;
2248
+ email: z.ZodString;
2249
+ phone: z.ZodString;
2250
+ notes: z.ZodOptional<z.ZodString>;
2251
+ save_details: z.ZodOptional<z.ZodBoolean>;
2252
+ }, z.core.$strip>;
2253
+ order_type: z.ZodString;
2254
+ address_info: z.ZodObject<{
2255
+ street_address: z.ZodOptional<z.ZodString>;
2256
+ apartment: z.ZodOptional<z.ZodString>;
2257
+ city: z.ZodOptional<z.ZodString>;
2258
+ region: z.ZodOptional<z.ZodString>;
2259
+ postal_code: z.ZodOptional<z.ZodString>;
2260
+ country: z.ZodOptional<z.ZodString>;
2261
+ delivery_instructions: z.ZodOptional<z.ZodString>;
2262
+ phone_for_delivery: z.ZodOptional<z.ZodString>;
2263
+ latitude: z.ZodOptional<z.ZodNumber>;
2264
+ longitude: z.ZodOptional<z.ZodNumber>;
2265
+ pickup_time: z.ZodOptional<z.ZodString>;
2266
+ guest_count: z.ZodOptional<z.ZodNumber>;
2267
+ seating_time: z.ZodOptional<z.ZodString>;
2268
+ seating_requests: z.ZodOptional<z.ZodString>;
2269
+ }, z.core.$strip>;
2270
+ location_id: z.ZodOptional<z.ZodString>;
2271
+ delivery_rate_id: z.ZodOptional<z.ZodString>;
2272
+ special_instructions: z.ZodOptional<z.ZodString>;
2273
+ link_address_id: z.ZodOptional<z.ZodString>;
2274
+ link_payment_method_id: z.ZodOptional<z.ZodString>;
2275
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2276
+ pay_currency: z.ZodOptional<z.ZodString>;
2277
+ fx_quote_id: z.ZodOptional<z.ZodString>;
2278
+ use_store_credit: z.ZodOptional<z.ZodBoolean>;
2279
+ voucher_code: z.ZodOptional<z.ZodString>;
2280
+ pay_deposit: z.ZodOptional<z.ZodBoolean>;
2281
+ tender_preference: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2282
+ method_kind: z.ZodLiteral<"card">;
2283
+ stored_instrument_id: z.ZodOptional<z.ZodString>;
2284
+ }, z.core.$strict>, z.ZodObject<{
2285
+ method_kind: z.ZodLiteral<"mobile_money">;
2286
+ authority: z.ZodDiscriminatedUnion<[z.ZodObject<{
2287
+ authority_kind: z.ZodLiteral<"transient">;
2288
+ phone_number: z.ZodString;
2289
+ network: z.ZodEnum<{
2290
+ readonly MTN: "mtn";
2291
+ readonly TELECEL: "telecel";
2292
+ readonly AIRTEL: "airtel";
2293
+ }>;
2294
+ }, z.core.$strict>, z.ZodObject<{
2295
+ authority_kind: z.ZodLiteral<"saved_reference">;
2296
+ stored_instrument_id: z.ZodString;
2297
+ }, z.core.$strict>], "authority_kind">;
2298
+ }, z.core.$strict>], "method_kind">>;
2299
+ }, z.core.$strip>;
2300
+ }, z.core.$strict>;
2301
+ declare const SubmitPurchaseIntentActionRequestSchema: z.ZodObject<{
2302
+ authorization: z.ZodDiscriminatedUnion<[z.ZodObject<{
2303
+ type: z.ZodLiteral<"otp">;
2304
+ value: z.ZodString;
2305
+ }, z.core.$strict>, z.ZodObject<{
2306
+ type: z.ZodLiteral<"pin">;
2307
+ value: z.ZodString;
2308
+ }, z.core.$strict>, z.ZodObject<{
2309
+ type: z.ZodLiteral<"phone">;
2310
+ value: z.ZodString;
2311
+ }, z.core.$strict>, z.ZodObject<{
2312
+ type: z.ZodLiteral<"birthday">;
2313
+ value: z.ZodString;
2314
+ }, z.core.$strict>, z.ZodObject<{
2315
+ type: z.ZodLiteral<"address">;
2316
+ address: z.ZodString;
2317
+ city: z.ZodString;
2318
+ state: z.ZodString;
2319
+ zip_code: z.ZodString;
2320
+ }, z.core.$strict>], "type">;
2321
+ }, z.core.$strict>;
2322
+ declare const ConfirmPurchaseIntentResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2323
+ intent_id: z.ZodString;
2324
+ attempt_id: z.ZodString;
2325
+ order_id: z.ZodString;
2326
+ order_number: z.ZodOptional<z.ZodString>;
2327
+ payment_id: z.ZodOptional<z.ZodString>;
2328
+ status: z.ZodLiteral<"order_created">;
2329
+ }, z.core.$loose>, z.ZodObject<{
2330
+ intent_id: z.ZodString;
2331
+ attempt_id: z.ZodString;
2332
+ order_id: z.ZodString;
2333
+ order_number: z.ZodOptional<z.ZodString>;
2334
+ payment_id: z.ZodOptional<z.ZodString>;
2335
+ status: z.ZodLiteral<"collection_processing">;
2336
+ }, z.core.$loose>, z.ZodObject<{
2337
+ intent_id: z.ZodString;
2338
+ attempt_id: z.ZodString;
2339
+ order_id: z.ZodString;
2340
+ order_number: z.ZodOptional<z.ZodString>;
2341
+ payment_id: z.ZodOptional<z.ZodString>;
2342
+ status: z.ZodLiteral<"payment_outcome_unknown">;
2343
+ }, z.core.$loose>, z.ZodObject<{
2344
+ intent_id: z.ZodString;
2345
+ attempt_id: z.ZodString;
2346
+ order_id: z.ZodString;
2347
+ order_number: z.ZodOptional<z.ZodString>;
2348
+ payment_id: z.ZodOptional<z.ZodString>;
2349
+ status: z.ZodLiteral<"payment_failed">;
2350
+ }, z.core.$loose>, z.ZodObject<{
2351
+ authorization_url: z.ZodString;
2352
+ intent_id: z.ZodString;
2353
+ attempt_id: z.ZodString;
2354
+ order_id: z.ZodString;
2355
+ order_number: z.ZodOptional<z.ZodString>;
2356
+ payment_id: z.ZodOptional<z.ZodString>;
2357
+ status: z.ZodLiteral<"redirect_required">;
2358
+ }, z.core.$loose>, z.ZodObject<{
2359
+ provider: z.ZodEnum<{
2360
+ readonly STRIPE: "stripe";
2361
+ readonly PAYSTACK: "paystack";
2362
+ readonly CELLULANT: "cellulant";
2363
+ readonly MTN_MOMO: "mtn_momo";
2364
+ }>;
2365
+ client_secret: z.ZodString;
2366
+ public_key: z.ZodString;
2367
+ provider_account_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2368
+ intent_id: z.ZodString;
2369
+ attempt_id: z.ZodString;
2370
+ order_id: z.ZodString;
2371
+ order_number: z.ZodOptional<z.ZodString>;
2372
+ payment_id: z.ZodOptional<z.ZodString>;
2373
+ status: z.ZodLiteral<"card_popup_required">;
2374
+ }, z.core.$loose>, z.ZodObject<{
2375
+ authorization_type: z.ZodUnion<readonly [z.ZodEnum<{
2376
+ phone: "phone";
2377
+ otp: "otp";
2378
+ pin: "pin";
2379
+ birthday: "birthday";
2380
+ }>, z.ZodObject<{
2381
+ address: z.ZodObject<{
2382
+ address: z.ZodString;
2383
+ city: z.ZodString;
2384
+ state: z.ZodString;
2385
+ zip_code: z.ZodString;
2386
+ }, z.core.$strip>;
2387
+ }, z.core.$strip>]>;
2388
+ display_text: z.ZodOptional<z.ZodString>;
2389
+ intent_id: z.ZodString;
2390
+ attempt_id: z.ZodString;
2391
+ order_id: z.ZodString;
2392
+ order_number: z.ZodOptional<z.ZodString>;
2393
+ payment_id: z.ZodOptional<z.ZodString>;
2394
+ status: z.ZodLiteral<"authorization_required">;
2395
+ }, z.core.$loose>, z.ZodObject<{
2396
+ status: z.ZodLiteral<"terms_changed">;
2397
+ intent_id: z.ZodString;
2398
+ replacement: z.ZodObject<{
2399
+ id: z.ZodString;
2400
+ intent_revision: z.ZodNumber;
2401
+ terms_version: z.ZodNumber;
2402
+ terms_digest: z.ZodString;
2403
+ money: z.ZodObject<{
2404
+ currency: z.ZodString;
2405
+ subtotal: z.ZodString;
2406
+ discount_total: z.ZodString;
2407
+ tax_total: z.ZodString;
2408
+ delivery_total: z.ZodString;
2409
+ statutory_total: z.ZodString;
2410
+ total_obligation: z.ZodString;
2411
+ due_now: z.ZodString;
2412
+ rail_amount: z.ZodString;
2413
+ store_credit_consumed: z.ZodString;
2414
+ voucher_credit_consumed: z.ZodString;
2415
+ }, z.core.$strip>;
2416
+ material: z.ZodObject<{
2417
+ line_digest: z.ZodString;
2418
+ destination_digest: z.ZodString;
2419
+ delivery_promise_digest: z.ZodString;
2420
+ entitlement_digest: z.ZodString;
2421
+ cancellation_terms_digest: z.ZodString;
2422
+ }, z.core.$strip>;
2423
+ compliance: z.ZodObject<{
2424
+ disposition: z.ZodOptional<z.ZodEnum<{
2425
+ readonly EXECUTE: "execute";
2426
+ readonly STORE_PURCHASE: "store_purchase";
2427
+ readonly LINK_OUT: "link_out";
2428
+ readonly LOCKED: "locked";
2429
+ }>>;
2430
+ purchase_policy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2431
+ policy_version: z.ZodNumber;
2432
+ surface: z.ZodEnum<{
2433
+ readonly NATIVE_IOS: "native_ios";
2434
+ readonly NATIVE_ANDROID: "native_android";
2435
+ readonly WEB: "web";
2436
+ }>;
2437
+ market_region: z.ZodString;
2438
+ store_region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2439
+ }, z.core.$strip>>>;
2440
+ policy_name: z.ZodString;
2441
+ policy_version: z.ZodNumber;
2442
+ lane: z.ZodEnum<{
2443
+ readonly COMMERCE_CORE: "commerce_core";
2444
+ readonly NATIVE: "native";
2445
+ readonly STORE_KIT: "store_kit";
2446
+ readonly PERMITTED_EXTERNAL: "permitted_external";
2447
+ readonly BROWSE_ONLY: "browse_only";
2448
+ }>;
2449
+ reason_code: z.ZodEnum<{
2450
+ readonly COMMERCE_CORE: "commerce_core";
2451
+ readonly PHYSICAL_GOODS_NATIVE: "physical_goods_native";
2452
+ readonly PHYSICAL_WORLD_COMMERCE_NATIVE: "physical_world_commerce_native";
2453
+ readonly STORE_KIT_REQUIRED: "store_kit_required";
2454
+ readonly PERMITTED_EXTERNAL_PURCHASE: "permitted_external_purchase";
2455
+ readonly DISTRIBUTION_AUTHORITY_UNVERIFIED: "distribution_authority_unverified";
2456
+ readonly PRODUCT_POLICY_UNRESOLVED: "product_policy_unresolved";
2457
+ readonly MIXED_LANE_UNSUPPORTED: "mixed_lane_unsupported";
2458
+ readonly EXTERNAL_DIGITAL_NATIVE: "external_digital_native";
2459
+ readonly MIXED_FACTS_NATIVE: "mixed_facts_native";
2460
+ readonly UNRESOLVED_FACTS_NATIVE: "unresolved_facts_native";
2461
+ }>;
2462
+ evidence_digest: z.ZodString;
2463
+ }, z.core.$strip>;
2464
+ protection: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2465
+ status: z.ZodEnum<{
2466
+ readonly PROTECTED: "protected";
2467
+ readonly UNAVAILABLE: "unavailable";
2468
+ }>;
2469
+ message: z.ZodString;
2470
+ public_policy_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2471
+ }, z.core.$strip>>>;
2472
+ payment_options: z.ZodArray<z.ZodObject<{
2473
+ id: z.ZodString;
2474
+ rank: z.ZodNumber;
2475
+ method_kind: z.ZodEnum<{
2476
+ readonly CARD: "card";
2477
+ readonly MOBILE_MONEY: "mobile_money";
2478
+ readonly OFFLINE: "offline";
2479
+ }>;
2480
+ collection_mode: z.ZodEnum<{
2481
+ readonly REQUEST_TO_PAY: "request_to_pay";
2482
+ readonly MANDATE_DEBIT: "mandate_debit";
2483
+ readonly CREDENTIAL_CHARGE: "credential_charge";
2484
+ readonly OFFLINE_TENDER: "offline_tender";
2485
+ }>;
2486
+ provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2487
+ readonly STRIPE: "stripe";
2488
+ readonly PAYSTACK: "paystack";
2489
+ readonly CELLULANT: "cellulant";
2490
+ readonly MTN_MOMO: "mtn_momo";
2491
+ }>>>;
2492
+ instrument: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2493
+ kind: z.ZodLiteral<"card">;
2494
+ brand: z.ZodString;
2495
+ last4: z.ZodString;
2496
+ exp_month: z.ZodNumber;
2497
+ exp_year: z.ZodNumber;
2498
+ }, z.core.$strip>, z.ZodObject<{
2499
+ kind: z.ZodLiteral<"mobile_money">;
2500
+ network: z.ZodString;
2501
+ masked_number: z.ZodString;
2502
+ }, z.core.$strip>, z.ZodObject<{
2503
+ kind: z.ZodLiteral<"erased">;
2504
+ }, z.core.$strip>], "kind">>>;
2505
+ principal_amount: z.ZodString;
2506
+ fee_amount: z.ZodString;
2507
+ customer_debit_amount: z.ZodString;
2508
+ currency: z.ZodString;
2509
+ protection: z.ZodObject<{
2510
+ status: z.ZodEnum<{
2511
+ readonly PROTECTED: "protected";
2512
+ readonly UNAVAILABLE: "unavailable";
2513
+ }>;
2514
+ message: z.ZodString;
2515
+ public_policy_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2516
+ }, z.core.$strip>;
2517
+ status: z.ZodEnum<{
2518
+ readonly ELIGIBLE: "eligible";
2519
+ readonly INELIGIBLE: "ineligible";
2520
+ readonly EXPIRED: "expired";
2521
+ }>;
2522
+ expected_next_action: z.ZodEnum<{
2523
+ readonly NONE: "none";
2524
+ readonly PROVIDER_APPROVAL: "provider_approval";
2525
+ readonly STEP_UP: "step_up";
2526
+ }>;
2527
+ expires_at: z.ZodISODateTime;
2528
+ }, z.core.$strip>>;
2529
+ valid_until: z.ZodISODateTime;
2530
+ created_at: z.ZodISODateTime;
2531
+ }, z.core.$strict>;
2532
+ deltas: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2533
+ kind: z.ZodLiteral<"money">;
2534
+ component: z.ZodEnum<{
2535
+ readonly SUBTOTAL: "subtotal";
2536
+ readonly DISCOUNT_TOTAL: "discount_total";
2537
+ readonly TAX_TOTAL: "tax_total";
2538
+ readonly DELIVERY_TOTAL: "delivery_total";
2539
+ readonly STATUTORY_TOTAL: "statutory_total";
2540
+ readonly TOTAL_OBLIGATION: "total_obligation";
2541
+ readonly DUE_NOW: "due_now";
2542
+ readonly RAIL_AMOUNT: "rail_amount";
2543
+ readonly STORE_CREDIT_CONSUMED: "store_credit_consumed";
2544
+ readonly VOUCHER_CREDIT_CONSUMED: "voucher_credit_consumed";
2545
+ }>;
2546
+ accepted: z.ZodString;
2547
+ replacement: z.ZodString;
2548
+ }, z.core.$strip>, z.ZodObject<{
2549
+ kind: z.ZodLiteral<"material">;
2550
+ component: z.ZodEnum<{
2551
+ readonly LINES: "lines";
2552
+ readonly DESTINATION: "destination";
2553
+ readonly DELIVERY_PROMISE: "delivery_promise";
2554
+ readonly ENTITLEMENT: "entitlement";
2555
+ readonly CANCELLATION_TERMS: "cancellation_terms";
2556
+ readonly COMPLIANCE: "compliance";
2557
+ readonly CURRENCY: "currency";
2558
+ }>;
2559
+ }, z.core.$strip>, z.ZodObject<{
2560
+ kind: z.ZodLiteral<"payment_option">;
2561
+ accepted_option_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2562
+ accepted_customer_debit_amount: z.ZodString;
2563
+ replacement_option_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2564
+ replacement_customer_debit_amount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2565
+ }, z.core.$strip>], "kind">>;
2566
+ }, z.core.$loose>, z.ZodObject<{
2567
+ status: z.ZodLiteral<"selection_unavailable">;
2568
+ intent_id: z.ZodString;
2569
+ lines: z.ZodArray<z.ZodObject<{
2570
+ line_id: z.ZodString;
2571
+ reason: z.ZodEnum<{
2572
+ readonly SOURCE_UNAVAILABLE: "source_unavailable";
2573
+ readonly OFFER_ENDED: "offer_ended";
2574
+ readonly OFFER_CHANGED: "offer_changed";
2575
+ readonly SELLABLE_UNAVAILABLE: "sellable_unavailable";
2576
+ readonly COMPLIANCE_CHANGED: "compliance_changed";
2577
+ readonly PAYMENT_OPTION_CHANGED: "payment_option_changed";
2578
+ }>;
2579
+ }, z.core.$strip>>;
2580
+ }, z.core.$loose>, z.ZodObject<{
2581
+ status: z.ZodLiteral<"offer_ended">;
2582
+ intent_id: z.ZodString;
2583
+ }, z.core.$loose>, z.ZodObject<{
2584
+ status: z.ZodLiteral<"source_unavailable">;
2585
+ intent_id: z.ZodString;
2586
+ }, z.core.$loose>], "status">;
2587
+ type MintPurchaseIntentRequest = z.infer<typeof MintPurchaseIntentRequestSchema>;
2588
+ type PurchaseIntentView = z.infer<typeof PurchaseIntentViewSchema>;
2589
+ type CheckoutTermsView = z.infer<typeof CheckoutTermsViewSchema>;
2590
+ type ConfirmPurchaseIntentRequest = z.infer<typeof ConfirmPurchaseIntentRequestSchema>;
2591
+ type PreparePurchaseIntentRequest = z.infer<typeof PreparePurchaseIntentRequestSchema>;
2592
+ type SubmitPurchaseIntentActionRequest = z.infer<typeof SubmitPurchaseIntentActionRequestSchema>;
2593
+ type ConfirmPurchaseIntentResponse = z.infer<typeof ConfirmPurchaseIntentResponseSchema>;
2594
+ declare const assertMintPurchaseIntentRequest: (value: unknown) => asserts value is {
2595
+ source: {
2596
+ kind: "cart";
2597
+ cart_id: string;
2598
+ } | {
2599
+ kind: "chat";
2600
+ thread_id: string;
2601
+ };
2602
+ checkout: {
2603
+ customer: {
2604
+ name: string;
2605
+ email: string;
2606
+ phone: string;
2607
+ notes?: string | undefined;
2608
+ save_details?: boolean | undefined;
2609
+ };
2610
+ order_type: string;
2611
+ address_info: {
2612
+ street_address?: string | undefined;
2613
+ apartment?: string | undefined;
2614
+ city?: string | undefined;
2615
+ region?: string | undefined;
2616
+ postal_code?: string | undefined;
2617
+ country?: string | undefined;
2618
+ delivery_instructions?: string | undefined;
2619
+ phone_for_delivery?: string | undefined;
2620
+ latitude?: number | undefined;
2621
+ longitude?: number | undefined;
2622
+ pickup_time?: string | undefined;
2623
+ guest_count?: number | undefined;
2624
+ seating_time?: string | undefined;
2625
+ seating_requests?: string | undefined;
2626
+ };
2627
+ location_id?: string | undefined;
2628
+ delivery_rate_id?: string | undefined;
2629
+ special_instructions?: string | undefined;
2630
+ link_address_id?: string | undefined;
2631
+ link_payment_method_id?: string | undefined;
2632
+ metadata?: Record<string, unknown> | undefined;
2633
+ pay_currency?: string | undefined;
2634
+ fx_quote_id?: string | undefined;
2635
+ use_store_credit?: boolean | undefined;
2636
+ voucher_code?: string | undefined;
2637
+ pay_deposit?: boolean | undefined;
2638
+ tender_preference?: {
2639
+ method_kind: "card";
2640
+ stored_instrument_id?: string | undefined;
2641
+ } | {
2642
+ method_kind: "mobile_money";
2643
+ authority: {
2644
+ authority_kind: "transient";
2645
+ phone_number: string;
2646
+ network: "mtn" | "telecel" | "airtel";
2647
+ } | {
2648
+ authority_kind: "saved_reference";
2649
+ stored_instrument_id: string;
2650
+ };
2651
+ } | undefined;
2652
+ };
2653
+ client_intent_key: string;
2654
+ destination?: {
2655
+ address_id: string;
2656
+ delivery_rate_id?: string | null | undefined;
2657
+ } | null | undefined;
2658
+ } | {
2659
+ source: {
2660
+ kind: "product";
2661
+ product_id: string;
2662
+ } | {
2663
+ kind: "collection";
2664
+ collection_id: string;
2665
+ } | {
2666
+ kind: "sale";
2667
+ sale_id: string;
2668
+ } | {
2669
+ kind: "post";
2670
+ signed_handoff: string;
2671
+ } | {
2672
+ kind: "live";
2673
+ signed_handoff: string;
2674
+ signed_beat_identity: string;
2675
+ };
2676
+ lines: {
2677
+ sellable: {
2678
+ kind: "product" | "variant";
2679
+ product_id: string;
2680
+ location_id: string;
2681
+ variant_id?: string | null | undefined;
2682
+ };
2683
+ quantity: number;
2684
+ configuration: {
2685
+ kind: "simple";
2686
+ variant_id?: string | null | undefined;
2687
+ add_ons?: {
2688
+ option_id: string;
2689
+ quantity: number;
2690
+ }[] | undefined;
2691
+ customer_inputs?: {
2692
+ field_id: string;
2693
+ value: unknown;
2694
+ field_name?: string | undefined;
2695
+ field_type?: string | undefined;
2696
+ }[] | undefined;
2697
+ };
2698
+ offer?: {
2699
+ kind: "sale" | "catalogue" | "rapid";
2700
+ id: string;
2701
+ version: string;
2702
+ } | null | undefined;
2703
+ }[];
2704
+ client_intent_key: string;
2705
+ destination?: {
2706
+ address_id: string;
2707
+ delivery_rate_id?: string | null | undefined;
2708
+ } | null | undefined;
2709
+ };
2710
+ declare const assertPurchaseIntentView: (value: unknown) => asserts value is {
2711
+ id: string;
2712
+ seller_business_id: string;
2713
+ revision: number;
2714
+ status: "cancelled" | "draft" | "open" | "expired" | "converted";
2715
+ source: {
2716
+ kind: "product" | "cart" | "manual" | "live" | "collection" | "sale" | "post" | "chat";
2717
+ source_id: string;
2718
+ source_version: string;
2719
+ seller_business_id: string;
2720
+ subject: {
2721
+ kind: "account";
2722
+ account_id: string;
2723
+ } | {
2724
+ kind: "business";
2725
+ business_id: string;
2726
+ };
2727
+ binding_digest: string;
2728
+ store_region?: string | null | undefined;
2729
+ native_platform?: "ios" | "android" | null | undefined;
2730
+ purchase_surface?: "native_app" | "web" | undefined;
2731
+ social_post_id?: string | null | undefined;
2732
+ };
2733
+ lines: {
2734
+ sellable: {
2735
+ kind: "product" | "variant";
2736
+ product_id: string;
2737
+ location_id: string;
2738
+ variant_id?: string | null | undefined;
2739
+ };
2740
+ quantity: number;
2741
+ id: string;
2742
+ ordinal: number;
2743
+ configuration: {
2744
+ kind: "simple";
2745
+ variant_id?: string | null | undefined;
2746
+ add_ons?: {
2747
+ option_id: string;
2748
+ quantity: number;
2749
+ }[] | undefined;
2750
+ customer_inputs?: {
2751
+ field_id: string;
2752
+ value: unknown;
2753
+ field_name?: string | undefined;
2754
+ field_type?: string | undefined;
2755
+ }[] | undefined;
2756
+ } | {
2757
+ kind: "cart";
2758
+ configuration: {
2759
+ [x: string]: unknown;
2760
+ type: "service" | "digital" | "bundle" | "composite" | "simple";
2761
+ };
2762
+ };
2763
+ offer?: {
2764
+ kind: "sale" | "catalogue" | "rapid";
2765
+ id: string;
2766
+ version: string;
2767
+ } | null | undefined;
2768
+ }[];
2769
+ line_pricing: {
2770
+ intent_line_id: string;
2771
+ quantity: number;
2772
+ unit_price: string;
2773
+ line_subtotal: string;
2774
+ currency: string;
2775
+ }[];
2776
+ expires_at: string;
2777
+ created_at: string;
2778
+ updated_at: string;
2779
+ disposition?: "execute" | "store_purchase" | "link_out" | "locked" | undefined;
2780
+ principal?: {
2781
+ kind: "account";
2782
+ account_id: string;
2783
+ } | {
2784
+ kind: "business";
2785
+ business_id: string;
2786
+ } | {
2787
+ kind: "guest";
2788
+ } | {
2789
+ kind: "recognised";
2790
+ verified: boolean;
2791
+ } | null | undefined;
2792
+ current_terms?: {
2793
+ id: string;
2794
+ intent_revision: number;
2795
+ terms_version: number;
2796
+ terms_digest: string;
2797
+ money: {
2798
+ currency: string;
2799
+ subtotal: string;
2800
+ discount_total: string;
2801
+ tax_total: string;
2802
+ delivery_total: string;
2803
+ statutory_total: string;
2804
+ total_obligation: string;
2805
+ due_now: string;
2806
+ rail_amount: string;
2807
+ store_credit_consumed: string;
2808
+ voucher_credit_consumed: string;
2809
+ };
2810
+ material: {
2811
+ line_digest: string;
2812
+ destination_digest: string;
2813
+ delivery_promise_digest: string;
2814
+ entitlement_digest: string;
2815
+ cancellation_terms_digest: string;
2816
+ };
2817
+ compliance: {
2818
+ policy_name: string;
2819
+ policy_version: number;
2820
+ lane: "commerce_core" | "native" | "store_kit" | "permitted_external" | "browse_only";
2821
+ reason_code: "commerce_core" | "physical_goods_native" | "physical_world_commerce_native" | "store_kit_required" | "permitted_external_purchase" | "product_policy_unresolved" | "mixed_lane_unsupported" | "external_digital_native" | "mixed_facts_native" | "unresolved_facts_native" | "distribution_authority_unverified";
2822
+ evidence_digest: string;
2823
+ disposition?: "execute" | "store_purchase" | "link_out" | "locked" | undefined;
2824
+ purchase_policy?: {
2825
+ policy_version: number;
2826
+ surface: "web" | "native_ios" | "native_android";
2827
+ market_region: string;
2828
+ store_region?: string | null | undefined;
2829
+ } | null | undefined;
2830
+ };
2831
+ payment_options: {
2832
+ id: string;
2833
+ rank: number;
2834
+ method_kind: "mobile_money" | "card" | "offline";
2835
+ collection_mode: "request_to_pay" | "mandate_debit" | "credential_charge" | "offline_tender";
2836
+ principal_amount: string;
2837
+ fee_amount: string;
2838
+ customer_debit_amount: string;
2839
+ currency: string;
2840
+ protection: {
2841
+ status: "protected" | "unavailable";
2842
+ message: string;
2843
+ public_policy_version?: string | null | undefined;
2844
+ };
2845
+ status: "expired" | "eligible" | "ineligible";
2846
+ expected_next_action: "none" | "provider_approval" | "step_up";
2847
+ expires_at: string;
2848
+ provider?: "stripe" | "paystack" | "cellulant" | "mtn_momo" | null | undefined;
2849
+ instrument?: {
2850
+ kind: "card";
2851
+ brand: string;
2852
+ last4: string;
2853
+ exp_month: number;
2854
+ exp_year: number;
2855
+ } | {
2856
+ kind: "mobile_money";
2857
+ network: string;
2858
+ masked_number: string;
2859
+ } | {
2860
+ kind: "erased";
2861
+ } | null | undefined;
2862
+ }[];
2863
+ valid_until: string;
2864
+ created_at: string;
2865
+ protection?: {
2866
+ status: "protected" | "unavailable";
2867
+ message: string;
2868
+ public_policy_version?: string | null | undefined;
2869
+ } | null | undefined;
2870
+ } | null | undefined;
2871
+ converted_order_id?: string | null | undefined;
2872
+ };
2873
+ declare const assertCheckoutTermsView: (value: unknown) => asserts value is {
2874
+ id: string;
2875
+ intent_revision: number;
2876
+ terms_version: number;
2877
+ terms_digest: string;
2878
+ money: {
2879
+ currency: string;
2880
+ subtotal: string;
2881
+ discount_total: string;
2882
+ tax_total: string;
2883
+ delivery_total: string;
2884
+ statutory_total: string;
2885
+ total_obligation: string;
2886
+ due_now: string;
2887
+ rail_amount: string;
2888
+ store_credit_consumed: string;
2889
+ voucher_credit_consumed: string;
2890
+ };
2891
+ material: {
2892
+ line_digest: string;
2893
+ destination_digest: string;
2894
+ delivery_promise_digest: string;
2895
+ entitlement_digest: string;
2896
+ cancellation_terms_digest: string;
2897
+ };
2898
+ compliance: {
2899
+ policy_name: string;
2900
+ policy_version: number;
2901
+ lane: "commerce_core" | "native" | "store_kit" | "permitted_external" | "browse_only";
2902
+ reason_code: "commerce_core" | "physical_goods_native" | "physical_world_commerce_native" | "store_kit_required" | "permitted_external_purchase" | "product_policy_unresolved" | "mixed_lane_unsupported" | "external_digital_native" | "mixed_facts_native" | "unresolved_facts_native" | "distribution_authority_unverified";
2903
+ evidence_digest: string;
2904
+ disposition?: "execute" | "store_purchase" | "link_out" | "locked" | undefined;
2905
+ purchase_policy?: {
2906
+ policy_version: number;
2907
+ surface: "web" | "native_ios" | "native_android";
2908
+ market_region: string;
2909
+ store_region?: string | null | undefined;
2910
+ } | null | undefined;
2911
+ };
2912
+ payment_options: {
2913
+ id: string;
2914
+ rank: number;
2915
+ method_kind: "mobile_money" | "card" | "offline";
2916
+ collection_mode: "request_to_pay" | "mandate_debit" | "credential_charge" | "offline_tender";
2917
+ principal_amount: string;
2918
+ fee_amount: string;
2919
+ customer_debit_amount: string;
2920
+ currency: string;
2921
+ protection: {
2922
+ status: "protected" | "unavailable";
2923
+ message: string;
2924
+ public_policy_version?: string | null | undefined;
2925
+ };
2926
+ status: "expired" | "eligible" | "ineligible";
2927
+ expected_next_action: "none" | "provider_approval" | "step_up";
2928
+ expires_at: string;
2929
+ provider?: "stripe" | "paystack" | "cellulant" | "mtn_momo" | null | undefined;
2930
+ instrument?: {
2931
+ kind: "card";
2932
+ brand: string;
2933
+ last4: string;
2934
+ exp_month: number;
2935
+ exp_year: number;
2936
+ } | {
2937
+ kind: "mobile_money";
2938
+ network: string;
2939
+ masked_number: string;
2940
+ } | {
2941
+ kind: "erased";
2942
+ } | null | undefined;
2943
+ }[];
2944
+ valid_until: string;
2945
+ created_at: string;
2946
+ protection?: {
2947
+ status: "protected" | "unavailable";
2948
+ message: string;
2949
+ public_policy_version?: string | null | undefined;
2950
+ } | null | undefined;
2951
+ };
2952
+ declare const assertConfirmPurchaseIntentRequest: (value: unknown) => asserts value is {
2953
+ accepted_intent_revision: number;
2954
+ accepted_terms_version: number;
2955
+ accepted_due_now: string;
2956
+ accepted_customer_debit_amount: string;
2957
+ currency: string;
2958
+ idempotency_key: string;
2959
+ payment_option_id?: string | null | undefined;
2960
+ };
2961
+ declare const assertPreparePurchaseIntentRequest: (value: unknown) => asserts value is {
2962
+ expected_intent_revision: number;
2963
+ idempotency_key: string;
2964
+ checkout: {
2965
+ customer: {
2966
+ name: string;
2967
+ email: string;
2968
+ phone: string;
2969
+ notes?: string | undefined;
2970
+ save_details?: boolean | undefined;
2971
+ };
2972
+ order_type: string;
2973
+ address_info: {
2974
+ street_address?: string | undefined;
2975
+ apartment?: string | undefined;
2976
+ city?: string | undefined;
2977
+ region?: string | undefined;
2978
+ postal_code?: string | undefined;
2979
+ country?: string | undefined;
2980
+ delivery_instructions?: string | undefined;
2981
+ phone_for_delivery?: string | undefined;
2982
+ latitude?: number | undefined;
2983
+ longitude?: number | undefined;
2984
+ pickup_time?: string | undefined;
2985
+ guest_count?: number | undefined;
2986
+ seating_time?: string | undefined;
2987
+ seating_requests?: string | undefined;
2988
+ };
2989
+ location_id?: string | undefined;
2990
+ delivery_rate_id?: string | undefined;
2991
+ special_instructions?: string | undefined;
2992
+ link_address_id?: string | undefined;
2993
+ link_payment_method_id?: string | undefined;
2994
+ metadata?: Record<string, unknown> | undefined;
2995
+ pay_currency?: string | undefined;
2996
+ fx_quote_id?: string | undefined;
2997
+ use_store_credit?: boolean | undefined;
2998
+ voucher_code?: string | undefined;
2999
+ pay_deposit?: boolean | undefined;
3000
+ tender_preference?: {
3001
+ method_kind: "card";
3002
+ stored_instrument_id?: string | undefined;
3003
+ } | {
3004
+ method_kind: "mobile_money";
3005
+ authority: {
3006
+ authority_kind: "transient";
3007
+ phone_number: string;
3008
+ network: "mtn" | "telecel" | "airtel";
3009
+ } | {
3010
+ authority_kind: "saved_reference";
3011
+ stored_instrument_id: string;
3012
+ };
3013
+ } | undefined;
3014
+ };
3015
+ };
3016
+ declare const assertSubmitPurchaseIntentActionRequest: (value: unknown) => asserts value is {
3017
+ authorization: {
3018
+ type: "otp";
3019
+ value: string;
3020
+ } | {
3021
+ type: "pin";
3022
+ value: string;
3023
+ } | {
3024
+ type: "phone";
3025
+ value: string;
3026
+ } | {
3027
+ type: "birthday";
3028
+ value: string;
3029
+ } | {
3030
+ type: "address";
3031
+ address: string;
3032
+ city: string;
3033
+ state: string;
3034
+ zip_code: string;
3035
+ };
3036
+ };
3037
+ declare const assertConfirmPurchaseIntentResponse: (value: unknown) => asserts value is {
3038
+ [x: string]: unknown;
3039
+ intent_id: string;
3040
+ attempt_id: string;
3041
+ order_id: string;
3042
+ status: "order_created";
3043
+ order_number?: string | undefined;
3044
+ payment_id?: string | undefined;
3045
+ } | {
3046
+ [x: string]: unknown;
3047
+ intent_id: string;
3048
+ attempt_id: string;
3049
+ order_id: string;
3050
+ status: "collection_processing";
3051
+ order_number?: string | undefined;
3052
+ payment_id?: string | undefined;
3053
+ } | {
3054
+ [x: string]: unknown;
3055
+ intent_id: string;
3056
+ attempt_id: string;
3057
+ order_id: string;
3058
+ status: "payment_outcome_unknown";
3059
+ order_number?: string | undefined;
3060
+ payment_id?: string | undefined;
3061
+ } | {
3062
+ [x: string]: unknown;
3063
+ intent_id: string;
3064
+ attempt_id: string;
3065
+ order_id: string;
3066
+ status: "payment_failed";
3067
+ order_number?: string | undefined;
3068
+ payment_id?: string | undefined;
3069
+ } | {
3070
+ [x: string]: unknown;
3071
+ authorization_url: string;
3072
+ intent_id: string;
3073
+ attempt_id: string;
3074
+ order_id: string;
3075
+ status: "redirect_required";
3076
+ order_number?: string | undefined;
3077
+ payment_id?: string | undefined;
3078
+ } | {
3079
+ [x: string]: unknown;
3080
+ provider: "stripe" | "paystack" | "cellulant" | "mtn_momo";
3081
+ client_secret: string;
3082
+ public_key: string;
3083
+ intent_id: string;
3084
+ attempt_id: string;
3085
+ order_id: string;
3086
+ status: "card_popup_required";
3087
+ provider_account_id?: string | null | undefined;
3088
+ order_number?: string | undefined;
3089
+ payment_id?: string | undefined;
3090
+ } | {
3091
+ [x: string]: unknown;
3092
+ authorization_type: "phone" | "otp" | "pin" | "birthday" | {
3093
+ address: {
3094
+ address: string;
3095
+ city: string;
3096
+ state: string;
3097
+ zip_code: string;
3098
+ };
3099
+ };
3100
+ intent_id: string;
3101
+ attempt_id: string;
3102
+ order_id: string;
3103
+ status: "authorization_required";
3104
+ display_text?: string | undefined;
3105
+ order_number?: string | undefined;
3106
+ payment_id?: string | undefined;
3107
+ } | {
3108
+ [x: string]: unknown;
3109
+ status: "terms_changed";
3110
+ intent_id: string;
3111
+ replacement: {
3112
+ id: string;
3113
+ intent_revision: number;
3114
+ terms_version: number;
3115
+ terms_digest: string;
3116
+ money: {
3117
+ currency: string;
3118
+ subtotal: string;
3119
+ discount_total: string;
3120
+ tax_total: string;
3121
+ delivery_total: string;
3122
+ statutory_total: string;
3123
+ total_obligation: string;
3124
+ due_now: string;
3125
+ rail_amount: string;
3126
+ store_credit_consumed: string;
3127
+ voucher_credit_consumed: string;
3128
+ };
3129
+ material: {
3130
+ line_digest: string;
3131
+ destination_digest: string;
3132
+ delivery_promise_digest: string;
3133
+ entitlement_digest: string;
3134
+ cancellation_terms_digest: string;
3135
+ };
3136
+ compliance: {
3137
+ policy_name: string;
3138
+ policy_version: number;
3139
+ lane: "commerce_core" | "native" | "store_kit" | "permitted_external" | "browse_only";
3140
+ reason_code: "commerce_core" | "physical_goods_native" | "physical_world_commerce_native" | "store_kit_required" | "permitted_external_purchase" | "product_policy_unresolved" | "mixed_lane_unsupported" | "external_digital_native" | "mixed_facts_native" | "unresolved_facts_native" | "distribution_authority_unverified";
3141
+ evidence_digest: string;
3142
+ disposition?: "execute" | "store_purchase" | "link_out" | "locked" | undefined;
3143
+ purchase_policy?: {
3144
+ policy_version: number;
3145
+ surface: "web" | "native_ios" | "native_android";
3146
+ market_region: string;
3147
+ store_region?: string | null | undefined;
3148
+ } | null | undefined;
3149
+ };
3150
+ payment_options: {
3151
+ id: string;
3152
+ rank: number;
3153
+ method_kind: "mobile_money" | "card" | "offline";
3154
+ collection_mode: "request_to_pay" | "mandate_debit" | "credential_charge" | "offline_tender";
3155
+ principal_amount: string;
3156
+ fee_amount: string;
3157
+ customer_debit_amount: string;
3158
+ currency: string;
3159
+ protection: {
3160
+ status: "protected" | "unavailable";
3161
+ message: string;
3162
+ public_policy_version?: string | null | undefined;
3163
+ };
3164
+ status: "expired" | "eligible" | "ineligible";
3165
+ expected_next_action: "none" | "provider_approval" | "step_up";
3166
+ expires_at: string;
3167
+ provider?: "stripe" | "paystack" | "cellulant" | "mtn_momo" | null | undefined;
3168
+ instrument?: {
3169
+ kind: "card";
3170
+ brand: string;
3171
+ last4: string;
3172
+ exp_month: number;
3173
+ exp_year: number;
3174
+ } | {
3175
+ kind: "mobile_money";
3176
+ network: string;
3177
+ masked_number: string;
3178
+ } | {
3179
+ kind: "erased";
3180
+ } | null | undefined;
3181
+ }[];
3182
+ valid_until: string;
3183
+ created_at: string;
3184
+ protection?: {
3185
+ status: "protected" | "unavailable";
3186
+ message: string;
3187
+ public_policy_version?: string | null | undefined;
3188
+ } | null | undefined;
3189
+ };
3190
+ deltas: ({
3191
+ kind: "money";
3192
+ component: "subtotal" | "discount_total" | "tax_total" | "delivery_total" | "statutory_total" | "total_obligation" | "due_now" | "rail_amount" | "store_credit_consumed" | "voucher_credit_consumed";
3193
+ accepted: string;
3194
+ replacement: string;
3195
+ } | {
3196
+ kind: "material";
3197
+ component: "currency" | "lines" | "destination" | "delivery_promise" | "entitlement" | "cancellation_terms" | "compliance";
3198
+ } | {
3199
+ kind: "payment_option";
3200
+ accepted_customer_debit_amount: string;
3201
+ accepted_option_id?: string | null | undefined;
3202
+ replacement_option_id?: string | null | undefined;
3203
+ replacement_customer_debit_amount?: string | null | undefined;
3204
+ })[];
3205
+ } | {
3206
+ [x: string]: unknown;
3207
+ status: "selection_unavailable";
3208
+ intent_id: string;
3209
+ lines: {
3210
+ line_id: string;
3211
+ reason: "source_unavailable" | "offer_ended" | "offer_changed" | "sellable_unavailable" | "compliance_changed" | "payment_option_changed";
3212
+ }[];
3213
+ } | {
3214
+ [x: string]: unknown;
3215
+ status: "offer_ended";
3216
+ intent_id: string;
3217
+ } | {
3218
+ [x: string]: unknown;
3219
+ status: "source_unavailable";
3220
+ intent_id: string;
3221
+ };
3222
+
1645
3223
  /** Link OTP verification wire input. `challenge_id` remains optional only for
1646
3224
  * clients talking to the bounded rolling-deployment compatibility bridge. */
1647
3225
  declare const VerifyOtpRequestSchema: z.ZodObject<{
@@ -2258,10 +3836,18 @@ declare const PUBLIC_SCHEMAS: {
2258
3836
  notes: z.ZodOptional<z.ZodString>;
2259
3837
  save_details: z.ZodOptional<z.ZodBoolean>;
2260
3838
  }, z.core.$strip>;
2261
- order_type: z.ZodString;
3839
+ order_type: z.ZodEnum<{
3840
+ readonly DELIVERY: "delivery";
3841
+ readonly PICKUP: "pickup";
3842
+ readonly DINE_IN: "dine-in";
3843
+ readonly WALK_IN: "walk-in";
3844
+ }>;
2262
3845
  address_info: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2263
3846
  delivery_rate_id: z.ZodOptional<z.ZodString>;
2264
- payment_method: z.ZodString;
3847
+ payment_method: z.ZodEnum<{
3848
+ readonly MOBILE_MONEY: "mobile_money";
3849
+ readonly CARD: "card";
3850
+ }>;
2265
3851
  mobile_money_details: z.ZodOptional<z.ZodObject<{
2266
3852
  phone_number: z.ZodString;
2267
3853
  provider: z.ZodString;
@@ -2318,6 +3904,13 @@ declare const PUBLIC_SCHEMAS: {
2318
3904
  }, z.core.$strip>;
2319
3905
  }, z.core.$strip>]>;
2320
3906
  display_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3907
+ }, z.core.$strip>, z.ZodObject<{
3908
+ type: z.ZodLiteral<"terms_changed">;
3909
+ replacement: z.ZodUnknown;
3910
+ deltas: z.ZodArray<z.ZodUnknown>;
3911
+ }, z.core.$strip>, z.ZodObject<{
3912
+ type: z.ZodLiteral<"selection_unavailable">;
3913
+ lines: z.ZodArray<z.ZodUnknown>;
2321
3914
  }, z.core.$strip>, z.ZodObject<{
2322
3915
  type: z.ZodLiteral<"poll">;
2323
3916
  }, z.core.$strip>], "type">;
@@ -2359,6 +3952,877 @@ declare const PUBLIC_SCHEMAS: {
2359
3952
  expires_in: z.ZodNumber;
2360
3953
  is_new_account: z.ZodBoolean;
2361
3954
  }, z.core.$strict>;
3955
+ readonly MintPurchaseIntentRequest: z.ZodUnion<readonly [z.ZodObject<{
3956
+ source: z.ZodUnion<readonly [z.ZodObject<{
3957
+ kind: z.ZodLiteral<"cart">;
3958
+ cart_id: z.ZodString;
3959
+ }, z.core.$strict>, z.ZodObject<{
3960
+ kind: z.ZodLiteral<"chat">;
3961
+ thread_id: z.ZodString;
3962
+ }, z.core.$strict>]>;
3963
+ checkout: z.ZodObject<{
3964
+ customer: z.ZodObject<{
3965
+ name: z.ZodString;
3966
+ email: z.ZodString;
3967
+ phone: z.ZodString;
3968
+ notes: z.ZodOptional<z.ZodString>;
3969
+ save_details: z.ZodOptional<z.ZodBoolean>;
3970
+ }, z.core.$strip>;
3971
+ order_type: z.ZodString;
3972
+ address_info: z.ZodObject<{
3973
+ street_address: z.ZodOptional<z.ZodString>;
3974
+ apartment: z.ZodOptional<z.ZodString>;
3975
+ city: z.ZodOptional<z.ZodString>;
3976
+ region: z.ZodOptional<z.ZodString>;
3977
+ postal_code: z.ZodOptional<z.ZodString>;
3978
+ country: z.ZodOptional<z.ZodString>;
3979
+ delivery_instructions: z.ZodOptional<z.ZodString>;
3980
+ phone_for_delivery: z.ZodOptional<z.ZodString>;
3981
+ latitude: z.ZodOptional<z.ZodNumber>;
3982
+ longitude: z.ZodOptional<z.ZodNumber>;
3983
+ pickup_time: z.ZodOptional<z.ZodString>;
3984
+ guest_count: z.ZodOptional<z.ZodNumber>;
3985
+ seating_time: z.ZodOptional<z.ZodString>;
3986
+ seating_requests: z.ZodOptional<z.ZodString>;
3987
+ }, z.core.$strip>;
3988
+ location_id: z.ZodOptional<z.ZodString>;
3989
+ delivery_rate_id: z.ZodOptional<z.ZodString>;
3990
+ special_instructions: z.ZodOptional<z.ZodString>;
3991
+ link_address_id: z.ZodOptional<z.ZodString>;
3992
+ link_payment_method_id: z.ZodOptional<z.ZodString>;
3993
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3994
+ pay_currency: z.ZodOptional<z.ZodString>;
3995
+ fx_quote_id: z.ZodOptional<z.ZodString>;
3996
+ use_store_credit: z.ZodOptional<z.ZodBoolean>;
3997
+ voucher_code: z.ZodOptional<z.ZodString>;
3998
+ pay_deposit: z.ZodOptional<z.ZodBoolean>;
3999
+ tender_preference: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4000
+ method_kind: z.ZodLiteral<"card">;
4001
+ stored_instrument_id: z.ZodOptional<z.ZodString>;
4002
+ }, z.core.$strict>, z.ZodObject<{
4003
+ method_kind: z.ZodLiteral<"mobile_money">;
4004
+ authority: z.ZodDiscriminatedUnion<[z.ZodObject<{
4005
+ authority_kind: z.ZodLiteral<"transient">;
4006
+ phone_number: z.ZodString;
4007
+ network: z.ZodEnum<{
4008
+ readonly MTN: "mtn";
4009
+ readonly TELECEL: "telecel";
4010
+ readonly AIRTEL: "airtel";
4011
+ }>;
4012
+ }, z.core.$strict>, z.ZodObject<{
4013
+ authority_kind: z.ZodLiteral<"saved_reference">;
4014
+ stored_instrument_id: z.ZodString;
4015
+ }, z.core.$strict>], "authority_kind">;
4016
+ }, z.core.$strict>], "method_kind">>;
4017
+ }, z.core.$strip>;
4018
+ client_intent_key: z.ZodString;
4019
+ destination: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4020
+ address_id: z.ZodString;
4021
+ delivery_rate_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4022
+ }, z.core.$strip>>>;
4023
+ }, z.core.$strict>, z.ZodObject<{
4024
+ source: z.ZodUnion<readonly [z.ZodObject<{
4025
+ kind: z.ZodLiteral<"product">;
4026
+ product_id: z.ZodString;
4027
+ }, z.core.$strict>, z.ZodObject<{
4028
+ kind: z.ZodLiteral<"collection">;
4029
+ collection_id: z.ZodString;
4030
+ }, z.core.$strict>, z.ZodObject<{
4031
+ kind: z.ZodLiteral<"sale">;
4032
+ sale_id: z.ZodString;
4033
+ }, z.core.$strict>, z.ZodObject<{
4034
+ kind: z.ZodLiteral<"post">;
4035
+ signed_handoff: z.ZodString;
4036
+ }, z.core.$strict>, z.ZodObject<{
4037
+ kind: z.ZodLiteral<"live">;
4038
+ signed_handoff: z.ZodString;
4039
+ signed_beat_identity: z.ZodString;
4040
+ }, z.core.$strict>]>;
4041
+ lines: z.ZodArray<z.ZodObject<{
4042
+ sellable: z.ZodObject<{
4043
+ kind: z.ZodEnum<{
4044
+ readonly PRODUCT: "product";
4045
+ readonly VARIANT: "variant";
4046
+ }>;
4047
+ product_id: z.ZodString;
4048
+ variant_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4049
+ location_id: z.ZodString;
4050
+ }, z.core.$strip>;
4051
+ quantity: z.ZodNumber;
4052
+ configuration: z.ZodObject<{
4053
+ kind: z.ZodLiteral<"simple">;
4054
+ variant_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4055
+ add_ons: z.ZodOptional<z.ZodArray<z.ZodObject<{
4056
+ option_id: z.ZodString;
4057
+ quantity: z.ZodNumber;
4058
+ }, z.core.$strip>>>;
4059
+ customer_inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
4060
+ field_id: z.ZodString;
4061
+ field_name: z.ZodOptional<z.ZodString>;
4062
+ field_type: z.ZodOptional<z.ZodString>;
4063
+ value: z.ZodUnknown;
4064
+ }, z.core.$strip>>>;
4065
+ }, z.core.$strip>;
4066
+ offer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4067
+ kind: z.ZodEnum<{
4068
+ readonly CATALOGUE: "catalogue";
4069
+ readonly SALE: "sale";
4070
+ readonly RAPID: "rapid";
4071
+ }>;
4072
+ id: z.ZodString;
4073
+ version: z.ZodString;
4074
+ }, z.core.$strip>>>;
4075
+ }, z.core.$strip>>;
4076
+ client_intent_key: z.ZodString;
4077
+ destination: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4078
+ address_id: z.ZodString;
4079
+ delivery_rate_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4080
+ }, z.core.$strip>>>;
4081
+ }, z.core.$strict>]>;
4082
+ readonly PurchaseIntentView: z.ZodObject<{
4083
+ disposition: z.ZodOptional<z.ZodEnum<{
4084
+ readonly EXECUTE: "execute";
4085
+ readonly STORE_PURCHASE: "store_purchase";
4086
+ readonly LINK_OUT: "link_out";
4087
+ readonly LOCKED: "locked";
4088
+ }>>;
4089
+ id: z.ZodString;
4090
+ seller_business_id: z.ZodString;
4091
+ principal: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
4092
+ kind: z.ZodLiteral<"account">;
4093
+ account_id: z.ZodString;
4094
+ }, z.core.$strict>, z.ZodObject<{
4095
+ kind: z.ZodLiteral<"business">;
4096
+ business_id: z.ZodString;
4097
+ }, z.core.$strict>, z.ZodObject<{
4098
+ kind: z.ZodLiteral<"guest">;
4099
+ }, z.core.$strict>, z.ZodObject<{
4100
+ kind: z.ZodLiteral<"recognised">;
4101
+ verified: z.ZodBoolean;
4102
+ }, z.core.$strict>], "kind">>>;
4103
+ revision: z.ZodNumber;
4104
+ status: z.ZodEnum<{
4105
+ readonly DRAFT: "draft";
4106
+ readonly OPEN: "open";
4107
+ readonly CONVERTED: "converted";
4108
+ readonly CANCELLED: "cancelled";
4109
+ readonly EXPIRED: "expired";
4110
+ }>;
4111
+ source: z.ZodObject<{
4112
+ store_region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4113
+ native_platform: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
4114
+ readonly IOS: "ios";
4115
+ readonly ANDROID: "android";
4116
+ }>>>;
4117
+ purchase_surface: z.ZodOptional<z.ZodEnum<{
4118
+ readonly NATIVE_APP: "native_app";
4119
+ readonly WEB: "web";
4120
+ }>>;
4121
+ kind: z.ZodEnum<{
4122
+ readonly PRODUCT: "product";
4123
+ readonly COLLECTION: "collection";
4124
+ readonly SALE: "sale";
4125
+ readonly POST: "post";
4126
+ readonly LIVE: "live";
4127
+ readonly CART: "cart";
4128
+ readonly CHAT: "chat";
4129
+ readonly MANUAL: "manual";
4130
+ }>;
4131
+ source_id: z.ZodString;
4132
+ social_post_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4133
+ source_version: z.ZodString;
4134
+ seller_business_id: z.ZodString;
4135
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
4136
+ kind: z.ZodLiteral<"account">;
4137
+ account_id: z.ZodString;
4138
+ }, z.core.$strict>, z.ZodObject<{
4139
+ kind: z.ZodLiteral<"business">;
4140
+ business_id: z.ZodString;
4141
+ }, z.core.$strict>], "kind">;
4142
+ binding_digest: z.ZodString;
4143
+ }, z.core.$strict>;
4144
+ lines: z.ZodArray<z.ZodObject<{
4145
+ sellable: z.ZodObject<{
4146
+ kind: z.ZodEnum<{
4147
+ readonly PRODUCT: "product";
4148
+ readonly VARIANT: "variant";
4149
+ }>;
4150
+ product_id: z.ZodString;
4151
+ variant_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4152
+ location_id: z.ZodString;
4153
+ }, z.core.$strip>;
4154
+ quantity: z.ZodNumber;
4155
+ offer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4156
+ kind: z.ZodEnum<{
4157
+ readonly CATALOGUE: "catalogue";
4158
+ readonly SALE: "sale";
4159
+ readonly RAPID: "rapid";
4160
+ }>;
4161
+ id: z.ZodString;
4162
+ version: z.ZodString;
4163
+ }, z.core.$strip>>>;
4164
+ id: z.ZodString;
4165
+ ordinal: z.ZodNumber;
4166
+ configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
4167
+ kind: z.ZodLiteral<"simple">;
4168
+ variant_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4169
+ add_ons: z.ZodOptional<z.ZodArray<z.ZodObject<{
4170
+ option_id: z.ZodString;
4171
+ quantity: z.ZodNumber;
4172
+ }, z.core.$strip>>>;
4173
+ customer_inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
4174
+ field_id: z.ZodString;
4175
+ field_name: z.ZodOptional<z.ZodString>;
4176
+ field_type: z.ZodOptional<z.ZodString>;
4177
+ value: z.ZodUnknown;
4178
+ }, z.core.$strip>>>;
4179
+ }, z.core.$strip>, z.ZodObject<{
4180
+ kind: z.ZodLiteral<"cart">;
4181
+ configuration: z.ZodObject<{
4182
+ type: z.ZodEnum<{
4183
+ service: "service";
4184
+ digital: "digital";
4185
+ bundle: "bundle";
4186
+ composite: "composite";
4187
+ simple: "simple";
4188
+ }>;
4189
+ }, z.core.$loose>;
4190
+ }, z.core.$strip>], "kind">;
4191
+ }, z.core.$strip>>;
4192
+ line_pricing: z.ZodArray<z.ZodObject<{
4193
+ intent_line_id: z.ZodString;
4194
+ quantity: z.ZodNumber;
4195
+ unit_price: z.ZodString;
4196
+ line_subtotal: z.ZodString;
4197
+ currency: z.ZodString;
4198
+ }, z.core.$strict>>;
4199
+ current_terms: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4200
+ id: z.ZodString;
4201
+ intent_revision: z.ZodNumber;
4202
+ terms_version: z.ZodNumber;
4203
+ terms_digest: z.ZodString;
4204
+ money: z.ZodObject<{
4205
+ currency: z.ZodString;
4206
+ subtotal: z.ZodString;
4207
+ discount_total: z.ZodString;
4208
+ tax_total: z.ZodString;
4209
+ delivery_total: z.ZodString;
4210
+ statutory_total: z.ZodString;
4211
+ total_obligation: z.ZodString;
4212
+ due_now: z.ZodString;
4213
+ rail_amount: z.ZodString;
4214
+ store_credit_consumed: z.ZodString;
4215
+ voucher_credit_consumed: z.ZodString;
4216
+ }, z.core.$strip>;
4217
+ material: z.ZodObject<{
4218
+ line_digest: z.ZodString;
4219
+ destination_digest: z.ZodString;
4220
+ delivery_promise_digest: z.ZodString;
4221
+ entitlement_digest: z.ZodString;
4222
+ cancellation_terms_digest: z.ZodString;
4223
+ }, z.core.$strip>;
4224
+ compliance: z.ZodObject<{
4225
+ disposition: z.ZodOptional<z.ZodEnum<{
4226
+ readonly EXECUTE: "execute";
4227
+ readonly STORE_PURCHASE: "store_purchase";
4228
+ readonly LINK_OUT: "link_out";
4229
+ readonly LOCKED: "locked";
4230
+ }>>;
4231
+ purchase_policy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4232
+ policy_version: z.ZodNumber;
4233
+ surface: z.ZodEnum<{
4234
+ readonly NATIVE_IOS: "native_ios";
4235
+ readonly NATIVE_ANDROID: "native_android";
4236
+ readonly WEB: "web";
4237
+ }>;
4238
+ market_region: z.ZodString;
4239
+ store_region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4240
+ }, z.core.$strip>>>;
4241
+ policy_name: z.ZodString;
4242
+ policy_version: z.ZodNumber;
4243
+ lane: z.ZodEnum<{
4244
+ readonly COMMERCE_CORE: "commerce_core";
4245
+ readonly NATIVE: "native";
4246
+ readonly STORE_KIT: "store_kit";
4247
+ readonly PERMITTED_EXTERNAL: "permitted_external";
4248
+ readonly BROWSE_ONLY: "browse_only";
4249
+ }>;
4250
+ reason_code: z.ZodEnum<{
4251
+ readonly COMMERCE_CORE: "commerce_core";
4252
+ readonly PHYSICAL_GOODS_NATIVE: "physical_goods_native";
4253
+ readonly PHYSICAL_WORLD_COMMERCE_NATIVE: "physical_world_commerce_native";
4254
+ readonly STORE_KIT_REQUIRED: "store_kit_required";
4255
+ readonly PERMITTED_EXTERNAL_PURCHASE: "permitted_external_purchase";
4256
+ readonly DISTRIBUTION_AUTHORITY_UNVERIFIED: "distribution_authority_unverified";
4257
+ readonly PRODUCT_POLICY_UNRESOLVED: "product_policy_unresolved";
4258
+ readonly MIXED_LANE_UNSUPPORTED: "mixed_lane_unsupported";
4259
+ readonly EXTERNAL_DIGITAL_NATIVE: "external_digital_native";
4260
+ readonly MIXED_FACTS_NATIVE: "mixed_facts_native";
4261
+ readonly UNRESOLVED_FACTS_NATIVE: "unresolved_facts_native";
4262
+ }>;
4263
+ evidence_digest: z.ZodString;
4264
+ }, z.core.$strip>;
4265
+ protection: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4266
+ status: z.ZodEnum<{
4267
+ readonly PROTECTED: "protected";
4268
+ readonly UNAVAILABLE: "unavailable";
4269
+ }>;
4270
+ message: z.ZodString;
4271
+ public_policy_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4272
+ }, z.core.$strip>>>;
4273
+ payment_options: z.ZodArray<z.ZodObject<{
4274
+ id: z.ZodString;
4275
+ rank: z.ZodNumber;
4276
+ method_kind: z.ZodEnum<{
4277
+ readonly CARD: "card";
4278
+ readonly MOBILE_MONEY: "mobile_money";
4279
+ readonly OFFLINE: "offline";
4280
+ }>;
4281
+ collection_mode: z.ZodEnum<{
4282
+ readonly REQUEST_TO_PAY: "request_to_pay";
4283
+ readonly MANDATE_DEBIT: "mandate_debit";
4284
+ readonly CREDENTIAL_CHARGE: "credential_charge";
4285
+ readonly OFFLINE_TENDER: "offline_tender";
4286
+ }>;
4287
+ provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
4288
+ readonly STRIPE: "stripe";
4289
+ readonly PAYSTACK: "paystack";
4290
+ readonly CELLULANT: "cellulant";
4291
+ readonly MTN_MOMO: "mtn_momo";
4292
+ }>>>;
4293
+ instrument: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
4294
+ kind: z.ZodLiteral<"card">;
4295
+ brand: z.ZodString;
4296
+ last4: z.ZodString;
4297
+ exp_month: z.ZodNumber;
4298
+ exp_year: z.ZodNumber;
4299
+ }, z.core.$strip>, z.ZodObject<{
4300
+ kind: z.ZodLiteral<"mobile_money">;
4301
+ network: z.ZodString;
4302
+ masked_number: z.ZodString;
4303
+ }, z.core.$strip>, z.ZodObject<{
4304
+ kind: z.ZodLiteral<"erased">;
4305
+ }, z.core.$strip>], "kind">>>;
4306
+ principal_amount: z.ZodString;
4307
+ fee_amount: z.ZodString;
4308
+ customer_debit_amount: z.ZodString;
4309
+ currency: z.ZodString;
4310
+ protection: z.ZodObject<{
4311
+ status: z.ZodEnum<{
4312
+ readonly PROTECTED: "protected";
4313
+ readonly UNAVAILABLE: "unavailable";
4314
+ }>;
4315
+ message: z.ZodString;
4316
+ public_policy_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4317
+ }, z.core.$strip>;
4318
+ status: z.ZodEnum<{
4319
+ readonly ELIGIBLE: "eligible";
4320
+ readonly INELIGIBLE: "ineligible";
4321
+ readonly EXPIRED: "expired";
4322
+ }>;
4323
+ expected_next_action: z.ZodEnum<{
4324
+ readonly NONE: "none";
4325
+ readonly PROVIDER_APPROVAL: "provider_approval";
4326
+ readonly STEP_UP: "step_up";
4327
+ }>;
4328
+ expires_at: z.ZodISODateTime;
4329
+ }, z.core.$strip>>;
4330
+ valid_until: z.ZodISODateTime;
4331
+ created_at: z.ZodISODateTime;
4332
+ }, z.core.$strict>>>;
4333
+ converted_order_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4334
+ expires_at: z.ZodISODateTime;
4335
+ created_at: z.ZodISODateTime;
4336
+ updated_at: z.ZodISODateTime;
4337
+ }, z.core.$strict>;
4338
+ readonly CheckoutTermsView: z.ZodObject<{
4339
+ id: z.ZodString;
4340
+ intent_revision: z.ZodNumber;
4341
+ terms_version: z.ZodNumber;
4342
+ terms_digest: z.ZodString;
4343
+ money: z.ZodObject<{
4344
+ currency: z.ZodString;
4345
+ subtotal: z.ZodString;
4346
+ discount_total: z.ZodString;
4347
+ tax_total: z.ZodString;
4348
+ delivery_total: z.ZodString;
4349
+ statutory_total: z.ZodString;
4350
+ total_obligation: z.ZodString;
4351
+ due_now: z.ZodString;
4352
+ rail_amount: z.ZodString;
4353
+ store_credit_consumed: z.ZodString;
4354
+ voucher_credit_consumed: z.ZodString;
4355
+ }, z.core.$strip>;
4356
+ material: z.ZodObject<{
4357
+ line_digest: z.ZodString;
4358
+ destination_digest: z.ZodString;
4359
+ delivery_promise_digest: z.ZodString;
4360
+ entitlement_digest: z.ZodString;
4361
+ cancellation_terms_digest: z.ZodString;
4362
+ }, z.core.$strip>;
4363
+ compliance: z.ZodObject<{
4364
+ disposition: z.ZodOptional<z.ZodEnum<{
4365
+ readonly EXECUTE: "execute";
4366
+ readonly STORE_PURCHASE: "store_purchase";
4367
+ readonly LINK_OUT: "link_out";
4368
+ readonly LOCKED: "locked";
4369
+ }>>;
4370
+ purchase_policy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4371
+ policy_version: z.ZodNumber;
4372
+ surface: z.ZodEnum<{
4373
+ readonly NATIVE_IOS: "native_ios";
4374
+ readonly NATIVE_ANDROID: "native_android";
4375
+ readonly WEB: "web";
4376
+ }>;
4377
+ market_region: z.ZodString;
4378
+ store_region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4379
+ }, z.core.$strip>>>;
4380
+ policy_name: z.ZodString;
4381
+ policy_version: z.ZodNumber;
4382
+ lane: z.ZodEnum<{
4383
+ readonly COMMERCE_CORE: "commerce_core";
4384
+ readonly NATIVE: "native";
4385
+ readonly STORE_KIT: "store_kit";
4386
+ readonly PERMITTED_EXTERNAL: "permitted_external";
4387
+ readonly BROWSE_ONLY: "browse_only";
4388
+ }>;
4389
+ reason_code: z.ZodEnum<{
4390
+ readonly COMMERCE_CORE: "commerce_core";
4391
+ readonly PHYSICAL_GOODS_NATIVE: "physical_goods_native";
4392
+ readonly PHYSICAL_WORLD_COMMERCE_NATIVE: "physical_world_commerce_native";
4393
+ readonly STORE_KIT_REQUIRED: "store_kit_required";
4394
+ readonly PERMITTED_EXTERNAL_PURCHASE: "permitted_external_purchase";
4395
+ readonly DISTRIBUTION_AUTHORITY_UNVERIFIED: "distribution_authority_unverified";
4396
+ readonly PRODUCT_POLICY_UNRESOLVED: "product_policy_unresolved";
4397
+ readonly MIXED_LANE_UNSUPPORTED: "mixed_lane_unsupported";
4398
+ readonly EXTERNAL_DIGITAL_NATIVE: "external_digital_native";
4399
+ readonly MIXED_FACTS_NATIVE: "mixed_facts_native";
4400
+ readonly UNRESOLVED_FACTS_NATIVE: "unresolved_facts_native";
4401
+ }>;
4402
+ evidence_digest: z.ZodString;
4403
+ }, z.core.$strip>;
4404
+ protection: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4405
+ status: z.ZodEnum<{
4406
+ readonly PROTECTED: "protected";
4407
+ readonly UNAVAILABLE: "unavailable";
4408
+ }>;
4409
+ message: z.ZodString;
4410
+ public_policy_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4411
+ }, z.core.$strip>>>;
4412
+ payment_options: z.ZodArray<z.ZodObject<{
4413
+ id: z.ZodString;
4414
+ rank: z.ZodNumber;
4415
+ method_kind: z.ZodEnum<{
4416
+ readonly CARD: "card";
4417
+ readonly MOBILE_MONEY: "mobile_money";
4418
+ readonly OFFLINE: "offline";
4419
+ }>;
4420
+ collection_mode: z.ZodEnum<{
4421
+ readonly REQUEST_TO_PAY: "request_to_pay";
4422
+ readonly MANDATE_DEBIT: "mandate_debit";
4423
+ readonly CREDENTIAL_CHARGE: "credential_charge";
4424
+ readonly OFFLINE_TENDER: "offline_tender";
4425
+ }>;
4426
+ provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
4427
+ readonly STRIPE: "stripe";
4428
+ readonly PAYSTACK: "paystack";
4429
+ readonly CELLULANT: "cellulant";
4430
+ readonly MTN_MOMO: "mtn_momo";
4431
+ }>>>;
4432
+ instrument: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
4433
+ kind: z.ZodLiteral<"card">;
4434
+ brand: z.ZodString;
4435
+ last4: z.ZodString;
4436
+ exp_month: z.ZodNumber;
4437
+ exp_year: z.ZodNumber;
4438
+ }, z.core.$strip>, z.ZodObject<{
4439
+ kind: z.ZodLiteral<"mobile_money">;
4440
+ network: z.ZodString;
4441
+ masked_number: z.ZodString;
4442
+ }, z.core.$strip>, z.ZodObject<{
4443
+ kind: z.ZodLiteral<"erased">;
4444
+ }, z.core.$strip>], "kind">>>;
4445
+ principal_amount: z.ZodString;
4446
+ fee_amount: z.ZodString;
4447
+ customer_debit_amount: z.ZodString;
4448
+ currency: z.ZodString;
4449
+ protection: z.ZodObject<{
4450
+ status: z.ZodEnum<{
4451
+ readonly PROTECTED: "protected";
4452
+ readonly UNAVAILABLE: "unavailable";
4453
+ }>;
4454
+ message: z.ZodString;
4455
+ public_policy_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4456
+ }, z.core.$strip>;
4457
+ status: z.ZodEnum<{
4458
+ readonly ELIGIBLE: "eligible";
4459
+ readonly INELIGIBLE: "ineligible";
4460
+ readonly EXPIRED: "expired";
4461
+ }>;
4462
+ expected_next_action: z.ZodEnum<{
4463
+ readonly NONE: "none";
4464
+ readonly PROVIDER_APPROVAL: "provider_approval";
4465
+ readonly STEP_UP: "step_up";
4466
+ }>;
4467
+ expires_at: z.ZodISODateTime;
4468
+ }, z.core.$strip>>;
4469
+ valid_until: z.ZodISODateTime;
4470
+ created_at: z.ZodISODateTime;
4471
+ }, z.core.$strict>;
4472
+ readonly ConfirmPurchaseIntentRequest: z.ZodObject<{
4473
+ accepted_intent_revision: z.ZodNumber;
4474
+ accepted_terms_version: z.ZodNumber;
4475
+ accepted_due_now: z.ZodString;
4476
+ accepted_customer_debit_amount: z.ZodString;
4477
+ currency: z.ZodString;
4478
+ payment_option_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4479
+ idempotency_key: z.ZodString;
4480
+ }, z.core.$strict>;
4481
+ readonly PreparePurchaseIntentRequest: z.ZodObject<{
4482
+ expected_intent_revision: z.ZodNumber;
4483
+ idempotency_key: z.ZodString;
4484
+ checkout: z.ZodObject<{
4485
+ customer: z.ZodObject<{
4486
+ name: z.ZodString;
4487
+ email: z.ZodString;
4488
+ phone: z.ZodString;
4489
+ notes: z.ZodOptional<z.ZodString>;
4490
+ save_details: z.ZodOptional<z.ZodBoolean>;
4491
+ }, z.core.$strip>;
4492
+ order_type: z.ZodString;
4493
+ address_info: z.ZodObject<{
4494
+ street_address: z.ZodOptional<z.ZodString>;
4495
+ apartment: z.ZodOptional<z.ZodString>;
4496
+ city: z.ZodOptional<z.ZodString>;
4497
+ region: z.ZodOptional<z.ZodString>;
4498
+ postal_code: z.ZodOptional<z.ZodString>;
4499
+ country: z.ZodOptional<z.ZodString>;
4500
+ delivery_instructions: z.ZodOptional<z.ZodString>;
4501
+ phone_for_delivery: z.ZodOptional<z.ZodString>;
4502
+ latitude: z.ZodOptional<z.ZodNumber>;
4503
+ longitude: z.ZodOptional<z.ZodNumber>;
4504
+ pickup_time: z.ZodOptional<z.ZodString>;
4505
+ guest_count: z.ZodOptional<z.ZodNumber>;
4506
+ seating_time: z.ZodOptional<z.ZodString>;
4507
+ seating_requests: z.ZodOptional<z.ZodString>;
4508
+ }, z.core.$strip>;
4509
+ location_id: z.ZodOptional<z.ZodString>;
4510
+ delivery_rate_id: z.ZodOptional<z.ZodString>;
4511
+ special_instructions: z.ZodOptional<z.ZodString>;
4512
+ link_address_id: z.ZodOptional<z.ZodString>;
4513
+ link_payment_method_id: z.ZodOptional<z.ZodString>;
4514
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4515
+ pay_currency: z.ZodOptional<z.ZodString>;
4516
+ fx_quote_id: z.ZodOptional<z.ZodString>;
4517
+ use_store_credit: z.ZodOptional<z.ZodBoolean>;
4518
+ voucher_code: z.ZodOptional<z.ZodString>;
4519
+ pay_deposit: z.ZodOptional<z.ZodBoolean>;
4520
+ tender_preference: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4521
+ method_kind: z.ZodLiteral<"card">;
4522
+ stored_instrument_id: z.ZodOptional<z.ZodString>;
4523
+ }, z.core.$strict>, z.ZodObject<{
4524
+ method_kind: z.ZodLiteral<"mobile_money">;
4525
+ authority: z.ZodDiscriminatedUnion<[z.ZodObject<{
4526
+ authority_kind: z.ZodLiteral<"transient">;
4527
+ phone_number: z.ZodString;
4528
+ network: z.ZodEnum<{
4529
+ readonly MTN: "mtn";
4530
+ readonly TELECEL: "telecel";
4531
+ readonly AIRTEL: "airtel";
4532
+ }>;
4533
+ }, z.core.$strict>, z.ZodObject<{
4534
+ authority_kind: z.ZodLiteral<"saved_reference">;
4535
+ stored_instrument_id: z.ZodString;
4536
+ }, z.core.$strict>], "authority_kind">;
4537
+ }, z.core.$strict>], "method_kind">>;
4538
+ }, z.core.$strip>;
4539
+ }, z.core.$strict>;
4540
+ readonly SubmitPurchaseIntentActionRequest: z.ZodObject<{
4541
+ authorization: z.ZodDiscriminatedUnion<[z.ZodObject<{
4542
+ type: z.ZodLiteral<"otp">;
4543
+ value: z.ZodString;
4544
+ }, z.core.$strict>, z.ZodObject<{
4545
+ type: z.ZodLiteral<"pin">;
4546
+ value: z.ZodString;
4547
+ }, z.core.$strict>, z.ZodObject<{
4548
+ type: z.ZodLiteral<"phone">;
4549
+ value: z.ZodString;
4550
+ }, z.core.$strict>, z.ZodObject<{
4551
+ type: z.ZodLiteral<"birthday">;
4552
+ value: z.ZodString;
4553
+ }, z.core.$strict>, z.ZodObject<{
4554
+ type: z.ZodLiteral<"address">;
4555
+ address: z.ZodString;
4556
+ city: z.ZodString;
4557
+ state: z.ZodString;
4558
+ zip_code: z.ZodString;
4559
+ }, z.core.$strict>], "type">;
4560
+ }, z.core.$strict>;
4561
+ readonly ConfirmPurchaseIntentResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
4562
+ intent_id: z.ZodString;
4563
+ attempt_id: z.ZodString;
4564
+ order_id: z.ZodString;
4565
+ order_number: z.ZodOptional<z.ZodString>;
4566
+ payment_id: z.ZodOptional<z.ZodString>;
4567
+ status: z.ZodLiteral<"order_created">;
4568
+ }, z.core.$loose>, z.ZodObject<{
4569
+ intent_id: z.ZodString;
4570
+ attempt_id: z.ZodString;
4571
+ order_id: z.ZodString;
4572
+ order_number: z.ZodOptional<z.ZodString>;
4573
+ payment_id: z.ZodOptional<z.ZodString>;
4574
+ status: z.ZodLiteral<"collection_processing">;
4575
+ }, z.core.$loose>, z.ZodObject<{
4576
+ intent_id: z.ZodString;
4577
+ attempt_id: z.ZodString;
4578
+ order_id: z.ZodString;
4579
+ order_number: z.ZodOptional<z.ZodString>;
4580
+ payment_id: z.ZodOptional<z.ZodString>;
4581
+ status: z.ZodLiteral<"payment_outcome_unknown">;
4582
+ }, z.core.$loose>, z.ZodObject<{
4583
+ intent_id: z.ZodString;
4584
+ attempt_id: z.ZodString;
4585
+ order_id: z.ZodString;
4586
+ order_number: z.ZodOptional<z.ZodString>;
4587
+ payment_id: z.ZodOptional<z.ZodString>;
4588
+ status: z.ZodLiteral<"payment_failed">;
4589
+ }, z.core.$loose>, z.ZodObject<{
4590
+ authorization_url: z.ZodString;
4591
+ intent_id: z.ZodString;
4592
+ attempt_id: z.ZodString;
4593
+ order_id: z.ZodString;
4594
+ order_number: z.ZodOptional<z.ZodString>;
4595
+ payment_id: z.ZodOptional<z.ZodString>;
4596
+ status: z.ZodLiteral<"redirect_required">;
4597
+ }, z.core.$loose>, z.ZodObject<{
4598
+ provider: z.ZodEnum<{
4599
+ readonly STRIPE: "stripe";
4600
+ readonly PAYSTACK: "paystack";
4601
+ readonly CELLULANT: "cellulant";
4602
+ readonly MTN_MOMO: "mtn_momo";
4603
+ }>;
4604
+ client_secret: z.ZodString;
4605
+ public_key: z.ZodString;
4606
+ provider_account_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4607
+ intent_id: z.ZodString;
4608
+ attempt_id: z.ZodString;
4609
+ order_id: z.ZodString;
4610
+ order_number: z.ZodOptional<z.ZodString>;
4611
+ payment_id: z.ZodOptional<z.ZodString>;
4612
+ status: z.ZodLiteral<"card_popup_required">;
4613
+ }, z.core.$loose>, z.ZodObject<{
4614
+ authorization_type: z.ZodUnion<readonly [z.ZodEnum<{
4615
+ phone: "phone";
4616
+ otp: "otp";
4617
+ pin: "pin";
4618
+ birthday: "birthday";
4619
+ }>, z.ZodObject<{
4620
+ address: z.ZodObject<{
4621
+ address: z.ZodString;
4622
+ city: z.ZodString;
4623
+ state: z.ZodString;
4624
+ zip_code: z.ZodString;
4625
+ }, z.core.$strip>;
4626
+ }, z.core.$strip>]>;
4627
+ display_text: z.ZodOptional<z.ZodString>;
4628
+ intent_id: z.ZodString;
4629
+ attempt_id: z.ZodString;
4630
+ order_id: z.ZodString;
4631
+ order_number: z.ZodOptional<z.ZodString>;
4632
+ payment_id: z.ZodOptional<z.ZodString>;
4633
+ status: z.ZodLiteral<"authorization_required">;
4634
+ }, z.core.$loose>, z.ZodObject<{
4635
+ status: z.ZodLiteral<"terms_changed">;
4636
+ intent_id: z.ZodString;
4637
+ replacement: z.ZodObject<{
4638
+ id: z.ZodString;
4639
+ intent_revision: z.ZodNumber;
4640
+ terms_version: z.ZodNumber;
4641
+ terms_digest: z.ZodString;
4642
+ money: z.ZodObject<{
4643
+ currency: z.ZodString;
4644
+ subtotal: z.ZodString;
4645
+ discount_total: z.ZodString;
4646
+ tax_total: z.ZodString;
4647
+ delivery_total: z.ZodString;
4648
+ statutory_total: z.ZodString;
4649
+ total_obligation: z.ZodString;
4650
+ due_now: z.ZodString;
4651
+ rail_amount: z.ZodString;
4652
+ store_credit_consumed: z.ZodString;
4653
+ voucher_credit_consumed: z.ZodString;
4654
+ }, z.core.$strip>;
4655
+ material: z.ZodObject<{
4656
+ line_digest: z.ZodString;
4657
+ destination_digest: z.ZodString;
4658
+ delivery_promise_digest: z.ZodString;
4659
+ entitlement_digest: z.ZodString;
4660
+ cancellation_terms_digest: z.ZodString;
4661
+ }, z.core.$strip>;
4662
+ compliance: z.ZodObject<{
4663
+ disposition: z.ZodOptional<z.ZodEnum<{
4664
+ readonly EXECUTE: "execute";
4665
+ readonly STORE_PURCHASE: "store_purchase";
4666
+ readonly LINK_OUT: "link_out";
4667
+ readonly LOCKED: "locked";
4668
+ }>>;
4669
+ purchase_policy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4670
+ policy_version: z.ZodNumber;
4671
+ surface: z.ZodEnum<{
4672
+ readonly NATIVE_IOS: "native_ios";
4673
+ readonly NATIVE_ANDROID: "native_android";
4674
+ readonly WEB: "web";
4675
+ }>;
4676
+ market_region: z.ZodString;
4677
+ store_region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4678
+ }, z.core.$strip>>>;
4679
+ policy_name: z.ZodString;
4680
+ policy_version: z.ZodNumber;
4681
+ lane: z.ZodEnum<{
4682
+ readonly COMMERCE_CORE: "commerce_core";
4683
+ readonly NATIVE: "native";
4684
+ readonly STORE_KIT: "store_kit";
4685
+ readonly PERMITTED_EXTERNAL: "permitted_external";
4686
+ readonly BROWSE_ONLY: "browse_only";
4687
+ }>;
4688
+ reason_code: z.ZodEnum<{
4689
+ readonly COMMERCE_CORE: "commerce_core";
4690
+ readonly PHYSICAL_GOODS_NATIVE: "physical_goods_native";
4691
+ readonly PHYSICAL_WORLD_COMMERCE_NATIVE: "physical_world_commerce_native";
4692
+ readonly STORE_KIT_REQUIRED: "store_kit_required";
4693
+ readonly PERMITTED_EXTERNAL_PURCHASE: "permitted_external_purchase";
4694
+ readonly DISTRIBUTION_AUTHORITY_UNVERIFIED: "distribution_authority_unverified";
4695
+ readonly PRODUCT_POLICY_UNRESOLVED: "product_policy_unresolved";
4696
+ readonly MIXED_LANE_UNSUPPORTED: "mixed_lane_unsupported";
4697
+ readonly EXTERNAL_DIGITAL_NATIVE: "external_digital_native";
4698
+ readonly MIXED_FACTS_NATIVE: "mixed_facts_native";
4699
+ readonly UNRESOLVED_FACTS_NATIVE: "unresolved_facts_native";
4700
+ }>;
4701
+ evidence_digest: z.ZodString;
4702
+ }, z.core.$strip>;
4703
+ protection: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4704
+ status: z.ZodEnum<{
4705
+ readonly PROTECTED: "protected";
4706
+ readonly UNAVAILABLE: "unavailable";
4707
+ }>;
4708
+ message: z.ZodString;
4709
+ public_policy_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4710
+ }, z.core.$strip>>>;
4711
+ payment_options: z.ZodArray<z.ZodObject<{
4712
+ id: z.ZodString;
4713
+ rank: z.ZodNumber;
4714
+ method_kind: z.ZodEnum<{
4715
+ readonly CARD: "card";
4716
+ readonly MOBILE_MONEY: "mobile_money";
4717
+ readonly OFFLINE: "offline";
4718
+ }>;
4719
+ collection_mode: z.ZodEnum<{
4720
+ readonly REQUEST_TO_PAY: "request_to_pay";
4721
+ readonly MANDATE_DEBIT: "mandate_debit";
4722
+ readonly CREDENTIAL_CHARGE: "credential_charge";
4723
+ readonly OFFLINE_TENDER: "offline_tender";
4724
+ }>;
4725
+ provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
4726
+ readonly STRIPE: "stripe";
4727
+ readonly PAYSTACK: "paystack";
4728
+ readonly CELLULANT: "cellulant";
4729
+ readonly MTN_MOMO: "mtn_momo";
4730
+ }>>>;
4731
+ instrument: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
4732
+ kind: z.ZodLiteral<"card">;
4733
+ brand: z.ZodString;
4734
+ last4: z.ZodString;
4735
+ exp_month: z.ZodNumber;
4736
+ exp_year: z.ZodNumber;
4737
+ }, z.core.$strip>, z.ZodObject<{
4738
+ kind: z.ZodLiteral<"mobile_money">;
4739
+ network: z.ZodString;
4740
+ masked_number: z.ZodString;
4741
+ }, z.core.$strip>, z.ZodObject<{
4742
+ kind: z.ZodLiteral<"erased">;
4743
+ }, z.core.$strip>], "kind">>>;
4744
+ principal_amount: z.ZodString;
4745
+ fee_amount: z.ZodString;
4746
+ customer_debit_amount: z.ZodString;
4747
+ currency: z.ZodString;
4748
+ protection: z.ZodObject<{
4749
+ status: z.ZodEnum<{
4750
+ readonly PROTECTED: "protected";
4751
+ readonly UNAVAILABLE: "unavailable";
4752
+ }>;
4753
+ message: z.ZodString;
4754
+ public_policy_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4755
+ }, z.core.$strip>;
4756
+ status: z.ZodEnum<{
4757
+ readonly ELIGIBLE: "eligible";
4758
+ readonly INELIGIBLE: "ineligible";
4759
+ readonly EXPIRED: "expired";
4760
+ }>;
4761
+ expected_next_action: z.ZodEnum<{
4762
+ readonly NONE: "none";
4763
+ readonly PROVIDER_APPROVAL: "provider_approval";
4764
+ readonly STEP_UP: "step_up";
4765
+ }>;
4766
+ expires_at: z.ZodISODateTime;
4767
+ }, z.core.$strip>>;
4768
+ valid_until: z.ZodISODateTime;
4769
+ created_at: z.ZodISODateTime;
4770
+ }, z.core.$strict>;
4771
+ deltas: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4772
+ kind: z.ZodLiteral<"money">;
4773
+ component: z.ZodEnum<{
4774
+ readonly SUBTOTAL: "subtotal";
4775
+ readonly DISCOUNT_TOTAL: "discount_total";
4776
+ readonly TAX_TOTAL: "tax_total";
4777
+ readonly DELIVERY_TOTAL: "delivery_total";
4778
+ readonly STATUTORY_TOTAL: "statutory_total";
4779
+ readonly TOTAL_OBLIGATION: "total_obligation";
4780
+ readonly DUE_NOW: "due_now";
4781
+ readonly RAIL_AMOUNT: "rail_amount";
4782
+ readonly STORE_CREDIT_CONSUMED: "store_credit_consumed";
4783
+ readonly VOUCHER_CREDIT_CONSUMED: "voucher_credit_consumed";
4784
+ }>;
4785
+ accepted: z.ZodString;
4786
+ replacement: z.ZodString;
4787
+ }, z.core.$strip>, z.ZodObject<{
4788
+ kind: z.ZodLiteral<"material">;
4789
+ component: z.ZodEnum<{
4790
+ readonly LINES: "lines";
4791
+ readonly DESTINATION: "destination";
4792
+ readonly DELIVERY_PROMISE: "delivery_promise";
4793
+ readonly ENTITLEMENT: "entitlement";
4794
+ readonly CANCELLATION_TERMS: "cancellation_terms";
4795
+ readonly COMPLIANCE: "compliance";
4796
+ readonly CURRENCY: "currency";
4797
+ }>;
4798
+ }, z.core.$strip>, z.ZodObject<{
4799
+ kind: z.ZodLiteral<"payment_option">;
4800
+ accepted_option_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4801
+ accepted_customer_debit_amount: z.ZodString;
4802
+ replacement_option_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4803
+ replacement_customer_debit_amount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4804
+ }, z.core.$strip>], "kind">>;
4805
+ }, z.core.$loose>, z.ZodObject<{
4806
+ status: z.ZodLiteral<"selection_unavailable">;
4807
+ intent_id: z.ZodString;
4808
+ lines: z.ZodArray<z.ZodObject<{
4809
+ line_id: z.ZodString;
4810
+ reason: z.ZodEnum<{
4811
+ readonly SOURCE_UNAVAILABLE: "source_unavailable";
4812
+ readonly OFFER_ENDED: "offer_ended";
4813
+ readonly OFFER_CHANGED: "offer_changed";
4814
+ readonly SELLABLE_UNAVAILABLE: "sellable_unavailable";
4815
+ readonly COMPLIANCE_CHANGED: "compliance_changed";
4816
+ readonly PAYMENT_OPTION_CHANGED: "payment_option_changed";
4817
+ }>;
4818
+ }, z.core.$strip>>;
4819
+ }, z.core.$loose>, z.ZodObject<{
4820
+ status: z.ZodLiteral<"offer_ended">;
4821
+ intent_id: z.ZodString;
4822
+ }, z.core.$loose>, z.ZodObject<{
4823
+ status: z.ZodLiteral<"source_unavailable">;
4824
+ intent_id: z.ZodString;
4825
+ }, z.core.$loose>], "status">;
2362
4826
  };
2363
4827
  type PublicSchemaName = keyof typeof PUBLIC_SCHEMAS;
2364
4828
  /**
@@ -2377,4 +4841,4 @@ declare function listRegisteredSchemas(): Array<{
2377
4841
  meta: CimplifySchemaMeta;
2378
4842
  }>;
2379
4843
 
2380
- export { type AddItemPayload, AddItemPayloadSchema, AddOnDetailsSchema, AddOnGroupDetailsSchema, AddOnInDetailsSchema, AddOnOptionDetailsSchema, AuthorizationTypeSchema, type Brand, BrandContactSchema, BrandFaqSchema, BrandHeroSchema, BrandNavLinkSchema, BrandPolicyPageSchema, BrandPolicySectionSchema, BrandSchema, BrandSocialSchema, BundleResolvedSchema, BundleSelectionInputSchema, type Cart, type CartItem, CartItemSchema, CartPricingSchema, CartSchema, type CheckoutBody, CheckoutBodySchema, CheckoutCustomerSchema, type CheckoutResponse, CheckoutResponseSchema, ChosenPriceSchema, type CimplifySchemaMeta, CompositeResolvedSchema, CompositeSelectionInputSchema, CountryCodeSchema, CurrencyCodeSchema, CustomerInputValueSchema, DiscountDetailsSchema, IsoDateTimeSchema, LineTypeSchema, LocaleSchema, MoneyLooseSchema, MoneySchema, NextActionSchema, PhoneE164Schema, ProductTypeSchema, type PublicSchemaName, RequestOtpResponseSchema, SchemaViolationError, SeedNameSchema, SelectedAddOnOptionSchema, ServiceStatusSchema, TaxPriceDisplayModeSchema, TimestampSchema, VariantDetailsSchema, VariantDisplayAttributeSchema, VariantInfoSchema, VerifyOtpRequestSchema, assertAddItemPayload, assertBrand, assertCart, assertCartItem, assertCheckoutBody, assertCheckoutResponse, cimplifyRegistry, exportJsonSchemas, listRegisteredSchemas, makeAssertion, registerSchema };
4844
+ export { type AddItemPayload, AddItemPayloadSchema, AddOnDetailsSchema, AddOnGroupDetailsSchema, AddOnInDetailsSchema, AddOnOptionDetailsSchema, AuthorizationTypeSchema, type Brand, BrandContactSchema, BrandFaqSchema, BrandHeroSchema, BrandNavLinkSchema, BrandPolicyPageSchema, BrandPolicySectionSchema, BrandSchema, BrandSocialSchema, BundleResolvedSchema, BundleSelectionInputSchema, type Cart, type CartItem, CartItemSchema, CartPricingSchema, CartSchema, type CheckoutBody, CheckoutBodySchema, CheckoutCustomerSchema, type CheckoutResponse, CheckoutResponseSchema, type CheckoutTermsView, CheckoutTermsViewSchema, ChosenPriceSchema, type CimplifySchemaMeta, CompositeResolvedSchema, CompositeSelectionInputSchema, type ConfirmPurchaseIntentRequest, ConfirmPurchaseIntentRequestSchema, type ConfirmPurchaseIntentResponse, ConfirmPurchaseIntentResponseSchema, CountryCodeSchema, CurrencyCodeSchema, CustomerInputValueSchema, DiscountDetailsSchema, IsoDateTimeSchema, LineTypeSchema, LocaleSchema, type MintPurchaseIntentRequest, MintPurchaseIntentRequestSchema, MoneyLooseSchema, MoneySchema, NextActionSchema, PhoneE164Schema, type PreparePurchaseIntentRequest, PreparePurchaseIntentRequestSchema, ProductTypeSchema, type PublicSchemaName, PurchaseIntentSourceInputSchema, PurchaseIntentTenderPreferenceSchema, type PurchaseIntentView, PurchaseIntentViewSchema, RequestOtpResponseSchema, SchemaViolationError, SeedNameSchema, SelectedAddOnOptionSchema, ServiceStatusSchema, type SubmitPurchaseIntentActionRequest, SubmitPurchaseIntentActionRequestSchema, TaxPriceDisplayModeSchema, TimestampSchema, VariantDetailsSchema, VariantDisplayAttributeSchema, VariantInfoSchema, VerifyOtpRequestSchema, assertAddItemPayload, assertBrand, assertCart, assertCartItem, assertCheckoutBody, assertCheckoutResponse, assertCheckoutTermsView, assertConfirmPurchaseIntentRequest, assertConfirmPurchaseIntentResponse, assertMintPurchaseIntentRequest, assertPreparePurchaseIntentRequest, assertPurchaseIntentView, assertSubmitPurchaseIntentActionRequest, cimplifyRegistry, exportJsonSchemas, listRegisteredSchemas, makeAssertion, registerSchema };