@edx/frontend-app-subscription-manage 1.18.2 → 1.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/dist/components/ActiveSubscription/ActiveSubscription.js +4 -4
  2. package/dist/components/ActiveSubscription/ActiveSubscription.js.map +1 -1
  3. package/dist/components/BecomeSubscriber/BecomeSubscriber.js +3 -3
  4. package/dist/components/BecomeSubscriber/BecomeSubscriber.js.map +1 -1
  5. package/dist/components/CancelConfirmation/CancelConfirmation.js +6 -6
  6. package/dist/components/CancelConfirmation/CancelConfirmation.js.map +1 -1
  7. package/dist/components/CancelSuccess/CancelSuccess.js +3 -3
  8. package/dist/components/CancelSuccess/CancelSuccess.js.map +1 -1
  9. package/dist/components/CanceledSubscription/CanceledSubscription.js +6 -6
  10. package/dist/components/CanceledSubscription/CanceledSubscription.js.map +1 -1
  11. package/dist/components/EnrolledCoursesList/EnrolledCoursesList.js +2 -2
  12. package/dist/components/EnrolledCoursesList/EnrolledCoursesList.js.map +1 -1
  13. package/dist/components/HelpFooter/HelpFooter.js +1 -1
  14. package/dist/components/HelpFooter/HelpFooter.js.map +1 -1
  15. package/dist/components/OrderHistory/OrderHistoryCard.d.ts +11 -0
  16. package/dist/components/OrderHistory/OrderHistoryCard.js +6 -0
  17. package/dist/components/OrderHistory/OrderHistoryCard.js.map +1 -0
  18. package/dist/components/OrderHistory/OrderHistoryDetails.d.ts +2 -0
  19. package/dist/components/OrderHistory/OrderHistoryDetails.js +120 -0
  20. package/dist/components/OrderHistory/OrderHistoryDetails.js.map +1 -0
  21. package/dist/components/OrderHistory/OrderList.d.ts +3 -0
  22. package/dist/components/OrderHistory/OrderList.js +13 -0
  23. package/dist/components/OrderHistory/OrderList.js.map +1 -0
  24. package/dist/components/OrderHistory/OrderPurchases.d.ts +4 -0
  25. package/dist/components/OrderHistory/OrderPurchases.js +44 -0
  26. package/dist/components/OrderHistory/OrderPurchases.js.map +1 -0
  27. package/dist/components/OrderHistory/ProgramItemsTable.d.ts +7 -0
  28. package/dist/components/OrderHistory/ProgramItemsTable.js +49 -0
  29. package/dist/components/OrderHistory/ProgramItemsTable.js.map +1 -0
  30. package/dist/components/OrderHistory/data/receiptRows.d.ts +17 -0
  31. package/dist/components/OrderHistory/data/receiptRows.js +16 -0
  32. package/dist/components/OrderHistory/data/receiptRows.js.map +1 -0
  33. package/dist/components/OrderHistory/messages.d.ts +118 -0
  34. package/dist/components/OrderHistory/messages.js +120 -0
  35. package/dist/components/OrderHistory/messages.js.map +1 -0
  36. package/dist/components/OrderHistoryHeader/OrderHistoryHeader.js +1 -1
  37. package/dist/components/OrderHistoryHeader/OrderHistoryHeader.js.map +1 -1
  38. package/dist/components/PaymentHistory/PaymentHistory.js +5 -5
  39. package/dist/components/PaymentHistory/PaymentHistory.js.map +1 -1
  40. package/dist/components/RefundNotice/RefundNotice.d.ts +3 -0
  41. package/dist/components/RefundNotice/RefundNotice.js +15 -0
  42. package/dist/components/RefundNotice/RefundNotice.js.map +1 -0
  43. package/dist/components/RefundNotice/messages.d.ts +18 -0
  44. package/dist/components/RefundNotice/messages.js +20 -0
  45. package/dist/components/RefundNotice/messages.js.map +1 -0
  46. package/dist/components/RenewSubscriptionModal/RenewSubscriptionModal.js +10 -10
  47. package/dist/components/RenewSubscriptionModal/RenewSubscriptionModal.js.map +1 -1
  48. package/dist/components/ResubscribeCard/ResubscribeCard.js +5 -5
  49. package/dist/components/ResubscribeCard/ResubscribeCard.js.map +1 -1
  50. package/dist/components/UpdatePaymentMethodModal/UpdatePaymentMethodModal.js +12 -12
  51. package/dist/components/UpdatePaymentMethodModal/UpdatePaymentMethodModal.js.map +1 -1
  52. package/dist/components/messages.d.ts +89 -99
  53. package/dist/components/messages.js +180 -190
  54. package/dist/components/messages.js.map +1 -1
  55. package/dist/constants.d.ts +7 -1
  56. package/dist/constants.js +7 -1
  57. package/dist/constants.js.map +1 -1
  58. package/dist/data/hooks/keys.d.ts +5 -0
  59. package/dist/data/hooks/keys.js +5 -0
  60. package/dist/data/hooks/keys.js.map +1 -1
  61. package/dist/data/hooks/useOrderHistoryQueries.d.ts +11 -0
  62. package/dist/data/hooks/useOrderHistoryQueries.js +30 -0
  63. package/dist/data/hooks/useOrderHistoryQueries.js.map +1 -0
  64. package/dist/data/services/orderHistory/orderHistory.d.ts +7 -0
  65. package/dist/data/services/orderHistory/orderHistory.js +40 -0
  66. package/dist/data/services/orderHistory/orderHistory.js.map +1 -0
  67. package/dist/{manageSubscriptionPage → orderHistory}/CancelSubscriptionPage.js +4 -4
  68. package/dist/orderHistory/CancelSubscriptionPage.js.map +1 -0
  69. package/dist/{manageSubscriptionPage → orderHistory}/CancelSuccessPage.js +2 -2
  70. package/dist/orderHistory/CancelSuccessPage.js.map +1 -0
  71. package/dist/orderHistory/OrderHistoryPage.d.ts +3 -0
  72. package/dist/orderHistory/OrderHistoryPage.js +127 -0
  73. package/dist/orderHistory/OrderHistoryPage.js.map +1 -0
  74. package/dist/routes.d.ts +23 -2
  75. package/dist/routes.js +44 -19
  76. package/dist/routes.js.map +1 -1
  77. package/dist/style.scss +1 -1
  78. package/dist/styles/components/{manageSubscription.scss → orderHistory.scss} +60 -24
  79. package/dist/types.d.ts +55 -0
  80. package/dist/types.js.map +1 -1
  81. package/dist/utils/currency.d.ts +6 -0
  82. package/dist/utils/currency.js +6 -0
  83. package/dist/utils/currency.js.map +1 -0
  84. package/dist/utils/queries.d.ts +6 -0
  85. package/dist/utils/queries.js +12 -0
  86. package/dist/utils/queries.js.map +1 -1
  87. package/package.json +1 -1
  88. package/dist/components/SubscriptionTabs/SubscriptionTabs.d.ts +0 -8
  89. package/dist/components/SubscriptionTabs/SubscriptionTabs.js +0 -15
  90. package/dist/components/SubscriptionTabs/SubscriptionTabs.js.map +0 -1
  91. package/dist/manageSubscriptionPage/CancelSubscriptionPage.js.map +0 -1
  92. package/dist/manageSubscriptionPage/CancelSuccessPage.js.map +0 -1
  93. package/dist/manageSubscriptionPage/ManageSubscriptionPage.d.ts +0 -3
  94. package/dist/manageSubscriptionPage/ManageSubscriptionPage.js +0 -88
  95. package/dist/manageSubscriptionPage/ManageSubscriptionPage.js.map +0 -1
  96. /package/dist/{manageSubscriptionPage → orderHistory}/CancelSubscriptionPage.d.ts +0 -0
  97. /package/dist/{manageSubscriptionPage → orderHistory}/CancelSuccessPage.d.ts +0 -0
@@ -1,87 +1,77 @@
1
1
  import { defineMessages } from '@openedx/frontend-base';
2
2
  const messages = defineMessages({
3
- 'manage.page.title': {
4
- id: 'manage.page.title',
3
+ 'order-history.page.title': {
4
+ id: 'order-history.page.title',
5
5
  defaultMessage: 'Order History | {siteName}',
6
- description: 'Document title for the manage subscription page',
6
+ description: 'Document title for the order history page',
7
7
  },
8
- 'manage.loading': {
9
- id: 'manage.loading',
8
+ 'order-history.loading': {
9
+ id: 'order-history.loading',
10
10
  defaultMessage: 'Loading subscription…',
11
- description: 'Loading state for the manage subscription page',
11
+ description: 'Loading state for the order history page',
12
12
  },
13
- 'manage.error': {
14
- id: 'manage.error',
13
+ 'order-history.error': {
14
+ id: 'order-history.error',
15
15
  defaultMessage: 'We could not load your subscription. Please try again later.',
16
16
  description: 'Error alert when subscription fetch fails',
17
17
  },
18
- 'manage.header.title': {
19
- id: 'manage.header.title',
18
+ 'order-history.header.title': {
19
+ id: 'order-history.header.title',
20
20
  defaultMessage: 'Order History',
21
21
  description: 'Page heading for order history / manage subscription',
22
22
  },
23
- 'manage.header.subtitle': {
24
- id: 'manage.header.subtitle',
23
+ 'order-history.header.subtitle': {
24
+ id: 'order-history.header.subtitle',
25
25
  defaultMessage: 'View previous purchases and manage your subscription.',
26
26
  description: 'Page subtitle under Order History',
27
27
  },
28
- 'manage.tab.subscription': {
29
- id: 'manage.tab.subscription',
30
- defaultMessage: 'Subscription',
31
- description: 'Subscription tab label',
32
- },
33
- 'manage.tab.paymentHistory': {
34
- id: 'manage.tab.paymentHistory',
35
- defaultMessage: 'Payment history',
36
- description: 'Payment history tab label',
37
- },
38
- 'manage.paymentHistory.heading': {
39
- id: 'manage.paymentHistory.heading',
28
+ 'order-history.paymentHistory.heading': {
29
+ id: 'order-history.paymentHistory.heading',
40
30
  defaultMessage: 'Payment history',
41
31
  description: 'Heading for the payment history panel',
42
32
  },
43
- 'manage.paymentHistory.nextPayment': {
44
- id: 'manage.paymentHistory.nextPayment',
33
+ 'order-history.paymentHistory.nextPayment': {
34
+ id: 'order-history.paymentHistory.nextPayment',
45
35
  defaultMessage: 'Next payment scheduled for {date}.',
46
36
  description: 'Next payment line above the invoice list',
47
37
  },
48
- 'manage.paymentHistory.empty': {
49
- id: 'manage.paymentHistory.empty',
38
+ 'order-history.paymentHistory.empty': {
39
+ id: 'order-history.paymentHistory.empty',
50
40
  defaultMessage: 'No payments yet.',
51
41
  description: 'Empty state when the learner has no invoices',
52
42
  },
53
- 'manage.paymentHistory.error': {
54
- id: 'manage.paymentHistory.error',
43
+ 'order-history.paymentHistory.error': {
44
+ id: 'order-history.paymentHistory.error',
55
45
  defaultMessage: 'We could not load your payment history. Please try again later.',
56
46
  description: 'Error alert when invoice fetch fails',
57
47
  },
58
- 'manage.paymentHistory.noSubscription': {
59
- id: 'manage.paymentHistory.noSubscription',
48
+ 'order-history.paymentHistory.noSubscription': {
49
+ id: 'order-history.paymentHistory.noSubscription',
60
50
  defaultMessage: 'Payment history is available after you subscribe.',
61
51
  description: 'Shown when there is no subscriptionBiId to query invoices',
62
52
  },
63
- 'manage.paymentHistory.tileTitle': {
64
- id: 'manage.paymentHistory.tileTitle',
53
+ 'order-history.paymentHistory.tileTitle': {
54
+ id: 'order-history.paymentHistory.tileTitle',
65
55
  defaultMessage: 'edX Plus Subscription',
66
56
  description: 'Title on each payment history invoice tile',
67
57
  },
68
- 'manage.paymentHistory.startOfService': {
69
- id: 'manage.paymentHistory.startOfService',
58
+ 'order-history.paymentHistory.startOfService': {
59
+ id: 'order-history.paymentHistory.startOfService',
70
60
  defaultMessage: 'Start of service:',
71
61
  description: 'Label for invoice period start on payment history tile',
72
62
  },
73
- 'manage.paymentHistory.totalCost': {
74
- id: 'manage.paymentHistory.totalCost',
63
+ 'order-history.paymentHistory.totalCost': {
64
+ id: 'order-history.paymentHistory.totalCost',
75
65
  defaultMessage: 'Total cost:',
76
66
  description: 'Label for invoice total on payment history tile',
77
67
  },
78
- 'manage.paymentHistory.orderNumber': {
79
- id: 'manage.paymentHistory.orderNumber',
68
+ 'order-history.paymentHistory.orderNumber': {
69
+ id: 'order-history.paymentHistory.orderNumber',
80
70
  defaultMessage: 'Order number:',
81
71
  description: 'Label for order number on payment history tile',
82
72
  },
83
- 'manage.paymentHistory.paymentMethod': {
84
- id: 'manage.paymentHistory.paymentMethod',
73
+ 'order-history.paymentHistory.paymentMethod': {
74
+ id: 'order-history.paymentHistory.paymentMethod',
85
75
  defaultMessage: 'Paid with:',
86
76
  description: 'Label for the payment method (card or PayPal) on a payment history tile',
87
77
  },
@@ -95,8 +85,8 @@ const messages = defineMessages({
95
85
  defaultMessage: 'PayPal',
96
86
  description: 'Payment method value for an invoice billed through PayPal',
97
87
  },
98
- 'manage.paymentHistory.desc.trial': {
99
- id: 'manage.paymentHistory.desc.trial',
88
+ 'order-history.paymentHistory.desc.trial': {
89
+ id: 'order-history.paymentHistory.desc.trial',
100
90
  defaultMessage: 'edX Plus Subscription — free trial',
101
91
  description: 'Description for a $0 trial invoice',
102
92
  },
@@ -120,75 +110,75 @@ const messages = defineMessages({
120
110
  defaultMessage: 'Draft',
121
111
  description: 'Invoice status label: DRAFT',
122
112
  },
123
- 'manage.help.prefix': {
124
- id: 'manage.help.prefix',
113
+ 'order-history.help.prefix': {
114
+ id: 'order-history.help.prefix',
125
115
  defaultMessage: 'Need more help? Visit the',
126
116
  description: 'Prefix before Learner Help Center link',
127
117
  },
128
- 'manage.help.link': {
129
- id: 'manage.help.link',
118
+ 'order-history.help.link': {
119
+ id: 'order-history.help.link',
130
120
  defaultMessage: 'Learner Help Center',
131
121
  description: 'Learner Help Center link text',
132
122
  },
133
123
  // Become a subscriber
134
- 'manage.none.heading': {
135
- id: 'manage.none.heading',
124
+ 'order-history.none.heading': {
125
+ id: 'order-history.none.heading',
136
126
  defaultMessage: 'Become a subscriber',
137
127
  description: 'Section heading when user has no subscription',
138
128
  },
139
- 'manage.none.subheading': {
140
- id: 'manage.none.subheading',
129
+ 'order-history.none.subheading': {
130
+ id: 'order-history.none.subheading',
141
131
  defaultMessage: 'You will manage your subscription here.',
142
132
  description: 'Section subheading when user has no subscription',
143
133
  },
144
- 'manage.none.cardTitle': {
145
- id: 'manage.none.cardTitle',
134
+ 'order-history.none.cardTitle': {
135
+ id: 'order-history.none.cardTitle',
146
136
  defaultMessage: 'Try edX Subscription for free',
147
137
  description: 'Upsell card title for non-subscribers',
148
138
  },
149
- 'manage.none.cardBody': {
150
- id: 'manage.none.cardBody',
139
+ 'order-history.none.cardBody': {
140
+ id: 'order-history.none.cardBody',
151
141
  defaultMessage: 'Get access to hundreds of courses for ${price}/month {currency}',
152
142
  description: 'Upsell card body including monthly price',
153
143
  },
154
- 'manage.none.cardBodyNoPrice': {
155
- id: 'manage.none.cardBodyNoPrice',
144
+ 'order-history.none.cardBodyNoPrice': {
145
+ id: 'order-history.none.cardBodyNoPrice',
156
146
  defaultMessage: 'Get access to hundreds of courses with edX subscription',
157
147
  description: 'Upsell card body when price is unavailable',
158
148
  },
159
- 'manage.none.subscribe': {
160
- id: 'manage.none.subscribe',
149
+ 'order-history.none.subscribe': {
150
+ id: 'order-history.none.subscribe',
161
151
  defaultMessage: 'Subscribe',
162
152
  description: 'Primary subscribe CTA',
163
153
  },
164
- 'manage.none.learnMore': {
165
- id: 'manage.none.learnMore',
154
+ 'order-history.none.learnMore': {
155
+ id: 'order-history.none.learnMore',
166
156
  defaultMessage: 'Learn about edX Subscription',
167
157
  description: 'Secondary learn-more link on upsell card',
168
158
  },
169
159
  // Active
170
- 'manage.active.heading': {
171
- id: 'manage.active.heading',
160
+ 'order-history.active.heading': {
161
+ id: 'order-history.active.heading',
172
162
  defaultMessage: 'Manage your subscription',
173
163
  description: 'Section heading for active subscribers',
174
164
  },
175
- 'manage.active.since': {
176
- id: 'manage.active.since',
165
+ 'order-history.active.since': {
166
+ id: 'order-history.active.since',
177
167
  defaultMessage: 'Subscriber since {date}.',
178
168
  description: 'Subscriber since date line',
179
169
  },
180
- 'manage.active.statusMonthly': {
181
- id: 'manage.active.statusMonthly',
170
+ 'order-history.active.statusMonthly': {
171
+ id: 'order-history.active.statusMonthly',
182
172
  defaultMessage: 'Active, Monthly Plan',
183
173
  description: 'Active monthly plan status label',
184
174
  },
185
- 'manage.active.statusAnnual': {
186
- id: 'manage.active.statusAnnual',
175
+ 'order-history.active.statusAnnual': {
176
+ id: 'order-history.active.statusAnnual',
187
177
  defaultMessage: 'Active, Annual Plan',
188
178
  description: 'Active annual plan status label',
189
179
  },
190
- 'manage.active.nextPayment': {
191
- id: 'manage.active.nextPayment',
180
+ 'order-history.active.nextPayment': {
181
+ id: 'order-history.active.nextPayment',
192
182
  defaultMessage: 'Your next payment is {date}.',
193
183
  description: 'Next payment date line for active subscribers',
194
184
  },
@@ -197,303 +187,303 @@ const messages = defineMessages({
197
187
  defaultMessage: 'Change to annual and save',
198
188
  description: 'CTA to switch to annual billing',
199
189
  },
200
- 'manage.active.updatePayment': {
201
- id: 'manage.active.updatePayment',
190
+ 'order-history.active.updatePayment': {
191
+ id: 'order-history.active.updatePayment',
202
192
  defaultMessage: 'Update payment method',
203
193
  description: 'CTA to update payment method',
204
194
  },
205
- 'manage.updatePayment.title': {
206
- id: 'manage.updatePayment.title',
195
+ 'order-history.updatePayment.title': {
196
+ id: 'order-history.updatePayment.title',
207
197
  defaultMessage: 'Update payment method.',
208
198
  description: 'Update payment method modal title',
209
199
  },
210
- 'manage.updatePayment.intro': {
211
- id: 'manage.updatePayment.intro',
200
+ 'order-history.updatePayment.intro': {
201
+ id: 'order-history.updatePayment.intro',
212
202
  defaultMessage: 'By providing your card information, you allow edX to charge your card for future payments.',
213
203
  description: 'Update payment method modal intro copy',
214
204
  },
215
- 'manage.updatePayment.sectionTitle': {
216
- id: 'manage.updatePayment.sectionTitle',
205
+ 'order-history.updatePayment.sectionTitle': {
206
+ id: 'order-history.updatePayment.sectionTitle',
217
207
  defaultMessage: 'Add new payment method',
218
208
  description: 'Heading above Stripe card fields',
219
209
  },
220
- 'manage.updatePayment.cardNumber': {
221
- id: 'manage.updatePayment.cardNumber',
210
+ 'order-history.updatePayment.cardNumber': {
211
+ id: 'order-history.updatePayment.cardNumber',
222
212
  defaultMessage: 'Card number',
223
213
  description: 'Label for Stripe card number field',
224
214
  },
225
- 'manage.updatePayment.cvc': {
226
- id: 'manage.updatePayment.cvc',
215
+ 'order-history.updatePayment.cvc': {
216
+ id: 'order-history.updatePayment.cvc',
227
217
  defaultMessage: 'Security code',
228
218
  description: 'Label for Stripe CVC field',
229
219
  },
230
- 'manage.updatePayment.expiry': {
231
- id: 'manage.updatePayment.expiry',
220
+ 'order-history.updatePayment.expiry': {
221
+ id: 'order-history.updatePayment.expiry',
232
222
  defaultMessage: 'Expiration date',
233
223
  description: 'Label for Stripe expiry field',
234
224
  },
235
- 'manage.updatePayment.postal': {
236
- id: 'manage.updatePayment.postal',
225
+ 'order-history.updatePayment.postal': {
226
+ id: 'order-history.updatePayment.postal',
237
227
  defaultMessage: 'Zip/Postal code',
238
228
  description: 'Label for postal code field',
239
229
  },
240
- 'manage.updatePayment.submit': {
241
- id: 'manage.updatePayment.submit',
230
+ 'order-history.updatePayment.submit': {
231
+ id: 'order-history.updatePayment.submit',
242
232
  defaultMessage: 'Update card',
243
233
  description: 'Primary CTA to submit new payment method',
244
234
  },
245
- 'manage.updatePayment.submitting': {
246
- id: 'manage.updatePayment.submitting',
235
+ 'order-history.updatePayment.submitting': {
236
+ id: 'order-history.updatePayment.submitting',
247
237
  defaultMessage: 'Updating…',
248
238
  description: 'Submit button label while update is in progress',
249
239
  },
250
- 'manage.updatePayment.close': {
251
- id: 'manage.updatePayment.close',
240
+ 'order-history.updatePayment.close': {
241
+ id: 'order-history.updatePayment.close',
252
242
  defaultMessage: 'Close',
253
243
  description: 'Close button on update payment method modal',
254
244
  },
255
- 'manage.updatePayment.successTitle': {
256
- id: 'manage.updatePayment.successTitle',
245
+ 'order-history.updatePayment.successTitle': {
246
+ id: 'order-history.updatePayment.successTitle',
257
247
  defaultMessage: 'Payment method updated.',
258
248
  description: 'Success modal title after payment method update',
259
249
  },
260
- 'manage.updatePayment.successBody': {
261
- id: 'manage.updatePayment.successBody',
250
+ 'order-history.updatePayment.successBody': {
251
+ id: 'order-history.updatePayment.successBody',
262
252
  defaultMessage: 'Your new payment method will be applied on your next billing date, {date}.',
263
253
  description: 'Success modal body with next billing date',
264
254
  },
265
- 'manage.updatePayment.successBodyNoDate': {
266
- id: 'manage.updatePayment.successBodyNoDate',
255
+ 'order-history.updatePayment.successBodyNoDate': {
256
+ id: 'order-history.updatePayment.successBodyNoDate',
267
257
  defaultMessage: 'Your new payment method will be applied on your next billing date.',
268
258
  description: 'Success modal body when next billing date is unknown',
269
259
  },
270
- 'manage.updatePayment.postalRequired': {
271
- id: 'manage.updatePayment.postalRequired',
260
+ 'order-history.updatePayment.postalRequired': {
261
+ id: 'order-history.updatePayment.postalRequired',
272
262
  defaultMessage: 'Enter a zip/postal code.',
273
263
  description: 'Validation error when postal code is empty',
274
264
  },
275
- 'manage.updatePayment.error': {
276
- id: 'manage.updatePayment.error',
265
+ 'order-history.updatePayment.error': {
266
+ id: 'order-history.updatePayment.error',
277
267
  defaultMessage: 'We could not update your payment method. Please try again.',
278
268
  description: 'Generic error when payment method update fails',
279
269
  },
280
- 'manage.updatePayment.invalidCard': {
281
- id: 'manage.updatePayment.invalidCard',
270
+ 'order-history.updatePayment.invalidCard': {
271
+ id: 'order-history.updatePayment.invalidCard',
282
272
  defaultMessage: 'This card is not valid. Please try a different card.',
283
273
  description: 'Shown when the backend rejects the card during validation',
284
274
  },
285
- 'manage.updatePayment.stripeMissing': {
286
- id: 'manage.updatePayment.stripeMissing',
275
+ 'order-history.updatePayment.stripeMissing': {
276
+ id: 'order-history.updatePayment.stripeMissing',
287
277
  defaultMessage: 'Payment updates are temporarily unavailable. Please try again later.',
288
278
  description: 'Shown when Stripe publishable key is not configured',
289
279
  },
290
- 'manage.active.cancelPrompt': {
291
- id: 'manage.active.cancelPrompt',
280
+ 'order-history.active.cancelPrompt': {
281
+ id: 'order-history.active.cancelPrompt',
292
282
  defaultMessage: 'Need a break?',
293
283
  description: 'Prompt before cancel subscription link',
294
284
  },
295
- 'manage.active.cancelLink': {
296
- id: 'manage.active.cancelLink',
285
+ 'order-history.active.cancelLink': {
286
+ id: 'order-history.active.cancelLink',
297
287
  defaultMessage: 'Cancel subscription',
298
288
  description: 'Cancel subscription link text',
299
289
  },
300
290
  // Canceled with access / renew banner
301
- 'manage.canceled.bannerTitle': {
302
- id: 'manage.canceled.bannerTitle',
291
+ 'order-history.canceled.bannerTitle': {
292
+ id: 'order-history.canceled.bannerTitle',
303
293
  defaultMessage: 'Renew your subscription before it expires.',
304
294
  description: 'Expiring subscription banner title',
305
295
  },
306
- 'manage.canceled.bannerBody': {
307
- id: 'manage.canceled.bannerBody',
296
+ 'order-history.canceled.bannerBody': {
297
+ id: 'order-history.canceled.bannerBody',
308
298
  defaultMessage: 'Your subscription is set to expire on {date} and you will have limited access to edX. Renew your subscription to keep your learning flexible.',
309
299
  description: 'Expiring subscription banner body',
310
300
  },
311
- 'manage.canceled.statusMonthly': {
312
- id: 'manage.canceled.statusMonthly',
301
+ 'order-history.canceled.statusMonthly': {
302
+ id: 'order-history.canceled.statusMonthly',
313
303
  defaultMessage: 'Cancelled, Monthly plan',
314
304
  description: 'Cancelled monthly plan status label',
315
305
  },
316
- 'manage.canceled.statusAnnual': {
317
- id: 'manage.canceled.statusAnnual',
306
+ 'order-history.canceled.statusAnnual': {
307
+ id: 'order-history.canceled.statusAnnual',
318
308
  defaultMessage: 'Cancelled, Annual plan',
319
309
  description: 'Cancelled annual plan status label',
320
310
  },
321
- 'manage.canceled.noPayments': {
322
- id: 'manage.canceled.noPayments',
311
+ 'order-history.canceled.noPayments': {
312
+ id: 'order-history.canceled.noPayments',
323
313
  defaultMessage: 'You have no upcoming payments. You cancelled your subscription on {date}.',
324
314
  description: 'Cancelled status card body with cancel date',
325
315
  },
326
- 'manage.canceled.noPaymentsNoDate': {
327
- id: 'manage.canceled.noPaymentsNoDate',
316
+ 'order-history.canceled.noPaymentsNoDate': {
317
+ id: 'order-history.canceled.noPaymentsNoDate',
328
318
  defaultMessage: 'You have no upcoming payments. You cancelled your subscription.',
329
319
  description: 'Cancelled status card body without cancel date',
330
320
  },
331
- 'manage.canceled.renew': {
332
- id: 'manage.canceled.renew',
321
+ 'order-history.canceled.renew': {
322
+ id: 'order-history.canceled.renew',
333
323
  defaultMessage: 'Renew subscription',
334
324
  description: 'Renew subscription CTA',
335
325
  },
336
- 'manage.canceled.renewing': {
337
- id: 'manage.canceled.renewing',
326
+ 'order-history.canceled.renewing': {
327
+ id: 'order-history.canceled.renewing',
338
328
  defaultMessage: 'Renewing…',
339
329
  description: 'Renew button label while reactivation mutation is in progress',
340
330
  },
341
- 'manage.canceled.renewError': {
342
- id: 'manage.canceled.renewError',
331
+ 'order-history.canceled.renewError': {
332
+ id: 'order-history.canceled.renewError',
343
333
  defaultMessage: 'We could not renew your subscription. Please try again.',
344
334
  description: 'Error when reactivate mutation fails',
345
335
  },
346
336
  // Renew confirmation modal
347
- 'manage.renewModal.title': {
348
- id: 'manage.renewModal.title',
337
+ 'order-history.renewModal.title': {
338
+ id: 'order-history.renewModal.title',
349
339
  defaultMessage: 'Renew your edX Plus subscription for ${price}/{frequency}',
350
340
  description: 'Renew modal title with price',
351
341
  },
352
- 'manage.renewModal.titleNoPrice': {
353
- id: 'manage.renewModal.titleNoPrice',
342
+ 'order-history.renewModal.titleNoPrice': {
343
+ id: 'order-history.renewModal.titleNoPrice',
354
344
  defaultMessage: 'Renew your edX Plus subscription',
355
345
  description: 'Renew modal title when price is unavailable',
356
346
  },
357
- 'manage.renewModal.body': {
358
- id: 'manage.renewModal.body',
347
+ 'order-history.renewModal.body': {
348
+ id: 'order-history.renewModal.body',
359
349
  defaultMessage: 'Your subscription will renew on {date} for ${price}/{frequency} {currency} (inclusive of applicable taxes). Cancel your subscription anytime from your dashboard. By clicking “Confirm subscription” you agree to our {termsLink}, and {refundLink}.',
360
350
  description: 'Renew modal body with terms links',
361
351
  },
362
- 'manage.renewModal.termsOfUse': {
363
- id: 'manage.renewModal.termsOfUse',
352
+ 'order-history.renewModal.termsOfUse': {
353
+ id: 'order-history.renewModal.termsOfUse',
364
354
  defaultMessage: 'Terms of Use',
365
355
  description: 'Terms of Use link text in renew modal',
366
356
  },
367
- 'manage.renewModal.refundPolicy': {
368
- id: 'manage.renewModal.refundPolicy',
357
+ 'order-history.renewModal.refundPolicy': {
358
+ id: 'order-history.renewModal.refundPolicy',
369
359
  defaultMessage: 'Refund Policy',
370
360
  description: 'Refund Policy link text in renew modal',
371
361
  },
372
- 'manage.renewModal.paymentMethod': {
373
- id: 'manage.renewModal.paymentMethod',
362
+ 'order-history.renewModal.paymentMethod': {
363
+ id: 'order-history.renewModal.paymentMethod',
374
364
  defaultMessage: 'Payment Method',
375
365
  description: 'Payment method section heading in renew modal',
376
366
  },
377
- 'manage.renewModal.card': {
378
- id: 'manage.renewModal.card',
367
+ 'order-history.renewModal.card': {
368
+ id: 'order-history.renewModal.card',
379
369
  defaultMessage: 'Card',
380
370
  description: 'Card payment method label in renew modal',
381
371
  },
382
- 'manage.renewModal.updatePayment': {
383
- id: 'manage.renewModal.updatePayment',
372
+ 'order-history.renewModal.updatePayment': {
373
+ id: 'order-history.renewModal.updatePayment',
384
374
  defaultMessage: 'Update payment method',
385
375
  description: 'Update payment method button in renew modal',
386
376
  },
387
- 'manage.renewModal.recurringConfirm': {
388
- id: 'manage.renewModal.recurringConfirm',
377
+ 'order-history.renewModal.recurringConfirm': {
378
+ id: 'order-history.renewModal.recurringConfirm',
389
379
  defaultMessage: 'I agree to enroll in a recurring {cycle} subscription for ${price}/{frequency} {currency}.',
390
380
  description: 'Recurring subscription consent checkbox',
391
381
  },
392
- 'manage.renewModal.ukCaConfirm': {
393
- id: 'manage.renewModal.ukCaConfirm',
382
+ 'order-history.renewModal.ukCaConfirm': {
383
+ id: 'order-history.renewModal.ukCaConfirm',
394
384
  defaultMessage: 'Second checkbox only for UK and CA residents',
395
385
  description: 'Extra consent checkbox for UK and CA residents',
396
386
  },
397
- 'manage.renewModal.confirm': {
398
- id: 'manage.renewModal.confirm',
387
+ 'order-history.renewModal.confirm': {
388
+ id: 'order-history.renewModal.confirm',
399
389
  defaultMessage: 'Confirm subscription',
400
390
  description: 'Confirm renew / reactivate button',
401
391
  },
402
392
  // Canceled expired / resubscribe
403
- 'manage.expired.heading': {
404
- id: 'manage.expired.heading',
393
+ 'order-history.expired.heading': {
394
+ id: 'order-history.expired.heading',
405
395
  defaultMessage: 'Pick up where you left off',
406
396
  description: 'Section heading for expired / canceled without access (placeholder until final copy lands)',
407
397
  },
408
- 'manage.expired.subheading': {
409
- id: 'manage.expired.subheading',
398
+ 'order-history.expired.subheading': {
399
+ id: 'order-history.expired.subheading',
410
400
  defaultMessage: 'You will manage your subscription here.',
411
401
  description: 'Section subheading for expired subscription state',
412
402
  },
413
- 'manage.expired.resubscribeTitle': {
414
- id: 'manage.expired.resubscribeTitle',
403
+ 'order-history.expired.resubscribeTitle': {
404
+ id: 'order-history.expired.resubscribeTitle',
415
405
  defaultMessage: 'Resubscribe for ${price}/month {currency}',
416
406
  description: 'Resubscribe card title with price',
417
407
  },
418
- 'manage.expired.resubscribeTitleNoPrice': {
419
- id: 'manage.expired.resubscribeTitleNoPrice',
408
+ 'order-history.expired.resubscribeTitleNoPrice': {
409
+ id: 'order-history.expired.resubscribeTitleNoPrice',
420
410
  defaultMessage: 'Resubscribe to edX Subscription',
421
411
  description: 'Resubscribe card title when price is unavailable',
422
412
  },
423
- 'manage.expired.canceledOn': {
424
- id: 'manage.expired.canceledOn',
413
+ 'order-history.expired.canceledOn': {
414
+ id: 'order-history.expired.canceledOn',
425
415
  defaultMessage: 'You cancelled your subscription on {date}.',
426
416
  description: 'Resubscribe card cancelled-on line',
427
417
  },
428
- 'manage.expired.canceledOnNoDate': {
429
- id: 'manage.expired.canceledOnNoDate',
418
+ 'order-history.expired.canceledOnNoDate': {
419
+ id: 'order-history.expired.canceledOnNoDate',
430
420
  defaultMessage: 'You cancelled your subscription.',
431
421
  description: 'Resubscribe card when cancel date is unknown',
432
422
  },
433
423
  // Cancel confirmation
434
- 'manage.cancel.title': {
435
- id: 'manage.cancel.title',
424
+ 'order-history.cancel.title': {
425
+ id: 'order-history.cancel.title',
436
426
  defaultMessage: 'Are you sure you want to cancel?',
437
427
  description: 'Cancel confirmation page title',
438
428
  },
439
- 'manage.cancel.body': {
440
- id: 'manage.cancel.body',
429
+ 'order-history.cancel.body': {
430
+ id: 'order-history.cancel.body',
441
431
  defaultMessage: 'If you cancel, you will lose access to all graded course content when your subscription expires on {date}. Your course progress will be saved if you re-subscribe within the calendar year.',
442
432
  description: 'Cancel confirmation body with period end date',
443
433
  },
444
- 'manage.cancel.bodyNoDate': {
445
- id: 'manage.cancel.bodyNoDate',
434
+ 'order-history.cancel.bodyNoDate': {
435
+ id: 'order-history.cancel.bodyNoDate',
446
436
  defaultMessage: 'If you cancel, you will lose access to all graded course content when your subscription expires. Your course progress will be saved if you re-subscribe within the calendar year.',
447
437
  description: 'Cancel confirmation body without period end date',
448
438
  },
449
- 'manage.cancel.coursesHeading': {
450
- id: 'manage.cancel.coursesHeading',
439
+ 'order-history.cancel.coursesHeading': {
440
+ id: 'order-history.cancel.coursesHeading',
451
441
  defaultMessage: 'Courses you are enrolled in ({count})',
452
442
  description: 'Heading for enrolled courses list on cancel confirmation',
453
443
  },
454
- 'manage.cancel.keep': {
455
- id: 'manage.cancel.keep',
444
+ 'order-history.cancel.keep': {
445
+ id: 'order-history.cancel.keep',
456
446
  defaultMessage: 'No, keep my subscription',
457
447
  description: 'Secondary button to abort cancellation',
458
448
  },
459
- 'manage.cancel.confirm': {
460
- id: 'manage.cancel.confirm',
449
+ 'order-history.cancel.confirm': {
450
+ id: 'order-history.cancel.confirm',
461
451
  defaultMessage: 'Yes, cancel subscription',
462
452
  description: 'Primary button to confirm cancellation',
463
453
  },
464
- 'manage.cancel.confirming': {
465
- id: 'manage.cancel.confirming',
454
+ 'order-history.cancel.confirming': {
455
+ id: 'order-history.cancel.confirming',
466
456
  defaultMessage: 'Cancelling…',
467
457
  description: 'Cancel button label while mutation is in progress',
468
458
  },
469
- 'manage.cancel.error': {
470
- id: 'manage.cancel.error',
459
+ 'order-history.cancel.error': {
460
+ id: 'order-history.cancel.error',
471
461
  defaultMessage: 'We could not cancel your subscription. Please try again.',
472
462
  description: 'Error when cancel mutation fails',
473
463
  },
474
- 'manage.cancel.viewCertificate': {
475
- id: 'manage.cancel.viewCertificate',
464
+ 'order-history.cancel.viewCertificate': {
465
+ id: 'order-history.cancel.viewCertificate',
476
466
  defaultMessage: 'View certificate',
477
467
  description: 'View certificate button on enrolled course row',
478
468
  },
479
469
  // Cancel success
480
- 'manage.cancelSuccess.title': {
481
- id: 'manage.cancelSuccess.title',
470
+ 'order-history.cancelSuccess.title': {
471
+ id: 'order-history.cancelSuccess.title',
482
472
  defaultMessage: 'Thank you for learning with us on edX. Your subscription is cancelled.',
483
473
  description: 'Cancel success page title',
484
474
  },
485
- 'manage.cancelSuccess.body': {
486
- id: 'manage.cancelSuccess.body',
475
+ 'order-history.cancelSuccess.body': {
476
+ id: 'order-history.cancelSuccess.body',
487
477
  defaultMessage: 'Your edX Plus subscription has been cancelled and you will no longer be charged after {date}. You will receive a confirmation email shortly.',
488
478
  description: 'Cancel success body with last charge / access date',
489
479
  },
490
- 'manage.cancelSuccess.bodyNoDate': {
491
- id: 'manage.cancelSuccess.bodyNoDate',
480
+ 'order-history.cancelSuccess.bodyNoDate': {
481
+ id: 'order-history.cancelSuccess.bodyNoDate',
492
482
  defaultMessage: 'Your edX Plus subscription has been cancelled and you will no longer be charged. You will receive a confirmation email shortly.',
493
483
  description: 'Cancel success body without date',
494
484
  },
495
- 'manage.cancelSuccess.return': {
496
- id: 'manage.cancelSuccess.return',
485
+ 'order-history.cancelSuccess.return': {
486
+ id: 'order-history.cancelSuccess.return',
497
487
  defaultMessage: 'Return to Dashboard',
498
488
  description: 'Return to dashboard CTA after cancel success',
499
489
  },