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:
nutcas3
2026-04-17 15:55:32 +03:00
parent 04846c8564
commit cea79ef825
@@ -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