@ikas/storefront-models 4.0.0-alpha.48 → 4.0.0-alpha.5

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.
Files changed (150) hide show
  1. package/build-cjs/_virtual/_tslib.js +1 -0
  2. package/build-cjs/index.d.ts +0 -14
  3. package/build-cjs/index.js +2 -1
  4. package/build-cjs/models/base/init.js +1 -0
  5. package/build-cjs/models/blog/category/init.js +1 -0
  6. package/build-cjs/models/blog/init.js +1 -0
  7. package/build-cjs/models/blog/meta-data/index.js +1 -0
  8. package/build-cjs/models/brand/index.js +1 -0
  9. package/build-cjs/models/brand/init.js +1 -0
  10. package/build-cjs/models/campaign-offer/index.js +1 -0
  11. package/build-cjs/models/campaign-offer/product/index.js +1 -0
  12. package/build-cjs/models/cart/available-shipping-method/index.js +1 -0
  13. package/build-cjs/models/cart/campaign-offer/index.js +1 -0
  14. package/build-cjs/models/category/index.js +1 -0
  15. package/build-cjs/models/category/init.js +2 -1
  16. package/build-cjs/models/category/init.js.map +1 -1
  17. package/build-cjs/models/category/path-item/index.d.ts +0 -2
  18. package/build-cjs/models/checkout-settings/index.js +1 -0
  19. package/build-cjs/models/checkout-settings/price/index.d.ts +0 -1
  20. package/build-cjs/models/country/index.d.ts +0 -2
  21. package/build-cjs/models/customer/attribute/index.js +1 -0
  22. package/build-cjs/models/customer/attribute/init.js +1 -0
  23. package/build-cjs/models/customer/attribute/sales-channel/index.js +1 -0
  24. package/build-cjs/models/customer/index.js +1 -0
  25. package/build-cjs/models/customer/review/index.js +1 -0
  26. package/build-cjs/models/customer/review/init.js +1 -0
  27. package/build-cjs/models/html-meta-data/index.js +1 -0
  28. package/build-cjs/models/html-meta-data/init.js +1 -0
  29. package/build-cjs/models/merchant-settings/index.d.ts +0 -3
  30. package/build-cjs/models/merchant-settings/index.js +1 -0
  31. package/build-cjs/models/merchant-settings/index.js.map +1 -1
  32. package/build-cjs/models/merchant-settings/init.js +1 -0
  33. package/build-cjs/models/order/adjustment/index.js +1 -0
  34. package/build-cjs/models/order/index.d.ts +1 -3
  35. package/build-cjs/models/order/index.js +2 -1
  36. package/build-cjs/models/order/index.js.map +1 -1
  37. package/build-cjs/models/order/invoice/index.js +1 -0
  38. package/build-cjs/models/order/line-item/index.d.ts +0 -3
  39. package/build-cjs/models/order/line-item/index.js +1 -0
  40. package/build-cjs/models/order/line-item/index.js.map +1 -1
  41. package/build-cjs/models/order/line-item/variant/index.d.ts +0 -4
  42. package/build-cjs/models/order/line-item/variant/price/index.d.ts +0 -1
  43. package/build-cjs/models/order/package/index.js +1 -0
  44. package/build-cjs/models/order/transaction/index.d.ts +1 -1
  45. package/build-cjs/models/order/transaction/index.js +1 -0
  46. package/build-cjs/models/order/transaction/index.js.map +1 -1
  47. package/build-cjs/models/order/transaction/payment-method-detail/index.js +1 -0
  48. package/build-cjs/models/payment-gateway/additional-price/index.js +1 -0
  49. package/build-cjs/models/payment-gateway/index.js +1 -0
  50. package/build-cjs/models/payment-gateway/init.js +1 -0
  51. package/build-cjs/models/payment-gateway/settings/index.js +1 -0
  52. package/build-cjs/models/product/attribute/index.d.ts +1 -3
  53. package/build-cjs/models/product/attribute/index.js +2 -1
  54. package/build-cjs/models/product/attribute/index.js.map +1 -1
  55. package/build-cjs/models/product/attribute/init.js +1 -0
  56. package/build-cjs/models/product/attribute-value/init.js +1 -0
  57. package/build-cjs/models/product/campaign/data/index.js +1 -0
  58. package/build-cjs/models/product/campaign/filter/index.js +1 -0
  59. package/build-cjs/models/product/filter/index.d.ts +1 -3
  60. package/build-cjs/models/product/filter/index.js +2 -1
  61. package/build-cjs/models/product/filter/index.js.map +1 -1
  62. package/build-cjs/models/product/image/init.js +1 -0
  63. package/build-cjs/models/product/index.d.ts +0 -2
  64. package/build-cjs/models/product/index.js +1 -0
  65. package/build-cjs/models/product/index.js.map +1 -1
  66. package/build-cjs/models/product/init.js +1 -0
  67. package/build-cjs/models/product/option-set/init.js +1 -0
  68. package/build-cjs/models/product/option-set/option/index.js +1 -0
  69. package/build-cjs/models/product/option-set/option/init.js +1 -0
  70. package/build-cjs/models/product/variant/index.d.ts +0 -2
  71. package/build-cjs/models/product/variant/init.js +1 -0
  72. package/build-cjs/models/product/variant/price/index.d.ts +0 -2
  73. package/build-cjs/models/product/variant-type/index.d.ts +0 -1
  74. package/build-cjs/models/product/variant-type/init.js +1 -0
  75. package/build-cjs/models/raffle/index.d.ts +3 -9
  76. package/build-cjs/models/raffle/index.js +2 -1
  77. package/build-cjs/models/raffle/index.js.map +1 -1
  78. package/build-cjs/models/raffle/init.js +1 -0
  79. package/build-cjs/models/stock-location/index.js +1 -0
  80. package/build-cjs/models/storefront/index.d.ts +0 -1
  81. package/build-cjs/models/storefront/index.js +1 -0
  82. package/build-cjs/models/storefront/index.js.map +1 -1
  83. package/build-cjs/models/storefront/routing/index.d.ts +0 -2
  84. package/build-cjs/models/storefront/theme/index.js +1 -0
  85. package/build-cjs/models/theme-json/component/prop/index.js +1 -0
  86. package/build-cjs/models/theme-json/page/index.js +1 -0
  87. package/build-cjs/models/theme-json/settings/index.js +1 -0
  88. package/build-cjs/models/variant-type/index.js +1 -0
  89. package/build-cjs/models/variant-type/init.js +1 -0
  90. package/build-cjs/models/variant-type/variant-value/init.js +1 -0
  91. package/package.json +2 -8
  92. package/src/index.ts +0 -16
  93. package/src/models/category/init.ts +0 -4
  94. package/src/models/category/path-item/index.ts +0 -2
  95. package/src/models/checkout-settings/price/index.ts +0 -1
  96. package/src/models/country/index.ts +0 -2
  97. package/src/models/customer/address/{index.ts → index.tsx} +0 -0
  98. package/src/models/merchant-settings/index.ts +0 -3
  99. package/src/models/order/index.ts +0 -2
  100. package/src/models/order/line-item/index.ts +0 -3
  101. package/src/models/order/line-item/variant/index.ts +0 -4
  102. package/src/models/order/line-item/variant/price/index.ts +0 -1
  103. package/src/models/order/transaction/index.ts +3 -1
  104. package/src/models/product/attribute/index.ts +0 -2
  105. package/src/models/product/filter/index.ts +0 -2
  106. package/src/models/product/index.ts +0 -2
  107. package/src/models/product/variant/index.ts +0 -2
  108. package/src/models/product/variant/price/index.ts +0 -2
  109. package/src/models/product/variant-type/index.ts +0 -1
  110. package/src/models/raffle/index.ts +3 -10
  111. package/src/models/storefront/index.ts +0 -1
  112. package/src/models/storefront/routing/index.tsx +0 -2
  113. package/build-cjs/models/category/path-item/init.d.ts +0 -2
  114. package/build-cjs/models/category/path-item/init.js +0 -1
  115. package/build-cjs/models/category/path-item/init.js.map +0 -1
  116. package/build-cjs/models/country/init.d.ts +0 -2
  117. package/build-cjs/models/country/init.js +0 -1
  118. package/build-cjs/models/country/init.js.map +0 -1
  119. package/build-cjs/models/country/location-translations/index.d.ts +0 -5
  120. package/build-cjs/models/merchant-settings/address/city/index.d.ts +0 -5
  121. package/build-cjs/models/merchant-settings/address/country/index.d.ts +0 -7
  122. package/build-cjs/models/merchant-settings/address/district/index.d.ts +0 -5
  123. package/build-cjs/models/merchant-settings/address/index.d.ts +0 -21
  124. package/build-cjs/models/merchant-settings/address/state/index.d.ts +0 -5
  125. package/build-cjs/models/merchant-settings/address/type/index.d.ts +0 -4
  126. package/build-cjs/models/merchant-settings/address/type/index.js +0 -1
  127. package/build-cjs/models/merchant-settings/address/type/index.js.map +0 -1
  128. package/build-cjs/models/order/line-item/base-unit/index.d.ts +0 -20
  129. package/build-cjs/models/order/line-item/base-unit/index.js +0 -1
  130. package/build-cjs/models/order/line-item/base-unit/index.js.map +0 -1
  131. package/build-cjs/models/order/line-item/base-unit/unit-type/index.d.ts +0 -4
  132. package/build-cjs/models/order/line-item/variant/unit/index.d.ts +0 -5
  133. package/build-cjs/models/product/base-unit/index.d.ts +0 -10
  134. package/build-cjs/models/product/variant/unit/index.d.ts +0 -5
  135. package/build-cjs/models/product-option-file/index.d.ts +0 -5
  136. package/src/models/category/path-item/init.ts +0 -25
  137. package/src/models/country/init.ts +0 -16
  138. package/src/models/country/location-translations/index.ts +0 -5
  139. package/src/models/merchant-settings/address/city/index.ts +0 -5
  140. package/src/models/merchant-settings/address/country/index.ts +0 -7
  141. package/src/models/merchant-settings/address/district/index.ts +0 -5
  142. package/src/models/merchant-settings/address/index.ts +0 -22
  143. package/src/models/merchant-settings/address/state/index.ts +0 -5
  144. package/src/models/merchant-settings/address/type/index.ts +0 -4
  145. package/src/models/order/line-item/base-unit/index.ts +0 -22
  146. package/src/models/order/line-item/base-unit/unit-type/index.ts +0 -4
  147. package/src/models/order/line-item/variant/unit/index.ts +0 -6
  148. package/src/models/product/base-unit/index.ts +0 -12
  149. package/src/models/product/variant/unit/index.ts +0 -6
  150. package/src/models/product-option-file/index.ts +0 -5
@@ -22,7 +22,6 @@ export type IkasStorefront = {
22
22
  analytics4Id: string | null;
23
23
  universalAnalyticsId: string | null;
24
24
  tiktokPixelId: string | null;
25
- token: string | null;
26
25
 
27
26
  localizations: IkasStorefrontLocalization[];
28
27
  routings: IkasStorefrontRouting[];
@@ -8,6 +8,4 @@ export type IkasStorefrontRouting = {
8
8
  path: string | null;
9
9
  priceListId: string | null;
10
10
  dynamicCurrencySettings: IkasStorefrontDynamicCurrencySettings | null;
11
- currencyCode: string | null;
12
- currencySymbol: string | null;
13
11
  };
@@ -1,2 +0,0 @@
1
- import { IkasCategoryPathItem } from ".";
2
- export declare function initIkasCategoryPathItem(categoryPathItem: IkasCategoryPathItem, locale: string | null): void;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.initIkasCategoryPathItem=function(e,n){e.translations&&n&&(!function(e,n,t){if(n&&n.some((function(e){return e.locale===t}))){var a=n.find((function(e){return e.locale===t}));(null==a?void 0:a.name)&&(e.name=a.name)}}(e,e.translations,n),delete e.translations)};
@@ -1 +0,0 @@
1
- {"version":3,"file":"init.js","sources":["../../../../src/models/category/path-item/init.ts"],"sourcesContent":["import { IkasCategoryPathItem } from \".\";\nimport { IkasCategoryTranslation } from \"../translations\";\n\nexport function initIkasCategoryPathItem(\n categoryPathItem: IkasCategoryPathItem,\n locale: string | null\n) {\n if (categoryPathItem.translations && locale) {\n setTranslations(categoryPathItem, categoryPathItem.translations, locale);\n delete categoryPathItem.translations;\n }\n}\n\nfunction setTranslations(\n categoryPathItem: IkasCategoryPathItem,\n translations: IkasCategoryTranslation[],\n locale: string\n) {\n if (translations && translations.some((t) => t.locale === locale)) {\n const localeTranslations = translations.find((t) => t.locale === locale);\n\n if (localeTranslations?.name)\n categoryPathItem.name = localeTranslations.name;\n }\n}\n"],"names":["categoryPathItem","locale","translations","some","t","localeTranslations","find","name","setTranslations"],"mappings":"qGAGgB,SACdA,EACAC,GAEID,EAAiBE,cAAgBD,KAMvC,SACED,EACAE,EACAD,GAEA,GAAIC,GAAgBA,EAAaC,MAAK,SAACC,GAAM,OAAAA,EAAEH,SAAWA,KAAS,CACjE,IAAMI,EAAqBH,EAAaI,MAAK,SAACF,GAAM,OAAAA,EAAEH,SAAWA,MAE7DI,aAAA,EAAAA,EAAoBE,QACtBP,EAAiBO,KAAOF,EAAmBE,OAd7CC,CAAgBR,EAAkBA,EAAiBE,aAAcD,UAC1DD,EAAiBE"}
@@ -1,2 +0,0 @@
1
- import { IkasCountry } from "./index";
2
- export declare function initIkasCountry(country: IkasCountry, locale: string | null): void;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.initIkasCountry=function(n,o){n.locationTranslations&&o&&(!function(n,o){n.name=n.locationTranslations&&n.locationTranslations[o]||n.name}(n,o),delete n.locationTranslations)};
@@ -1 +0,0 @@
1
- {"version":3,"file":"init.js","sources":["../../../src/models/country/init.ts"],"sourcesContent":["import { IkasCountry } from \"./index\";\nimport { IkasLocationTranslations } from \"./location-translations\";\n\nexport function initIkasCountry(country: IkasCountry, locale: string | null) {\n if (country.locationTranslations && locale) {\n setTranslations(country, locale);\n delete country.locationTranslations;\n }\n}\n\nfunction setTranslations(country: IkasCountry, locale: string) {\n country.name =\n (country.locationTranslations &&\n country.locationTranslations[locale as keyof IkasLocationTranslations]) ||\n country.name;\n}\n"],"names":["country","locale","locationTranslations","name","setTranslations"],"mappings":"4FAGgB,SAAgBA,EAAsBC,GAChDD,EAAQE,sBAAwBD,KAMtC,SAAyBD,EAAsBC,GAC7CD,EAAQG,KACLH,EAAQE,sBACPF,EAAQE,qBAAqBD,IAC/BD,EAAQG,KATRC,CAAgBJ,EAASC,UAClBD,EAAQE"}
@@ -1,5 +0,0 @@
1
- export declare type IkasLocationTranslations = {
2
- de: string | null;
3
- en: string;
4
- tr: string;
5
- };
@@ -1,5 +0,0 @@
1
- export declare type IkasMerchantAddressCity = {
2
- code: string | null;
3
- id: string | null;
4
- name: string;
5
- };
@@ -1,7 +0,0 @@
1
- export declare type IkasMerchantAddressCountry = {
2
- code: string | null;
3
- id: string | null;
4
- iso2: string | null;
5
- iso3: string | null;
6
- name: string;
7
- };
@@ -1,5 +0,0 @@
1
- export declare type IkasMerchantAddressDistrict = {
2
- code: string | null;
3
- id: string | null;
4
- name: string | null;
5
- };
@@ -1,21 +0,0 @@
1
- import { IkasMerchantAddressCity } from "./city";
2
- import { IkasMerchantAddressCountry } from "./country";
3
- import { IkasMerchantAddressDistrict } from "./district";
4
- import { IkasMerchantAddressState } from "./state";
5
- import { IkasMerchantSettingsAddressTypeEnum } from "./type";
6
- export declare type IkasMerchantAddress = {
7
- addressLine1: string | null;
8
- addressLine2: string | null;
9
- city: IkasMerchantAddressCity | null;
10
- country: IkasMerchantAddressCountry | null;
11
- district: IkasMerchantAddressDistrict | null;
12
- firstName: string | null;
13
- identityNumber: string | null;
14
- lastName: string | null;
15
- postalCode: string | null;
16
- state: IkasMerchantAddressState | null;
17
- taxOffice: string | null;
18
- title: string | null;
19
- type: IkasMerchantSettingsAddressTypeEnum | null;
20
- vkn: string | null;
21
- };
@@ -1,5 +0,0 @@
1
- export interface IkasMerchantAddressState {
2
- code: string | null;
3
- id: string | null;
4
- name: string | null;
5
- }
@@ -1,4 +0,0 @@
1
- export declare enum IkasMerchantSettingsAddressTypeEnum {
2
- CORPORATE = "CORPORATE",
3
- INDIVIDUAL = "INDIVIDUAL"
4
- }
@@ -1 +0,0 @@
1
- "use strict";var e;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasMerchantSettingsAddressTypeEnum=void 0,(e=exports.IkasMerchantSettingsAddressTypeEnum||(exports.IkasMerchantSettingsAddressTypeEnum={})).CORPORATE="CORPORATE",e.INDIVIDUAL="INDIVIDUAL";
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../src/models/merchant-settings/address/type/index.ts"],"sourcesContent":["export enum IkasMerchantSettingsAddressTypeEnum {\n CORPORATE = \"CORPORATE\",\n INDIVIDUAL = \"INDIVIDUAL\",\n}\n"],"names":["IkasMerchantSettingsAddressTypeEnum"],"mappings":"aAAA,IAAYA,yDAAAA,QAGXA,yCAAA,GAHWA,EAAAA,QAAmCA,sCAAnCA,4CAGX,KAFC,UAAA,YACAA,EAAA,WAAA"}
@@ -1,20 +0,0 @@
1
- import { IkasOrderLineVariantUnitType } from "./unit-type";
2
- export declare type IkasOrderLineBaseUnit = {
3
- baseAmount: number;
4
- type: IkasProductUnitType;
5
- unit: IkasOrderLineVariantUnitType | null;
6
- };
7
- export declare enum IkasProductUnitType {
8
- CENTILITER = "CENTILITER",
9
- CENTIMETER = "CENTIMETER",
10
- CUBIC_METERS = "CUBIC_METERS",
11
- CUSTOM = "CUSTOM",
12
- GRAM = "GRAM",
13
- KILOGRAM = "KILOGRAM",
14
- LITER = "LITER",
15
- METER = "METER",
16
- MILLIGRAM = "MILLIGRAM",
17
- MILLILITER = "MILLILITER",
18
- MILLIMETER = "MILLIMETER",
19
- SQUARE_METERS = "SQUARE_METERS"
20
- }
@@ -1 +0,0 @@
1
- "use strict";var E;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasProductUnitType=void 0,(E=exports.IkasProductUnitType||(exports.IkasProductUnitType={})).CENTILITER="CENTILITER",E.CENTIMETER="CENTIMETER",E.CUBIC_METERS="CUBIC_METERS",E.CUSTOM="CUSTOM",E.GRAM="GRAM",E.KILOGRAM="KILOGRAM",E.LITER="LITER",E.METER="METER",E.MILLIGRAM="MILLIGRAM",E.MILLILITER="MILLILITER",E.MILLIMETER="MILLIMETER",E.SQUARE_METERS="SQUARE_METERS";
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../src/models/order/line-item/base-unit/index.ts"],"sourcesContent":["import { IkasOrderLineVariantUnitType } from \"./unit-type\";\n\nexport type IkasOrderLineBaseUnit = {\n baseAmount: number;\n type: IkasProductUnitType;\n unit: IkasOrderLineVariantUnitType | null;\n};\n\nexport enum IkasProductUnitType {\n CENTILITER = \"CENTILITER\",\n CENTIMETER = \"CENTIMETER\",\n CUBIC_METERS = \"CUBIC_METERS\",\n CUSTOM = \"CUSTOM\",\n GRAM = \"GRAM\",\n KILOGRAM = \"KILOGRAM\",\n LITER = \"LITER\",\n METER = \"METER\",\n MILLIGRAM = \"MILLIGRAM\",\n MILLILITER = \"MILLILITER\",\n MILLIMETER = \"MILLIMETER\",\n SQUARE_METERS = \"SQUARE_METERS\",\n}\n"],"names":["IkasProductUnitType"],"mappings":"aAQA,IAAYA,yDAAAA,QAaXA,yBAAA,GAbWA,EAAAA,QAAmBA,sBAAnBA,4BAaX,KAZC,WAAA,aACAA,EAAA,WAAA,aACAA,EAAA,aAAA,eACAA,EAAA,OAAA,SACAA,EAAA,KAAA,OACAA,EAAA,SAAA,WACAA,EAAA,MAAA,QACAA,EAAA,MAAA,QACAA,EAAA,UAAA,YACAA,EAAA,WAAA,aACAA,EAAA,WAAA,aACAA,EAAA,cAAA"}
@@ -1,4 +0,0 @@
1
- export declare type IkasOrderLineVariantUnitType = {
2
- id: string;
3
- name: string;
4
- };
@@ -1,5 +0,0 @@
1
- import { IkasProductUnitType } from "../../base-unit";
2
- export declare type IkasOrderLineVariantUnit = {
3
- amount: number;
4
- type: IkasProductUnitType;
5
- };
@@ -1,10 +0,0 @@
1
- import { IkasProductUnitType } from "../../order/line-item/base-unit";
2
- export declare type IkasProductBaseUnit = {
3
- baseAmount: number | null;
4
- type: IkasProductUnitType;
5
- unit: IkasProductUnit;
6
- };
7
- export declare type IkasProductUnit = {
8
- id: string;
9
- name: string;
10
- };
@@ -1,5 +0,0 @@
1
- import { IkasProductUnitType } from "../../../order/line-item/base-unit";
2
- export declare type IkasProductVariantUnit = {
3
- amount: number | null;
4
- type: IkasProductUnitType;
5
- };
@@ -1,5 +0,0 @@
1
- export declare type IkasProductOptionFileUrl = {
2
- fields: any;
3
- optionUrl: string;
4
- url: string;
5
- };
@@ -1,25 +0,0 @@
1
- import { IkasCategoryPathItem } from ".";
2
- import { IkasCategoryTranslation } from "../translations";
3
-
4
- export function initIkasCategoryPathItem(
5
- categoryPathItem: IkasCategoryPathItem,
6
- locale: string | null
7
- ) {
8
- if (categoryPathItem.translations && locale) {
9
- setTranslations(categoryPathItem, categoryPathItem.translations, locale);
10
- delete categoryPathItem.translations;
11
- }
12
- }
13
-
14
- function setTranslations(
15
- categoryPathItem: IkasCategoryPathItem,
16
- translations: IkasCategoryTranslation[],
17
- locale: string
18
- ) {
19
- if (translations && translations.some((t) => t.locale === locale)) {
20
- const localeTranslations = translations.find((t) => t.locale === locale);
21
-
22
- if (localeTranslations?.name)
23
- categoryPathItem.name = localeTranslations.name;
24
- }
25
- }
@@ -1,16 +0,0 @@
1
- import { IkasCountry } from "./index";
2
- import { IkasLocationTranslations } from "./location-translations";
3
-
4
- export function initIkasCountry(country: IkasCountry, locale: string | null) {
5
- if (country.locationTranslations && locale) {
6
- setTranslations(country, locale);
7
- delete country.locationTranslations;
8
- }
9
- }
10
-
11
- function setTranslations(country: IkasCountry, locale: string) {
12
- country.name =
13
- (country.locationTranslations &&
14
- country.locationTranslations[locale as keyof IkasLocationTranslations]) ||
15
- country.name;
16
- }
@@ -1,5 +0,0 @@
1
- export type IkasLocationTranslations = {
2
- de: string | null;
3
- en: string;
4
- tr: string;
5
- };
@@ -1,5 +0,0 @@
1
- export type IkasMerchantAddressCity = {
2
- code: string | null;
3
- id: string | null;
4
- name: string;
5
- };
@@ -1,7 +0,0 @@
1
- export type IkasMerchantAddressCountry = {
2
- code: string | null;
3
- id: string | null;
4
- iso2: string | null;
5
- iso3: string | null;
6
- name: string;
7
- };
@@ -1,5 +0,0 @@
1
- export type IkasMerchantAddressDistrict = {
2
- code: string | null;
3
- id: string | null;
4
- name: string | null;
5
- };
@@ -1,22 +0,0 @@
1
- import { IkasMerchantAddressCity } from "./city";
2
- import { IkasMerchantAddressCountry } from "./country";
3
- import { IkasMerchantAddressDistrict } from "./district";
4
- import { IkasMerchantAddressState } from "./state";
5
- import { IkasMerchantSettingsAddressTypeEnum } from "./type";
6
-
7
- export type IkasMerchantAddress = {
8
- addressLine1: string | null;
9
- addressLine2: string | null;
10
- city: IkasMerchantAddressCity | null;
11
- country: IkasMerchantAddressCountry | null;
12
- district: IkasMerchantAddressDistrict | null;
13
- firstName: string | null;
14
- identityNumber: string | null;
15
- lastName: string | null;
16
- postalCode: string | null;
17
- state: IkasMerchantAddressState | null;
18
- taxOffice: string | null;
19
- title: string | null;
20
- type: IkasMerchantSettingsAddressTypeEnum | null;
21
- vkn: string | null;
22
- };
@@ -1,5 +0,0 @@
1
- export interface IkasMerchantAddressState {
2
- code: string | null;
3
- id: string | null;
4
- name: string | null;
5
- }
@@ -1,4 +0,0 @@
1
- export enum IkasMerchantSettingsAddressTypeEnum {
2
- CORPORATE = "CORPORATE",
3
- INDIVIDUAL = "INDIVIDUAL",
4
- }
@@ -1,22 +0,0 @@
1
- import { IkasOrderLineVariantUnitType } from "./unit-type";
2
-
3
- export type IkasOrderLineBaseUnit = {
4
- baseAmount: number;
5
- type: IkasProductUnitType;
6
- unit: IkasOrderLineVariantUnitType | null;
7
- };
8
-
9
- export enum IkasProductUnitType {
10
- CENTILITER = "CENTILITER",
11
- CENTIMETER = "CENTIMETER",
12
- CUBIC_METERS = "CUBIC_METERS",
13
- CUSTOM = "CUSTOM",
14
- GRAM = "GRAM",
15
- KILOGRAM = "KILOGRAM",
16
- LITER = "LITER",
17
- METER = "METER",
18
- MILLIGRAM = "MILLIGRAM",
19
- MILLILITER = "MILLILITER",
20
- MILLIMETER = "MILLIMETER",
21
- SQUARE_METERS = "SQUARE_METERS",
22
- }
@@ -1,4 +0,0 @@
1
- export type IkasOrderLineVariantUnitType = {
2
- id: string;
3
- name: string;
4
- };
@@ -1,6 +0,0 @@
1
- import { IkasProductUnitType } from "../../base-unit";
2
-
3
- export type IkasOrderLineVariantUnit = {
4
- amount: number;
5
- type: IkasProductUnitType;
6
- };
@@ -1,12 +0,0 @@
1
- import { IkasProductUnitType } from "../../order/line-item/base-unit";
2
-
3
- export type IkasProductBaseUnit = {
4
- baseAmount: number | null;
5
- type: IkasProductUnitType;
6
- unit: IkasProductUnit;
7
- };
8
-
9
- export type IkasProductUnit = {
10
- id: string;
11
- name: string;
12
- };
@@ -1,6 +0,0 @@
1
- import { IkasProductUnitType } from "../../../order/line-item/base-unit";
2
-
3
- export type IkasProductVariantUnit = {
4
- amount: number | null;
5
- type: IkasProductUnitType;
6
- };
@@ -1,5 +0,0 @@
1
- export type IkasProductOptionFileUrl = {
2
- fields: any;
3
- optionUrl: string;
4
- url: string;
5
- };