@ikas/storefront 0.0.15 → 0.0.16

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.
@@ -2,12 +2,12 @@ import { IkasOrderAddress } from "../../../../models/data/order/address/index";
2
2
  import { IkasCountry, IkasState, IkasCity, IkasDistrict, IkasCheckoutCustomer } from "../../../../models/index";
3
3
  export default class AddressFormViewModel {
4
4
  address: IkasOrderAddress;
5
- customer?: IkasCheckoutCustomer;
5
+ customer?: IkasCheckoutCustomer | null;
6
6
  countries: IkasCountry[];
7
7
  states: IkasState[];
8
8
  cities: IkasCity[];
9
9
  districts: IkasDistrict[];
10
- allowedCountryIds?: string[];
10
+ allowedCountryIds?: string[] | null;
11
11
  constructor(data: AddressFormViewModelParams);
12
12
  get firstName(): string | null | undefined;
13
13
  get lastName(): string | null | undefined;
@@ -9,7 +9,7 @@ import { IkasCustomerStore } from "../../store/customer";
9
9
  import CreditCardData from "./components/credit-card-form/model";
10
10
  export default class CheckoutViewModel {
11
11
  checkout: IkasCheckout;
12
- storefront?: IkasStorefront;
12
+ storefront?: IkasStorefront | null;
13
13
  customerStore: IkasCustomerStore;
14
14
  router: NextRouter;
15
15
  isCheckoutLoaded: boolean;
@@ -17,14 +17,14 @@ export default class CheckoutViewModel {
17
17
  isStepLoading: boolean;
18
18
  step: CheckoutStep;
19
19
  merchantSettings?: IkasMerchantSettings;
20
- cardData?: CreditCardData;
21
- paymentGatewayId?: string;
20
+ cardData?: CreditCardData | null;
21
+ paymentGatewayId?: string | null;
22
22
  paymentGateways: IkasPaymentGateway[];
23
- installmentInfo?: IkasInstallmentInfo;
23
+ installmentInfo?: IkasInstallmentInfo | null;
24
24
  useDifferentAddress: boolean;
25
25
  shouldSaveAddress: boolean;
26
26
  addressTitle: string;
27
- shippingCountryIds?: string[];
27
+ shippingCountryIds?: string[] | null;
28
28
  selectedShippingAddressId?: string;
29
29
  selectedBillingAddressId?: string;
30
30
  error?: CheckoutError | null;
package/build/index.es.js CHANGED
@@ -20798,15 +20798,20 @@ var CheckoutViewModel = /** @class */ (function () {
20798
20798
  function CheckoutViewModel(checkout, queryParams, router) {
20799
20799
  var _this = this;
20800
20800
  this.checkout = new IkasCheckout();
20801
+ this.storefront = null;
20801
20802
  this.customerStore = new IkasCustomerStore();
20802
20803
  this.isCheckoutLoaded = false;
20803
20804
  this.isErrorsVisible = false;
20804
20805
  this.isStepLoading = false;
20805
20806
  this.step = CheckoutStep.INFO;
20807
+ this.cardData = null;
20808
+ this.paymentGatewayId = null;
20806
20809
  this.paymentGateways = [];
20810
+ this.installmentInfo = null;
20807
20811
  this.useDifferentAddress = false;
20808
20812
  this.shouldSaveAddress = false;
20809
20813
  this.addressTitle = "";
20814
+ this.shippingCountryIds = null;
20810
20815
  this.selectedShippingAddressId = "-1";
20811
20816
  this.selectedBillingAddressId = "-1";
20812
20817
  this.error = null;
@@ -21691,10 +21696,12 @@ var Checkbox = observer(function (_a) {
21691
21696
  var AddressFormViewModel = /** @class */ (function () {
21692
21697
  function AddressFormViewModel(data) {
21693
21698
  var _this = this;
21699
+ this.customer = null;
21694
21700
  this.countries = [];
21695
21701
  this.states = [];
21696
21702
  this.cities = [];
21697
21703
  this.districts = [];
21704
+ this.allowedCountryIds = null;
21698
21705
  this.fillDropdownOptions = function () { return __awaiter(_this, void 0, void 0, function () {
21699
21706
  return __generator(this, function (_a) {
21700
21707
  switch (_a.label) {
package/build/index.js CHANGED
@@ -20782,15 +20782,20 @@ var CheckoutViewModel = /** @class */ (function () {
20782
20782
  function CheckoutViewModel(checkout, queryParams, router) {
20783
20783
  var _this = this;
20784
20784
  this.checkout = new IkasCheckout();
20785
+ this.storefront = null;
20785
20786
  this.customerStore = new IkasCustomerStore();
20786
20787
  this.isCheckoutLoaded = false;
20787
20788
  this.isErrorsVisible = false;
20788
20789
  this.isStepLoading = false;
20789
20790
  this.step = CheckoutStep.INFO;
20791
+ this.cardData = null;
20792
+ this.paymentGatewayId = null;
20790
20793
  this.paymentGateways = [];
20794
+ this.installmentInfo = null;
20791
20795
  this.useDifferentAddress = false;
20792
20796
  this.shouldSaveAddress = false;
20793
20797
  this.addressTitle = "";
20798
+ this.shippingCountryIds = null;
20794
20799
  this.selectedShippingAddressId = "-1";
20795
20800
  this.selectedBillingAddressId = "-1";
20796
20801
  this.error = null;
@@ -21675,10 +21680,12 @@ var Checkbox = mobxReactLite.observer(function (_a) {
21675
21680
  var AddressFormViewModel = /** @class */ (function () {
21676
21681
  function AddressFormViewModel(data) {
21677
21682
  var _this = this;
21683
+ this.customer = null;
21678
21684
  this.countries = [];
21679
21685
  this.states = [];
21680
21686
  this.cities = [];
21681
21687
  this.districts = [];
21688
+ this.allowedCountryIds = null;
21682
21689
  this.fillDropdownOptions = function () { return __awaiter(_this, void 0, void 0, function () {
21683
21690
  return __generator(this, function (_a) {
21684
21691
  switch (_a.label) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "main": "./build/index.js",
5
5
  "module": "./build/index.es.js",
6
6
  "author": "Umut Ozan Yıldırım",