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

    The process default: built from each dependency's own instance().

    • Parameters

      • args: {
            customerId: string;
            idempotencyKey: string;
            onCancelled?: "return" | "recreate";
            quoteId: string;
        }
        • customerId: string
        • idempotencyKey: string
        • OptionalonCancelled?: "return" | "recreate"

          Only processFromBankTransaction passes "recreate". Left at the default here, where the key is customer-supplied and idempotency means the same key always answers the same thing.

        • quoteId: string

      Returns Promise<{ ok: true; value: { depositId: string } }>

    • Parameters

      • args: {
            customerId: string;
            entityId: string;
            ffcMemo?: string;
            idempotencyKey?: string;
            imad?: string;
            omad?: string;
            originatingFI?: string;
            originatorAddressLine1?: string;
            originatorAddressLine2?: string;
            originatorAddressLine3?: string;
            originatorInfo?: string;
            senderName?: string;
            sendingFI?: { code: string; name: string };
            sourceAmount: BigNumber;
            sourceCurrency: string;
            targetCurrency: "MOVEUSD";
            walletAddress: Address;
            walletBlockchain: "SOLANA";
        }
        • customerId: string
        • entityId: string
        • OptionalffcMemo?: string
        • OptionalidempotencyKey?: string

          Caller-supplied dedupe token threaded into the audit quote so a re-drive of the same source (e.g. bank-transaction webhook redelivery) reuses the pinned product_quote instead of orphaning a fresh one.

        • Optionalimad?: string
        • Optionalomad?: string
        • OptionaloriginatingFI?: string
        • OptionaloriginatorAddressLine1?: string
        • OptionaloriginatorAddressLine2?: string
        • OptionaloriginatorAddressLine3?: string
        • OptionaloriginatorInfo?: string
        • OptionalsenderName?: string
        • OptionalsendingFI?: { code: string; name: string }

          Inbound-wire detail off the funding bank transaction. Each is set only when the bank reported it.

        • sourceAmount: BigNumber
        • sourceCurrency: string
        • targetCurrency: "MOVEUSD"
        • walletAddress: Address
        • walletBlockchain: "SOLANA"

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

    • Parameters

      • args: {
            bankTransactionId: string;
            customerId: string;
            entityId: string;
            memo?: string;
            walletAddress: Address;
            walletBlockchain: "SOLANA";
        }
        • bankTransactionId: string
        • customerId: string
        • entityId: string
        • Optionalmemo?: string

          Fallback: used only when the bank transaction records no FFC memo.

        • walletAddress: Address
        • walletBlockchain: "SOLANA"

      Returns Promise<
          | { ok: true; value: { depositId: string } }
          | {
              error:
                  | ServiceError<"QUOTE_FAILED">
                  | ServiceError<"INVALID_BANK_TX", { bankTransactionId: string }>
                  | ServiceError<
                      "DEPOSIT_CANCELLED_AFTER_MINT",
                      { depositId: string; receiptId: string },
                  >;
              ok: false;
          },
      >