From b74d210d5bfe08c52775087e58f82f72eb7e3347 Mon Sep 17 00:00:00 2001 From: Richard Bangay Date: Wed, 14 Aug 2024 12:10:20 +0100 Subject: [PATCH 1/2] eventbrite - ticket tailer copy change --- client/components/mma/accountoverview/ProductCard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/components/mma/accountoverview/ProductCard.tsx b/client/components/mma/accountoverview/ProductCard.tsx index 0191826cf..efa4a6444 100644 --- a/client/components/mma/accountoverview/ProductCard.tsx +++ b/client/components/mma/accountoverview/ProductCard.tsx @@ -435,7 +435,7 @@ export const ProductCard = ({

- Guardian Live - Eventbrite discount codes + Guardian Live - Ticket Tailor promo codes

From fd2d5ebcde880cf63b393ef72eff3febca33b345 Mon Sep 17 00:00:00 2001 From: Richard Bangay Date: Wed, 14 Aug 2024 12:58:37 +0100 Subject: [PATCH 2/2] change the events copy for patrons from Eventbrite to Ticket tailor --- .../accountoverview/AccountOverview.stories.tsx | 2 ++ client/fixtures/productBuilder/productBuilder.ts | 15 +++++++++++++++ client/fixtures/productBuilder/testProducts.ts | 10 ++++++++++ 3 files changed, 27 insertions(+) diff --git a/client/components/mma/accountoverview/AccountOverview.stories.tsx b/client/components/mma/accountoverview/AccountOverview.stories.tsx index a8df89962..41bc79395 100644 --- a/client/components/mma/accountoverview/AccountOverview.stories.tsx +++ b/client/components/mma/accountoverview/AccountOverview.stories.tsx @@ -23,6 +23,7 @@ import { guardianWeeklyPaidByCard, membershipSupporter, newspaperVoucherPaidByPaypal, + patronMembership, supporterPlus, supporterPlusAnnualCancelled, supporterPlusCancelled, @@ -90,6 +91,7 @@ export const WithSubscriptions: StoryObj = { digitalPackPaidByDirectDebit(), newspaperVoucherPaidByPaypal(), membershipSupporter(), + patronMembership(), supporterPlus(), tierThree(), ), diff --git a/client/fixtures/productBuilder/productBuilder.ts b/client/fixtures/productBuilder/productBuilder.ts index bf6fe525d..64f58a13e 100644 --- a/client/fixtures/productBuilder/productBuilder.ts +++ b/client/fixtures/productBuilder/productBuilder.ts @@ -127,6 +127,21 @@ export class ProductBuilder { return this; } + asPatronTier() { + this.productToBuild.tier = 'Patron'; + return this; + } + + withEvents() { + const currentPlans = this.productToBuild.subscription.currentPlans; + for (const currentPlan of currentPlans) { + if (isPaidSubscriptionPlan(currentPlan)) { + currentPlan.features = 'Fancy Events'; + } + } + return this; + } + nonServiceableCountry() { this.productToBuild.billingCountry = 'New Caledonia'; return this; diff --git a/client/fixtures/productBuilder/testProducts.ts b/client/fixtures/productBuilder/testProducts.ts index 6c44a4063..986a00795 100644 --- a/client/fixtures/productBuilder/testProducts.ts +++ b/client/fixtures/productBuilder/testProducts.ts @@ -263,3 +263,13 @@ export function patronDigitalPack() { .asPatron() .getProductDetailObject(); } + +export function patronMembership() { + return new ProductBuilder(baseMembership()) + .payByCard() + .withPrice(10000) + .asPatron() + .asPatronTier() + .withEvents() + .getProductDetailObject(); +}