@amos.com/node 0.1.18 → 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,21 +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
1601
  };
1602
- AllowedPaymentMethodInput: {
1603
- type: components["schemas"]["PaymentMethodType"];
1604
- 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"];
1605
1629
  };
1606
- AllowedPaymentMethod: {
1607
- type: components["schemas"]["PaymentMethodType"];
1608
- 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"];
1609
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"];
1610
1658
  /** @enum {string} */
1611
1659
  PayoutDirectionType: "credit" | "debit";
1612
1660
  /** @enum {string} */
1613
- PayoutStateType: "pending" | "succeeded" | "failed" | "accepted" | "rejected";
1661
+ PayoutStateType: "pending" | "processing" | "succeeded" | "failed" | "errored" | "accepted" | "rejected";
1614
1662
  /** @enum {string} */
1615
1663
  RefundStateType: "pending" | "processing" | "requires_review" | "succeeded" | "cancelled" | "failed";
1616
1664
  /** @enum {string} */
@@ -1926,6 +1974,8 @@ interface components {
1926
1974
  amount: number;
1927
1975
  currency?: string;
1928
1976
  direction: components["schemas"]["PayoutDirectionType"];
1977
+ prefix?: string;
1978
+ addenda?: string | null;
1929
1979
  metadata?: components["schemas"]["Metadata"];
1930
1980
  };
1931
1981
  CreatePayoutRequest: {
@@ -1939,6 +1989,8 @@ interface components {
1939
1989
  amount: number;
1940
1990
  currency?: string;
1941
1991
  direction: components["schemas"]["PayoutDirectionType"];
1992
+ prefix?: string;
1993
+ addenda?: string | null;
1942
1994
  metadata?: components["schemas"]["Metadata"];
1943
1995
  };
1944
1996
  CreateBulkPayoutsRequest: {
@@ -1949,12 +2001,15 @@ interface components {
1949
2001
  id?: string;
1950
2002
  /** Format: uuid */
1951
2003
  account_id?: string;
2004
+ addenda?: string | null;
1952
2005
  /** Format: uuid */
1953
2006
  external_account_id?: string;
1954
2007
  amount?: number;
1955
2008
  currency?: string;
1956
2009
  direction?: components["schemas"]["PayoutDirectionType"];
1957
2010
  metadata?: components["schemas"]["Metadata"];
2011
+ prefix?: string;
2012
+ public_id?: string;
1958
2013
  state?: components["schemas"]["PayoutStateType"];
1959
2014
  /** Format: date-time */
1960
2015
  created_at?: string;
@@ -2364,6 +2419,8 @@ interface components {
2364
2419
  PaymentMethodIdQuery: string;
2365
2420
  /** @description The ID of the payment transaction to filter by */
2366
2421
  PaymentTransactionIdQuery: string;
2422
+ /** @description The payout direction to filter by */
2423
+ PayoutDirectionQuery: components["schemas"]["PayoutDirectionType"];
2367
2424
  /** @description The payout state to filter by */
2368
2425
  PayoutStateQuery: components["schemas"]["PayoutStateType"];
2369
2426
  /** @description Number of results per page. */
@@ -3716,6 +3773,8 @@ interface operations {
3716
3773
  per_page?: components["parameters"]["PerPageQuery"];
3717
3774
  /** @description The external account ID to filter by */
3718
3775
  external_account_id?: components["parameters"]["ExternalAccountIdQuery"];
3776
+ /** @description The payout direction to filter by */
3777
+ direction?: components["parameters"]["PayoutDirectionQuery"];
3719
3778
  /** @description The payout state to filter by */
3720
3779
  state?: components["parameters"]["PayoutStateQuery"];
3721
3780
  };
package/dist/index.d.ts CHANGED
@@ -1596,21 +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
1601
  };
1602
- AllowedPaymentMethodInput: {
1603
- type: components["schemas"]["PaymentMethodType"];
1604
- 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"];
1605
1629
  };
1606
- AllowedPaymentMethod: {
1607
- type: components["schemas"]["PaymentMethodType"];
1608
- 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"];
1609
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"];
1610
1658
  /** @enum {string} */
1611
1659
  PayoutDirectionType: "credit" | "debit";
1612
1660
  /** @enum {string} */
1613
- PayoutStateType: "pending" | "succeeded" | "failed" | "accepted" | "rejected";
1661
+ PayoutStateType: "pending" | "processing" | "succeeded" | "failed" | "errored" | "accepted" | "rejected";
1614
1662
  /** @enum {string} */
1615
1663
  RefundStateType: "pending" | "processing" | "requires_review" | "succeeded" | "cancelled" | "failed";
1616
1664
  /** @enum {string} */
@@ -1926,6 +1974,8 @@ interface components {
1926
1974
  amount: number;
1927
1975
  currency?: string;
1928
1976
  direction: components["schemas"]["PayoutDirectionType"];
1977
+ prefix?: string;
1978
+ addenda?: string | null;
1929
1979
  metadata?: components["schemas"]["Metadata"];
1930
1980
  };
1931
1981
  CreatePayoutRequest: {
@@ -1939,6 +1989,8 @@ interface components {
1939
1989
  amount: number;
1940
1990
  currency?: string;
1941
1991
  direction: components["schemas"]["PayoutDirectionType"];
1992
+ prefix?: string;
1993
+ addenda?: string | null;
1942
1994
  metadata?: components["schemas"]["Metadata"];
1943
1995
  };
1944
1996
  CreateBulkPayoutsRequest: {
@@ -1949,12 +2001,15 @@ interface components {
1949
2001
  id?: string;
1950
2002
  /** Format: uuid */
1951
2003
  account_id?: string;
2004
+ addenda?: string | null;
1952
2005
  /** Format: uuid */
1953
2006
  external_account_id?: string;
1954
2007
  amount?: number;
1955
2008
  currency?: string;
1956
2009
  direction?: components["schemas"]["PayoutDirectionType"];
1957
2010
  metadata?: components["schemas"]["Metadata"];
2011
+ prefix?: string;
2012
+ public_id?: string;
1958
2013
  state?: components["schemas"]["PayoutStateType"];
1959
2014
  /** Format: date-time */
1960
2015
  created_at?: string;
@@ -2364,6 +2419,8 @@ interface components {
2364
2419
  PaymentMethodIdQuery: string;
2365
2420
  /** @description The ID of the payment transaction to filter by */
2366
2421
  PaymentTransactionIdQuery: string;
2422
+ /** @description The payout direction to filter by */
2423
+ PayoutDirectionQuery: components["schemas"]["PayoutDirectionType"];
2367
2424
  /** @description The payout state to filter by */
2368
2425
  PayoutStateQuery: components["schemas"]["PayoutStateType"];
2369
2426
  /** @description Number of results per page. */
@@ -3716,6 +3773,8 @@ interface operations {
3716
3773
  per_page?: components["parameters"]["PerPageQuery"];
3717
3774
  /** @description The external account ID to filter by */
3718
3775
  external_account_id?: components["parameters"]["ExternalAccountIdQuery"];
3776
+ /** @description The payout direction to filter by */
3777
+ direction?: components["parameters"]["PayoutDirectionQuery"];
3719
3778
  /** @description The payout state to filter by */
3720
3779
  state?: components["parameters"]["PayoutStateQuery"];
3721
3780
  };
package/openapi/schema.ts CHANGED
@@ -1593,21 +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
1598
  };
1599
- AllowedPaymentMethodInput: {
1600
- type: components["schemas"]["PaymentMethodType"];
1601
- 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"];
1602
1626
  };
1603
- AllowedPaymentMethod: {
1604
- type: components["schemas"]["PaymentMethodType"];
1605
- 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"];
1606
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"];
1607
1655
  /** @enum {string} */
1608
1656
  PayoutDirectionType: "credit" | "debit";
1609
1657
  /** @enum {string} */
1610
- PayoutStateType: "pending" | "succeeded" | "failed" | "accepted" | "rejected";
1658
+ PayoutStateType: "pending" | "processing" | "succeeded" | "failed" | "errored" | "accepted" | "rejected";
1611
1659
  /** @enum {string} */
1612
1660
  RefundStateType: "pending" | "processing" | "requires_review" | "succeeded" | "cancelled" | "failed";
1613
1661
  /** @enum {string} */
@@ -1923,6 +1971,8 @@ export interface components {
1923
1971
  amount: number;
1924
1972
  currency?: string;
1925
1973
  direction: components["schemas"]["PayoutDirectionType"];
1974
+ prefix?: string;
1975
+ addenda?: string | null;
1926
1976
  metadata?: components["schemas"]["Metadata"];
1927
1977
  };
1928
1978
  CreatePayoutRequest: {
@@ -1936,6 +1986,8 @@ export interface components {
1936
1986
  amount: number;
1937
1987
  currency?: string;
1938
1988
  direction: components["schemas"]["PayoutDirectionType"];
1989
+ prefix?: string;
1990
+ addenda?: string | null;
1939
1991
  metadata?: components["schemas"]["Metadata"];
1940
1992
  };
1941
1993
  CreateBulkPayoutsRequest: {
@@ -1946,12 +1998,15 @@ export interface components {
1946
1998
  id?: string;
1947
1999
  /** Format: uuid */
1948
2000
  account_id?: string;
2001
+ addenda?: string | null;
1949
2002
  /** Format: uuid */
1950
2003
  external_account_id?: string;
1951
2004
  amount?: number;
1952
2005
  currency?: string;
1953
2006
  direction?: components["schemas"]["PayoutDirectionType"];
1954
2007
  metadata?: components["schemas"]["Metadata"];
2008
+ prefix?: string;
2009
+ public_id?: string;
1955
2010
  state?: components["schemas"]["PayoutStateType"];
1956
2011
  /** Format: date-time */
1957
2012
  created_at?: string;
@@ -2361,6 +2416,8 @@ export interface components {
2361
2416
  PaymentMethodIdQuery: string;
2362
2417
  /** @description The ID of the payment transaction to filter by */
2363
2418
  PaymentTransactionIdQuery: string;
2419
+ /** @description The payout direction to filter by */
2420
+ PayoutDirectionQuery: components["schemas"]["PayoutDirectionType"];
2364
2421
  /** @description The payout state to filter by */
2365
2422
  PayoutStateQuery: components["schemas"]["PayoutStateType"];
2366
2423
  /** @description Number of results per page. */
@@ -3713,6 +3770,8 @@ export interface operations {
3713
3770
  per_page?: components["parameters"]["PerPageQuery"];
3714
3771
  /** @description The external account ID to filter by */
3715
3772
  external_account_id?: components["parameters"]["ExternalAccountIdQuery"];
3773
+ /** @description The payout direction to filter by */
3774
+ direction?: components["parameters"]["PayoutDirectionQuery"];
3716
3775
  /** @description The payout state to filter by */
3717
3776
  state?: components["parameters"]["PayoutStateQuery"];
3718
3777
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amos.com/node",
3
- "version": "0.1.18",
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",