vanilli-shop-client
Advanced tools
Comparing version 1.8.3 to 1.8.4
@@ -18,2 +18,3 @@ import { ICustomerDto } from "./customer"; | ||
countryId?: number; | ||
countryName?: string; | ||
methodId?: number; | ||
@@ -20,0 +21,0 @@ address?: string; |
@@ -155,3 +155,3 @@ "use strict"; | ||
OrderStore.prototype.initOrder = function (order) { | ||
var _a, _b, _c, _d; | ||
var _a, _b, _c, _d, _e; | ||
var rootStore = this.rootStore; | ||
@@ -163,3 +163,4 @@ var shippingStore = rootStore.shippingStore; | ||
order.shipping.countryId = (_c = rootStore.countryStore.selectedCountry) === null || _c === void 0 ? void 0 : _c.id; | ||
order.shipping.methodId = (_d = shippingStore.selectedMethod) === null || _d === void 0 ? void 0 : _d.methodId; | ||
order.shipping.countryName = (_d = rootStore.countryStore.selectedCountry) === null || _d === void 0 ? void 0 : _d.name; | ||
order.shipping.methodId = (_e = shippingStore.selectedMethod) === null || _e === void 0 ? void 0 : _e.methodId; | ||
order.shipping.pickupPoint = shippingStore.selectedPickupPoint; | ||
@@ -166,0 +167,0 @@ order.items = rootStore.cartStore.cartItems.map(function (item) { |
{ | ||
"name": "vanilli-shop-client", | ||
"version": "1.8.3", | ||
"version": "1.8.4", | ||
"description": "Client for Vanilli Shop API", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -21,2 +21,3 @@ import {ICustomerDto} from "./customer"; | ||
countryId?: number, | ||
countryName?: string, | ||
methodId?: number, | ||
@@ -23,0 +24,0 @@ address?: string, |
@@ -81,2 +81,3 @@ import BaseStore from "./base-store"; | ||
order.shipping.countryId = rootStore.countryStore.selectedCountry?.id; | ||
order.shipping.countryName = rootStore.countryStore.selectedCountry?.name; | ||
order.shipping.methodId = shippingStore.selectedMethod?.methodId; | ||
@@ -83,0 +84,0 @@ order.shipping.pickupPoint = shippingStore.selectedPickupPoint; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
283355
6328