@amos.com/node 0.1.12 → 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 +21 -5
- package/dist/index.d.ts +21 -5
- package/openapi/schema.ts +21 -5
- package/package.json +4 -4
package/dist/index.d.mts
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 */
|
|
@@ -1517,6 +1517,19 @@ interface components {
|
|
|
1517
1517
|
PaymentLinkAmountType: "fixed" | "open";
|
|
1518
1518
|
/** @enum {string} */
|
|
1519
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
|
+
};
|
|
1520
1533
|
/** @enum {string} */
|
|
1521
1534
|
PayoutDirectionType: "credit" | "debit";
|
|
1522
1535
|
/** @enum {string} */
|
|
@@ -1600,6 +1613,7 @@ interface components {
|
|
|
1600
1613
|
};
|
|
1601
1614
|
CreateMerchantApplicationInput: {
|
|
1602
1615
|
annual_credit_card_sales_volume?: number;
|
|
1616
|
+
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethodInput"][];
|
|
1603
1617
|
bank_account_number?: string;
|
|
1604
1618
|
bank_routing_number?: string;
|
|
1605
1619
|
business_category?: components["schemas"]["MerchantBusinessCategoryType"];
|
|
@@ -1628,6 +1642,7 @@ interface components {
|
|
|
1628
1642
|
/** Format: uuid */
|
|
1629
1643
|
id?: string;
|
|
1630
1644
|
annual_credit_card_sales_volume?: number;
|
|
1645
|
+
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
|
|
1631
1646
|
business_category?: components["schemas"]["MerchantBusinessCategoryType"];
|
|
1632
1647
|
business_description?: string;
|
|
1633
1648
|
city?: string;
|
|
@@ -1665,6 +1680,7 @@ interface components {
|
|
|
1665
1680
|
/** Format: uuid */
|
|
1666
1681
|
legal_entity_id?: string;
|
|
1667
1682
|
annual_credit_card_sales_volume?: number;
|
|
1683
|
+
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
|
|
1668
1684
|
has_accepted_credit_cards?: boolean;
|
|
1669
1685
|
dba_name?: string;
|
|
1670
1686
|
metadata?: components["schemas"]["Metadata"];
|
|
@@ -1773,7 +1789,7 @@ interface components {
|
|
|
1773
1789
|
title?: string;
|
|
1774
1790
|
/** Format: uri */
|
|
1775
1791
|
cancel_url?: string;
|
|
1776
|
-
|
|
1792
|
+
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethodInput"][];
|
|
1777
1793
|
metadata?: components["schemas"]["Metadata"];
|
|
1778
1794
|
};
|
|
1779
1795
|
CreatePaymentLinkRequest: {
|
|
@@ -1803,7 +1819,7 @@ interface components {
|
|
|
1803
1819
|
title?: string;
|
|
1804
1820
|
/** Format: uri */
|
|
1805
1821
|
cancel_url?: string;
|
|
1806
|
-
|
|
1822
|
+
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
|
|
1807
1823
|
metadata?: components["schemas"]["Metadata"];
|
|
1808
1824
|
};
|
|
1809
1825
|
PaymentMethod: {
|
|
@@ -1977,7 +1993,7 @@ interface components {
|
|
|
1977
1993
|
allowed_reverse_action?: "void" | null;
|
|
1978
1994
|
};
|
|
1979
1995
|
CreateRenderTemplateInput: {
|
|
1980
|
-
|
|
1996
|
+
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethodInput"][];
|
|
1981
1997
|
currency?: string;
|
|
1982
1998
|
moto?: boolean;
|
|
1983
1999
|
origin_ids?: string[];
|
|
@@ -1990,7 +2006,7 @@ interface components {
|
|
|
1990
2006
|
id?: string;
|
|
1991
2007
|
/** Format: uuid */
|
|
1992
2008
|
organization_id?: string;
|
|
1993
|
-
|
|
2009
|
+
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
|
|
1994
2010
|
currency?: string;
|
|
1995
2011
|
moto?: boolean;
|
|
1996
2012
|
};
|
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 */
|
|
@@ -1517,6 +1517,19 @@ interface components {
|
|
|
1517
1517
|
PaymentLinkAmountType: "fixed" | "open";
|
|
1518
1518
|
/** @enum {string} */
|
|
1519
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
|
+
};
|
|
1520
1533
|
/** @enum {string} */
|
|
1521
1534
|
PayoutDirectionType: "credit" | "debit";
|
|
1522
1535
|
/** @enum {string} */
|
|
@@ -1600,6 +1613,7 @@ interface components {
|
|
|
1600
1613
|
};
|
|
1601
1614
|
CreateMerchantApplicationInput: {
|
|
1602
1615
|
annual_credit_card_sales_volume?: number;
|
|
1616
|
+
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethodInput"][];
|
|
1603
1617
|
bank_account_number?: string;
|
|
1604
1618
|
bank_routing_number?: string;
|
|
1605
1619
|
business_category?: components["schemas"]["MerchantBusinessCategoryType"];
|
|
@@ -1628,6 +1642,7 @@ interface components {
|
|
|
1628
1642
|
/** Format: uuid */
|
|
1629
1643
|
id?: string;
|
|
1630
1644
|
annual_credit_card_sales_volume?: number;
|
|
1645
|
+
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
|
|
1631
1646
|
business_category?: components["schemas"]["MerchantBusinessCategoryType"];
|
|
1632
1647
|
business_description?: string;
|
|
1633
1648
|
city?: string;
|
|
@@ -1665,6 +1680,7 @@ interface components {
|
|
|
1665
1680
|
/** Format: uuid */
|
|
1666
1681
|
legal_entity_id?: string;
|
|
1667
1682
|
annual_credit_card_sales_volume?: number;
|
|
1683
|
+
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
|
|
1668
1684
|
has_accepted_credit_cards?: boolean;
|
|
1669
1685
|
dba_name?: string;
|
|
1670
1686
|
metadata?: components["schemas"]["Metadata"];
|
|
@@ -1773,7 +1789,7 @@ interface components {
|
|
|
1773
1789
|
title?: string;
|
|
1774
1790
|
/** Format: uri */
|
|
1775
1791
|
cancel_url?: string;
|
|
1776
|
-
|
|
1792
|
+
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethodInput"][];
|
|
1777
1793
|
metadata?: components["schemas"]["Metadata"];
|
|
1778
1794
|
};
|
|
1779
1795
|
CreatePaymentLinkRequest: {
|
|
@@ -1803,7 +1819,7 @@ interface components {
|
|
|
1803
1819
|
title?: string;
|
|
1804
1820
|
/** Format: uri */
|
|
1805
1821
|
cancel_url?: string;
|
|
1806
|
-
|
|
1822
|
+
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
|
|
1807
1823
|
metadata?: components["schemas"]["Metadata"];
|
|
1808
1824
|
};
|
|
1809
1825
|
PaymentMethod: {
|
|
@@ -1977,7 +1993,7 @@ interface components {
|
|
|
1977
1993
|
allowed_reverse_action?: "void" | null;
|
|
1978
1994
|
};
|
|
1979
1995
|
CreateRenderTemplateInput: {
|
|
1980
|
-
|
|
1996
|
+
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethodInput"][];
|
|
1981
1997
|
currency?: string;
|
|
1982
1998
|
moto?: boolean;
|
|
1983
1999
|
origin_ids?: string[];
|
|
@@ -1990,7 +2006,7 @@ interface components {
|
|
|
1990
2006
|
id?: string;
|
|
1991
2007
|
/** Format: uuid */
|
|
1992
2008
|
organization_id?: string;
|
|
1993
|
-
|
|
2009
|
+
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
|
|
1994
2010
|
currency?: string;
|
|
1995
2011
|
moto?: boolean;
|
|
1996
2012
|
};
|
package/openapi/schema.ts
CHANGED
|
@@ -1164,7 +1164,7 @@ export interface components {
|
|
|
1164
1164
|
};
|
|
1165
1165
|
/** @description Decoded JWT payload for render token responses. */
|
|
1166
1166
|
RenderTokenJwt: {
|
|
1167
|
-
|
|
1167
|
+
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
|
|
1168
1168
|
env?: string;
|
|
1169
1169
|
origins?: string[];
|
|
1170
1170
|
/** Format: uuid */
|
|
@@ -1514,6 +1514,19 @@ export interface components {
|
|
|
1514
1514
|
PaymentLinkAmountType: "fixed" | "open";
|
|
1515
1515
|
/** @enum {string} */
|
|
1516
1516
|
PaymentMethodType: "card" | "bank_account";
|
|
1517
|
+
AllowedPaymentMethodOptions: {
|
|
1518
|
+
moto?: boolean;
|
|
1519
|
+
} & {
|
|
1520
|
+
[key: string]: unknown;
|
|
1521
|
+
};
|
|
1522
|
+
AllowedPaymentMethodInput: {
|
|
1523
|
+
type: components["schemas"]["PaymentMethodType"];
|
|
1524
|
+
options?: components["schemas"]["AllowedPaymentMethodOptions"];
|
|
1525
|
+
};
|
|
1526
|
+
AllowedPaymentMethod: {
|
|
1527
|
+
type: components["schemas"]["PaymentMethodType"];
|
|
1528
|
+
options: components["schemas"]["AllowedPaymentMethodOptions"];
|
|
1529
|
+
};
|
|
1517
1530
|
/** @enum {string} */
|
|
1518
1531
|
PayoutDirectionType: "credit" | "debit";
|
|
1519
1532
|
/** @enum {string} */
|
|
@@ -1597,6 +1610,7 @@ export interface components {
|
|
|
1597
1610
|
};
|
|
1598
1611
|
CreateMerchantApplicationInput: {
|
|
1599
1612
|
annual_credit_card_sales_volume?: number;
|
|
1613
|
+
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethodInput"][];
|
|
1600
1614
|
bank_account_number?: string;
|
|
1601
1615
|
bank_routing_number?: string;
|
|
1602
1616
|
business_category?: components["schemas"]["MerchantBusinessCategoryType"];
|
|
@@ -1625,6 +1639,7 @@ export interface components {
|
|
|
1625
1639
|
/** Format: uuid */
|
|
1626
1640
|
id?: string;
|
|
1627
1641
|
annual_credit_card_sales_volume?: number;
|
|
1642
|
+
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
|
|
1628
1643
|
business_category?: components["schemas"]["MerchantBusinessCategoryType"];
|
|
1629
1644
|
business_description?: string;
|
|
1630
1645
|
city?: string;
|
|
@@ -1662,6 +1677,7 @@ export interface components {
|
|
|
1662
1677
|
/** Format: uuid */
|
|
1663
1678
|
legal_entity_id?: string;
|
|
1664
1679
|
annual_credit_card_sales_volume?: number;
|
|
1680
|
+
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
|
|
1665
1681
|
has_accepted_credit_cards?: boolean;
|
|
1666
1682
|
dba_name?: string;
|
|
1667
1683
|
metadata?: components["schemas"]["Metadata"];
|
|
@@ -1770,7 +1786,7 @@ export interface components {
|
|
|
1770
1786
|
title?: string;
|
|
1771
1787
|
/** Format: uri */
|
|
1772
1788
|
cancel_url?: string;
|
|
1773
|
-
|
|
1789
|
+
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethodInput"][];
|
|
1774
1790
|
metadata?: components["schemas"]["Metadata"];
|
|
1775
1791
|
};
|
|
1776
1792
|
CreatePaymentLinkRequest: {
|
|
@@ -1800,7 +1816,7 @@ export interface components {
|
|
|
1800
1816
|
title?: string;
|
|
1801
1817
|
/** Format: uri */
|
|
1802
1818
|
cancel_url?: string;
|
|
1803
|
-
|
|
1819
|
+
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
|
|
1804
1820
|
metadata?: components["schemas"]["Metadata"];
|
|
1805
1821
|
};
|
|
1806
1822
|
PaymentMethod: {
|
|
@@ -1974,7 +1990,7 @@ export interface components {
|
|
|
1974
1990
|
allowed_reverse_action?: "void" | null;
|
|
1975
1991
|
};
|
|
1976
1992
|
CreateRenderTemplateInput: {
|
|
1977
|
-
|
|
1993
|
+
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethodInput"][];
|
|
1978
1994
|
currency?: string;
|
|
1979
1995
|
moto?: boolean;
|
|
1980
1996
|
origin_ids?: string[];
|
|
@@ -1987,7 +2003,7 @@ export interface components {
|
|
|
1987
2003
|
id?: string;
|
|
1988
2004
|
/** Format: uuid */
|
|
1989
2005
|
organization_id?: string;
|
|
1990
|
-
|
|
2006
|
+
allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
|
|
1991
2007
|
currency?: string;
|
|
1992
2008
|
moto?: boolean;
|
|
1993
2009
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amos.com/node",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"description": "Node.js client for the Amos Pay API.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
"openapi-fetch": "0.17.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@biomejs/biome": "2.
|
|
50
|
+
"@biomejs/biome": "2.5.1",
|
|
51
51
|
"@changesets/cli": "2.31.0",
|
|
52
|
-
"@types/node": "
|
|
52
|
+
"@types/node": "26.0.0",
|
|
53
53
|
"openapi-typescript": "7.13.0",
|
|
54
|
-
"tsup": "
|
|
54
|
+
"tsup": "8.5.1",
|
|
55
55
|
"typescript": "5.9.3"
|
|
56
56
|
},
|
|
57
57
|
"engines": {
|