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

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Parameters

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

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