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

    Hierarchy

    • WireDrawdownWithdrawalQuoteQueryService
      • WireDrawdownWithdrawalQuoteService
    Index
    • Parameters

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

      Returns WireDrawdownWithdrawalQuoteService

    • Parameters

      • args: {
            bankId?: string;
            customerId: string;
            drawdownId: string;
            idempotencyKey?: string;
            sourceAccountId: string;
            targetAmount: BigNumber;
            wirePaymentInstrumentId: string;
        }
        • OptionalbankId?: string
        • customerId: string
        • drawdownId: string
        • OptionalidempotencyKey?: string

          Caller-supplied idempotency key (from the API Idempotency-Key header). Threaded into productQuoteService.quote() (dedupes the pinned engine quote) and withdrawalQuoteService.create() (dedupes the withdrawal quote). Optional — internal callers don't supply one.

        • sourceAccountId: string
        • targetAmount: BigNumber
        • wirePaymentInstrumentId: string

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

    • Get a withdrawal by ID without customer restriction

      Parameters

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

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