@newskit-render/my-account 0.122.0 → 0.123.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 (33) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +23 -0
  3. package/dist/Components/Elements/Toast/Toast.d.ts +4 -4
  4. package/dist/Components/Sections/Form/Payment/Zuora/index.d.ts +2 -0
  5. package/dist/Components/Sections/Form/Payment/Zuora/index.js +63 -3
  6. package/dist/Components/Sections/Form/Payment/Zuora/index.js.map +1 -1
  7. package/dist/Components/Sections/Form/Payment/Zuora/types.d.ts +23 -0
  8. package/dist/Components/Sections/Form/Payment/Zuora/types.js +3 -0
  9. package/dist/Components/Sections/Form/Payment/Zuora/types.js.map +1 -0
  10. package/dist/Components/Sections/Form/Payment/index.d.ts +3 -2
  11. package/dist/Components/Sections/Form/Payment/index.js +3 -1
  12. package/dist/Components/Sections/Form/Payment/index.js.map +1 -1
  13. package/dist/Components/Sections/Form/Payment/types.d.ts +4 -0
  14. package/dist/Components/Sections/Form/Payment/types.js +6 -1
  15. package/dist/Components/Sections/Form/Payment/types.js.map +1 -1
  16. package/dist/Components/Templates/PaymentRenderer.js.map +1 -1
  17. package/dist/Components/index.d.ts +1 -0
  18. package/dist/Components/index.js +3 -1
  19. package/dist/Components/index.js.map +1 -1
  20. package/dist/context/types.d.ts +3 -1
  21. package/dist/index.d.ts +1 -1
  22. package/dist/index.js +2 -2
  23. package/dist/index.js.map +1 -1
  24. package/dist/pages/Payment.js +15 -0
  25. package/dist/pages/Payment.js.map +1 -1
  26. package/dist/pages/types.d.ts +1 -12
  27. package/dist/pages/types.js +0 -6
  28. package/dist/pages/types.js.map +1 -1
  29. package/dist/providers/paymentProvider.d.ts +1 -1
  30. package/dist/providers/paymentProvider.js +2 -2
  31. package/dist/providers/paymentProvider.js.map +1 -1
  32. package/dist/providers/types.d.ts +1 -1
  33. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [0.123.0](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/my-account@0.122.0...@newskit-render/my-account@0.123.0) (2022-01-19)
7
+
8
+
9
+ ### Features
10
+
11
+ * **PPDSR-608:** add Zoura custom error handler ([#563](https://github.com/newscorp-ghfb/ncu-newskit-render/issues/563)) ([c1c4c22](https://github.com/newscorp-ghfb/ncu-newskit-render/commit/c1c4c224929b94d779c16d581e89f2cdefcbf529))
12
+
13
+
14
+
15
+
16
+
6
17
  # [0.122.0](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/my-account@0.121.0...@newskit-render/my-account@0.122.0) (2022-01-18)
7
18
 
8
19
 
package/README.md CHANGED
@@ -648,6 +648,8 @@ Currently only support list
648
648
  - stylePreset?: MQ<string>
649
649
  - icon?: ReactElement<NewsKitIcon>
650
650
 
651
+ - zuoraCustomErrorMessages?: see Payment section
652
+
651
653
  ## Address Form - Loqate
652
654
 
653
655
  The Address form uses [Loqate](https://www.loqate.com/en-gb/) to add address lookup functionality. For it to work you need to add LOQACCOUNT_KEY to your CircleCi context.
@@ -781,3 +783,24 @@ ZUORA_PAGE_ID - You need to configure a payment page (https://nidigitalsolutions
781
783
  ZUORA_CURRENCY - The currency code - E.g USD
782
784
  ZUORA_RSA_SIGNATURE_URL - Please check (https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0)
783
785
  ZUORA_RSA_SIGNATURE_URI - Please check (https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0)
786
+
787
+ Zoura's validation error messages can be overriden in the context:
788
+
789
+ - zuoraCustomErrorMessages?:
790
+ - creditCardHolderName: string
791
+ - creditCardNumber:
792
+ - one: string
793
+ - two: string
794
+ - three: string
795
+ - cardSecurityCode:
796
+ - one: string
797
+ - four: string
798
+ - creditCardExpiration: string
799
+ - creditCardPostalCode: string
800
+ - creditCardCountry: string
801
+
802
+ These correspond to Zoura's retured error code:
803
+ 001: Required field not completed - detault for single property or one
804
+ 002: Invalid card number - two
805
+ 003: Invalid card type - three
806
+ 004: Invalid CVV number - four
@@ -2,23 +2,23 @@ import React from 'react';
2
2
  import { ToastProps, ToastType } from './types';
3
3
  export declare const getToast: (type: ToastType, fieldType: string, messageOverride?: string | undefined, errorMessages?: {
4
4
  [key: string]: {
5
- success?: string | undefined;
6
5
  error?: string | undefined;
6
+ success?: string | undefined;
7
7
  pending?: string | undefined;
8
8
  };
9
9
  } | undefined, genericErrorMessage?: {
10
- success?: string | undefined;
11
10
  error?: string | undefined;
11
+ success?: string | undefined;
12
12
  pending?: string | undefined;
13
13
  } | undefined) => React.FC<ToastProps>;
14
14
  export declare const getMessage: (fieldType: string, type: string, genericErrorMessage?: {
15
- success?: string | undefined;
16
15
  error?: string | undefined;
16
+ success?: string | undefined;
17
17
  pending?: string | undefined;
18
18
  } | undefined, errorMessages?: {
19
19
  [key: string]: {
20
- success?: string | undefined;
21
20
  error?: string | undefined;
21
+ success?: string | undefined;
22
22
  pending?: string | undefined;
23
23
  };
24
24
  } | undefined) => string | undefined;
@@ -1,4 +1,6 @@
1
1
  import React from 'react';
2
+ import { ZuoraPaymentData, ZuoraCustomErrorMessages } from './types';
2
3
  export declare const addZuoraScript: (onLoadCallback: () => void) => void;
3
4
  declare const Zuora: React.FC;
5
+ export { ZuoraPaymentData, ZuoraCustomErrorMessages };
4
6
  export default Zuora;
@@ -33,8 +33,9 @@ var addZuoraScript = function (onLoadCallback) {
33
33
  };
34
34
  exports.addZuoraScript = addZuoraScript;
35
35
  var Zuora = function () {
36
- var _a = (0, context_1.useAccountContext)(), paymentData = _a.paymentData, handleError = _a.handleError, baseUrl = _a.baseUrl, errorMessages = _a.errorMessages;
36
+ var _a = (0, context_1.useAccountContext)(), paymentData = _a.paymentData, handleError = _a.handleError, baseUrl = _a.baseUrl, errorMessages = _a.errorMessages, zuoraCustomErrorMessages = _a.zuoraCustomErrorMessages;
37
37
  var _b = paymentData, signature = _b.signature, token = _b.token, tenantId = _b.tenantId, key = _b.key, pageId = _b.pageId, url = _b.url;
38
+ var _c = zuoraCustomErrorMessages, creditCardHolderName = _c.creditCardHolderName, creditCardNumber = _c.creditCardNumber, cardSecurityCode = _c.cardSecurityCode, creditCardExpiration = _c.creditCardExpiration, creditCardPostalCode = _c.creditCardPostalCode, creditCardCountry = _c.creditCardCountry;
38
39
  var router = (0, router_1.useRouter)();
39
40
  var hostedPageCallback = function (response) {
40
41
  if (response.success) {
@@ -49,9 +50,68 @@ var Zuora = function () {
49
50
  handleError && handleError('payment', errorMessages);
50
51
  }
51
52
  };
53
+ var errorMessageCallback = function (key, code, message, rawGatewayInfo) {
54
+ var errorMessage = message;
55
+ if (key != 'error') {
56
+ switch (key) {
57
+ case 'creditCardHolderName':
58
+ if (code == '001') {
59
+ errorMessage = creditCardHolderName;
60
+ }
61
+ break;
62
+ case 'creditCardNumber':
63
+ if (code == '001') {
64
+ errorMessage = creditCardNumber.one;
65
+ }
66
+ if (code == '002') {
67
+ errorMessage = creditCardNumber.two;
68
+ }
69
+ if (code == '003') {
70
+ errorMessage = creditCardNumber.three;
71
+ }
72
+ break;
73
+ case 'cardSecurityCode':
74
+ if (code == '001') {
75
+ errorMessage = cardSecurityCode.one;
76
+ }
77
+ if (code == '004') {
78
+ errorMessage = cardSecurityCode.four;
79
+ }
80
+ break;
81
+ case 'creditCardExpirationYear':
82
+ case 'creditCardExpirationMonth':
83
+ if (code == '001') {
84
+ errorMessage = creditCardExpiration;
85
+ }
86
+ break;
87
+ case 'creditCardPostalCode':
88
+ if (code == '001') {
89
+ errorMessage = creditCardPostalCode;
90
+ }
91
+ break;
92
+ case 'creditCardCountry':
93
+ if (code == '001') {
94
+ errorMessage = creditCardCountry;
95
+ }
96
+ break;
97
+ }
98
+ }
99
+ else {
100
+ if (code == 'unknown' && rawGatewayInfo) {
101
+ // customize error message based on the rawGatewayInfo
102
+ errorMessage = rawGatewayInfo.responseCode + ": " + rawGatewayInfo.responseMessage;
103
+ }
104
+ else {
105
+ errorMessage =
106
+ 'Validation failed on server-side, Please check your input values.';
107
+ }
108
+ }
109
+ ;
110
+ window.Z.sendErrorMessageToHpm(key, errorMessage);
111
+ };
52
112
  var loadHostedPage = function () {
53
113
  ;
54
- window.Z.render({
114
+ window.Z.renderWithErrorHandler({
55
115
  tenantId: tenantId,
56
116
  token: token,
57
117
  signature: signature,
@@ -62,7 +122,7 @@ var Zuora = function () {
62
122
  id: pageId,
63
123
  }, {
64
124
  creditCardCountry: 'GBR',
65
- }, hostedPageCallback);
125
+ }, hostedPageCallback, errorMessageCallback);
66
126
  };
67
127
  (0, react_1.useEffect)(function () {
68
128
  if (typeof window !== 'undefined') {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/Components/Sections/Form/Payment/Zuora/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0D;AAC1D,6CAAwC;AAExC,sCAAmD;AAE5C,IAAM,cAAc,GAAG,UAAC,cAA0B;IACvD,IAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAA;IAC/C,MAAM,CAAC,GAAG;QACR,mEAAmE,CAAA;IACrE,MAAM,CAAC,KAAK,GAAG,IAAI,CAAA;IACnB,MAAM,CAAC,MAAM,GAAG,cAAM,OAAA,cAAc,EAAE,EAAhB,CAAgB,CAAA;IACtC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAA;AACnC,CAAC,CAAA;AAPY,QAAA,cAAc,kBAO1B;AAED,IAAM,KAAK,GAAa;IAChB,IAAA,KACJ,IAAA,2BAAiB,GAAE,EADb,WAAW,iB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mB;oBACtB,IAAI,IAAI,IAAI,KAAK,EAAE;wBACjB,YAAY,GAAG,iBAAiB,CAAA;qBACjC;oBACD,MAAK;aACR;SACF;aAAM;YACL,IAAI,IAAI,IAAI,SAAS,IAAI,cAAc,EAAE;gBACvC,sDAAsD;gBACtD,YAAY,GAAM,cAAc,CAAC,YAAY,UAAK,cAAc,CAAC,eAAiB,CAAA;aACnF;iBAAM;gBACL,YAAY;oBACV,mEAAmE,CAAA;aACtE;SACF;QACD,CAAC;QAAC,MAAc,CAAC,CAAC,CAAC,qBAAqB,CAAC,GAAG,EAAE,YAAY,CAAC,CAAA;IAC7D,CAAC,CAAA;IAED,IAAM,cAAc,GAAG;QACrB,CAAC;QAAC,MAAc,CAAC,CAAC,CAAC,sBAAsB,CACvC;YACE,QAAQ,UAAA;YACR,KAAK,OAAA;YACL,SAAS,WAAA;YACT,GAAG,KAAA;YACH,KAAK,EAAE,QAAQ;YACf,aAAa,EAAE,MAAM;YACrB,GAAG,KAAA;YACH,EAAE,EAAE,MAAM;SACX,EACD;YACE,iBAAiB,EAAE,KAAK;SACzB,EACD,kBAAkB,EAClB,oBAAoB,CACrB,CAAA;IACH,CAAC,CAAA;IAED,IAAA,iBAAS,EAAC;QACR,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;YACjC,IAAA,sBAAc,EAAC,cAAc,CAAC,CAAA;SAC/B;IACH,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,OAAO,CACL;QACE,uCAAK,EAAE,EAAC,eAAe,GAAO,CAC7B,CACJ,CAAA;AACH,CAAC,CAAA;AAGD,kBAAe,KAAK,CAAA"}
@@ -0,0 +1,23 @@
1
+ export interface ZuoraCustomErrorMessages {
2
+ creditCardHolderName: string;
3
+ creditCardNumber: {
4
+ one: string;
5
+ two: string;
6
+ three: string;
7
+ };
8
+ cardSecurityCode: {
9
+ one: string;
10
+ four: string;
11
+ };
12
+ creditCardExpiration: string;
13
+ creditCardPostalCode: string;
14
+ creditCardCountry: string;
15
+ }
16
+ export interface ZuoraPaymentData {
17
+ signature: string;
18
+ token: string;
19
+ tenantId: number;
20
+ key: string;
21
+ pageId: string;
22
+ url: string;
23
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/Components/Sections/Form/Payment/Zuora/types.ts"],"names":[],"mappings":""}
@@ -1,3 +1,4 @@
1
1
  import Stripe from './Stripe';
2
- import Zuora from './Zuora';
3
- export { Stripe, Zuora };
2
+ import Zuora, { ZuoraPaymentData, ZuoraCustomErrorMessages } from './Zuora';
3
+ import { PaymentProvider } from './types';
4
+ export { Stripe, Zuora, ZuoraPaymentData, ZuoraCustomErrorMessages, PaymentProvider, };
@@ -3,9 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Zuora = exports.Stripe = void 0;
6
+ exports.PaymentProvider = exports.Zuora = exports.Stripe = void 0;
7
7
  var Stripe_1 = __importDefault(require("./Stripe"));
8
8
  exports.Stripe = Stripe_1.default;
9
9
  var Zuora_1 = __importDefault(require("./Zuora"));
10
10
  exports.Zuora = Zuora_1.default;
11
+ var types_1 = require("./types");
12
+ Object.defineProperty(exports, "PaymentProvider", { enumerable: true, get: function () { return types_1.PaymentProvider; } });
11
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/Components/Sections/Form/Payment/index.tsx"],"names":[],"mappings":";;;;;;AAAA,oDAA6B;AAGpB,iBAHF,gBAAM,CAGE;AAFf,kDAA2B;AAEV,gBAFV,eAAK,CAEU"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/Components/Sections/Form/Payment/index.tsx"],"names":[],"mappings":";;;;;;AAAA,oDAA6B;AAK3B,iBALK,gBAAM,CAKL;AAJR,kDAA2E;AAKzE,gBALK,eAAK,CAKL;AAJP,iCAAyC;AAOvC,gGAPO,uBAAe,OAOP"}
@@ -7,3 +7,7 @@ export declare enum PaymentTypes {
7
7
  'unionpay' = "unionpay",
8
8
  'jcb' = "jcb"
9
9
  }
10
+ export declare enum PaymentProvider {
11
+ Zuora = "Zuora",
12
+ Stripe = "Stripe"
13
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PaymentTypes = void 0;
3
+ exports.PaymentProvider = exports.PaymentTypes = void 0;
4
4
  var PaymentTypes;
5
5
  (function (PaymentTypes) {
6
6
  PaymentTypes["visa"] = "visa";
@@ -11,4 +11,9 @@ var PaymentTypes;
11
11
  PaymentTypes["unionpay"] = "unionpay";
12
12
  PaymentTypes["jcb"] = "jcb";
13
13
  })(PaymentTypes = exports.PaymentTypes || (exports.PaymentTypes = {}));
14
+ var PaymentProvider;
15
+ (function (PaymentProvider) {
16
+ PaymentProvider["Zuora"] = "Zuora";
17
+ PaymentProvider["Stripe"] = "Stripe";
18
+ })(PaymentProvider = exports.PaymentProvider || (exports.PaymentProvider = {}));
14
19
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/Components/Sections/Form/Payment/types.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,6BAAe,CAAA;IACf,yCAA2B,CAAA;IAC3B,qCAAuB,CAAA;IACvB,iCAAmB,CAAA;IACnB,wCAA0B,CAAA;IAC1B,qCAAuB,CAAA;IACvB,2BAAa,CAAA;AACf,CAAC,EARW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAQvB"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/Components/Sections/Form/Payment/types.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,6BAAe,CAAA;IACf,yCAA2B,CAAA;IAC3B,qCAAuB,CAAA;IACvB,iCAAmB,CAAA;IACnB,wCAA0B,CAAA;IAC1B,qCAAuB,CAAA;IACvB,2BAAa,CAAA;AACf,CAAC,EARW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAQvB;AAED,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,kCAAe,CAAA;IACf,oCAAiB,CAAA;AACnB,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"PaymentRenderer.js","sourceRoot":"","sources":["../../../src/Components/Templates/PaymentRenderer.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,gDAAyB;AACzB,uEAA0D;AAC1D,yCAAiD;AACjD,yCAAqE;AACrE,oDAAwD;AAG3C,QAAA,YAAY,GAAG;IAC1B,MAAM,kBAAA;IACN,KAAK,iBAAA;CACN,CAAA;AAED,IAAM,eAAe,GAAa;IAC1B,IAAA,KAAgD,IAAA,2BAAiB,GAAE,EAAjE,MAAM,YAAA,EAAE,gBAAgB,sBAAA,EAAE,eAAe,qBAAwB,CAAA;IACzE,IAAM,iBAAiB,GAAG,oBAAY,CAAC,eAAkC,CAAC,CAAA;IAE1E,IAAI,MAAM,IAAI,MAAM,CAAC,UAAU,EAAE;QAC/B,MAAM,CAAC,UAAU,CAAC,IAAI,GAAG,IAAA,wBAAc,EAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,GAAG,CAAA;KACvE;IAED,OAAO,CACL;QACE,8BAAC,0BAAM,eAAK,MAAM,EAAI;QACtB,8BAAC,iBAAiB,mBACA,eAAe,UAAO,EACtC,gBAAgB,EAAE,IAAA,+BAAqB,EAAC,gBAAgB,CAAC,GACzD,CACD,CACJ,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,eAAe,CAAA"}
1
+ {"version":3,"file":"PaymentRenderer.js","sourceRoot":"","sources":["../../../src/Components/Templates/PaymentRenderer.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,gDAAyB;AACzB,uEAA0D;AAC1D,yCAAiD;AACjD,yCAAqE;AACrE,oDAAyE;AAE5D,QAAA,YAAY,GAAG;IAC1B,MAAM,kBAAA;IACN,KAAK,iBAAA;CACN,CAAA;AAED,IAAM,eAAe,GAAa;IAC1B,IAAA,KAAgD,IAAA,2BAAiB,GAAE,EAAjE,MAAM,YAAA,EAAE,gBAAgB,sBAAA,EAAE,eAAe,qBAAwB,CAAA;IACzE,IAAM,iBAAiB,GAAG,oBAAY,CAAC,eAAkC,CAAC,CAAA;IAE1E,IAAI,MAAM,IAAI,MAAM,CAAC,UAAU,EAAE;QAC/B,MAAM,CAAC,UAAU,CAAC,IAAI,GAAG,IAAA,wBAAc,EAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,GAAG,CAAA;KACvE;IAED,OAAO,CACL;QACE,8BAAC,0BAAM,eAAK,MAAM,EAAI;QACtB,8BAAC,iBAAiB,mBACA,eAAe,UAAO,EACtC,gBAAgB,EAAE,IAAA,+BAAqB,EAAC,gBAAgB,CAAC,GACzD,CACD,CACJ,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,eAAe,CAAA"}
@@ -1 +1,2 @@
1
1
  export { PastDueBannerExternal } from './Elements/PastDueBanner';
2
+ export { PaymentProvider } from './Sections/Form/Payment';
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PastDueBannerExternal = void 0;
3
+ exports.PaymentProvider = exports.PastDueBannerExternal = void 0;
4
4
  var PastDueBanner_1 = require("./Elements/PastDueBanner");
5
5
  Object.defineProperty(exports, "PastDueBannerExternal", { enumerable: true, get: function () { return PastDueBanner_1.PastDueBannerExternal; } });
6
+ var Payment_1 = require("./Sections/Form/Payment");
7
+ Object.defineProperty(exports, "PaymentProvider", { enumerable: true, get: function () { return Payment_1.PaymentProvider; } });
6
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Components/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgE;AAAvD,sHAAA,qBAAqB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Components/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgE;AAAvD,sHAAA,qBAAqB,OAAA;AAC9B,mDAAyD;AAAhD,0GAAA,eAAe,OAAA"}
@@ -4,7 +4,8 @@ import { ContentListItem, ContentListViewProps } from '../Components/Sections/Co
4
4
  import { TitleOverrides, DescriptionOverrides, FooterContext, FooterContextOverrides, HeaderProps, ButtonGroupProps, InputText, NavigationPrimaryProps } from '@newskit-render/shared-components';
5
5
  import { MQ, InlineMessageProps } from 'newskit';
6
6
  import { HeadProps } from '../Components/Elements/Head';
7
- import { UserData, Data, ZuoraPaymentData, PaymentProvider } from '../pages/types';
7
+ import { UserData, Data } from '../pages/types';
8
+ import { ZuoraPaymentData, ZuoraCustomErrorMessages, PaymentProvider } from '../Components/Sections/Form/Payment';
8
9
  import { ErrorMessage, GenericErrorMessage } from '../Components/Elements/Toast';
9
10
  import { CommentingNotificationsProps } from '../Components/Sections/Form/CommentingNotifications';
10
11
  import { CancellationReasonProps } from '../Components/Sections/Form/CancellationReason';
@@ -77,6 +78,7 @@ export interface ContextOptions {
77
78
  env?: Record<string, unknown>;
78
79
  data?: Data;
79
80
  paymentData?: ZuoraPaymentData;
81
+ zuoraCustomErrorMessages?: ZuoraCustomErrorMessages;
80
82
  paymentProvider?: PaymentProvider;
81
83
  userData?: Partial<UserData>;
82
84
  head?: HeadProps;
package/dist/index.d.ts CHANGED
@@ -11,4 +11,4 @@ export { ContextOptions } from './context';
11
11
  export { componentMap } from './Components/Templates';
12
12
  export { PastDueBannerExternal } from './Components';
13
13
  export { filterSubscriptions } from './helpers';
14
- export { PaymentProvider } from './pages/types';
14
+ export { PaymentProvider } from './Components';
package/dist/index.js CHANGED
@@ -26,6 +26,6 @@ var Components_1 = require("./Components");
26
26
  Object.defineProperty(exports, "PastDueBannerExternal", { enumerable: true, get: function () { return Components_1.PastDueBannerExternal; } });
27
27
  var helpers_1 = require("./helpers");
28
28
  Object.defineProperty(exports, "filterSubscriptions", { enumerable: true, get: function () { return helpers_1.filterSubscriptions; } });
29
- var types_1 = require("./pages/types");
30
- Object.defineProperty(exports, "PaymentProvider", { enumerable: true, get: function () { return types_1.PaymentProvider; } });
29
+ var Components_2 = require("./Components");
30
+ Object.defineProperty(exports, "PaymentProvider", { enumerable: true, get: function () { return Components_2.PaymentProvider; } });
31
31
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,0DAAuC;AACvC,oDAAiC;AACjC,kDAA+B;AAC/B,qDAAkC;AAClC,iEAA8C;AAC9C,+DAA4C;AAC5C,gDAA6B;AAC7B,wCAAqB;AACrB,uDAAoC;AAEpC,oDAAqD;AAA5C,yGAAA,YAAY,OAAA;AACrB,2CAAoD;AAA3C,mHAAA,qBAAqB,OAAA;AAC9B,qCAA+C;AAAtC,8GAAA,mBAAmB,OAAA;AAC5B,uCAA+C;AAAtC,wGAAA,eAAe,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,0DAAuC;AACvC,oDAAiC;AACjC,kDAA+B;AAC/B,qDAAkC;AAClC,iEAA8C;AAC9C,+DAA4C;AAC5C,gDAA6B;AAC7B,wCAAqB;AACrB,uDAAoC;AAEpC,oDAAqD;AAA5C,yGAAA,YAAY,OAAA;AACrB,2CAAoD;AAA3C,mHAAA,qBAAqB,OAAA;AAC9B,qCAA+C;AAAtC,8GAAA,mBAAmB,OAAA;AAC5B,2CAA8C;AAArC,6GAAA,eAAe,OAAA"}
@@ -54,6 +54,21 @@ exports.paymentContext = {
54
54
  },
55
55
  showDivider: true,
56
56
  },
57
+ zuoraCustomErrorMessages: {
58
+ creditCardHolderName: "Please enter the card holder's name.",
59
+ creditCardNumber: {
60
+ one: 'Please enter the card number.',
61
+ two: 'That doesn’t look like a valid card number. Please try again.',
62
+ three: 'Your card type is invalid. Please check the number',
63
+ },
64
+ cardSecurityCode: {
65
+ one: "Please enter the card's security code.",
66
+ four: "The card's security code looks incorrect. Please try again.",
67
+ },
68
+ creditCardExpiration: "Please enter the card's expiration date.",
69
+ creditCardPostalCode: 'Please enter the billing postcode.',
70
+ creditCardCountry: 'Please enter the Country.',
71
+ },
57
72
  genericErrorMessage: {
58
73
  pending: 'Updating your Payment method',
59
74
  error: "Sorry, we're unable to save your Payment method right now. Please try again or come back later.",
@@ -1 +1 @@
1
- {"version":3,"file":"Payment.js","sourceRoot":"","sources":["../../src/pages/Payment.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAyB;AACzB,mEAAiE;AACjE,mCAAuC;AAGvC,0CAAuC;AAEvC,4DAIkC;AAElC,IAAM,SAAS,GAAG,0BAA0B,CAAA;AAE/B,QAAA,cAAc,GAAmB;IAC5C,OAAO,EAAE,oBAAQ;IACjB,IAAI,EAAE;QACJ,SAAS,WAAA;KACV;IACD,MAAM,EAAE;QACN,KAAK,EAAE,SAAS;QAChB,UAAU,EAAE;YACV,IAAI,EAAE,oCAAoC;YAC1C,YAAY,EAAE,0CAA0C;YACxD,IAAI,EAAE,MAAM;SACb;QACD,WAAW,EAAE,IAAI;KAClB;IACD,mBAAmB,EAAE;QACnB,OAAO,EAAE,8BAA8B;QACvC,KAAK,EACH,iGAAiG;QACnG,OAAO,EAAE,uCAAuC;KACjD;IACD,aAAa,EAAE;QACb,cAAc,EAAE;YACd,KAAK,EAAE,0BAA0B;SAClC;QACD,OAAO,EAAE,EAAE,KAAK,EAAE,sBAAsB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ACpC,GAAG,EAAE,+DAA+D;YACpE,KAAK,EAAE,oDAAoD;SAC5D;QACD,gBAAgB,EAAE;YAChB,GAAG,EAAE,wCAAwC;YAC7C,IAAI,EAAE,6DAA6D;SACpE;QACD,oBAAoB,EAAE,0CAA0C;QAChE,oBAAoB,EAAE,oCAAoC;QAC1D,iBAAiB,EAAE,2BAA2B;KAC/C;IACD,mBAAmB,EAAE;QACnB,OAAO,EAAE,8BAA8B;QACvC,KAAK,EACH,iGAAiG;QACnG,OAAO,EAAE,uCAAuC;KACjD;IACD,aAAa,EAAE;QACb,cAAc,EAAE;YACd,KAAK,EAAE,0BAA0B;SAClC;QACD,OAAO,EAAE,EAAE,KAAK,EAAE,sBAAsB,EAAE;KAC3C;CACF,CAAA;AAEM,IAAM,OAAO,GAA2B,UAAC,EAQ/C;QAPC,WAAW,iBAAA,EACX,WAAW,iBAAA,EACX,QAAQ,cAAA,EACR,OAAO,aAAA,EACP,UAAU,gBAAA,EACV,GAAG,SAAA,EACH,eAAe,qBAAA;IAEf,IAAM,eAAe,yBAChB,CAAC,OAAO,iBACN,sBAAc,CAClB,CAAC,KACF,WAAW,aAAA,EACX,UAAU,YAAA,EACV,eAAe,iBAAA,EACf,GAAG,KAAA,EACH,WAAW,8BAAA,EACX,aAAa,gCAAA,EACb,aAAa,gCAAA,GACd,CAAA;IAED,OAAO,CACL;QACE,8BAAC,mBAAM,IACL,OAAO,EAAE,eAAe,EACxB,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ;YAElB,8BAAC,2BAAe,OAAG,CACZ;QACT,8BAAC,uBAAa,IAAC,QAAQ,EAAE,eAAe,GAAkB,CACzD,CACJ,CAAA;AACH,CAAC,CAAA;AAlCY,QAAA,OAAO,WAkCnB"}
@@ -1,5 +1,6 @@
1
1
  import { UncompiledTheme } from 'newskit';
2
2
  import { ContextOptions } from '../context';
3
+ import { ZuoraPaymentData, PaymentProvider } from '../Components/Sections/Form/Payment';
3
4
  export declare type AddressData = {
4
5
  country: Country;
5
6
  line1: string;
@@ -111,21 +112,9 @@ export interface Data {
111
112
  validationSchemaKey?: string;
112
113
  fields?: Fields[] | AddressData;
113
114
  }
114
- export interface ZuoraPaymentData {
115
- signature: string;
116
- token: string;
117
- tenantId: number;
118
- key: string;
119
- pageId: string;
120
- url: string;
121
- }
122
115
  export interface EditFieldDataProps extends Data {
123
116
  type: string;
124
117
  }
125
- export declare enum PaymentProvider {
126
- Zuora = "Zuora",
127
- Stripe = "Stripe"
128
- }
129
118
  export interface PaymentProps extends BasePagePropsWithValidation {
130
119
  paymentData: ZuoraPaymentData;
131
120
  paymentProvider: PaymentProvider;
@@ -1,9 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PaymentProvider = void 0;
4
- var PaymentProvider;
5
- (function (PaymentProvider) {
6
- PaymentProvider["Zuora"] = "Zuora";
7
- PaymentProvider["Stripe"] = "Stripe";
8
- })(PaymentProvider = exports.PaymentProvider || (exports.PaymentProvider = {}));
9
3
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/pages/types.ts"],"names":[],"mappings":";;;AA8JA,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,kCAAe,CAAA;IACf,oCAAiB,CAAA;AACnB,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/pages/types.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- import { PaymentProvider } from '../pages/types';
1
+ import { PaymentProvider } from '../Components/Sections/Form/Payment';
2
2
  import { ProviderArgs } from './types';
3
3
  export declare const paymentProvider: ({ context }: ProviderArgs) => Promise<{
4
4
  paymentProvider: PaymentProvider | undefined;
@@ -49,10 +49,10 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
49
49
  var _a;
50
50
  Object.defineProperty(exports, "__esModule", { value: true });
51
51
  exports.paymentProvider = void 0;
52
- var types_1 = require("../pages/types");
52
+ var Payment_1 = require("../Components/Sections/Form/Payment");
53
53
  var zuoraPaymentProvider_1 = require("./zuoraPaymentProvider");
54
54
  var providerMap = (_a = {},
55
- _a[types_1.PaymentProvider.Zuora] = zuoraPaymentProvider_1.zuoraPaymentProvider,
55
+ _a[Payment_1.PaymentProvider.Zuora] = zuoraPaymentProvider_1.zuoraPaymentProvider,
56
56
  _a);
57
57
  var paymentProvider = function (_a) {
58
58
  var context = _a.context;
@@ -1 +1 @@
1
- {"version":3,"file":"paymentProvider.js","sourceRoot":"","sources":["../../src/providers/paymentProvider.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wCAAgD;AAEhD,+DAA6D;AAE7D,IAAM,WAAW;IACf,GAAC,uBAAe,CAAC,KAAK,IAAG,2CAAoB;OAC9C,CAAA;AAEM,IAAM,eAAe,GAAG,UAAO,EAAyB;QAAvB,OAAO,aAAA;;;;;;oBACrC,eAAe,GAAK,OAAiC,gBAAtC,CAAsC;oBAEvD,QAAQ,GAAG,WAAW,CAAC,eAAkC,CAAC,CAAA;oBAChE,IAAI,CAAC,QAAQ,EAAE;wBACb,sBAAO;gCACL,eAAe,iBAAA;6BAChB,EAAA;qBACF;oBACoB,qBAAM,QAAQ,EAAE,EAAA;;oBAA/B,YAAY,GAAG,SAAgB;oBAErC,sBAAO;4BACL,WAAW,wBACN,YAAY,KACf,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,aAAa,EACjC,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,uBAAuB,GACzC;4BACD,eAAe,iBAAA;yBAChB,EAAA;;;;CACF,CAAA;AAnBY,QAAA,eAAe,mBAmB3B"}
1
+ {"version":3,"file":"paymentProvider.js","sourceRoot":"","sources":["../../src/providers/paymentProvider.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAAqE;AAErE,+DAA6D;AAE7D,IAAM,WAAW;IACf,GAAC,yBAAe,CAAC,KAAK,IAAG,2CAAoB;OAC9C,CAAA;AAEM,IAAM,eAAe,GAAG,UAAO,EAAyB;QAAvB,OAAO,aAAA;;;;;;oBACrC,eAAe,GAAK,OAAiC,gBAAtC,CAAsC;oBAEvD,QAAQ,GAAG,WAAW,CAAC,eAAkC,CAAC,CAAA;oBAChE,IAAI,CAAC,QAAQ,EAAE;wBACb,sBAAO;gCACL,eAAe,iBAAA;6BAChB,EAAA;qBACF;oBACoB,qBAAM,QAAQ,EAAE,EAAA;;oBAA/B,YAAY,GAAG,SAAgB;oBAErC,sBAAO;4BACL,WAAW,wBACN,YAAY,KACf,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,aAAa,EACjC,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,uBAAuB,GACzC;4BACD,eAAe,iBAAA;yBAChB,EAAA;;;;CACF,CAAA;AAnBY,QAAA,eAAe,mBAmB3B"}
@@ -1,4 +1,4 @@
1
- import { PaymentProvider } from './../pages/types';
1
+ import { PaymentProvider } from '../Components/Sections/Form/Payment';
2
2
  import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
3
3
  import { GetServerSidePropsContext } from 'next';
4
4
  export declare type ServerSidePropsContext = GetServerSidePropsContext & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newskit-render/my-account",
3
- "version": "0.122.0",
3
+ "version": "0.123.0",
4
4
  "description": "Newskit Render",
5
5
  "author": "",
6
6
  "license": "UNLICENSED",