Skip to content

Commit

Permalink
New fields on goal model for max promoter/visitor
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Jan 16, 2020
1 parent 7280b0a commit 26cfa8e
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions definitions.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,16 @@ type Campaign struct {
//
// For more information: https://docs.tonicpow.com/#316b77ab-4900-4f3d-96a7-e67c00af10ca
type Goal struct {
CampaignID uint64 `json:"campaign_id,omitempty"`
Description string `json:"description,omitempty"`
ID uint64 `json:"id,omitempty"`
Name string `json:"name,omitempty"`
PayoutRate float64 `json:"payout_rate,omitempty"`
Payouts int `json:"payouts,omitempty"`
PayoutType string `json:"payout_type,omitempty"`
Title string `json:"title,omitempty"`
CampaignID uint64 `json:"campaign_id,omitempty"`
Description string `json:"description,omitempty"`
ID uint64 `json:"id,omitempty"`
MaxPerPromoter int16 `json:"max_per_promoter,omitempty"`
MaxPerVisitor int16 `json:"max_per_visitor,omitempty"`
Name string `json:"name,omitempty"`
PayoutRate float64 `json:"payout_rate,omitempty"`
Payouts int `json:"payouts,omitempty"`
PayoutType string `json:"payout_type,omitempty"`
Title string `json:"title,omitempty"`
}

// Conversion is the response of getting a conversion
Expand Down

0 comments on commit 26cfa8e

Please sign in to comment.