@cfxlabsinc/b2b-services
    Preparing search index...

    Maintain external ACH debit payment instruments.

    These represent ACH debit originators where only the originator name is known (no account/routing number).

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Parameters

      • __namedParameters: {
            customerId: string;
            entityId: string;
            originatorName: string;
            referenceId?: string;
        }

      Returns Promise<
          | {
              ok: true;
              value: {
                  createdAt: Date;
                  deletedAt: Date
                  | null;
                  id: string;
                  originatorName: string;
                  provider: "CFX";
                  providerId: string;
                  referenceId?: string;
                  status: "ACTIVE" | "DELETED" | "PENDING_VERIFICATION" | "BLOCKED";
                  type: "EXTERNAL_US_ACH";
                  updatedAt: Date;
              };
          }
          | { error: ServiceError; ok: false },
      >

    • Create the instrument if it doesn't exist, otherwise return the existing one.

      Parameters

      • args: {
            customerId: string;
            entityId: string;
            originatorName: string;
            referenceId?: string;
        }

      Returns Promise<
          | {
              ok: true;
              value: {
                  createdAt: Date;
                  deletedAt: Date
                  | null;
                  id: string;
                  originatorName: string;
                  provider: "CFX";
                  providerId: string;
                  referenceId?: string;
                  status: "ACTIVE" | "DELETED" | "PENDING_VERIFICATION" | "BLOCKED";
                  type: "EXTERNAL_US_ACH";
                  updatedAt: Date;
              };
          }
          | { error: ServiceError; ok: false },
      >