rerobe-js-orm 3.8.9 → 3.9.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.
@@ -549,7 +549,7 @@ class OrderHelpers {
549
549
  }
550
550
  buildReceiptObjFromOrder({ order, merchant, merchantLogoUrl = '', receiptNumber = '', additionalInfo = '', }) {
551
551
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
552
- const { address: merchantAddress, legalName, contactEmail, phone = '', organizationNumber = '', primaryDomain, currency: storeCurrencyCode, } = merchant;
552
+ const { address: merchantAddress, legalName, name, contactEmail, phone = '', organizationNumber = '', primaryDomain, currency: storeCurrencyCode, } = merchant;
553
553
  const currencyCode = ((_a = order.totalPricePresentment) === null || _a === void 0 ? void 0 : _a.currencyCode) || storeCurrencyCode;
554
554
  const presentmentLocale = (0, Utilities_1.getPresentmentLocaleByCurrencyCode)(currencyCode);
555
555
  const mapLineItem = (l) => {
@@ -632,7 +632,7 @@ class OrderHelpers {
632
632
  };
633
633
  const paymentTerminalInfo = this.getPaymentTerminalReceiptInfo(order);
634
634
  const receiptLabels = this.generateReceiptLabels(presentmentLocale, (_b = order.paymentType) !== null && _b !== void 0 ? _b : '', (_c = paymentTerminalInfo.entryMode) !== null && _c !== void 0 ? _c : '');
635
- return Object.assign(Object.assign({ merchantLogoUrl, merchantName: legalName, storeAddress: buildStoreAddress(), phone,
635
+ return Object.assign(Object.assign({ merchantLogoUrl, merchantName: name, legalName, storeAddress: buildStoreAddress(), phone,
636
636
  contactEmail,
637
637
  organizationNumber,
638
638
  primaryDomain, storeUrl: `https://${primaryDomain}`, orderDate: (0, Utilities_1.getFormattedTimestamp)(presentmentLocale), receiptNumber,
@@ -57,6 +57,7 @@ type ReceiptLabelsAndPaymentTerminalInfo = ReceiptLabels & PaymentTerminalReceip
57
57
  type ReceiptObj = {
58
58
  merchantLogoUrl: string;
59
59
  merchantName: string;
60
+ legalName: string;
60
61
  storeAddress: string;
61
62
  phone: string;
62
63
  contactEmail: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rerobe-js-orm",
3
- "version": "3.8.9",
3
+ "version": "3.9.0",
4
4
  "description": "ReRobe's Javascript ORM Framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",