@amos.com/node 0.1.18 → 0.1.20

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"];
1629
+ };
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"];
1605
1647
  };
1606
- AllowedPaymentMethod: {
1607
- type: components["schemas"]["PaymentMethodType"];
1608
- options: components["schemas"]["AllowedPaymentMethodOptions"];
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;
@@ -2078,7 +2133,6 @@ interface components {
2078
2133
  CreateRenderTemplateInput: {
2079
2134
  allowed_payment_methods?: components["schemas"]["AllowedPaymentMethodInput"][];
2080
2135
  currency?: string;
2081
- moto?: boolean;
2082
2136
  origin_ids?: string[];
2083
2137
  };
2084
2138
  CreateRenderTemplateRequest: {
@@ -2091,7 +2145,6 @@ interface components {
2091
2145
  organization_id?: string;
2092
2146
  allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
2093
2147
  currency?: string;
2094
- moto?: boolean;
2095
2148
  };
2096
2149
  CreateSetupIntentInput: {
2097
2150
  /** Format: uuid */
@@ -2364,6 +2417,8 @@ interface components {
2364
2417
  PaymentMethodIdQuery: string;
2365
2418
  /** @description The ID of the payment transaction to filter by */
2366
2419
  PaymentTransactionIdQuery: string;
2420
+ /** @description The payout direction to filter by */
2421
+ PayoutDirectionQuery: components["schemas"]["PayoutDirectionType"];
2367
2422
  /** @description The payout state to filter by */
2368
2423
  PayoutStateQuery: components["schemas"]["PayoutStateType"];
2369
2424
  /** @description Number of results per page. */
@@ -3716,6 +3771,8 @@ interface operations {
3716
3771
  per_page?: components["parameters"]["PerPageQuery"];
3717
3772
  /** @description The external account ID to filter by */
3718
3773
  external_account_id?: components["parameters"]["ExternalAccountIdQuery"];
3774
+ /** @description The payout direction to filter by */
3775
+ direction?: components["parameters"]["PayoutDirectionQuery"];
3719
3776
  /** @description The payout state to filter by */
3720
3777
  state?: components["parameters"]["PayoutStateQuery"];
3721
3778
  };
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"];
1629
+ };
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"];
1605
1647
  };
1606
- AllowedPaymentMethod: {
1607
- type: components["schemas"]["PaymentMethodType"];
1608
- options: components["schemas"]["AllowedPaymentMethodOptions"];
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;
@@ -2078,7 +2133,6 @@ interface components {
2078
2133
  CreateRenderTemplateInput: {
2079
2134
  allowed_payment_methods?: components["schemas"]["AllowedPaymentMethodInput"][];
2080
2135
  currency?: string;
2081
- moto?: boolean;
2082
2136
  origin_ids?: string[];
2083
2137
  };
2084
2138
  CreateRenderTemplateRequest: {
@@ -2091,7 +2145,6 @@ interface components {
2091
2145
  organization_id?: string;
2092
2146
  allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
2093
2147
  currency?: string;
2094
- moto?: boolean;
2095
2148
  };
2096
2149
  CreateSetupIntentInput: {
2097
2150
  /** Format: uuid */
@@ -2364,6 +2417,8 @@ interface components {
2364
2417
  PaymentMethodIdQuery: string;
2365
2418
  /** @description The ID of the payment transaction to filter by */
2366
2419
  PaymentTransactionIdQuery: string;
2420
+ /** @description The payout direction to filter by */
2421
+ PayoutDirectionQuery: components["schemas"]["PayoutDirectionType"];
2367
2422
  /** @description The payout state to filter by */
2368
2423
  PayoutStateQuery: components["schemas"]["PayoutStateType"];
2369
2424
  /** @description Number of results per page. */
@@ -3716,6 +3771,8 @@ interface operations {
3716
3771
  per_page?: components["parameters"]["PerPageQuery"];
3717
3772
  /** @description The external account ID to filter by */
3718
3773
  external_account_id?: components["parameters"]["ExternalAccountIdQuery"];
3774
+ /** @description The payout direction to filter by */
3775
+ direction?: components["parameters"]["PayoutDirectionQuery"];
3719
3776
  /** @description The payout state to filter by */
3720
3777
  state?: components["parameters"]["PayoutStateQuery"];
3721
3778
  };
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"];
1626
+ };
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"];
1602
1644
  };
1603
- AllowedPaymentMethod: {
1604
- type: components["schemas"]["PaymentMethodType"];
1605
- options: components["schemas"]["AllowedPaymentMethodOptions"];
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;
@@ -2075,7 +2130,6 @@ export interface components {
2075
2130
  CreateRenderTemplateInput: {
2076
2131
  allowed_payment_methods?: components["schemas"]["AllowedPaymentMethodInput"][];
2077
2132
  currency?: string;
2078
- moto?: boolean;
2079
2133
  origin_ids?: string[];
2080
2134
  };
2081
2135
  CreateRenderTemplateRequest: {
@@ -2088,7 +2142,6 @@ export interface components {
2088
2142
  organization_id?: string;
2089
2143
  allowed_payment_methods?: components["schemas"]["AllowedPaymentMethod"][];
2090
2144
  currency?: string;
2091
- moto?: boolean;
2092
2145
  };
2093
2146
  CreateSetupIntentInput: {
2094
2147
  /** Format: uuid */
@@ -2361,6 +2414,8 @@ export interface components {
2361
2414
  PaymentMethodIdQuery: string;
2362
2415
  /** @description The ID of the payment transaction to filter by */
2363
2416
  PaymentTransactionIdQuery: string;
2417
+ /** @description The payout direction to filter by */
2418
+ PayoutDirectionQuery: components["schemas"]["PayoutDirectionType"];
2364
2419
  /** @description The payout state to filter by */
2365
2420
  PayoutStateQuery: components["schemas"]["PayoutStateType"];
2366
2421
  /** @description Number of results per page. */
@@ -3713,6 +3768,8 @@ export interface operations {
3713
3768
  per_page?: components["parameters"]["PerPageQuery"];
3714
3769
  /** @description The external account ID to filter by */
3715
3770
  external_account_id?: components["parameters"]["ExternalAccountIdQuery"];
3771
+ /** @description The payout direction to filter by */
3772
+ direction?: components["parameters"]["PayoutDirectionQuery"];
3716
3773
  /** @description The payout state to filter by */
3717
3774
  state?: components["parameters"]["PayoutStateQuery"];
3718
3775
  };
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.20",
4
4
  "description": "Node.js client for the Amos Pay API.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",