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

    Reusable activities used by various withdrawal workflows

    Index

    Constructors

    Methods

    • Parameters

      • methodId:
            | "US_WIRE"
            | "SWIFT_WIRE"
            | "US_ACH"
            | "US_INSTANT"
            | "MX_SPEI"
            | "US_WIRE_DRAWDOWN"
            | "AF_WITHDRAWAL"
            | "ACH_PULL"
            | "BLOCKCHAIN"

      Returns string

    • Parameters

      • __namedParameters: { withdrawalId: string }

      Returns Promise<
          {
              achBatchId?: string;
              amount: string;
              commitId?: string;
              commitTxId?: string;
              createdAt: Date;
              id: string;
              idempotencyKey: string;
              initiateTxId?: string;
              redemptionWalletId: string;
              status: "PENDING"
              | "FAILED"
              | "COMMITTED"
              | "VOIDED";
              updatedAt: Date;
              voidTxId?: string;
              withdrawalId?: string;
          } & { customerId: string },
      >

    • Transfer fees from pending redemption wallet to our fees redemption wallet.

      This should be called when withdrawal has successfully completed.

      Parameters

      • __namedParameters: { withdrawalId: string }

      Returns Promise<string>

      Solana transaction signature

    • Void the redemption and refund to the withdrawal's source wallet

      Parameters

      • __namedParameters: { withdrawalId: string }

      Returns Promise<
          {
              achBatchId?: string;
              amount: string;
              commitId?: string;
              commitTxId?: string;
              createdAt: Date;
              id: string;
              idempotencyKey: string;
              initiateTxId?: string;
              redemptionWalletId: string;
              status: "PENDING"
              | "FAILED"
              | "COMMITTED"
              | "VOIDED";
              updatedAt: Date;
              voidTxId?: string;
              withdrawalId?: string;
          },
      >

      the redemption (void in progress)