Documentation
¶
Index ¶
- type APIResponsePagination
- type ApiResponse
- type ApiResponseCard
- type ApiResponseCardAll
- type ApiResponseCardDelete
- type ApiResponseCardDeleteAt
- type ApiResponseDashboardCard
- type ApiResponseDashboardCardNumber
- type ApiResponseForgotPassword
- type ApiResponseGetMe
- type ApiResponseLogin
- type ApiResponseMerchant
- type ApiResponseMerchantAll
- type ApiResponseMerchantDelete
- type ApiResponseMerchantDeleteAt
- type ApiResponseMerchantDocument
- type ApiResponseMerchantDocumentAll
- type ApiResponseMerchantDocumentDelete
- type ApiResponseMerchantDocumentDeleteAt
- type ApiResponseMerchantMonthlyAmount
- type ApiResponseMerchantMonthlyPaymentMethod
- type ApiResponseMerchantMonthlyTotalAmount
- type ApiResponseMerchantYearlyAmount
- type ApiResponseMerchantYearlyPaymentMethod
- type ApiResponseMerchantYearlyTotalAmount
- type ApiResponseMonthSaldoBalances
- type ApiResponseMonthTotalSaldo
- type ApiResponseMonthlyAmount
- type ApiResponseMonthlyBalance
- type ApiResponsePaginationCard
- type ApiResponsePaginationCardDeleteAt
- type ApiResponsePaginationMerchant
- type ApiResponsePaginationMerchantDeleteAt
- type ApiResponsePaginationMerchantDocument
- type ApiResponsePaginationMerchantDocumentDeleteAt
- type ApiResponsePaginationMerchantTransaction
- type ApiResponsePaginationRole
- type ApiResponsePaginationRoleDeleteAt
- type ApiResponsePaginationSaldo
- type ApiResponsePaginationSaldoDeleteAt
- type ApiResponsePaginationTopup
- type ApiResponsePaginationTopupDeleteAt
- type ApiResponsePaginationTransaction
- type ApiResponsePaginationTransactionDeleteAt
- type ApiResponsePaginationTransfer
- type ApiResponsePaginationTransferDeleteAt
- type ApiResponsePaginationUser
- type ApiResponsePaginationUserDeleteAt
- type ApiResponsePaginationWithdraw
- type ApiResponsePaginationWithdrawDeleteAt
- type ApiResponseRefreshToken
- type ApiResponseRegister
- type ApiResponseResetPassword
- type ApiResponseRole
- type ApiResponseRoleAll
- type ApiResponseRoleDelete
- type ApiResponseRoleDeleteAt
- type ApiResponseSaldo
- type ApiResponseSaldoAll
- type ApiResponseSaldoDelete
- type ApiResponseSaldoDeleteAt
- type ApiResponseTopup
- type ApiResponseTopupAll
- type ApiResponseTopupDelete
- type ApiResponseTopupDeleteAt
- type ApiResponseTopupMonthAmount
- type ApiResponseTopupMonthMethod
- type ApiResponseTopupMonthStatusFailed
- type ApiResponseTopupMonthStatusSuccess
- type ApiResponseTopupYearAmount
- type ApiResponseTopupYearMethod
- type ApiResponseTopupYearStatusFailed
- type ApiResponseTopupYearStatusSuccess
- type ApiResponseTransaction
- type ApiResponseTransactionAll
- type ApiResponseTransactionDelete
- type ApiResponseTransactionDeleteAt
- type ApiResponseTransactionMonthAmount
- type ApiResponseTransactionMonthMethod
- type ApiResponseTransactionMonthStatusFailed
- type ApiResponseTransactionMonthStatusSuccess
- type ApiResponseTransactionYearAmount
- type ApiResponseTransactionYearMethod
- type ApiResponseTransactionYearStatusFailed
- type ApiResponseTransactionYearStatusSuccess
- type ApiResponseTransactions
- type ApiResponseTransfer
- type ApiResponseTransferAll
- type ApiResponseTransferDelete
- type ApiResponseTransferDeleteAt
- type ApiResponseTransferMonthAmount
- type ApiResponseTransferMonthStatusFailed
- type ApiResponseTransferMonthStatusSuccess
- type ApiResponseTransferYearAmount
- type ApiResponseTransferYearStatusFailed
- type ApiResponseTransferYearStatusSuccess
- type ApiResponseTransfers
- type ApiResponseUser
- type ApiResponseUserAll
- type ApiResponseUserDelete
- type ApiResponseUserDeleteAt
- type ApiResponseVerifyCode
- type ApiResponseWithdraw
- type ApiResponseWithdrawAll
- type ApiResponseWithdrawDelete
- type ApiResponseWithdrawDeleteAt
- type ApiResponseWithdrawMonthAmount
- type ApiResponseWithdrawMonthStatusFailed
- type ApiResponseWithdrawMonthStatusSuccess
- type ApiResponseWithdrawYearAmount
- type ApiResponseWithdrawYearStatusFailed
- type ApiResponseWithdrawYearStatusSuccess
- type ApiResponseYearSaldoBalances
- type ApiResponseYearTotalSaldo
- type ApiResponseYearlyAmount
- type ApiResponseYearlyBalance
- type ApiResponsesMerchant
- type ApiResponsesMerchantDocument
- type ApiResponsesRole
- type ApiResponsesSaldo
- type ApiResponsesTopup
- type ApiResponsesUser
- type ApiResponsesWithdraw
- type CardResponse
- type CardResponseDeleteAt
- type CardResponseMonthAmount
- type CardResponseMonthBalance
- type CardResponseYearAmount
- type CardResponseYearlyBalance
- type DashboardCard
- type DashboardCardCardNumber
- type ErrorResponse
- type MerchantDocumentResponse
- type MerchantDocumentResponseDeleteAt
- type MerchantResponse
- type MerchantResponseDeleteAt
- type MerchantResponseMonthlyAmount
- type MerchantResponseMonthlyPaymentMethod
- type MerchantResponseMonthlyTotalAmount
- type MerchantResponsePayload
- type MerchantResponseYearlyAmount
- type MerchantResponseYearlyPaymentMethod
- type MerchantResponseYearlyTotalAmount
- type MerchantTransactionResponse
- type PaginationMeta
- type RefreshTokenResponse
- type RoleResponse
- type RoleResponseDeleteAt
- type RoleResponsePayload
- type SaldoMonthBalanceResponse
- type SaldoMonthTotalBalanceResponse
- type SaldoResponse
- type SaldoResponseDeleteAt
- type SaldoYearBalanceResponse
- type SaldoYearTotalBalanceResponse
- type TokenResponse
- type TopupMonthAmountResponse
- type TopupMonthMethodResponse
- type TopupResponse
- type TopupResponseDeleteAt
- type TopupResponseMonthStatusFailed
- type TopupResponseMonthStatusSuccess
- type TopupResponseYearStatusFailed
- type TopupResponseYearStatusSuccess
- type TopupYearlyAmountResponse
- type TopupYearlyMethodResponse
- type TransactionMonthAmountResponse
- type TransactionMonthMethodResponse
- type TransactionResponse
- type TransactionResponseDeleteAt
- type TransactionResponseMonthStatusFailed
- type TransactionResponseMonthStatusSuccess
- type TransactionResponseYearStatusFailed
- type TransactionResponseYearStatusSuccess
- type TransactionYearMethodResponse
- type TransactionYearlyAmountResponse
- type TransferMonthAmountResponse
- type TransferResponse
- type TransferResponseDeleteAt
- type TransferResponseMonthStatusFailed
- type TransferResponseMonthStatusSuccess
- type TransferResponseYearStatusFailed
- type TransferResponseYearStatusSuccess
- type TransferYearAmountResponse
- type UserResponse
- type UserResponseDeleteAt
- type WithdrawMonthlyAmountResponse
- type WithdrawResponse
- type WithdrawResponseDeleteAt
- type WithdrawResponseMonthStatusFailed
- type WithdrawResponseMonthStatusSuccess
- type WithdrawResponseYearStatusFailed
- type WithdrawResponseYearStatusSuccess
- type WithdrawYearlyAmountResponse
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