@amos.com/node 0.1.6 → 0.1.7

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
@@ -950,7 +950,8 @@ interface paths {
950
950
  };
951
951
  /** Retrieve a subscription by ID */
952
952
  get: operations["GetSubscription"];
953
- put?: never;
953
+ /** Update a subscription by ID */
954
+ put: operations["UpdateSubscription"];
954
955
  post?: never;
955
956
  delete?: never;
956
957
  options?: never;
@@ -1561,7 +1562,7 @@ interface components {
1561
1562
  bank_account_number?: string;
1562
1563
  bank_routing_number?: string;
1563
1564
  /** @enum {string} */
1564
- business_category?: "sporting_goods" | "services" | "medical" | "charity" | "civic" | "political" | "religious";
1565
+ 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";
1565
1566
  business_description?: string;
1566
1567
  city?: string;
1567
1568
  country_code?: string;
@@ -1588,7 +1589,7 @@ interface components {
1588
1589
  id?: string;
1589
1590
  annual_credit_card_sales_volume?: number;
1590
1591
  /** @enum {string} */
1591
- business_category?: "sporting_goods" | "services" | "medical" | "charity" | "civic" | "political" | "religious";
1592
+ 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";
1592
1593
  business_description?: string;
1593
1594
  city?: string;
1594
1595
  country_code?: string;
@@ -1784,6 +1785,8 @@ interface components {
1784
1785
  external_account_id: string;
1785
1786
  amount: number;
1786
1787
  currency?: string;
1788
+ /** @enum {string} */
1789
+ direction: "credit" | "debit";
1787
1790
  metadata?: components["schemas"]["Metadata"];
1788
1791
  };
1789
1792
  CreatePayoutRequest: {
@@ -1796,6 +1799,8 @@ interface components {
1796
1799
  external_account_id: string;
1797
1800
  amount: number;
1798
1801
  currency?: string;
1802
+ /** @enum {string} */
1803
+ direction: "credit" | "debit";
1799
1804
  metadata?: components["schemas"]["Metadata"];
1800
1805
  };
1801
1806
  CreateBulkPayoutsRequest: {
@@ -1810,6 +1815,8 @@ interface components {
1810
1815
  external_account_id?: string;
1811
1816
  amount?: number;
1812
1817
  currency?: string;
1818
+ /** @enum {string} */
1819
+ direction?: "credit" | "debit";
1813
1820
  metadata?: components["schemas"]["Metadata"];
1814
1821
  /** @enum {string} */
1815
1822
  state?: "pending" | "succeeded" | "failed" | "accepted" | "rejected";
@@ -2001,6 +2008,14 @@ interface components {
2001
2008
  CreateSubscriptionRequest: {
2002
2009
  subscription: components["schemas"]["CreateSubscriptionInput"];
2003
2010
  };
2011
+ UpdateSubscriptionInput: {
2012
+ /** Format: uuid */
2013
+ payment_method_id?: string;
2014
+ metadata?: components["schemas"]["Metadata"];
2015
+ };
2016
+ UpdateSubscriptionRequest: {
2017
+ subscription: components["schemas"]["UpdateSubscriptionInput"];
2018
+ };
2004
2019
  Subscription: {
2005
2020
  /** Format: uuid */
2006
2021
  id?: string;
@@ -2150,7 +2165,8 @@ interface components {
2150
2165
  updated_at?: string;
2151
2166
  };
2152
2167
  CreateWebhookEndpointInput: {
2153
- event?: string;
2168
+ /** @enum {string} */
2169
+ event?: "charge.cancelled" | "charge.created" | "charge.errored" | "charge.failed" | "charge.processing" | "charge.requires_capture" | "charge.requires_confirmation" | "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.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";
2154
2170
  metadata?: components["schemas"]["Metadata"];
2155
2171
  active?: boolean;
2156
2172
  url?: string;
@@ -2161,7 +2177,8 @@ interface components {
2161
2177
  WebhookEndpoint: {
2162
2178
  /** Format: uuid */
2163
2179
  id?: string;
2164
- event?: string;
2180
+ /** @enum {string} */
2181
+ event?: "charge.cancelled" | "charge.created" | "charge.errored" | "charge.failed" | "charge.processing" | "charge.requires_capture" | "charge.requires_confirmation" | "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.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";
2165
2182
  metadata?: components["schemas"]["Metadata"];
2166
2183
  secret?: string;
2167
2184
  url?: string;
@@ -4278,6 +4295,42 @@ interface operations {
4278
4295
  };
4279
4296
  };
4280
4297
  };
4298
+ UpdateSubscription: {
4299
+ parameters: {
4300
+ query?: never;
4301
+ header?: never;
4302
+ path: {
4303
+ /** @description The ID of the subscription to update */
4304
+ id: string;
4305
+ };
4306
+ cookie?: never;
4307
+ };
4308
+ requestBody: {
4309
+ content: {
4310
+ "application/json": components["schemas"]["UpdateSubscriptionRequest"];
4311
+ };
4312
+ };
4313
+ responses: {
4314
+ /** @description Subscription updated successfully */
4315
+ 200: {
4316
+ headers: {
4317
+ [name: string]: unknown;
4318
+ };
4319
+ content: {
4320
+ "application/json": components["schemas"]["Subscription"];
4321
+ };
4322
+ };
4323
+ /** @description Unprocessable entity */
4324
+ 422: {
4325
+ headers: {
4326
+ [name: string]: unknown;
4327
+ };
4328
+ content: {
4329
+ "application/json": components["schemas"]["Error"];
4330
+ };
4331
+ };
4332
+ };
4333
+ };
4281
4334
  CancelSubscription: {
4282
4335
  parameters: {
4283
4336
  query?: never;
package/dist/index.d.ts CHANGED
@@ -950,7 +950,8 @@ interface paths {
950
950
  };
951
951
  /** Retrieve a subscription by ID */
952
952
  get: operations["GetSubscription"];
953
- put?: never;
953
+ /** Update a subscription by ID */
954
+ put: operations["UpdateSubscription"];
954
955
  post?: never;
955
956
  delete?: never;
956
957
  options?: never;
@@ -1561,7 +1562,7 @@ interface components {
1561
1562
  bank_account_number?: string;
1562
1563
  bank_routing_number?: string;
1563
1564
  /** @enum {string} */
1564
- business_category?: "sporting_goods" | "services" | "medical" | "charity" | "civic" | "political" | "religious";
1565
+ 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";
1565
1566
  business_description?: string;
1566
1567
  city?: string;
1567
1568
  country_code?: string;
@@ -1588,7 +1589,7 @@ interface components {
1588
1589
  id?: string;
1589
1590
  annual_credit_card_sales_volume?: number;
1590
1591
  /** @enum {string} */
1591
- business_category?: "sporting_goods" | "services" | "medical" | "charity" | "civic" | "political" | "religious";
1592
+ 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";
1592
1593
  business_description?: string;
1593
1594
  city?: string;
1594
1595
  country_code?: string;
@@ -1784,6 +1785,8 @@ interface components {
1784
1785
  external_account_id: string;
1785
1786
  amount: number;
1786
1787
  currency?: string;
1788
+ /** @enum {string} */
1789
+ direction: "credit" | "debit";
1787
1790
  metadata?: components["schemas"]["Metadata"];
1788
1791
  };
1789
1792
  CreatePayoutRequest: {
@@ -1796,6 +1799,8 @@ interface components {
1796
1799
  external_account_id: string;
1797
1800
  amount: number;
1798
1801
  currency?: string;
1802
+ /** @enum {string} */
1803
+ direction: "credit" | "debit";
1799
1804
  metadata?: components["schemas"]["Metadata"];
1800
1805
  };
1801
1806
  CreateBulkPayoutsRequest: {
@@ -1810,6 +1815,8 @@ interface components {
1810
1815
  external_account_id?: string;
1811
1816
  amount?: number;
1812
1817
  currency?: string;
1818
+ /** @enum {string} */
1819
+ direction?: "credit" | "debit";
1813
1820
  metadata?: components["schemas"]["Metadata"];
1814
1821
  /** @enum {string} */
1815
1822
  state?: "pending" | "succeeded" | "failed" | "accepted" | "rejected";
@@ -2001,6 +2008,14 @@ interface components {
2001
2008
  CreateSubscriptionRequest: {
2002
2009
  subscription: components["schemas"]["CreateSubscriptionInput"];
2003
2010
  };
2011
+ UpdateSubscriptionInput: {
2012
+ /** Format: uuid */
2013
+ payment_method_id?: string;
2014
+ metadata?: components["schemas"]["Metadata"];
2015
+ };
2016
+ UpdateSubscriptionRequest: {
2017
+ subscription: components["schemas"]["UpdateSubscriptionInput"];
2018
+ };
2004
2019
  Subscription: {
2005
2020
  /** Format: uuid */
2006
2021
  id?: string;
@@ -2150,7 +2165,8 @@ interface components {
2150
2165
  updated_at?: string;
2151
2166
  };
2152
2167
  CreateWebhookEndpointInput: {
2153
- event?: string;
2168
+ /** @enum {string} */
2169
+ event?: "charge.cancelled" | "charge.created" | "charge.errored" | "charge.failed" | "charge.processing" | "charge.requires_capture" | "charge.requires_confirmation" | "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.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";
2154
2170
  metadata?: components["schemas"]["Metadata"];
2155
2171
  active?: boolean;
2156
2172
  url?: string;
@@ -2161,7 +2177,8 @@ interface components {
2161
2177
  WebhookEndpoint: {
2162
2178
  /** Format: uuid */
2163
2179
  id?: string;
2164
- event?: string;
2180
+ /** @enum {string} */
2181
+ event?: "charge.cancelled" | "charge.created" | "charge.errored" | "charge.failed" | "charge.processing" | "charge.requires_capture" | "charge.requires_confirmation" | "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.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";
2165
2182
  metadata?: components["schemas"]["Metadata"];
2166
2183
  secret?: string;
2167
2184
  url?: string;
@@ -4278,6 +4295,42 @@ interface operations {
4278
4295
  };
4279
4296
  };
4280
4297
  };
4298
+ UpdateSubscription: {
4299
+ parameters: {
4300
+ query?: never;
4301
+ header?: never;
4302
+ path: {
4303
+ /** @description The ID of the subscription to update */
4304
+ id: string;
4305
+ };
4306
+ cookie?: never;
4307
+ };
4308
+ requestBody: {
4309
+ content: {
4310
+ "application/json": components["schemas"]["UpdateSubscriptionRequest"];
4311
+ };
4312
+ };
4313
+ responses: {
4314
+ /** @description Subscription updated successfully */
4315
+ 200: {
4316
+ headers: {
4317
+ [name: string]: unknown;
4318
+ };
4319
+ content: {
4320
+ "application/json": components["schemas"]["Subscription"];
4321
+ };
4322
+ };
4323
+ /** @description Unprocessable entity */
4324
+ 422: {
4325
+ headers: {
4326
+ [name: string]: unknown;
4327
+ };
4328
+ content: {
4329
+ "application/json": components["schemas"]["Error"];
4330
+ };
4331
+ };
4332
+ };
4333
+ };
4281
4334
  CancelSubscription: {
4282
4335
  parameters: {
4283
4336
  query?: never;
package/openapi/schema.ts CHANGED
@@ -947,7 +947,8 @@ export interface paths {
947
947
  };
948
948
  /** Retrieve a subscription by ID */
949
949
  get: operations["GetSubscription"];
950
- put?: never;
950
+ /** Update a subscription by ID */
951
+ put: operations["UpdateSubscription"];
951
952
  post?: never;
952
953
  delete?: never;
953
954
  options?: never;
@@ -1558,7 +1559,7 @@ export interface components {
1558
1559
  bank_account_number?: string;
1559
1560
  bank_routing_number?: string;
1560
1561
  /** @enum {string} */
1561
- business_category?: "sporting_goods" | "services" | "medical" | "charity" | "civic" | "political" | "religious";
1562
+ 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";
1562
1563
  business_description?: string;
1563
1564
  city?: string;
1564
1565
  country_code?: string;
@@ -1585,7 +1586,7 @@ export interface components {
1585
1586
  id?: string;
1586
1587
  annual_credit_card_sales_volume?: number;
1587
1588
  /** @enum {string} */
1588
- business_category?: "sporting_goods" | "services" | "medical" | "charity" | "civic" | "political" | "religious";
1589
+ 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";
1589
1590
  business_description?: string;
1590
1591
  city?: string;
1591
1592
  country_code?: string;
@@ -1781,6 +1782,8 @@ export interface components {
1781
1782
  external_account_id: string;
1782
1783
  amount: number;
1783
1784
  currency?: string;
1785
+ /** @enum {string} */
1786
+ direction: "credit" | "debit";
1784
1787
  metadata?: components["schemas"]["Metadata"];
1785
1788
  };
1786
1789
  CreatePayoutRequest: {
@@ -1793,6 +1796,8 @@ export interface components {
1793
1796
  external_account_id: string;
1794
1797
  amount: number;
1795
1798
  currency?: string;
1799
+ /** @enum {string} */
1800
+ direction: "credit" | "debit";
1796
1801
  metadata?: components["schemas"]["Metadata"];
1797
1802
  };
1798
1803
  CreateBulkPayoutsRequest: {
@@ -1807,6 +1812,8 @@ export interface components {
1807
1812
  external_account_id?: string;
1808
1813
  amount?: number;
1809
1814
  currency?: string;
1815
+ /** @enum {string} */
1816
+ direction?: "credit" | "debit";
1810
1817
  metadata?: components["schemas"]["Metadata"];
1811
1818
  /** @enum {string} */
1812
1819
  state?: "pending" | "succeeded" | "failed" | "accepted" | "rejected";
@@ -1998,6 +2005,14 @@ export interface components {
1998
2005
  CreateSubscriptionRequest: {
1999
2006
  subscription: components["schemas"]["CreateSubscriptionInput"];
2000
2007
  };
2008
+ UpdateSubscriptionInput: {
2009
+ /** Format: uuid */
2010
+ payment_method_id?: string;
2011
+ metadata?: components["schemas"]["Metadata"];
2012
+ };
2013
+ UpdateSubscriptionRequest: {
2014
+ subscription: components["schemas"]["UpdateSubscriptionInput"];
2015
+ };
2001
2016
  Subscription: {
2002
2017
  /** Format: uuid */
2003
2018
  id?: string;
@@ -2147,7 +2162,8 @@ export interface components {
2147
2162
  updated_at?: string;
2148
2163
  };
2149
2164
  CreateWebhookEndpointInput: {
2150
- event?: string;
2165
+ /** @enum {string} */
2166
+ event?: "charge.cancelled" | "charge.created" | "charge.errored" | "charge.failed" | "charge.processing" | "charge.requires_capture" | "charge.requires_confirmation" | "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.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";
2151
2167
  metadata?: components["schemas"]["Metadata"];
2152
2168
  active?: boolean;
2153
2169
  url?: string;
@@ -2158,7 +2174,8 @@ export interface components {
2158
2174
  WebhookEndpoint: {
2159
2175
  /** Format: uuid */
2160
2176
  id?: string;
2161
- event?: string;
2177
+ /** @enum {string} */
2178
+ event?: "charge.cancelled" | "charge.created" | "charge.errored" | "charge.failed" | "charge.processing" | "charge.requires_capture" | "charge.requires_confirmation" | "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.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";
2162
2179
  metadata?: components["schemas"]["Metadata"];
2163
2180
  secret?: string;
2164
2181
  url?: string;
@@ -4275,6 +4292,42 @@ export interface operations {
4275
4292
  };
4276
4293
  };
4277
4294
  };
4295
+ UpdateSubscription: {
4296
+ parameters: {
4297
+ query?: never;
4298
+ header?: never;
4299
+ path: {
4300
+ /** @description The ID of the subscription to update */
4301
+ id: string;
4302
+ };
4303
+ cookie?: never;
4304
+ };
4305
+ requestBody: {
4306
+ content: {
4307
+ "application/json": components["schemas"]["UpdateSubscriptionRequest"];
4308
+ };
4309
+ };
4310
+ responses: {
4311
+ /** @description Subscription updated successfully */
4312
+ 200: {
4313
+ headers: {
4314
+ [name: string]: unknown;
4315
+ };
4316
+ content: {
4317
+ "application/json": components["schemas"]["Subscription"];
4318
+ };
4319
+ };
4320
+ /** @description Unprocessable entity */
4321
+ 422: {
4322
+ headers: {
4323
+ [name: string]: unknown;
4324
+ };
4325
+ content: {
4326
+ "application/json": components["schemas"]["Error"];
4327
+ };
4328
+ };
4329
+ };
4330
+ };
4278
4331
  CancelSubscription: {
4279
4332
  parameters: {
4280
4333
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amos.com/node",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Node.js client for the Amos Pay API.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",