@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/openapi/schema.ts CHANGED
@@ -598,7 +598,10 @@ export interface paths {
598
598
  path?: never;
599
599
  cookie?: never;
600
600
  };
601
- /** List all payment methods */
601
+ /**
602
+ * List all payment methods
603
+ * @description Filter by exactly one of customer_id or payment_intent_id.
604
+ */
602
605
  get: operations["ListPaymentMethods"];
603
606
  put?: never;
604
607
  post?: never;
@@ -1194,6 +1197,8 @@ export interface components {
1194
1197
  account_holder_type?: string;
1195
1198
  account_type?: string;
1196
1199
  bank_name?: string;
1200
+ /** @enum {string|null} */
1201
+ failure_reason?: "activation_failed" | "processing_error" | "vault_failed" | null;
1197
1202
  fingerprint?: string | null;
1198
1203
  last4?: string;
1199
1204
  routing_number?: string;
@@ -1253,6 +1258,8 @@ export interface components {
1253
1258
  cvc_check_message?: string | null;
1254
1259
  exp_month?: number;
1255
1260
  exp_year?: number;
1261
+ /** @enum {string|null} */
1262
+ failure_reason?: "authorization_failed" | "avs_blocked" | "brand_not_allowed" | "brand_not_found" | "cvc_blocked" | "processing_error" | "vault_failed" | null;
1256
1263
  first6?: string;
1257
1264
  funding?: string | null;
1258
1265
  fingerprint?: string | null;
@@ -2030,6 +2037,8 @@ export interface components {
2030
2037
  currency?: string;
2031
2038
  direction?: components["schemas"]["PayoutDirectionType"];
2032
2039
  metadata?: components["schemas"]["Metadata"];
2040
+ /** Format: uuid */
2041
+ organization_id?: string;
2033
2042
  prefix?: string;
2034
2043
  public_id?: string;
2035
2044
  state?: components["schemas"]["PayoutStateType"];
@@ -2429,6 +2438,8 @@ export interface components {
2429
2438
  ParentTransactionIdQuery: string;
2430
2439
  /** @description The ID of the payment intent to filter by */
2431
2440
  PaymentIntentIdQuery: string;
2441
+ /** @description The ID of the customer to filter by. Mutually exclusive with payment_intent_id. */
2442
+ PaymentMethodCustomerIdQuery: string;
2432
2443
  /** @description The ID of the payment method to filter by */
2433
2444
  PaymentMethodIdQuery: string;
2434
2445
  /** @description The ID of the payment transaction to filter by */
@@ -3692,13 +3703,15 @@ export interface operations {
3692
3703
  };
3693
3704
  ListPaymentMethods: {
3694
3705
  parameters: {
3695
- query: {
3706
+ query?: {
3696
3707
  /** @description The page of results to retrieve. */
3697
3708
  page?: components["parameters"]["PageQuery"];
3698
3709
  /** @description Number of results per page. */
3699
3710
  per_page?: components["parameters"]["PerPageQuery"];
3700
- /** @description The ID of the customer to filter by */
3701
- customer_id: components["parameters"]["CustomerIdQuery"];
3711
+ /** @description The ID of the customer to filter by. Mutually exclusive with payment_intent_id. */
3712
+ customer_id?: components["parameters"]["PaymentMethodCustomerIdQuery"];
3713
+ /** @description The ID of the payment intent to filter by */
3714
+ payment_intent_id?: components["parameters"]["PaymentIntentIdQuery"];
3702
3715
  };
3703
3716
  header?: never;
3704
3717
  path?: never;
@@ -4993,6 +5006,8 @@ type ReadonlyArray<T> = [
4993
5006
  ] extends [
4994
5007
  unknown[]
4995
5008
  ] ? Readonly<Exclude<T, undefined>> : Readonly<Exclude<T, undefined>[]>;
5009
+ export const bankAccountProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["BankAccountProfile"]["failure_reason"]> = ["activation_failed", "processing_error", "vault_failed"];
5010
+ export const cardProfileFailure_reasonValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["CardProfile"]["failure_reason"]> = ["authorization_failed", "avs_blocked", "brand_not_allowed", "brand_not_found", "cvc_blocked", "processing_error", "vault_failed"];
4996
5011
  export const chargeAllowed_reverse_actionValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["allowed_reverse_action"]> = ["void", "refund"];
4997
5012
  export const chargeStateValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["Charge"]["state"]> = ["cancelled", "errored", "failed", "processing", "requires_capture", "requires_confirmation", "requires_review", "settlement_failed", "succeeded"];
4998
5013
  export const externalAccountTypeValues: ReadonlyArray<FlattenedDeepRequired<components>["schemas"]["ExternalAccount"]["type"]> = ["external_card", "external_bank_account"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amos.com/node",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "description": "Node.js client for the Amos Pay API.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",