@amos.com/node 0.1.26 → 0.1.28

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Amos
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.d.mts CHANGED
@@ -490,23 +490,6 @@ interface paths {
490
490
  patch?: never;
491
491
  trace?: never;
492
492
  };
493
- "/embed/payment_intents/{id}/confirm": {
494
- parameters: {
495
- query?: never;
496
- header?: never;
497
- path?: never;
498
- cookie?: never;
499
- };
500
- get?: never;
501
- put?: never;
502
- /** Confirm a payment intent */
503
- post: operations["ConfirmEmbedPaymentIntent"];
504
- delete?: never;
505
- options?: never;
506
- head?: never;
507
- patch?: never;
508
- trace?: never;
509
- };
510
493
  "/embed/payment_intents/{id}/confirm_with_payment_method": {
511
494
  parameters: {
512
495
  query?: never;
@@ -618,7 +601,10 @@ interface paths {
618
601
  path?: never;
619
602
  cookie?: never;
620
603
  };
621
- /** List all payment methods */
604
+ /**
605
+ * List all payment methods
606
+ * @description Filter by exactly one of customer_id or payment_intent_id.
607
+ */
622
608
  get: operations["ListPaymentMethods"];
623
609
  put?: never;
624
610
  post?: never;
@@ -871,23 +857,6 @@ interface paths {
871
857
  patch?: never;
872
858
  trace?: never;
873
859
  };
874
- "/embed/setup_intents/{id}/confirm": {
875
- parameters: {
876
- query?: never;
877
- header?: never;
878
- path?: never;
879
- cookie?: never;
880
- };
881
- get?: never;
882
- put?: never;
883
- /** Confirm a setup intent */
884
- post: operations["ConfirmSetupIntent"];
885
- delete?: never;
886
- options?: never;
887
- head?: never;
888
- patch?: never;
889
- trace?: never;
890
- };
891
860
  "/embed/setup_intents/{id}/confirm_with_payment_method": {
892
861
  parameters: {
893
862
  query?: never;
@@ -1231,6 +1200,8 @@ interface components {
1231
1200
  account_holder_type?: string;
1232
1201
  account_type?: string;
1233
1202
  bank_name?: string;
1203
+ /** @enum {string|null} */
1204
+ failure_reason?: "activation_failed" | "processing_error" | "vault_failed" | null;
1234
1205
  fingerprint?: string | null;
1235
1206
  last4?: string;
1236
1207
  routing_number?: string;
@@ -1290,6 +1261,8 @@ interface components {
1290
1261
  cvc_check_message?: string | null;
1291
1262
  exp_month?: number;
1292
1263
  exp_year?: number;
1264
+ /** @enum {string|null} */
1265
+ failure_reason?: "authorization_failed" | "avs_blocked" | "brand_not_allowed" | "brand_not_found" | "cvc_blocked" | "processing_error" | "vault_failed" | null;
1293
1266
  first6?: string;
1294
1267
  funding?: string | null;
1295
1268
  fingerprint?: string | null;
@@ -1909,22 +1882,14 @@ interface components {
1909
1882
  CreatePaymentIntentRequest: {
1910
1883
  payment_intent: components["schemas"]["CreatePaymentIntentInput"];
1911
1884
  };
1912
- ConfirmPaymentIntentInput: {
1913
- moto?: boolean;
1885
+ ConfirmPaymentIntentWithPaymentMethodInput: {
1914
1886
  /** Format: uuid */
1915
1887
  payment_method_id?: string;
1916
- payment_method?: {
1917
- metadata?: components["schemas"]["Metadata"];
1918
- bank_account_profile_attributes?: components["schemas"]["BankAccountProfileInput"];
1919
- billing_address_attributes?: components["schemas"]["BillingAddressInput"];
1920
- card_profile_attributes?: components["schemas"]["CardProfileInput"];
1921
- };
1922
- };
1923
- ConfirmPaymentIntentRequest: {
1924
- payment_intent: components["schemas"]["ConfirmPaymentIntentInput"];
1925
- };
1926
- ConfirmPaymentIntentWithPaymentMethodInput: {
1927
1888
  payment_method: components["schemas"]["EmbedConfirmPaymentMethodInput"];
1889
+ } | {
1890
+ /** Format: uuid */
1891
+ payment_method_id: string;
1892
+ payment_method?: components["schemas"]["EmbedConfirmPaymentMethodInput"];
1928
1893
  };
1929
1894
  ConfirmPaymentIntentWithPaymentMethodRequest: {
1930
1895
  payment_intent: components["schemas"]["ConfirmPaymentIntentWithPaymentMethodInput"];
@@ -1967,6 +1932,7 @@ interface components {
1967
1932
  };
1968
1933
  RecurringPayment: {
1969
1934
  network_transaction_id?: string;
1935
+ transaction_link_id?: string;
1970
1936
  };
1971
1937
  CreatePaymentLinkInput: {
1972
1938
  slug?: string;
@@ -2074,6 +2040,8 @@ interface components {
2074
2040
  currency?: string;
2075
2041
  direction?: components["schemas"]["PayoutDirectionType"];
2076
2042
  metadata?: components["schemas"]["Metadata"];
2043
+ /** Format: uuid */
2044
+ organization_id?: string;
2077
2045
  prefix?: string;
2078
2046
  public_id?: string;
2079
2047
  state?: components["schemas"]["PayoutStateType"];
@@ -2104,6 +2072,7 @@ interface components {
2104
2072
  processor_transaction_id?: string;
2105
2073
  processor_reference?: string;
2106
2074
  network_transaction_id?: string;
2075
+ transaction_link_id?: string;
2107
2076
  /** @enum {string} */
2108
2077
  transaction_type?: "authorization" | "authorization_reversal" | "capture" | "credit" | "echeck_credit" | "echeck_sale" | "echeck_void" | "sale" | "void";
2109
2078
  /** Format: date-time */
@@ -2220,20 +2189,14 @@ interface components {
2220
2189
  CreateSetupIntentRequest: {
2221
2190
  setup_intent: components["schemas"]["CreateSetupIntentInput"];
2222
2191
  };
2223
- ConfirmSetupIntentInput: {
2224
- moto?: boolean;
2225
- payment_method?: {
2226
- metadata?: components["schemas"]["Metadata"];
2227
- bank_account_profile_attributes?: components["schemas"]["BankAccountProfileInput"];
2228
- billing_address_attributes?: components["schemas"]["BillingAddressInput"];
2229
- card_profile_attributes?: components["schemas"]["CardProfileInput"];
2230
- };
2231
- };
2232
- ConfirmSetupIntentRequest: {
2233
- setup_intent: components["schemas"]["ConfirmSetupIntentInput"];
2234
- };
2235
2192
  ConfirmSetupIntentWithPaymentMethodInput: {
2193
+ /** Format: uuid */
2194
+ payment_method_id?: string;
2236
2195
  payment_method: components["schemas"]["EmbedConfirmPaymentMethodInput"];
2196
+ } | {
2197
+ /** Format: uuid */
2198
+ payment_method_id: string;
2199
+ payment_method?: components["schemas"]["EmbedConfirmPaymentMethodInput"];
2237
2200
  };
2238
2201
  ConfirmSetupIntentWithPaymentMethodRequest: {
2239
2202
  setup_intent: components["schemas"]["ConfirmSetupIntentWithPaymentMethodInput"];
@@ -2478,6 +2441,8 @@ interface components {
2478
2441
  ParentTransactionIdQuery: string;
2479
2442
  /** @description The ID of the payment intent to filter by */
2480
2443
  PaymentIntentIdQuery: string;
2444
+ /** @description The ID of the customer to filter by. Mutually exclusive with payment_intent_id. */
2445
+ PaymentMethodCustomerIdQuery: string;
2481
2446
  /** @description The ID of the payment method to filter by */
2482
2447
  PaymentMethodIdQuery: string;
2483
2448
  /** @description The ID of the payment transaction to filter by */
@@ -3485,42 +3450,6 @@ interface operations {
3485
3450
  };
3486
3451
  };
3487
3452
  };
3488
- ConfirmEmbedPaymentIntent: {
3489
- parameters: {
3490
- query?: never;
3491
- header?: never;
3492
- path: {
3493
- /** @description The ID of the payment intent to confirm */
3494
- id: string;
3495
- };
3496
- cookie?: never;
3497
- };
3498
- requestBody: {
3499
- content: {
3500
- "application/json": components["schemas"]["ConfirmPaymentIntentRequest"];
3501
- };
3502
- };
3503
- responses: {
3504
- /** @description Successful confirmation of payment intent */
3505
- 202: {
3506
- headers: {
3507
- [name: string]: unknown;
3508
- };
3509
- content: {
3510
- "application/json": components["schemas"]["PaymentIntent"];
3511
- };
3512
- };
3513
- /** @description Unprocessable entity */
3514
- 422: {
3515
- headers: {
3516
- [name: string]: unknown;
3517
- };
3518
- content: {
3519
- "application/json": components["schemas"]["Error"];
3520
- };
3521
- };
3522
- };
3523
- };
3524
3453
  ConfirmEmbedPaymentIntentWithPaymentMethod: {
3525
3454
  parameters: {
3526
3455
  query?: never;
@@ -3777,13 +3706,15 @@ interface operations {
3777
3706
  };
3778
3707
  ListPaymentMethods: {
3779
3708
  parameters: {
3780
- query: {
3709
+ query?: {
3781
3710
  /** @description The page of results to retrieve. */
3782
3711
  page?: components["parameters"]["PageQuery"];
3783
3712
  /** @description Number of results per page. */
3784
3713
  per_page?: components["parameters"]["PerPageQuery"];
3785
- /** @description The ID of the customer to filter by */
3786
- customer_id: components["parameters"]["CustomerIdQuery"];
3714
+ /** @description The ID of the customer to filter by. Mutually exclusive with payment_intent_id. */
3715
+ customer_id?: components["parameters"]["PaymentMethodCustomerIdQuery"];
3716
+ /** @description The ID of the payment intent to filter by */
3717
+ payment_intent_id?: components["parameters"]["PaymentIntentIdQuery"];
3787
3718
  };
3788
3719
  header?: never;
3789
3720
  path?: never;
@@ -4371,42 +4302,6 @@ interface operations {
4371
4302
  };
4372
4303
  };
4373
4304
  };
4374
- ConfirmSetupIntent: {
4375
- parameters: {
4376
- query?: never;
4377
- header?: never;
4378
- path: {
4379
- /** @description The ID of the setup intent to confirm */
4380
- id: string;
4381
- };
4382
- cookie?: never;
4383
- };
4384
- requestBody: {
4385
- content: {
4386
- "application/json": components["schemas"]["ConfirmSetupIntentRequest"];
4387
- };
4388
- };
4389
- responses: {
4390
- /** @description Successful confirmation of setup intent */
4391
- 202: {
4392
- headers: {
4393
- [name: string]: unknown;
4394
- };
4395
- content: {
4396
- "application/json": components["schemas"]["SetupIntent"];
4397
- };
4398
- };
4399
- /** @description Unprocessable entity */
4400
- 422: {
4401
- headers: {
4402
- [name: string]: unknown;
4403
- };
4404
- content: {
4405
- "application/json": components["schemas"]["Error"];
4406
- };
4407
- };
4408
- };
4409
- };
4410
4305
  ConfirmSetupIntentWithPaymentMethod: {
4411
4306
  parameters: {
4412
4307
  query?: never;
@@ -5114,6 +5009,8 @@ type ReadonlyArray<T> = [
5114
5009
  ] extends [
5115
5010
  unknown[]
5116
5011
  ] ? Readonly<Exclude<T, undefined>> : Readonly<Exclude<T, undefined>[]>;
5012
+ declare const bankAccountProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["BankAccountProfile"]["failure_reason"]>;
5013
+ declare const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["CardProfile"]["failure_reason"]>;
5117
5014
  declare const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]>;
5118
5015
  declare const chargeStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["state"]>;
5119
5016
  declare const externalAccountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ExternalAccount"]["type"]>;
@@ -5191,4 +5088,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
5191
5088
  /** A configured Amos Pay API client returned by {@link createPayApiClient}. */
5192
5089
  type PayApiClient = ReturnType<typeof createPayApiClient>;
5193
5090
 
5194
- export { type $defs, PAY_API_BASE_URL_PRODUCTION, PAY_API_BASE_URL_SANDBOX, PAY_API_VERSION, type PayApiClient, allowedApplePayPaymentMethodInputTypeValues, allowedApplePayPaymentMethodTypeValues, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, type paths, paymentIntentStateValues, paymentLinkAmountTypeValues, paymentMethodTypeValues, payoutDirectionTypeValues, payoutStateTypeValues, processorTransactionPayment_transaction_typeValues, processorTransactionTransaction_typeValues, refundAllowed_reverse_actionValues, refundStateTypeValues, setupIntentStateValues, subscriptionIntervalTypeValues, subscriptionPlanTypeValues, subscriptionStateValues, transactionSourceTypeValues, walletProviderTypeValues, webhookEventTypeValues, type webhooks };
5091
+ export { type $defs, PAY_API_BASE_URL_PRODUCTION, PAY_API_BASE_URL_SANDBOX, PAY_API_VERSION, type PayApiClient, allowedApplePayPaymentMethodInputTypeValues, allowedApplePayPaymentMethodTypeValues, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, bankAccountProfileFailure_reasonValues, cardProfileFailure_reasonValues, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, type paths, paymentIntentStateValues, paymentLinkAmountTypeValues, paymentMethodTypeValues, payoutDirectionTypeValues, payoutStateTypeValues, processorTransactionPayment_transaction_typeValues, processorTransactionTransaction_typeValues, refundAllowed_reverse_actionValues, refundStateTypeValues, setupIntentStateValues, subscriptionIntervalTypeValues, subscriptionPlanTypeValues, subscriptionStateValues, transactionSourceTypeValues, walletProviderTypeValues, webhookEventTypeValues, type webhooks };
package/dist/index.d.ts CHANGED
@@ -490,23 +490,6 @@ interface paths {
490
490
  patch?: never;
491
491
  trace?: never;
492
492
  };
493
- "/embed/payment_intents/{id}/confirm": {
494
- parameters: {
495
- query?: never;
496
- header?: never;
497
- path?: never;
498
- cookie?: never;
499
- };
500
- get?: never;
501
- put?: never;
502
- /** Confirm a payment intent */
503
- post: operations["ConfirmEmbedPaymentIntent"];
504
- delete?: never;
505
- options?: never;
506
- head?: never;
507
- patch?: never;
508
- trace?: never;
509
- };
510
493
  "/embed/payment_intents/{id}/confirm_with_payment_method": {
511
494
  parameters: {
512
495
  query?: never;
@@ -618,7 +601,10 @@ interface paths {
618
601
  path?: never;
619
602
  cookie?: never;
620
603
  };
621
- /** List all payment methods */
604
+ /**
605
+ * List all payment methods
606
+ * @description Filter by exactly one of customer_id or payment_intent_id.
607
+ */
622
608
  get: operations["ListPaymentMethods"];
623
609
  put?: never;
624
610
  post?: never;
@@ -871,23 +857,6 @@ interface paths {
871
857
  patch?: never;
872
858
  trace?: never;
873
859
  };
874
- "/embed/setup_intents/{id}/confirm": {
875
- parameters: {
876
- query?: never;
877
- header?: never;
878
- path?: never;
879
- cookie?: never;
880
- };
881
- get?: never;
882
- put?: never;
883
- /** Confirm a setup intent */
884
- post: operations["ConfirmSetupIntent"];
885
- delete?: never;
886
- options?: never;
887
- head?: never;
888
- patch?: never;
889
- trace?: never;
890
- };
891
860
  "/embed/setup_intents/{id}/confirm_with_payment_method": {
892
861
  parameters: {
893
862
  query?: never;
@@ -1231,6 +1200,8 @@ interface components {
1231
1200
  account_holder_type?: string;
1232
1201
  account_type?: string;
1233
1202
  bank_name?: string;
1203
+ /** @enum {string|null} */
1204
+ failure_reason?: "activation_failed" | "processing_error" | "vault_failed" | null;
1234
1205
  fingerprint?: string | null;
1235
1206
  last4?: string;
1236
1207
  routing_number?: string;
@@ -1290,6 +1261,8 @@ interface components {
1290
1261
  cvc_check_message?: string | null;
1291
1262
  exp_month?: number;
1292
1263
  exp_year?: number;
1264
+ /** @enum {string|null} */
1265
+ failure_reason?: "authorization_failed" | "avs_blocked" | "brand_not_allowed" | "brand_not_found" | "cvc_blocked" | "processing_error" | "vault_failed" | null;
1293
1266
  first6?: string;
1294
1267
  funding?: string | null;
1295
1268
  fingerprint?: string | null;
@@ -1909,22 +1882,14 @@ interface components {
1909
1882
  CreatePaymentIntentRequest: {
1910
1883
  payment_intent: components["schemas"]["CreatePaymentIntentInput"];
1911
1884
  };
1912
- ConfirmPaymentIntentInput: {
1913
- moto?: boolean;
1885
+ ConfirmPaymentIntentWithPaymentMethodInput: {
1914
1886
  /** Format: uuid */
1915
1887
  payment_method_id?: string;
1916
- payment_method?: {
1917
- metadata?: components["schemas"]["Metadata"];
1918
- bank_account_profile_attributes?: components["schemas"]["BankAccountProfileInput"];
1919
- billing_address_attributes?: components["schemas"]["BillingAddressInput"];
1920
- card_profile_attributes?: components["schemas"]["CardProfileInput"];
1921
- };
1922
- };
1923
- ConfirmPaymentIntentRequest: {
1924
- payment_intent: components["schemas"]["ConfirmPaymentIntentInput"];
1925
- };
1926
- ConfirmPaymentIntentWithPaymentMethodInput: {
1927
1888
  payment_method: components["schemas"]["EmbedConfirmPaymentMethodInput"];
1889
+ } | {
1890
+ /** Format: uuid */
1891
+ payment_method_id: string;
1892
+ payment_method?: components["schemas"]["EmbedConfirmPaymentMethodInput"];
1928
1893
  };
1929
1894
  ConfirmPaymentIntentWithPaymentMethodRequest: {
1930
1895
  payment_intent: components["schemas"]["ConfirmPaymentIntentWithPaymentMethodInput"];
@@ -1967,6 +1932,7 @@ interface components {
1967
1932
  };
1968
1933
  RecurringPayment: {
1969
1934
  network_transaction_id?: string;
1935
+ transaction_link_id?: string;
1970
1936
  };
1971
1937
  CreatePaymentLinkInput: {
1972
1938
  slug?: string;
@@ -2074,6 +2040,8 @@ interface components {
2074
2040
  currency?: string;
2075
2041
  direction?: components["schemas"]["PayoutDirectionType"];
2076
2042
  metadata?: components["schemas"]["Metadata"];
2043
+ /** Format: uuid */
2044
+ organization_id?: string;
2077
2045
  prefix?: string;
2078
2046
  public_id?: string;
2079
2047
  state?: components["schemas"]["PayoutStateType"];
@@ -2104,6 +2072,7 @@ interface components {
2104
2072
  processor_transaction_id?: string;
2105
2073
  processor_reference?: string;
2106
2074
  network_transaction_id?: string;
2075
+ transaction_link_id?: string;
2107
2076
  /** @enum {string} */
2108
2077
  transaction_type?: "authorization" | "authorization_reversal" | "capture" | "credit" | "echeck_credit" | "echeck_sale" | "echeck_void" | "sale" | "void";
2109
2078
  /** Format: date-time */
@@ -2220,20 +2189,14 @@ interface components {
2220
2189
  CreateSetupIntentRequest: {
2221
2190
  setup_intent: components["schemas"]["CreateSetupIntentInput"];
2222
2191
  };
2223
- ConfirmSetupIntentInput: {
2224
- moto?: boolean;
2225
- payment_method?: {
2226
- metadata?: components["schemas"]["Metadata"];
2227
- bank_account_profile_attributes?: components["schemas"]["BankAccountProfileInput"];
2228
- billing_address_attributes?: components["schemas"]["BillingAddressInput"];
2229
- card_profile_attributes?: components["schemas"]["CardProfileInput"];
2230
- };
2231
- };
2232
- ConfirmSetupIntentRequest: {
2233
- setup_intent: components["schemas"]["ConfirmSetupIntentInput"];
2234
- };
2235
2192
  ConfirmSetupIntentWithPaymentMethodInput: {
2193
+ /** Format: uuid */
2194
+ payment_method_id?: string;
2236
2195
  payment_method: components["schemas"]["EmbedConfirmPaymentMethodInput"];
2196
+ } | {
2197
+ /** Format: uuid */
2198
+ payment_method_id: string;
2199
+ payment_method?: components["schemas"]["EmbedConfirmPaymentMethodInput"];
2237
2200
  };
2238
2201
  ConfirmSetupIntentWithPaymentMethodRequest: {
2239
2202
  setup_intent: components["schemas"]["ConfirmSetupIntentWithPaymentMethodInput"];
@@ -2478,6 +2441,8 @@ interface components {
2478
2441
  ParentTransactionIdQuery: string;
2479
2442
  /** @description The ID of the payment intent to filter by */
2480
2443
  PaymentIntentIdQuery: string;
2444
+ /** @description The ID of the customer to filter by. Mutually exclusive with payment_intent_id. */
2445
+ PaymentMethodCustomerIdQuery: string;
2481
2446
  /** @description The ID of the payment method to filter by */
2482
2447
  PaymentMethodIdQuery: string;
2483
2448
  /** @description The ID of the payment transaction to filter by */
@@ -3485,42 +3450,6 @@ interface operations {
3485
3450
  };
3486
3451
  };
3487
3452
  };
3488
- ConfirmEmbedPaymentIntent: {
3489
- parameters: {
3490
- query?: never;
3491
- header?: never;
3492
- path: {
3493
- /** @description The ID of the payment intent to confirm */
3494
- id: string;
3495
- };
3496
- cookie?: never;
3497
- };
3498
- requestBody: {
3499
- content: {
3500
- "application/json": components["schemas"]["ConfirmPaymentIntentRequest"];
3501
- };
3502
- };
3503
- responses: {
3504
- /** @description Successful confirmation of payment intent */
3505
- 202: {
3506
- headers: {
3507
- [name: string]: unknown;
3508
- };
3509
- content: {
3510
- "application/json": components["schemas"]["PaymentIntent"];
3511
- };
3512
- };
3513
- /** @description Unprocessable entity */
3514
- 422: {
3515
- headers: {
3516
- [name: string]: unknown;
3517
- };
3518
- content: {
3519
- "application/json": components["schemas"]["Error"];
3520
- };
3521
- };
3522
- };
3523
- };
3524
3453
  ConfirmEmbedPaymentIntentWithPaymentMethod: {
3525
3454
  parameters: {
3526
3455
  query?: never;
@@ -3777,13 +3706,15 @@ interface operations {
3777
3706
  };
3778
3707
  ListPaymentMethods: {
3779
3708
  parameters: {
3780
- query: {
3709
+ query?: {
3781
3710
  /** @description The page of results to retrieve. */
3782
3711
  page?: components["parameters"]["PageQuery"];
3783
3712
  /** @description Number of results per page. */
3784
3713
  per_page?: components["parameters"]["PerPageQuery"];
3785
- /** @description The ID of the customer to filter by */
3786
- customer_id: components["parameters"]["CustomerIdQuery"];
3714
+ /** @description The ID of the customer to filter by. Mutually exclusive with payment_intent_id. */
3715
+ customer_id?: components["parameters"]["PaymentMethodCustomerIdQuery"];
3716
+ /** @description The ID of the payment intent to filter by */
3717
+ payment_intent_id?: components["parameters"]["PaymentIntentIdQuery"];
3787
3718
  };
3788
3719
  header?: never;
3789
3720
  path?: never;
@@ -4371,42 +4302,6 @@ interface operations {
4371
4302
  };
4372
4303
  };
4373
4304
  };
4374
- ConfirmSetupIntent: {
4375
- parameters: {
4376
- query?: never;
4377
- header?: never;
4378
- path: {
4379
- /** @description The ID of the setup intent to confirm */
4380
- id: string;
4381
- };
4382
- cookie?: never;
4383
- };
4384
- requestBody: {
4385
- content: {
4386
- "application/json": components["schemas"]["ConfirmSetupIntentRequest"];
4387
- };
4388
- };
4389
- responses: {
4390
- /** @description Successful confirmation of setup intent */
4391
- 202: {
4392
- headers: {
4393
- [name: string]: unknown;
4394
- };
4395
- content: {
4396
- "application/json": components["schemas"]["SetupIntent"];
4397
- };
4398
- };
4399
- /** @description Unprocessable entity */
4400
- 422: {
4401
- headers: {
4402
- [name: string]: unknown;
4403
- };
4404
- content: {
4405
- "application/json": components["schemas"]["Error"];
4406
- };
4407
- };
4408
- };
4409
- };
4410
4305
  ConfirmSetupIntentWithPaymentMethod: {
4411
4306
  parameters: {
4412
4307
  query?: never;
@@ -5114,6 +5009,8 @@ type ReadonlyArray<T> = [
5114
5009
  ] extends [
5115
5010
  unknown[]
5116
5011
  ] ? Readonly<Exclude<T, undefined>> : Readonly<Exclude<T, undefined>[]>;
5012
+ declare const bankAccountProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["BankAccountProfile"]["failure_reason"]>;
5013
+ declare const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["CardProfile"]["failure_reason"]>;
5117
5014
  declare const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]>;
5118
5015
  declare const chargeStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["state"]>;
5119
5016
  declare const externalAccountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ExternalAccount"]["type"]>;
@@ -5191,4 +5088,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
5191
5088
  /** A configured Amos Pay API client returned by {@link createPayApiClient}. */
5192
5089
  type PayApiClient = ReturnType<typeof createPayApiClient>;
5193
5090
 
5194
- export { type $defs, PAY_API_BASE_URL_PRODUCTION, PAY_API_BASE_URL_SANDBOX, PAY_API_VERSION, type PayApiClient, allowedApplePayPaymentMethodInputTypeValues, allowedApplePayPaymentMethodTypeValues, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, type paths, paymentIntentStateValues, paymentLinkAmountTypeValues, paymentMethodTypeValues, payoutDirectionTypeValues, payoutStateTypeValues, processorTransactionPayment_transaction_typeValues, processorTransactionTransaction_typeValues, refundAllowed_reverse_actionValues, refundStateTypeValues, setupIntentStateValues, subscriptionIntervalTypeValues, subscriptionPlanTypeValues, subscriptionStateValues, transactionSourceTypeValues, walletProviderTypeValues, webhookEventTypeValues, type webhooks };
5091
+ export { type $defs, PAY_API_BASE_URL_PRODUCTION, PAY_API_BASE_URL_SANDBOX, PAY_API_VERSION, type PayApiClient, allowedApplePayPaymentMethodInputTypeValues, allowedApplePayPaymentMethodTypeValues, allowedBankAccountPaymentMethodInputTypeValues, allowedBankAccountPaymentMethodTypeValues, allowedCardPaymentMethodInputTypeValues, allowedCardPaymentMethodTypeValues, allowedGooglePayPaymentMethodInputTypeValues, allowedGooglePayPaymentMethodTypeValues, bankAccountProfileFailure_reasonValues, cardProfileFailure_reasonValues, chargeAllowed_reverse_actionValues, chargeStateValues, type components, createPayApiClient, embedConfirmApplePayPaymentMethodInputTypeValues, embedConfirmBankAccountPaymentMethodInputTypeValues, embedConfirmCardPaymentMethodInputTypeValues, embedConfirmGooglePayPaymentMethodInputTypeValues, externalAccountTypeValues, legalEntityDocumentTypeValues, legalEntityEntityTypeValues, legalEntityOwnershipTypeValues, merchantBusinessCategoryTypeValues, type operations, type paths, paymentIntentStateValues, paymentLinkAmountTypeValues, paymentMethodTypeValues, payoutDirectionTypeValues, payoutStateTypeValues, processorTransactionPayment_transaction_typeValues, processorTransactionTransaction_typeValues, refundAllowed_reverse_actionValues, refundStateTypeValues, setupIntentStateValues, subscriptionIntervalTypeValues, subscriptionPlanTypeValues, subscriptionStateValues, transactionSourceTypeValues, walletProviderTypeValues, webhookEventTypeValues, type webhooks };
package/dist/index.js CHANGED
@@ -41,6 +41,8 @@ __export(index_exports, {
41
41
  allowedCardPaymentMethodTypeValues: () => allowedCardPaymentMethodTypeValues,
42
42
  allowedGooglePayPaymentMethodInputTypeValues: () => allowedGooglePayPaymentMethodInputTypeValues,
43
43
  allowedGooglePayPaymentMethodTypeValues: () => allowedGooglePayPaymentMethodTypeValues,
44
+ bankAccountProfileFailure_reasonValues: () => bankAccountProfileFailure_reasonValues,
45
+ cardProfileFailure_reasonValues: () => cardProfileFailure_reasonValues,
44
46
  chargeAllowed_reverse_actionValues: () => chargeAllowed_reverse_actionValues,
45
47
  chargeStateValues: () => chargeStateValues,
46
48
  createPayApiClient: () => createPayApiClient,
@@ -74,6 +76,8 @@ module.exports = __toCommonJS(index_exports);
74
76
  var import_openapi_fetch = __toESM(require("openapi-fetch"));
75
77
 
76
78
  // openapi/schema.ts
79
+ var bankAccountProfileFailure_reasonValues = ["activation_failed", "processing_error", "vault_failed"];
80
+ var cardProfileFailure_reasonValues = ["authorization_failed", "avs_blocked", "brand_not_allowed", "brand_not_found", "cvc_blocked", "processing_error", "vault_failed"];
77
81
  var chargeAllowed_reverse_actionValues = ["void", "refund"];
78
82
  var chargeStateValues = ["cancelled", "errored", "failed", "processing", "requires_capture", "requires_confirmation", "requires_review", "settlement_failed", "succeeded"];
79
83
  var externalAccountTypeValues = ["external_card", "external_bank_account"];
@@ -130,6 +134,8 @@ function createPayApiClient(options) {
130
134
  allowedCardPaymentMethodTypeValues,
131
135
  allowedGooglePayPaymentMethodInputTypeValues,
132
136
  allowedGooglePayPaymentMethodTypeValues,
137
+ bankAccountProfileFailure_reasonValues,
138
+ cardProfileFailure_reasonValues,
133
139
  chargeAllowed_reverse_actionValues,
134
140
  chargeStateValues,
135
141
  createPayApiClient,