@cfxlabsinc/b2b-services
    Preparing search index...
    Index
    instance: (...args: []) => AchDebitDepositQuoteService = ...

    The process default, beside the instance create that mints a quote.

    • Accepts an ACTIVE quote: one transaction claims the engine quote, moves the quote to ACCEPTED and inserts the deposit; the workflow starts after commit (Dart only). A retry, a race or a quote the old flow left ACCEPTED without a deposit returns the quote's one deposit. A failed start leaves the deposit PENDING, and the next accept of the quote starts it again.

      Parameters

      • args: { customerId: string; idempotencyKey?: string; quoteId: string }
        • customerId: string
        • OptionalidempotencyKey?: string

          The deposit's key; defaults to the quote id, one deposit per quote.

        • quoteId: string

      Returns Promise<
          | { ok: true; value: { depositId: string } }
          | {
              error:
                  | ServiceError<"QUOTE_NOT_FOUND">
                  | ServiceError<"QUOTE_EXPIRED">
                  | ServiceError<
                      "QUOTE_NOT_ACTIVE",
                      { status: "ACTIVE"
                      | "EXPIRED"
                      | "ACCEPTED"
                      | "REJECTED" },
                  >;
              ok: false;
          },
      >

    • Parameters

      • args: {
            customerId: string;
            entityId: string;
            idempotencyKey?: string;
            reference: string;
            sourceAmount: BigNumber;
            sourceCurrency: string;
            sourcePaymentInstrumentId: string;
            speed?: "same-day" | "next-day";
            targetCurrency: "MOVEUSD";
            walletAddress: Address;
            walletBlockchain: "SOLANA";
        }
        • customerId: string
        • entityId: string
        • OptionalidempotencyKey?: string

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

        • reference: string
        • sourceAmount: BigNumber
        • sourceCurrency: string
        • sourcePaymentInstrumentId: string
        • Optionalspeed?: "same-day" | "next-day"
        • targetCurrency: "MOVEUSD"
        • walletAddress: Address
        • walletBlockchain: "SOLANA"

      Returns Promise<
          | { ok: true; value: DepositQuote
          | null }
          | { error: AchDebitDepositQuoteCreateError; ok: false },
      >