mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-10-18 11:02:54 +00:00
feat: Add PaymentMethodDetails struct for token-based payment method retrieval
- Add PaymentMethodDetails with payment method ID, type, card details (last4, brand, expiry), fingerprint, and creation timestamp - Support structured response for payment method token processing
This commit is contained in:
@@ -104,6 +104,18 @@ type PaymentMethod struct {
|
||||
Metadata map[string]string `json:"metadata"`
|
||||
}
|
||||
|
||||
// PaymentMethodDetails represents payment method details retrieved from token
|
||||
type PaymentMethodDetails struct {
|
||||
PaymentMethodID string `json:"paymentMethodId"`
|
||||
Type string `json:"type"`
|
||||
Last4 string `json:"last4"`
|
||||
Brand string `json:"brand"`
|
||||
ExpiryMonth int `json:"expiryMonth"`
|
||||
ExpiryYear int `json:"expiryYear"`
|
||||
Fingerprint string `json:"fingerprint"`
|
||||
CreatedAt time.Time `json:"createdAt"`
|
||||
}
|
||||
|
||||
// PaymentStatusType represents payment status
|
||||
type PaymentStatusType string
|
||||
|
||||
|
||||
Reference in New Issue
Block a user