diff --git a/platform/src/main/java/com/flickmatch/platform/dynamodb/model/Subscription.java b/platform/src/main/java/com/flickmatch/platform/dynamodb/model/Subscription.java index 59cf23bd..596e5acc 100644 --- a/platform/src/main/java/com/flickmatch/platform/dynamodb/model/Subscription.java +++ b/platform/src/main/java/com/flickmatch/platform/dynamodb/model/Subscription.java @@ -44,6 +44,23 @@ public void setSubscriptionId(String subscriptionId) { private String expiryDate; private String cityId; + private String title; + private String subtitle; + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + public String getSubtitle() { + return subtitle; + } + + public void setSubtitle(String subtitle) { + this.subtitle = subtitle; + } public String getStatus() { return status; diff --git a/platform/src/main/java/com/flickmatch/platform/graphql/builder/SubscriptionBuilder.java b/platform/src/main/java/com/flickmatch/platform/graphql/builder/SubscriptionBuilder.java index 3074715d..86fbc9d4 100644 --- a/platform/src/main/java/com/flickmatch/platform/graphql/builder/SubscriptionBuilder.java +++ b/platform/src/main/java/com/flickmatch/platform/graphql/builder/SubscriptionBuilder.java @@ -73,6 +73,8 @@ public MutationResult createSubscription(String email, String passId) { .status("Active") .expiryDate(expiryDate) .cityId(pass.getCityId()) + .title(pass.getTitle()) + .subtitle(pass.getDescription()) .build(); log.error(subscription.toString()); @@ -157,6 +159,8 @@ com.flickmatch.platform.graphql.type.Subscription mapEventToGQLType(Subscription .gamesLeft(subs.getGamesLeft()) .status(subs.getStatus()) .cityId(subs.getCityId()) + .title(subs.getTitle()) + .subtitle(subs.getSubtitle()) .build(); } diff --git a/platform/src/main/java/com/flickmatch/platform/graphql/controller/UserController.java b/platform/src/main/java/com/flickmatch/platform/graphql/controller/UserController.java index 389d1c30..8974992b 100644 --- a/platform/src/main/java/com/flickmatch/platform/graphql/controller/UserController.java +++ b/platform/src/main/java/com/flickmatch/platform/graphql/controller/UserController.java @@ -36,7 +36,7 @@ public UserResult createUser(@Argument CreateUserInput input) { .isSuccessful(false) .build(); } - + } diff --git a/platform/src/main/java/com/flickmatch/platform/graphql/type/Subscription.java b/platform/src/main/java/com/flickmatch/platform/graphql/type/Subscription.java index cdc5cedf..4a7bc9e6 100644 --- a/platform/src/main/java/com/flickmatch/platform/graphql/type/Subscription.java +++ b/platform/src/main/java/com/flickmatch/platform/graphql/type/Subscription.java @@ -15,4 +15,6 @@ public class Subscription { private Double gamesLeft; private String cityId; private String expiryDate; + private String title; + private String subtitle; } diff --git a/platform/src/main/resources/graphql/schema.graphqls b/platform/src/main/resources/graphql/schema.graphqls index fa08cb5c..d345e378 100644 --- a/platform/src/main/resources/graphql/schema.graphqls +++ b/platform/src/main/resources/graphql/schema.graphqls @@ -115,6 +115,8 @@ type Subscription { gamesLeft: Float! status: String! cityId: String! + title: String! + subtitle: String! } type Pass {