@ikas/storefront 0.0.158-alpha.9 → 0.0.159

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.
@@ -155,6 +155,20 @@ export declare enum OrderStatusEnum {
155
155
  REFUND_REJECTED = "REFUND_REJECTED",
156
156
  REFUND_REQUESTED = "REFUND_REQUESTED"
157
157
  }
158
+ /**
159
+ * Payment Gateway Additional Price Type Enum
160
+ */
161
+ export declare enum PaymentGatewayAdditionalPriceTypeEnum {
162
+ DECREMENT = "DECREMENT",
163
+ INCREMENT = "INCREMENT"
164
+ }
165
+ /**
166
+ * Payment Gateway Transaction Fee Type Enum
167
+ */
168
+ export declare enum PaymentGatewayTransactionFeeTypeEnum {
169
+ AMOUNT = "AMOUNT",
170
+ RATIO = "RATIO"
171
+ }
158
172
  /**
159
173
  * Payment Method Enum
160
174
  */
@@ -221,6 +235,11 @@ export declare enum ProductFilterTypeEnum {
221
235
  TAG = "TAG",
222
236
  VARIANT_TYPE = "VARIANT_TYPE"
223
237
  }
238
+ export declare enum ProductSearchShowStockOptionEnum {
239
+ HIDE_OUT_OF_STOCK = "HIDE_OUT_OF_STOCK",
240
+ SHOW_ALL = "SHOW_ALL",
241
+ SHOW_OUT_OF_STOCK_AT_END = "SHOW_OUT_OF_STOCK_AT_END"
242
+ }
224
243
  /**
225
244
  * Shipping Method Enum
226
245
  */
@@ -518,6 +537,7 @@ export interface SearchInput {
518
537
  productIdList?: string[] | null;
519
538
  query?: string | null;
520
539
  salesChannelId?: string | null;
540
+ showStockOption?: ProductSearchShowStockOptionEnum | null;
521
541
  slug?: string | null;
522
542
  }
523
543
  export interface SearchInputFilterListInput {
@@ -1,9 +1,16 @@
1
- import { StringFilterInput, PaymentMethodEnum } from "../../../__generated__/global-types";
1
+ import { StringFilterInput, PaymentMethodEnum, PaymentGatewayTransactionFeeTypeEnum, PaymentGatewayAdditionalPriceTypeEnum } from "../../../__generated__/global-types";
2
2
  export interface listPaymentGateway_listPaymentGateway_paymentMethods {
3
3
  __typename: "PaymentGatewayPaymentMethod";
4
4
  name: string;
5
5
  logoUrl: string | null;
6
6
  }
7
+ export interface listPaymentGateway_listPaymentGateway_additionalPrices {
8
+ __typename: "AdditionalPrice";
9
+ amount: number;
10
+ amountType: PaymentGatewayTransactionFeeTypeEnum;
11
+ name: string;
12
+ type: PaymentGatewayAdditionalPriceTypeEnum;
13
+ }
7
14
  export interface listPaymentGateway_listPaymentGateway {
8
15
  __typename: "PaymentGateway";
9
16
  paymentMethods: listPaymentGateway_listPaymentGateway_paymentMethods[];
@@ -12,6 +19,7 @@ export interface listPaymentGateway_listPaymentGateway {
12
19
  name: string;
13
20
  description: string | null;
14
21
  testMode: boolean | null;
22
+ additionalPrices: listPaymentGateway_listPaymentGateway_additionalPrices[] | null;
15
23
  }
16
24
  export interface listPaymentGateway {
17
25
  listPaymentGateway: listPaymentGateway_listPaymentGateway[];
@@ -19,4 +19,5 @@ export interface listCountry {
19
19
  }
20
20
  export interface listCountryVariables {
21
21
  iso2?: StringFilterInput | null;
22
+ id?: StringFilterInput | null;
22
23
  }
@@ -1,6 +1,6 @@
1
1
  import { IkasCountry } from "../../models/index";
2
2
  export declare class IkasCountryAPI {
3
- static listCountries(iso2List?: string[]): Promise<IkasCountry[]>;
3
+ static listCountries(iso2List?: string[], idList?: string[]): Promise<IkasCountry[]>;
4
4
  static listShippingCountries(salesChannelId: string): Promise<string[]>;
5
5
  static getMyCountry(): Promise<string | null | undefined>;
6
6
  }
@@ -1,12 +1,15 @@
1
1
  import * as React from "react";
2
2
  import { IkasOrderAddress, IkasAddressValidationResult } from "../../../../models/data/order/address/index";
3
3
  import { IkasCheckoutCustomer } from "../../../../models/index";
4
+ import CheckoutViewModel from "../../model";
4
5
  declare type Props = {
6
+ vm: CheckoutViewModel;
5
7
  address: IkasOrderAddress;
6
8
  allowedCountryIds?: string[];
7
9
  customer?: IkasCheckoutCustomer;
8
10
  isErrorsVisible: boolean;
9
11
  validationResult: IkasAddressValidationResult;
12
+ isBilling?: boolean;
10
13
  };
11
14
  export declare const AddressForm: React.FC<Props>;
12
15
  export {};
@@ -1,6 +1,8 @@
1
1
  import { IkasOrderAddress } from "../../../../models/data/order/address/index";
2
2
  import { IkasCountry, IkasState, IkasCity, IkasDistrict, IkasCheckoutCustomer } from "../../../../models/index";
3
+ import CheckoutViewModel from "../../model";
3
4
  export default class AddressFormViewModel {
5
+ vm: CheckoutViewModel;
4
6
  address: IkasOrderAddress;
5
7
  customer?: IkasCheckoutCustomer | null;
6
8
  countries: IkasCountry[];
@@ -8,6 +10,7 @@ export default class AddressFormViewModel {
8
10
  cities: IkasCity[];
9
11
  districts: IkasDistrict[];
10
12
  allowedCountryIds?: string[] | null;
13
+ isCorporate: boolean;
11
14
  constructor(data: AddressFormViewModelParams);
12
15
  get firstName(): string | null | undefined;
13
16
  get lastName(): string | null | undefined;
@@ -71,8 +74,14 @@ export default class AddressFormViewModel {
71
74
  onCityChange: (cityId: string) => void;
72
75
  onDistrictChange: (districtId: string) => void;
73
76
  onDistrictInputChange: (value: string) => void;
77
+ onCorporateChange: (value: boolean) => void;
78
+ onCompanyChange: (value: string) => void;
79
+ onTaxNumberChange: (value: string) => void;
80
+ onTaxOfficeChange: (value: string) => void;
74
81
  }
75
82
  interface AddressFormViewModelParams extends Partial<AddressFormViewModel> {
83
+ vm: CheckoutViewModel;
76
84
  address: IkasOrderAddress;
85
+ isCorporate?: boolean;
77
86
  }
78
87
  export {};
@@ -1,5 +1,6 @@
1
1
  export default class FormItemViewModel implements Props {
2
2
  type: FormItemType;
3
+ inputType?: FormItemInputType;
3
4
  options?: FormItemSelectOption[];
4
5
  label: string;
5
6
  value?: string;
@@ -16,6 +17,7 @@ export default class FormItemViewModel implements Props {
16
17
  }
17
18
  export interface Props {
18
19
  type: FormItemType;
20
+ inputType?: FormItemInputType;
19
21
  options?: FormItemSelectOption[];
20
22
  label: string;
21
23
  value?: string;
@@ -34,3 +36,8 @@ export declare type FormItemSelectOption = {
34
36
  value: string;
35
37
  label: string;
36
38
  };
39
+ export declare enum FormItemInputType {
40
+ NUMERIC = "numeric",
41
+ TEL = "tel",
42
+ EMAIL = "email"
43
+ }
@@ -49,6 +49,7 @@ export default class CheckoutViewModel {
49
49
  }[];
50
50
  get installmentPrice(): number | null | undefined;
51
51
  get installmentExtraPrice(): number | undefined;
52
+ get finalPrice(): number;
52
53
  get canProceedToShipping(): boolean;
53
54
  get canProceedToPayment(): boolean;
54
55
  get canPerformPayment(): boolean | undefined;