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

    Hierarchy

    • AchCreditWithdrawalQuoteQueryService
      • AchCreditWithdrawalQuoteService
    Index
    db: B2bDatabase
    instance: (...args: []) => AchCreditWithdrawalQuoteService = ...

    The process service, starting workflows on the temporal namespace's queue.

    • Parameters

      • args: Pick<
            AchCreditWithdrawalQuote,
            "deviceIpAddress"
            | "deviceLocation"
            | "entityId",
        > & (
            { customerId: string; targetAchPaymentInstrument: string; speed?: "same-day" | "next-day" | undefined; idempotencyKey?: string | undefined; sourceAccountId: string; } & ({ sourceAmount: BigNumber; } | { targetAmount: BigNumber; })
        )

      Returns Promise<
          | { ok: true; value: AchCreditWithdrawalQuote }
          | {
              error:
                  | ServiceError<
                      | "INSUFFICIENT_FUNDS"
                      | "PRODUCT_INACTIVE"
                      | "NO_ELIGIBLE_ROUTE"
                      | "CUSTOMER_NOT_ACTIVE"
                      | "PAYMENT_INSTRUMENT_BLOCKED"
                      | "PAYMENT_INSTRUMENT_ACTION_REQUIRED",
                  >
                  | ServiceError<"ENTITY_NOT_FOUND" | "ENTITY_CANNOT_TRANSACT">
                  | ServiceError<"LIMIT_EXCEEDED", ProductLimitViolation>
                  | ServiceError<QuoteInvariantViolation>
                  | ServiceError<"SPEED_NOT_SUPPORTED">
                  | ServiceError<"ACCOUNT_HOLDER_NAME_REQUIRED">;
              ok: false;
          },
      >

    • Parameters

      • __namedParameters: {
            customerId: string;
            id: string;
            tx?: PgAsyncTransaction<NodePgQueryResultHKT, EmptyRelations>;
        }

      Returns Promise<{ ok: true; value: AchCreditWithdrawalQuote | null }>