Skip to content

Commit

Permalink
Make android offer tags an array
Browse files Browse the repository at this point in the history
  • Loading branch information
rupertbates committed Jun 6, 2024
1 parent a59435a commit 342d5a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions membership-attribute-service/app/models/FeastApp.scala
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ object FeastApp {
else
RegularSubscription,
)
def getFeastAndroidOfferTags(attributes: Attributes): Option[String] =
def getFeastAndroidOfferTags(attributes: Attributes): Option[List[String]] =
if (shouldShowSubscriptionOptions(attributes) && shouldGetFreeTrial(attributes))
Some(AndroidOfferTags.ExtendedTrial)
Some(List(AndroidOfferTags.ExtendedTrial))
else None
}
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ class AttributeControllerTest extends Specification with AfterAll with Idiomatic
| "userId": "$userWithRecurringContributionUserId",
| "showSupportMessaging": false,
| "feastIosSubscriptionGroup": "${FeastApp.IosSubscriptionGroupIds.ExtendedTrial}",
| "feastAndroidOfferTags": "${FeastApp.AndroidOfferTags.ExtendedTrial}",
| "feastAndroidOfferTags": ["${FeastApp.AndroidOfferTags.ExtendedTrial}"],
| "recurringContributionPaymentPlan":"Monthly Contribution",
| "recurringContributionAcquisitionDate":"$dateBeforeFeastLaunch",
| "contentAccess": {
Expand Down Expand Up @@ -455,7 +455,7 @@ class AttributeControllerTest extends Specification with AfterAll with Idiomatic
| "liveAppSubscriptionExpiryDate":"${dateTimeInTheFuture.toLocalDate}",
| "showSupportMessaging": false,
| "feastIosSubscriptionGroup": "${FeastApp.IosSubscriptionGroupIds.ExtendedTrial}",
| "feastAndroidOfferTags": "${FeastApp.AndroidOfferTags.ExtendedTrial}",
| "feastAndroidOfferTags": ["${FeastApp.AndroidOfferTags.ExtendedTrial}"],
| "contentAccess": {
| "member": false,
| "paidMember": false,
Expand Down Expand Up @@ -485,7 +485,7 @@ class AttributeControllerTest extends Specification with AfterAll with Idiomatic
| "userId": "$userWithNewspaperUserId",
| "paperSubscriptionExpiryDate":"${dateTimeInTheFuture.toLocalDate}",
| "feastIosSubscriptionGroup": "${FeastApp.IosSubscriptionGroupIds.ExtendedTrial}",
| "feastAndroidOfferTags": "${FeastApp.AndroidOfferTags.ExtendedTrial}",
| "feastAndroidOfferTags": ["${FeastApp.AndroidOfferTags.ExtendedTrial}"],
| "showSupportMessaging": false,
| "contentAccess": {
| "member": false,
Expand Down Expand Up @@ -547,7 +547,7 @@ class AttributeControllerTest extends Specification with AfterAll with Idiomatic
| "guardianWeeklyExpiryDate":"${dateTimeInTheFuture.toLocalDate}",
| "showSupportMessaging": false,
| "feastIosSubscriptionGroup": "${FeastApp.IosSubscriptionGroupIds.ExtendedTrial}",
| "feastAndroidOfferTags": "${FeastApp.AndroidOfferTags.ExtendedTrial}",
| "feastAndroidOfferTags": ["${FeastApp.AndroidOfferTags.ExtendedTrial}"],
| "contentAccess": {
| "member": false,
| "paidMember": false,
Expand Down

0 comments on commit 342d5a0

Please sign in to comment.