@amos.com/node 0.1.11 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1241,8 +1241,7 @@ interface components {
1241
1241
  wallet_brand?: string;
1242
1242
  wallet_last4?: string;
1243
1243
  wallet_payload?: string;
1244
- /** @enum {string|null} */
1245
- wallet_provider?: "googlepay" | "applepay" | null;
1244
+ wallet_provider?: components["schemas"]["WalletProviderType"];
1246
1245
  };
1247
1246
  CardProfile: {
1248
1247
  avs_check?: string;
@@ -1259,8 +1258,7 @@ interface components {
1259
1258
  state?: string;
1260
1259
  three_d_secure_supported?: boolean | null;
1261
1260
  token?: string;
1262
- /** @enum {string|null} */
1263
- wallet_provider?: "googlepay" | "applepay" | null;
1261
+ wallet_provider?: components["schemas"]["WalletProviderType"];
1264
1262
  /** Format: date-time */
1265
1263
  created_at?: string;
1266
1264
  /** Format: date-time */
@@ -1310,8 +1308,7 @@ interface components {
1310
1308
  /** Format: uuid */
1311
1309
  payment_method_id?: string;
1312
1310
  platform_fee?: number;
1313
- /** @enum {string} */
1314
- source?: "api" | "dashboard" | "iframe" | "system" | "subscription";
1311
+ source?: components["schemas"]["TransactionSourceType"];
1315
1312
  /** @enum {string} */
1316
1313
  state?: "cancelled" | "errored" | "failed" | "processing" | "requires_capture" | "requires_confirmation" | "requires_review" | "succeeded";
1317
1314
  statement_descriptor?: string;
@@ -1432,8 +1429,7 @@ interface components {
1432
1429
  CreateLegalEntityApplicationDocumentInput: {
1433
1430
  /** Format: uuid */
1434
1431
  legal_entity_application_id?: string;
1435
- /** @enum {string} */
1436
- document_type?: "irs_cp_575";
1432
+ document_type?: components["schemas"]["LegalEntityDocumentType"];
1437
1433
  /** Format: uuid */
1438
1434
  file_upload_id?: string;
1439
1435
  };
@@ -1445,8 +1441,7 @@ interface components {
1445
1441
  id?: string;
1446
1442
  /** Format: uuid */
1447
1443
  legal_entity_application_id?: string;
1448
- /** @enum {string} */
1449
- document_type?: "irs_cp_575";
1444
+ document_type?: components["schemas"]["LegalEntityDocumentType"];
1450
1445
  /** Format: uuid */
1451
1446
  file_upload_id?: string;
1452
1447
  };
@@ -1510,10 +1505,38 @@ interface components {
1510
1505
  contact_phone?: string;
1511
1506
  tax_id_last4?: string;
1512
1507
  };
1508
+ /** @enum {string} */
1509
+ LegalEntityEntityType: "individual_sole_proprietorship" | "corporation" | "limited_liability_company" | "partnership" | "limited_partnership" | "general_partnership" | "tax_exempt_organization" | "government_agency";
1510
+ /** @enum {string} */
1511
+ LegalEntityOwnershipType: "public" | "private";
1512
+ /** @enum {string} */
1513
+ LegalEntityDocumentType: "irs_cp_575";
1514
+ /** @enum {string} */
1515
+ MerchantBusinessCategoryType: "business_association" | "charity" | "church" | "county" | "federal" | "fraternal_org" | "government" | "higher_education" | "k12" | "labor_union" | "local" | "ministry" | "pac" | "parachurch" | "party" | "preschool" | "social_club" | "social_welfare" | "state" | "tribal" | "vendor" | "veterans_org";
1516
+ /** @enum {string} */
1517
+ PaymentLinkAmountType: "fixed" | "open";
1518
+ /** @enum {string} */
1519
+ PaymentMethodType: "card" | "bank_account";
1520
+ /** @enum {string} */
1521
+ PayoutDirectionType: "credit" | "debit";
1522
+ /** @enum {string} */
1523
+ PayoutStateType: "pending" | "succeeded" | "failed" | "accepted" | "rejected";
1524
+ /** @enum {string} */
1525
+ RefundStateType: "pending" | "processing" | "requires_review" | "succeeded" | "cancelled" | "failed";
1526
+ /** @enum {string} */
1527
+ SubscriptionIntervalType: "day" | "week" | "month" | "year";
1528
+ /** @enum {string} */
1529
+ SubscriptionPlanType: "fixed" | "variable";
1530
+ /** @enum {string} */
1531
+ TransactionSourceType: "api" | "dashboard" | "iframe" | "system" | "subscription";
1532
+ /** @enum {string} */
1533
+ WalletProviderType: "googlepay" | "applepay";
1534
+ /** @enum {string} */
1535
+ WebhookEventType: "charge.cancelled" | "charge.created" | "charge.errored" | "charge.failed" | "charge.processing" | "charge.requires_capture" | "charge.requires_confirmation" | "charge.requires_review" | "charge.succeeded" | "customer.created" | "customer.updated" | "legal_entity.created" | "legal_entity.updated" | "legal_entity_principal.created" | "legal_entity_principal.updated" | "merchant.created" | "merchant.updated" | "payment_intent.cancelled" | "payment_intent.created" | "payment_intent.errored_authorization" | "payment_intent.errored_capture" | "payment_intent.errored_sale" | "payment_intent.processing_authorization" | "payment_intent.processing_capture" | "payment_intent.processing_sale" | "payment_intent.requires_capture" | "payment_intent.requires_confirmation" | "payment_intent.requires_payment_method" | "payment_intent.requires_review" | "payment_intent.succeeded" | "processor_transaction.completed" | "reconciliation.created" | "refund.cancelled" | "refund.created" | "refund.failed" | "refund.pending" | "refund.processing" | "refund.requires_review" | "refund.succeeded" | "void.created" | "void.failed" | "void.pending" | "void.processing" | "void.requires_review" | "void.succeeded";
1513
1536
  CreateLegalEntityApplicationInput: {
1514
1537
  legal_name?: string;
1515
- entity_type?: string;
1516
- ownership_type?: string;
1538
+ entity_type?: components["schemas"]["LegalEntityEntityType"];
1539
+ ownership_type?: components["schemas"]["LegalEntityOwnershipType"];
1517
1540
  tax_id?: string;
1518
1541
  contact_email?: string;
1519
1542
  contact_phone?: string;
@@ -1543,8 +1566,8 @@ interface components {
1543
1566
  /** Format: uuid */
1544
1567
  id?: string;
1545
1568
  legal_name?: string;
1546
- entity_type?: string;
1547
- ownership_type?: string;
1569
+ entity_type?: components["schemas"]["LegalEntityEntityType"];
1570
+ ownership_type?: components["schemas"]["LegalEntityOwnershipType"];
1548
1571
  contact_email?: string;
1549
1572
  contact_phone?: string;
1550
1573
  business_address_line1?: string;
@@ -1561,8 +1584,8 @@ interface components {
1561
1584
  legal_name?: string;
1562
1585
  /** Format: uuid */
1563
1586
  legal_entity_id?: string;
1564
- entity_type?: string;
1565
- ownership_type?: string;
1587
+ entity_type?: components["schemas"]["LegalEntityEntityType"];
1588
+ ownership_type?: components["schemas"]["LegalEntityOwnershipType"];
1566
1589
  contact_email?: string;
1567
1590
  contact_phone?: string;
1568
1591
  business_address_line1?: string;
@@ -1579,8 +1602,7 @@ interface components {
1579
1602
  annual_credit_card_sales_volume?: number;
1580
1603
  bank_account_number?: string;
1581
1604
  bank_routing_number?: string;
1582
- /** @enum {string} */
1583
- business_category?: "business_association" | "charity" | "church" | "county" | "federal" | "fraternal_org" | "government" | "higher_education" | "k12" | "labor_union" | "local" | "ministry" | "pac" | "parachurch" | "party" | "preschool" | "social_club" | "social_welfare" | "state" | "tribal" | "vendor" | "veterans_org";
1605
+ business_category?: components["schemas"]["MerchantBusinessCategoryType"];
1584
1606
  business_description?: string;
1585
1607
  city?: string;
1586
1608
  country_code?: string;
@@ -1606,8 +1628,7 @@ interface components {
1606
1628
  /** Format: uuid */
1607
1629
  id?: string;
1608
1630
  annual_credit_card_sales_volume?: number;
1609
- /** @enum {string} */
1610
- business_category?: "business_association" | "charity" | "church" | "county" | "federal" | "fraternal_org" | "government" | "higher_education" | "k12" | "labor_union" | "local" | "ministry" | "pac" | "parachurch" | "party" | "preschool" | "social_club" | "social_welfare" | "state" | "tribal" | "vendor" | "veterans_org";
1631
+ business_category?: components["schemas"]["MerchantBusinessCategoryType"];
1611
1632
  business_description?: string;
1612
1633
  city?: string;
1613
1634
  country_code?: string;
@@ -1676,6 +1697,7 @@ interface components {
1676
1697
  description?: string | null;
1677
1698
  statement_descriptor?: string;
1678
1699
  metadata?: components["schemas"]["Metadata"];
1700
+ recurring_payment?: components["schemas"]["RecurringPayment"];
1679
1701
  };
1680
1702
  CreatePaymentIntentRequest: {
1681
1703
  payment_intent: components["schemas"]["CreatePaymentIntentInput"];
@@ -1699,6 +1721,7 @@ interface components {
1699
1721
  payment_method_id?: string;
1700
1722
  amount?: number;
1701
1723
  metadata?: components["schemas"]["Metadata"];
1724
+ recurring_payment?: components["schemas"]["RecurringPayment"];
1702
1725
  };
1703
1726
  UpdatePaymentIntentRequest: {
1704
1727
  payment_intent: components["schemas"]["UpdatePaymentIntentInput"];
@@ -1717,10 +1740,10 @@ interface components {
1717
1740
  customer_id?: string;
1718
1741
  description?: string;
1719
1742
  metadata?: components["schemas"]["Metadata"];
1743
+ recurring_payment?: components["schemas"]["RecurringPayment"];
1720
1744
  /** Format: uuid */
1721
1745
  payment_method_id?: string;
1722
- /** @enum {string} */
1723
- source?: "api" | "dashboard" | "iframe" | "system" | "subscription";
1746
+ source?: components["schemas"]["TransactionSourceType"];
1724
1747
  /** @enum {string} */
1725
1748
  state?: "requires_payment_method" | "requires_confirmation" | "requires_capture" | "processing_authorization" | "processing_capture" | "processing_sale" | "requires_review" | "succeeded" | "cancelled" | "errored_authorization" | "errored_capture" | "errored_sale";
1726
1749
  statement_descriptor?: string;
@@ -1729,11 +1752,13 @@ interface components {
1729
1752
  /** Format: date-time */
1730
1753
  updated_at?: string;
1731
1754
  };
1755
+ RecurringPayment: {
1756
+ network_transaction_id?: string;
1757
+ };
1732
1758
  CreatePaymentLinkInput: {
1733
1759
  slug?: string;
1734
1760
  active?: boolean;
1735
- /** @enum {string} */
1736
- amount_type?: "fixed" | "open";
1761
+ amount_type?: components["schemas"]["PaymentLinkAmountType"];
1737
1762
  amount?: number;
1738
1763
  /** Format: uri */
1739
1764
  image_url?: string;
@@ -1763,8 +1788,7 @@ interface components {
1763
1788
  account_id?: string;
1764
1789
  slug?: string;
1765
1790
  active?: boolean;
1766
- /** @enum {string} */
1767
- amount_type?: "fixed" | "open";
1791
+ amount_type?: components["schemas"]["PaymentLinkAmountType"];
1768
1792
  amount?: number;
1769
1793
  /** Format: uri */
1770
1794
  image_url?: string;
@@ -1788,8 +1812,7 @@ interface components {
1788
1812
  /** Format: uuid */
1789
1813
  customer_id?: string;
1790
1814
  metadata?: components["schemas"]["Metadata"];
1791
- /** @enum {string} */
1792
- type?: "card" | "bank_account";
1815
+ type?: components["schemas"]["PaymentMethodType"];
1793
1816
  bank_account_profile?: components["schemas"]["BankAccountProfile"];
1794
1817
  billing_address?: components["schemas"]["BillingAddress"];
1795
1818
  card_profile?: components["schemas"]["CardProfile"];
@@ -1803,8 +1826,7 @@ interface components {
1803
1826
  external_account_id: string;
1804
1827
  amount: number;
1805
1828
  currency?: string;
1806
- /** @enum {string} */
1807
- direction: "credit" | "debit";
1829
+ direction: components["schemas"]["PayoutDirectionType"];
1808
1830
  metadata?: components["schemas"]["Metadata"];
1809
1831
  };
1810
1832
  CreatePayoutRequest: {
@@ -1817,8 +1839,7 @@ interface components {
1817
1839
  external_account_id: string;
1818
1840
  amount: number;
1819
1841
  currency?: string;
1820
- /** @enum {string} */
1821
- direction: "credit" | "debit";
1842
+ direction: components["schemas"]["PayoutDirectionType"];
1822
1843
  metadata?: components["schemas"]["Metadata"];
1823
1844
  };
1824
1845
  CreateBulkPayoutsRequest: {
@@ -1833,11 +1854,9 @@ interface components {
1833
1854
  external_account_id?: string;
1834
1855
  amount?: number;
1835
1856
  currency?: string;
1836
- /** @enum {string} */
1837
- direction?: "credit" | "debit";
1857
+ direction?: components["schemas"]["PayoutDirectionType"];
1838
1858
  metadata?: components["schemas"]["Metadata"];
1839
- /** @enum {string} */
1840
- state?: "pending" | "succeeded" | "failed" | "accepted" | "rejected";
1859
+ state?: components["schemas"]["PayoutStateType"];
1841
1860
  /** Format: date-time */
1842
1861
  created_at?: string;
1843
1862
  /** Format: date-time */
@@ -1864,6 +1883,7 @@ interface components {
1864
1883
  /** Format: uuid */
1865
1884
  processor_transaction_id?: string;
1866
1885
  processor_reference?: string;
1886
+ network_transaction_id?: string;
1867
1887
  /** @enum {string} */
1868
1888
  transaction_type?: "authorization" | "authorization_reversal" | "capture" | "credit" | "echeck_credit" | "echeck_sale" | "echeck_void" | "sale" | "void";
1869
1889
  /** Format: date-time */
@@ -1944,10 +1964,8 @@ interface components {
1944
1964
  /** Format: uuid */
1945
1965
  payment_method_id?: string;
1946
1966
  platform_fee?: number;
1947
- /** @enum {string} */
1948
- source?: "api" | "dashboard" | "iframe" | "system" | "subscription";
1949
- /** @enum {string} */
1950
- state?: "pending" | "processing" | "requires_review" | "succeeded" | "cancelled" | "failed";
1967
+ source?: components["schemas"]["TransactionSourceType"];
1968
+ state?: components["schemas"]["RefundStateType"];
1951
1969
  statement_descriptor?: string;
1952
1970
  /** Format: date-time */
1953
1971
  succeeded_at?: string;
@@ -1959,8 +1977,9 @@ interface components {
1959
1977
  allowed_reverse_action?: "void" | null;
1960
1978
  };
1961
1979
  CreateRenderTemplateInput: {
1962
- allowed_payment_method_types?: ("card" | "bank_account")[];
1980
+ allowed_payment_method_types?: components["schemas"]["PaymentMethodType"][];
1963
1981
  currency?: string;
1982
+ moto?: boolean;
1964
1983
  origin_ids?: string[];
1965
1984
  };
1966
1985
  CreateRenderTemplateRequest: {
@@ -1971,8 +1990,9 @@ interface components {
1971
1990
  id?: string;
1972
1991
  /** Format: uuid */
1973
1992
  organization_id?: string;
1974
- allowed_payment_method_types?: ("card" | "bank_account")[];
1993
+ allowed_payment_method_types?: components["schemas"]["PaymentMethodType"][];
1975
1994
  currency?: string;
1995
+ moto?: boolean;
1976
1996
  };
1977
1997
  CreateSetupIntentInput: {
1978
1998
  /** Format: uuid */
@@ -2004,8 +2024,7 @@ interface components {
2004
2024
  metadata?: components["schemas"]["Metadata"];
2005
2025
  /** Format: uuid */
2006
2026
  payment_method_id?: string;
2007
- /** @enum {string} */
2008
- source?: "api" | "dashboard" | "iframe" | "system" | "subscription";
2027
+ source?: components["schemas"]["TransactionSourceType"];
2009
2028
  /** @enum {string} */
2010
2029
  state?: "requires_payment_method" | "requires_confirmation" | "verifying" | "requires_review" | "succeeded" | "failed" | "cancelled" | "errored";
2011
2030
  /** Format: date-time */
@@ -2019,8 +2038,7 @@ interface components {
2019
2038
  /** Format: uuid */
2020
2039
  customer_id?: string;
2021
2040
  cycles?: number;
2022
- /** @enum {string} */
2023
- interval?: "day" | "week" | "month" | "year";
2041
+ interval?: components["schemas"]["SubscriptionIntervalType"];
2024
2042
  interval_count?: number;
2025
2043
  /** Format: uuid */
2026
2044
  subscription_plan_id?: string;
@@ -2056,8 +2074,7 @@ interface components {
2056
2074
  customer_id?: string;
2057
2075
  /** Format: uuid */
2058
2076
  payment_method_id?: string;
2059
- /** @enum {string} */
2060
- interval?: "day" | "week" | "month" | "year";
2077
+ interval?: components["schemas"]["SubscriptionIntervalType"];
2061
2078
  interval_count?: number;
2062
2079
  /** @enum {string} */
2063
2080
  state?: "active" | "paused" | "past_due" | "cancelled";
@@ -2083,13 +2100,11 @@ interface components {
2083
2100
  /** Format: uuid */
2084
2101
  product_id?: string;
2085
2102
  description?: string;
2086
- /** @enum {string} */
2087
- interval?: "day" | "week" | "month" | "year";
2103
+ interval?: components["schemas"]["SubscriptionIntervalType"];
2088
2104
  interval_count?: number;
2089
2105
  metadata?: components["schemas"]["Metadata"];
2090
2106
  name?: string;
2091
- /** @enum {string} */
2092
- plan_type?: "fixed" | "variable";
2107
+ plan_type?: components["schemas"]["SubscriptionPlanType"];
2093
2108
  trial_period_days?: number;
2094
2109
  };
2095
2110
  CreateSubscriptionPlanRequest: {
@@ -2114,13 +2129,11 @@ interface components {
2114
2129
  currency?: string;
2115
2130
  cycles?: number;
2116
2131
  description?: string;
2117
- /** @enum {string} */
2118
- interval?: "day" | "week" | "month" | "year";
2132
+ interval?: components["schemas"]["SubscriptionIntervalType"];
2119
2133
  interval_count?: number;
2120
2134
  metadata?: components["schemas"]["Metadata"];
2121
2135
  name?: string;
2122
- /** @enum {string} */
2123
- plan_type?: "fixed" | "variable";
2136
+ plan_type?: components["schemas"]["SubscriptionPlanType"];
2124
2137
  trial_period_days?: number;
2125
2138
  /** Format: date-time */
2126
2139
  created_at?: string;
@@ -2167,10 +2180,8 @@ interface components {
2167
2180
  /** Format: uuid */
2168
2181
  payment_method_id?: string;
2169
2182
  platform_fee?: number;
2170
- /** @enum {string} */
2171
- source?: "api" | "dashboard" | "iframe" | "system" | "subscription";
2172
- /** @enum {string} */
2173
- state?: "pending" | "processing" | "requires_review" | "succeeded" | "cancelled" | "failed";
2183
+ source?: components["schemas"]["TransactionSourceType"];
2184
+ state?: components["schemas"]["RefundStateType"];
2174
2185
  statement_descriptor?: string;
2175
2186
  /** Format: date-time */
2176
2187
  succeeded_at?: string;
@@ -2194,7 +2205,7 @@ interface components {
2194
2205
  updated_at?: string;
2195
2206
  };
2196
2207
  CreateWebhookEndpointInput: {
2197
- events?: ("charge.cancelled" | "charge.created" | "charge.errored" | "charge.failed" | "charge.processing" | "charge.requires_capture" | "charge.requires_confirmation" | "charge.requires_review" | "charge.succeeded" | "customer.created" | "customer.updated" | "legal_entity.created" | "legal_entity.updated" | "legal_entity_principal.created" | "legal_entity_principal.updated" | "merchant.created" | "merchant.updated" | "payment_intent.cancelled" | "payment_intent.created" | "payment_intent.errored_authorization" | "payment_intent.errored_capture" | "payment_intent.errored_sale" | "payment_intent.processing_authorization" | "payment_intent.processing_capture" | "payment_intent.processing_sale" | "payment_intent.requires_capture" | "payment_intent.requires_confirmation" | "payment_intent.requires_payment_method" | "payment_intent.requires_review" | "payment_intent.succeeded" | "processor_transaction.completed" | "reconciliation.created" | "refund.cancelled" | "refund.created" | "refund.failed" | "refund.pending" | "refund.processing" | "refund.requires_review" | "refund.succeeded" | "void.created" | "void.failed" | "void.pending" | "void.processing" | "void.requires_review" | "void.succeeded")[];
2208
+ events?: components["schemas"]["WebhookEventType"][];
2198
2209
  metadata?: components["schemas"]["Metadata"];
2199
2210
  active?: boolean;
2200
2211
  url?: string;
@@ -2205,7 +2216,7 @@ interface components {
2205
2216
  WebhookEndpoint: {
2206
2217
  /** Format: uuid */
2207
2218
  id?: string;
2208
- events?: ("charge.cancelled" | "charge.created" | "charge.errored" | "charge.failed" | "charge.processing" | "charge.requires_capture" | "charge.requires_confirmation" | "charge.requires_review" | "charge.succeeded" | "customer.created" | "customer.updated" | "legal_entity.created" | "legal_entity.updated" | "legal_entity_principal.created" | "legal_entity_principal.updated" | "merchant.created" | "merchant.updated" | "payment_intent.cancelled" | "payment_intent.created" | "payment_intent.errored_authorization" | "payment_intent.errored_capture" | "payment_intent.errored_sale" | "payment_intent.processing_authorization" | "payment_intent.processing_capture" | "payment_intent.processing_sale" | "payment_intent.requires_capture" | "payment_intent.requires_confirmation" | "payment_intent.requires_payment_method" | "payment_intent.requires_review" | "payment_intent.succeeded" | "processor_transaction.completed" | "reconciliation.created" | "refund.cancelled" | "refund.created" | "refund.failed" | "refund.pending" | "refund.processing" | "refund.requires_review" | "refund.succeeded" | "void.created" | "void.failed" | "void.pending" | "void.processing" | "void.requires_review" | "void.succeeded")[];
2219
+ events?: components["schemas"]["WebhookEventType"][];
2209
2220
  metadata?: components["schemas"]["Metadata"];
2210
2221
  secret?: string;
2211
2222
  url?: string;
@@ -2248,7 +2259,7 @@ interface components {
2248
2259
  /** @description The ID of the payment transaction to filter by */
2249
2260
  PaymentTransactionIdQuery: string;
2250
2261
  /** @description The payout state to filter by */
2251
- PayoutStateQuery: "pending" | "succeeded" | "failed" | "accepted" | "rejected";
2262
+ PayoutStateQuery: components["schemas"]["PayoutStateType"];
2252
2263
  /** @description Number of results per page. */
2253
2264
  PerPageQuery: number;
2254
2265
  /** @description The phone to filter by */
package/dist/index.d.ts CHANGED
@@ -1241,8 +1241,7 @@ interface components {
1241
1241
  wallet_brand?: string;
1242
1242
  wallet_last4?: string;
1243
1243
  wallet_payload?: string;
1244
- /** @enum {string|null} */
1245
- wallet_provider?: "googlepay" | "applepay" | null;
1244
+ wallet_provider?: components["schemas"]["WalletProviderType"];
1246
1245
  };
1247
1246
  CardProfile: {
1248
1247
  avs_check?: string;
@@ -1259,8 +1258,7 @@ interface components {
1259
1258
  state?: string;
1260
1259
  three_d_secure_supported?: boolean | null;
1261
1260
  token?: string;
1262
- /** @enum {string|null} */
1263
- wallet_provider?: "googlepay" | "applepay" | null;
1261
+ wallet_provider?: components["schemas"]["WalletProviderType"];
1264
1262
  /** Format: date-time */
1265
1263
  created_at?: string;
1266
1264
  /** Format: date-time */
@@ -1310,8 +1308,7 @@ interface components {
1310
1308
  /** Format: uuid */
1311
1309
  payment_method_id?: string;
1312
1310
  platform_fee?: number;
1313
- /** @enum {string} */
1314
- source?: "api" | "dashboard" | "iframe" | "system" | "subscription";
1311
+ source?: components["schemas"]["TransactionSourceType"];
1315
1312
  /** @enum {string} */
1316
1313
  state?: "cancelled" | "errored" | "failed" | "processing" | "requires_capture" | "requires_confirmation" | "requires_review" | "succeeded";
1317
1314
  statement_descriptor?: string;
@@ -1432,8 +1429,7 @@ interface components {
1432
1429
  CreateLegalEntityApplicationDocumentInput: {
1433
1430
  /** Format: uuid */
1434
1431
  legal_entity_application_id?: string;
1435
- /** @enum {string} */
1436
- document_type?: "irs_cp_575";
1432
+ document_type?: components["schemas"]["LegalEntityDocumentType"];
1437
1433
  /** Format: uuid */
1438
1434
  file_upload_id?: string;
1439
1435
  };
@@ -1445,8 +1441,7 @@ interface components {
1445
1441
  id?: string;
1446
1442
  /** Format: uuid */
1447
1443
  legal_entity_application_id?: string;
1448
- /** @enum {string} */
1449
- document_type?: "irs_cp_575";
1444
+ document_type?: components["schemas"]["LegalEntityDocumentType"];
1450
1445
  /** Format: uuid */
1451
1446
  file_upload_id?: string;
1452
1447
  };
@@ -1510,10 +1505,38 @@ interface components {
1510
1505
  contact_phone?: string;
1511
1506
  tax_id_last4?: string;
1512
1507
  };
1508
+ /** @enum {string} */
1509
+ LegalEntityEntityType: "individual_sole_proprietorship" | "corporation" | "limited_liability_company" | "partnership" | "limited_partnership" | "general_partnership" | "tax_exempt_organization" | "government_agency";
1510
+ /** @enum {string} */
1511
+ LegalEntityOwnershipType: "public" | "private";
1512
+ /** @enum {string} */
1513
+ LegalEntityDocumentType: "irs_cp_575";
1514
+ /** @enum {string} */
1515
+ MerchantBusinessCategoryType: "business_association" | "charity" | "church" | "county" | "federal" | "fraternal_org" | "government" | "higher_education" | "k12" | "labor_union" | "local" | "ministry" | "pac" | "parachurch" | "party" | "preschool" | "social_club" | "social_welfare" | "state" | "tribal" | "vendor" | "veterans_org";
1516
+ /** @enum {string} */
1517
+ PaymentLinkAmountType: "fixed" | "open";
1518
+ /** @enum {string} */
1519
+ PaymentMethodType: "card" | "bank_account";
1520
+ /** @enum {string} */
1521
+ PayoutDirectionType: "credit" | "debit";
1522
+ /** @enum {string} */
1523
+ PayoutStateType: "pending" | "succeeded" | "failed" | "accepted" | "rejected";
1524
+ /** @enum {string} */
1525
+ RefundStateType: "pending" | "processing" | "requires_review" | "succeeded" | "cancelled" | "failed";
1526
+ /** @enum {string} */
1527
+ SubscriptionIntervalType: "day" | "week" | "month" | "year";
1528
+ /** @enum {string} */
1529
+ SubscriptionPlanType: "fixed" | "variable";
1530
+ /** @enum {string} */
1531
+ TransactionSourceType: "api" | "dashboard" | "iframe" | "system" | "subscription";
1532
+ /** @enum {string} */
1533
+ WalletProviderType: "googlepay" | "applepay";
1534
+ /** @enum {string} */
1535
+ WebhookEventType: "charge.cancelled" | "charge.created" | "charge.errored" | "charge.failed" | "charge.processing" | "charge.requires_capture" | "charge.requires_confirmation" | "charge.requires_review" | "charge.succeeded" | "customer.created" | "customer.updated" | "legal_entity.created" | "legal_entity.updated" | "legal_entity_principal.created" | "legal_entity_principal.updated" | "merchant.created" | "merchant.updated" | "payment_intent.cancelled" | "payment_intent.created" | "payment_intent.errored_authorization" | "payment_intent.errored_capture" | "payment_intent.errored_sale" | "payment_intent.processing_authorization" | "payment_intent.processing_capture" | "payment_intent.processing_sale" | "payment_intent.requires_capture" | "payment_intent.requires_confirmation" | "payment_intent.requires_payment_method" | "payment_intent.requires_review" | "payment_intent.succeeded" | "processor_transaction.completed" | "reconciliation.created" | "refund.cancelled" | "refund.created" | "refund.failed" | "refund.pending" | "refund.processing" | "refund.requires_review" | "refund.succeeded" | "void.created" | "void.failed" | "void.pending" | "void.processing" | "void.requires_review" | "void.succeeded";
1513
1536
  CreateLegalEntityApplicationInput: {
1514
1537
  legal_name?: string;
1515
- entity_type?: string;
1516
- ownership_type?: string;
1538
+ entity_type?: components["schemas"]["LegalEntityEntityType"];
1539
+ ownership_type?: components["schemas"]["LegalEntityOwnershipType"];
1517
1540
  tax_id?: string;
1518
1541
  contact_email?: string;
1519
1542
  contact_phone?: string;
@@ -1543,8 +1566,8 @@ interface components {
1543
1566
  /** Format: uuid */
1544
1567
  id?: string;
1545
1568
  legal_name?: string;
1546
- entity_type?: string;
1547
- ownership_type?: string;
1569
+ entity_type?: components["schemas"]["LegalEntityEntityType"];
1570
+ ownership_type?: components["schemas"]["LegalEntityOwnershipType"];
1548
1571
  contact_email?: string;
1549
1572
  contact_phone?: string;
1550
1573
  business_address_line1?: string;
@@ -1561,8 +1584,8 @@ interface components {
1561
1584
  legal_name?: string;
1562
1585
  /** Format: uuid */
1563
1586
  legal_entity_id?: string;
1564
- entity_type?: string;
1565
- ownership_type?: string;
1587
+ entity_type?: components["schemas"]["LegalEntityEntityType"];
1588
+ ownership_type?: components["schemas"]["LegalEntityOwnershipType"];
1566
1589
  contact_email?: string;
1567
1590
  contact_phone?: string;
1568
1591
  business_address_line1?: string;
@@ -1579,8 +1602,7 @@ interface components {
1579
1602
  annual_credit_card_sales_volume?: number;
1580
1603
  bank_account_number?: string;
1581
1604
  bank_routing_number?: string;
1582
- /** @enum {string} */
1583
- business_category?: "business_association" | "charity" | "church" | "county" | "federal" | "fraternal_org" | "government" | "higher_education" | "k12" | "labor_union" | "local" | "ministry" | "pac" | "parachurch" | "party" | "preschool" | "social_club" | "social_welfare" | "state" | "tribal" | "vendor" | "veterans_org";
1605
+ business_category?: components["schemas"]["MerchantBusinessCategoryType"];
1584
1606
  business_description?: string;
1585
1607
  city?: string;
1586
1608
  country_code?: string;
@@ -1606,8 +1628,7 @@ interface components {
1606
1628
  /** Format: uuid */
1607
1629
  id?: string;
1608
1630
  annual_credit_card_sales_volume?: number;
1609
- /** @enum {string} */
1610
- business_category?: "business_association" | "charity" | "church" | "county" | "federal" | "fraternal_org" | "government" | "higher_education" | "k12" | "labor_union" | "local" | "ministry" | "pac" | "parachurch" | "party" | "preschool" | "social_club" | "social_welfare" | "state" | "tribal" | "vendor" | "veterans_org";
1631
+ business_category?: components["schemas"]["MerchantBusinessCategoryType"];
1611
1632
  business_description?: string;
1612
1633
  city?: string;
1613
1634
  country_code?: string;
@@ -1676,6 +1697,7 @@ interface components {
1676
1697
  description?: string | null;
1677
1698
  statement_descriptor?: string;
1678
1699
  metadata?: components["schemas"]["Metadata"];
1700
+ recurring_payment?: components["schemas"]["RecurringPayment"];
1679
1701
  };
1680
1702
  CreatePaymentIntentRequest: {
1681
1703
  payment_intent: components["schemas"]["CreatePaymentIntentInput"];
@@ -1699,6 +1721,7 @@ interface components {
1699
1721
  payment_method_id?: string;
1700
1722
  amount?: number;
1701
1723
  metadata?: components["schemas"]["Metadata"];
1724
+ recurring_payment?: components["schemas"]["RecurringPayment"];
1702
1725
  };
1703
1726
  UpdatePaymentIntentRequest: {
1704
1727
  payment_intent: components["schemas"]["UpdatePaymentIntentInput"];
@@ -1717,10 +1740,10 @@ interface components {
1717
1740
  customer_id?: string;
1718
1741
  description?: string;
1719
1742
  metadata?: components["schemas"]["Metadata"];
1743
+ recurring_payment?: components["schemas"]["RecurringPayment"];
1720
1744
  /** Format: uuid */
1721
1745
  payment_method_id?: string;
1722
- /** @enum {string} */
1723
- source?: "api" | "dashboard" | "iframe" | "system" | "subscription";
1746
+ source?: components["schemas"]["TransactionSourceType"];
1724
1747
  /** @enum {string} */
1725
1748
  state?: "requires_payment_method" | "requires_confirmation" | "requires_capture" | "processing_authorization" | "processing_capture" | "processing_sale" | "requires_review" | "succeeded" | "cancelled" | "errored_authorization" | "errored_capture" | "errored_sale";
1726
1749
  statement_descriptor?: string;
@@ -1729,11 +1752,13 @@ interface components {
1729
1752
  /** Format: date-time */
1730
1753
  updated_at?: string;
1731
1754
  };
1755
+ RecurringPayment: {
1756
+ network_transaction_id?: string;
1757
+ };
1732
1758
  CreatePaymentLinkInput: {
1733
1759
  slug?: string;
1734
1760
  active?: boolean;
1735
- /** @enum {string} */
1736
- amount_type?: "fixed" | "open";
1761
+ amount_type?: components["schemas"]["PaymentLinkAmountType"];
1737
1762
  amount?: number;
1738
1763
  /** Format: uri */
1739
1764
  image_url?: string;
@@ -1763,8 +1788,7 @@ interface components {
1763
1788
  account_id?: string;
1764
1789
  slug?: string;
1765
1790
  active?: boolean;
1766
- /** @enum {string} */
1767
- amount_type?: "fixed" | "open";
1791
+ amount_type?: components["schemas"]["PaymentLinkAmountType"];
1768
1792
  amount?: number;
1769
1793
  /** Format: uri */
1770
1794
  image_url?: string;
@@ -1788,8 +1812,7 @@ interface components {
1788
1812
  /** Format: uuid */
1789
1813
  customer_id?: string;
1790
1814
  metadata?: components["schemas"]["Metadata"];
1791
- /** @enum {string} */
1792
- type?: "card" | "bank_account";
1815
+ type?: components["schemas"]["PaymentMethodType"];
1793
1816
  bank_account_profile?: components["schemas"]["BankAccountProfile"];
1794
1817
  billing_address?: components["schemas"]["BillingAddress"];
1795
1818
  card_profile?: components["schemas"]["CardProfile"];
@@ -1803,8 +1826,7 @@ interface components {
1803
1826
  external_account_id: string;
1804
1827
  amount: number;
1805
1828
  currency?: string;
1806
- /** @enum {string} */
1807
- direction: "credit" | "debit";
1829
+ direction: components["schemas"]["PayoutDirectionType"];
1808
1830
  metadata?: components["schemas"]["Metadata"];
1809
1831
  };
1810
1832
  CreatePayoutRequest: {
@@ -1817,8 +1839,7 @@ interface components {
1817
1839
  external_account_id: string;
1818
1840
  amount: number;
1819
1841
  currency?: string;
1820
- /** @enum {string} */
1821
- direction: "credit" | "debit";
1842
+ direction: components["schemas"]["PayoutDirectionType"];
1822
1843
  metadata?: components["schemas"]["Metadata"];
1823
1844
  };
1824
1845
  CreateBulkPayoutsRequest: {
@@ -1833,11 +1854,9 @@ interface components {
1833
1854
  external_account_id?: string;
1834
1855
  amount?: number;
1835
1856
  currency?: string;
1836
- /** @enum {string} */
1837
- direction?: "credit" | "debit";
1857
+ direction?: components["schemas"]["PayoutDirectionType"];
1838
1858
  metadata?: components["schemas"]["Metadata"];
1839
- /** @enum {string} */
1840
- state?: "pending" | "succeeded" | "failed" | "accepted" | "rejected";
1859
+ state?: components["schemas"]["PayoutStateType"];
1841
1860
  /** Format: date-time */
1842
1861
  created_at?: string;
1843
1862
  /** Format: date-time */
@@ -1864,6 +1883,7 @@ interface components {
1864
1883
  /** Format: uuid */
1865
1884
  processor_transaction_id?: string;
1866
1885
  processor_reference?: string;
1886
+ network_transaction_id?: string;
1867
1887
  /** @enum {string} */
1868
1888
  transaction_type?: "authorization" | "authorization_reversal" | "capture" | "credit" | "echeck_credit" | "echeck_sale" | "echeck_void" | "sale" | "void";
1869
1889
  /** Format: date-time */
@@ -1944,10 +1964,8 @@ interface components {
1944
1964
  /** Format: uuid */
1945
1965
  payment_method_id?: string;
1946
1966
  platform_fee?: number;
1947
- /** @enum {string} */
1948
- source?: "api" | "dashboard" | "iframe" | "system" | "subscription";
1949
- /** @enum {string} */
1950
- state?: "pending" | "processing" | "requires_review" | "succeeded" | "cancelled" | "failed";
1967
+ source?: components["schemas"]["TransactionSourceType"];
1968
+ state?: components["schemas"]["RefundStateType"];
1951
1969
  statement_descriptor?: string;
1952
1970
  /** Format: date-time */
1953
1971
  succeeded_at?: string;
@@ -1959,8 +1977,9 @@ interface components {
1959
1977
  allowed_reverse_action?: "void" | null;
1960
1978
  };
1961
1979
  CreateRenderTemplateInput: {
1962
- allowed_payment_method_types?: ("card" | "bank_account")[];
1980
+ allowed_payment_method_types?: components["schemas"]["PaymentMethodType"][];
1963
1981
  currency?: string;
1982
+ moto?: boolean;
1964
1983
  origin_ids?: string[];
1965
1984
  };
1966
1985
  CreateRenderTemplateRequest: {
@@ -1971,8 +1990,9 @@ interface components {
1971
1990
  id?: string;
1972
1991
  /** Format: uuid */
1973
1992
  organization_id?: string;
1974
- allowed_payment_method_types?: ("card" | "bank_account")[];
1993
+ allowed_payment_method_types?: components["schemas"]["PaymentMethodType"][];
1975
1994
  currency?: string;
1995
+ moto?: boolean;
1976
1996
  };
1977
1997
  CreateSetupIntentInput: {
1978
1998
  /** Format: uuid */
@@ -2004,8 +2024,7 @@ interface components {
2004
2024
  metadata?: components["schemas"]["Metadata"];
2005
2025
  /** Format: uuid */
2006
2026
  payment_method_id?: string;
2007
- /** @enum {string} */
2008
- source?: "api" | "dashboard" | "iframe" | "system" | "subscription";
2027
+ source?: components["schemas"]["TransactionSourceType"];
2009
2028
  /** @enum {string} */
2010
2029
  state?: "requires_payment_method" | "requires_confirmation" | "verifying" | "requires_review" | "succeeded" | "failed" | "cancelled" | "errored";
2011
2030
  /** Format: date-time */
@@ -2019,8 +2038,7 @@ interface components {
2019
2038
  /** Format: uuid */
2020
2039
  customer_id?: string;
2021
2040
  cycles?: number;
2022
- /** @enum {string} */
2023
- interval?: "day" | "week" | "month" | "year";
2041
+ interval?: components["schemas"]["SubscriptionIntervalType"];
2024
2042
  interval_count?: number;
2025
2043
  /** Format: uuid */
2026
2044
  subscription_plan_id?: string;
@@ -2056,8 +2074,7 @@ interface components {
2056
2074
  customer_id?: string;
2057
2075
  /** Format: uuid */
2058
2076
  payment_method_id?: string;
2059
- /** @enum {string} */
2060
- interval?: "day" | "week" | "month" | "year";
2077
+ interval?: components["schemas"]["SubscriptionIntervalType"];
2061
2078
  interval_count?: number;
2062
2079
  /** @enum {string} */
2063
2080
  state?: "active" | "paused" | "past_due" | "cancelled";
@@ -2083,13 +2100,11 @@ interface components {
2083
2100
  /** Format: uuid */
2084
2101
  product_id?: string;
2085
2102
  description?: string;
2086
- /** @enum {string} */
2087
- interval?: "day" | "week" | "month" | "year";
2103
+ interval?: components["schemas"]["SubscriptionIntervalType"];
2088
2104
  interval_count?: number;
2089
2105
  metadata?: components["schemas"]["Metadata"];
2090
2106
  name?: string;
2091
- /** @enum {string} */
2092
- plan_type?: "fixed" | "variable";
2107
+ plan_type?: components["schemas"]["SubscriptionPlanType"];
2093
2108
  trial_period_days?: number;
2094
2109
  };
2095
2110
  CreateSubscriptionPlanRequest: {
@@ -2114,13 +2129,11 @@ interface components {
2114
2129
  currency?: string;
2115
2130
  cycles?: number;
2116
2131
  description?: string;
2117
- /** @enum {string} */
2118
- interval?: "day" | "week" | "month" | "year";
2132
+ interval?: components["schemas"]["SubscriptionIntervalType"];
2119
2133
  interval_count?: number;
2120
2134
  metadata?: components["schemas"]["Metadata"];
2121
2135
  name?: string;
2122
- /** @enum {string} */
2123
- plan_type?: "fixed" | "variable";
2136
+ plan_type?: components["schemas"]["SubscriptionPlanType"];
2124
2137
  trial_period_days?: number;
2125
2138
  /** Format: date-time */
2126
2139
  created_at?: string;
@@ -2167,10 +2180,8 @@ interface components {
2167
2180
  /** Format: uuid */
2168
2181
  payment_method_id?: string;
2169
2182
  platform_fee?: number;
2170
- /** @enum {string} */
2171
- source?: "api" | "dashboard" | "iframe" | "system" | "subscription";
2172
- /** @enum {string} */
2173
- state?: "pending" | "processing" | "requires_review" | "succeeded" | "cancelled" | "failed";
2183
+ source?: components["schemas"]["TransactionSourceType"];
2184
+ state?: components["schemas"]["RefundStateType"];
2174
2185
  statement_descriptor?: string;
2175
2186
  /** Format: date-time */
2176
2187
  succeeded_at?: string;
@@ -2194,7 +2205,7 @@ interface components {
2194
2205
  updated_at?: string;
2195
2206
  };
2196
2207
  CreateWebhookEndpointInput: {
2197
- events?: ("charge.cancelled" | "charge.created" | "charge.errored" | "charge.failed" | "charge.processing" | "charge.requires_capture" | "charge.requires_confirmation" | "charge.requires_review" | "charge.succeeded" | "customer.created" | "customer.updated" | "legal_entity.created" | "legal_entity.updated" | "legal_entity_principal.created" | "legal_entity_principal.updated" | "merchant.created" | "merchant.updated" | "payment_intent.cancelled" | "payment_intent.created" | "payment_intent.errored_authorization" | "payment_intent.errored_capture" | "payment_intent.errored_sale" | "payment_intent.processing_authorization" | "payment_intent.processing_capture" | "payment_intent.processing_sale" | "payment_intent.requires_capture" | "payment_intent.requires_confirmation" | "payment_intent.requires_payment_method" | "payment_intent.requires_review" | "payment_intent.succeeded" | "processor_transaction.completed" | "reconciliation.created" | "refund.cancelled" | "refund.created" | "refund.failed" | "refund.pending" | "refund.processing" | "refund.requires_review" | "refund.succeeded" | "void.created" | "void.failed" | "void.pending" | "void.processing" | "void.requires_review" | "void.succeeded")[];
2208
+ events?: components["schemas"]["WebhookEventType"][];
2198
2209
  metadata?: components["schemas"]["Metadata"];
2199
2210
  active?: boolean;
2200
2211
  url?: string;
@@ -2205,7 +2216,7 @@ interface components {
2205
2216
  WebhookEndpoint: {
2206
2217
  /** Format: uuid */
2207
2218
  id?: string;
2208
- events?: ("charge.cancelled" | "charge.created" | "charge.errored" | "charge.failed" | "charge.processing" | "charge.requires_capture" | "charge.requires_confirmation" | "charge.requires_review" | "charge.succeeded" | "customer.created" | "customer.updated" | "legal_entity.created" | "legal_entity.updated" | "legal_entity_principal.created" | "legal_entity_principal.updated" | "merchant.created" | "merchant.updated" | "payment_intent.cancelled" | "payment_intent.created" | "payment_intent.errored_authorization" | "payment_intent.errored_capture" | "payment_intent.errored_sale" | "payment_intent.processing_authorization" | "payment_intent.processing_capture" | "payment_intent.processing_sale" | "payment_intent.requires_capture" | "payment_intent.requires_confirmation" | "payment_intent.requires_payment_method" | "payment_intent.requires_review" | "payment_intent.succeeded" | "processor_transaction.completed" | "reconciliation.created" | "refund.cancelled" | "refund.created" | "refund.failed" | "refund.pending" | "refund.processing" | "refund.requires_review" | "refund.succeeded" | "void.created" | "void.failed" | "void.pending" | "void.processing" | "void.requires_review" | "void.succeeded")[];
2219
+ events?: components["schemas"]["WebhookEventType"][];
2209
2220
  metadata?: components["schemas"]["Metadata"];
2210
2221
  secret?: string;
2211
2222
  url?: string;
@@ -2248,7 +2259,7 @@ interface components {
2248
2259
  /** @description The ID of the payment transaction to filter by */
2249
2260
  PaymentTransactionIdQuery: string;
2250
2261
  /** @description The payout state to filter by */
2251
- PayoutStateQuery: "pending" | "succeeded" | "failed" | "accepted" | "rejected";
2262
+ PayoutStateQuery: components["schemas"]["PayoutStateType"];
2252
2263
  /** @description Number of results per page. */
2253
2264
  PerPageQuery: number;
2254
2265
  /** @description The phone to filter by */
package/openapi/schema.ts CHANGED
@@ -1238,8 +1238,7 @@ export interface components {
1238
1238
  wallet_brand?: string;
1239
1239
  wallet_last4?: string;
1240
1240
  wallet_payload?: string;
1241
- /** @enum {string|null} */
1242
- wallet_provider?: "googlepay" | "applepay" | null;
1241
+ wallet_provider?: components["schemas"]["WalletProviderType"];
1243
1242
  };
1244
1243
  CardProfile: {
1245
1244
  avs_check?: string;
@@ -1256,8 +1255,7 @@ export interface components {
1256
1255
  state?: string;
1257
1256
  three_d_secure_supported?: boolean | null;
1258
1257
  token?: string;
1259
- /** @enum {string|null} */
1260
- wallet_provider?: "googlepay" | "applepay" | null;
1258
+ wallet_provider?: components["schemas"]["WalletProviderType"];
1261
1259
  /** Format: date-time */
1262
1260
  created_at?: string;
1263
1261
  /** Format: date-time */
@@ -1307,8 +1305,7 @@ export interface components {
1307
1305
  /** Format: uuid */
1308
1306
  payment_method_id?: string;
1309
1307
  platform_fee?: number;
1310
- /** @enum {string} */
1311
- source?: "api" | "dashboard" | "iframe" | "system" | "subscription";
1308
+ source?: components["schemas"]["TransactionSourceType"];
1312
1309
  /** @enum {string} */
1313
1310
  state?: "cancelled" | "errored" | "failed" | "processing" | "requires_capture" | "requires_confirmation" | "requires_review" | "succeeded";
1314
1311
  statement_descriptor?: string;
@@ -1429,8 +1426,7 @@ export interface components {
1429
1426
  CreateLegalEntityApplicationDocumentInput: {
1430
1427
  /** Format: uuid */
1431
1428
  legal_entity_application_id?: string;
1432
- /** @enum {string} */
1433
- document_type?: "irs_cp_575";
1429
+ document_type?: components["schemas"]["LegalEntityDocumentType"];
1434
1430
  /** Format: uuid */
1435
1431
  file_upload_id?: string;
1436
1432
  };
@@ -1442,8 +1438,7 @@ export interface components {
1442
1438
  id?: string;
1443
1439
  /** Format: uuid */
1444
1440
  legal_entity_application_id?: string;
1445
- /** @enum {string} */
1446
- document_type?: "irs_cp_575";
1441
+ document_type?: components["schemas"]["LegalEntityDocumentType"];
1447
1442
  /** Format: uuid */
1448
1443
  file_upload_id?: string;
1449
1444
  };
@@ -1507,10 +1502,38 @@ export interface components {
1507
1502
  contact_phone?: string;
1508
1503
  tax_id_last4?: string;
1509
1504
  };
1505
+ /** @enum {string} */
1506
+ LegalEntityEntityType: "individual_sole_proprietorship" | "corporation" | "limited_liability_company" | "partnership" | "limited_partnership" | "general_partnership" | "tax_exempt_organization" | "government_agency";
1507
+ /** @enum {string} */
1508
+ LegalEntityOwnershipType: "public" | "private";
1509
+ /** @enum {string} */
1510
+ LegalEntityDocumentType: "irs_cp_575";
1511
+ /** @enum {string} */
1512
+ MerchantBusinessCategoryType: "business_association" | "charity" | "church" | "county" | "federal" | "fraternal_org" | "government" | "higher_education" | "k12" | "labor_union" | "local" | "ministry" | "pac" | "parachurch" | "party" | "preschool" | "social_club" | "social_welfare" | "state" | "tribal" | "vendor" | "veterans_org";
1513
+ /** @enum {string} */
1514
+ PaymentLinkAmountType: "fixed" | "open";
1515
+ /** @enum {string} */
1516
+ PaymentMethodType: "card" | "bank_account";
1517
+ /** @enum {string} */
1518
+ PayoutDirectionType: "credit" | "debit";
1519
+ /** @enum {string} */
1520
+ PayoutStateType: "pending" | "succeeded" | "failed" | "accepted" | "rejected";
1521
+ /** @enum {string} */
1522
+ RefundStateType: "pending" | "processing" | "requires_review" | "succeeded" | "cancelled" | "failed";
1523
+ /** @enum {string} */
1524
+ SubscriptionIntervalType: "day" | "week" | "month" | "year";
1525
+ /** @enum {string} */
1526
+ SubscriptionPlanType: "fixed" | "variable";
1527
+ /** @enum {string} */
1528
+ TransactionSourceType: "api" | "dashboard" | "iframe" | "system" | "subscription";
1529
+ /** @enum {string} */
1530
+ WalletProviderType: "googlepay" | "applepay";
1531
+ /** @enum {string} */
1532
+ WebhookEventType: "charge.cancelled" | "charge.created" | "charge.errored" | "charge.failed" | "charge.processing" | "charge.requires_capture" | "charge.requires_confirmation" | "charge.requires_review" | "charge.succeeded" | "customer.created" | "customer.updated" | "legal_entity.created" | "legal_entity.updated" | "legal_entity_principal.created" | "legal_entity_principal.updated" | "merchant.created" | "merchant.updated" | "payment_intent.cancelled" | "payment_intent.created" | "payment_intent.errored_authorization" | "payment_intent.errored_capture" | "payment_intent.errored_sale" | "payment_intent.processing_authorization" | "payment_intent.processing_capture" | "payment_intent.processing_sale" | "payment_intent.requires_capture" | "payment_intent.requires_confirmation" | "payment_intent.requires_payment_method" | "payment_intent.requires_review" | "payment_intent.succeeded" | "processor_transaction.completed" | "reconciliation.created" | "refund.cancelled" | "refund.created" | "refund.failed" | "refund.pending" | "refund.processing" | "refund.requires_review" | "refund.succeeded" | "void.created" | "void.failed" | "void.pending" | "void.processing" | "void.requires_review" | "void.succeeded";
1510
1533
  CreateLegalEntityApplicationInput: {
1511
1534
  legal_name?: string;
1512
- entity_type?: string;
1513
- ownership_type?: string;
1535
+ entity_type?: components["schemas"]["LegalEntityEntityType"];
1536
+ ownership_type?: components["schemas"]["LegalEntityOwnershipType"];
1514
1537
  tax_id?: string;
1515
1538
  contact_email?: string;
1516
1539
  contact_phone?: string;
@@ -1540,8 +1563,8 @@ export interface components {
1540
1563
  /** Format: uuid */
1541
1564
  id?: string;
1542
1565
  legal_name?: string;
1543
- entity_type?: string;
1544
- ownership_type?: string;
1566
+ entity_type?: components["schemas"]["LegalEntityEntityType"];
1567
+ ownership_type?: components["schemas"]["LegalEntityOwnershipType"];
1545
1568
  contact_email?: string;
1546
1569
  contact_phone?: string;
1547
1570
  business_address_line1?: string;
@@ -1558,8 +1581,8 @@ export interface components {
1558
1581
  legal_name?: string;
1559
1582
  /** Format: uuid */
1560
1583
  legal_entity_id?: string;
1561
- entity_type?: string;
1562
- ownership_type?: string;
1584
+ entity_type?: components["schemas"]["LegalEntityEntityType"];
1585
+ ownership_type?: components["schemas"]["LegalEntityOwnershipType"];
1563
1586
  contact_email?: string;
1564
1587
  contact_phone?: string;
1565
1588
  business_address_line1?: string;
@@ -1576,8 +1599,7 @@ export interface components {
1576
1599
  annual_credit_card_sales_volume?: number;
1577
1600
  bank_account_number?: string;
1578
1601
  bank_routing_number?: string;
1579
- /** @enum {string} */
1580
- business_category?: "business_association" | "charity" | "church" | "county" | "federal" | "fraternal_org" | "government" | "higher_education" | "k12" | "labor_union" | "local" | "ministry" | "pac" | "parachurch" | "party" | "preschool" | "social_club" | "social_welfare" | "state" | "tribal" | "vendor" | "veterans_org";
1602
+ business_category?: components["schemas"]["MerchantBusinessCategoryType"];
1581
1603
  business_description?: string;
1582
1604
  city?: string;
1583
1605
  country_code?: string;
@@ -1603,8 +1625,7 @@ export interface components {
1603
1625
  /** Format: uuid */
1604
1626
  id?: string;
1605
1627
  annual_credit_card_sales_volume?: number;
1606
- /** @enum {string} */
1607
- business_category?: "business_association" | "charity" | "church" | "county" | "federal" | "fraternal_org" | "government" | "higher_education" | "k12" | "labor_union" | "local" | "ministry" | "pac" | "parachurch" | "party" | "preschool" | "social_club" | "social_welfare" | "state" | "tribal" | "vendor" | "veterans_org";
1628
+ business_category?: components["schemas"]["MerchantBusinessCategoryType"];
1608
1629
  business_description?: string;
1609
1630
  city?: string;
1610
1631
  country_code?: string;
@@ -1673,6 +1694,7 @@ export interface components {
1673
1694
  description?: string | null;
1674
1695
  statement_descriptor?: string;
1675
1696
  metadata?: components["schemas"]["Metadata"];
1697
+ recurring_payment?: components["schemas"]["RecurringPayment"];
1676
1698
  };
1677
1699
  CreatePaymentIntentRequest: {
1678
1700
  payment_intent: components["schemas"]["CreatePaymentIntentInput"];
@@ -1696,6 +1718,7 @@ export interface components {
1696
1718
  payment_method_id?: string;
1697
1719
  amount?: number;
1698
1720
  metadata?: components["schemas"]["Metadata"];
1721
+ recurring_payment?: components["schemas"]["RecurringPayment"];
1699
1722
  };
1700
1723
  UpdatePaymentIntentRequest: {
1701
1724
  payment_intent: components["schemas"]["UpdatePaymentIntentInput"];
@@ -1714,10 +1737,10 @@ export interface components {
1714
1737
  customer_id?: string;
1715
1738
  description?: string;
1716
1739
  metadata?: components["schemas"]["Metadata"];
1740
+ recurring_payment?: components["schemas"]["RecurringPayment"];
1717
1741
  /** Format: uuid */
1718
1742
  payment_method_id?: string;
1719
- /** @enum {string} */
1720
- source?: "api" | "dashboard" | "iframe" | "system" | "subscription";
1743
+ source?: components["schemas"]["TransactionSourceType"];
1721
1744
  /** @enum {string} */
1722
1745
  state?: "requires_payment_method" | "requires_confirmation" | "requires_capture" | "processing_authorization" | "processing_capture" | "processing_sale" | "requires_review" | "succeeded" | "cancelled" | "errored_authorization" | "errored_capture" | "errored_sale";
1723
1746
  statement_descriptor?: string;
@@ -1726,11 +1749,13 @@ export interface components {
1726
1749
  /** Format: date-time */
1727
1750
  updated_at?: string;
1728
1751
  };
1752
+ RecurringPayment: {
1753
+ network_transaction_id?: string;
1754
+ };
1729
1755
  CreatePaymentLinkInput: {
1730
1756
  slug?: string;
1731
1757
  active?: boolean;
1732
- /** @enum {string} */
1733
- amount_type?: "fixed" | "open";
1758
+ amount_type?: components["schemas"]["PaymentLinkAmountType"];
1734
1759
  amount?: number;
1735
1760
  /** Format: uri */
1736
1761
  image_url?: string;
@@ -1760,8 +1785,7 @@ export interface components {
1760
1785
  account_id?: string;
1761
1786
  slug?: string;
1762
1787
  active?: boolean;
1763
- /** @enum {string} */
1764
- amount_type?: "fixed" | "open";
1788
+ amount_type?: components["schemas"]["PaymentLinkAmountType"];
1765
1789
  amount?: number;
1766
1790
  /** Format: uri */
1767
1791
  image_url?: string;
@@ -1785,8 +1809,7 @@ export interface components {
1785
1809
  /** Format: uuid */
1786
1810
  customer_id?: string;
1787
1811
  metadata?: components["schemas"]["Metadata"];
1788
- /** @enum {string} */
1789
- type?: "card" | "bank_account";
1812
+ type?: components["schemas"]["PaymentMethodType"];
1790
1813
  bank_account_profile?: components["schemas"]["BankAccountProfile"];
1791
1814
  billing_address?: components["schemas"]["BillingAddress"];
1792
1815
  card_profile?: components["schemas"]["CardProfile"];
@@ -1800,8 +1823,7 @@ export interface components {
1800
1823
  external_account_id: string;
1801
1824
  amount: number;
1802
1825
  currency?: string;
1803
- /** @enum {string} */
1804
- direction: "credit" | "debit";
1826
+ direction: components["schemas"]["PayoutDirectionType"];
1805
1827
  metadata?: components["schemas"]["Metadata"];
1806
1828
  };
1807
1829
  CreatePayoutRequest: {
@@ -1814,8 +1836,7 @@ export interface components {
1814
1836
  external_account_id: string;
1815
1837
  amount: number;
1816
1838
  currency?: string;
1817
- /** @enum {string} */
1818
- direction: "credit" | "debit";
1839
+ direction: components["schemas"]["PayoutDirectionType"];
1819
1840
  metadata?: components["schemas"]["Metadata"];
1820
1841
  };
1821
1842
  CreateBulkPayoutsRequest: {
@@ -1830,11 +1851,9 @@ export interface components {
1830
1851
  external_account_id?: string;
1831
1852
  amount?: number;
1832
1853
  currency?: string;
1833
- /** @enum {string} */
1834
- direction?: "credit" | "debit";
1854
+ direction?: components["schemas"]["PayoutDirectionType"];
1835
1855
  metadata?: components["schemas"]["Metadata"];
1836
- /** @enum {string} */
1837
- state?: "pending" | "succeeded" | "failed" | "accepted" | "rejected";
1856
+ state?: components["schemas"]["PayoutStateType"];
1838
1857
  /** Format: date-time */
1839
1858
  created_at?: string;
1840
1859
  /** Format: date-time */
@@ -1861,6 +1880,7 @@ export interface components {
1861
1880
  /** Format: uuid */
1862
1881
  processor_transaction_id?: string;
1863
1882
  processor_reference?: string;
1883
+ network_transaction_id?: string;
1864
1884
  /** @enum {string} */
1865
1885
  transaction_type?: "authorization" | "authorization_reversal" | "capture" | "credit" | "echeck_credit" | "echeck_sale" | "echeck_void" | "sale" | "void";
1866
1886
  /** Format: date-time */
@@ -1941,10 +1961,8 @@ export interface components {
1941
1961
  /** Format: uuid */
1942
1962
  payment_method_id?: string;
1943
1963
  platform_fee?: number;
1944
- /** @enum {string} */
1945
- source?: "api" | "dashboard" | "iframe" | "system" | "subscription";
1946
- /** @enum {string} */
1947
- state?: "pending" | "processing" | "requires_review" | "succeeded" | "cancelled" | "failed";
1964
+ source?: components["schemas"]["TransactionSourceType"];
1965
+ state?: components["schemas"]["RefundStateType"];
1948
1966
  statement_descriptor?: string;
1949
1967
  /** Format: date-time */
1950
1968
  succeeded_at?: string;
@@ -1956,8 +1974,9 @@ export interface components {
1956
1974
  allowed_reverse_action?: "void" | null;
1957
1975
  };
1958
1976
  CreateRenderTemplateInput: {
1959
- allowed_payment_method_types?: ("card" | "bank_account")[];
1977
+ allowed_payment_method_types?: components["schemas"]["PaymentMethodType"][];
1960
1978
  currency?: string;
1979
+ moto?: boolean;
1961
1980
  origin_ids?: string[];
1962
1981
  };
1963
1982
  CreateRenderTemplateRequest: {
@@ -1968,8 +1987,9 @@ export interface components {
1968
1987
  id?: string;
1969
1988
  /** Format: uuid */
1970
1989
  organization_id?: string;
1971
- allowed_payment_method_types?: ("card" | "bank_account")[];
1990
+ allowed_payment_method_types?: components["schemas"]["PaymentMethodType"][];
1972
1991
  currency?: string;
1992
+ moto?: boolean;
1973
1993
  };
1974
1994
  CreateSetupIntentInput: {
1975
1995
  /** Format: uuid */
@@ -2001,8 +2021,7 @@ export interface components {
2001
2021
  metadata?: components["schemas"]["Metadata"];
2002
2022
  /** Format: uuid */
2003
2023
  payment_method_id?: string;
2004
- /** @enum {string} */
2005
- source?: "api" | "dashboard" | "iframe" | "system" | "subscription";
2024
+ source?: components["schemas"]["TransactionSourceType"];
2006
2025
  /** @enum {string} */
2007
2026
  state?: "requires_payment_method" | "requires_confirmation" | "verifying" | "requires_review" | "succeeded" | "failed" | "cancelled" | "errored";
2008
2027
  /** Format: date-time */
@@ -2016,8 +2035,7 @@ export interface components {
2016
2035
  /** Format: uuid */
2017
2036
  customer_id?: string;
2018
2037
  cycles?: number;
2019
- /** @enum {string} */
2020
- interval?: "day" | "week" | "month" | "year";
2038
+ interval?: components["schemas"]["SubscriptionIntervalType"];
2021
2039
  interval_count?: number;
2022
2040
  /** Format: uuid */
2023
2041
  subscription_plan_id?: string;
@@ -2053,8 +2071,7 @@ export interface components {
2053
2071
  customer_id?: string;
2054
2072
  /** Format: uuid */
2055
2073
  payment_method_id?: string;
2056
- /** @enum {string} */
2057
- interval?: "day" | "week" | "month" | "year";
2074
+ interval?: components["schemas"]["SubscriptionIntervalType"];
2058
2075
  interval_count?: number;
2059
2076
  /** @enum {string} */
2060
2077
  state?: "active" | "paused" | "past_due" | "cancelled";
@@ -2080,13 +2097,11 @@ export interface components {
2080
2097
  /** Format: uuid */
2081
2098
  product_id?: string;
2082
2099
  description?: string;
2083
- /** @enum {string} */
2084
- interval?: "day" | "week" | "month" | "year";
2100
+ interval?: components["schemas"]["SubscriptionIntervalType"];
2085
2101
  interval_count?: number;
2086
2102
  metadata?: components["schemas"]["Metadata"];
2087
2103
  name?: string;
2088
- /** @enum {string} */
2089
- plan_type?: "fixed" | "variable";
2104
+ plan_type?: components["schemas"]["SubscriptionPlanType"];
2090
2105
  trial_period_days?: number;
2091
2106
  };
2092
2107
  CreateSubscriptionPlanRequest: {
@@ -2111,13 +2126,11 @@ export interface components {
2111
2126
  currency?: string;
2112
2127
  cycles?: number;
2113
2128
  description?: string;
2114
- /** @enum {string} */
2115
- interval?: "day" | "week" | "month" | "year";
2129
+ interval?: components["schemas"]["SubscriptionIntervalType"];
2116
2130
  interval_count?: number;
2117
2131
  metadata?: components["schemas"]["Metadata"];
2118
2132
  name?: string;
2119
- /** @enum {string} */
2120
- plan_type?: "fixed" | "variable";
2133
+ plan_type?: components["schemas"]["SubscriptionPlanType"];
2121
2134
  trial_period_days?: number;
2122
2135
  /** Format: date-time */
2123
2136
  created_at?: string;
@@ -2164,10 +2177,8 @@ export interface components {
2164
2177
  /** Format: uuid */
2165
2178
  payment_method_id?: string;
2166
2179
  platform_fee?: number;
2167
- /** @enum {string} */
2168
- source?: "api" | "dashboard" | "iframe" | "system" | "subscription";
2169
- /** @enum {string} */
2170
- state?: "pending" | "processing" | "requires_review" | "succeeded" | "cancelled" | "failed";
2180
+ source?: components["schemas"]["TransactionSourceType"];
2181
+ state?: components["schemas"]["RefundStateType"];
2171
2182
  statement_descriptor?: string;
2172
2183
  /** Format: date-time */
2173
2184
  succeeded_at?: string;
@@ -2191,7 +2202,7 @@ export interface components {
2191
2202
  updated_at?: string;
2192
2203
  };
2193
2204
  CreateWebhookEndpointInput: {
2194
- events?: ("charge.cancelled" | "charge.created" | "charge.errored" | "charge.failed" | "charge.processing" | "charge.requires_capture" | "charge.requires_confirmation" | "charge.requires_review" | "charge.succeeded" | "customer.created" | "customer.updated" | "legal_entity.created" | "legal_entity.updated" | "legal_entity_principal.created" | "legal_entity_principal.updated" | "merchant.created" | "merchant.updated" | "payment_intent.cancelled" | "payment_intent.created" | "payment_intent.errored_authorization" | "payment_intent.errored_capture" | "payment_intent.errored_sale" | "payment_intent.processing_authorization" | "payment_intent.processing_capture" | "payment_intent.processing_sale" | "payment_intent.requires_capture" | "payment_intent.requires_confirmation" | "payment_intent.requires_payment_method" | "payment_intent.requires_review" | "payment_intent.succeeded" | "processor_transaction.completed" | "reconciliation.created" | "refund.cancelled" | "refund.created" | "refund.failed" | "refund.pending" | "refund.processing" | "refund.requires_review" | "refund.succeeded" | "void.created" | "void.failed" | "void.pending" | "void.processing" | "void.requires_review" | "void.succeeded")[];
2205
+ events?: components["schemas"]["WebhookEventType"][];
2195
2206
  metadata?: components["schemas"]["Metadata"];
2196
2207
  active?: boolean;
2197
2208
  url?: string;
@@ -2202,7 +2213,7 @@ export interface components {
2202
2213
  WebhookEndpoint: {
2203
2214
  /** Format: uuid */
2204
2215
  id?: string;
2205
- events?: ("charge.cancelled" | "charge.created" | "charge.errored" | "charge.failed" | "charge.processing" | "charge.requires_capture" | "charge.requires_confirmation" | "charge.requires_review" | "charge.succeeded" | "customer.created" | "customer.updated" | "legal_entity.created" | "legal_entity.updated" | "legal_entity_principal.created" | "legal_entity_principal.updated" | "merchant.created" | "merchant.updated" | "payment_intent.cancelled" | "payment_intent.created" | "payment_intent.errored_authorization" | "payment_intent.errored_capture" | "payment_intent.errored_sale" | "payment_intent.processing_authorization" | "payment_intent.processing_capture" | "payment_intent.processing_sale" | "payment_intent.requires_capture" | "payment_intent.requires_confirmation" | "payment_intent.requires_payment_method" | "payment_intent.requires_review" | "payment_intent.succeeded" | "processor_transaction.completed" | "reconciliation.created" | "refund.cancelled" | "refund.created" | "refund.failed" | "refund.pending" | "refund.processing" | "refund.requires_review" | "refund.succeeded" | "void.created" | "void.failed" | "void.pending" | "void.processing" | "void.requires_review" | "void.succeeded")[];
2216
+ events?: components["schemas"]["WebhookEventType"][];
2206
2217
  metadata?: components["schemas"]["Metadata"];
2207
2218
  secret?: string;
2208
2219
  url?: string;
@@ -2245,7 +2256,7 @@ export interface components {
2245
2256
  /** @description The ID of the payment transaction to filter by */
2246
2257
  PaymentTransactionIdQuery: string;
2247
2258
  /** @description The payout state to filter by */
2248
- PayoutStateQuery: "pending" | "succeeded" | "failed" | "accepted" | "rejected";
2259
+ PayoutStateQuery: components["schemas"]["PayoutStateType"];
2249
2260
  /** @description Number of results per page. */
2250
2261
  PerPageQuery: number;
2251
2262
  /** @description The phone to filter by */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amos.com/node",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "Node.js client for the Amos Pay API.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",