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

    Hierarchy

    • AchDebitWithdrawalQuoteQueryService
      • AchDebitWithdrawalQuoteService
    Index
    db: B2bDatabase
    instance: (...args: []) => AchDebitWithdrawalQuoteService = ...

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

    • Parameters

      • args: { customerId: string; quoteId: string; settled?: true }
        • customerId: string
        • quoteId: string
        • Optionalsettled?: true

          A debit that has already posted, quoted with settled: its limits are not re-checked. Never set on a customer path.

      Returns Promise<
          | { error: ServiceError; ok: false }
          | { ok: true; value: { withdrawalId: string } },
      >

    • Parameters

      • args: Pick<
            AchDebitWithdrawalQuote,
            "deviceIpAddress"
            | "deviceLocation"
            | "entityId"
            | "achId",
        > & (
            { customerId: string; targetAchPaymentInstrument: string; sourceAccountId: string; idempotencyKey?: string | undefined; settled?: true | undefined; } & ({ sourceAmount: BigNumber; } | { targetAmount: BigNumber; })
        )

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

    • Parameters

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

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