@financial-times/n-conversion-forms 27.6.4 → 27.7.1

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.
@@ -10,19 +10,19 @@ exports[`AcceptTerms renders appropriately if a isAuthFirstAccount 1`] = `
10
10
  <span class="terms-auth-first-step">
11
11
  For more information about how we use your data, please refer to our
12
12
  <a class="ncf__link--external"
13
- href="http://help.ft.com/help/legal-privacy/terms-conditions/"
13
+ href="https://help.ft.com/legal-privacy/privacy-policy/"
14
14
  target="_blank"
15
15
  rel="noopener noreferrer"
16
- data-trackable="terms-and-conditions"
16
+ data-trackable="privacy-policy-info"
17
17
  >
18
18
  privacy
19
19
  </a>
20
20
  and 
21
21
  <a class="ncf__link--external"
22
- href="http://help.ft.com/help/legal-privacy/terms-conditions/"
22
+ href="https://help.ft.com/legal-privacy/cookies/"
23
23
  target="_blank"
24
24
  rel="noopener noreferrer"
25
- data-trackable="terms-and-conditions"
25
+ data-trackable="cookies-info"
26
26
  >
27
27
  cookie
28
28
  </a>
@@ -40,7 +40,7 @@ exports[`DeliveryOption renders with USA print offer 1`] = `
40
40
  Mail
41
41
  </span>
42
42
  <div class="ncf__delivery-option__description">
43
- We can only deliver the FT Weekend newspaper to your location by postal mail which means your delivery will arrive up to 3 business days after the date of publication and will not include the HTSI Magazine. We also fly the newspaper to your location which means delivery is subject to flight delays/cancellations outside the FT&#x27;s control. If you prefer to read the printed content on the day of publication, please proceed to subscribe to the FT ePaper - a digital replica of the print edition.
43
+ We can only deliver the FT Weekend newspaper to your location by postal mail which means your delivery will arrive up to 5 business days after the date of publication and will not include the HTSI Magazine. We also fly the newspaper to your location which means delivery is subject to flight delays/cancellations outside the FT&#x27;s control. If you prefer to read the printed content on the day of publication, please proceed to subscribe to the FT ePaper - a digital replica of the print edition.
44
44
  </div>
45
45
  </span>
46
46
  </label>
@@ -11,7 +11,7 @@ exports[`DeliveryPOBox renders with a custom props values 1`] = `
11
11
  P.O. Box
12
12
  </span>
13
13
  <span class="o-forms-title__prompt">
14
- A P.O. Box address is only deliverable by US Mail, and is subject to a delay of up to 3 business days. For delivery on the publication date, we recommend you enter a residential or business address.
14
+ A P.O. Box address is only deliverable by US Mail, and is subject to a delay of up to 5 business days. For delivery on the publication date, we recommend you enter a residential or business address.
15
15
  </span>
16
16
  </span>
17
17
  <span class="o-forms-input o-forms-input--text o-forms-input--invalid">
@@ -67,6 +67,21 @@ exports[`PaymentType can initialise with the loader visible 1`] = `
67
67
  </span>
68
68
  </label>
69
69
  </div>
70
+ <div class="o-forms-input--radio-box__container ncf__payment-type ncf__payment-type--banktransfer ncf__hidden">
71
+ <label for="banktransfer">
72
+ <input type="radio"
73
+ name="paymentType"
74
+ value="banktransfer"
75
+ id="banktransfer"
76
+ aria-label="Bank Transfer"
77
+ >
78
+ <span class="o-forms-input__label"
79
+ aria-hidden="true"
80
+ >
81
+ Bank Transfer
82
+ </span>
83
+ </label>
84
+ </div>
70
85
  </div>
71
86
  <div class="o-forms-input__error">
72
87
  Please enter a valid payment type
@@ -143,6 +158,21 @@ exports[`PaymentType render with default props 1`] = `
143
158
  </span>
144
159
  </label>
145
160
  </div>
161
+ <div class="o-forms-input--radio-box__container ncf__payment-type ncf__payment-type--banktransfer ncf__hidden">
162
+ <label for="banktransfer">
163
+ <input type="radio"
164
+ name="paymentType"
165
+ value="banktransfer"
166
+ id="banktransfer"
167
+ aria-label="Bank Transfer"
168
+ >
169
+ <span class="o-forms-input__label"
170
+ aria-hidden="true"
171
+ >
172
+ Bank Transfer
173
+ </span>
174
+ </label>
175
+ </div>
146
176
  </div>
147
177
  <div class="o-forms-input__error">
148
178
  Please enter a valid payment type
@@ -219,6 +249,112 @@ exports[`PaymentType render with enableApplepay 1`] = `
219
249
  </span>
220
250
  </label>
221
251
  </div>
252
+ <div class="o-forms-input--radio-box__container ncf__payment-type ncf__payment-type--banktransfer ncf__hidden">
253
+ <label for="banktransfer">
254
+ <input type="radio"
255
+ name="paymentType"
256
+ value="banktransfer"
257
+ id="banktransfer"
258
+ aria-label="Bank Transfer"
259
+ >
260
+ <span class="o-forms-input__label"
261
+ aria-hidden="true"
262
+ >
263
+ Bank Transfer
264
+ </span>
265
+ </label>
266
+ </div>
267
+ </div>
268
+ <div class="o-forms-input__error">
269
+ Please enter a valid payment type
270
+ </div>
271
+ </div>
272
+ <div class="o-forms-field">
273
+ </div>
274
+ `;
275
+
276
+ exports[`PaymentType render with enableBankTransfer 1`] = `
277
+ <div class="ncf__security-seal">
278
+ </div>
279
+ <div id="paymentTypeField"
280
+ class="o-forms-field"
281
+ >
282
+ <div class="o-forms-input o-forms-input--radio-box ncf__payment-type-selector">
283
+ <div class="o-forms-input--radio-box__container ncf__payment-type ncf__payment-type--creditcard ncf__hidden">
284
+ <label for="creditcard">
285
+ <input type="radio"
286
+ name="paymentType"
287
+ value="creditcard"
288
+ id="creditcard"
289
+ aria-label="Credit / Debit Card"
290
+ >
291
+ <span class="o-forms-input__label"
292
+ aria-hidden="true"
293
+ >
294
+ Credit / Debit Card
295
+ </span>
296
+ </label>
297
+ </div>
298
+ <div class="o-forms-input--radio-box__container ncf__payment-type ncf__payment-type--paypal ncf__hidden">
299
+ <label for="paypal">
300
+ <input type="radio"
301
+ name="paymentType"
302
+ value="paypal"
303
+ id="paypal"
304
+ aria-label="PayPal"
305
+ >
306
+ <span class="o-forms-input__label"
307
+ aria-hidden="true"
308
+ >
309
+ PayPal
310
+ </span>
311
+ </label>
312
+ </div>
313
+ <div class="o-forms-input--radio-box__container ncf__payment-type ncf__payment-type--directdebit ncf__hidden">
314
+ <label for="directdebit">
315
+ <input type="radio"
316
+ name="paymentType"
317
+ value="directdebit"
318
+ id="directdebit"
319
+ aria-label="Direct Debit"
320
+ >
321
+ <span class="o-forms-input__label"
322
+ aria-hidden="true"
323
+ >
324
+ Direct Debit
325
+ </span>
326
+ </label>
327
+ </div>
328
+ <div class="o-forms-input--radio-box__container ncf__payment-type ncf__payment-type--applepay ncf__hidden">
329
+ <label for="applepay">
330
+ <input type="radio"
331
+ name="paymentType"
332
+ value="applepay"
333
+ id="applepay"
334
+ aria-label="Apple Pay"
335
+ >
336
+ <span class="o-forms-input__label"
337
+ aria-hidden="true"
338
+ >
339
+ Apple Pay
340
+ </span>
341
+ </label>
342
+ </div>
343
+ <div class="o-forms-input--radio-box__container ncf__payment-type ncf__payment-type--banktransfer">
344
+ <label for="banktransfer">
345
+ <input type="radio"
346
+ name="paymentType"
347
+ value="banktransfer"
348
+ id="banktransfer"
349
+ aria-label="Bank Transfer"
350
+ >
351
+ <span class="o-forms-input__label"
352
+ aria-hidden="true"
353
+ >
354
+ Bank Transfer
355
+ </span>
356
+ </label>
357
+ </div>
222
358
  </div>
223
359
  <div class="o-forms-input__error">
224
360
  Please enter a valid payment type
@@ -295,6 +431,21 @@ exports[`PaymentType render with enableCreditcard 1`] = `
295
431
  </span>
296
432
  </label>
297
433
  </div>
434
+ <div class="o-forms-input--radio-box__container ncf__payment-type ncf__payment-type--banktransfer ncf__hidden">
435
+ <label for="banktransfer">
436
+ <input type="radio"
437
+ name="paymentType"
438
+ value="banktransfer"
439
+ id="banktransfer"
440
+ aria-label="Bank Transfer"
441
+ >
442
+ <span class="o-forms-input__label"
443
+ aria-hidden="true"
444
+ >
445
+ Bank Transfer
446
+ </span>
447
+ </label>
448
+ </div>
298
449
  </div>
299
450
  <div class="o-forms-input__error">
300
451
  Please enter a valid payment type
@@ -391,6 +542,21 @@ exports[`PaymentType render with enableDirectdebit 1`] = `
391
542
  </span>
392
543
  </label>
393
544
  </div>
545
+ <div class="o-forms-input--radio-box__container ncf__payment-type ncf__payment-type--banktransfer ncf__hidden">
546
+ <label for="banktransfer">
547
+ <input type="radio"
548
+ name="paymentType"
549
+ value="banktransfer"
550
+ id="banktransfer"
551
+ aria-label="Bank Transfer"
552
+ >
553
+ <span class="o-forms-input__label"
554
+ aria-hidden="true"
555
+ >
556
+ Bank Transfer
557
+ </span>
558
+ </label>
559
+ </div>
394
560
  </div>
395
561
  <div class="o-forms-input__error">
396
562
  Please enter a valid payment type
@@ -526,6 +692,21 @@ exports[`PaymentType render with enablePaypal 1`] = `
526
692
  </span>
527
693
  </label>
528
694
  </div>
695
+ <div class="o-forms-input--radio-box__container ncf__payment-type ncf__payment-type--banktransfer ncf__hidden">
696
+ <label for="banktransfer">
697
+ <input type="radio"
698
+ name="paymentType"
699
+ value="banktransfer"
700
+ id="banktransfer"
701
+ aria-label="Bank Transfer"
702
+ >
703
+ <span class="o-forms-input__label"
704
+ aria-hidden="true"
705
+ >
706
+ Bank Transfer
707
+ </span>
708
+ </label>
709
+ </div>
529
710
  </div>
530
711
  <div class="o-forms-input__error">
531
712
  Please enter a valid payment type
@@ -602,6 +783,21 @@ exports[`PaymentType render with isSingleTerm 1`] = `
602
783
  </span>
603
784
  </label>
604
785
  </div>
786
+ <div class="o-forms-input--radio-box__container ncf__payment-type ncf__payment-type--banktransfer ncf__hidden">
787
+ <label for="banktransfer">
788
+ <input type="radio"
789
+ name="paymentType"
790
+ value="banktransfer"
791
+ id="banktransfer"
792
+ aria-label="Bank Transfer"
793
+ >
794
+ <span class="o-forms-input__label"
795
+ aria-hidden="true"
796
+ >
797
+ Bank Transfer
798
+ </span>
799
+ </label>
800
+ </div>
605
801
  </div>
606
802
  <div class="o-forms-input__error">
607
803
  Please enter a valid payment type
@@ -691,6 +887,21 @@ exports[`PaymentType render with isSingleTermChecked 1`] = `
691
887
  </span>
692
888
  </label>
693
889
  </div>
890
+ <div class="o-forms-input--radio-box__container ncf__payment-type ncf__payment-type--banktransfer ncf__hidden">
891
+ <label for="banktransfer">
892
+ <input type="radio"
893
+ name="paymentType"
894
+ value="banktransfer"
895
+ id="banktransfer"
896
+ aria-label="Bank Transfer"
897
+ >
898
+ <span class="o-forms-input__label"
899
+ aria-hidden="true"
900
+ >
901
+ Bank Transfer
902
+ </span>
903
+ </label>
904
+ </div>
694
905
  </div>
695
906
  <div class="o-forms-input__error">
696
907
  Please enter a valid payment type
@@ -781,6 +992,21 @@ exports[`PaymentType render with value 1`] = `
781
992
  </span>
782
993
  </label>
783
994
  </div>
995
+ <div class="o-forms-input--radio-box__container ncf__payment-type ncf__payment-type--banktransfer ncf__hidden">
996
+ <label for="banktransfer">
997
+ <input type="radio"
998
+ name="paymentType"
999
+ value="banktransfer"
1000
+ id="banktransfer"
1001
+ aria-label="Bank Transfer"
1002
+ >
1003
+ <span class="o-forms-input__label"
1004
+ aria-hidden="true"
1005
+ >
1006
+ Bank Transfer
1007
+ </span>
1008
+ </label>
1009
+ </div>
784
1010
  </div>
785
1011
  <div class="o-forms-input__error">
786
1012
  Please enter a valid payment type
@@ -22,6 +22,7 @@ export function AcceptTerms ({
22
22
  isPrintProduct = false,
23
23
  specialTerms = null,
24
24
  isSingleTerm = false,
25
+ isDeferredBilling = false,
25
26
  hideConfirmTermsAndConditions = false,
26
27
  }) {
27
28
  const divProps = {
@@ -59,20 +60,20 @@ export function AcceptTerms ({
59
60
  our{' '}
60
61
  <a
61
62
  className="ncf__link--external"
62
- href="http://help.ft.com/help/legal-privacy/terms-conditions/"
63
+ href="https://help.ft.com/legal-privacy/privacy-policy/"
63
64
  target="_blank"
64
65
  rel="noopener noreferrer"
65
- data-trackable="terms-and-conditions"
66
+ data-trackable="privacy-policy-info"
66
67
  >
67
68
  privacy
68
69
  </a>{' '}
69
70
  and&nbsp;
70
71
  <a
71
72
  className="ncf__link--external"
72
- href="http://help.ft.com/help/legal-privacy/terms-conditions/"
73
+ href="https://help.ft.com/legal-privacy/cookies/"
73
74
  target="_blank"
74
75
  rel="noopener noreferrer"
75
- data-trackable="terms-and-conditions"
76
+ data-trackable="cookies-info"
76
77
  >
77
78
  cookie
78
79
  </a>{' '}
@@ -331,6 +332,15 @@ export function AcceptTerms ({
331
332
  </>
332
333
  );
333
334
 
335
+ const deferredBillingTerms = isDeferredBilling && (
336
+ <li>
337
+ <span className="terms-deferred">
338
+ Please note if you fail to make payment for your deferred billing plan within due
339
+ date your subscription will be automatically cancelled.
340
+ </span>
341
+ </li>
342
+ );
343
+
334
344
  const b2cPartnershipTerms = (
335
345
  <label className={[labelClassName, 'checkbox-two-lines'].join(' ')}>
336
346
  <input {...inputProps} />
@@ -369,6 +379,7 @@ export function AcceptTerms ({
369
379
  {corpSignupTerms}
370
380
  {transitionTerms}
371
381
  {signupTerms}
382
+ {deferredBillingTerms}
372
383
  </ul>
373
384
  <label className={labelClassName} htmlFor="termsAcceptance">
374
385
  <input {...inputProps} />
@@ -401,5 +412,6 @@ AcceptTerms.propTypes = {
401
412
  isPrintProduct: PropTypes.bool,
402
413
  specialTerms: PropTypes.string,
403
414
  isSingleTerm: PropTypes.bool,
415
+ isDeferredBilling: PropTypes.bool,
404
416
  hideConfirmTermsAndConditions: PropTypes.bool,
405
417
  };
@@ -27,6 +27,7 @@ export default {
27
27
  isSingleTerm: { control: 'boolean' },
28
28
  isNewDigitalBuyFlowConsent: { control: 'boolean' },
29
29
  hideConfirmTermsAndConditions: { control: 'boolean' },
30
+ isDeferredBilling: { control: 'boolean' },
30
31
  },
31
32
  };
32
33
 
@@ -3,8 +3,8 @@ import PropTypes from 'prop-types';
3
3
  import classNames from 'classnames';
4
4
 
5
5
  const message = {
6
- USA: 'A P.O. Box address is only deliverable by US Mail, and is subject to a delay of up to 3 business days. For delivery on the publication date, we recommend you enter a residential or business address.',
7
- CAN: 'A P.O. Box address is only deliverable by Canada Post, and is subject to a delay of up to 3 business days. For delivery on the publication day, we recommend you enter a residential or business address.',
6
+ USA: 'A P.O. Box address is only deliverable by US Mail, and is subject to a delay of up to 5 business days. For delivery on the publication date, we recommend you enter a residential or business address.',
7
+ CAN: 'A P.O. Box address is only deliverable by Canada Post, and is subject to a delay of up to 5 business days. For delivery on the publication day, we recommend you enter a residential or business address.',
8
8
  };
9
9
 
10
10
  export function DeliveryPOBox ({
@@ -34,6 +34,7 @@ export function PaymentType ({
34
34
  enableCreditcard = false,
35
35
  enableDirectdebit = false,
36
36
  enablePaypal = false,
37
+ enableBankTransfer = false,
37
38
  showLoaderOnInit = false,
38
39
  showPaypalCustomerCareMessage = false,
39
40
  fieldId = 'paymentTypeField',
@@ -90,12 +91,19 @@ export function PaymentType ({
90
91
  hide: !enableApplepay,
91
92
  };
92
93
 
94
+ const paymentTypeBankTransfer = {
95
+ id: 'banktransfer',
96
+ label: 'Bank Transfer',
97
+ hide: !enableBankTransfer,
98
+ };
99
+
93
100
  const createPaymentTypes = () => {
94
101
  const paymentTypes = [
95
102
  paymentTypeCreditCard,
96
103
  paymentTypePaypal(),
97
104
  paymentTypeDirectDebit,
98
105
  paymentTypeApplePay,
106
+ paymentTypeBankTransfer
99
107
  ];
100
108
  return paymentTypes.map((type) => {
101
109
  if (type.id === undefined) {
@@ -273,6 +281,7 @@ PaymentType.propTypes = {
273
281
  enableCreditcard: PropTypes.bool,
274
282
  enableDirectdebit: PropTypes.bool,
275
283
  enablePaypal: PropTypes.bool,
284
+ enableBankTransfer: PropTypes.bool,
276
285
  showLoaderOnInit: PropTypes.bool,
277
286
  showPaypalCustomerCareMessage: PropTypes.bool,
278
287
  fieldId: PropTypes.string,
@@ -74,4 +74,12 @@ describe('PaymentType', () => {
74
74
 
75
75
  expect(PaymentType).toRenderCorrectly(props);
76
76
  });
77
+
78
+ it('render with enableBankTransfer', () => {
79
+ const props = {
80
+ enableBankTransfer: true,
81
+ };
82
+
83
+ expect(PaymentType).toRenderCorrectly(props);
84
+ });
77
85
  });
@@ -14,4 +14,5 @@ Basic.args = {
14
14
  enableCreditcard: true,
15
15
  enablePaypal: true,
16
16
  showPaypalCustomerCareMessage: true,
17
+ enableBankTransfer: true,
17
18
  };
@@ -47,6 +47,8 @@ function AcceptTerms(_ref) {
47
47
  specialTerms = _ref$specialTerms === void 0 ? null : _ref$specialTerms,
48
48
  _ref$isSingleTerm = _ref.isSingleTerm,
49
49
  isSingleTerm = _ref$isSingleTerm === void 0 ? false : _ref$isSingleTerm,
50
+ _ref$isDeferredBillin = _ref.isDeferredBilling,
51
+ isDeferredBilling = _ref$isDeferredBillin === void 0 ? false : _ref$isDeferredBillin,
50
52
  _ref$hideConfirmTerms = _ref.hideConfirmTermsAndConditions,
51
53
  hideConfirmTermsAndConditions = _ref$hideConfirmTerms === void 0 ? false : _ref$hideConfirmTerms;
52
54
  var divProps = _objectSpread(_objectSpread({
@@ -78,16 +80,16 @@ function AcceptTerms(_ref) {
78
80
  className: "terms-auth-first-step"
79
81
  }, "For more information about how we use your data, please refer to our", ' ', /*#__PURE__*/_react["default"].createElement("a", {
80
82
  className: "ncf__link--external",
81
- href: "http://help.ft.com/help/legal-privacy/terms-conditions/",
83
+ href: "https://help.ft.com/legal-privacy/privacy-policy/",
82
84
  target: "_blank",
83
85
  rel: "noopener noreferrer",
84
- "data-trackable": "terms-and-conditions"
86
+ "data-trackable": "privacy-policy-info"
85
87
  }, "privacy"), ' ', "and\xA0", /*#__PURE__*/_react["default"].createElement("a", {
86
88
  className: "ncf__link--external",
87
- href: "http://help.ft.com/help/legal-privacy/terms-conditions/",
89
+ href: "https://help.ft.com/legal-privacy/cookies/",
88
90
  target: "_blank",
89
91
  rel: "noopener noreferrer",
90
- "data-trackable": "terms-and-conditions"
92
+ "data-trackable": "cookies-info"
91
93
  }, "cookie"), ' ', "policies."))), !hideConfirmTermsAndConditions && /*#__PURE__*/_react["default"].createElement("label", {
92
94
  className: labelClassName,
93
95
  htmlFor: "termsAcceptance"
@@ -184,6 +186,9 @@ function AcceptTerms(_ref) {
184
186
  }, "Terms & Conditions"), "."))), specialTerms && /*#__PURE__*/_react["default"].createElement("li", null, /*#__PURE__*/_react["default"].createElement("span", {
185
187
  className: "terms-special"
186
188
  }, specialTerms)));
189
+ var deferredBillingTerms = isDeferredBilling && /*#__PURE__*/_react["default"].createElement("li", null, /*#__PURE__*/_react["default"].createElement("span", {
190
+ className: "terms-deferred"
191
+ }, "Please note if you fail to make payment for your deferred billing plan within due date your subscription will be automatically cancelled."));
187
192
  var b2cPartnershipTerms = /*#__PURE__*/_react["default"].createElement("label", {
188
193
  className: [labelClassName, 'checkbox-two-lines'].join(' ')
189
194
  }, /*#__PURE__*/_react["default"].createElement("input", inputProps), /*#__PURE__*/_react["default"].createElement("span", {
@@ -199,7 +204,7 @@ function AcceptTerms(_ref) {
199
204
  }, "Please accept our terms & conditions"));
200
205
  return /*#__PURE__*/_react["default"].createElement("div", divProps, isB2cPartnership ? b2cPartnershipTerms : isRegister ? registerTerms : isAuthFirstAccount ? authFirstStepTerms : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("ul", {
201
206
  className: "o-typography-list ncf__accept-terms-list"
202
- }, !isAuthFirstPayment && b2bTerms, corpSignupTerms, transitionTerms, signupTerms), /*#__PURE__*/_react["default"].createElement("label", {
207
+ }, !isAuthFirstPayment && b2bTerms, corpSignupTerms, transitionTerms, signupTerms, deferredBillingTerms), /*#__PURE__*/_react["default"].createElement("label", {
203
208
  className: labelClassName,
204
209
  htmlFor: "termsAcceptance"
205
210
  }, /*#__PURE__*/_react["default"].createElement("input", inputProps), /*#__PURE__*/_react["default"].createElement("span", {
@@ -224,5 +229,6 @@ AcceptTerms.propTypes = {
224
229
  isPrintProduct: _propTypes["default"].bool,
225
230
  specialTerms: _propTypes["default"].string,
226
231
  isSingleTerm: _propTypes["default"].bool,
232
+ isDeferredBilling: _propTypes["default"].bool,
227
233
  hideConfirmTermsAndConditions: _propTypes["default"].bool
228
234
  };
@@ -9,8 +9,8 @@ var _react = _interopRequireDefault(require("react"));
9
9
  var _propTypes = _interopRequireDefault(require("prop-types"));
10
10
  var _classnames = _interopRequireDefault(require("classnames"));
11
11
  var message = {
12
- USA: 'A P.O. Box address is only deliverable by US Mail, and is subject to a delay of up to 3 business days. For delivery on the publication date, we recommend you enter a residential or business address.',
13
- CAN: 'A P.O. Box address is only deliverable by Canada Post, and is subject to a delay of up to 3 business days. For delivery on the publication day, we recommend you enter a residential or business address.'
12
+ USA: 'A P.O. Box address is only deliverable by US Mail, and is subject to a delay of up to 5 business days. For delivery on the publication date, we recommend you enter a residential or business address.',
13
+ CAN: 'A P.O. Box address is only deliverable by Canada Post, and is subject to a delay of up to 5 business days. For delivery on the publication day, we recommend you enter a residential or business address.'
14
14
  };
15
15
  function DeliveryPOBox(_ref) {
16
16
  var _ref$fieldId = _ref.fieldId,
@@ -38,6 +38,8 @@ function PaymentType(_ref) {
38
38
  enableDirectdebit = _ref$enableDirectdebi === void 0 ? false : _ref$enableDirectdebi,
39
39
  _ref$enablePaypal = _ref.enablePaypal,
40
40
  enablePaypal = _ref$enablePaypal === void 0 ? false : _ref$enablePaypal,
41
+ _ref$enableBankTransf = _ref.enableBankTransfer,
42
+ enableBankTransfer = _ref$enableBankTransf === void 0 ? false : _ref$enableBankTransf,
41
43
  _ref$showLoaderOnInit = _ref.showLoaderOnInit,
42
44
  showLoaderOnInit = _ref$showLoaderOnInit === void 0 ? false : _ref$showLoaderOnInit,
43
45
  _ref$showPaypalCustom = _ref.showPaypalCustomerCareMessage,
@@ -85,8 +87,13 @@ function PaymentType(_ref) {
85
87
  label: 'Apple Pay',
86
88
  hide: !enableApplepay
87
89
  };
90
+ var paymentTypeBankTransfer = {
91
+ id: 'banktransfer',
92
+ label: 'Bank Transfer',
93
+ hide: !enableBankTransfer
94
+ };
88
95
  var createPaymentTypes = function createPaymentTypes() {
89
- var paymentTypes = [paymentTypeCreditCard, paymentTypePaypal(), paymentTypeDirectDebit, paymentTypeApplePay];
96
+ var paymentTypes = [paymentTypeCreditCard, paymentTypePaypal(), paymentTypeDirectDebit, paymentTypeApplePay, paymentTypeBankTransfer];
90
97
  return paymentTypes.map(function (type) {
91
98
  if (type.id === undefined) {
92
99
  return type;
@@ -195,6 +202,7 @@ PaymentType.propTypes = {
195
202
  enableCreditcard: _propTypes["default"].bool,
196
203
  enableDirectdebit: _propTypes["default"].bool,
197
204
  enablePaypal: _propTypes["default"].bool,
205
+ enableBankTransfer: _propTypes["default"].bool,
198
206
  showLoaderOnInit: _propTypes["default"].bool,
199
207
  showPaypalCustomerCareMessage: _propTypes["default"].bool,
200
208
  fieldId: _propTypes["default"].string,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/n-conversion-forms",
3
- "version": "27.6.4",
3
+ "version": "27.7.1",
4
4
  "description": "Containing jsx components and styles for forms included on Accounts and Acqusition apps (next-signup, next-profile, next-retention, etc).",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -29,7 +29,8 @@
29
29
  "classnames": "2.3.1",
30
30
  "fetchres": "1.7.2",
31
31
  "lodash.get": "4.4.2",
32
- "n-common-static-data": "github:Financial-Times/n-common-static-data#v1.7.1"
32
+ "n-common-static-data": "github:Financial-Times/n-common-static-data#v1.7.1",
33
+ "@financial-times/n-pricing": "5.6.1"
33
34
  },
34
35
  "devDependencies": {
35
36
  "@babel/cli": "^7.10.5",
@@ -40,10 +41,9 @@
40
41
  "@financial-times/eslint-config-next": "^3.0.0",
41
42
  "@financial-times/jest-browser-resolver": "^1.0.2",
42
43
  "@financial-times/n-gage": "^8.2.0",
43
- "@financial-times/n-pricing": "5.5.0",
44
- "@storybook/addon-a11y": "^6.0.10",
45
- "@storybook/addon-essentials": "6.0.10",
46
- "@storybook/react": "^6.0.10",
44
+ "@storybook/addon-a11y": "^6.5.13",
45
+ "@storybook/addon-essentials": "6.5.13",
46
+ "@storybook/react": "^6.5.13",
47
47
  "@sucrase/jest-plugin": "^2.0.0",
48
48
  "chai": "^4.2.0",
49
49
  "check-engines": "^1.5.0",
@@ -59,7 +59,6 @@
59
59
  "jsdom": "15.1.0",
60
60
  "lint-staged": "^11.2.6",
61
61
  "mocha": "5.1.1",
62
- "node-sass": "^7.0.3",
63
62
  "pa11y-ci": "2.1.1",
64
63
  "postcss": "^7.0.32",
65
64
  "prettier": "2.4.1",
@@ -68,7 +67,8 @@
68
67
  "react": "16.14.0",
69
68
  "react-dom": "16.14.0",
70
69
  "react-is": "^16.13.1",
71
- "sass-loader": "^13.1.0",
70
+ "sass": "^1.55.0",
71
+ "sass-loader": "^10.2.1",
72
72
  "sinon": "6.3.5",
73
73
  "snyk": "1.230.7"
74
74
  },
@@ -184,7 +184,7 @@ const deliveryOptionMessages = [
184
184
  title: 'Mail',
185
185
  customId: 'ML',
186
186
  description:
187
- 'We can only deliver the newspaper to your location by postal mail which means your delivery will arrive up to 3 business days after the date of publication and will not include the HTSI Magazine. We also fly the newspaper to your location which means delivery is subject to flight delays/cancellations outside the FT\'s control. If you prefer to read the printed content on the day of publication, please proceed to subscribe to the FT ePaper - a digital replica of the print edition.',
187
+ 'We can only deliver the newspaper to your location by postal mail which means your delivery will arrive up to 5 business days after the date of publication and will not include the HTSI Magazine. We also fly the newspaper to your location which means delivery is subject to flight delays/cancellations outside the FT\'s control. If you prefer to read the printed content on the day of publication, please proceed to subscribe to the FT ePaper - a digital replica of the print edition.',
188
188
  },
189
189
  {
190
190
  deliveryFrequency: [ONLY_WEEKEND_DELIVERY_FREQ],
@@ -233,7 +233,7 @@ const deliveryOptionMessages = [
233
233
  title: 'Mail',
234
234
  customId: 'ML',
235
235
  description:
236
- 'We can only deliver the FT Weekend newspaper to your location by postal mail which means your delivery will arrive up to 3 business days after the date of publication and will not include the HTSI Magazine. We also fly the newspaper to your location which means delivery is subject to flight delays/cancellations outside the FT\'s control. If you prefer to read the printed content on the day of publication, please proceed to subscribe to the FT ePaper - a digital replica of the print edition.',
236
+ 'We can only deliver the FT Weekend newspaper to your location by postal mail which means your delivery will arrive up to 5 business days after the date of publication and will not include the HTSI Magazine. We also fly the newspaper to your location which means delivery is subject to flight delays/cancellations outside the FT\'s control. If you prefer to read the printed content on the day of publication, please proceed to subscribe to the FT ePaper - a digital replica of the print edition.',
237
237
  },
238
238
  ];
239
239