feat: ( payment ) specific CBE query descriptions + Payment_Reason

This commit is contained in:
Abubeker Yasin
2026-07-31 16:03:28 +03:00
parent 37855b0a83
commit aa4ce7fd23
8 changed files with 183 additions and 38 deletions

View File

@@ -3,7 +3,7 @@ import { CbeQueryResponseDto } from "../dto/cbe-query-response.dto";
export function mapQuerySuccess(
request: CbeQueryRequestDto,
input: { amountMajor: number; fullName: string },
input: { amountMajor: number; fullName: string; paymentReason: string },
): CbeQueryResponseDto {
const amount = input.amountMajor.toFixed(2);
return {
@@ -16,7 +16,7 @@ export function mapQuerySuccess(
First_Name: "",
Last_Name: "",
Full_Name: input.fullName,
Payment_Reason: "",
Payment_Reason: input.paymentReason,
Tin_Number: "",
Credit_Acct_Number: "",
Transaction_Type: "",