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

    Hierarchy

    • AchDebitWithdrawalQuoteQueryService
      • AchDebitWithdrawalQuoteService
    Index
    • Parameters

      • args: {
            B2B_TEMPORAL_WORKER_TASK_QUEUE: string;
            customerQueryService: CustomerQueryService;
            db: B2bDatabase;
            entityService: EntityService;
            ledgerAccountQueryService: LedgerAccountQueryService;
            paymentInstrumentQueryService: PaymentInstrumentQueryService;
            productQuoteService: ProductQuoteService;
            temporalClient: Client;
            victorAccountClient: VictorAccountClient;
            victorAccountQueryService: VictorAccountQueryService;
            virtualAccountQueryService: VirtualAccountQueryService;
            withdrawalAdminService: WithdrawalAdminService;
            withdrawalQuoteService: WithdrawalQuoteService;
        }

      Returns AchDebitWithdrawalQuoteService

    • Parameters

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

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

    • Parameters

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

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