@amos.com/node 0.1.17 → 0.1.19

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
@@ -1596,23 +1596,69 @@ interface components {
1596
1596
  billing_address_attributes?: components["schemas"]["BillingAddressInput"];
1597
1597
  card_profile_attributes: components["schemas"]["CardProfileInput"];
1598
1598
  };
1599
- AllowedPaymentMethodOptions: {
1599
+ AllowedCardPaymentMethodOptions: {
1600
1600
  moto?: boolean;
1601
- } & {
1602
- [key: string]: unknown;
1603
1601
  };
1604
- AllowedPaymentMethodInput: {
1605
- type: components["schemas"]["PaymentMethodType"];
1606
- options?: components["schemas"]["AllowedPaymentMethodOptions"];
1602
+ /** @description No configurable options for bank account payment methods. */
1603
+ AllowedBankAccountPaymentMethodOptions: Record<string, never>;
1604
+ /** @description No configurable options for Google Pay payment methods. */
1605
+ AllowedGooglePayPaymentMethodOptions: Record<string, never>;
1606
+ AllowedCardPaymentMethodInput: {
1607
+ /**
1608
+ * @description discriminator enum property added by openapi-typescript
1609
+ * @enum {string}
1610
+ */
1611
+ type: "card";
1612
+ options?: components["schemas"]["AllowedCardPaymentMethodOptions"];
1613
+ };
1614
+ AllowedBankAccountPaymentMethodInput: {
1615
+ /**
1616
+ * @description discriminator enum property added by openapi-typescript
1617
+ * @enum {string}
1618
+ */
1619
+ type: "bank_account";
1620
+ options?: components["schemas"]["AllowedBankAccountPaymentMethodOptions"];
1621
+ };
1622
+ AllowedGooglePayPaymentMethodInput: {
1623
+ /**
1624
+ * @description discriminator enum property added by openapi-typescript
1625
+ * @enum {string}
1626
+ */
1627
+ type: "googlepay";
1628
+ options?: components["schemas"]["AllowedGooglePayPaymentMethodOptions"];
1607
1629
  };
1608
- AllowedPaymentMethod: {
1609
- type: components["schemas"]["PaymentMethodType"];
1610
- options: components["schemas"]["AllowedPaymentMethodOptions"];
1630
+ /** @description Payment method allowed on a render template, payment link, or merchant application. */
1631
+ AllowedPaymentMethodInput: components["schemas"]["AllowedCardPaymentMethodInput"] | components["schemas"]["AllowedBankAccountPaymentMethodInput"] | components["schemas"]["AllowedGooglePayPaymentMethodInput"];
1632
+ AllowedCardPaymentMethod: {
1633
+ /**
1634
+ * @description discriminator enum property added by openapi-typescript
1635
+ * @enum {string}
1636
+ */
1637
+ type: "card";
1638
+ options: components["schemas"]["AllowedCardPaymentMethodOptions"];
1639
+ };
1640
+ AllowedBankAccountPaymentMethod: {
1641
+ /**
1642
+ * @description discriminator enum property added by openapi-typescript
1643
+ * @enum {string}
1644
+ */
1645
+ type: "bank_account";
1646
+ options: components["schemas"]["AllowedBankAccountPaymentMethodOptions"];
1647
+ };
1648
+ AllowedGooglePayPaymentMethod: {
1649
+ /**
1650
+ * @description discriminator enum property added by openapi-typescript
1651
+ * @enum {string}
1652
+ */
1653
+ type: "googlepay";
1654
+ options: components["schemas"]["AllowedGooglePayPaymentMethodOptions"];
1611
1655
  };
1656
+ /** @description Allowed payment method returned in API responses and render token JWT payloads. */
1657
+ AllowedPaymentMethod: components["schemas"]["AllowedCardPaymentMethod"] | components["schemas"]["AllowedBankAccountPaymentMethod"] | components["schemas"]["AllowedGooglePayPaymentMethod"];
1612
1658
  /** @enum {string} */
1613
1659
  PayoutDirectionType: "credit" | "debit";
1614
1660
  /** @enum {string} */
1615
- PayoutStateType: "pending" | "succeeded" | "failed" | "accepted" | "rejected";
1661
+ PayoutStateType: "pending" | "processing" | "succeeded" | "failed" | "errored" | "accepted" | "rejected";
1616
1662
  /** @enum {string} */
1617
1663
  RefundStateType: "pending" | "processing" | "requires_review" | "succeeded" | "cancelled" | "failed";
1618
1664
  /** @enum {string} */
@@ -1928,6 +1974,8 @@ interface components {
1928
1974
  amount: number;
1929
1975
  currency?: string;
1930
1976
  direction: components["schemas"]["PayoutDirectionType"];
1977
+ prefix?: string;
1978
+ addenda?: string | null;
1931
1979
  metadata?: components["schemas"]["Metadata"];
1932
1980
  };
1933
1981
  CreatePayoutRequest: {
@@ -1941,6 +1989,8 @@ interface components {
1941
1989
  amount: number;
1942
1990
  currency?: string;
1943
1991
  direction: components["schemas"]["PayoutDirectionType"];
1992
+ prefix?: string;
1993
+ addenda?: string | null;
1944
1994
  metadata?: components["schemas"]["Metadata"];
1945
1995
  };
1946
1996
  CreateBulkPayoutsRequest: {
@@ -1951,12 +2001,15 @@ interface components {
1951
2001
  id?: string;
1952
2002
  /** Format: uuid */
1953
2003
  account_id?: string;
2004
+ addenda?: string | null;
1954
2005
  /** Format: uuid */
1955
2006
  external_account_id?: string;
1956
2007
  amount?: number;
1957
2008
  currency?: string;
1958
2009
  direction?: components["schemas"]["PayoutDirectionType"];
1959
2010
  metadata?: components["schemas"]["Metadata"];
2011
+ prefix?: string;
2012
+ public_id?: string;
1960
2013
  state?: components["schemas"]["PayoutStateType"];
1961
2014
  /** Format: date-time */
1962
2015
  created_at?: string;
@@ -2366,6 +2419,8 @@ interface components {
2366
2419
  PaymentMethodIdQuery: string;
2367
2420
  /** @description The ID of the payment transaction to filter by */
2368
2421
  PaymentTransactionIdQuery: string;
2422
+ /** @description The payout direction to filter by */
2423
+ PayoutDirectionQuery: components["schemas"]["PayoutDirectionType"];
2369
2424
  /** @description The payout state to filter by */
2370
2425
  PayoutStateQuery: components["schemas"]["PayoutStateType"];
2371
2426
  /** @description Number of results per page. */
@@ -3718,6 +3773,8 @@ interface operations {
3718
3773
  per_page?: components["parameters"]["PerPageQuery"];
3719
3774
  /** @description The external account ID to filter by */
3720
3775
  external_account_id?: components["parameters"]["ExternalAccountIdQuery"];
3776
+ /** @description The payout direction to filter by */
3777
+ direction?: components["parameters"]["PayoutDirectionQuery"];
3721
3778
  /** @description The payout state to filter by */
3722
3779
  state?: components["parameters"]["PayoutStateQuery"];
3723
3780
  };
package/dist/index.d.ts CHANGED
@@ -1596,23 +1596,69 @@ interface components {
1596
1596
  billing_address_attributes?: components["schemas"]["BillingAddressInput"];
1597
1597
  card_profile_attributes: components["schemas"]["CardProfileInput"];
1598
1598
  };
1599
- AllowedPaymentMethodOptions: {
1599
+ AllowedCardPaymentMethodOptions: {
1600
1600
  moto?: boolean;
1601
- } & {
1602
- [key: string]: unknown;
1603
1601
  };
1604
- AllowedPaymentMethodInput: {
1605
- type: components["schemas"]["PaymentMethodType"];
1606
- options?: components["schemas"]["AllowedPaymentMethodOptions"];
1602
+ /** @description No configurable options for bank account payment methods. */
1603
+ AllowedBankAccountPaymentMethodOptions: Record<string, never>;
1604
+ /** @description No configurable options for Google Pay payment methods. */
1605
+ AllowedGooglePayPaymentMethodOptions: Record<string, never>;
1606
+ AllowedCardPaymentMethodInput: {
1607
+ /**
1608
+ * @description discriminator enum property added by openapi-typescript
1609
+ * @enum {string}
1610
+ */
1611
+ type: "card";
1612
+ options?: components["schemas"]["AllowedCardPaymentMethodOptions"];
1613
+ };
1614
+ AllowedBankAccountPaymentMethodInput: {
1615
+ /**
1616
+ * @description discriminator enum property added by openapi-typescript
1617
+ * @enum {string}
1618
+ */
1619
+ type: "bank_account";
1620
+ options?: components["schemas"]["AllowedBankAccountPaymentMethodOptions"];
1621
+ };
1622
+ AllowedGooglePayPaymentMethodInput: {
1623
+ /**
1624
+ * @description discriminator enum property added by openapi-typescript
1625
+ * @enum {string}
1626
+ */
1627
+ type: "googlepay";
1628
+ options?: components["schemas"]["AllowedGooglePayPaymentMethodOptions"];
1607
1629
  };
1608
- AllowedPaymentMethod: {
1609
- type: components["schemas"]["PaymentMethodType"];
1610
- options: components["schemas"]["AllowedPaymentMethodOptions"];
1630
+ /** @description Payment method allowed on a render template, payment link, or merchant application. */
1631
+ AllowedPaymentMethodInput: components["schemas"]["AllowedCardPaymentMethodInput"] | components["schemas"]["AllowedBankAccountPaymentMethodInput"] | components["schemas"]["AllowedGooglePayPaymentMethodInput"];
1632
+ AllowedCardPaymentMethod: {
1633
+ /**
1634
+ * @description discriminator enum property added by openapi-typescript
1635
+ * @enum {string}
1636
+ */
1637
+ type: "card";
1638
+ options: components["schemas"]["AllowedCardPaymentMethodOptions"];
1639
+ };
1640
+ AllowedBankAccountPaymentMethod: {
1641
+ /**
1642
+ * @description discriminator enum property added by openapi-typescript
1643
+ * @enum {string}
1644
+ */
1645
+ type: "bank_account";
1646
+ options: components["schemas"]["AllowedBankAccountPaymentMethodOptions"];
1647
+ };
1648
+ AllowedGooglePayPaymentMethod: {
1649
+ /**
1650
+ * @description discriminator enum property added by openapi-typescript
1651
+ * @enum {string}
1652
+ */
1653
+ type: "googlepay";
1654
+ options: components["schemas"]["AllowedGooglePayPaymentMethodOptions"];
1611
1655
  };
1656
+ /** @description Allowed payment method returned in API responses and render token JWT payloads. */
1657
+ AllowedPaymentMethod: components["schemas"]["AllowedCardPaymentMethod"] | components["schemas"]["AllowedBankAccountPaymentMethod"] | components["schemas"]["AllowedGooglePayPaymentMethod"];
1612
1658
  /** @enum {string} */
1613
1659
  PayoutDirectionType: "credit" | "debit";
1614
1660
  /** @enum {string} */
1615
- PayoutStateType: "pending" | "succeeded" | "failed" | "accepted" | "rejected";
1661
+ PayoutStateType: "pending" | "processing" | "succeeded" | "failed" | "errored" | "accepted" | "rejected";
1616
1662
  /** @enum {string} */
1617
1663
  RefundStateType: "pending" | "processing" | "requires_review" | "succeeded" | "cancelled" | "failed";
1618
1664
  /** @enum {string} */
@@ -1928,6 +1974,8 @@ interface components {
1928
1974
  amount: number;
1929
1975
  currency?: string;
1930
1976
  direction: components["schemas"]["PayoutDirectionType"];
1977
+ prefix?: string;
1978
+ addenda?: string | null;
1931
1979
  metadata?: components["schemas"]["Metadata"];
1932
1980
  };
1933
1981
  CreatePayoutRequest: {
@@ -1941,6 +1989,8 @@ interface components {
1941
1989
  amount: number;
1942
1990
  currency?: string;
1943
1991
  direction: components["schemas"]["PayoutDirectionType"];
1992
+ prefix?: string;
1993
+ addenda?: string | null;
1944
1994
  metadata?: components["schemas"]["Metadata"];
1945
1995
  };
1946
1996
  CreateBulkPayoutsRequest: {
@@ -1951,12 +2001,15 @@ interface components {
1951
2001
  id?: string;
1952
2002
  /** Format: uuid */
1953
2003
  account_id?: string;
2004
+ addenda?: string | null;
1954
2005
  /** Format: uuid */
1955
2006
  external_account_id?: string;
1956
2007
  amount?: number;
1957
2008
  currency?: string;
1958
2009
  direction?: components["schemas"]["PayoutDirectionType"];
1959
2010
  metadata?: components["schemas"]["Metadata"];
2011
+ prefix?: string;
2012
+ public_id?: string;
1960
2013
  state?: components["schemas"]["PayoutStateType"];
1961
2014
  /** Format: date-time */
1962
2015
  created_at?: string;
@@ -2366,6 +2419,8 @@ interface components {
2366
2419
  PaymentMethodIdQuery: string;
2367
2420
  /** @description The ID of the payment transaction to filter by */
2368
2421
  PaymentTransactionIdQuery: string;
2422
+ /** @description The payout direction to filter by */
2423
+ PayoutDirectionQuery: components["schemas"]["PayoutDirectionType"];
2369
2424
  /** @description The payout state to filter by */
2370
2425
  PayoutStateQuery: components["schemas"]["PayoutStateType"];
2371
2426
  /** @description Number of results per page. */
@@ -3718,6 +3773,8 @@ interface operations {
3718
3773
  per_page?: components["parameters"]["PerPageQuery"];
3719
3774
  /** @description The external account ID to filter by */
3720
3775
  external_account_id?: components["parameters"]["ExternalAccountIdQuery"];
3776
+ /** @description The payout direction to filter by */
3777
+ direction?: components["parameters"]["PayoutDirectionQuery"];
3721
3778
  /** @description The payout state to filter by */
3722
3779
  state?: components["parameters"]["PayoutStateQuery"];
3723
3780
  };
package/openapi/schema.ts CHANGED
@@ -1593,23 +1593,69 @@ export interface components {
1593
1593
  billing_address_attributes?: components["schemas"]["BillingAddressInput"];
1594
1594
  card_profile_attributes: components["schemas"]["CardProfileInput"];
1595
1595
  };
1596
- AllowedPaymentMethodOptions: {
1596
+ AllowedCardPaymentMethodOptions: {
1597
1597
  moto?: boolean;
1598
- } & {
1599
- [key: string]: unknown;
1600
1598
  };
1601
- AllowedPaymentMethodInput: {
1602
- type: components["schemas"]["PaymentMethodType"];
1603
- options?: components["schemas"]["AllowedPaymentMethodOptions"];
1599
+ /** @description No configurable options for bank account payment methods. */
1600
+ AllowedBankAccountPaymentMethodOptions: Record<string, never>;
1601
+ /** @description No configurable options for Google Pay payment methods. */
1602
+ AllowedGooglePayPaymentMethodOptions: Record<string, never>;
1603
+ AllowedCardPaymentMethodInput: {
1604
+ /**
1605
+ * @description discriminator enum property added by openapi-typescript
1606
+ * @enum {string}
1607
+ */
1608
+ type: "card";
1609
+ options?: components["schemas"]["AllowedCardPaymentMethodOptions"];
1610
+ };
1611
+ AllowedBankAccountPaymentMethodInput: {
1612
+ /**
1613
+ * @description discriminator enum property added by openapi-typescript
1614
+ * @enum {string}
1615
+ */
1616
+ type: "bank_account";
1617
+ options?: components["schemas"]["AllowedBankAccountPaymentMethodOptions"];
1618
+ };
1619
+ AllowedGooglePayPaymentMethodInput: {
1620
+ /**
1621
+ * @description discriminator enum property added by openapi-typescript
1622
+ * @enum {string}
1623
+ */
1624
+ type: "googlepay";
1625
+ options?: components["schemas"]["AllowedGooglePayPaymentMethodOptions"];
1604
1626
  };
1605
- AllowedPaymentMethod: {
1606
- type: components["schemas"]["PaymentMethodType"];
1607
- options: components["schemas"]["AllowedPaymentMethodOptions"];
1627
+ /** @description Payment method allowed on a render template, payment link, or merchant application. */
1628
+ AllowedPaymentMethodInput: components["schemas"]["AllowedCardPaymentMethodInput"] | components["schemas"]["AllowedBankAccountPaymentMethodInput"] | components["schemas"]["AllowedGooglePayPaymentMethodInput"];
1629
+ AllowedCardPaymentMethod: {
1630
+ /**
1631
+ * @description discriminator enum property added by openapi-typescript
1632
+ * @enum {string}
1633
+ */
1634
+ type: "card";
1635
+ options: components["schemas"]["AllowedCardPaymentMethodOptions"];
1636
+ };
1637
+ AllowedBankAccountPaymentMethod: {
1638
+ /**
1639
+ * @description discriminator enum property added by openapi-typescript
1640
+ * @enum {string}
1641
+ */
1642
+ type: "bank_account";
1643
+ options: components["schemas"]["AllowedBankAccountPaymentMethodOptions"];
1644
+ };
1645
+ AllowedGooglePayPaymentMethod: {
1646
+ /**
1647
+ * @description discriminator enum property added by openapi-typescript
1648
+ * @enum {string}
1649
+ */
1650
+ type: "googlepay";
1651
+ options: components["schemas"]["AllowedGooglePayPaymentMethodOptions"];
1608
1652
  };
1653
+ /** @description Allowed payment method returned in API responses and render token JWT payloads. */
1654
+ AllowedPaymentMethod: components["schemas"]["AllowedCardPaymentMethod"] | components["schemas"]["AllowedBankAccountPaymentMethod"] | components["schemas"]["AllowedGooglePayPaymentMethod"];
1609
1655
  /** @enum {string} */
1610
1656
  PayoutDirectionType: "credit" | "debit";
1611
1657
  /** @enum {string} */
1612
- PayoutStateType: "pending" | "succeeded" | "failed" | "accepted" | "rejected";
1658
+ PayoutStateType: "pending" | "processing" | "succeeded" | "failed" | "errored" | "accepted" | "rejected";
1613
1659
  /** @enum {string} */
1614
1660
  RefundStateType: "pending" | "processing" | "requires_review" | "succeeded" | "cancelled" | "failed";
1615
1661
  /** @enum {string} */
@@ -1925,6 +1971,8 @@ export interface components {
1925
1971
  amount: number;
1926
1972
  currency?: string;
1927
1973
  direction: components["schemas"]["PayoutDirectionType"];
1974
+ prefix?: string;
1975
+ addenda?: string | null;
1928
1976
  metadata?: components["schemas"]["Metadata"];
1929
1977
  };
1930
1978
  CreatePayoutRequest: {
@@ -1938,6 +1986,8 @@ export interface components {
1938
1986
  amount: number;
1939
1987
  currency?: string;
1940
1988
  direction: components["schemas"]["PayoutDirectionType"];
1989
+ prefix?: string;
1990
+ addenda?: string | null;
1941
1991
  metadata?: components["schemas"]["Metadata"];
1942
1992
  };
1943
1993
  CreateBulkPayoutsRequest: {
@@ -1948,12 +1998,15 @@ export interface components {
1948
1998
  id?: string;
1949
1999
  /** Format: uuid */
1950
2000
  account_id?: string;
2001
+ addenda?: string | null;
1951
2002
  /** Format: uuid */
1952
2003
  external_account_id?: string;
1953
2004
  amount?: number;
1954
2005
  currency?: string;
1955
2006
  direction?: components["schemas"]["PayoutDirectionType"];
1956
2007
  metadata?: components["schemas"]["Metadata"];
2008
+ prefix?: string;
2009
+ public_id?: string;
1957
2010
  state?: components["schemas"]["PayoutStateType"];
1958
2011
  /** Format: date-time */
1959
2012
  created_at?: string;
@@ -2363,6 +2416,8 @@ export interface components {
2363
2416
  PaymentMethodIdQuery: string;
2364
2417
  /** @description The ID of the payment transaction to filter by */
2365
2418
  PaymentTransactionIdQuery: string;
2419
+ /** @description The payout direction to filter by */
2420
+ PayoutDirectionQuery: components["schemas"]["PayoutDirectionType"];
2366
2421
  /** @description The payout state to filter by */
2367
2422
  PayoutStateQuery: components["schemas"]["PayoutStateType"];
2368
2423
  /** @description Number of results per page. */
@@ -3715,6 +3770,8 @@ export interface operations {
3715
3770
  per_page?: components["parameters"]["PerPageQuery"];
3716
3771
  /** @description The external account ID to filter by */
3717
3772
  external_account_id?: components["parameters"]["ExternalAccountIdQuery"];
3773
+ /** @description The payout direction to filter by */
3774
+ direction?: components["parameters"]["PayoutDirectionQuery"];
3718
3775
  /** @description The payout state to filter by */
3719
3776
  state?: components["parameters"]["PayoutStateQuery"];
3720
3777
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amos.com/node",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
4
4
  "description": "Node.js client for the Amos Pay API.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",