Skip to content

Commit 57816b6

Browse files
feat(payments-next):
Because: * This commit: * Closes #
1 parent 61f8188 commit 57816b6

2 files changed

Lines changed: 46 additions & 0 deletions

File tree

  • libs/accounts/email-renderer/src/templates/subscriptionRenewalReminder
  • packages/fxa-auth-server/lib/senders/emails/templates/subscriptionRenewalReminder

libs/accounts/email-renderer/src/templates/subscriptionRenewalReminder/index.stories.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const data = {
1919
subscriptionSupportUrl: 'http://localhost:3030/support',
2020
updateBillingUrl: 'http://localhost:3030/subscriptions',
2121
hadDiscount: false,
22+
hasRenewalDiscount: false,
2223
};
2324

2425
const createStory = subplatStoryWithProps<TemplateData>(
@@ -58,6 +59,28 @@ export const YearlyPlanDiscountEnding = createStory(
5859
reminderLength: '15',
5960
invoiceTotal: '$199.99',
6061
hadDiscount: true,
62+
hasRenewalDiscount: false,
6163
},
6264
'Yearly Plan - Discount Ending'
6365
);
66+
67+
export const MonthlyPlanDiscountChanging = createStory(
68+
{
69+
hadDiscount: true,
70+
hasRenewalDiscount: true,
71+
invoiceTotal: '$14.00',
72+
},
73+
'Monthly Plan - Discount Changing'
74+
);
75+
76+
export const YearlyPlanDiscountChanging = createStory(
77+
{
78+
planInterval: 'year',
79+
planIntervalCount: '1',
80+
reminderLength: '15',
81+
invoiceTotal: '$139.99',
82+
hadDiscount: true,
83+
hasRenewalDiscount: true,
84+
},
85+
'Yearly Plan - Discount Changing'
86+
);

packages/fxa-auth-server/lib/senders/emails/templates/subscriptionRenewalReminder/index.stories.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const createStory = subplatStoryWithProps(
2121
subscriptionSupportUrl: 'http://localhost:3030/support',
2222
updateBillingUrl: 'http://localhost:3030/subscriptions',
2323
hadDiscount: false,
24+
hasRenewalDiscount: false,
2425
}
2526
);
2627

@@ -54,6 +55,28 @@ export const YearlyPlanDiscountEnding = createStory(
5455
reminderLength: '15',
5556
invoiceTotal: '$199.99',
5657
hadDiscount: true,
58+
hasRenewalDiscount: false,
5759
},
5860
'Yearly Plan - Discount Ending'
5961
);
62+
63+
export const MonthlyPlanDiscountChanging = createStory(
64+
{
65+
hadDiscount: true,
66+
hasRenewalDiscount: true,
67+
invoiceTotal: '$14.00',
68+
},
69+
'Monthly Plan - Discount Changing'
70+
);
71+
72+
export const YearlyPlanDiscountChanging = createStory(
73+
{
74+
planInterval: 'year',
75+
planIntervalCount: '1',
76+
reminderLength: '15',
77+
invoiceTotal: '$139.99',
78+
hadDiscount: true,
79+
hasRenewalDiscount: true,
80+
},
81+
'Yearly Plan - Discount Changing'
82+
);

0 commit comments

Comments
 (0)