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

    Constructors

    Methods

    • Parameters

      • args: { bankTransactionId: string; withdrawalId: string }

      Returns Promise<
          | { ok: true; value: void }
          | {
              error:
                  | ServiceError<"REDEMPTION_NOT_FOUND", { redemptionId: string }>
                  | ServiceError<"REDEMPTION_NOT_PENDING", { redemptionId: string }>
                  | ServiceError<"INVALID_BANK_TX", { bankTransactionId: string }>
                  | ServiceError<
                      "AMOUNT_MISMATCH",
                      { bankTransactionAmount: string; redemptionAmount: string },
                  >
                  | ServiceError<"WITHDRAWAL_NOT_FOUND", { withdrawalId: string }>
                  | ServiceError<"INVALID_BANK_TX", { bankTransactionId: string }>
                  | ServiceError<
                      "WITHDRAWAL_ALREADY_RECONCILED",
                      { existingWithdrawalId: string; withdrawalId: string },
                  >
                  | ServiceError<
                      "AMOUNT_MISMATCH",
                      { bankTransactionAmount: string; withdrawalAmount: string },
                  >
                  | ServiceError<"REDEMPTION_NOT_FOUND", { withdrawalId: string }>
                  | ServiceError<
                      "REDEMPTION_FAILED_OR_VOIDED",
                      { redemptionId: string; status: string },
                  >;
              ok: false;
          },
      >