Documentation
¶
Index ¶
- type CardEmailRecord
- type CardMonthAmount
- type CardMonthBalance
- type CardRecord
- type CardYearAmount
- type CardYearlyBalance
- type MerchantDocumentRecord
- type MerchantMonthlyAmount
- type MerchantMonthlyPaymentMethod
- type MerchantMonthlyTotalAmount
- type MerchantRecord
- type MerchantTransactionsRecord
- type MerchantYearlyAmount
- type MerchantYearlyPaymentMethod
- type MerchantYearlyTotalAmount
- type RefreshTokenRecord
- type ResetTokenRecord
- type RoleRecord
- type SaldoMonthSaldoBalance
- type SaldoMonthTotalBalance
- type SaldoRecord
- type SaldoYearSaldoBalance
- type SaldoYearTotalBalance
- type TopupMonthAmount
- type TopupMonthMethod
- type TopupRecord
- type TopupRecordMonthStatusFailed
- type TopupRecordMonthStatusSuccess
- type TopupRecordYearStatusFailed
- type TopupRecordYearStatusSuccess
- type TopupYearlyAmount
- type TopupYearlyMethod
- type TransactionMonthAmount
- type TransactionMonthMethod
- type TransactionRecord
- type TransactionRecordMonthStatusFailed
- type TransactionRecordMonthStatusSuccess
- type TransactionRecordYearStatusFailed
- type TransactionRecordYearStatusSuccess
- type TransactionYearMethod
- type TransactionYearlyAmount
- type TransferMonthAmount
- type TransferRecord
- type TransferRecordMonthStatusFailed
- type TransferRecordMonthStatusSuccess
- type TransferRecordYearStatusFailed
- type TransferRecordYearStatusSuccess
- type TransferYearAmount
- type UserRecord
- type UserRoleRecord
- type WithdrawMonthlyAmount
- type WithdrawRecord
- type WithdrawRecordMonthStatusFailed
- type WithdrawRecordMonthStatusSuccess
- type WithdrawRecordYearStatusFailed
- type WithdrawRecordYearStatusSuccess
- type WithdrawYearlyAmount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CardEmailRecord ¶
type CardEmailRecord struct {
ID int `json:"id"` // Unique identifier for the record
Email string `json:"email"` // Email address associated with the card
UserID int `json:"user_id"` // ID of the user who owns this card
CardNumber string `json:"card_number"` // Card number (typically masked)
CardType string `json:"card_type"` // Type of card (e.g., Visa, MasterCard)
ExpireDate string `json:"expire_date"` // Card expiration date in MM/YY format
CVV string `json:"cvv"` // Card verification value (typically masked)
CardProvider string `json:"card_provider"` // Provider or issuing bank of the card
CreatedAt string `json:"created_at"` // Timestamp when the record was created
UpdatedAt string `json:"updated_at"` // Timestamp when the record was last updated
}
CardEmailRecord represents a card record with associated email information. This is typically used for transactions or notifications where email is required.
type CardMonthAmount ¶
type CardMonthAmount struct {
Month string `json:"month"` // Month in YYYY-MM format
TotalAmount int64 `json:"total_amount"` // Total transaction amount for the month in smallest currency unit
}
CardMonthAmount represents the total transaction amount for a card for a specific month. Used for monthly spending analysis and reporting.
type CardMonthBalance ¶
type CardMonthBalance struct {
Month string `json:"month"` // Month in YYYY-MM format
TotalBalance int64 `json:"total_balance"` // Total balance for the month in smallest currency unit (e.g., cents)
}
CardMonthBalance represents the total balance for a card for a specific month. Used for monthly balance tracking and reporting.
type CardRecord ¶
type CardRecord struct {
ID int `json:"id"` // Unique identifier for the card record
UserID int `json:"user_id"` // ID of the user who owns this card
CardNumber string `json:"card_number"` // Card number (typically masked in outputs)
CardType string `json:"card_type"` // Type of card (e.g., Visa, MasterCard)
ExpireDate string `json:"expire_date"` // Card expiration date in MM/YY format
CVV string `json:"cvv"` // Card verification value (typically masked)
CardProvider string `json:"card_provider"` // Provider or issuing bank of the card
CreatedAt string `json:"created_at"` // Timestamp when the record was created
UpdatedAt string `json:"updated_at"` // Timestamp when the record was last updated
DeletedAt *string `json:"deleted_at"` // Timestamp when the record was soft-deleted (nil if not deleted)
}
CardRecord represents a credit/debit card record in the system. It contains all the essential card information along with timestamps for tracking.
type CardYearAmount ¶
type CardYearAmount struct {
Year string `json:"year"` // Year in YYYY format
TotalAmount int64 `json:"total_amount"` // Total transaction amount for the year in smallest currency unit
}
CardYearAmount represents the total transaction amount for a card for a specific year. Used for annual spending analysis and reporting.
type CardYearlyBalance ¶
type CardYearlyBalance struct {
Year string `json:"year"` // Year in YYYY format
TotalBalance int64 `json:"total_balance"` // Total balance for the year in smallest currency unit (e.g., cents)
}
CardYearlyBalance represents the total balance for a card for a specific year. Used for annual balance tracking and reporting.
type MerchantDocumentRecord ¶
type MerchantDocumentRecord struct {
ID int `json:"id"` // Unique identifier for the document record
MerchantID int `json:"merchant_id"` // ID of the merchant this document belongs to
DocumentType string `json:"document_type"` // Type of document (e.g., "license", "contract", "identity")
DocumentURL string `json:"document_url"` // URL or path where the document is stored
Status string `json:"status"` // Current status of the document (e.g., "pending", "approved", "rejected")
Note string `json:"note"` // Additional notes or comments about the document
CreatedAt string `json:"created_at"` // Timestamp when the record was created
UpdatedAt string `json:"updated_at"` // Timestamp when the record was last updated
DeletedAt *string `json:"deleted_at"` // Timestamp when the record was soft-deleted (nil if not deleted)
}
MerchantDocumentRecord represents a document associated with a merchant. This is typically used for verification, compliance, or contractual documents.
type MerchantMonthlyAmount ¶
type MerchantMonthlyAmount struct {
Month string `json:"month"` // Month in YYYY-MM format
TotalAmount int `json:"total_amount"` // Total transaction amount for the month in smallest currency unit
}
MerchantMonthlyAmount represents the total transaction amount for a merchant in a specific month.
type MerchantMonthlyPaymentMethod ¶
type MerchantMonthlyPaymentMethod struct {
Month string `json:"month"` // Month in YYYY-MM format
PaymentMethod string `json:"payment_method"` // Type of payment method (e.g., "credit", "debit")
TotalAmount int `json:"total_amount"` // Total amount processed for this payment method in the month
}
MerchantMonthlyPaymentMethod represents monthly transaction totals by payment method for a merchant. Used for financial reporting and analytics.
type MerchantMonthlyTotalAmount ¶
type MerchantMonthlyTotalAmount 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 for the month in smallest currency unit
}
MerchantMonthlyTotalAmount represents the total transaction amount for a merchant in a specific month of a year. This is similar to MerchantMonthlyAmount but includes the year explicitly.
type MerchantRecord ¶
type MerchantRecord struct {
ID int `json:"id"` // Unique identifier for the merchant
Name string `json:"name"` // Legal name of the merchant
ApiKey string `json:"api_key"` // API key used for merchant authentication (typically masked)
UserID int `json:"user_id"` // ID of the user who owns/administers this merchant account
Status string `json:"status"` // Current status of the merchant (e.g., "active", "suspended")
CreatedAt string `json:"created_at"` // Timestamp when the merchant was created
UpdatedAt string `json:"updated_at"` // Timestamp when the merchant was last updated
DeletedAt *string `json:"deleted_at"` // Timestamp when the merchant was soft-deleted (nil if not deleted)
}
MerchantRecord represents a merchant entity in the system. Merchants are businesses or service providers that can process transactions.
type MerchantTransactionsRecord ¶
type MerchantTransactionsRecord struct {
TransactionID int32 `json:"transaction_id"` // Unique identifier for the transaction
CardNumber string `json:"card_number"` // Masked card number used for the transaction
Amount int32 `json:"amount"` // Transaction amount in smallest currency unit (e.g., cents)
PaymentMethod string `json:"payment_method"` // Payment method used (e.g., "credit", "debit")
MerchantID int32 `json:"merchant_id"` // ID of the merchant who processed the transaction
MerchantName string `json:"merchant_name"` // Name of the merchant at time of transaction
TransactionTime time.Time `json:"transaction_time"` // Timestamp when the transaction occurred
CreatedAt string `json:"created_at"` // Timestamp when the record was created
UpdatedAt string `json:"updated_at"` // Timestamp when the record was last updated
DeletedAt *string `json:"deleted_at"` // Timestamp when the record was soft-deleted (nil if not deleted)
}
MerchantTransactionsRecord represents a transaction processed by a merchant.
type MerchantYearlyAmount ¶
type MerchantYearlyAmount struct {
Year string `json:"year"` // Year in YYYY format
TotalAmount int `json:"total_amount"` // Total transaction amount for the year in smallest currency unit
}
MerchantYearlyAmount represents the total transaction amount for a merchant in a specific year.
type MerchantYearlyPaymentMethod ¶
type MerchantYearlyPaymentMethod struct {
Year string `json:"year"` // Year in YYYY format
PaymentMethod string `json:"payment_method"` // Type of payment method (e.g., "credit", "debit")
TotalAmount int `json:"total_amount"` // Total amount processed for this payment method in the year
}
MerchantYearlyPaymentMethod represents yearly transaction totals by payment method for a merchant. Used for financial reporting and analytics.
type MerchantYearlyTotalAmount ¶
type MerchantYearlyTotalAmount struct {
Year string `json:"year"` // Year in YYYY format
TotalAmount int `json:"total_amount"` // Total transaction amount for the year in smallest currency unit
}
MerchantYearlyTotalAmount represents the total transaction amount for a merchant in a specific year. This is an alternative to MerchantYearlyAmount with potentially different aggregation.
type RefreshTokenRecord ¶
type RefreshTokenRecord struct {
ID int `json:"id"` // Unique identifier for the refresh token record
UserID int `json:"user_id"` // ID of the user this token belongs to
Token string `json:"token"` // The actual refresh token value (typically hashed in storage)
ExpiredAt string `json:"expired_at"` // Timestamp when this token expires and becomes invalid
CreatedAt string `json:"created_at"` // Timestamp when the token was created
UpdatedAt string `json:"updated_at"` // Timestamp when the token was last updated
}
RefreshTokenRecord represents a refresh token used for maintaining user sessions. Refresh tokens allow users to obtain new access tokens without re-authenticating.
type ResetTokenRecord ¶
type ResetTokenRecord struct {
ID int64 `json:"id"` // Unique identifier for the reset token record
Token string `json:"token"` // The actual reset token value (typically hashed in storage)
UserID int64 `json:"user_id"` // ID of the user this token belongs to
ExpiredAt string `json:"expired_at"` // Timestamp when this token expires and becomes invalid
}
ResetTokenRecord represents a password reset token used for user authentication recovery. These tokens are typically short-lived and sent to users via email for password reset flows.
type RoleRecord ¶
type RoleRecord struct {
ID int `json:"id"` // Unique identifier for the role
Name string `json:"name"` // Name of the role (e.g., "admin", "user", "manager")
CreatedAt string `json:"created_at"` // Timestamp when the role was created
UpdatedAt string `json:"updated_at"` // Timestamp when the role was last updated
DeletedAt *string `json:"deleted_at"` // Timestamp when the role was soft-deleted (nil if active)
}
RoleRecord represents a role in the system that can be assigned to users. Roles are used to define permissions and access levels for different user types.
type SaldoMonthSaldoBalance ¶
type SaldoMonthSaldoBalance struct {
Month string `json:"month"` // Month in YYYY-MM format
TotalBalance int `json:"total_balance"` // Aggregate balance for the month in smallest currency unit
}
SaldoMonthSaldoBalance represents monthly balance information. Similar to SaldoMonthTotalBalance but with different aggregation context.
type SaldoMonthTotalBalance ¶
type SaldoMonthTotalBalance struct {
Year string `json:"year"` // Year in YYYY format
Month string `json:"month"` // Month in MM format
TotalBalance int `json:"total_balance"` // Aggregate balance for the month in smallest currency unit
}
SaldoMonthTotalBalance represents the total balance aggregated by month and year. Used for monthly balance reporting and analytics.
type SaldoRecord ¶
type SaldoRecord struct {
ID int `json:"id"` // Unique identifier for the record
CardNumber string `json:"card_number"` // Card number associated with the balance (typically masked)
TotalBalance int `json:"total_balance"` // Current available balance in smallest currency unit (e.g., cents)
WithdrawAmount int `json:"withdraw_amount"` // Amount withdrawn in smallest currency unit (e.g., cents)
WithdrawTime string `json:"withdraw_time"` // Timestamp of when the withdrawal occurred
CreatedAt string `json:"created_at"` // Timestamp when the record was created
UpdatedAt string `json:"updated_at"` // Timestamp when the record was last updated
DeletedAt *string `json:"deleted_at"` // Timestamp when record was soft-deleted (nil if active)
}
SaldoRecord represents a balance/withdrawal record for a card. Tracks the current balance and withdrawal transactions for a specific card.
type SaldoYearSaldoBalance ¶
type SaldoYearSaldoBalance struct {
Year string `json:"year"` // Year in YYYY format
TotalBalance int `json:"total_balance"` // Aggregate balance for the year in smallest currency unit
}
SaldoYearSaldoBalance represents yearly balance information. Similar to SaldoYearTotalBalance but with different aggregation context.
type SaldoYearTotalBalance ¶
type SaldoYearTotalBalance struct {
Year string `json:"year"` // Year in YYYY format
TotalBalance int `json:"total_balance"` // Aggregate balance for the year in smallest currency unit
}
SaldoYearTotalBalance represents the total balance aggregated by year. Used for annual balance reporting and analytics.
type TopupMonthAmount ¶
type TopupMonthAmount struct {
Month string `json:"month"` // Month in YYYY-MM format
TotalAmount int `json:"total_amount"` // Total top-up amount for the month in smallest currency unit
}
TopupMonthAmount represents total top-up amounts by month. Used for monthly financial reporting and analysis.
type TopupMonthMethod ¶
type TopupMonthMethod struct {
Month string `json:"month"` // Month in YYYY-MM format
TopupMethod string `json:"topup_method"` // Payment method used (e.g., "bank_transfer")
TotalTopups int `json:"total_topups"` // Number of top-ups using this method in the month
TotalAmount int `json:"total_amount"` // Total amount processed via this method in smallest currency unit
}
TopupMonthMethod represents top-ups aggregated by month and payment method. Used for analyzing payment method trends and preferences.
type TopupRecord ¶
type TopupRecord struct {
ID int `json:"id"` // Unique identifier for the top-up record
CardNumber string `json:"card_number"` // Card number being topped up (typically masked)
TopupNo string `json:"topup_no"` // Unique reference number for the top-up transaction
TopupAmount int `json:"topup_amount"` // Amount added in smallest currency unit (e.g., cents)
TopupMethod string `json:"topup_method"` // Payment method used (e.g., "bank_transfer", "credit_card")
TopupTime string `json:"topup_time"` // Timestamp 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
DeletedAt *string `json:"deleted_at"` // Timestamp when record was soft-deleted (nil if active)
}
TopupRecord represents a single top-up transaction in the system. Records the details of funds being added to a card/account.
type TopupRecordMonthStatusFailed ¶
type TopupRecordMonthStatusFailed struct {
Year string `json:"year"` // Year in YYYY format
Month string `json:"month"` // Month in MM format
TotalFailed int `json:"total_failed"` // Count of failed top-ups in the month
TotalAmount int `json:"total_amount"` // Total amount of failed top-up attempts in smallest currency unit
}
TopupRecordMonthStatusFailed represents aggregated failed top-ups by month. Used for monthly failure rate reporting and analytics.
type TopupRecordMonthStatusSuccess ¶
type TopupRecordMonthStatusSuccess struct {
Year string `json:"year"` // Year in YYYY format
Month string `json:"month"` // Month in MM format
TotalSuccess int `json:"total_success"` // Count of successful top-ups in the month
TotalAmount int `json:"total_amount"` // Total amount of successful top-ups in smallest currency unit
}
TopupRecordMonthStatusSuccess represents aggregated successful top-ups by month. Used for monthly success rate reporting and analytics.
type TopupRecordYearStatusFailed ¶
type TopupRecordYearStatusFailed struct {
Year string `json:"year"` // Year in YYYY format
TotalFailed int `json:"total_failed"` // Count of failed top-ups in the year
TotalAmount int `json:"total_amount"` // Total amount of failed top-up attempts in smallest currency unit
}
TopupRecordYearStatusFailed represents aggregated failed top-ups by year. Used for annual failure rate reporting and analytics.
type TopupRecordYearStatusSuccess ¶
type TopupRecordYearStatusSuccess struct {
Year string `json:"year"` // Year in YYYY format
TotalSuccess int `json:"total_success"` // Count of successful top-ups in the year
TotalAmount int `json:"total_amount"` // Total amount of successful top-ups in smallest currency unit
}
TopupRecordYearStatusSuccess represents aggregated successful top-ups by year. Used for annual success rate reporting and analytics.
type TopupYearlyAmount ¶
type TopupYearlyAmount struct {
Year string `json:"year"` // Year in YYYY format
TotalAmount int `json:"total_amount"` // Total top-up amount for the year in smallest currency unit
}
TopupYearlyAmount represents total top-up amounts by year. Used for annual financial reporting and analysis.
type TopupYearlyMethod ¶
type TopupYearlyMethod struct {
Year string `json:"year"` // Year in YYYY format
TopupMethod string `json:"topup_method"` // Payment method used (e.g., "credit_card")
TotalTopups int `json:"total_topups"` // Number of top-ups using this method in the year
TotalAmount int `json:"total_amount"` // Total amount processed via this method in smallest currency unit
}
TopupYearlyMethod represents top-ups aggregated by year and payment method. Used for annual analysis of payment method trends.
type TransactionMonthAmount ¶
type TransactionMonthAmount struct {
Month string `json:"month"` // Month in YYYY-MM format
TotalAmount int `json:"total_amount"` // Total transaction amount
}
TransactionMonthAmount represents total transaction amounts by month. Used for monthly financial reporting.
type TransactionMonthMethod ¶
type TransactionMonthMethod struct {
Month string `json:"month"` // Month in YYYY-MM format
PaymentMethod string `json:"payment_method"` // Payment method used
TotalTransactions int `json:"total_transactions"` // Number of transactions
TotalAmount int `json:"total_amount"` // Total amount processed
}
TransactionMonthMethod represents transactions aggregated by month and payment method. Used for analyzing payment method trends by month.
type TransactionRecord ¶
type TransactionRecord struct {
ID int `json:"id"` // Unique identifier for the transaction
CardNumber string `json:"card_number"` // Card number used (typically masked)
TransactionNo string `json:"transaction_no"` // Unique transaction reference number
Amount int `json:"amount"` // Transaction amount in smallest currency unit (e.g., cents)
PaymentMethod string `json:"payment_method"` // Method used (e.g., "credit", "debit", "wallet")
MerchantID int `json:"merchant_id"` // ID of the merchant receiving payment
TransactionTime string `json:"transaction_time"` // Timestamp when transaction occurred
CreatedAt string `json:"created_at"` // Timestamp when record was created
UpdatedAt string `json:"updated_at"` // Timestamp when record was last updated
DeletedAt *string `json:"deleted_at"` // Timestamp when record was soft-deleted (nil if active)
}
TransactionRecord represents a financial transaction in the system. Records details of payments made from a card to a merchant.
type TransactionRecordMonthStatusFailed ¶
type TransactionRecordMonthStatusFailed struct {
Year string `json:"year"` // Year in YYYY format
Month string `json:"month"` // Month in MM format
TotalFailed int `json:"total_failed"` // Count of failed transactions
TotalAmount int `json:"total_amount"` // Total amount of failed attempts
}
TransactionRecordMonthStatusFailed represents failed transactions aggregated by month. Used for monthly failure analysis and reporting.
type TransactionRecordMonthStatusSuccess ¶
type TransactionRecordMonthStatusSuccess struct {
Year string `json:"year"` // Year in YYYY format
Month string `json:"month"` // Month in MM format
TotalSuccess int `json:"total_success"` // Count of successful transactions
TotalAmount int `json:"total_amount"` // Total amount processed successfully
}
TransactionRecordMonthStatusSuccess represents successful transactions aggregated by month. Used for monthly success rate analysis and reporting.
type TransactionRecordYearStatusFailed ¶
type TransactionRecordYearStatusFailed struct {
Year string `json:"year"` // Year in YYYY format
TotalFailed int `json:"total_failed"` // Count of failed transactions
TotalAmount int `json:"total_amount"` // Total amount of failed attempts
}
TransactionRecordYearStatusFailed represents failed transactions aggregated by year. Used for annual failure analysis and reporting.
type TransactionRecordYearStatusSuccess ¶
type TransactionRecordYearStatusSuccess struct {
Year string `json:"year"` // Year in YYYY format
TotalSuccess int `json:"total_success"` // Count of successful transactions
TotalAmount int `json:"total_amount"` // Total amount processed successfully
}
TransactionRecordYearStatusSuccess represents successful transactions aggregated by year. Used for annual success rate analysis and reporting.
type TransactionYearMethod ¶
type TransactionYearMethod struct {
Year string `json:"year"` // Year in YYYY format
PaymentMethod string `json:"payment_method"` // Payment method used
TotalTransactions int `json:"total_transactions"` // Number of transactions
TotalAmount int `json:"total_amount"` // Total amount processed
}
TransactionYearMethod represents transactions aggregated by year and payment method. Used for analyzing annual payment method trends.
type TransactionYearlyAmount ¶
type TransactionYearlyAmount struct {
Year string `json:"year"` // Year in YYYY format
TotalAmount int `json:"total_amount"` // Total transaction amount
}
TransactionYearlyAmount represents total transaction amounts by year. Used for annual financial reporting.
type TransferMonthAmount ¶
type TransferMonthAmount struct {
Month string `json:"month"` // Month in YYYY-MM format
TotalAmount int `json:"total_amount"` // Total amount transferred
}
TransferMonthAmount represents total transfer amounts by month. Used for monthly financial reporting and analysis.
type TransferRecord ¶
type TransferRecord struct {
ID int `json:"id"` // Unique identifier for the transfer
TransferNo string `json:"transfer_no"` // Unique transaction reference number
TransferFrom string `json:"transfer_from"` // Source account/card (typically masked)
TransferTo string `json:"transfer_to"` // Destination account/card (typically masked)
TransferAmount int `json:"transfer_amount"` // Amount transferred in smallest currency unit (e.g., cents)
TransferTime string `json:"transfer_time"` // Timestamp when transfer was executed
CreatedAt string `json:"created_at"` // Timestamp when record was created
UpdatedAt string `json:"updated_at"` // Timestamp when record was last updated
DeletedAt *string `json:"deleted_at"` // Timestamp when record was soft-deleted (nil if active)
}
TransferRecord represents a funds transfer transaction between accounts. Records the movement of money from one account/card to another.
type TransferRecordMonthStatusFailed ¶
type TransferRecordMonthStatusFailed struct {
Year string `json:"year"` // Year in YYYY format
Month string `json:"month"` // Month in MM format
TotalFailed int `json:"total_failed"` // Count of failed transfer attempts
TotalAmount int `json:"total_amount"` // Total amount of failed transfers
}
TransferRecordMonthStatusFailed represents failed transfers aggregated by month. Used for monthly failure analysis and reporting.
type TransferRecordMonthStatusSuccess ¶
type TransferRecordMonthStatusSuccess struct {
Year string `json:"year"` // Year in YYYY format
Month string `json:"month"` // Month in MM format
TotalSuccess int `json:"total_success"` // Count of successful transfers
TotalAmount int `json:"total_amount"` // Total amount transferred successfully
}
TransferRecordMonthStatusSuccess represents successful transfers aggregated by month. Used for monthly success rate analysis and reporting.
type TransferRecordYearStatusFailed ¶
type TransferRecordYearStatusFailed struct {
Year string `json:"year"` // Year in YYYY format
TotalFailed int `json:"total_failed"` // Count of failed transfer attempts
TotalAmount int `json:"total_amount"` // Total amount of failed transfers
}
TransferRecordYearStatusFailed represents failed transfers aggregated by year. Used for annual failure analysis and reporting.
type TransferRecordYearStatusSuccess ¶
type TransferRecordYearStatusSuccess struct {
Year string `json:"year"` // Year in YYYY format
TotalSuccess int `json:"total_success"` // Count of successful transfers
TotalAmount int `json:"total_amount"` // Total amount transferred successfully
}
TransferRecordYearStatusSuccess represents successful transfers aggregated by year. Used for annual success rate analysis and reporting.
type TransferYearAmount ¶
type TransferYearAmount struct {
Year string `json:"year"` // Year in YYYY format
TotalAmount int `json:"total_amount"` // Total amount transferred
}
TransferYearAmount represents total transfer amounts by year. Used for annual financial reporting and analysis.
type UserRecord ¶
type UserRecord struct {
ID int `json:"id"` // Unique identifier for the user
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)
Password string `json:"password"` // Hashed password (should never be exposed in responses)
VerifiedCode string `json:"verified_code"` // Verification code for email confirmation
IsVerified bool `json:"is_verified"` // Flag indicating if user has verified their email
ConfirmPassword string `json:"confirm_password"` // Used only during registration/update (not stored)
CreatedAt string `json:"created_at"` // Timestamp when user account was created
UpdatedAt string `json:"updated_at"` // Timestamp when user account was last updated
DeletedAt *string `json:"deleted_at"` // Timestamp when account was deactivated (nil if active)
}
UserRecord represents a user account in the system. Contains core user information and authentication details.
type UserRoleRecord ¶
type UserRoleRecord struct {
UserRoleID int32 `json:"user_role_id"` // Unique identifier for the user-role association
UserID int32 `json:"user_id"` // ID of the user being assigned a role
RoleID int32 `json:"role_id"` // ID of the role being assigned
RoleName string `json:"role_name,omitempty"` // Name of the role (optional, may be populated in joins)
CreatedAt time.Time `json:"created_at"` // Timestamp when the association was created
UpdatedAt time.Time `json:"updated_at"` // Timestamp when the association was last updated
DeletedAt *time.Time `json:"deleted_at,omitempty"` // Timestamp when association was removed (nil if active)
}
UserRoleRecord represents the association between a user and a role. This is a join table that defines which roles are assigned to which users.
type WithdrawMonthlyAmount ¶
type WithdrawMonthlyAmount struct {
Month string `json:"month"` // Month in YYYY-MM format
TotalAmount int `json:"total_amount"` // Total amount withdrawn
}
WithdrawMonthlyAmount represents total withdrawal amounts by month. Used for monthly cash flow analysis and liquidity reporting.
type WithdrawRecord ¶
type WithdrawRecord struct {
ID int `json:"id"` // Unique identifier for the withdrawal
WithdrawNo string `json:"withdraw_no"` // Unique withdrawal reference number
CardNumber string `json:"card_number"` // Card number used (typically masked)
WithdrawAmount int `json:"withdraw_amount"` // Amount withdrawn in smallest currency unit (e.g., cents)
WithdrawTime string `json:"withdraw_time"` // Timestamp when withdrawal was processed
CreatedAt string `json:"created_at"` // Timestamp when record was created
UpdatedAt string `json:"updated_at"` // Timestamp when record was last updated
DeletedAt *string `json:"deleted_at"` // Timestamp when record was soft-deleted (nil if active)
}
WithdrawRecord represents a cash withdrawal transaction from a card/account. Records the details of funds being withdrawn from the system.
type WithdrawRecordMonthStatusFailed ¶
type WithdrawRecordMonthStatusFailed struct {
Year string `json:"year"` // Year in YYYY format
Month string `json:"month"` // Month in MM format
TotalFailed int `json:"total_failed"` // Count of failed withdrawal attempts
TotalAmount int `json:"total_amount"` // Total amount of failed withdrawals
}
WithdrawRecordMonthStatusFailed represents failed withdrawal attempts aggregated by month. Used for monthly failure analysis and system health monitoring.
type WithdrawRecordMonthStatusSuccess ¶
type WithdrawRecordMonthStatusSuccess struct {
Year string `json:"year"` // Year in YYYY format
Month string `json:"month"` // Month in MM format
TotalSuccess int `json:"total_success"` // Count of successful withdrawals
TotalAmount int `json:"total_amount"` // Total amount withdrawn successfully
}
WithdrawRecordMonthStatusSuccess represents successful withdrawals aggregated by month. Used for monthly success rate reporting and cash flow analysis.
type WithdrawRecordYearStatusFailed ¶
type WithdrawRecordYearStatusFailed struct {
Year string `json:"year"` // Year in YYYY format
TotalFailed int `json:"total_failed"` // Count of failed withdrawal attempts
TotalAmount int `json:"total_amount"` // Total amount of failed withdrawals
}
WithdrawRecordYearStatusFailed represents failed withdrawal attempts aggregated by year. Used for annual failure analysis and system reliability reporting.
type WithdrawRecordYearStatusSuccess ¶
type WithdrawRecordYearStatusSuccess struct {
Year string `json:"year"` // Year in YYYY format
TotalSuccess int `json:"total_success"` // Count of successful withdrawals
TotalAmount int `json:"total_amount"` // Total amount withdrawn successfully
}
WithdrawRecordYearStatusSuccess represents successful withdrawals aggregated by year. Used for annual success rate reporting and financial analysis.
type WithdrawYearlyAmount ¶
type WithdrawYearlyAmount struct {
Year string `json:"year"` // Year in YYYY format
TotalAmount int `json:"total_amount"` // Total amount withdrawn
}
WithdrawYearlyAmount represents total withdrawal amounts by year. Used for annual financial reporting and cash flow analysis.