@aptos-scp/scp-component-store-selling-features-domain-model 1.11.3 → 1.11.4

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.
@@ -45,6 +45,7 @@ export interface TotalsBeforeVoid {
45
45
  transactionTotalDeliveryFee?: Money;
46
46
  transactionTotalBagFee?: Money;
47
47
  transactionTotalPublicImprovementFee?: Money;
48
+ transactionTotalPreviouslyPaidItemFee?: Money;
48
49
  transactionTotalCustomFeeByType?: CustomFeeTotal[];
49
50
  transactionTotalShippingFee?: Money;
50
51
  transactionTotalDonations?: Money;
@@ -95,6 +96,7 @@ export declare class MerchandiseTransaction extends RetailTransaction implements
95
96
  private _transactionTotalDeliveryFee;
96
97
  private _transactionTotalBagFee;
97
98
  private _transactionTotalPublicImprovementFee;
99
+ private _transactionTotalPreviouslyPaidItemFee;
98
100
  private _transactionTotalCustomFeeByType;
99
101
  private _transactionTotalShippingFee;
100
102
  private _returnSubTotal;
@@ -206,6 +208,7 @@ export declare class MerchandiseTransaction extends RetailTransaction implements
206
208
  get transactionTotalDeliveryFee(): Money;
207
209
  get transactionTotalBagFee(): Money;
208
210
  get transactionTotalPublicImprovementFee(): Money;
211
+ get transactionTotalPreviouslyPaidItemFee(): Money;
209
212
  get transactionTotalCustomFeeByType(): CustomFeeTotal[];
210
213
  get transactionTotalShippingFee(): Money;
211
214
  get returnSubTotal(): Money;
@@ -30,6 +30,7 @@ class MerchandiseTransaction extends RetailTransaction_1.RetailTransaction {
30
30
  this._transactionTotalDeliveryFee = new scp_component_business_core_1.Money(0, accountingCurrency);
31
31
  this._transactionTotalBagFee = new scp_component_business_core_1.Money(0, accountingCurrency);
32
32
  this._transactionTotalPublicImprovementFee = new scp_component_business_core_1.Money(0, accountingCurrency);
33
+ this._transactionTotalPreviouslyPaidItemFee = new scp_component_business_core_1.Money(0, accountingCurrency);
33
34
  this._transactionTotalCustomFeeByType = undefined;
34
35
  this._transactionTotalShippingFee = new scp_component_business_core_1.Money(0, accountingCurrency);
35
36
  this._transactionSubTotal = new scp_component_business_core_1.Money(0, accountingCurrency);
@@ -162,6 +163,7 @@ class MerchandiseTransaction extends RetailTransaction_1.RetailTransaction {
162
163
  transaction._transactionTotalDeliveryFee = this._transactionTotalDeliveryFee;
163
164
  transaction._transactionTotalBagFee = this._transactionTotalBagFee;
164
165
  transaction._transactionTotalPublicImprovementFee = this._transactionTotalPublicImprovementFee;
166
+ transaction._transactionTotalPreviouslyPaidItemFee = this._transactionTotalPreviouslyPaidItemFee;
165
167
  transaction._transactionTotalCustomFeeByType = this._transactionTotalCustomFeeByType;
166
168
  transaction._transactionTotalShippingFee = this._transactionTotalShippingFee;
167
169
  transaction._returnSubTotal = this._returnSubTotal;
@@ -384,6 +386,9 @@ class MerchandiseTransaction extends RetailTransaction_1.RetailTransaction {
384
386
  get transactionTotalPublicImprovementFee() {
385
387
  return this._transactionTotalPublicImprovementFee;
386
388
  }
389
+ get transactionTotalPreviouslyPaidItemFee() {
390
+ return this._transactionTotalPreviouslyPaidItemFee;
391
+ }
387
392
  get transactionTotalCustomFeeByType() {
388
393
  return this._transactionTotalCustomFeeByType;
389
394
  }
@@ -584,7 +589,7 @@ class MerchandiseTransaction extends RetailTransaction_1.RetailTransaction {
584
589
  return this._salesperson;
585
590
  }
586
591
  updateTransactionTotalsBeforeVoid(totalsBeforeVoid) {
587
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
592
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1;
588
593
  const newTransaction = this.clone();
589
594
  //make sure all the Money entries in totalsBeforeVoid are the correct type
590
595
  if (totalsBeforeVoid) {
@@ -609,7 +614,8 @@ class MerchandiseTransaction extends RetailTransaction_1.RetailTransaction {
609
614
  totalsBeforeVoid.transactionTotalDeliveryFee = this.convertAmountToAccountingCurrency((_s = totalsBeforeVoid.transactionTotalDeliveryFee) === null || _s === void 0 ? void 0 : _s.amount);
610
615
  totalsBeforeVoid.transactionTotalBagFee = this.convertAmountToAccountingCurrency((_t = totalsBeforeVoid.transactionTotalBagFee) === null || _t === void 0 ? void 0 : _t.amount);
611
616
  totalsBeforeVoid.transactionTotalPublicImprovementFee = this.convertAmountToAccountingCurrency((_u = totalsBeforeVoid.transactionTotalPublicImprovementFee) === null || _u === void 0 ? void 0 : _u.amount);
612
- totalsBeforeVoid.transactionTotalCustomFeeByType = (_v = totalsBeforeVoid.transactionTotalCustomFeeByType) === null || _v === void 0 ? void 0 : _v.map((fee) => {
617
+ totalsBeforeVoid.transactionTotalPreviouslyPaidItemFee = this.convertAmountToAccountingCurrency((_v = totalsBeforeVoid.transactionTotalPreviouslyPaidItemFee) === null || _v === void 0 ? void 0 : _v.amount);
618
+ totalsBeforeVoid.transactionTotalCustomFeeByType = (_w = totalsBeforeVoid.transactionTotalCustomFeeByType) === null || _w === void 0 ? void 0 : _w.map((fee) => {
613
619
  var _a;
614
620
  return {
615
621
  feeId: fee.feeId,
@@ -618,11 +624,11 @@ class MerchandiseTransaction extends RetailTransaction_1.RetailTransaction {
618
624
  amount: this.convertAmountToAccountingCurrency((_a = fee.amount) === null || _a === void 0 ? void 0 : _a.amount),
619
625
  };
620
626
  });
621
- totalsBeforeVoid.transactionTotalShippingFee = this.convertAmountToAccountingCurrency((_w = totalsBeforeVoid.transactionTotalShippingFee) === null || _w === void 0 ? void 0 : _w.amount);
622
- totalsBeforeVoid.transactionTax = this.convertAmountToAccountingCurrency((_x = totalsBeforeVoid.transactionTax) === null || _x === void 0 ? void 0 : _x.amount);
623
- totalsBeforeVoid.transactionTaxableAmount = this.convertAmountToAccountingCurrency((_y = totalsBeforeVoid.transactionTaxableAmount) === null || _y === void 0 ? void 0 : _y.amount);
624
- totalsBeforeVoid.transactionTotalTendered = this.convertAmountToAccountingCurrency((_z = totalsBeforeVoid.transactionTotalTendered) === null || _z === void 0 ? void 0 : _z.amount);
625
- totalsBeforeVoid.transactionTotalExcludingTax = this.convertAmountToAccountingCurrency((_0 = totalsBeforeVoid.transactionTotalExcludingTax) === null || _0 === void 0 ? void 0 : _0.amount);
627
+ totalsBeforeVoid.transactionTotalShippingFee = this.convertAmountToAccountingCurrency((_x = totalsBeforeVoid.transactionTotalShippingFee) === null || _x === void 0 ? void 0 : _x.amount);
628
+ totalsBeforeVoid.transactionTax = this.convertAmountToAccountingCurrency((_y = totalsBeforeVoid.transactionTax) === null || _y === void 0 ? void 0 : _y.amount);
629
+ totalsBeforeVoid.transactionTaxableAmount = this.convertAmountToAccountingCurrency((_z = totalsBeforeVoid.transactionTaxableAmount) === null || _z === void 0 ? void 0 : _z.amount);
630
+ totalsBeforeVoid.transactionTotalTendered = this.convertAmountToAccountingCurrency((_0 = totalsBeforeVoid.transactionTotalTendered) === null || _0 === void 0 ? void 0 : _0.amount);
631
+ totalsBeforeVoid.transactionTotalExcludingTax = this.convertAmountToAccountingCurrency((_1 = totalsBeforeVoid.transactionTotalExcludingTax) === null || _1 === void 0 ? void 0 : _1.amount);
626
632
  }
627
633
  newTransaction._totalsBeforeVoid = totalsBeforeVoid;
628
634
  return newTransaction;
@@ -740,13 +746,13 @@ class MerchandiseTransaction extends RetailTransaction_1.RetailTransaction {
740
746
  }
741
747
  // Calculated totals
742
748
  get transactionTotal() {
743
- return this.getTransactionTotal(this.transactionTax, this.transactionSubTotal);
749
+ return this.getTransactionTotal(this.transactionTax, this.transactionSubTotal, this.transactionTotalPreviouslyPaidItemFee);
744
750
  }
745
751
  get transactionTotalExcludingPreviouslyCollected() {
746
752
  return this.getTransactionTotal(this.transactionTotalTaxExcludingPreviouslyCollected, this.transactionSubTotalExcludingPreviouslyCollected);
747
753
  }
748
754
  get transactionBalanceDue() {
749
- return this.getTransactionBalanceDue(this.transactionTotal, this.transactionTotalTendered, true);
755
+ return this.getTransactionBalanceDue(this.transactionTotal, this.transactionTotalTendered, true, this.transactionTotalPreviouslyPaidItemFee);
750
756
  }
751
757
  get transactionBalanceDueExcludingPreviouslyCollected() {
752
758
  return this.getTransactionBalanceDue(this.transactionTotalExcludingPreviouslyCollected, this.transactionTotalTenderedExcludingPreviouslyCollected, true);
@@ -789,6 +795,7 @@ class MerchandiseTransaction extends RetailTransaction_1.RetailTransaction {
789
795
  ["transaction.deliveryFee", this._transactionTotalDeliveryFee],
790
796
  ["transaction.bagFee", this._transactionTotalBagFee],
791
797
  ["transaction.publicImprovementFee", this._transactionTotalPublicImprovementFee],
798
+ ["transaction.transactionTotalPreviouslyPaidItemFee", this._transactionTotalPreviouslyPaidItemFee],
792
799
  ["transaction.customFeeByType", this._transactionTotalCustomFeeByType],
793
800
  ["transaction.shippingFee", this._transactionTotalShippingFee],
794
801
  ["transaction.subTotal", this._transactionSubTotal],
@@ -917,6 +924,7 @@ class MerchandiseTransaction extends RetailTransaction_1.RetailTransaction {
917
924
  _transactionTotalDeliveryFee: this.transactionTotalDeliveryFee,
918
925
  _transactionTotalBagFee: this._transactionTotalBagFee,
919
926
  _transactionTotalPublicImprovementFee: this._transactionTotalPublicImprovementFee,
927
+ _transactionTotalPreviouslyPaidItemFee: this.transactionTotalPreviouslyPaidItemFee,
920
928
  _transactionTotalCustomFeeByType: this._transactionTotalCustomFeeByType,
921
929
  _transactionTotalShippingFee: this._transactionTotalShippingFee,
922
930
  _transactionSubTotal: this.transactionSubTotal,
@@ -1010,6 +1018,9 @@ class MerchandiseTransaction extends RetailTransaction_1.RetailTransaction {
1010
1018
  this._transactionTotalPublicImprovementFee =
1011
1019
  transactionJsonObj._transactionTotalPublicImprovementFee &&
1012
1020
  new scp_component_business_core_1.Money(transactionJsonObj._transactionTotalPublicImprovementFee);
1021
+ this._transactionTotalPreviouslyPaidItemFee =
1022
+ transactionJsonObj._transactionTotalPreviouslyPaidItemFee &&
1023
+ new scp_component_business_core_1.Money(transactionJsonObj._transactionTotalPreviouslyPaidItemFee);
1013
1024
  this._transactionTotalCustomFeeByType = transactionJsonObj._transactionTotalCustomFeeByType;
1014
1025
  this._transactionTotalShippingFee =
1015
1026
  transactionJsonObj._transactionTotalShippingFee &&
@@ -1207,6 +1218,8 @@ class MerchandiseTransaction extends RetailTransaction_1.RetailTransaction {
1207
1218
  new scp_component_business_core_1.Money(transactionJsonObj._totalsBeforeVoid.transactionTotalBagFee),
1208
1219
  transactionTotalPublicImprovementFee: transactionJsonObj._totalsBeforeVoid.transactionTotalPublicImprovementFee &&
1209
1220
  new scp_component_business_core_1.Money(transactionJsonObj._totalsBeforeVoid.transactionTotalPublicImprovementFee),
1221
+ transactionTotalPreviouslyPaidItemFee: transactionJsonObj._totalsBeforeVoid.transactionTotalPreviouslyPaidItemFee &&
1222
+ new scp_component_business_core_1.Money(transactionJsonObj._totalsBeforeVoid.transactionTotalPreviouslyPaidItemFee),
1210
1223
  transactionTotalCustomFeeByType: transactionJsonObj._totalsBeforeVoid.transactionTotalCustomFeeByType,
1211
1224
  transactionTotalShippingFee: transactionJsonObj._totalsBeforeVoid.transactionTotalShippingFee &&
1212
1225
  new scp_component_business_core_1.Money(transactionJsonObj._totalsBeforeVoid.transactionTotalShippingFee),
@@ -1232,7 +1245,7 @@ class MerchandiseTransaction extends RetailTransaction_1.RetailTransaction {
1232
1245
  return new scp_component_business_core_1.Money(amount, this.accountingCurrency);
1233
1246
  }
1234
1247
  }
1235
- getTransactionTotal(taxAmount, subTotalAmount) {
1248
+ getTransactionTotal(taxAmount, subTotalAmount, transactionTotalPreviouslyPaidItemFee) {
1236
1249
  let taxToAddToTotal = taxAmount;
1237
1250
  if (this.taxIncludedInPrice()) {
1238
1251
  taxToAddToTotal = new scp_component_business_core_1.Money("0", this._accountingCurrency);
@@ -1243,13 +1256,23 @@ class MerchandiseTransaction extends RetailTransaction_1.RetailTransaction {
1243
1256
  taxToAddToTotal = taxToAddToTotal.minus(this.transactionTaxAdjustmentAmount);
1244
1257
  }
1245
1258
  }
1259
+ if (!transactionTotalPreviouslyPaidItemFee) {
1260
+ transactionTotalPreviouslyPaidItemFee = new scp_component_business_core_1.Money("0", this._accountingCurrency);
1261
+ }
1246
1262
  return subTotalAmount
1247
1263
  .plus(taxToAddToTotal)
1248
1264
  .plus(this.transactionTotalFee)
1249
- .plus(this.transactionTotalDonations);
1265
+ .plus(this.transactionTotalDonations)
1266
+ .plus(transactionTotalPreviouslyPaidItemFee);
1250
1267
  }
1251
- getTransactionBalanceDue(totalAmount, totalTendered, removeTotalTendered) {
1252
- let balanceDue = totalAmount;
1268
+ getTransactionBalanceDue(totalAmount, totalTendered, removeTotalTendered, transactionTotalPreviouslyPaidItemFee) {
1269
+ let balanceDue;
1270
+ if (transactionTotalPreviouslyPaidItemFee) {
1271
+ balanceDue = totalAmount.plus(transactionTotalPreviouslyPaidItemFee);
1272
+ }
1273
+ else {
1274
+ balanceDue = totalAmount;
1275
+ }
1253
1276
  if (removeTotalTendered) {
1254
1277
  balanceDue = balanceDue.minus(totalTendered.plus(this.denominationRounding));
1255
1278
  }
@@ -48,6 +48,8 @@ export declare class FeeLine extends BaseTransactionLine implements IFeeLine, IC
48
48
  private _quantityAllowed?;
49
49
  private _itemLineReference?;
50
50
  private _percent?;
51
+ private _prepaidAmount?;
52
+ private _prepaidTaxAmount?;
51
53
  private _maximumAmount?;
52
54
  private _returnRule?;
53
55
  private _sublines?;
@@ -142,6 +144,8 @@ export declare class FeeLine extends BaseTransactionLine implements IFeeLine, IC
142
144
  get maximumAmount(): Money;
143
145
  get returnRule(): string;
144
146
  get sublines(): IFeeSubline[];
147
+ get prepaidAmount(): Money;
148
+ get prepaidTaxAmount(): Money;
145
149
  static feeTypeFromJsonObject(transactionLineJsonObj: any): FeeType;
146
150
  static feeTypeFromCollectedData(collectedData: Readonly<Map<string, any>>): FeeType;
147
151
  static taxGroupIdFromJsonObject(transactionLineJsonObj: any): string;
@@ -35,6 +35,8 @@ class FeeLine extends BaseTransactionLine_1.BaseTransactionLine {
35
35
  this._returnRule = returnRule;
36
36
  this._unitPrice = undefined;
37
37
  this._sublines = undefined;
38
+ this._prepaidAmount = undefined;
39
+ this._prepaidTaxAmount = undefined;
38
40
  }
39
41
  /**
40
42
  * The create method is called by the transaction line factory to create an instance and initialize it from the
@@ -96,16 +98,10 @@ class FeeLine extends BaseTransactionLine_1.BaseTransactionLine {
96
98
  return this._feeId;
97
99
  }
98
100
  get couldAffectPricing() {
99
- if (FeeLine.isPickupFulfilmentTransaction) {
100
- return false;
101
- }
102
101
  return true;
103
102
  }
104
103
  get couldAffectTaxation() {
105
- if (FeeLine.isPickupFulfilmentTransaction) {
106
- return false;
107
- }
108
- else if (this._sublineFromOriginalItemFee !== undefined) {
104
+ if (this._sublineFromOriginalItemFee !== undefined) {
109
105
  return true;
110
106
  }
111
107
  return this.couldAffectPricing;
@@ -253,6 +249,12 @@ class FeeLine extends BaseTransactionLine_1.BaseTransactionLine {
253
249
  get sublines() {
254
250
  return this._sublines;
255
251
  }
252
+ get prepaidAmount() {
253
+ return this._prepaidAmount;
254
+ }
255
+ get prepaidTaxAmount() {
256
+ return this._prepaidTaxAmount;
257
+ }
256
258
  static feeTypeFromJsonObject(transactionLineJsonObj) {
257
259
  return transactionLineJsonObj._feeType;
258
260
  }
@@ -414,6 +416,8 @@ class FeeLine extends BaseTransactionLine_1.BaseTransactionLine {
414
416
  newTransactionFeeLine._sublines = this._sublines;
415
417
  newTransactionFeeLine._taxGroupId = this._taxGroupId;
416
418
  newTransactionFeeLine._taxByAuthority = this._taxByAuthority;
419
+ newTransactionFeeLine._prepaidAmount = this._prepaidAmount;
420
+ newTransactionFeeLine._prepaidTaxAmount = this._prepaidTaxAmount;
417
421
  newTransactionFeeLine._taxExemptDisplayName = this._taxExemptDisplayName;
418
422
  newTransactionFeeLine._taxExempt = this._taxExempt;
419
423
  newTransactionFeeLine._preTaxExemptDetails = this._preTaxExemptDetails;
@@ -498,6 +502,12 @@ class FeeLine extends BaseTransactionLine_1.BaseTransactionLine {
498
502
  if (!this._fulfillmentGroupIds && transactionLineJsonObj._fulfillmentGroupIds) {
499
503
  this._fulfillmentGroupIds = transactionLineJsonObj._fulfillmentGroupIds;
500
504
  }
505
+ this._prepaidAmount = transactionLineJsonObj._prepaidAmount
506
+ ? new scp_component_business_core_1.Money(transactionLineJsonObj._prepaidAmount)
507
+ : undefined;
508
+ this._prepaidTaxAmount = transactionLineJsonObj._prepaidTaxAmount
509
+ ? new scp_component_business_core_1.Money(transactionLineJsonObj._prepaidTaxAmount)
510
+ : undefined;
501
511
  this.loadFeesByFulfillmentGroupFromJsonObject(transactionLineJsonObj);
502
512
  }
503
513
  loadTaxInformation(transactionLineJsonObj) {
@@ -534,6 +544,7 @@ class FeeLine extends BaseTransactionLine_1.BaseTransactionLine {
534
544
  }
535
545
  }
536
546
  loadFromCollectedData(collectedData) {
547
+ const accountingCurrency = collectedData.get(Constants_1.CollectedDataKey.AccountingCurrency);
537
548
  if (!this._feeId && collectedData.has(Constants_1.CollectedDataKey.FeeId)) {
538
549
  this._feeId = collectedData.get(Constants_1.CollectedDataKey.FeeId);
539
550
  }
@@ -610,6 +621,18 @@ class FeeLine extends BaseTransactionLine_1.BaseTransactionLine {
610
621
  if (!this.taxByAuthority && collectedData.has(Constants_1.CollectedDataKey.TaxByAuthority)) {
611
622
  this._taxByAuthority = collectedData.get(Constants_1.CollectedDataKey.TaxByAuthority);
612
623
  }
624
+ if (collectedData.has(Constants_1.CollectedDataKey.PrepaidAmount)) {
625
+ this._prepaidAmount = collectedData.get(Constants_1.CollectedDataKey.PrepaidAmount);
626
+ }
627
+ else {
628
+ this._prepaidAmount = new scp_component_business_core_1.Money(0, accountingCurrency);
629
+ }
630
+ if (collectedData.has(Constants_1.CollectedDataKey.PrepaidTaxAmount)) {
631
+ this._prepaidTaxAmount = collectedData.get(Constants_1.CollectedDataKey.PrepaidTaxAmount);
632
+ }
633
+ else {
634
+ this._prepaidTaxAmount = new scp_component_business_core_1.Money(0, accountingCurrency);
635
+ }
613
636
  }
614
637
  if (collectedData.has(Constants_1.CollectedDataKey.OriginalTaxOverride)) {
615
638
  const originalTaxOverride = collectedData.get(Constants_1.CollectedDataKey.OriginalTaxOverride);
@@ -43,6 +43,8 @@ export interface IFeeLine extends ITransactionLine, IVoidableLine {
43
43
  readonly quantityAllowed?: boolean;
44
44
  readonly itemLineReference?: ISameTransactionLineReference;
45
45
  readonly percent?: string;
46
+ readonly prepaidAmount?: Money;
47
+ readonly prepaidTaxAmount?: Money;
46
48
  readonly maximumAmount?: Money;
47
49
  readonly returnRule?: string;
48
50
  readonly sublines?: IFeeSubline[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptos-scp/scp-component-store-selling-features-domain-model",
3
- "version": "1.11.3",
3
+ "version": "1.11.4",
4
4
  "description": "This component library provides the common components to handle the coordination of processing the business events from the UI.",
5
5
  "private": false,
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -57,12 +57,12 @@
57
57
  "@aptos-scp/scp-component-pricing": "^7.54.1",
58
58
  "@aptos-scp/scp-component-store-items": "^1.19.0",
59
59
  "@aptos-scp/scp-component-store-selling-core": "^18.8.2",
60
- "@aptos-scp/scp-component-taxation": "^5.25.0",
60
+ "@aptos-scp/scp-component-taxation": "^5.27.2",
61
61
  "@aptos-scp/scp-component-user": "^1.4.0",
62
62
  "@aptos-scp/scp-types-client-registration": "^1.4.0",
63
63
  "@aptos-scp/scp-types-core-config": "^2.2.1",
64
64
  "@aptos-scp/scp-types-commerce-devices": "^3.2.0",
65
- "@aptos-scp/scp-types-commerce-transaction": "^1.60.0",
65
+ "@aptos-scp/scp-types-commerce-transaction": "^1.62.1",
66
66
  "@aptos-scp/scp-types-customer": "^3.7.0",
67
67
  "@aptos-scp/scp-types-einvoice": "^1.17.0",
68
68
  "@aptos-scp/scp-types-inventory": "^2.0.0",
@@ -84,7 +84,7 @@
84
84
  "@aptos-scp/scp-component-user": "^1.4.0",
85
85
  "@aptos-scp/scp-types-client-registration": "^1.4.0",
86
86
  "@aptos-scp/scp-types-commerce-devices": "^3.2.0",
87
- "@aptos-scp/scp-types-commerce-transaction": "^1.60.0",
87
+ "@aptos-scp/scp-types-commerce-transaction": "^1.62.1",
88
88
  "@aptos-scp/scp-types-core": "^1.0.5",
89
89
  "@aptos-scp/scp-types-core-config": "^2.2.1",
90
90
  "@aptos-scp/scp-types-currency-conversion": "^1.2.0",
@@ -176,6 +176,9 @@
176
176
  "extension": [
177
177
  ".ts"
178
178
  ],
179
+ "require": [
180
+ "ts-node/register"
181
+ ],
179
182
  "reporter": [
180
183
  "text-summary",
181
184
  "html",
@@ -186,9 +189,9 @@
186
189
  "instrument": true,
187
190
  "check-coverage": true,
188
191
  "lines": 65,
189
- "statements": 65,
190
- "functions": 40,
191
- "branches": 50
192
+ "statements": 66,
193
+ "functions": 41,
194
+ "branches": 52
192
195
  },
193
196
  "husky": {
194
197
  "hooks": {