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

    Hierarchy

    • UsWireWithdrawalQuoteQueryService
      • UsWireWithdrawalQuoteService
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Parameters

      • args: Pick<
            UsWireWithdrawalQuote,
            "deviceIpAddress"
            | "deviceLocation"
            | "entityId"
            | "purpose",
        > & (
            { customerId: string; targetWirePaymentInstrument: string; sourceAccountId: string; senderMessage?: string | undefined; beneficiaryReference?: string | undefined; } & ({ sourceAmount: BigNumber; } | { targetAmount: BigNumber; })
        )

      Returns Promise<
          | { ok: true; value: UsWireWithdrawalQuote }
          | {
              error:
                  | ServiceError<"LIMIT_EXCEEDED", ProductLimitViolation>
                  | ServiceError<
                      "PRODUCT_BLOCKED"
                      | "PRODUCT_INACTIVE"
                      | "NO_ELIGIBLE_ROUTE",
                  >
                  | ServiceError<"ENTITY_NOT_FOUND" | "ENTITY_CANNOT_TRANSACT">
                  | ServiceError<QuoteInvariantViolation>
                  | ServiceError<
                      "INSUFFICIENT_FUNDS",
                      { balance: { amount: BigNumber; currency: string } },
                  >;
              ok: false;
          },
      >