Skip to content

Commit

Permalink
Merge pull request #43 from guardian/sponsorship-packages
Browse files Browse the repository at this point in the history
Add optional sponsorship package field
  • Loading branch information
davidfurey authored Feb 21, 2024
2 parents 63c1952 + 4ad2ada commit 8b9ee52
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/thrift/sponsorship.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ enum SponsorshipType {
PAID_CONTENT = 2
}

enum SponsorshipPackage {
DEFAULT = 0,
US = 1,
US_EXCLUSIVE = 2
}

struct SponsorshipTargeting {
/** only apply the sponsorship after this date */
1: optional i64 publishedSince;
Expand Down Expand Up @@ -49,4 +55,6 @@ struct Sponsorship {

/** The date of which the sponsorship is valid to */
10: optional i64 validTo;

11: optional SponsorshipPackage sponsorshipPackage;
}

0 comments on commit 8b9ee52

Please sign in to comment.