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

    Hierarchy

    • SwiftWireWithdrawalQuoteQueryService
      • SwiftWireWithdrawalQuoteService
    Index
    • Parameters

      • args: {
            B2B_TEMPORAL_WORKER_TASK_QUEUE: string;
            customerQueryService: CustomerQueryService;
            db: B2bDatabase;
            entityService: EntityService;
            ledgerAccountQueryService: LedgerAccountQueryService;
            metcapWireBatchService: MetcapWireBatchService;
            paymentInstrumentQueryService: PaymentInstrumentQueryService;
            productQuoteService: ProductQuoteService;
            routeFusionClient: RouteFusionClient;
            solanaTokenService: SolanaTokenQueryService;
            temporalClient: Client;
            virtualAccountQueryService: VirtualAccountQueryService;
            withdrawalAdminService: WithdrawalAdminService;
            withdrawalQuoteService: WithdrawalQuoteService;
        }

      Returns SwiftWireWithdrawalQuoteService

    • Parameters

      • args: Pick<
            SwiftWireWithdrawalQuote,
            "deviceIpAddress"
            | "deviceLocation"
            | "entityId"
            | "purpose",
        > & (
            { customerId: string; targetWirePaymentInstrument: string; sourceAccountId: string; targetCurrency: "USD" | "MXN" | "AUD" | "HKD" | "JPY" | "NZD" | "SGD" | "SEK" | "CHF" | "CAD" | "GBP" | "CZK" | "DKK" | "EUR"; senderMessage?: string | undefined; beneficiaryReference?: string | undefined; idempotencyKey?: string | undefined; } & ({ sourceAmount: BigNumber; } | { targetAmount: BigNumber; })
        )

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

    • Parameters

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

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