2
0

billing.go 530 B

12345678910111213141516
  1. package types
  2. // CreateBillingCustomerRequest is a request for creating a new billing customer.
  3. type CreateBillingCustomerRequest struct {
  4. UserEmail string `json:"user_email" form:"required"`
  5. }
  6. // PaymentMethod is a subset of the Stripe PaymentMethod type,
  7. // with only the fields used on the dashboard
  8. type PaymentMethod = struct {
  9. ID string `json:"id"`
  10. DisplayBrand string `json:"display_brand"`
  11. Last4 string `json:"last4"`
  12. ExpMonth int64 `json:"exp_month"`
  13. ExpYear int64 `json:"exp_year"`
  14. }