@amos.com/node 0.1.27 → 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/dist/index.d.mts CHANGED
@@ -601,7 +601,10 @@ interface paths {
601
601
  path?: never;
602
602
  cookie?: never;
603
603
  };
604
- /** List all payment methods */
604
+ /**
605
+ * List all payment methods
606
+ * @description Filter by exactly one of customer_id or payment_intent_id.
607
+ */
605
608
  get: operations["ListPaymentMethods"];
606
609
  put?: never;
607
610
  post?: never;
@@ -1197,6 +1200,8 @@ interface components {
1197
1200
  account_holder_type?: string;
1198
1201
  account_type?: string;
1199
1202
  bank_name?: string;
1203
+ /** @enum {string|null} */
1204
+ failure_reason?: "activation_failed" | "processing_error" | "vault_failed" | null;
1200
1205
  fingerprint?: string | null;
1201
1206
  last4?: string;
1202
1207
  routing_number?: string;
@@ -1256,6 +1261,8 @@ interface components {
1256
1261
  cvc_check_message?: string | null;
1257
1262
  exp_month?: number;
1258
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;
1259
1266
  first6?: string;
1260
1267
  funding?: string | null;
1261
1268
  fingerprint?: string | null;
@@ -2033,6 +2040,8 @@ interface components {
2033
2040
  currency?: string;
2034
2041
  direction?: components["schemas"]["PayoutDirectionType"];
2035
2042
  metadata?: components["schemas"]["Metadata"];
2043
+ /** Format: uuid */
2044
+ organization_id?: string;
2036
2045
  prefix?: string;
2037
2046
  public_id?: string;
2038
2047
  state?: components["schemas"]["PayoutStateType"];
@@ -2432,6 +2441,8 @@ interface components {
2432
2441
  ParentTransactionIdQuery: string;
2433
2442
  /** @description The ID of the payment intent to filter by */
2434
2443
  PaymentIntentIdQuery: string;
2444
+ /** @description The ID of the customer to filter by. Mutually exclusive with payment_intent_id. */
2445
+ PaymentMethodCustomerIdQuery: string;
2435
2446
  /** @description The ID of the payment method to filter by */
2436
2447
  PaymentMethodIdQuery: string;
2437
2448
  /** @description The ID of the payment transaction to filter by */
@@ -3695,13 +3706,15 @@ interface operations {
3695
3706
  };
3696
3707
  ListPaymentMethods: {
3697
3708
  parameters: {
3698
- query: {
3709
+ query?: {
3699
3710
  /** @description The page of results to retrieve. */
3700
3711
  page?: components["parameters"]["PageQuery"];
3701
3712
  /** @description Number of results per page. */
3702
3713
  per_page?: components["parameters"]["PerPageQuery"];
3703
- /** @description The ID of the customer to filter by */
3704
- 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"];
3705
3718
  };
3706
3719
  header?: never;
3707
3720
  path?: never;
@@ -4996,6 +5009,8 @@ type ReadonlyArray<T> = [
4996
5009
  ] extends [
4997
5010
  unknown[]
4998
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"]>;
4999
5014
  declare const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]>;
5000
5015
  declare const chargeStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["state"]>;
5001
5016
  declare const externalAccountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ExternalAccount"]["type"]>;
@@ -5073,4 +5088,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
5073
5088
  /** A configured Amos Pay API client returned by {@link createPayApiClient}. */
5074
5089
  type PayApiClient = ReturnType<typeof createPayApiClient>;
5075
5090
 
5076
- 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
@@ -601,7 +601,10 @@ interface paths {
601
601
  path?: never;
602
602
  cookie?: never;
603
603
  };
604
- /** List all payment methods */
604
+ /**
605
+ * List all payment methods
606
+ * @description Filter by exactly one of customer_id or payment_intent_id.
607
+ */
605
608
  get: operations["ListPaymentMethods"];
606
609
  put?: never;
607
610
  post?: never;
@@ -1197,6 +1200,8 @@ interface components {
1197
1200
  account_holder_type?: string;
1198
1201
  account_type?: string;
1199
1202
  bank_name?: string;
1203
+ /** @enum {string|null} */
1204
+ failure_reason?: "activation_failed" | "processing_error" | "vault_failed" | null;
1200
1205
  fingerprint?: string | null;
1201
1206
  last4?: string;
1202
1207
  routing_number?: string;
@@ -1256,6 +1261,8 @@ interface components {
1256
1261
  cvc_check_message?: string | null;
1257
1262
  exp_month?: number;
1258
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;
1259
1266
  first6?: string;
1260
1267
  funding?: string | null;
1261
1268
  fingerprint?: string | null;
@@ -2033,6 +2040,8 @@ interface components {
2033
2040
  currency?: string;
2034
2041
  direction?: components["schemas"]["PayoutDirectionType"];
2035
2042
  metadata?: components["schemas"]["Metadata"];
2043
+ /** Format: uuid */
2044
+ organization_id?: string;
2036
2045
  prefix?: string;
2037
2046
  public_id?: string;
2038
2047
  state?: components["schemas"]["PayoutStateType"];
@@ -2432,6 +2441,8 @@ interface components {
2432
2441
  ParentTransactionIdQuery: string;
2433
2442
  /** @description The ID of the payment intent to filter by */
2434
2443
  PaymentIntentIdQuery: string;
2444
+ /** @description The ID of the customer to filter by. Mutually exclusive with payment_intent_id. */
2445
+ PaymentMethodCustomerIdQuery: string;
2435
2446
  /** @description The ID of the payment method to filter by */
2436
2447
  PaymentMethodIdQuery: string;
2437
2448
  /** @description The ID of the payment transaction to filter by */
@@ -3695,13 +3706,15 @@ interface operations {
3695
3706
  };
3696
3707
  ListPaymentMethods: {
3697
3708
  parameters: {
3698
- query: {
3709
+ query?: {
3699
3710
  /** @description The page of results to retrieve. */
3700
3711
  page?: components["parameters"]["PageQuery"];
3701
3712
  /** @description Number of results per page. */
3702
3713
  per_page?: components["parameters"]["PerPageQuery"];
3703
- /** @description The ID of the customer to filter by */
3704
- 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"];
3705
3718
  };
3706
3719
  header?: never;
3707
3720
  path?: never;
@@ -4996,6 +5009,8 @@ type ReadonlyArray<T> = [
4996
5009
  ] extends [
4997
5010
  unknown[]
4998
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"]>;
4999
5014
  declare const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]>;
5000
5015
  declare const chargeStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["state"]>;
5001
5016
  declare const externalAccountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ExternalAccount"]["type"]>;
@@ -5073,4 +5088,4 @@ declare function createPayApiClient(options: ClientOptions): openapi_fetch.Clien
5073
5088
  /** A configured Amos Pay API client returned by {@link createPayApiClient}. */
5074
5089
  type PayApiClient = ReturnType<typeof createPayApiClient>;
5075
5090
 
5076
- 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,