2
0

referral.go 438 B

123456789101112
  1. package types
  2. // Referral is a struct that represents a referral in the Porter API
  3. type Referral struct {
  4. ID uint `json:"id"`
  5. // Code is the referral code that is shared with the referred user
  6. Code string `json:"referral_code"`
  7. // ReferredUserID is the ID of the user who was referred
  8. ReferredUserID uint `json:"referred_user_id"`
  9. // Status is the status of the referral (pending, signed_up, etc.)
  10. Status string `json:"status"`
  11. }