response

package
v1.0.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2026 License: MIT Imports: 0 Imported by: 1

README ¶

📦 Package response

Source Path: ./shared/domain/response

🧩 Types

APIResponsePagination

APIResponsePagination is a generic paginated response wrapper. Combines data payload with pagination metadata.

type APIResponsePagination struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data T `json:"data"`
	Meta PaginationMeta `json:"pagination"`
}
ApiResponse

ApiResponse is a generic response wrapper for successful API responses. The type parameter T allows this to be used with any data type.

type ApiResponse struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data T `json:"data"`
}
ApiResponseCard

ApiResponseCard is the standard response format for single card requests.

type ApiResponseCard struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data *CardResponse `json:"data"`
}
ApiResponseCardAll

ApiResponseCardAll is the response format for bulk card operations.

type ApiResponseCardAll struct {
	Status string `json:"status"`
	Message string `json:"message"`
}
ApiResponseCardDelete

ApiResponseCardDelete is the response format for card deletion operations.

type ApiResponseCardDelete struct {
	Status string `json:"status"`
	Message string `json:"message"`
}
ApiResponseDashboardCard

ApiResponseDashboardCard is the response format for dashboard card statistics.

type ApiResponseDashboardCard struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data *DashboardCard `json:"data"`
}
ApiResponseDashboardCardNumber

ApiResponseDashboardCardNumber is the response format for card-specific dashboard stats.

type ApiResponseDashboardCardNumber struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data *DashboardCardCardNumber `json:"data"`
}
ApiResponseForgotPassword

ApiResponseForgotPassword is the response format for password reset initiation. Used when requesting a password reset link.

type ApiResponseForgotPassword struct {
	Status string `json:"status"`
	Message string `json:"message"`
}
ApiResponseGetMe

ApiResponseGetMe is the response format for current user profile requests. Contains the authenticated user's information.

type ApiResponseGetMe struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data *UserResponse `json:"data"`
}
ApiResponseLogin

ApiResponseLogin is the response format for successful login attempts. Contains the authentication tokens.

type ApiResponseLogin struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data *TokenResponse `json:"data"`
}
ApiResponseMerchant

ApiResponseMerchant wraps a single merchant response.

type ApiResponseMerchant struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data *MerchantResponse `json:"data"`
}
ApiResponseMerchantAll

ApiResponseMerchantAll wraps bulk merchant operation responses.

type ApiResponseMerchantAll struct {
	Status string `json:"status"`
	Message string `json:"message"`
}
ApiResponseMerchantDelete

ApiResponseMerchantDelete wraps merchant deletion responses.

type ApiResponseMerchantDelete struct {
	Status string `json:"status"`
	Message string `json:"message"`
}
ApiResponseMerchantDocument

ApiResponseMerchantDocument is the standard response format for single document requests.

type ApiResponseMerchantDocument struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data *MerchantDocumentResponse `json:"data"`
}
ApiResponseMerchantDocumentAll

ApiResponseMerchantDocumentAll is the response format for bulk document operations.

type ApiResponseMerchantDocumentAll struct {
	Status string `json:"status"`
	Message string `json:"message"`
}
ApiResponseMerchantDocumentDelete

ApiResponseMerchantDocumentDelete is the response format for document deletion operations.

type ApiResponseMerchantDocumentDelete struct {
	Status string `json:"status"`
	Message string `json:"message"`
}
ApiResponseMerchantMonthlyAmount

ApiResponseMerchantMonthlyAmount wraps monthly transaction amounts.

type ApiResponseMerchantMonthlyAmount struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*MerchantResponseMonthlyAmount `json:"data"`
}
ApiResponseMerchantMonthlyPaymentMethod

ApiResponseMerchantMonthlyPaymentMethod wraps monthly payment method statistics.

type ApiResponseMerchantMonthlyPaymentMethod struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*MerchantResponseMonthlyPaymentMethod `json:"data"`
}
ApiResponseMerchantMonthlyTotalAmount

ApiResponseMerchantMonthlyTotalAmount wraps detailed monthly transaction totals.

type ApiResponseMerchantMonthlyTotalAmount struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*MerchantResponseMonthlyTotalAmount `json:"data"`
}
ApiResponseMerchantYearlyAmount

ApiResponseMerchantYearlyAmount wraps yearly transaction amounts.

type ApiResponseMerchantYearlyAmount struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*MerchantResponseYearlyAmount `json:"data"`
}
ApiResponseMerchantYearlyPaymentMethod

ApiResponseMerchantYearlyPaymentMethod wraps yearly payment method statistics.

type ApiResponseMerchantYearlyPaymentMethod struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*MerchantResponseYearlyPaymentMethod `json:"data"`
}
ApiResponseMerchantYearlyTotalAmount

ApiResponseMerchantYearlyTotalAmount wraps comprehensive yearly transaction totals.

type ApiResponseMerchantYearlyTotalAmount struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*MerchantResponseYearlyTotalAmount `json:"data"`
}
ApiResponseMonthSaldoBalances

ApiResponseMonthSaldoBalances wraps monthly balance trend responses.

type ApiResponseMonthSaldoBalances struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*SaldoMonthBalanceResponse `json:"data"`
}
ApiResponseMonthTotalSaldo

ApiResponseMonthTotalSaldo wraps monthly total balance responses.

type ApiResponseMonthTotalSaldo struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*SaldoMonthTotalBalanceResponse `json:"data"`
}
ApiResponseMonthlyAmount

ApiResponseMonthlyAmount is the response format for monthly transaction amounts.

type ApiResponseMonthlyAmount struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*CardResponseMonthAmount `json:"data"`
}
ApiResponseMonthlyBalance

ApiResponseMonthlyBalance is the response format for monthly balance data.

type ApiResponseMonthlyBalance struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*CardResponseMonthBalance `json:"data"`
}
ApiResponsePaginationCard

ApiResponsePaginationCard is the paginated response for card lists.

type ApiResponsePaginationCard struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*CardResponse `json:"data"`
	Pagination *PaginationMeta `json:"pagination"`
}
ApiResponsePaginationCardDeleteAt

ApiResponsePaginationCardDeleteAt is the paginated response including deleted cards.

type ApiResponsePaginationCardDeleteAt struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*CardResponseDeleteAt `json:"data"`
	Pagination *PaginationMeta `json:"pagination"`
}
ApiResponsePaginationMerchant

ApiResponsePaginationMerchant wraps paginated merchant lists.

type ApiResponsePaginationMerchant struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*MerchantResponse `json:"data"`
	Pagination *PaginationMeta `json:"pagination"`
}
ApiResponsePaginationMerchantDeleteAt

ApiResponsePaginationMerchantDeleteAt wraps paginated lists including deleted merchants.

type ApiResponsePaginationMerchantDeleteAt struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*MerchantResponseDeleteAt `json:"data"`
	Pagination *PaginationMeta `json:"pagination"`
}
ApiResponsePaginationMerchantDocument

ApiResponsePaginationMerchantDocument is the paginated response for document lists.

type ApiResponsePaginationMerchantDocument struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*MerchantDocumentResponse `json:"data"`
	Pagination *PaginationMeta `json:"pagination"`
}
ApiResponsePaginationMerchantDocumentDeleteAt

ApiResponsePaginationMerchantDocumentDeleteAt is the paginated response including deleted documents.

type ApiResponsePaginationMerchantDocumentDeleteAt struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*MerchantDocumentResponseDeleteAt `json:"data"`
	Pagination *PaginationMeta `json:"pagination"`
}
ApiResponsePaginationMerchantTransaction

ApiResponsePaginationMerchantTransaction wraps paginated merchant transaction lists.

type ApiResponsePaginationMerchantTransaction struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*MerchantTransactionResponse `json:"data"`
	Pagination *PaginationMeta `json:"pagination"`
}
ApiResponsePaginationRole

ApiResponsePaginationRole is the paginated response for role lists.

type ApiResponsePaginationRole struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*RoleResponse `json:"data"`
	Pagination *PaginationMeta `json:"pagination"`
}
ApiResponsePaginationRoleDeleteAt

ApiResponsePaginationRoleDeleteAt is the paginated response including deleted roles.

type ApiResponsePaginationRoleDeleteAt struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*RoleResponseDeleteAt `json:"data"`
	Pagination *PaginationMeta `json:"pagination"`
}
ApiResponsePaginationSaldo

ApiResponsePaginationSaldo is the paginated response for saldo lists.

type ApiResponsePaginationSaldo struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*SaldoResponse `json:"data"`
	Pagination *PaginationMeta `json:"pagination"`
}
ApiResponsePaginationSaldoDeleteAt

ApiResponsePaginationSaldoDeleteAt is the paginated response including deleted saldo records.

type ApiResponsePaginationSaldoDeleteAt struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*SaldoResponseDeleteAt `json:"data"`
	Pagination *PaginationMeta `json:"pagination"`
}
ApiResponsePaginationTopup

ApiResponsePaginationTopup is the paginated API response for top-ups

type ApiResponsePaginationTopup struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*TopupResponse `json:"data"`
	Pagination *PaginationMeta `json:"pagination"`
}
ApiResponsePaginationTopupDeleteAt

ApiResponsePaginationTopupDeleteAt is the paginated API response for top-ups with delete info

type ApiResponsePaginationTopupDeleteAt struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*TopupResponseDeleteAt `json:"data"`
	Pagination *PaginationMeta `json:"pagination"`
}
ApiResponsePaginationTransaction

ApiResponsePaginationTransaction is paginated API response for transactions

type ApiResponsePaginationTransaction struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*TransactionResponse `json:"data"`
	Pagination *PaginationMeta `json:"pagination"`
}
ApiResponsePaginationTransactionDeleteAt

ApiResponsePaginationTransactionDeleteAt is paginated API response for soft-deleted transactions

type ApiResponsePaginationTransactionDeleteAt struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*TransactionResponseDeleteAt `json:"data"`
	Pagination *PaginationMeta `json:"pagination"`
}
ApiResponsePaginationTransfer

ApiResponsePaginationTransfer is paginated API response for transfers

type ApiResponsePaginationTransfer struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*TransferResponse `json:"data"`
	Pagination *PaginationMeta `json:"pagination"`
}
ApiResponsePaginationTransferDeleteAt

ApiResponsePaginationTransferDeleteAt is paginated API response for soft-deleted transfers

type ApiResponsePaginationTransferDeleteAt struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*TransferResponseDeleteAt `json:"data"`
	Pagination *PaginationMeta `json:"pagination"`
}
ApiResponsePaginationUser

ApiResponsePaginationUser is a paginated API response for active users

type ApiResponsePaginationUser struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*UserResponse `json:"data"`
	Pagination PaginationMeta `json:"pagination"`
}
ApiResponsePaginationUserDeleteAt

ApiResponsePaginationUserDeleteAt is a paginated API response for soft-deleted users

type ApiResponsePaginationUserDeleteAt struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*UserResponseDeleteAt `json:"data"`
	Pagination PaginationMeta `json:"pagination"`
}
ApiResponsePaginationWithdraw

ApiResponsePaginationWithdraw is paginated API response for withdrawals

type ApiResponsePaginationWithdraw struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*WithdrawResponse `json:"data"`
	Pagination PaginationMeta `json:"pagination"`
}
ApiResponsePaginationWithdrawDeleteAt

ApiResponsePaginationWithdrawDeleteAt is paginated API response for soft-deleted withdrawals

type ApiResponsePaginationWithdrawDeleteAt struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*WithdrawResponseDeleteAt `json:"data"`
	Pagination PaginationMeta `json:"pagination"`
}
ApiResponseRefreshToken

ApiResponseRefreshToken is the response format for token refresh operations. Contains new authentication tokens.

type ApiResponseRefreshToken struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data *TokenResponse `json:"data"`
}
ApiResponseRegister

ApiResponseRegister is the response format for new user registration. Contains the created user's information.

type ApiResponseRegister struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data *UserResponse `json:"data"`
}
ApiResponseResetPassword

ApiResponseResetPassword is the response format for password reset completion. Used after submitting a new password.

type ApiResponseResetPassword struct {
	Status string `json:"status"`
	Message string `json:"message"`
}
ApiResponseRole

ApiResponseRole is the standard response format for single role requests.

type ApiResponseRole struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data *RoleResponse `json:"data"`
}
ApiResponseRoleAll

ApiResponseRoleAll is the response format for bulk role operations.

type ApiResponseRoleAll struct {
	Status string `json:"status"`
	Message string `json:"message"`
}
ApiResponseRoleDelete

ApiResponseRoleDelete is the response format for role deletion operations.

type ApiResponseRoleDelete struct {
	Status string `json:"status"`
	Message string `json:"message"`
}
ApiResponseSaldo

ApiResponseSaldo is the standard response format for single saldo requests.

type ApiResponseSaldo struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data SaldoResponse `json:"data"`
}
ApiResponseSaldoAll

ApiResponseSaldoAll is the response format for bulk saldo operations.

type ApiResponseSaldoAll struct {
	Status string `json:"status"`
	Message string `json:"message"`
}
ApiResponseSaldoDelete

ApiResponseSaldoDelete is the response format for saldo deletion operations.

type ApiResponseSaldoDelete struct {
	Status string `json:"status"`
	Message string `json:"message"`
}
ApiResponseTopup

ApiResponseTopup is the API response for a single top-up transaction

type ApiResponseTopup struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data *TopupResponse `json:"data"`
}
ApiResponseTopupAll

ApiResponseTopupAll is a generic API response for top-up operations

type ApiResponseTopupAll struct {
	Status string `json:"status"`
	Message string `json:"message"`
}
ApiResponseTopupDelete

ApiResponseTopupDelete is the API response for a delete operation

type ApiResponseTopupDelete struct {
	Status string `json:"status"`
	Message string `json:"message"`
}
ApiResponseTopupDeleteAt

ApiResponseTopupDeleteAt is the API response for a single top-up including delete info

type ApiResponseTopupDeleteAt struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data *TopupResponseDeleteAt `json:"data"`
}
ApiResponseTopupMonthAmount

ApiResponseTopupMonthAmount is the API response for monthly top-up amount stats

type ApiResponseTopupMonthAmount struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*TopupMonthAmountResponse `json:"data"`
}
ApiResponseTopupMonthMethod

ApiResponseTopupMonthMethod is the API response for monthly top-up method stats

type ApiResponseTopupMonthMethod struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*TopupMonthMethodResponse `json:"data"`
}
ApiResponseTopupMonthStatusFailed

ApiResponseTopupMonthStatusFailed is the API response for monthly failed top-up stats

type ApiResponseTopupMonthStatusFailed struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*TopupResponseMonthStatusFailed `json:"data"`
}
ApiResponseTopupMonthStatusSuccess

ApiResponseTopupMonthStatusSuccess is the API response for monthly successful top-up stats

type ApiResponseTopupMonthStatusSuccess struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*TopupResponseMonthStatusSuccess `json:"data"`
}
ApiResponseTopupYearAmount

ApiResponseTopupYearAmount is the API response for yearly top-up amount stats

type ApiResponseTopupYearAmount struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*TopupYearlyAmountResponse `json:"data"`
}
ApiResponseTopupYearMethod

ApiResponseTopupYearMethod is the API response for yearly top-up method stats

type ApiResponseTopupYearMethod struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*TopupYearlyMethodResponse `json:"data"`
}
ApiResponseTopupYearStatusFailed

ApiResponseTopupYearStatusFailed is the API response for yearly failed top-up stats

type ApiResponseTopupYearStatusFailed struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*TopupResponseYearStatusFailed `json:"data"`
}
ApiResponseTopupYearStatusSuccess

ApiResponseTopupYearStatusSuccess is the API response for yearly successful top-up stats

type ApiResponseTopupYearStatusSuccess struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*TopupResponseYearStatusSuccess `json:"data"`
}
ApiResponseTransaction

ApiResponseTransaction is API response for a single transaction

type ApiResponseTransaction struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data *TransactionResponse `json:"data"`
}
ApiResponseTransactionAll

ApiResponseTransactionAll is generic API response for transaction operations

type ApiResponseTransactionAll struct {
	Status string `json:"status"`
	Message string `json:"message"`
}
ApiResponseTransactionDelete

ApiResponseTransactionDelete is API response for transaction deletion

type ApiResponseTransactionDelete struct {
	Status string `json:"status"`
	Message string `json:"message"`
}
ApiResponseTransactionMonthAmount

ApiResponseTransactionMonthAmount is API response for monthly amount metrics

type ApiResponseTransactionMonthAmount struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*TransactionMonthAmountResponse `json:"data"`
}
ApiResponseTransactionMonthMethod

ApiResponseTransactionMonthMethod is API response for monthly method metrics

type ApiResponseTransactionMonthMethod struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*TransactionMonthMethodResponse `json:"data"`
}
ApiResponseTransactionMonthStatusFailed

ApiResponseTransactionMonthStatusFailed is API response for monthly failed metrics

type ApiResponseTransactionMonthStatusFailed struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*TransactionResponseMonthStatusFailed `json:"data"`
}
ApiResponseTransactionMonthStatusSuccess

ApiResponseTransactionMonthStatusSuccess is API response for monthly success metrics

type ApiResponseTransactionMonthStatusSuccess struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*TransactionResponseMonthStatusSuccess `json:"data"`
}
ApiResponseTransactionYearAmount

ApiResponseTransactionYearAmount is API response for yearly amount metrics

type ApiResponseTransactionYearAmount struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*TransactionYearlyAmountResponse `json:"data"`
}
ApiResponseTransactionYearMethod

ApiResponseTransactionYearMethod is API response for yearly method metrics

type ApiResponseTransactionYearMethod struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*TransactionYearMethodResponse `json:"data"`
}
ApiResponseTransactionYearStatusFailed

ApiResponseTransactionYearStatusFailed is API response for yearly failed metrics

type ApiResponseTransactionYearStatusFailed struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*TransactionResponseYearStatusFailed `json:"data"`
}
ApiResponseTransactionYearStatusSuccess

ApiResponseTransactionYearStatusSuccess is API response for yearly success metrics

type ApiResponseTransactionYearStatusSuccess struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*TransactionResponseYearStatusSuccess `json:"data"`
}
ApiResponseTransactions

ApiResponseTransactions is API response for multiple transactions

type ApiResponseTransactions struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*TransactionResponse `json:"data"`
}
ApiResponseTransfer

ApiResponseTransfer is API response for a single transfer

type ApiResponseTransfer struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data *TransferResponse `json:"data"`
}
ApiResponseTransferAll

ApiResponseTransferAll is generic API response for transfer operations

type ApiResponseTransferAll struct {
	Status string `json:"status"`
	Message string `json:"message"`
}
ApiResponseTransferDelete

ApiResponseTransferDelete is API response for transfer deletion

type ApiResponseTransferDelete struct {
	Status string `json:"status"`
	Message string `json:"message"`
}
ApiResponseTransferMonthAmount

ApiResponseTransferMonthAmount is API response for monthly amount metrics

type ApiResponseTransferMonthAmount struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*TransferMonthAmountResponse `json:"data"`
}
ApiResponseTransferMonthStatusFailed

ApiResponseTransferMonthStatusFailed is API response for monthly failed metrics

type ApiResponseTransferMonthStatusFailed struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*TransferResponseMonthStatusFailed `json:"data"`
}
ApiResponseTransferMonthStatusSuccess

ApiResponseTransferMonthStatusSuccess is API response for monthly success metrics

type ApiResponseTransferMonthStatusSuccess struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*TransferResponseMonthStatusSuccess `json:"data"`
}
ApiResponseTransferYearAmount

ApiResponseTransferYearAmount is API response for yearly amount metrics

type ApiResponseTransferYearAmount struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*TransferYearAmountResponse `json:"data"`
}
ApiResponseTransferYearStatusFailed

ApiResponseTransferYearStatusFailed is API response for yearly failed metrics

type ApiResponseTransferYearStatusFailed struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*TransferResponseYearStatusFailed `json:"data"`
}
ApiResponseTransferYearStatusSuccess

ApiResponseTransferYearStatusSuccess is API response for yearly success metrics

type ApiResponseTransferYearStatusSuccess struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*TransferResponseYearStatusSuccess `json:"data"`
}
ApiResponseTransfers

ApiResponseTransfers is API response for multiple transfers

type ApiResponseTransfers struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*TransferResponse `json:"data"`
}
ApiResponseUser

ApiResponseUser is the API response for a single user

type ApiResponseUser struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data *UserResponse `json:"data"`
}
ApiResponseUserAll

ApiResponseUserAll is a generic API response for user operations

type ApiResponseUserAll struct {
	Status string `json:"status"`
	Message string `json:"message"`
}
ApiResponseUserDelete

ApiResponseUserDelete is the API response for user deletion

type ApiResponseUserDelete struct {
	Status string `json:"status"`
	Message string `json:"message"`
}
ApiResponseUserDeleteAt

ApiResponseUserDeleteAt is the API response for a single user including deletion info

type ApiResponseUserDeleteAt struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data *UserResponseDeleteAt `json:"data"`
}
ApiResponseVerifyCode

ApiResponseVerifyCode is the response format for verification code operations. Used in email/SMS verification flows.

type ApiResponseVerifyCode struct {
	Status string `json:"status"`
	Message string `json:"message"`
}
ApiResponseWithdraw

ApiResponseWithdraw is API response for a single withdrawal record

type ApiResponseWithdraw struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data *WithdrawResponse `json:"data"`
}
ApiResponseWithdrawAll

ApiResponseWithdrawAll is generic API response for withdrawal operations

type ApiResponseWithdrawAll struct {
	Status string `json:"status"`
	Message string `json:"message"`
}
ApiResponseWithdrawDelete

ApiResponseWithdrawDelete is API response for withdrawal deletion

type ApiResponseWithdrawDelete struct {
	Status string `json:"status"`
	Message string `json:"message"`
}
ApiResponseWithdrawMonthAmount

ApiResponseWithdrawMonthAmount is API response for monthly withdrawal amounts

type ApiResponseWithdrawMonthAmount struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*WithdrawMonthlyAmountResponse `json:"data"`
}
ApiResponseWithdrawMonthStatusFailed

ApiResponseWithdrawMonthStatusFailed is API response for monthly failed metrics

type ApiResponseWithdrawMonthStatusFailed struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*WithdrawResponseMonthStatusFailed `json:"data"`
}
ApiResponseWithdrawMonthStatusSuccess

ApiResponseWithdrawMonthStatusSuccess is API response for monthly success metrics

type ApiResponseWithdrawMonthStatusSuccess struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*WithdrawResponseMonthStatusSuccess `json:"data"`
}
ApiResponseWithdrawYearAmount

ApiResponseWithdrawYearAmount is API response for yearly withdrawal amounts

type ApiResponseWithdrawYearAmount struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*WithdrawYearlyAmountResponse `json:"data"`
}
ApiResponseWithdrawYearStatusFailed

ApiResponseWithdrawYearStatusFailed is API response for yearly failed metrics

type ApiResponseWithdrawYearStatusFailed struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*WithdrawResponseYearStatusFailed `json:"data"`
}
ApiResponseWithdrawYearStatusSuccess

ApiResponseWithdrawYearStatusSuccess is API response for yearly success metrics

type ApiResponseWithdrawYearStatusSuccess struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*WithdrawResponseYearStatusSuccess `json:"data"`
}
ApiResponseYearSaldoBalances

ApiResponseYearSaldoBalances wraps yearly balance trend responses.

type ApiResponseYearSaldoBalances struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*SaldoYearBalanceResponse `json:"data"`
}
ApiResponseYearTotalSaldo

ApiResponseYearTotalSaldo wraps yearly total balance responses.

type ApiResponseYearTotalSaldo struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*SaldoYearTotalBalanceResponse `json:"data"`
}
ApiResponseYearlyAmount

ApiResponseYearlyAmount is the response format for yearly transaction amounts.

type ApiResponseYearlyAmount struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*CardResponseYearAmount `json:"data"`
}
ApiResponseYearlyBalance

ApiResponseYearlyBalance is the response format for yearly balance data.

type ApiResponseYearlyBalance struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*CardResponseYearlyBalance `json:"data"`
}
ApiResponsesMerchant

ApiResponsesMerchant wraps multiple merchant responses.

type ApiResponsesMerchant struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*MerchantResponse `json:"data"`
}
ApiResponsesMerchantDocument

ApiResponsesMerchantDocument is the response format for multiple document listings. Used when returning arrays of document data without pagination.

type ApiResponsesMerchantDocument struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*MerchantDocumentResponse `json:"data"`
}
ApiResponsesRole

ApiResponsesRole is the response format for multiple role listings (non-paginated).

type ApiResponsesRole struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*RoleResponse `json:"data"`
}
ApiResponsesSaldo

ApiResponsesSaldo is the response format for multiple saldo records (non-paginated).

type ApiResponsesSaldo struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*SaldoResponse `json:"data"`
}
ApiResponsesTopup

ApiResponsesTopup is the API response for multiple top-up transactions

type ApiResponsesTopup struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*TopupResponse `json:"data"`
}
ApiResponsesUser

ApiResponsesUser is the API response for multiple users

type ApiResponsesUser struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*UserResponse `json:"data"`
}
ApiResponsesWithdraw

ApiResponsesWithdraw is API response for multiple withdrawal records

type ApiResponsesWithdraw struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Data []*WithdrawResponse `json:"data"`
}
CardResponse

CardResponse represents the basic card information returned in API responses. Used for non-sensitive card data display in most endpoints.

type CardResponse struct {
	ID int `json:"id"`
	UserID int `json:"user_id"`
	CardNumber string `json:"card_number"`
	CardType string `json:"card_type"`
	ExpireDate string `json:"expire_date"`
	CVV string `json:"cvv"`
	CardProvider string `json:"card_provider"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
}
CardResponseDeleteAt

CardResponseDeleteAt extends CardResponse with deletion information. Used in administrative interfaces showing soft-deleted cards.

type CardResponseDeleteAt struct {
	ID int `json:"id"`
	UserID int `json:"user_id"`
	CardNumber string `json:"card_number"`
	CardType string `json:"card_type"`
	ExpireDate string `json:"expire_date"`
	CVV string `json:"cvv"`
	CardProvider string `json:"card_provider"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
	DeletedAt *string `json:"deleted_at"`
}
CardResponseMonthAmount

CardResponseMonthAmount represents monthly transaction amounts. Shows activity volume rather than balance.

type CardResponseMonthAmount struct {
	Month string `json:"month"`
	TotalAmount int64 `json:"total_amount"`
}
CardResponseMonthBalance

CardResponseMonthBalance represents monthly balance information. Used for balance trend analysis and reporting.

type CardResponseMonthBalance struct {
	Month string `json:"month"`
	TotalBalance int64 `json:"total_balance"`
}
CardResponseYearAmount

CardResponseYearAmount represents annual transaction amounts. Shows yearly activity volume.

type CardResponseYearAmount struct {
	Year string `json:"year"`
	TotalAmount int64 `json:"total_amount"`
}
CardResponseYearlyBalance

CardResponseYearlyBalance represents annual balance information. Used for yearly financial summaries.

type CardResponseYearlyBalance struct {
	Year string `json:"year"`
	TotalBalance int64 `json:"total_balance"`
}
DashboardCard

DashboardCard represents aggregated card statistics for dashboard display. Provides overview of financial activity across all cards.

type DashboardCard struct {
	TotalBalance *int64 `json:"total_balance"`
	TotalTopup *int64 `json:"total_topup"`
	TotalWithdraw *int64 `json:"total_withdraw"`
	TotalTransaction *int64 `json:"total_transaction"`
	TotalTransfer *int64 `json:"total_transfer"`
}
DashboardCardCardNumber

DashboardCardCardNumber provides detailed stats for a specific card. Shows both sending and receiving transfer amounts separately.

type DashboardCardCardNumber struct {
	TotalBalance *int64 `json:"total_balance"`
	TotalTopup *int64 `json:"total_topup"`
	TotalWithdraw *int64 `json:"total_withdraw"`
	TotalTransaction *int64 `json:"total_transaction"`
	TotalTransferSend *int64 `json:"total_transfer_send"`
	TotalTransferReceiver *int64 `json:"total_transfer_receiver"`
}
ErrorResponse

ErrorResponse represents standardized error responses from the API. Used to maintain consistent error reporting across endpoints.

type ErrorResponse struct {
	Status string `json:"status"`
	Message string `json:"message"`
	Code int `json:"code"`
}
MerchantDocumentResponse

MerchantDocumentResponse represents the basic merchant document information returned in API responses. Contains all relevant document metadata without deletion information.

type MerchantDocumentResponse struct {
	ID int `json:"id"`
	MerchantID int `json:"merchant_id"`
	DocumentType string `json:"document_type"`
	DocumentURL string `json:"document_url"`
	Status string `json:"status"`
	Note string `json:"note"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
}
MerchantDocumentResponseDeleteAt

MerchantDocumentResponseDeleteAt extends MerchantDocumentResponse with deletion information. Used in administrative interfaces showing soft-deleted documents.

type MerchantDocumentResponseDeleteAt struct {
	ID int `json:"id"`
	MerchantID int `json:"merchant_id"`
	DocumentType string `json:"document_type"`
	DocumentURL string `json:"document_url"`
	Status string `json:"status"`
	Note string `json:"note"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
	DeletedAt *string `json:"deleted_at"`
}
MerchantResponse

MerchantResponse represents the basic merchant information returned in API responses. Contains core merchant data without deletion information.

type MerchantResponse struct {
	ID int `json:"id"`
	Name string `json:"name"`
	UserID int `json:"user_id"`
	ApiKey string `json:"api_key"`
	Status string `json:"status"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
}
MerchantResponseDeleteAt

MerchantResponseDeleteAt extends MerchantResponse with deletion information. Used in administrative interfaces showing soft-deleted merchants.

type MerchantResponseDeleteAt struct {
	ID int `json:"id"`
	Name string `json:"name"`
	UserID int `json:"user_id"`
	ApiKey string `json:"api_key"`
	Status string `json:"status"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
	DeletedAt *string `json:"deleted_at"`
}
MerchantResponseMonthlyAmount

MerchantResponseMonthlyAmount represents monthly transaction totals. Shows aggregated transaction volume by month.

type MerchantResponseMonthlyAmount struct {
	Month string `json:"month"`
	TotalAmount int `json:"total_amount"`
}
MerchantResponseMonthlyPaymentMethod

MerchantResponseMonthlyPaymentMethod represents monthly transaction totals by payment method. Used for analyzing payment method trends by month.

type MerchantResponseMonthlyPaymentMethod struct {
	Month string `json:"month"`
	PaymentMethod string `json:"payment_method"`
	TotalAmount int `json:"total_amount"`
}
MerchantResponseMonthlyTotalAmount

MerchantResponseMonthlyTotalAmount represents detailed monthly transaction totals. Includes both year and month for precise period identification.

type MerchantResponseMonthlyTotalAmount struct {
	Year string `json:"year"`
	Month string `json:"month"`
	TotalAmount int `json:"total_amount"`
}
MerchantResponsePayload

MerchantResponsePayload represents the base payload structure for merchant API responses. Used for validation and correlation purposes in merchant operations.

type MerchantResponsePayload struct {
	CorrelationID string `json:"correlation_id"`
	Valid bool `json:"valid"`
	MerchantID int64 `json:"merchant_id,omitempty"`
}
MerchantResponseYearlyAmount

MerchantResponseYearlyAmount represents annual transaction totals. Shows aggregated transaction volume by year.

type MerchantResponseYearlyAmount struct {
	Year string `json:"year"`
	TotalAmount int `json:"total_amount"`
}
MerchantResponseYearlyPaymentMethod

MerchantResponseYearlyPaymentMethod represents annual transaction totals by payment method. Used for analyzing yearly payment method trends.

type MerchantResponseYearlyPaymentMethod struct {
	Year string `json:"year"`
	PaymentMethod string `json:"payment_method"`
	TotalAmount int `json:"total_amount"`
}
MerchantResponseYearlyTotalAmount

MerchantResponseYearlyTotalAmount represents comprehensive annual transaction totals.

type MerchantResponseYearlyTotalAmount struct {
	Year string `json:"year"`
	TotalAmount int `json:"total_amount"`
}
MerchantTransactionResponse

MerchantTransactionResponse represents a merchant transaction record. Contains details of transactions processed by the merchant.

type MerchantTransactionResponse struct {
	ID int `json:"id"`
	CardNumber string `json:"card_number"`
	Amount int32 `json:"amount"`
	PaymentMethod string `json:"payment_method"`
	MerchantID int32 `json:"merchant_id"`
	MerchantName string `json:"merchant_name"`
	TransactionTime string `json:"transaction_time"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
}
PaginationMeta

PaginationMeta contains metadata for paginated responses. Used to provide navigation information in list endpoints.

type PaginationMeta struct {
	CurrentPage int `json:"current_page"`
	PageSize int `json:"page_size"`
	TotalPages int `json:"total_pages"`
	TotalRecords int `json:"total_records"`
}
RefreshTokenResponse

RefreshTokenResponse represents a refresh token record in API responses. Contains the token details along with timestamps for tracking.

type RefreshTokenResponse struct {
	UserID int `json:"user_id"`
	Token string `json:"token"`
	ExpiredAt string `json:"expired_at"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
}
RoleResponse

RoleResponse represents basic role information in API responses. Contains core role data without deletion information.

type RoleResponse struct {
	ID int `json:"id"`
	Name string `json:"name"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
}
RoleResponseDeleteAt

RoleResponseDeleteAt extends RoleResponse with deletion information. Used in administrative interfaces showing soft-deleted roles.

type RoleResponseDeleteAt struct {
	ID int `json:"id"`
	Name string `json:"name"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
	DeletedAt *string `json:"deleted_at"`
}
RoleResponsePayload

RoleResponsePayload represents the base payload structure for role validation responses. Used to verify role assignments and permissions.

type RoleResponsePayload struct {
	CorrelationID string `json:"correlation_id"`
	Valid bool `json:"valid"`
	RoleNames []string `json:"role_names"`
}
SaldoMonthBalanceResponse

SaldoMonthBalanceResponse represents monthly balance information. Used for balance trend analysis by month.

type SaldoMonthBalanceResponse struct {
	Month string `json:"month"`
	TotalBalance int `json:"total_balance"`
}
SaldoMonthTotalBalanceResponse

SaldoMonthTotalBalanceResponse represents monthly balance totals including year. Used for detailed monthly balance reporting.

type SaldoMonthTotalBalanceResponse struct {
	Month string `json:"month"`
	Year string `json:"year"`
	TotalBalance int `json:"total_balance"`
}
SaldoResponse

SaldoResponse represents the basic saldo (balance) information in API responses. Contains core balance data without deletion information.

type SaldoResponse struct {
	ID int `json:"id"`
	CardNumber string `json:"card_number"`
	TotalBalance int `json:"total_balance"`
	WithdrawAmount int `json:"withdraw_amount"`
	WithdrawTime string `json:"withdraw_time"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
}
SaldoResponseDeleteAt

SaldoResponseDeleteAt extends SaldoResponse with deletion information. Used in administrative interfaces showing soft-deleted balance records.

type SaldoResponseDeleteAt struct {
	ID int `json:"id"`
	CardNumber string `json:"card_number"`
	TotalBalance int `json:"total_balance"`
	WithdrawAmount int `json:"withdraw_amount"`
	WithdrawTime string `json:"withdraw_time"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
	DeletedAt *string `json:"deleted_at"`
}
SaldoYearBalanceResponse

SaldoYearBalanceResponse represents annual balance information. Used for long-term balance trend analysis.

type SaldoYearBalanceResponse struct {
	Year string `json:"year"`
	TotalBalance int `json:"total_balance"`
}
SaldoYearTotalBalanceResponse

SaldoYearTotalBalanceResponse represents annual balance totals. Used for yearly financial summaries.

type SaldoYearTotalBalanceResponse struct {
	Year string `json:"year"`
	TotalBalance int `json:"total_balance"`
}
TokenResponse

TokenResponse represents a pair of authentication tokens. Used in login and token refresh operations.

type TokenResponse struct {
	AccessToken string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
}
TopupMonthAmountResponse

TopupMonthAmountResponse represents monthly top-up amount statistics

type TopupMonthAmountResponse struct {
	Month string `json:"month"`
	TotalAmount int `json:"total_amount"`
}
TopupMonthMethodResponse

TopupMonthMethodResponse represents monthly top-up statistics by payment method

type TopupMonthMethodResponse struct {
	Month string `json:"month"`
	TopupMethod string `json:"topup_method"`
	TotalTopups int `json:"total_topups"`
	TotalAmount int `json:"total_amount"`
}
TopupResponse

TopupResponse represents a successful top-up transaction response

type TopupResponse struct {
	ID int `json:"id"`
	CardNumber string `json:"card_number"`
	TopupNo string `json:"topup_no"`
	TopupAmount int `json:"topup_amount"`
	TopupMethod string `json:"topup_method"`
	TopupTime string `json:"topup_time"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
}
TopupResponseDeleteAt

TopupResponseDeleteAt extends TopupResponse with soft delete information

type TopupResponseDeleteAt struct {
	DeletedAt *string `json:"deleted_At"`
	ID int `json:"id"`
	CardNumber string `json:"card_number"`
	TopupNo string `json:"topup_no"`
	TopupAmount int `json:"topup_amount"`
	TopupMethod string `json:"topup_method"`
	TopupTime string `json:"topup_time"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
}
TopupResponseMonthStatusFailed

TopupResponseMonthStatusFailed represents monthly failed top-up statistics

type TopupResponseMonthStatusFailed struct {
	Year string `json:"year"`
	Month string `json:"month"`
	TotalAmount int `json:"total_amount"`
	TotalFailed int `json:"total_failed"`
}
TopupResponseMonthStatusSuccess

TopupResponseMonthStatusSuccess represents monthly successful top-up statistics

type TopupResponseMonthStatusSuccess struct {
	Year string `json:"year"`
	Month string `json:"month"`
	TotalAmount int `json:"total_amount"`
	TotalSuccess int `json:"total_success"`
}
TopupResponseYearStatusFailed

TopupResponseYearStatusFailed represents yearly failed top-up statistics

type TopupResponseYearStatusFailed struct {
	Year string `json:"year"`
	TotalAmount int `json:"total_amount"`
	TotalFailed int `json:"total_failed"`
}
TopupResponseYearStatusSuccess

TopupResponseYearStatusSuccess represents yearly successful top-up statistics

type TopupResponseYearStatusSuccess struct {
	Year string `json:"year"`
	TotalAmount int `json:"total_amount"`
	TotalSuccess int `json:"total_success"`
}
TopupYearlyAmountResponse

TopupYearlyAmountResponse represents yearly top-up amount statistics

type TopupYearlyAmountResponse struct {
	Year string `json:"year"`
	TotalAmount int `json:"total_amount"`
}
TopupYearlyMethodResponse

TopupYearlyMethodResponse represents yearly top-up statistics by payment method

type TopupYearlyMethodResponse struct {
	Year string `json:"year"`
	TopupMethod string `json:"topup_method"`
	TotalTopups int `json:"total_topups"`
	TotalAmount int `json:"total_amount"`
}
TransactionMonthAmountResponse

TransactionMonthAmountResponse represents monthly transaction amount metrics

type TransactionMonthAmountResponse struct {
	Month string `json:"month"`
	TotalAmount int `json:"total_amount"`
}
TransactionMonthMethodResponse

TransactionMonthMethodResponse represents monthly transaction metrics by payment method

type TransactionMonthMethodResponse struct {
	Month string `json:"month"`
	PaymentMethod string `json:"payment_method"`
	TotalTransactions int `json:"total_transactions"`
	TotalAmount int `json:"total_amount"`
}
TransactionResponse

TransactionResponse represents a transaction record

type TransactionResponse struct {
	ID int `json:"id"`
	TransactionNo string `json:"transaction_no"`
	CardNumber string `json:"card_number"`
	Amount int `json:"amount"`
	PaymentMethod string `json:"payment_method"`
	MerchantID int `json:"merchant_id"`
	TransactionTime string `json:"transaction_time"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
}
TransactionResponseDeleteAt

TransactionResponseDeleteAt extends TransactionResponse with soft delete capability

type TransactionResponseDeleteAt struct {
	DeletedAt *string `json:"deleted_at"`
	ID int `json:"id"`
	TransactionNo string `json:"transaction_no"`
	CardNumber string `json:"card_number"`
	Amount int `json:"amount"`
	PaymentMethod string `json:"payment_method"`
	MerchantID int `json:"merchant_id"`
	TransactionTime string `json:"transaction_time"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
}
TransactionResponseMonthStatusFailed

TransactionResponseMonthStatusFailed represents monthly failed transaction metrics

type TransactionResponseMonthStatusFailed struct {
	Year string `json:"year"`
	Month string `json:"month"`
	TotalAmount int `json:"total_amount"`
	TotalFailed int `json:"total_failed"`
}
TransactionResponseMonthStatusSuccess

TransactionResponseMonthStatusSuccess represents monthly successful transaction metrics

type TransactionResponseMonthStatusSuccess struct {
	Year string `json:"year"`
	Month string `json:"month"`
	TotalAmount int `json:"total_amount"`
	TotalSuccess int `json:"total_success"`
}
TransactionResponseYearStatusFailed

TransactionResponseYearStatusFailed represents yearly failed transaction metrics

type TransactionResponseYearStatusFailed struct {
	Year string `json:"year"`
	TotalAmount int `json:"total_amount"`
	TotalFailed int `json:"total_failed"`
}
TransactionResponseYearStatusSuccess

TransactionResponseYearStatusSuccess represents yearly successful transaction metrics

type TransactionResponseYearStatusSuccess struct {
	Year string `json:"year"`
	TotalAmount int `json:"total_amount"`
	TotalSuccess int `json:"total_success"`
}
TransactionYearMethodResponse

TransactionYearMethodResponse represents yearly transaction metrics by payment method

type TransactionYearMethodResponse struct {
	Year string `json:"year"`
	PaymentMethod string `json:"payment_method"`
	TotalTransactions int `json:"total_transactions"`
	TotalAmount int `json:"total_amount"`
}
TransactionYearlyAmountResponse

TransactionYearlyAmountResponse represents yearly transaction amount metrics

type TransactionYearlyAmountResponse struct {
	Year string `json:"year"`
	TotalAmount int `json:"total_amount"`
}
TransferMonthAmountResponse

TransferMonthAmountResponse represents monthly transfer amount metrics

type TransferMonthAmountResponse struct {
	Month string `json:"month"`
	TotalAmount int `json:"total_amount"`
}
TransferResponse

TransferResponse represents a fund transfer between accounts

type TransferResponse struct {
	ID int `json:"id"`
	TransferNo string `json:"transfer_no"`
	TransferFrom string `json:"transfer_from"`
	TransferTo string `json:"transfer_to"`
	TransferAmount int `json:"transfer_amount"`
	TransferTime string `json:"transfer_time"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
}
TransferResponseDeleteAt

TransferResponseDeleteAt extends TransferResponse with soft delete capability

type TransferResponseDeleteAt struct {
	DeletedAt *string `json:"deleted_at"`
	ID int `json:"id"`
	TransferNo string `json:"transfer_no"`
	TransferFrom string `json:"transfer_from"`
	TransferTo string `json:"transfer_to"`
	TransferAmount int `json:"transfer_amount"`
	TransferTime string `json:"transfer_time"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
}
TransferResponseMonthStatusFailed

TransferResponseMonthStatusFailed represents monthly failed transfer metrics

type TransferResponseMonthStatusFailed struct {
	Year string `json:"year"`
	Month string `json:"month"`
	TotalAmount int `json:"total_amount"`
	TotalFailed int `json:"total_failed"`
}
TransferResponseMonthStatusSuccess

TransferResponseMonthStatusSuccess represents monthly successful transfer metrics

type TransferResponseMonthStatusSuccess struct {
	Year string `json:"year"`
	Month string `json:"month"`
	TotalAmount int `json:"total_amount"`
	TotalSuccess int `json:"total_success"`
}
TransferResponseYearStatusFailed

TransferResponseYearStatusFailed represents yearly failed transfer metrics

type TransferResponseYearStatusFailed struct {
	Year string `json:"year"`
	TotalAmount int `json:"total_amount"`
	TotalFailed int `json:"total_failed"`
}
TransferResponseYearStatusSuccess

TransferResponseYearStatusSuccess represents yearly successful transfer metrics

type TransferResponseYearStatusSuccess struct {
	Year string `json:"year"`
	TotalAmount int `json:"total_amount"`
	TotalSuccess int `json:"total_success"`
}
TransferYearAmountResponse

TransferYearAmountResponse represents yearly transfer amount metrics

type TransferYearAmountResponse struct {
	Year string `json:"year"`
	TotalAmount int `json:"total_amount"`
}
UserResponse

UserResponse represents a user account in the system

type UserResponse struct {
	ID int `json:"id"`
	FirstName string `json:"firstname"`
	LastName string `json:"lastname"`
	Email string `json:"email"`
	IsVerified bool `json:"is_verified"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
}
UserResponseDeleteAt

UserResponseDeleteAt extends UserResponse with soft delete capability

type UserResponseDeleteAt struct {
	DeletedAt *string `json:"deleted_at"`
	ID int `json:"id"`
	FirstName string `json:"firstname"`
	LastName string `json:"lastname"`
	Email string `json:"email"`
	IsVerified bool `json:"is_verified"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
}
WithdrawMonthlyAmountResponse

WithdrawMonthlyAmountResponse represents monthly withdrawal amount totals

type WithdrawMonthlyAmountResponse struct {
	Month string `json:"month"`
	TotalAmount int `json:"total_amount"`
}
WithdrawResponse

WithdrawResponse represents a withdrawal transaction record

type WithdrawResponse struct {
	ID int `json:"id"`
	WithdrawNo string `json:"withdraw_no"`
	CardNumber string `json:"card_number"`
	WithdrawAmount int `json:"withdraw_amount"`
	WithdrawTime string `json:"withdraw_time"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
}
WithdrawResponseDeleteAt

WithdrawResponseDeleteAt extends WithdrawResponse with soft-delete capability

type WithdrawResponseDeleteAt struct {
	DeletedAt *string `json:"deleted_at"`
	ID int `json:"id"`
	WithdrawNo string `json:"withdraw_no"`
	CardNumber string `json:"card_number"`
	WithdrawAmount int `json:"withdraw_amount"`
	WithdrawTime string `json:"withdraw_time"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
}
WithdrawResponseMonthStatusFailed

WithdrawResponseMonthStatusFailed represents monthly failed withdrawal metrics

type WithdrawResponseMonthStatusFailed struct {
	Year string `json:"year"`
	Month string `json:"month"`
	TotalAmount int `json:"total_amount"`
	TotalFailed int `json:"total_failed"`
}
WithdrawResponseMonthStatusSuccess

WithdrawResponseMonthStatusSuccess represents monthly successful withdrawal metrics

type WithdrawResponseMonthStatusSuccess struct {
	Year string `json:"year"`
	Month string `json:"month"`
	TotalAmount int `json:"total_amount"`
	TotalSuccess int `json:"total_success"`
}
WithdrawResponseYearStatusFailed

WithdrawResponseYearStatusFailed represents yearly failed withdrawal metrics

type WithdrawResponseYearStatusFailed struct {
	Year string `json:"year"`
	TotalAmount int `json:"total_amount"`
	TotalFailed int `json:"total_failed"`
}
WithdrawResponseYearStatusSuccess

WithdrawResponseYearStatusSuccess represents yearly successful withdrawal metrics

type WithdrawResponseYearStatusSuccess struct {
	Year string `json:"year"`
	TotalAmount int `json:"total_amount"`
	TotalSuccess int `json:"total_success"`
}
WithdrawYearlyAmountResponse

WithdrawYearlyAmountResponse represents yearly withdrawal amount totals

type WithdrawYearlyAmountResponse struct {
	Year string `json:"year"`
	TotalAmount int `json:"total_amount"`
}

🚀 Functions

NewApiErrorResponse

NewApiErrorResponse creates and sends a JSON error response using Echo framework. This is a convenience wrapper for returning standardized error responses in HTTP handlers.

Parameters:

  • c: Echo context
  • statusText: Status category ("error", "fail", etc.)
  • message: Human-readable error description
  • code: HTTP status code

Returns:

  • error: Echo error that will trigger the JSON response
func NewApiErrorResponse(c echo.Context, statusText string, message string, code int) error
NewGrpcError

NewGrpcError creates a new gRPC error with standardized format. This is used to maintain consistent error responses across gRPC services.

Parameters:

  • statusText: Status category ("error", "fail", etc.)
  • message: Human-readable error description
  • code: gRPC status code

Returns:

  • error: gRPC status error with embedded error details
func NewGrpcError(statusText string, message string, code int) error
ToGrpcErrorFromErrorResponse

ToGrpcErrorFromErrorResponse converts an ErrorResponse to a gRPC error. This enables consistent error handling between HTTP and gRPC interfaces.

Parameters:

  • err: ErrorResponse to convert

Returns:

  • error: gRPC status error with embedded error details
  • nil: if input error is nil
func ToGrpcErrorFromErrorResponse(err *ErrorResponse) error

Documentation ¶

Index ¶

Constants ¶

This section is empty.

Variables ¶

This section is empty.

Functions ¶

This section is empty.

Types ¶

type APIResponsePagination ¶

type APIResponsePagination[T any] struct {
	Status  string         `json:"status"`     // Response status
	Message string         `json:"message"`    // Descriptive message
	Data    T              `json:"data"`       // The paginated data payload of type T
	Meta    PaginationMeta `json:"pagination"` // Pagination metadata
}

APIResponsePagination is a generic paginated response wrapper. Combines data payload with pagination metadata.

type ApiResponse ¶

type ApiResponse[T any] struct {
	Status  string `json:"status"`  // Response status ("success", "error", etc.)
	Message string `json:"message"` // Descriptive message about the response
	Data    T      `json:"data"`    // The actual response payload of type T
}

ApiResponse is a generic response wrapper for successful API responses. The type parameter T allows this to be used with any data type.

type ApiResponseCard ¶

type ApiResponseCard struct {
	Status  string        `json:"status"`  // Response status ("success" or "error")
	Message string        `json:"message"` // Descriptive message
	Data    *CardResponse `json:"data"`    // Card data payload
}

ApiResponseCard is the standard response format for single card requests.

type ApiResponseCardAll ¶

type ApiResponseCardAll struct {
	Status  string `json:"status"`  // Operation status
	Message string `json:"message"` // Result message
}

ApiResponseCardAll is the response format for bulk card operations.

type ApiResponseCardDelete ¶

type ApiResponseCardDelete struct {
	Status  string `json:"status"`  // Operation status
	Message string `json:"message"` // Result message
}

ApiResponseCardDelete is the response format for card deletion operations.

type ApiResponseCardDeleteAt ¶ added in v1.0.10

type ApiResponseCardDeleteAt struct {
	Status  string                `json:"status"`  // Response status ("success" or "error")
	Message string                `json:"message"` // Descriptive message
	Data    *CardResponseDeleteAt `json:"data"`    // Card data payload
}

type ApiResponseDashboardCard ¶

type ApiResponseDashboardCard struct {
	Status  string         `json:"status"`  // Response status
	Message string         `json:"message"` // Descriptive message
	Data    *DashboardCard `json:"data"`    // Dashboard statistics
}

ApiResponseDashboardCard is the response format for dashboard card statistics.

type ApiResponseDashboardCardNumber ¶

type ApiResponseDashboardCardNumber struct {
	Status  string                   `json:"status"`  // Response status
	Message string                   `json:"message"` // Descriptive message
	Data    *DashboardCardCardNumber `json:"data"`    // Card-specific statistics
}

ApiResponseDashboardCardNumber is the response format for card-specific dashboard stats.

type ApiResponseForgotPassword ¶

type ApiResponseForgotPassword struct {
	Status  string `json:"status"`  // Operation status
	Message string `json:"message"` // Result message ("Reset link sent to email")
}

ApiResponseForgotPassword is the response format for password reset initiation. Used when requesting a password reset link.

type ApiResponseGetMe ¶

type ApiResponseGetMe struct {
	Status  string        `json:"status"`  // Always "success" for valid requests
	Message string        `json:"message"` // Descriptive message
	Data    *UserResponse `json:"data"`    // Complete user profile data
}

ApiResponseGetMe is the response format for current user profile requests. Contains the authenticated user's information.

type ApiResponseLogin ¶

type ApiResponseLogin struct {
	Status  string         `json:"status"`  // Always "success" for this response
	Message string         `json:"message"` // Welcome message
	Data    *TokenResponse `json:"data"`    // Authentication tokens
}

ApiResponseLogin is the response format for successful login attempts. Contains the authentication tokens.

type ApiResponseMerchant ¶

type ApiResponseMerchant struct {
	Status  string            `json:"status"`  // Response status
	Message string            `json:"message"` // Descriptive message
	Data    *MerchantResponse `json:"data"`    // Single merchant data
}

ApiResponseMerchant wraps a single merchant response.

type ApiResponseMerchantAll ¶

type ApiResponseMerchantAll struct {
	Status  string `json:"status"`  // Operation status
	Message string `json:"message"` // Result message
}

ApiResponseMerchantAll wraps bulk merchant operation responses.

type ApiResponseMerchantDelete ¶

type ApiResponseMerchantDelete struct {
	Status  string `json:"status"`  // Operation status
	Message string `json:"message"` // Result message
}

ApiResponseMerchantDelete wraps merchant deletion responses.

type ApiResponseMerchantDeleteAt ¶ added in v1.0.10

type ApiResponseMerchantDeleteAt struct {
	Status  string                    `json:"status"`  // Response status
	Message string                    `json:"message"` // Descriptive message
	Data    *MerchantResponseDeleteAt `json:"data"`
}

type ApiResponseMerchantDocument ¶

type ApiResponseMerchantDocument struct {
	Status  string                    `json:"status"`  // Response status
	Message string                    `json:"message"` // Descriptive message
	Data    *MerchantDocumentResponse `json:"data"`    // Single document response
}

ApiResponseMerchantDocument is the standard response format for single document requests.

type ApiResponseMerchantDocumentAll ¶

type ApiResponseMerchantDocumentAll struct {
	Status  string `json:"status"`  // Operation status
	Message string `json:"message"` // Result message
}

ApiResponseMerchantDocumentAll is the response format for bulk document operations.

type ApiResponseMerchantDocumentDelete ¶

type ApiResponseMerchantDocumentDelete struct {
	Status  string `json:"status"`  // Operation status
	Message string `json:"message"` // Result message
}

ApiResponseMerchantDocumentDelete is the response format for document deletion operations.

type ApiResponseMerchantDocumentDeleteAt ¶ added in v1.0.10

type ApiResponseMerchantDocumentDeleteAt struct {
	Status  string                            `json:"status"`  // Response status
	Message string                            `json:"message"` // Descriptive message
	Data    *MerchantDocumentResponseDeleteAt `json:"data"`    // Single document response
}

type ApiResponseMerchantMonthlyAmount ¶

type ApiResponseMerchantMonthlyAmount struct {
	Status  string                           `json:"status"`  // Response status
	Message string                           `json:"message"` // Descriptive message
	Data    []*MerchantResponseMonthlyAmount `json:"data"`    // Array of monthly amounts
}

ApiResponseMerchantMonthlyAmount wraps monthly transaction amounts.

type ApiResponseMerchantMonthlyPaymentMethod ¶

type ApiResponseMerchantMonthlyPaymentMethod struct {
	Status  string                                  `json:"status"`  // Response status
	Message string                                  `json:"message"` // Descriptive message
	Data    []*MerchantResponseMonthlyPaymentMethod `json:"data"`    // Array of monthly payment method data
}

ApiResponseMerchantMonthlyPaymentMethod wraps monthly payment method statistics.

type ApiResponseMerchantMonthlyTotalAmount ¶

type ApiResponseMerchantMonthlyTotalAmount struct {
	Status  string                                `json:"status"`  // Response status
	Message string                                `json:"message"` // Descriptive message
	Data    []*MerchantResponseMonthlyTotalAmount `json:"data"`    // Array of detailed monthly totals
}

ApiResponseMerchantMonthlyTotalAmount wraps detailed monthly transaction totals.

type ApiResponseMerchantYearlyAmount ¶

type ApiResponseMerchantYearlyAmount struct {
	Status  string                          `json:"status"`  // Response status
	Message string                          `json:"message"` // Descriptive message
	Data    []*MerchantResponseYearlyAmount `json:"data"`    // Array of yearly amounts
}

ApiResponseMerchantYearlyAmount wraps yearly transaction amounts.

type ApiResponseMerchantYearlyPaymentMethod ¶

type ApiResponseMerchantYearlyPaymentMethod struct {
	Status  string                                 `json:"status"`  // Response status
	Message string                                 `json:"message"` // Descriptive message
	Data    []*MerchantResponseYearlyPaymentMethod `json:"data"`    // Array of yearly payment method data
}

ApiResponseMerchantYearlyPaymentMethod wraps yearly payment method statistics.

type ApiResponseMerchantYearlyTotalAmount ¶

type ApiResponseMerchantYearlyTotalAmount struct {
	Status  string                               `json:"status"`  // Response status
	Message string                               `json:"message"` // Descriptive message
	Data    []*MerchantResponseYearlyTotalAmount `json:"data"`    // Array of yearly totals
}

ApiResponseMerchantYearlyTotalAmount wraps comprehensive yearly transaction totals.

type ApiResponseMonthSaldoBalances ¶

type ApiResponseMonthSaldoBalances struct {
	Status  string                       `json:"status"`  // Response status
	Message string                       `json:"message"` // Descriptive message
	Data    []*SaldoMonthBalanceResponse `json:"data"`    // Array of monthly balances
}

ApiResponseMonthSaldoBalances wraps monthly balance trend responses.

type ApiResponseMonthTotalSaldo ¶

type ApiResponseMonthTotalSaldo struct {
	Status  string                            `json:"status"`  // Response status
	Message string                            `json:"message"` // Descriptive message
	Data    []*SaldoMonthTotalBalanceResponse `json:"data"`    // Array of monthly total balances
}

ApiResponseMonthTotalSaldo wraps monthly total balance responses.

type ApiResponseMonthlyAmount ¶

type ApiResponseMonthlyAmount struct {
	Status  string                     `json:"status"`  // Response status
	Message string                     `json:"message"` // Descriptive message
	Data    []*CardResponseMonthAmount `json:"data"`    // Array of monthly amounts
}

ApiResponseMonthlyAmount is the response format for monthly transaction amounts.

type ApiResponseMonthlyBalance ¶

type ApiResponseMonthlyBalance struct {
	Status  string                      `json:"status"`  // Response status
	Message string                      `json:"message"` // Descriptive message
	Data    []*CardResponseMonthBalance `json:"data"`    // Array of monthly balances
}

ApiResponseMonthlyBalance is the response format for monthly balance data.

type ApiResponsePaginationCard ¶

type ApiResponsePaginationCard struct {
	Status     string          `json:"status"`     // Response status
	Message    string          `json:"message"`    // Descriptive message
	Data       []*CardResponse `json:"data"`       // Array of card data
	Pagination *PaginationMeta `json:"pagination"` // Pagination metadata
}

ApiResponsePaginationCard is the paginated response for card lists.

type ApiResponsePaginationCardDeleteAt ¶

type ApiResponsePaginationCardDeleteAt struct {
	Status     string                  `json:"status"`     // Response status
	Message    string                  `json:"message"`    // Descriptive message
	Data       []*CardResponseDeleteAt `json:"data"`       // Array of card data (with deletion info)
	Pagination *PaginationMeta         `json:"pagination"` // Pagination metadata
}

ApiResponsePaginationCardDeleteAt is the paginated response including deleted cards.

type ApiResponsePaginationMerchant ¶

type ApiResponsePaginationMerchant struct {
	Status     string              `json:"status"`     // Response status
	Message    string              `json:"message"`    // Descriptive message
	Data       []*MerchantResponse `json:"data"`       // Array of merchant data
	Pagination *PaginationMeta     `json:"pagination"` // Pagination metadata
}

ApiResponsePaginationMerchant wraps paginated merchant lists.

type ApiResponsePaginationMerchantDeleteAt ¶

type ApiResponsePaginationMerchantDeleteAt struct {
	Status     string                      `json:"status"`     // Response status
	Message    string                      `json:"message"`    // Descriptive message
	Data       []*MerchantResponseDeleteAt `json:"data"`       // Array of merchant data (with deletion info)
	Pagination *PaginationMeta             `json:"pagination"` // Pagination metadata
}

ApiResponsePaginationMerchantDeleteAt wraps paginated lists including deleted merchants.

type ApiResponsePaginationMerchantDocument ¶

type ApiResponsePaginationMerchantDocument struct {
	Status     string                      `json:"status"`     // Response status
	Message    string                      `json:"message"`    // Descriptive message
	Data       []*MerchantDocumentResponse `json:"data"`       // Array of document data
	Pagination *PaginationMeta             `json:"pagination"` // Pagination metadata
}

ApiResponsePaginationMerchantDocument is the paginated response for document lists.

type ApiResponsePaginationMerchantDocumentDeleteAt ¶

type ApiResponsePaginationMerchantDocumentDeleteAt struct {
	Status     string                              `json:"status"`     // Response status
	Message    string                              `json:"message"`    // Descriptive message
	Data       []*MerchantDocumentResponseDeleteAt `json:"data"`       // Array of documents (with deletion info)
	Pagination *PaginationMeta                     `json:"pagination"` // Pagination metadata
}

ApiResponsePaginationMerchantDocumentDeleteAt is the paginated response including deleted documents.

type ApiResponsePaginationMerchantTransaction ¶

type ApiResponsePaginationMerchantTransaction struct {
	Status     string                         `json:"status"`     // Response status
	Message    string                         `json:"message"`    // Descriptive message
	Data       []*MerchantTransactionResponse `json:"data"`       // Array of transaction data
	Pagination *PaginationMeta                `json:"pagination"` // Pagination metadata
}

ApiResponsePaginationMerchantTransaction wraps paginated merchant transaction lists.

type ApiResponsePaginationRole ¶

type ApiResponsePaginationRole struct {
	Status     string          `json:"status"`     // Response status
	Message    string          `json:"message"`    // Descriptive message
	Data       []*RoleResponse `json:"data"`       // Array of role data
	Pagination *PaginationMeta `json:"pagination"` // Pagination metadata
}

ApiResponsePaginationRole is the paginated response for role lists.

type ApiResponsePaginationRoleDeleteAt ¶

type ApiResponsePaginationRoleDeleteAt struct {
	Status     string                  `json:"status"`     // Response status
	Message    string                  `json:"message"`    // Descriptive message
	Data       []*RoleResponseDeleteAt `json:"data"`       // Array of role data (with deletion info)
	Pagination *PaginationMeta         `json:"pagination"` // Pagination metadata
}

ApiResponsePaginationRoleDeleteAt is the paginated response including deleted roles.

type ApiResponsePaginationSaldo ¶

type ApiResponsePaginationSaldo struct {
	Status     string           `json:"status"`     // Response status
	Message    string           `json:"message"`    // Descriptive message
	Data       []*SaldoResponse `json:"data"`       // Array of saldo data
	Pagination *PaginationMeta  `json:"pagination"` // Pagination metadata
}

ApiResponsePaginationSaldo is the paginated response for saldo lists.

type ApiResponsePaginationSaldoDeleteAt ¶

type ApiResponsePaginationSaldoDeleteAt struct {
	Status     string                   `json:"status"`     // Response status
	Message    string                   `json:"message"`    // Descriptive message
	Data       []*SaldoResponseDeleteAt `json:"data"`       // Array of saldo data (with deletion info)
	Pagination *PaginationMeta          `json:"pagination"` // Pagination metadata
}

ApiResponsePaginationSaldoDeleteAt is the paginated response including deleted saldo records.

type ApiResponsePaginationTopup ¶

type ApiResponsePaginationTopup struct {
	Status     string           `json:"status"`     // Response status
	Message    string           `json:"message"`    // Descriptive message
	Data       []*TopupResponse `json:"data"`       // Array of top-up data
	Pagination *PaginationMeta  `json:"pagination"` // Pagination metadata
}

ApiResponsePaginationTopup is the paginated API response for top-ups

type ApiResponsePaginationTopupDeleteAt ¶

type ApiResponsePaginationTopupDeleteAt struct {
	Status     string                   `json:"status"`     // Response status
	Message    string                   `json:"message"`    // Descriptive message
	Data       []*TopupResponseDeleteAt `json:"data"`       // Array of top-up data with delete info
	Pagination *PaginationMeta          `json:"pagination"` // Pagination metadata
}

ApiResponsePaginationTopupDeleteAt is the paginated API response for top-ups with delete info

type ApiResponsePaginationTransaction ¶

type ApiResponsePaginationTransaction struct {
	Status     string                 `json:"status"`     // Response status
	Message    string                 `json:"message"`    // Response message
	Data       []*TransactionResponse `json:"data"`       // Array of transaction data
	Pagination *PaginationMeta        `json:"pagination"` // Pagination metadata
}

ApiResponsePaginationTransaction is paginated API response for transactions

type ApiResponsePaginationTransactionDeleteAt ¶

type ApiResponsePaginationTransactionDeleteAt struct {
	Status     string                         `json:"status"`     // Response status
	Message    string                         `json:"message"`    // Response message
	Data       []*TransactionResponseDeleteAt `json:"data"`       // Array of transaction data with delete info
	Pagination *PaginationMeta                `json:"pagination"` // Pagination metadata
}

ApiResponsePaginationTransactionDeleteAt is paginated API response for soft-deleted transactions

type ApiResponsePaginationTransfer ¶

type ApiResponsePaginationTransfer struct {
	Status     string              `json:"status"`     // Response status
	Message    string              `json:"message"`    // Response message
	Data       []*TransferResponse `json:"data"`       // Array of transfer data
	Pagination *PaginationMeta     `json:"pagination"` // Pagination metadata
}

ApiResponsePaginationTransfer is paginated API response for transfers

type ApiResponsePaginationTransferDeleteAt ¶

type ApiResponsePaginationTransferDeleteAt struct {
	Status     string                      `json:"status"`     // Response status
	Message    string                      `json:"message"`    // Response message
	Data       []*TransferResponseDeleteAt `json:"data"`       // Array of transfer data with delete info
	Pagination *PaginationMeta             `json:"pagination"` // Pagination metadata
}

ApiResponsePaginationTransferDeleteAt is paginated API response for soft-deleted transfers

type ApiResponsePaginationUser ¶

type ApiResponsePaginationUser struct {
	Status     string          `json:"status"`     // Response status
	Message    string          `json:"message"`    // Response message
	Data       []*UserResponse `json:"data"`       // Array of user data
	Pagination *PaginationMeta `json:"pagination"` // Pagination metadata
}

ApiResponsePaginationUser is a paginated API response for active users

type ApiResponsePaginationUserDeleteAt ¶

type ApiResponsePaginationUserDeleteAt struct {
	Status     string                  `json:"status"`     // Response status
	Message    string                  `json:"message"`    // Response message
	Data       []*UserResponseDeleteAt `json:"data"`       // Array of user data with deletion info
	Pagination *PaginationMeta         `json:"pagination"` // Pagination metadata
}

ApiResponsePaginationUserDeleteAt is a paginated API response for soft-deleted users

type ApiResponsePaginationWithdraw ¶

type ApiResponsePaginationWithdraw struct {
	Status     string              `json:"status"`     // Response status
	Message    string              `json:"message"`    // Response message
	Data       []*WithdrawResponse `json:"data"`       // Array of withdrawal records
	Pagination *PaginationMeta     `json:"pagination"` // Pagination metadata
}

ApiResponsePaginationWithdraw is paginated API response for withdrawals

type ApiResponsePaginationWithdrawDeleteAt ¶

type ApiResponsePaginationWithdrawDeleteAt struct {
	Status     string                      `json:"status"`     // Response status
	Message    string                      `json:"message"`    // Response message
	Data       []*WithdrawResponseDeleteAt `json:"data"`       // Array of soft-deleted withdrawals
	Pagination *PaginationMeta             `json:"pagination"` // Pagination metadata
}

ApiResponsePaginationWithdrawDeleteAt is paginated API response for soft-deleted withdrawals

type ApiResponseRefreshToken ¶

type ApiResponseRefreshToken struct {
	Status  string         `json:"status"`  // Operation status
	Message string         `json:"message"` // Result message
	Data    *TokenResponse `json:"data"`    // New set of authentication tokens
}

ApiResponseRefreshToken is the response format for token refresh operations. Contains new authentication tokens.

type ApiResponseRegister ¶

type ApiResponseRegister struct {
	Status  string        `json:"status"`  // Operation status
	Message string        `json:"message"` // Welcome/confirmation message
	Data    *UserResponse `json:"data"`    // Registered user's profile data
}

ApiResponseRegister is the response format for new user registration. Contains the created user's information.

type ApiResponseResetPassword ¶

type ApiResponseResetPassword struct {
	Status  string `json:"status"`  // Operation status
	Message string `json:"message"` // Result message ("Password updated successfully")
}

ApiResponseResetPassword is the response format for password reset completion. Used after submitting a new password.

type ApiResponseRole ¶

type ApiResponseRole struct {
	Status  string        `json:"status"`  // Response status
	Message string        `json:"message"` // Descriptive message
	Data    *RoleResponse `json:"data"`    // Role data payload
}

ApiResponseRole is the standard response format for single role requests.

type ApiResponseRoleAll ¶

type ApiResponseRoleAll struct {
	Status  string `json:"status"`  // Operation status ("success" or "error")
	Message string `json:"message"` // Result message
}

ApiResponseRoleAll is the response format for bulk role operations.

type ApiResponseRoleDelete ¶

type ApiResponseRoleDelete struct {
	Status  string `json:"status"`  // Operation status
	Message string `json:"message"` // Result message
}

ApiResponseRoleDelete is the response format for role deletion operations.

type ApiResponseRoleDeleteAt ¶ added in v1.0.10

type ApiResponseRoleDeleteAt struct {
	Status  string                `json:"status"`
	Message string                `json:"message"`
	Data    *RoleResponseDeleteAt `json:"data"`
}

type ApiResponseSaldo ¶

type ApiResponseSaldo struct {
	Status  string         `json:"status"`  // Response status ("success" or "error")
	Message string         `json:"message"` // Descriptive message
	Data    *SaldoResponse `json:"data"`    // Saldo data payload
}

ApiResponseSaldo is the standard response format for single saldo requests.

type ApiResponseSaldoAll ¶

type ApiResponseSaldoAll struct {
	Status  string `json:"status"`  // Operation status
	Message string `json:"message"` // Result message
}

ApiResponseSaldoAll is the response format for bulk saldo operations.

type ApiResponseSaldoDelete ¶

type ApiResponseSaldoDelete struct {
	Status  string `json:"status"`  // Operation status
	Message string `json:"message"` // Result message
}

ApiResponseSaldoDelete is the response format for saldo deletion operations.

type ApiResponseSaldoDeleteAt ¶ added in v1.0.10

type ApiResponseSaldoDeleteAt struct {
	Status  string                 `json:"status"`  // Response status ("success" or "error")
	Message string                 `json:"message"` // Descriptive message
	Data    *SaldoResponseDeleteAt `json:"data"`    // Saldo data payload
}

type ApiResponseTopup ¶

type ApiResponseTopup struct {
	Status  string         `json:"status"`  // Response status
	Message string         `json:"message"` // Descriptive message
	Data    *TopupResponse `json:"data"`    // Single top-up data
}

ApiResponseTopup is the API response for a single top-up transaction

type ApiResponseTopupAll ¶

type ApiResponseTopupAll struct {
	Status  string `json:"status"`  // Response status
	Message string `json:"message"` // Descriptive message
}

ApiResponseTopupAll is a generic API response for top-up operations

type ApiResponseTopupDelete ¶

type ApiResponseTopupDelete struct {
	Status  string `json:"status"`  // Response status
	Message string `json:"message"` // Descriptive message
}

ApiResponseTopupDelete is the API response for a delete operation

type ApiResponseTopupDeleteAt ¶

type ApiResponseTopupDeleteAt struct {
	Status  string                 `json:"status"`  // Response status
	Message string                 `json:"message"` // Descriptive message
	Data    *TopupResponseDeleteAt `json:"data"`    // Single top-up data with delete info
}

ApiResponseTopupDeleteAt is the API response for a single top-up including delete info

type ApiResponseTopupMonthAmount ¶

type ApiResponseTopupMonthAmount struct {
	Status  string                      `json:"status"`  // Response status
	Message string                      `json:"message"` // Descriptive message
	Data    []*TopupMonthAmountResponse `json:"data"`    // Array of monthly amount data
}

ApiResponseTopupMonthAmount is the API response for monthly top-up amount stats

type ApiResponseTopupMonthMethod ¶

type ApiResponseTopupMonthMethod struct {
	Status  string                      `json:"status"`  // Response status
	Message string                      `json:"message"` // Descriptive message
	Data    []*TopupMonthMethodResponse `json:"data"`    // Array of monthly method data
}

ApiResponseTopupMonthMethod is the API response for monthly top-up method stats

type ApiResponseTopupMonthStatusFailed ¶

type ApiResponseTopupMonthStatusFailed struct {
	Status  string                            `json:"status"`  // Response status
	Message string                            `json:"message"` // Descriptive message
	Data    []*TopupResponseMonthStatusFailed `json:"data"`    // Array of monthly failed data
}

ApiResponseTopupMonthStatusFailed is the API response for monthly failed top-up stats

type ApiResponseTopupMonthStatusSuccess ¶

type ApiResponseTopupMonthStatusSuccess struct {
	Status  string                             `json:"status"`  // Response status (e.g., "success")
	Message string                             `json:"message"` // Descriptive message
	Data    []*TopupResponseMonthStatusSuccess `json:"data"`    // Array of monthly success data
}

ApiResponseTopupMonthStatusSuccess is the API response for monthly successful top-up stats

type ApiResponseTopupYearAmount ¶

type ApiResponseTopupYearAmount struct {
	Status  string                       `json:"status"`  // Response status
	Message string                       `json:"message"` // Descriptive message
	Data    []*TopupYearlyAmountResponse `json:"data"`    // Array of yearly amount data
}

ApiResponseTopupYearAmount is the API response for yearly top-up amount stats

type ApiResponseTopupYearMethod ¶

type ApiResponseTopupYearMethod struct {
	Status  string                       `json:"status"`  // Response status
	Message string                       `json:"message"` // Descriptive message
	Data    []*TopupYearlyMethodResponse `json:"data"`    // Array of yearly method data
}

ApiResponseTopupYearMethod is the API response for yearly top-up method stats

type ApiResponseTopupYearStatusFailed ¶

type ApiResponseTopupYearStatusFailed struct {
	Status  string                           `json:"status"`  // Response status
	Message string                           `json:"message"` // Descriptive message
	Data    []*TopupResponseYearStatusFailed `json:"data"`    // Array of yearly failed data
}

ApiResponseTopupYearStatusFailed is the API response for yearly failed top-up stats

type ApiResponseTopupYearStatusSuccess ¶

type ApiResponseTopupYearStatusSuccess struct {
	Status  string                            `json:"status"`  // Response status
	Message string                            `json:"message"` // Descriptive message
	Data    []*TopupResponseYearStatusSuccess `json:"data"`    // Array of yearly success data
}

ApiResponseTopupYearStatusSuccess is the API response for yearly successful top-up stats

type ApiResponseTransaction ¶

type ApiResponseTransaction struct {
	Status  string               `json:"status"`  // Response status
	Message string               `json:"message"` // Response message
	Data    *TransactionResponse `json:"data"`    // Single transaction data
}

ApiResponseTransaction is API response for a single transaction

type ApiResponseTransactionAll ¶

type ApiResponseTransactionAll struct {
	Status  string `json:"status"`  // Response status
	Message string `json:"message"` // Response message
}

ApiResponseTransactionAll is generic API response for transaction operations

type ApiResponseTransactionDelete ¶

type ApiResponseTransactionDelete struct {
	Status  string `json:"status"`  // Response status
	Message string `json:"message"` // Response message
}

ApiResponseTransactionDelete is API response for transaction deletion

type ApiResponseTransactionDeleteAt ¶ added in v1.0.10

type ApiResponseTransactionDeleteAt struct {
	Status  string                       `json:"status"`
	Message string                       `json:"message"`
	Data    *TransactionResponseDeleteAt `json:"data"`
}

type ApiResponseTransactionMonthAmount ¶

type ApiResponseTransactionMonthAmount struct {
	Status  string                            `json:"status"`  // Response status
	Message string                            `json:"message"` // Response message
	Data    []*TransactionMonthAmountResponse `json:"data"`    // Array of monthly amount data
}

ApiResponseTransactionMonthAmount is API response for monthly amount metrics

type ApiResponseTransactionMonthMethod ¶

type ApiResponseTransactionMonthMethod struct {
	Status  string                            `json:"status"`  // Response status
	Message string                            `json:"message"` // Response message
	Data    []*TransactionMonthMethodResponse `json:"data"`    // Array of monthly method data
}

ApiResponseTransactionMonthMethod is API response for monthly method metrics

type ApiResponseTransactionMonthStatusFailed ¶

type ApiResponseTransactionMonthStatusFailed struct {
	Status  string                                  `json:"status"`  // Response status
	Message string                                  `json:"message"` // Response message
	Data    []*TransactionResponseMonthStatusFailed `json:"data"`    // Array of monthly failed data
}

ApiResponseTransactionMonthStatusFailed is API response for monthly failed metrics

type ApiResponseTransactionMonthStatusSuccess ¶

type ApiResponseTransactionMonthStatusSuccess struct {
	Status  string                                   `json:"status"`  // Response status
	Message string                                   `json:"message"` // Response message
	Data    []*TransactionResponseMonthStatusSuccess `json:"data"`    // Array of monthly success data
}

ApiResponseTransactionMonthStatusSuccess is API response for monthly success metrics

type ApiResponseTransactionYearAmount ¶

type ApiResponseTransactionYearAmount struct {
	Status  string                             `json:"status"`  // Response status
	Message string                             `json:"message"` // Response message
	Data    []*TransactionYearlyAmountResponse `json:"data"`    // Array of yearly amount data
}

ApiResponseTransactionYearAmount is API response for yearly amount metrics

type ApiResponseTransactionYearMethod ¶

type ApiResponseTransactionYearMethod struct {
	Status  string                           `json:"status"`  // Response status
	Message string                           `json:"message"` // Response message
	Data    []*TransactionYearMethodResponse `json:"data"`    // Array of yearly method data
}

ApiResponseTransactionYearMethod is API response for yearly method metrics

type ApiResponseTransactionYearStatusFailed ¶

type ApiResponseTransactionYearStatusFailed struct {
	Status  string                                 `json:"status"`  // Response status
	Message string                                 `json:"message"` // Response message
	Data    []*TransactionResponseYearStatusFailed `json:"data"`    // Array of yearly failed data
}

ApiResponseTransactionYearStatusFailed is API response for yearly failed metrics

type ApiResponseTransactionYearStatusSuccess ¶

type ApiResponseTransactionYearStatusSuccess struct {
	Status  string                                  `json:"status"`  // Response status
	Message string                                  `json:"message"` // Response message
	Data    []*TransactionResponseYearStatusSuccess `json:"data"`    // Array of yearly success data
}

ApiResponseTransactionYearStatusSuccess is API response for yearly success metrics

type ApiResponseTransactions ¶

type ApiResponseTransactions struct {
	Status  string                 `json:"status"`  // Response status
	Message string                 `json:"message"` // Response message
	Data    []*TransactionResponse `json:"data"`    // Array of transaction data
}

ApiResponseTransactions is API response for multiple transactions

type ApiResponseTransfer ¶

type ApiResponseTransfer struct {
	Status  string            `json:"status"`  // Response status
	Message string            `json:"message"` // Response message
	Data    *TransferResponse `json:"data"`    // Single transfer data
}

ApiResponseTransfer is API response for a single transfer

type ApiResponseTransferAll ¶

type ApiResponseTransferAll struct {
	Status  string `json:"status"`  // Response status
	Message string `json:"message"` // Response message
}

ApiResponseTransferAll is generic API response for transfer operations

type ApiResponseTransferDelete ¶

type ApiResponseTransferDelete struct {
	Status  string `json:"status"`  // Response status
	Message string `json:"message"` // Response message
}

ApiResponseTransferDelete is API response for transfer deletion

type ApiResponseTransferDeleteAt ¶ added in v1.0.10

type ApiResponseTransferDeleteAt struct {
	Status  string                    `json:"status"`  // Response status
	Message string                    `json:"message"` // Response message
	Data    *TransferResponseDeleteAt `json:"data"`
}

ApiResponseTransferDeleteAt is API response for soft-deleted transfer

type ApiResponseTransferMonthAmount ¶

type ApiResponseTransferMonthAmount struct {
	Status  string                         `json:"status"`  // Response status
	Message string                         `json:"message"` // Response message
	Data    []*TransferMonthAmountResponse `json:"data"`    // Array of monthly amount data
}

ApiResponseTransferMonthAmount is API response for monthly amount metrics

type ApiResponseTransferMonthStatusFailed ¶

type ApiResponseTransferMonthStatusFailed struct {
	Status  string                               `json:"status"`  // Response status
	Message string                               `json:"message"` // Response message
	Data    []*TransferResponseMonthStatusFailed `json:"data"`    // Array of monthly failed data
}

ApiResponseTransferMonthStatusFailed is API response for monthly failed metrics

type ApiResponseTransferMonthStatusSuccess ¶

type ApiResponseTransferMonthStatusSuccess struct {
	Status  string                                `json:"status"`  // Response status
	Message string                                `json:"message"` // Response message
	Data    []*TransferResponseMonthStatusSuccess `json:"data"`    // Array of monthly success data
}

ApiResponseTransferMonthStatusSuccess is API response for monthly success metrics

type ApiResponseTransferYearAmount ¶

type ApiResponseTransferYearAmount struct {
	Status  string                        `json:"status"`  // Response status
	Message string                        `json:"message"` // Response message
	Data    []*TransferYearAmountResponse `json:"data"`    // Array of yearly amount data
}

ApiResponseTransferYearAmount is API response for yearly amount metrics

type ApiResponseTransferYearStatusFailed ¶

type ApiResponseTransferYearStatusFailed struct {
	Status  string                              `json:"status"`  // Response status
	Message string                              `json:"message"` // Response message
	Data    []*TransferResponseYearStatusFailed `json:"data"`    // Array of yearly failed data
}

ApiResponseTransferYearStatusFailed is API response for yearly failed metrics

type ApiResponseTransferYearStatusSuccess ¶

type ApiResponseTransferYearStatusSuccess struct {
	Status  string                               `json:"status"`  // Response status
	Message string                               `json:"message"` // Response message
	Data    []*TransferResponseYearStatusSuccess `json:"data"`    // Array of yearly success data
}

ApiResponseTransferYearStatusSuccess is API response for yearly success metrics

type ApiResponseTransfers ¶

type ApiResponseTransfers struct {
	Status  string              `json:"status"`  // Response status
	Message string              `json:"message"` // Response message
	Data    []*TransferResponse `json:"data"`    // Array of transfer data
}

ApiResponseTransfers is API response for multiple transfers

type ApiResponseUser ¶

type ApiResponseUser struct {
	Status  string        `json:"status"`  // Response status ("success" or "error")
	Message string        `json:"message"` // Descriptive response message
	Data    *UserResponse `json:"data"`    // Contains the user data
}

ApiResponseUser is the API response for a single user

type ApiResponseUserAll ¶

type ApiResponseUserAll struct {
	Status  string `json:"status"`  // Response status
	Message string `json:"message"` // Operation message
}

ApiResponseUserAll is a generic API response for user operations

type ApiResponseUserDelete ¶

type ApiResponseUserDelete struct {
	Status  string `json:"status"`  // Response status
	Message string `json:"message"` // Operation result message
}

ApiResponseUserDelete is the API response for user deletion

type ApiResponseUserDeleteAt ¶

type ApiResponseUserDeleteAt struct {
	Status  string                `json:"status"`  // Response status
	Message string                `json:"message"` // Response message
	Data    *UserResponseDeleteAt `json:"data"`    // User data including deletion timestamp
}

ApiResponseUserDeleteAt is the API response for a single user including deletion info

type ApiResponseVerifyCode ¶

type ApiResponseVerifyCode struct {
	Status  string `json:"status"`  // Operation status ("success" or "error")
	Message string `json:"message"` // Result message ("Verification successful")
}

ApiResponseVerifyCode is the response format for verification code operations. Used in email/SMS verification flows.

type ApiResponseWithdraw ¶

type ApiResponseWithdraw struct {
	Status  string            `json:"status"`  // Response status
	Message string            `json:"message"` // Response message
	Data    *WithdrawResponse `json:"data"`    // Single withdrawal record
}

ApiResponseWithdraw is API response for a single withdrawal record

type ApiResponseWithdrawAll ¶

type ApiResponseWithdrawAll struct {
	Status  string `json:"status"`  // Response status
	Message string `json:"message"` // Operation message
}

ApiResponseWithdrawAll is generic API response for withdrawal operations

type ApiResponseWithdrawDelete ¶

type ApiResponseWithdrawDelete struct {
	Status  string `json:"status"`  // Response status
	Message string `json:"message"` // Operation result message
}

ApiResponseWithdrawDelete is API response for withdrawal deletion

type ApiResponseWithdrawDeleteAt ¶ added in v1.0.10

type ApiResponseWithdrawDeleteAt struct {
	Status  string                    `json:"status"`  // Response status
	Message string                    `json:"message"` // Response message
	Data    *WithdrawResponseDeleteAt `json:"data"`
}

type ApiResponseWithdrawMonthAmount ¶

type ApiResponseWithdrawMonthAmount struct {
	Status  string                           `json:"status"`  // Response status
	Message string                           `json:"message"` // Response message
	Data    []*WithdrawMonthlyAmountResponse `json:"data"`    // Array of monthly amount totals
}

ApiResponseWithdrawMonthAmount is API response for monthly withdrawal amounts

type ApiResponseWithdrawMonthStatusFailed ¶

type ApiResponseWithdrawMonthStatusFailed struct {
	Status  string                               `json:"status"`  // Response status
	Message string                               `json:"message"` // Response message
	Data    []*WithdrawResponseMonthStatusFailed `json:"data"`    // Array of monthly failed metrics
}

ApiResponseWithdrawMonthStatusFailed is API response for monthly failed metrics

type ApiResponseWithdrawMonthStatusSuccess ¶

type ApiResponseWithdrawMonthStatusSuccess struct {
	Status  string                                `json:"status"`  // Response status ("success" or "error")
	Message string                                `json:"message"` // Descriptive response message
	Data    []*WithdrawResponseMonthStatusSuccess `json:"data"`    // Array of monthly success metrics
}

ApiResponseWithdrawMonthStatusSuccess is API response for monthly success metrics

type ApiResponseWithdrawYearAmount ¶

type ApiResponseWithdrawYearAmount struct {
	Status  string                          `json:"status"`  // Response status
	Message string                          `json:"message"` // Response message
	Data    []*WithdrawYearlyAmountResponse `json:"data"`    // Array of yearly amount totals
}

ApiResponseWithdrawYearAmount is API response for yearly withdrawal amounts

type ApiResponseWithdrawYearStatusFailed ¶

type ApiResponseWithdrawYearStatusFailed struct {
	Status  string                              `json:"status"`  // Response status
	Message string                              `json:"message"` // Response message
	Data    []*WithdrawResponseYearStatusFailed `json:"data"`    // Array of yearly failed metrics
}

ApiResponseWithdrawYearStatusFailed is API response for yearly failed metrics

type ApiResponseWithdrawYearStatusSuccess ¶

type ApiResponseWithdrawYearStatusSuccess struct {
	Status  string                               `json:"status"`  // Response status
	Message string                               `json:"message"` // Response message
	Data    []*WithdrawResponseYearStatusSuccess `json:"data"`    // Array of yearly success metrics
}

ApiResponseWithdrawYearStatusSuccess is API response for yearly success metrics

type ApiResponseYearSaldoBalances ¶

type ApiResponseYearSaldoBalances struct {
	Status  string                      `json:"status"`  // Response status
	Message string                      `json:"message"` // Descriptive message
	Data    []*SaldoYearBalanceResponse `json:"data"`    // Array of yearly balances
}

ApiResponseYearSaldoBalances wraps yearly balance trend responses.

type ApiResponseYearTotalSaldo ¶

type ApiResponseYearTotalSaldo struct {
	Status  string                           `json:"status"`  // Response status
	Message string                           `json:"message"` // Descriptive message
	Data    []*SaldoYearTotalBalanceResponse `json:"data"`    // Array of yearly total balances
}

ApiResponseYearTotalSaldo wraps yearly total balance responses.

type ApiResponseYearlyAmount ¶

type ApiResponseYearlyAmount struct {
	Status  string                    `json:"status"`  // Response status
	Message string                    `json:"message"` // Descriptive message
	Data    []*CardResponseYearAmount `json:"data"`    // Array of yearly amounts
}

ApiResponseYearlyAmount is the response format for yearly transaction amounts.

type ApiResponseYearlyBalance ¶

type ApiResponseYearlyBalance struct {
	Status  string                       `json:"status"`  // Response status
	Message string                       `json:"message"` // Descriptive message
	Data    []*CardResponseYearlyBalance `json:"data"`    // Array of yearly balances
}

ApiResponseYearlyBalance is the response format for yearly balance data.

type ApiResponsesMerchant ¶

type ApiResponsesMerchant struct {
	Status  string              `json:"status"`  // Response status
	Message string              `json:"message"` // Descriptive message
	Data    []*MerchantResponse `json:"data"`    // Array of merchant data
}

ApiResponsesMerchant wraps multiple merchant responses.

type ApiResponsesMerchantDocument ¶

type ApiResponsesMerchantDocument struct {
	Status  string                      `json:"status"`  // Response status ("success" or "error")
	Message string                      `json:"message"` // Descriptive message
	Data    []*MerchantDocumentResponse `json:"data"`    // Array of document responses
}

ApiResponsesMerchantDocument is the response format for multiple document listings. Used when returning arrays of document data without pagination.

type ApiResponsesRole ¶

type ApiResponsesRole struct {
	Status  string          `json:"status"`  // Response status
	Message string          `json:"message"` // Descriptive message
	Data    []*RoleResponse `json:"data"`    // Array of role data
}

ApiResponsesRole is the response format for multiple role listings (non-paginated).

type ApiResponsesSaldo ¶

type ApiResponsesSaldo struct {
	Status  string           `json:"status"`  // Response status
	Message string           `json:"message"` // Descriptive message
	Data    []*SaldoResponse `json:"data"`    // Array of saldo data
}

ApiResponsesSaldo is the response format for multiple saldo records (non-paginated).

type ApiResponsesTopup ¶

type ApiResponsesTopup struct {
	Status  string           `json:"status"`  // Response status
	Message string           `json:"message"` // Descriptive message
	Data    []*TopupResponse `json:"data"`    // Array of top-up data
}

ApiResponsesTopup is the API response for multiple top-up transactions

type ApiResponsesUser ¶

type ApiResponsesUser struct {
	Status  string          `json:"status"`  // Response status
	Message string          `json:"message"` // Response message
	Data    []*UserResponse `json:"data"`    // Array of user data
}

ApiResponsesUser is the API response for multiple users

type ApiResponsesWithdraw ¶

type ApiResponsesWithdraw struct {
	Status  string              `json:"status"`  // Response status
	Message string              `json:"message"` // Response message
	Data    []*WithdrawResponse `json:"data"`    // Array of withdrawal records
}

ApiResponsesWithdraw is API response for multiple withdrawal records

type CardResponse ¶

type CardResponse struct {
	ID           int    `json:"id"`            // Unique card identifier
	UserID       int    `json:"user_id"`       // ID of the card owner
	CardNumber   string `json:"card_number"`   // Masked card number (e.g., "4242********4242")
	CardType     string `json:"card_type"`     // Type of card ("credit" or "debit")
	ExpireDate   string `json:"expire_date"`   // Card expiration date (MM/YY format)
	CVV          string `json:"cvv"`           // Masked CVV (typically "***")
	CardProvider string `json:"card_provider"` // Card issuer (e.g., "Visa", "MasterCard")
	CreatedAt    string `json:"created_at"`    // Timestamp when card was added (RFC3339 format)
	UpdatedAt    string `json:"updated_at"`    // Timestamp when card was last updated
}

CardResponse represents the basic card information returned in API responses. Used for non-sensitive card data display in most endpoints.

type CardResponseDeleteAt ¶

type CardResponseDeleteAt struct {
	ID           int     `json:"id"`            // Unique card identifier
	UserID       int     `json:"user_id"`       // ID of the card owner
	CardNumber   string  `json:"card_number"`   // Masked card number
	CardType     string  `json:"card_type"`     // Type of card
	ExpireDate   string  `json:"expire_date"`   // Card expiration date
	CVV          string  `json:"cvv"`           // Masked CVV
	CardProvider string  `json:"card_provider"` // Card issuer
	CreatedAt    string  `json:"created_at"`    // Creation timestamp
	UpdatedAt    string  `json:"updated_at"`    // Last update timestamp
	DeletedAt    *string `json:"deleted_at"`    // Deletion timestamp (nil if not deleted)
}

CardResponseDeleteAt extends CardResponse with deletion information. Used in administrative interfaces showing soft-deleted cards.

type CardResponseMonthAmount ¶

type CardResponseMonthAmount struct {
	Month       string `json:"month"`        // Month in "YYYY-MM" format
	TotalAmount int64  `json:"total_amount"` // Total transaction amount for the month
}

CardResponseMonthAmount represents monthly transaction amounts. Shows activity volume rather than balance.

type CardResponseMonthBalance ¶

type CardResponseMonthBalance struct {
	Month        string `json:"month"`         // Month in "YYYY-MM" format
	TotalBalance int64  `json:"total_balance"` // Balance at month end (in smallest currency unit)
}

CardResponseMonthBalance represents monthly balance information. Used for balance trend analysis and reporting.

type CardResponseYearAmount ¶

type CardResponseYearAmount struct {
	Year        string `json:"year"`         // Year in "YYYY" format
	TotalAmount int64  `json:"total_amount"` // Total transaction amount for the year
}

CardResponseYearAmount represents annual transaction amounts. Shows yearly activity volume.

type CardResponseYearlyBalance ¶

type CardResponseYearlyBalance struct {
	Year         string `json:"year"`          // Year in "YYYY" format
	TotalBalance int64  `json:"total_balance"` // Balance at year end
}

CardResponseYearlyBalance represents annual balance information. Used for yearly financial summaries.

type DashboardCard ¶

type DashboardCard struct {
	TotalBalance     *int64 `json:"total_balance"`     // Sum of all card balances (in smallest currency unit)
	TotalTopup       *int64 `json:"total_topup"`       // Total top-up amount this period
	TotalWithdraw    *int64 `json:"total_withdraw"`    // Total withdrawals this period
	TotalTransaction *int64 `json:"total_transaction"` // Total transaction volume
	TotalTransfer    *int64 `json:"total_transfer"`    // Total transfer amount
}

DashboardCard represents aggregated card statistics for dashboard display. Provides overview of financial activity across all cards.

type DashboardCardCardNumber ¶

type DashboardCardCardNumber struct {
	TotalBalance          *int64 `json:"total_balance"`           // Current card balance
	TotalTopup            *int64 `json:"total_topup"`             // Total top-ups to this card
	TotalWithdraw         *int64 `json:"total_withdraw"`          // Total withdrawals from this card
	TotalTransaction      *int64 `json:"total_transaction"`       // Total transaction amount
	TotalTransferSend     *int64 `json:"total_transfer_send"`     // Total sent via transfers
	TotalTransferReceiver *int64 `json:"total_transfer_receiver"` // Total received via transfers
}

DashboardCardCardNumber provides detailed stats for a specific card. Shows both sending and receiving transfer amounts separately.

type ErrorResponse ¶

type ErrorResponse struct {
	Status  string `json:"status"`  // Error status ("error", "fail", etc.)
	Message string `json:"message"` // Human-readable error message
	Code    int    `json:"code"`    // HTTP status code or application error code
}

ErrorResponse represents standardized error responses from the API. Used to maintain consistent error reporting across endpoints.

type MerchantDocumentResponse ¶

type MerchantDocumentResponse struct {
	ID           int    `json:"id"`            // Unique document identifier
	MerchantID   int    `json:"merchant_id"`   // ID of the merchant this document belongs to
	DocumentType string `json:"document_type"` // Type of document (e.g., "license", "identity_proof")
	DocumentURL  string `json:"document_url"`  // URL or storage path where the document is saved
	Status       string `json:"status"`        // Current status ("pending", "approved", "rejected")
	Note         string `json:"note"`          // Administrative notes about the document
	CreatedAt    string `json:"created_at"`    // Timestamp when document was uploaded (RFC3339 format)
	UpdatedAt    string `json:"updated_at"`    // Timestamp when document was last updated
}

MerchantDocumentResponse represents the basic merchant document information returned in API responses. Contains all relevant document metadata without deletion information.

type MerchantDocumentResponseDeleteAt ¶

type MerchantDocumentResponseDeleteAt struct {
	ID           int     `json:"id"`            // Unique document identifier
	MerchantID   int     `json:"merchant_id"`   // ID of the merchant
	DocumentType string  `json:"document_type"` // Type of document
	DocumentURL  string  `json:"document_url"`  // Document storage path/URL
	Status       string  `json:"status"`        // Last known status before deletion
	Note         string  `json:"note"`          // Final administrative notes
	CreatedAt    string  `json:"created_at"`    // Original creation timestamp
	UpdatedAt    string  `json:"updated_at"`    // Last update timestamp
	DeletedAt    *string `json:"deleted_at"`    // Deletion timestamp (nil if not deleted)
}

MerchantDocumentResponseDeleteAt extends MerchantDocumentResponse with deletion information. Used in administrative interfaces showing soft-deleted documents.

type MerchantResponse ¶

type MerchantResponse struct {
	ID        int    `json:"id"`         // Unique merchant identifier
	Name      string `json:"name"`       // Legal name of the merchant
	UserID    int    `json:"user_id"`    // ID of the user who owns/administers this merchant
	ApiKey    string `json:"api_key"`    // Merchant's API key (typically masked in responses)
	Status    string `json:"status"`     // Current status ("active", "suspended", etc.)
	CreatedAt string `json:"created_at"` // Timestamp when merchant was created (RFC3339 format)
	UpdatedAt string `json:"updated_at"` // Timestamp when merchant was last updated
}

MerchantResponse represents the basic merchant information returned in API responses. Contains core merchant data without deletion information.

type MerchantResponseDeleteAt ¶

type MerchantResponseDeleteAt struct {
	ID        int     `json:"id"`         // Unique merchant identifier
	Name      string  `json:"name"`       // Legal name of the merchant
	UserID    int     `json:"user_id"`    // ID of the administrator user
	ApiKey    string  `json:"api_key"`    // Merchant's API key
	Status    string  `json:"status"`     // Status before deletion
	CreatedAt string  `json:"created_at"` // Original creation timestamp
	UpdatedAt string  `json:"updated_at"` // Last update timestamp
	DeletedAt *string `json:"deleted_at"` // Deletion timestamp (nil if not deleted)
}

MerchantResponseDeleteAt extends MerchantResponse with deletion information. Used in administrative interfaces showing soft-deleted merchants.

type MerchantResponseMonthlyAmount ¶

type MerchantResponseMonthlyAmount struct {
	Month       string `json:"month"`        // Month in "YYYY-MM" format
	TotalAmount int    `json:"total_amount"` // Total transaction amount for the month
}

MerchantResponseMonthlyAmount represents monthly transaction totals. Shows aggregated transaction volume by month.

type MerchantResponseMonthlyPaymentMethod ¶

type MerchantResponseMonthlyPaymentMethod struct {
	Month         string `json:"month"`          // Month in "YYYY-MM" format
	PaymentMethod string `json:"payment_method"` // Type of payment method
	TotalAmount   int    `json:"total_amount"`   // Total amount processed by this method
}

MerchantResponseMonthlyPaymentMethod represents monthly transaction totals by payment method. Used for analyzing payment method trends by month.

type MerchantResponseMonthlyTotalAmount ¶

type MerchantResponseMonthlyTotalAmount struct {
	Year        string `json:"year"`         // Year in "YYYY" format
	Month       string `json:"month"`        // Month in "MM" format
	TotalAmount int    `json:"total_amount"` // Total transaction amount
}

MerchantResponseMonthlyTotalAmount represents detailed monthly transaction totals. Includes both year and month for precise period identification.

type MerchantResponsePayload ¶

type MerchantResponsePayload struct {
	CorrelationID string `json:"correlation_id"`        // Unique ID for request tracing
	Valid         bool   `json:"valid"`                 // Validation status of the merchant
	MerchantID    int64  `json:"merchant_id,omitempty"` // ID of the merchant (omitted when empty)
}

MerchantResponsePayload represents the base payload structure for merchant API responses. Used for validation and correlation purposes in merchant operations.

type MerchantResponseYearlyAmount ¶

type MerchantResponseYearlyAmount struct {
	Year        string `json:"year"`         // Year in "YYYY" format
	TotalAmount int    `json:"total_amount"` // Total transaction amount for the year
}

MerchantResponseYearlyAmount represents annual transaction totals. Shows aggregated transaction volume by year.

type MerchantResponseYearlyPaymentMethod ¶

type MerchantResponseYearlyPaymentMethod struct {
	Year          string `json:"year"`           // Year in "YYYY" format
	PaymentMethod string `json:"payment_method"` // Type of payment method
	TotalAmount   int    `json:"total_amount"`   // Total amount processed by this method
}

MerchantResponseYearlyPaymentMethod represents annual transaction totals by payment method. Used for analyzing yearly payment method trends.

type MerchantResponseYearlyTotalAmount ¶

type MerchantResponseYearlyTotalAmount struct {
	Year        string `json:"year"`         // Year in "YYYY" format
	TotalAmount int    `json:"total_amount"` // Total transaction amount
}

MerchantResponseYearlyTotalAmount represents comprehensive annual transaction totals.

type MerchantTransactionResponse ¶

type MerchantTransactionResponse struct {
	ID              int    `json:"id"`               // Unique transaction identifier
	CardNumber      string `json:"card_number"`      // Masked card number used in transaction
	Amount          int32  `json:"amount"`           // Transaction amount (in smallest currency unit)
	PaymentMethod   string `json:"payment_method"`   // Method used ("credit", "debit", etc.)
	MerchantID      int32  `json:"merchant_id"`      // ID of the merchant
	MerchantName    string `json:"merchant_name"`    // Name of merchant at time of transaction
	TransactionTime string `json:"transaction_time"` // Timestamp of transaction (RFC3339 format)
	CreatedAt       string `json:"created_at"`       // Record creation timestamp
	UpdatedAt       string `json:"updated_at"`       // Last update timestamp
}

MerchantTransactionResponse represents a merchant transaction record. Contains details of transactions processed by the merchant.

type PaginationMeta ¶

type PaginationMeta struct {
	CurrentPage  int `json:"current_page"`  // Current page number (1-based index)
	PageSize     int `json:"page_size"`     // Number of items per page
	TotalPages   int `json:"total_pages"`   // Total number of pages available
	TotalRecords int `json:"total_records"` // Total number of items across all pages
}

PaginationMeta contains metadata for paginated responses. Used to provide navigation information in list endpoints.

type RefreshTokenResponse ¶

type RefreshTokenResponse struct {
	UserID    int    `json:"user_id"`    // ID of the user this token belongs to
	Token     string `json:"token"`      // The refresh token value (should be hashed in storage)
	ExpiredAt string `json:"expired_at"` // Expiration timestamp (RFC3339 format)
	CreatedAt string `json:"created_at"` // Timestamp when token was created
	UpdatedAt string `json:"updated_at"` // Timestamp when token was last updated
}

RefreshTokenResponse represents a refresh token record in API responses. Contains the token details along with timestamps for tracking.

type RoleResponse ¶

type RoleResponse struct {
	ID        int    `json:"id"`         // Unique role identifier
	Name      string `json:"name"`       // Name of the role (e.g., "admin", "user")
	CreatedAt string `json:"created_at"` // Timestamp when role was created (RFC3339 format)
	UpdatedAt string `json:"updated_at"` // Timestamp when role was last updated
}

RoleResponse represents basic role information in API responses. Contains core role data without deletion information.

type RoleResponseDeleteAt ¶

type RoleResponseDeleteAt struct {
	ID        int     `json:"id"`         // Unique role identifier
	Name      string  `json:"name"`       // Name of the role
	CreatedAt string  `json:"created_at"` // Original creation timestamp
	UpdatedAt string  `json:"updated_at"` // Last update timestamp
	DeletedAt *string `json:"deleted_at"` // Deletion timestamp (nil if not deleted)
}

RoleResponseDeleteAt extends RoleResponse with deletion information. Used in administrative interfaces showing soft-deleted roles.

type RoleResponsePayload ¶

type RoleResponsePayload struct {
	CorrelationID string   `json:"correlation_id"` // Unique ID for request tracing
	Valid         bool     `json:"valid"`          // Indicates if role validation succeeded
	RoleNames     []string `json:"role_names"`     // List of role names associated with the validation
}

RoleResponsePayload represents the base payload structure for role validation responses. Used to verify role assignments and permissions.

type SaldoMonthBalanceResponse ¶

type SaldoMonthBalanceResponse struct {
	Month        string `json:"month"`         // Month in "YYYY-MM" format
	TotalBalance int    `json:"total_balance"` // Balance amount for the month
}

SaldoMonthBalanceResponse represents monthly balance information. Used for balance trend analysis by month.

type SaldoMonthTotalBalanceResponse ¶

type SaldoMonthTotalBalanceResponse struct {
	Month        string `json:"month"`         // Month in "MM" format
	Year         string `json:"year"`          // Year in "YYYY" format
	TotalBalance int    `json:"total_balance"` // Aggregate balance for the month
}

SaldoMonthTotalBalanceResponse represents monthly balance totals including year. Used for detailed monthly balance reporting.

type SaldoResponse ¶

type SaldoResponse struct {
	ID             int    `json:"id"`              // Unique balance record identifier
	CardNumber     string `json:"card_number"`     // Masked card number (e.g., "4242******4242")
	TotalBalance   int    `json:"total_balance"`   // Current balance amount (in smallest currency unit)
	WithdrawAmount int    `json:"withdraw_amount"` // Last withdrawal amount (in smallest currency unit)
	WithdrawTime   string `json:"withdraw_time"`   // Timestamp of last withdrawal (RFC3339 format)
	CreatedAt      string `json:"created_at"`      // Timestamp when record was created
	UpdatedAt      string `json:"updated_at"`      // Timestamp when record was last updated
}

SaldoResponse represents the basic saldo (balance) information in API responses. Contains core balance data without deletion information.

type SaldoResponseDeleteAt ¶

type SaldoResponseDeleteAt struct {
	ID             int     `json:"id"`              // Unique balance record identifier
	CardNumber     string  `json:"card_number"`     // Masked card number
	TotalBalance   int     `json:"total_balance"`   // Balance amount before deletion
	WithdrawAmount int     `json:"withdraw_amount"` // Last withdrawal amount
	WithdrawTime   string  `json:"withdraw_time"`   // Timestamp of last withdrawal
	CreatedAt      string  `json:"created_at"`      // Original creation timestamp
	UpdatedAt      string  `json:"updated_at"`      // Last update timestamp
	DeletedAt      *string `json:"deleted_at"`      // Deletion timestamp (nil if not deleted)
}

SaldoResponseDeleteAt extends SaldoResponse with deletion information. Used in administrative interfaces showing soft-deleted balance records.

type SaldoYearBalanceResponse ¶

type SaldoYearBalanceResponse struct {
	Year         string `json:"year"`          // Year in "YYYY" format
	TotalBalance int    `json:"total_balance"` // Balance amount for the year
}

SaldoYearBalanceResponse represents annual balance information. Used for long-term balance trend analysis.

type SaldoYearTotalBalanceResponse ¶

type SaldoYearTotalBalanceResponse struct {
	Year         string `json:"year"`          // Year in "YYYY" format
	TotalBalance int    `json:"total_balance"` // Aggregate balance for the year
}

SaldoYearTotalBalanceResponse represents annual balance totals. Used for yearly financial summaries.

type TokenResponse ¶

type TokenResponse struct {
	AccessToken  string `json:"access_token"`  // Short-lived JWT for API access
	RefreshToken string `json:"refresh_token"` // Long-lived token for obtaining new access tokens
}

TokenResponse represents a pair of authentication tokens. Used in login and token refresh operations.

type TopupMonthAmountResponse ¶

type TopupMonthAmountResponse struct {
	Month       string `json:"month"`        // Month of the statistics
	TotalAmount int    `json:"total_amount"` // Total amount processed
}

TopupMonthAmountResponse represents monthly top-up amount statistics

type TopupMonthMethodResponse ¶

type TopupMonthMethodResponse struct {
	Month       string `json:"month"`        // Month of the statistics
	TopupMethod string `json:"topup_method"` // Payment method used
	TotalTopups int    `json:"total_topups"` // Number of top-ups using this method
	TotalAmount int    `json:"total_amount"` // Total amount processed with this method
}

TopupMonthMethodResponse represents monthly top-up statistics by payment method

type TopupResponse ¶

type TopupResponse struct {
	ID          int    `json:"id"`           // Unique identifier for the top-up
	CardNumber  string `json:"card_number"`  // Card number associated with the top-up
	TopupNo     string `json:"topup_no"`     // Unique top-up reference number
	TopupAmount int    `json:"topup_amount"` // Amount of the top-up
	TopupMethod string `json:"topup_method"` // Payment method used for the top-up
	TopupTime   string `json:"topup_time"`   // Time when the top-up was processed
	CreatedAt   string `json:"created_at"`   // Timestamp when record was created
	UpdatedAt   string `json:"updated_at"`   // Timestamp when record was last updated
}

TopupResponse represents a successful top-up transaction response

type TopupResponseDeleteAt ¶

type TopupResponseDeleteAt struct {
	DeletedAt *string `json:"deleted_At"` // Timestamp when record was soft deleted (nil if not deleted)
	// Embedded TopupResponse fields
	ID          int    `json:"id"`
	CardNumber  string `json:"card_number"`
	TopupNo     string `json:"topup_no"`
	TopupAmount int    `json:"topup_amount"`
	TopupMethod string `json:"topup_method"`
	TopupTime   string `json:"topup_time"`
	CreatedAt   string `json:"created_at"`
	UpdatedAt   string `json:"updated_at"`
}

TopupResponseDeleteAt extends TopupResponse with soft delete information

type TopupResponseMonthStatusFailed ¶

type TopupResponseMonthStatusFailed struct {
	Year        string `json:"year"`         // Year of the statistics
	Month       string `json:"month"`        // Month of the statistics
	TotalAmount int    `json:"total_amount"` // Total amount of failed top-ups
	TotalFailed int    `json:"total_failed"` // Count of failed top-ups
}

TopupResponseMonthStatusFailed represents monthly failed top-up statistics

type TopupResponseMonthStatusSuccess ¶

type TopupResponseMonthStatusSuccess struct {
	Year         string `json:"year"`          // Year of the statistics
	Month        string `json:"month"`         // Month of the statistics
	TotalAmount  int    `json:"total_amount"`  // Total amount of successful top-ups
	TotalSuccess int    `json:"total_success"` // Count of successful top-ups
}

TopupResponseMonthStatusSuccess represents monthly successful top-up statistics

type TopupResponseYearStatusFailed ¶

type TopupResponseYearStatusFailed struct {
	Year        string `json:"year"`         // Year of the statistics
	TotalAmount int    `json:"total_amount"` // Total amount of failed top-ups
	TotalFailed int    `json:"total_failed"` // Count of failed top-ups
}

TopupResponseYearStatusFailed represents yearly failed top-up statistics

type TopupResponseYearStatusSuccess ¶

type TopupResponseYearStatusSuccess struct {
	Year         string `json:"year"`          // Year of the statistics
	TotalAmount  int    `json:"total_amount"`  // Total amount of successful top-ups
	TotalSuccess int    `json:"total_success"` // Count of successful top-ups
}

TopupResponseYearStatusSuccess represents yearly successful top-up statistics

type TopupYearlyAmountResponse ¶

type TopupYearlyAmountResponse struct {
	Year        string `json:"year"`         // Year of the statistics
	TotalAmount int    `json:"total_amount"` // Total amount processed
}

TopupYearlyAmountResponse represents yearly top-up amount statistics

type TopupYearlyMethodResponse ¶

type TopupYearlyMethodResponse struct {
	Year        string `json:"year"`         // Year of the statistics
	TopupMethod string `json:"topup_method"` // Payment method used
	TotalTopups int    `json:"total_topups"` // Number of top-ups using this method
	TotalAmount int    `json:"total_amount"` // Total amount processed with this method
}

TopupYearlyMethodResponse represents yearly top-up statistics by payment method

type TransactionMonthAmountResponse ¶

type TransactionMonthAmountResponse struct {
	Month       string `json:"month"`        // Month of the metrics
	TotalAmount int    `json:"total_amount"` // Total amount processed
}

TransactionMonthAmountResponse represents monthly transaction amount metrics

type TransactionMonthMethodResponse ¶

type TransactionMonthMethodResponse struct {
	Month             string `json:"month"`              // Month of the metrics
	PaymentMethod     string `json:"payment_method"`     // Payment method used
	TotalTransactions int    `json:"total_transactions"` // Number of transactions
	TotalAmount       int    `json:"total_amount"`       // Total amount processed
}

TransactionMonthMethodResponse represents monthly transaction metrics by payment method

type TransactionResponse ¶

type TransactionResponse struct {
	ID              int    `json:"id"`               // Unique transaction identifier
	TransactionNo   string `json:"transaction_no"`   // Unique transaction reference number
	CardNumber      string `json:"card_number"`      // Card number used for the transaction
	Amount          int    `json:"amount"`           // Transaction amount
	PaymentMethod   string `json:"payment_method"`   // Payment method used (e.g., "credit", "debit")
	MerchantID      int    `json:"merchant_id"`      // ID of the merchant where transaction occurred
	TransactionTime string `json:"transaction_time"` // Timestamp of the transaction
	CreatedAt       string `json:"created_at"`       // When the record was created
	UpdatedAt       string `json:"updated_at"`       // When the record was last updated
}

TransactionResponse represents a transaction record

type TransactionResponseDeleteAt ¶

type TransactionResponseDeleteAt struct {
	DeletedAt *string `json:"deleted_at"` // Timestamp when record was soft deleted (nil if active)
	// Embedded TransactionResponse fields
	ID              int    `json:"id"`
	TransactionNo   string `json:"transaction_no"`
	CardNumber      string `json:"card_number"`
	Amount          int    `json:"amount"`
	PaymentMethod   string `json:"payment_method"`
	MerchantID      int    `json:"merchant_id"`
	TransactionTime string `json:"transaction_time"`
	CreatedAt       string `json:"created_at"`
	UpdatedAt       string `json:"updated_at"`
}

TransactionResponseDeleteAt extends TransactionResponse with soft delete capability

type TransactionResponseMonthStatusFailed ¶

type TransactionResponseMonthStatusFailed struct {
	Year        string `json:"year"`         // Year of the metrics
	Month       string `json:"month"`        // Month of the metrics
	TotalAmount int    `json:"total_amount"` // Total amount of failed transactions
	TotalFailed int    `json:"total_failed"` // Count of failed transactions
}

TransactionResponseMonthStatusFailed represents monthly failed transaction metrics

type TransactionResponseMonthStatusSuccess ¶

type TransactionResponseMonthStatusSuccess struct {
	Year         string `json:"year"`          // Year of the metrics
	Month        string `json:"month"`         // Month of the metrics
	TotalAmount  int    `json:"total_amount"`  // Total amount of successful transactions
	TotalSuccess int    `json:"total_success"` // Count of successful transactions
}

TransactionResponseMonthStatusSuccess represents monthly successful transaction metrics

type TransactionResponseYearStatusFailed ¶

type TransactionResponseYearStatusFailed struct {
	Year        string `json:"year"`         // Year of the metrics
	TotalAmount int    `json:"total_amount"` // Total amount of failed transactions
	TotalFailed int    `json:"total_failed"` // Count of failed transactions
}

TransactionResponseYearStatusFailed represents yearly failed transaction metrics

type TransactionResponseYearStatusSuccess ¶

type TransactionResponseYearStatusSuccess struct {
	Year         string `json:"year"`          // Year of the metrics
	TotalAmount  int    `json:"total_amount"`  // Total amount of successful transactions
	TotalSuccess int    `json:"total_success"` // Count of successful transactions
}

TransactionResponseYearStatusSuccess represents yearly successful transaction metrics

type TransactionYearMethodResponse ¶

type TransactionYearMethodResponse struct {
	Year              string `json:"year"`               // Year of the metrics
	PaymentMethod     string `json:"payment_method"`     // Payment method used
	TotalTransactions int    `json:"total_transactions"` // Number of transactions
	TotalAmount       int    `json:"total_amount"`       // Total amount processed
}

TransactionYearMethodResponse represents yearly transaction metrics by payment method

type TransactionYearlyAmountResponse ¶

type TransactionYearlyAmountResponse struct {
	Year        string `json:"year"`         // Year of the metrics
	TotalAmount int    `json:"total_amount"` // Total amount processed
}

TransactionYearlyAmountResponse represents yearly transaction amount metrics

type TransferMonthAmountResponse ¶

type TransferMonthAmountResponse struct {
	Month       string `json:"month"`        // Month of the metrics
	TotalAmount int    `json:"total_amount"` // Total amount transferred
}

TransferMonthAmountResponse represents monthly transfer amount metrics

type TransferResponse ¶

type TransferResponse struct {
	ID             int    `json:"id"`              // Unique transfer identifier
	TransferNo     string `json:"transfer_no"`     // Unique transfer reference number
	TransferFrom   string `json:"transfer_from"`   // Source account number
	TransferTo     string `json:"transfer_to"`     // Destination account number
	TransferAmount int    `json:"transfer_amount"` // Amount transferred
	TransferTime   string `json:"transfer_time"`   // Timestamp when transfer was executed
	CreatedAt      string `json:"created_at"`      // When the record was created
	UpdatedAt      string `json:"updated_at"`      // When the record was last updated
}

TransferResponse represents a fund transfer between accounts

type TransferResponseDeleteAt ¶

type TransferResponseDeleteAt struct {
	ID             int     `json:"id"`
	TransferNo     string  `json:"transfer_no"`
	TransferFrom   string  `json:"transfer_from"`
	TransferTo     string  `json:"transfer_to"`
	TransferAmount int     `json:"transfer_amount"`
	TransferTime   string  `json:"transfer_time"`
	CreatedAt      string  `json:"created_at"`
	UpdatedAt      string  `json:"updated_at"`
	DeletedAt      *string `json:"deleted_at"` // Timestamp when record was soft deleted (nil if active)

}

TransferResponseDeleteAt extends TransferResponse with soft delete capability

type TransferResponseMonthStatusFailed ¶

type TransferResponseMonthStatusFailed struct {
	Year        string `json:"year"`         // Year of the metrics
	Month       string `json:"month"`        // Month of the metrics
	TotalAmount int    `json:"total_amount"` // Total amount of failed transfers
	TotalFailed int    `json:"total_failed"` // Count of failed transfers
}

TransferResponseMonthStatusFailed represents monthly failed transfer metrics

type TransferResponseMonthStatusSuccess ¶

type TransferResponseMonthStatusSuccess struct {
	Year         string `json:"year"`          // Year of the metrics
	Month        string `json:"month"`         // Month of the metrics
	TotalAmount  int    `json:"total_amount"`  // Total amount successfully transferred
	TotalSuccess int    `json:"total_success"` // Count of successful transfers
}

TransferResponseMonthStatusSuccess represents monthly successful transfer metrics

type TransferResponseYearStatusFailed ¶

type TransferResponseYearStatusFailed struct {
	Year        string `json:"year"`         // Year of the metrics
	TotalAmount int    `json:"total_amount"` // Total amount of failed transfers
	TotalFailed int    `json:"total_failed"` // Count of failed transfers
}

TransferResponseYearStatusFailed represents yearly failed transfer metrics

type TransferResponseYearStatusSuccess ¶

type TransferResponseYearStatusSuccess struct {
	Year         string `json:"year"`          // Year of the metrics
	TotalAmount  int    `json:"total_amount"`  // Total amount successfully transferred
	TotalSuccess int    `json:"total_success"` // Count of successful transfers
}

TransferResponseYearStatusSuccess represents yearly successful transfer metrics

type TransferYearAmountResponse ¶

type TransferYearAmountResponse struct {
	Year        string `json:"year"`         // Year of the metrics
	TotalAmount int    `json:"total_amount"` // Total amount transferred
}

TransferYearAmountResponse represents yearly transfer amount metrics

type UserResponse ¶

type UserResponse struct {
	ID         int    `json:"id"`          // Unique user identifier
	FirstName  string `json:"firstname"`   // User's first name
	LastName   string `json:"lastname"`    // User's last name
	Email      string `json:"email"`       // User's email address (used for authentication)
	IsVerified bool   `json:"is_verified"` // Whether the user's email has been verified
	CreatedAt  string `json:"created_at"`  // Timestamp when the user account was created
	UpdatedAt  string `json:"updated_at"`  // Timestamp when the user account was last updated
}

UserResponse represents a user account in the system

type UserResponseDeleteAt ¶

type UserResponseDeleteAt struct {
	DeletedAt *string `json:"deleted_at"` // Timestamp when user was soft deleted (nil if active)
	// Embedded UserResponse fields
	ID         int    `json:"id"`
	FirstName  string `json:"firstname"`
	LastName   string `json:"lastname"`
	Email      string `json:"email"`
	IsVerified bool   `json:"is_verified"`
	CreatedAt  string `json:"created_at"`
	UpdatedAt  string `json:"updated_at"`
}

UserResponseDeleteAt extends UserResponse with soft delete capability

type WithdrawMonthlyAmountResponse ¶

type WithdrawMonthlyAmountResponse struct {
	Month       string `json:"month"`        // Month of the metrics (MM format)
	TotalAmount int    `json:"total_amount"` // Total amount withdrawn
}

WithdrawMonthlyAmountResponse represents monthly withdrawal amount totals

type WithdrawResponse ¶

type WithdrawResponse struct {
	ID             int    `json:"id"`              // Unique withdrawal transaction identifier
	WithdrawNo     string `json:"withdraw_no"`     // Unique withdrawal reference number
	CardNumber     string `json:"card_number"`     // Card number used for the withdrawal
	WithdrawAmount int    `json:"withdraw_amount"` // Amount withdrawn (in smallest currency unit)
	WithdrawTime   string `json:"withdraw_time"`   // Timestamp when withdrawal was processed
	CreatedAt      string `json:"created_at"`      // When the withdrawal record was created
	UpdatedAt      string `json:"updated_at"`      // When the withdrawal record was last updated
}

WithdrawResponse represents a withdrawal transaction record

type WithdrawResponseDeleteAt ¶

type WithdrawResponseDeleteAt struct {
	DeletedAt *string `json:"deleted_at"` // Timestamp when record was soft deleted (nil if active)
	// Embedded WithdrawResponse fields
	ID             int    `json:"id"`
	WithdrawNo     string `json:"withdraw_no"`
	CardNumber     string `json:"card_number"`
	WithdrawAmount int    `json:"withdraw_amount"`
	WithdrawTime   string `json:"withdraw_time"`
	CreatedAt      string `json:"created_at"`
	UpdatedAt      string `json:"updated_at"`
}

WithdrawResponseDeleteAt extends WithdrawResponse with soft-delete capability

type WithdrawResponseMonthStatusFailed ¶

type WithdrawResponseMonthStatusFailed struct {
	Year        string `json:"year"`         // Year of the metrics (YYYY format)
	Month       string `json:"month"`        // Month of the metrics (MM format)
	TotalAmount int    `json:"total_amount"` // Total amount of failed withdrawals
	TotalFailed int    `json:"total_failed"` // Count of failed withdrawals
}

WithdrawResponseMonthStatusFailed represents monthly failed withdrawal metrics

type WithdrawResponseMonthStatusSuccess ¶

type WithdrawResponseMonthStatusSuccess struct {
	Year         string `json:"year"`          // Year of the metrics (YYYY format)
	Month        string `json:"month"`         // Month of the metrics (MM format)
	TotalAmount  int    `json:"total_amount"`  // Total amount successfully withdrawn
	TotalSuccess int    `json:"total_success"` // Count of successful withdrawals
}

WithdrawResponseMonthStatusSuccess represents monthly successful withdrawal metrics

type WithdrawResponseYearStatusFailed ¶

type WithdrawResponseYearStatusFailed struct {
	Year        string `json:"year"`         // Year of the metrics (YYYY format)
	TotalAmount int    `json:"total_amount"` // Total amount of failed withdrawals
	TotalFailed int    `json:"total_failed"` // Count of failed withdrawals
}

WithdrawResponseYearStatusFailed represents yearly failed withdrawal metrics

type WithdrawResponseYearStatusSuccess ¶

type WithdrawResponseYearStatusSuccess struct {
	Year         string `json:"year"`          // Year of the metrics (YYYY format)
	TotalAmount  int    `json:"total_amount"`  // Total amount successfully withdrawn
	TotalSuccess int    `json:"total_success"` // Count of successful withdrawals
}

WithdrawResponseYearStatusSuccess represents yearly successful withdrawal metrics

type WithdrawYearlyAmountResponse ¶

type WithdrawYearlyAmountResponse struct {
	Year        string `json:"year"`         // Year of the metrics (YYYY format)
	TotalAmount int    `json:"total_amount"` // Total amount withdrawn
}

WithdrawYearlyAmountResponse represents yearly withdrawal amount totals

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL