Skip to content

Commit

Permalink
Merge pull request #65 from njason/master
Browse files Browse the repository at this point in the history
make CampaignCreationSegmentOptions fields omitempty
  • Loading branch information
zeekay authored Nov 27, 2024
2 parents da66ea7 + ff6c7e0 commit 6051f77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions campaigns.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ type CampaignCreationRecipients struct {
}

type CampaignCreationSegmentOptions struct {
SavedSegmentId int `json:"saved_segment_id"`
Match string `json:"match"` // one of CONDITION_MATCH_*
SavedSegmentId int `json:"saved_segment_id,omitempty"`
Match string `json:"match,omitempty"` // one of CONDITION_MATCH_*

// this accepts various payloads. See http://developer.mailchimp.com/documentation/mailchimp/reference/campaigns/#create-post_campaigns
Conditions interface{} `json:"conditions"`
Conditions interface{} `json:"conditions,omitempty"`
}

type InterestsCondition struct {
Expand Down

0 comments on commit 6051f77

Please sign in to comment.