@nuskin/ns-shop 5.11.23 → 5.11.24

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-shop",
3
- "version": "5.11.23",
3
+ "version": "5.11.24",
4
4
  "description": "The description that will amaze and astound your audience when they read it",
5
5
  "main": "src/shop.js",
6
6
  "scripts": {
@@ -44,6 +44,10 @@ newShop.Payment = function(paymentData){
44
44
  this.installmentSelectedNumber = paymentData.installmentSelectedNumber;
45
45
  this.availableInstallmentPeriods = paymentData.availableInstallmentPeriods;
46
46
  this.mandateType = paymentData.mandateType;
47
+ this.storedCredentialsAgreementDate = paymentData.storedCredentialsAgreementDate;
48
+ this.storedCredentialsNetworkTransactionId = paymentData.storedCredentialsNetworkTransactionId;
49
+ this.storedCredentialsNetworkDateStr = paymentData.storedCredentialsNetworkDateStr;
50
+
47
51
 
48
52
  // Columbia Fields
49
53
  this.extTerm = paymentData.extTerm;
@@ -141,6 +145,10 @@ newShop.Payment = function(paymentData){
141
145
  payment.availableInstallmentPeriods = this.availableInstallmentPeriods;
142
146
  payment.countryCode = this.countryCode;
143
147
  payment.mandateType = this.mandateType;
148
+ payment.storedCredentialsAgreementDate = this.storedCredentialsAgreementDate;
149
+ payment.storedCredentialsNetworkTransactionId = this.storedCredentialsNetworkTransactionId;
150
+ payment.storedCredentialsNetworkDateStr = this.storedCredentialsNetworkDateStr;
151
+
144
152
 
145
153
  // Columbia Fields
146
154
  payment.extTerm = this.extTerm;
@@ -274,6 +282,16 @@ newShop.Payment = function(paymentData){
274
282
  this.setMandateType = function(newMandateType) {
275
283
  this.mandateType = newMandateType;
276
284
  };
285
+ this.setStoredCredentialsAgreementDate = function(newStoredCredentialsAgreementDate) {
286
+ this.storedCredentialsAgreementDate = newStoredCredentialsAgreementDate;
287
+ };
288
+ this.setStoredCredentialsNetworkTransactionId = function(newStoredCredentialsNetworkTransactionId) {
289
+ this.storedCredentialsNetworkTransactionId = newStoredCredentialsNetworkTransactionId;
290
+ };
291
+ this.setStoredCredentialsNetworkDateStr = function(newStoredCredentialsNetworkDateStr) {
292
+ this.storedCredentialsNetworkDateStr = newStoredCredentialsNetworkDateStr;
293
+ };
294
+
277
295
 
278
296
  // ---------------------------------------------
279
297
  //
@@ -330,7 +348,13 @@ newShop.Payment = function(paymentData){
330
348
  };
331
349
  this.getStoredCredentialsAgreementDate = function() {
332
350
  return this.storedCredentialsAgreementDate;
333
- }
351
+ };
352
+ this.getStoredCredentialsNetworkTransactionId = function() {
353
+ return this.storedCredentialsNetworkTransactionId;
354
+ };
355
+ this.getStoredCredentialsNetworkDateStr = function() {
356
+ return this.storedCredentialsNetworkDateStr;
357
+ };
334
358
  this.getDefaultPayment = function() {
335
359
  return this.defaultPayment;
336
360
  };
@@ -169,8 +169,8 @@ function populatePayment(order, salesOrder) {
169
169
  paymentToSend.CreditCard.TrackOne = "";
170
170
  if (order.selectedPayment.storedCredentialsAgreementDate) {
171
171
  paymentToSend.storedCredentialsAgreementDate = order.selectedPayment.storedCredentialsAgreementDate;
172
- paymentToSend.storedCredentialsNetworkTransactionId = order.selectedPayment.storedCredentialsNetworkTransactionId;
173
172
  paymentToSend.storedCredentialsNetworkDateStr = order.selectedPayment.storedCredentialsNetworkDateStr;
173
+ paymentToSend.storedCredentialsNetworkTransactionId = order.selectedPayment.storedCredentialsNetworkTransactionId;
174
174
  }
175
175
  if(cx8_380_accertify) {
176
176
  if (AccertifyFraudService.accertifyInMarketConfig(ConfigService.getMarketConfig())) {
@@ -40,6 +40,8 @@ class PaymentDto {
40
40
  * countryCode?: string,
41
41
  * ccToken?: string,
42
42
  * email?: string,
43
+ * storedCredentialsAgreementDate?: string,
44
+ * storedCredentialsAgreementDate?: string,
43
45
  * storedCredentialsAgreementDate?: string
44
46
  * }} [data]
45
47
  */
@@ -62,6 +64,8 @@ class PaymentDto {
62
64
  this.countryCode = data.countryCode;
63
65
  this.email = data.email;
64
66
  this.storedCredentialsAgreementDate = data.storedCredentialsAgreementDate;
67
+ this.storedCredentialsNetworkTransactionId = data.storedCredentialsNetworkTransactionId;
68
+ this.storedCredentialsNetworkDateStr = data.storedCredentialsNetworkDateStr;
65
69
  }
66
70
  }
67
71