Skip to content

Commit

Permalink
Added new field to goal model, bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Sep 24, 2021
1 parent 1830156 commit 73c5b31
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func ExampleNewClient() {
return
}
fmt.Printf("loaded client: %s", client.options.userAgent)
// Output:loaded client: go-tonicpow: v0.6.9
// Output:loaded client: go-tonicpow: v0.6.10
}

// BenchmarkNewClient benchmarks the method NewClient()
Expand Down
2 changes: 1 addition & 1 deletion definitions.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const (
defaultHTTPTimeout = 10 * time.Second // Default timeout for all GET requests in seconds
defaultRetryCount int = 2 // Default retry count for HTTP requests
defaultUserAgent = "go-tonicpow: " + version // Default user agent
version string = "v0.6.9" // go-tonicpow version
version string = "v0.6.10" // go-tonicpow version

// Field key names for various model requests
fieldAdvertiserProfileID = "advertiser_profile_id"
Expand Down
1 change: 1 addition & 0 deletions models.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ type Goal struct {
MaxPerPromoter int16 `json:"max_per_promoter"`
MaxPerVisitor int16 `json:"max_per_visitor"`
Name string `json:"name"`
PayoutInstant bool `json:"payout_instant"`
PayoutRate float64 `json:"payout_rate"`
Payouts int `json:"payouts"`
PayoutType string `json:"payout_type"`
Expand Down
4 changes: 2 additions & 2 deletions tonicpow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func TestVersion(t *testing.T) {
// See more examples in /examples/
func ExampleVersion() {
fmt.Printf("version: %s", Version())
// Output:version: v0.6.9
// Output:version: v0.6.10
}

// TestUserAgent will test the method UserAgent()
Expand All @@ -59,7 +59,7 @@ func TestUserAgent(t *testing.T) {
// See more examples in /examples/
func ExampleUserAgent() {
fmt.Printf("user agent: %s", UserAgent())
// Output:user agent: go-tonicpow: v0.6.9
// Output:user agent: go-tonicpow: v0.6.10
}

// TestGetFeedType will test the method GetFeedType()
Expand Down

0 comments on commit 73c5b31

Please sign in to comment.