@amos.com/node 0.1.11 → 0.1.13
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 +93 -66
- package/dist/index.d.ts +93 -66
- package/openapi/schema.ts +93 -66
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1167,7 +1167,7 @@ interface components {
|
|
|
1167
1167
|
};
|
|
1168
1168
|
/** @description Decoded JWT payload for render token responses. */
|
|
1169
1169
|
RenderTokenJwt: {
|
|
1170
|
-
|
|
1170
|
+
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
|
|
1171
1171
|
env?: string;
|
|
1172
1172
|
origins?: string[];
|
|
1173
1173
|
/** Format: uuid */
|
|
@@ -1241,8 +1241,7 @@ interface components {
|
|
|
1241
1241
|
wallet_brand?: string;
|
|
1242
1242
|
wallet_last4?: string;
|
|
1243
1243
|
wallet_payload?: string;
|
|
1244
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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,51 @@ 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
|
+
AllowedPaymentMethodOptions: {
|
|
1521
|
+
moto?: boolean;
|
|
1522
|
+
} & {
|
|
1523
|
+
[key: string]: unknown;
|
|
1524
|
+
};
|
|
1525
|
+
AllowedPaymentMethodInput: {
|
|
1526
|
+
type: components["schemas"]["PaymentMethodType"];
|
|
1527
|
+
options?: components["schemas"]["AllowedPaymentMethodOptions"];
|
|
1528
|
+
};
|
|
1529
|
+
AllowedPaymentMethod: {
|
|
1530
|
+
type: components["schemas"]["PaymentMethodType"];
|
|
1531
|
+
options: components["schemas"]["AllowedPaymentMethodOptions"];
|
|
1532
|
+
};
|
|
1533
|
+
/** @enum {string} */
|
|
1534
|
+
PayoutDirectionType: "credit" | "debit";
|
|
1535
|
+
/** @enum {string} */
|
|
1536
|
+
PayoutStateType: "pending" | "succeeded" | "failed" | "accepted" | "rejected";
|
|
1537
|
+
/** @enum {string} */
|
|
1538
|
+
RefundStateType: "pending" | "processing" | "requires_review" | "succeeded" | "cancelled" | "failed";
|
|
1539
|
+
/** @enum {string} */
|
|
1540
|
+
SubscriptionIntervalType: "day" | "week" | "month" | "year";
|
|
1541
|
+
/** @enum {string} */
|
|
1542
|
+
SubscriptionPlanType: "fixed" | "variable";
|
|
1543
|
+
/** @enum {string} */
|
|
1544
|
+
TransactionSourceType: "api" | "dashboard" | "iframe" | "system" | "subscription";
|
|
1545
|
+
/** @enum {string} */
|
|
1546
|
+
WalletProviderType: "googlepay" | "applepay";
|
|
1547
|
+
/** @enum {string} */
|
|
1548
|
+
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
1549
|
CreateLegalEntityApplicationInput: {
|
|
1514
1550
|
legal_name?: string;
|
|
1515
|
-
entity_type?:
|
|
1516
|
-
ownership_type?:
|
|
1551
|
+
entity_type?: components["schemas"]["LegalEntityEntityType"];
|
|
1552
|
+
ownership_type?: components["schemas"]["LegalEntityOwnershipType"];
|
|
1517
1553
|
tax_id?: string;
|
|
1518
1554
|
contact_email?: string;
|
|
1519
1555
|
contact_phone?: string;
|
|
@@ -1543,8 +1579,8 @@ interface components {
|
|
|
1543
1579
|
/** Format: uuid */
|
|
1544
1580
|
id?: string;
|
|
1545
1581
|
legal_name?: string;
|
|
1546
|
-
entity_type?:
|
|
1547
|
-
ownership_type?:
|
|
1582
|
+
entity_type?: components["schemas"]["LegalEntityEntityType"];
|
|
1583
|
+
ownership_type?: components["schemas"]["LegalEntityOwnershipType"];
|
|
1548
1584
|
contact_email?: string;
|
|
1549
1585
|
contact_phone?: string;
|
|
1550
1586
|
business_address_line1?: string;
|
|
@@ -1561,8 +1597,8 @@ interface components {
|
|
|
1561
1597
|
legal_name?: string;
|
|
1562
1598
|
/** Format: uuid */
|
|
1563
1599
|
legal_entity_id?: string;
|
|
1564
|
-
entity_type?:
|
|
1565
|
-
ownership_type?:
|
|
1600
|
+
entity_type?: components["schemas"]["LegalEntityEntityType"];
|
|
1601
|
+
ownership_type?: components["schemas"]["LegalEntityOwnershipType"];
|
|
1566
1602
|
contact_email?: string;
|
|
1567
1603
|
contact_phone?: string;
|
|
1568
1604
|
business_address_line1?: string;
|
|
@@ -1577,10 +1613,10 @@ interface components {
|
|
|
1577
1613
|
};
|
|
1578
1614
|
CreateMerchantApplicationInput: {
|
|
1579
1615
|
annual_credit_card_sales_volume?: number;
|
|
1616
|
+
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethodInput"][];
|
|
1580
1617
|
bank_account_number?: string;
|
|
1581
1618
|
bank_routing_number?: string;
|
|
1582
|
-
|
|
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";
|
|
1619
|
+
business_category?: components["schemas"]["MerchantBusinessCategoryType"];
|
|
1584
1620
|
business_description?: string;
|
|
1585
1621
|
city?: string;
|
|
1586
1622
|
country_code?: string;
|
|
@@ -1606,8 +1642,8 @@ interface components {
|
|
|
1606
1642
|
/** Format: uuid */
|
|
1607
1643
|
id?: string;
|
|
1608
1644
|
annual_credit_card_sales_volume?: number;
|
|
1609
|
-
|
|
1610
|
-
business_category?: "
|
|
1645
|
+
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
|
|
1646
|
+
business_category?: components["schemas"]["MerchantBusinessCategoryType"];
|
|
1611
1647
|
business_description?: string;
|
|
1612
1648
|
city?: string;
|
|
1613
1649
|
country_code?: string;
|
|
@@ -1644,6 +1680,7 @@ interface components {
|
|
|
1644
1680
|
/** Format: uuid */
|
|
1645
1681
|
legal_entity_id?: string;
|
|
1646
1682
|
annual_credit_card_sales_volume?: number;
|
|
1683
|
+
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
|
|
1647
1684
|
has_accepted_credit_cards?: boolean;
|
|
1648
1685
|
dba_name?: string;
|
|
1649
1686
|
metadata?: components["schemas"]["Metadata"];
|
|
@@ -1676,6 +1713,7 @@ interface components {
|
|
|
1676
1713
|
description?: string | null;
|
|
1677
1714
|
statement_descriptor?: string;
|
|
1678
1715
|
metadata?: components["schemas"]["Metadata"];
|
|
1716
|
+
recurring_payment?: components["schemas"]["RecurringPayment"];
|
|
1679
1717
|
};
|
|
1680
1718
|
CreatePaymentIntentRequest: {
|
|
1681
1719
|
payment_intent: components["schemas"]["CreatePaymentIntentInput"];
|
|
@@ -1699,6 +1737,7 @@ interface components {
|
|
|
1699
1737
|
payment_method_id?: string;
|
|
1700
1738
|
amount?: number;
|
|
1701
1739
|
metadata?: components["schemas"]["Metadata"];
|
|
1740
|
+
recurring_payment?: components["schemas"]["RecurringPayment"];
|
|
1702
1741
|
};
|
|
1703
1742
|
UpdatePaymentIntentRequest: {
|
|
1704
1743
|
payment_intent: components["schemas"]["UpdatePaymentIntentInput"];
|
|
@@ -1717,10 +1756,10 @@ interface components {
|
|
|
1717
1756
|
customer_id?: string;
|
|
1718
1757
|
description?: string;
|
|
1719
1758
|
metadata?: components["schemas"]["Metadata"];
|
|
1759
|
+
recurring_payment?: components["schemas"]["RecurringPayment"];
|
|
1720
1760
|
/** Format: uuid */
|
|
1721
1761
|
payment_method_id?: string;
|
|
1722
|
-
|
|
1723
|
-
source?: "api" | "dashboard" | "iframe" | "system" | "subscription";
|
|
1762
|
+
source?: components["schemas"]["TransactionSourceType"];
|
|
1724
1763
|
/** @enum {string} */
|
|
1725
1764
|
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
1765
|
statement_descriptor?: string;
|
|
@@ -1729,11 +1768,13 @@ interface components {
|
|
|
1729
1768
|
/** Format: date-time */
|
|
1730
1769
|
updated_at?: string;
|
|
1731
1770
|
};
|
|
1771
|
+
RecurringPayment: {
|
|
1772
|
+
network_transaction_id?: string;
|
|
1773
|
+
};
|
|
1732
1774
|
CreatePaymentLinkInput: {
|
|
1733
1775
|
slug?: string;
|
|
1734
1776
|
active?: boolean;
|
|
1735
|
-
|
|
1736
|
-
amount_type?: "fixed" | "open";
|
|
1777
|
+
amount_type?: components["schemas"]["PaymentLinkAmountType"];
|
|
1737
1778
|
amount?: number;
|
|
1738
1779
|
/** Format: uri */
|
|
1739
1780
|
image_url?: string;
|
|
@@ -1748,7 +1789,7 @@ interface components {
|
|
|
1748
1789
|
title?: string;
|
|
1749
1790
|
/** Format: uri */
|
|
1750
1791
|
cancel_url?: string;
|
|
1751
|
-
|
|
1792
|
+
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethodInput"][];
|
|
1752
1793
|
metadata?: components["schemas"]["Metadata"];
|
|
1753
1794
|
};
|
|
1754
1795
|
CreatePaymentLinkRequest: {
|
|
@@ -1763,8 +1804,7 @@ interface components {
|
|
|
1763
1804
|
account_id?: string;
|
|
1764
1805
|
slug?: string;
|
|
1765
1806
|
active?: boolean;
|
|
1766
|
-
|
|
1767
|
-
amount_type?: "fixed" | "open";
|
|
1807
|
+
amount_type?: components["schemas"]["PaymentLinkAmountType"];
|
|
1768
1808
|
amount?: number;
|
|
1769
1809
|
/** Format: uri */
|
|
1770
1810
|
image_url?: string;
|
|
@@ -1779,7 +1819,7 @@ interface components {
|
|
|
1779
1819
|
title?: string;
|
|
1780
1820
|
/** Format: uri */
|
|
1781
1821
|
cancel_url?: string;
|
|
1782
|
-
|
|
1822
|
+
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
|
|
1783
1823
|
metadata?: components["schemas"]["Metadata"];
|
|
1784
1824
|
};
|
|
1785
1825
|
PaymentMethod: {
|
|
@@ -1788,8 +1828,7 @@ interface components {
|
|
|
1788
1828
|
/** Format: uuid */
|
|
1789
1829
|
customer_id?: string;
|
|
1790
1830
|
metadata?: components["schemas"]["Metadata"];
|
|
1791
|
-
|
|
1792
|
-
type?: "card" | "bank_account";
|
|
1831
|
+
type?: components["schemas"]["PaymentMethodType"];
|
|
1793
1832
|
bank_account_profile?: components["schemas"]["BankAccountProfile"];
|
|
1794
1833
|
billing_address?: components["schemas"]["BillingAddress"];
|
|
1795
1834
|
card_profile?: components["schemas"]["CardProfile"];
|
|
@@ -1803,8 +1842,7 @@ interface components {
|
|
|
1803
1842
|
external_account_id: string;
|
|
1804
1843
|
amount: number;
|
|
1805
1844
|
currency?: string;
|
|
1806
|
-
|
|
1807
|
-
direction: "credit" | "debit";
|
|
1845
|
+
direction: components["schemas"]["PayoutDirectionType"];
|
|
1808
1846
|
metadata?: components["schemas"]["Metadata"];
|
|
1809
1847
|
};
|
|
1810
1848
|
CreatePayoutRequest: {
|
|
@@ -1817,8 +1855,7 @@ interface components {
|
|
|
1817
1855
|
external_account_id: string;
|
|
1818
1856
|
amount: number;
|
|
1819
1857
|
currency?: string;
|
|
1820
|
-
|
|
1821
|
-
direction: "credit" | "debit";
|
|
1858
|
+
direction: components["schemas"]["PayoutDirectionType"];
|
|
1822
1859
|
metadata?: components["schemas"]["Metadata"];
|
|
1823
1860
|
};
|
|
1824
1861
|
CreateBulkPayoutsRequest: {
|
|
@@ -1833,11 +1870,9 @@ interface components {
|
|
|
1833
1870
|
external_account_id?: string;
|
|
1834
1871
|
amount?: number;
|
|
1835
1872
|
currency?: string;
|
|
1836
|
-
|
|
1837
|
-
direction?: "credit" | "debit";
|
|
1873
|
+
direction?: components["schemas"]["PayoutDirectionType"];
|
|
1838
1874
|
metadata?: components["schemas"]["Metadata"];
|
|
1839
|
-
|
|
1840
|
-
state?: "pending" | "succeeded" | "failed" | "accepted" | "rejected";
|
|
1875
|
+
state?: components["schemas"]["PayoutStateType"];
|
|
1841
1876
|
/** Format: date-time */
|
|
1842
1877
|
created_at?: string;
|
|
1843
1878
|
/** Format: date-time */
|
|
@@ -1864,6 +1899,7 @@ interface components {
|
|
|
1864
1899
|
/** Format: uuid */
|
|
1865
1900
|
processor_transaction_id?: string;
|
|
1866
1901
|
processor_reference?: string;
|
|
1902
|
+
network_transaction_id?: string;
|
|
1867
1903
|
/** @enum {string} */
|
|
1868
1904
|
transaction_type?: "authorization" | "authorization_reversal" | "capture" | "credit" | "echeck_credit" | "echeck_sale" | "echeck_void" | "sale" | "void";
|
|
1869
1905
|
/** Format: date-time */
|
|
@@ -1944,10 +1980,8 @@ interface components {
|
|
|
1944
1980
|
/** Format: uuid */
|
|
1945
1981
|
payment_method_id?: string;
|
|
1946
1982
|
platform_fee?: number;
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
/** @enum {string} */
|
|
1950
|
-
state?: "pending" | "processing" | "requires_review" | "succeeded" | "cancelled" | "failed";
|
|
1983
|
+
source?: components["schemas"]["TransactionSourceType"];
|
|
1984
|
+
state?: components["schemas"]["RefundStateType"];
|
|
1951
1985
|
statement_descriptor?: string;
|
|
1952
1986
|
/** Format: date-time */
|
|
1953
1987
|
succeeded_at?: string;
|
|
@@ -1959,8 +1993,9 @@ interface components {
|
|
|
1959
1993
|
allowed_reverse_action?: "void" | null;
|
|
1960
1994
|
};
|
|
1961
1995
|
CreateRenderTemplateInput: {
|
|
1962
|
-
|
|
1996
|
+
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethodInput"][];
|
|
1963
1997
|
currency?: string;
|
|
1998
|
+
moto?: boolean;
|
|
1964
1999
|
origin_ids?: string[];
|
|
1965
2000
|
};
|
|
1966
2001
|
CreateRenderTemplateRequest: {
|
|
@@ -1971,8 +2006,9 @@ interface components {
|
|
|
1971
2006
|
id?: string;
|
|
1972
2007
|
/** Format: uuid */
|
|
1973
2008
|
organization_id?: string;
|
|
1974
|
-
|
|
2009
|
+
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
|
|
1975
2010
|
currency?: string;
|
|
2011
|
+
moto?: boolean;
|
|
1976
2012
|
};
|
|
1977
2013
|
CreateSetupIntentInput: {
|
|
1978
2014
|
/** Format: uuid */
|
|
@@ -2004,8 +2040,7 @@ interface components {
|
|
|
2004
2040
|
metadata?: components["schemas"]["Metadata"];
|
|
2005
2041
|
/** Format: uuid */
|
|
2006
2042
|
payment_method_id?: string;
|
|
2007
|
-
|
|
2008
|
-
source?: "api" | "dashboard" | "iframe" | "system" | "subscription";
|
|
2043
|
+
source?: components["schemas"]["TransactionSourceType"];
|
|
2009
2044
|
/** @enum {string} */
|
|
2010
2045
|
state?: "requires_payment_method" | "requires_confirmation" | "verifying" | "requires_review" | "succeeded" | "failed" | "cancelled" | "errored";
|
|
2011
2046
|
/** Format: date-time */
|
|
@@ -2019,8 +2054,7 @@ interface components {
|
|
|
2019
2054
|
/** Format: uuid */
|
|
2020
2055
|
customer_id?: string;
|
|
2021
2056
|
cycles?: number;
|
|
2022
|
-
|
|
2023
|
-
interval?: "day" | "week" | "month" | "year";
|
|
2057
|
+
interval?: components["schemas"]["SubscriptionIntervalType"];
|
|
2024
2058
|
interval_count?: number;
|
|
2025
2059
|
/** Format: uuid */
|
|
2026
2060
|
subscription_plan_id?: string;
|
|
@@ -2056,8 +2090,7 @@ interface components {
|
|
|
2056
2090
|
customer_id?: string;
|
|
2057
2091
|
/** Format: uuid */
|
|
2058
2092
|
payment_method_id?: string;
|
|
2059
|
-
|
|
2060
|
-
interval?: "day" | "week" | "month" | "year";
|
|
2093
|
+
interval?: components["schemas"]["SubscriptionIntervalType"];
|
|
2061
2094
|
interval_count?: number;
|
|
2062
2095
|
/** @enum {string} */
|
|
2063
2096
|
state?: "active" | "paused" | "past_due" | "cancelled";
|
|
@@ -2083,13 +2116,11 @@ interface components {
|
|
|
2083
2116
|
/** Format: uuid */
|
|
2084
2117
|
product_id?: string;
|
|
2085
2118
|
description?: string;
|
|
2086
|
-
|
|
2087
|
-
interval?: "day" | "week" | "month" | "year";
|
|
2119
|
+
interval?: components["schemas"]["SubscriptionIntervalType"];
|
|
2088
2120
|
interval_count?: number;
|
|
2089
2121
|
metadata?: components["schemas"]["Metadata"];
|
|
2090
2122
|
name?: string;
|
|
2091
|
-
|
|
2092
|
-
plan_type?: "fixed" | "variable";
|
|
2123
|
+
plan_type?: components["schemas"]["SubscriptionPlanType"];
|
|
2093
2124
|
trial_period_days?: number;
|
|
2094
2125
|
};
|
|
2095
2126
|
CreateSubscriptionPlanRequest: {
|
|
@@ -2114,13 +2145,11 @@ interface components {
|
|
|
2114
2145
|
currency?: string;
|
|
2115
2146
|
cycles?: number;
|
|
2116
2147
|
description?: string;
|
|
2117
|
-
|
|
2118
|
-
interval?: "day" | "week" | "month" | "year";
|
|
2148
|
+
interval?: components["schemas"]["SubscriptionIntervalType"];
|
|
2119
2149
|
interval_count?: number;
|
|
2120
2150
|
metadata?: components["schemas"]["Metadata"];
|
|
2121
2151
|
name?: string;
|
|
2122
|
-
|
|
2123
|
-
plan_type?: "fixed" | "variable";
|
|
2152
|
+
plan_type?: components["schemas"]["SubscriptionPlanType"];
|
|
2124
2153
|
trial_period_days?: number;
|
|
2125
2154
|
/** Format: date-time */
|
|
2126
2155
|
created_at?: string;
|
|
@@ -2167,10 +2196,8 @@ interface components {
|
|
|
2167
2196
|
/** Format: uuid */
|
|
2168
2197
|
payment_method_id?: string;
|
|
2169
2198
|
platform_fee?: number;
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
/** @enum {string} */
|
|
2173
|
-
state?: "pending" | "processing" | "requires_review" | "succeeded" | "cancelled" | "failed";
|
|
2199
|
+
source?: components["schemas"]["TransactionSourceType"];
|
|
2200
|
+
state?: components["schemas"]["RefundStateType"];
|
|
2174
2201
|
statement_descriptor?: string;
|
|
2175
2202
|
/** Format: date-time */
|
|
2176
2203
|
succeeded_at?: string;
|
|
@@ -2194,7 +2221,7 @@ interface components {
|
|
|
2194
2221
|
updated_at?: string;
|
|
2195
2222
|
};
|
|
2196
2223
|
CreateWebhookEndpointInput: {
|
|
2197
|
-
events?:
|
|
2224
|
+
events?: components["schemas"]["WebhookEventType"][];
|
|
2198
2225
|
metadata?: components["schemas"]["Metadata"];
|
|
2199
2226
|
active?: boolean;
|
|
2200
2227
|
url?: string;
|
|
@@ -2205,7 +2232,7 @@ interface components {
|
|
|
2205
2232
|
WebhookEndpoint: {
|
|
2206
2233
|
/** Format: uuid */
|
|
2207
2234
|
id?: string;
|
|
2208
|
-
events?:
|
|
2235
|
+
events?: components["schemas"]["WebhookEventType"][];
|
|
2209
2236
|
metadata?: components["schemas"]["Metadata"];
|
|
2210
2237
|
secret?: string;
|
|
2211
2238
|
url?: string;
|
|
@@ -2248,7 +2275,7 @@ interface components {
|
|
|
2248
2275
|
/** @description The ID of the payment transaction to filter by */
|
|
2249
2276
|
PaymentTransactionIdQuery: string;
|
|
2250
2277
|
/** @description The payout state to filter by */
|
|
2251
|
-
PayoutStateQuery: "
|
|
2278
|
+
PayoutStateQuery: components["schemas"]["PayoutStateType"];
|
|
2252
2279
|
/** @description Number of results per page. */
|
|
2253
2280
|
PerPageQuery: number;
|
|
2254
2281
|
/** @description The phone to filter by */
|