billing.go 389 B

123456789101112
  1. package types
  2. // PaymentMethod is a subset of the Stripe PaymentMethod type,
  3. // with only the fields used in the dashboard
  4. type PaymentMethod = struct {
  5. ID string `json:"id"`
  6. DisplayBrand string `json:"display_brand"`
  7. Last4 string `json:"last4"`
  8. ExpMonth int64 `json:"exp_month"`
  9. ExpYear int64 `json:"exp_year"`
  10. Default bool `json:"is_default"`
  11. }