@ikas/storefront-api 4.0.0-alpha.38 → 4.0.0-alpha.4

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 (61) hide show
  1. package/package.json +7 -7
  2. package/src/__api/models/Cart.ts +0 -2
  3. package/src/__api/models/CartStorefrontRoutingDynamicCurrencySettings.ts +0 -2
  4. package/src/__api/models/CartV2.ts +0 -2
  5. package/src/__api/models/CheckoutSettingsPrice.ts +0 -2
  6. package/src/__api/models/Country.ts +0 -4
  7. package/src/__api/models/CurrencyRate.ts +0 -4
  8. package/src/__api/models/OrderLineItem.ts +0 -2
  9. package/src/__api/models/OrderLineVariantPrice.ts +0 -2
  10. package/src/__api/models/ProductBackInStockRemind.ts +0 -2
  11. package/src/__api/models/ProductOptionSelectValueOtherPrice.ts +0 -2
  12. package/src/__api/models/ProductPrice.ts +0 -4
  13. package/src/__api/models/{StorefrontRaffle.ts → Raffle.ts} +16 -5
  14. package/src/__api/models/RafflePaginationResponse.ts +3 -5
  15. package/src/__api/models/RaffleParticipants.ts +10 -8
  16. package/src/__api/models/RaffleParticipantsInput.ts +4 -1
  17. package/src/__api/models/RaffleParticipantsUpdateInput.ts +24 -0
  18. package/src/__api/models/SearchProductPrice.ts +0 -4
  19. package/src/__api/models/StorefrontDynamicCurrencySettings.ts +0 -2
  20. package/src/__api/models/StorefrontOrder.ts +0 -2
  21. package/src/__api/models/StorefrontTransaction.ts +0 -2
  22. package/src/__api/models/_base.ts +1 -2
  23. package/src/__api/mutations/addCouponCodeToCheckout.ts +1 -5
  24. package/src/__api/mutations/addItemToCart.ts +1 -4
  25. package/src/__api/mutations/createOrderRefundRequest.ts +1 -4
  26. package/src/__api/mutations/saveCart.ts +1 -4
  27. package/src/__api/mutations/saveCartCouponCode.ts +1 -4
  28. package/src/__api/mutations/saveCheckout.ts +1 -5
  29. package/src/__api/mutations/saveItemToCart.ts +1 -5
  30. package/src/__api/mutations/saveProductBackInStockRemind.ts +1 -2
  31. package/src/__api/mutations/saveRaffleParticipant.ts +3 -25
  32. package/src/__api/mutations/updateCartCampaignOffer.ts +1 -4
  33. package/src/__api/mutations/updateRaffleParticipant.ts +72 -0
  34. package/src/__api/queries/getCart.ts +1 -5
  35. package/src/__api/queries/getCartById.ts +1 -4
  36. package/src/__api/queries/getCheckoutByCartId.ts +1 -5
  37. package/src/__api/queries/getCheckoutById.ts +1 -5
  38. package/src/__api/queries/getCurrencyRate.ts +1 -3
  39. package/src/__api/queries/getCustomerOrders.ts +1 -4
  40. package/src/__api/queries/getOrder.ts +1 -4
  41. package/src/__api/queries/getOrderByEmail.ts +1 -4
  42. package/src/__api/queries/getRaffleParticipants.ts +59 -0
  43. package/src/__api/queries/getRafflesByCustomerId.ts +74 -0
  44. package/src/__api/queries/getStorefront.ts +1 -2
  45. package/src/__api/queries/listCheckoutSettings.ts +1 -2
  46. package/src/__api/queries/listCountry.ts +1 -3
  47. package/src/__api/queries/listOrderTransactions.ts +1 -2
  48. package/src/__api/queries/listProduct.ts +1 -3
  49. package/src/__api/queries/listProductBackInStockRemind.ts +1 -2
  50. package/src/__api/queries/listProductOptionSet.ts +1 -3
  51. package/src/__api/queries/{listStorefrontRaffle.ts → listRaffle.ts} +10 -10
  52. package/src/__api/queries/searchProducts.ts +1 -3
  53. package/src/__api/types/index.ts +35 -43
  54. package/src/api/checkout/index.ts +1 -1
  55. package/src/api/customer/index.ts +0 -9
  56. package/src/api/file-upload/index.ts +29 -35
  57. package/src/api/masterpass/index.ts +7 -7
  58. package/src/api/product/index.ts +0 -1
  59. package/src/api/raffle/index.ts +14 -12
  60. package/src/index.ts +7 -9
  61. package/src/__api/queries/listRaffleParticipants.ts +0 -81
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront-api",
3
- "version": "4.0.0-alpha.38",
3
+ "version": "4.0.0-alpha.4",
4
4
  "author": "Umut Ozan Yıldırım",
5
5
  "license": "ISC",
6
6
  "description": "API functions that returns models from the ikas-storefront-models package.",
@@ -16,13 +16,12 @@
16
16
  "generate": "api-generator --generate --url=https://api.myikas.dev/api/sf/graphql --modelPath=./models.json --generatePath=./src/__api && prettier --write ./src/__api"
17
17
  },
18
18
  "dependencies": {
19
- "@ikas/fe-api-client": "^1.0.16",
20
- "ts-essentials": "^7.0.1"
19
+ "@ikas/fe-api-client": "^1.0.13"
21
20
  },
22
21
  "devDependencies": {
23
22
  "@rollup/plugin-commonjs": "^22.0.0",
24
- "@ikas/storefront-config": "^4.0.0-alpha.38",
25
- "@ikas/storefront-models": "^4.0.0-alpha.38",
23
+ "@ikas/storefront-config": "^4.0.0-alpha.4",
24
+ "@ikas/storefront-models": "^4.0.0-alpha.4",
26
25
  "@rollup/plugin-node-resolve": "^13.3.0",
27
26
  "prettier": "^2.2.1",
28
27
  "rollup": "^2.75.6",
@@ -32,11 +31,12 @@
32
31
  "typescript": "^4.7.2",
33
32
  "ttypescript": "^1.5.12",
34
33
  "typescript-transform-paths": "^2.2.2",
34
+ "ts-essentials": "^7.0.1",
35
35
  "axios": "^0.26.0"
36
36
  },
37
37
  "peerDependencies": {
38
- "@ikas/storefront-config": "^4.0.0-alpha.38",
39
- "@ikas/storefront-models": "^4.0.0-alpha.38",
38
+ "@ikas/storefront-config": "^4.0.0-alpha.4",
39
+ "@ikas/storefront-models": "^4.0.0-alpha.4",
40
40
  "axios": "^0.26.0"
41
41
  }
42
42
  }
@@ -10,7 +10,6 @@ export class CartData extends BaseModelData {
10
10
  campaignOffers: CartCampaignOfferData[] | null;
11
11
  createdBy: CartCreatedByEnum | null;
12
12
  currencyCode: string | null;
13
- currencySymbol: string | null;
14
13
  customerId: string | null;
15
14
  dueDate: any;
16
15
  itemCount: number;
@@ -34,7 +33,6 @@ export class CartData extends BaseModelData {
34
33
  : null;
35
34
  this.createdBy = data.createdBy || null;
36
35
  this.currencyCode = data.currencyCode || null;
37
- this.currencySymbol = data.currencySymbol || null;
38
36
  this.customerId = data.customerId || null;
39
37
  this.dueDate = data.dueDate || null;
40
38
  this.itemCount = data.itemCount || 0;
@@ -3,14 +3,12 @@ import { DeepReadonly } from "ts-essentials";
3
3
  export class CartStorefrontRoutingDynamicCurrencySettingsData {
4
4
  roundingFormat: string | null;
5
5
  targetCurrencyCode: string;
6
- targetCurrencySymbol: string | null;
7
6
 
8
7
  constructor(
9
8
  data: Partial<CartStorefrontRoutingDynamicCurrencySettingsData> = {}
10
9
  ) {
11
10
  this.roundingFormat = data.roundingFormat || null;
12
11
  this.targetCurrencyCode = data.targetCurrencyCode || "";
13
- this.targetCurrencySymbol = data.targetCurrencySymbol || null;
14
12
  }
15
13
  }
16
14
 
@@ -34,7 +34,6 @@ export class CartV2Data extends BaseModelData {
34
34
  createdBy: CartCreatedByEnum | null;
35
35
  currencyCode: string;
36
36
  currencyRates: OrderCurrencyRateData[];
37
- currencySymbol: string | null;
38
37
  customer: OrderCustomerData | null;
39
38
  customerId: string | null;
40
39
  dueDate: any | null;
@@ -97,7 +96,6 @@ export class CartV2Data extends BaseModelData {
97
96
  this.currencyRates = data.currencyRates
98
97
  ? data.currencyRates.map((o) => new OrderCurrencyRateData(o))
99
98
  : [];
100
- this.currencySymbol = data.currencySymbol || null;
101
99
  this.customer = data.customer ? new OrderCustomerData(data.customer) : null;
102
100
  this.customerId = data.customerId || null;
103
101
  this.dueDate = data.dueDate || null;
@@ -2,12 +2,10 @@ import { DeepReadonly } from "ts-essentials";
2
2
 
3
3
  export class CheckoutSettingsPriceData {
4
4
  currencyCode: string;
5
- currencySymbol: string | null;
6
5
  price: number;
7
6
 
8
7
  constructor(data: Partial<CheckoutSettingsPriceData> = {}) {
9
8
  this.currencyCode = data.currencyCode || "";
10
- this.currencySymbol = data.currencySymbol || null;
11
9
  this.price = data.price || 0;
12
10
  }
13
11
  }
@@ -5,8 +5,6 @@ import { LocationTranslationsData } from "./LocationTranslations";
5
5
  export class CountryData extends BaseModelData {
6
6
  capital: string | null;
7
7
  currency: string | null;
8
- currencyCode: string | null;
9
- currencySymbol: string | null;
10
8
  emoji: string | null;
11
9
  emojiString: string | null;
12
10
  iso2: string | null;
@@ -23,8 +21,6 @@ export class CountryData extends BaseModelData {
23
21
 
24
22
  this.capital = data.capital || null;
25
23
  this.currency = data.currency || null;
26
- this.currencyCode = data.currencyCode || null;
27
- this.currencySymbol = data.currencySymbol || null;
28
24
  this.emoji = data.emoji || null;
29
25
  this.emojiString = data.emojiString || null;
30
26
  this.iso2 = data.iso2 || null;
@@ -4,8 +4,6 @@ import { CurrencyRateDataData } from "./CurrencyRateData";
4
4
 
5
5
  export class CurrencyRateData extends BaseModelData {
6
6
  baseCurrency: string;
7
- baseCurrencyCode: string | null;
8
- baseCurrencySymbol: string | null;
9
7
  date: any;
10
8
  rates: CurrencyRateDataData[];
11
9
 
@@ -13,8 +11,6 @@ export class CurrencyRateData extends BaseModelData {
13
11
  super(data);
14
12
 
15
13
  this.baseCurrency = data.baseCurrency || "";
16
- this.baseCurrencyCode = data.baseCurrencyCode || null;
17
- this.baseCurrencySymbol = data.baseCurrencySymbol || null;
18
14
  this.date = data.date || null;
19
15
  this.rates = data.rates
20
16
  ? data.rates.map((c) => new CurrencyRateDataData(c))
@@ -7,7 +7,6 @@ import { OrderLineVariantData } from "./OrderLineVariant";
7
7
 
8
8
  export class OrderLineItemData extends BaseModelData {
9
9
  currencyCode: string | null;
10
- currencySymbol: string | null;
11
10
  discount: OrderLineDiscountData | null;
12
11
  discountPrice: number | null;
13
12
  finalPrice: number | null;
@@ -25,7 +24,6 @@ export class OrderLineItemData extends BaseModelData {
25
24
  super(data);
26
25
 
27
26
  this.currencyCode = data.currencyCode || null;
28
- this.currencySymbol = data.currencySymbol || null;
29
27
  this.discount = data.discount
30
28
  ? new OrderLineDiscountData(data.discount)
31
29
  : null;
@@ -3,7 +3,6 @@ import { DeepReadonly } from "ts-essentials";
3
3
  export class OrderLineVariantPriceData {
4
4
  buyPrice: number | null;
5
5
  currency: string | null;
6
- currencySymbol: string | null;
7
6
  discountPrice: number | null;
8
7
  priceListId: string | null;
9
8
  sellPrice: number;
@@ -14,7 +13,6 @@ export class OrderLineVariantPriceData {
14
13
  ? data.buyPrice
15
14
  : null;
16
15
  this.currency = data.currency || null;
17
- this.currencySymbol = data.currencySymbol || null;
18
16
  this.discountPrice =
19
17
  data.discountPrice !== undefined && data.discountPrice !== null
20
18
  ? data.discountPrice
@@ -6,7 +6,6 @@ export class ProductBackInStockRemindData extends BaseModelData {
6
6
  email: string;
7
7
  productId: string;
8
8
  storefrontId: string;
9
- storefrontRoutingId: string | null;
10
9
  variantId: string;
11
10
 
12
11
  constructor(data: Partial<ProductBackInStockRemindData> = {}) {
@@ -16,7 +15,6 @@ export class ProductBackInStockRemindData extends BaseModelData {
16
15
  this.email = data.email || "";
17
16
  this.productId = data.productId || "";
18
17
  this.storefrontId = data.storefrontId || "";
19
- this.storefrontRoutingId = data.storefrontRoutingId || null;
20
18
  this.variantId = data.variantId || "";
21
19
  }
22
20
  }
@@ -2,12 +2,10 @@ import { DeepReadonly } from "ts-essentials";
2
2
 
3
3
  export class ProductOptionSelectValueOtherPriceData {
4
4
  currencyCode: string;
5
- currencySymbol: string | null;
6
5
  price: number;
7
6
 
8
7
  constructor(data: Partial<ProductOptionSelectValueOtherPriceData> = {}) {
9
8
  this.currencyCode = data.currencyCode || "";
10
- this.currencySymbol = data.currencySymbol || null;
11
9
  this.price = data.price || 0;
12
10
  }
13
11
  }
@@ -3,8 +3,6 @@ import { DeepReadonly } from "ts-essentials";
3
3
  export class ProductPriceData {
4
4
  buyPrice: number | null;
5
5
  currency: string | null;
6
- currencyCode: string | null;
7
- currencySymbol: string | null;
8
6
  discountPrice: number | null;
9
7
  priceListId: string | null;
10
8
  sellPrice: number;
@@ -15,8 +13,6 @@ export class ProductPriceData {
15
13
  ? data.buyPrice
16
14
  : null;
17
15
  this.currency = data.currency || null;
18
- this.currencyCode = data.currencyCode || null;
19
- this.currencySymbol = data.currencySymbol || null;
20
16
  this.discountPrice =
21
17
  data.discountPrice !== undefined && data.discountPrice !== null
22
18
  ? data.discountPrice
@@ -5,16 +5,19 @@ import { RaffleDateRangeFieldData } from "./RaffleDateRangeField";
5
5
  import { RaffleMetadataData } from "./RaffleMetadata";
6
6
  import { RaffleVariantInformationData } from "./RaffleVariantInformation";
7
7
 
8
- export class StorefrontRaffleData extends BaseModelData {
8
+ export class RaffleData extends BaseModelData {
9
9
  dateRange: RaffleDateRangeFieldData | null;
10
10
  metadata: RaffleMetadataData;
11
11
  name: string;
12
+ participantCount: number | null;
13
+ raffleParticipantCreatedMailExtraData: string | null;
14
+ raffleParticipantWinnerMailExtraData: string | null;
12
15
  requiredCustomerAccount: boolean;
13
16
  status: boolean;
14
17
  variants: RaffleVariantInformationData[];
15
18
  verificationType: VerificationTypeEnum;
16
19
 
17
- constructor(data: Partial<StorefrontRaffleData> = {}) {
20
+ constructor(data: Partial<RaffleData> = {}) {
18
21
  super(data);
19
22
 
20
23
  this.dateRange = data.dateRange
@@ -24,6 +27,14 @@ export class StorefrontRaffleData extends BaseModelData {
24
27
  ? new RaffleMetadataData(data.metadata)
25
28
  : new RaffleMetadataData();
26
29
  this.name = data.name || "";
30
+ this.participantCount =
31
+ data.participantCount !== undefined && data.participantCount !== null
32
+ ? data.participantCount
33
+ : null;
34
+ this.raffleParticipantCreatedMailExtraData =
35
+ data.raffleParticipantCreatedMailExtraData || null;
36
+ this.raffleParticipantWinnerMailExtraData =
37
+ data.raffleParticipantWinnerMailExtraData || null;
27
38
  this.requiredCustomerAccount = data.requiredCustomerAccount || false;
28
39
  this.status = data.status || false;
29
40
  this.variants = data.variants
@@ -33,6 +44,6 @@ export class StorefrontRaffleData extends BaseModelData {
33
44
  }
34
45
  }
35
46
 
36
- export class StorefrontRaffle extends StorefrontRaffleData {}
37
- export type PartialStorefrontRaffle = Partial<StorefrontRaffle>;
38
- export type ReadOnlyStorefrontRaffle = DeepReadonly<StorefrontRaffle>;
47
+ export class Raffle extends RaffleData {}
48
+ export type PartialRaffle = Partial<Raffle>;
49
+ export type ReadOnlyRaffle = DeepReadonly<Raffle>;
@@ -1,18 +1,16 @@
1
1
  import { DeepReadonly } from "ts-essentials";
2
- import { StorefrontRaffleData } from "./StorefrontRaffle";
2
+ import { RaffleData } from "./Raffle";
3
3
 
4
4
  export class RafflePaginationResponseData {
5
5
  count: number;
6
- data: StorefrontRaffleData[];
6
+ data: RaffleData[];
7
7
  hasNext: boolean;
8
8
  limit: number;
9
9
  page: number;
10
10
 
11
11
  constructor(data: Partial<RafflePaginationResponseData> = {}) {
12
12
  this.count = data.count || 0;
13
- this.data = data.data
14
- ? data.data.map((s) => new StorefrontRaffleData(s))
15
- : [];
13
+ this.data = data.data ? data.data.map((r) => new RaffleData(r)) : [];
16
14
  this.hasNext = data.hasNext || false;
17
15
  this.limit = data.limit || 0;
18
16
  this.page = data.page || 0;
@@ -1,8 +1,6 @@
1
1
  import { DeepReadonly } from "ts-essentials";
2
2
  import BaseModelData from "./_base";
3
- import { RaffleParticipantStatusEnum } from "../types";
4
3
  import { AppliedProductData } from "./AppliedProduct";
5
- import { StorefrontRaffleData } from "./StorefrontRaffle";
6
4
 
7
5
  export class RaffleParticipantsData extends BaseModelData {
8
6
  applicationDate: any;
@@ -13,11 +11,11 @@ export class RaffleParticipantsData extends BaseModelData {
13
11
  firstName: string;
14
12
  fullName: string;
15
13
  isDeliveredCargo: boolean | null;
14
+ isSendEmail: boolean | null;
15
+ isWinner: boolean | null;
16
16
  lastName: string;
17
17
  phone: string | null;
18
- raffle: StorefrontRaffleData;
19
18
  raffleId: string;
20
- status: RaffleParticipantStatusEnum | null;
21
19
 
22
20
  constructor(data: Partial<RaffleParticipantsData> = {}) {
23
21
  super(data);
@@ -35,13 +33,17 @@ export class RaffleParticipantsData extends BaseModelData {
35
33
  data.isDeliveredCargo !== undefined && data.isDeliveredCargo !== null
36
34
  ? data.isDeliveredCargo
37
35
  : null;
36
+ this.isSendEmail =
37
+ data.isSendEmail !== undefined && data.isSendEmail !== null
38
+ ? data.isSendEmail
39
+ : null;
40
+ this.isWinner =
41
+ data.isWinner !== undefined && data.isWinner !== null
42
+ ? data.isWinner
43
+ : null;
38
44
  this.lastName = data.lastName || "";
39
45
  this.phone = data.phone || null;
40
- this.raffle = data.raffle
41
- ? new StorefrontRaffleData(data.raffle)
42
- : new StorefrontRaffleData();
43
46
  this.raffleId = data.raffleId || "";
44
- this.status = data.status || null;
45
47
  }
46
48
  }
47
49
 
@@ -1,7 +1,8 @@
1
1
  import { DeepReadonly } from "ts-essentials";
2
+ import BaseModelData from "./_base";
2
3
  import { AppliedProductInputData } from "./AppliedProductInput";
3
4
 
4
- export class RaffleParticipantsInputData {
5
+ export class RaffleParticipantsInputData extends BaseModelData {
5
6
  appliedProduct: AppliedProductInputData;
6
7
  email: string;
7
8
  extraData: any | null;
@@ -11,6 +12,8 @@ export class RaffleParticipantsInputData {
11
12
  raffleId: string;
12
13
 
13
14
  constructor(data: Partial<RaffleParticipantsInputData> = {}) {
15
+ super(data);
16
+
14
17
  this.appliedProduct = data.appliedProduct
15
18
  ? new AppliedProductInputData(data.appliedProduct)
16
19
  : new AppliedProductInputData();
@@ -0,0 +1,24 @@
1
+ import { DeepReadonly } from "ts-essentials";
2
+ import BaseModelData from "./_base";
3
+
4
+ export class RaffleParticipantsUpdateInputData extends BaseModelData {
5
+ firstName: string | null;
6
+ lastName: string | null;
7
+ participantId: string;
8
+ phone: string | null;
9
+
10
+ constructor(data: Partial<RaffleParticipantsUpdateInputData> = {}) {
11
+ super(data);
12
+
13
+ this.firstName = data.firstName || null;
14
+ this.lastName = data.lastName || null;
15
+ this.participantId = data.participantId || "";
16
+ this.phone = data.phone || null;
17
+ }
18
+ }
19
+
20
+ export class RaffleParticipantsUpdateInput extends RaffleParticipantsUpdateInputData {}
21
+ export type PartialRaffleParticipantsUpdateInput =
22
+ Partial<RaffleParticipantsUpdateInput>;
23
+ export type ReadOnlyRaffleParticipantsUpdateInput =
24
+ DeepReadonly<RaffleParticipantsUpdateInput>;
@@ -3,8 +3,6 @@ import { DeepReadonly } from "ts-essentials";
3
3
  export class SearchProductPriceData {
4
4
  buyPrice: number | null;
5
5
  currency: string | null;
6
- currencyCode: string | null;
7
- currencySymbol: string | null;
8
6
  discountPrice: number | null;
9
7
  priceListId: string | null;
10
8
  sellPrice: number;
@@ -15,8 +13,6 @@ export class SearchProductPriceData {
15
13
  ? data.buyPrice
16
14
  : null;
17
15
  this.currency = data.currency || null;
18
- this.currencyCode = data.currencyCode || null;
19
- this.currencySymbol = data.currencySymbol || null;
20
16
  this.discountPrice =
21
17
  data.discountPrice !== undefined && data.discountPrice !== null
22
18
  ? data.discountPrice
@@ -3,12 +3,10 @@ import { DeepReadonly } from "ts-essentials";
3
3
  export class StorefrontDynamicCurrencySettingsData {
4
4
  roundingFormat: string | null;
5
5
  targetCurrencyCode: string;
6
- targetCurrencySymbol: string | null;
7
6
 
8
7
  constructor(data: Partial<StorefrontDynamicCurrencySettingsData> = {}) {
9
8
  this.roundingFormat = data.roundingFormat || null;
10
9
  this.targetCurrencyCode = data.targetCurrencyCode || "";
11
- this.targetCurrencySymbol = data.targetCurrencySymbol || null;
12
10
  }
13
11
  }
14
12
 
@@ -25,7 +25,6 @@ export class StorefrontOrderData extends BaseModelData {
25
25
  cancelledAt: any | null;
26
26
  currencyCode: string;
27
27
  currencyRates: OrderCurrencyRateData[];
28
- currencySymbol: string | null;
29
28
  customer: OrderCustomerData | null;
30
29
  customerId: string | null;
31
30
  giftPackageLines: OrderGiftPackageLineData[] | null;
@@ -63,7 +62,6 @@ export class StorefrontOrderData extends BaseModelData {
63
62
  this.currencyRates = data.currencyRates
64
63
  ? data.currencyRates.map((o) => new OrderCurrencyRateData(o))
65
64
  : [];
66
- this.currencySymbol = data.currencySymbol || null;
67
65
  this.customer = data.customer ? new OrderCustomerData(data.customer) : null;
68
66
  this.customerId = data.customerId || null;
69
67
  this.giftPackageLines = data.giftPackageLines
@@ -12,7 +12,6 @@ export class StorefrontTransactionData extends BaseModelData {
12
12
  amount: number;
13
13
  checkoutId: string | null;
14
14
  currencyCode: string;
15
- currencySymbol: string | null;
16
15
  customerId: string | null;
17
16
  error: TransactionErrorData | null;
18
17
  orderId: string | null;
@@ -32,7 +31,6 @@ export class StorefrontTransactionData extends BaseModelData {
32
31
  this.amount = data.amount || 0;
33
32
  this.checkoutId = data.checkoutId || null;
34
33
  this.currencyCode = data.currencyCode || "";
35
- this.currencySymbol = data.currencySymbol || null;
36
34
  this.customerId = data.customerId || null;
37
35
  this.error = data.error ? new TransactionErrorData(data.error) : null;
38
36
  this.orderId = data.orderId || null;
@@ -5,8 +5,7 @@ export default class BaseModelData {
5
5
  deleted?: boolean | null;
6
6
 
7
7
  constructor(data: BaseModelParams = {}) {
8
- //@ts-ignore
9
- this.id = data.id || null;
8
+ this.id = data.id || Date.now() + "";
10
9
  this.createdAt = data.createdAt || Date.now();
11
10
  this.updatedAt = data.updatedAt || Date.now();
12
11
  this.deleted = data.deleted || false;
@@ -45,7 +45,7 @@ export type QueryParams = {
45
45
  };
46
46
 
47
47
  const allReturnFields =
48
- "{abandonedCheckoutFlows {campaignId canApplicable couponId customerFilters {sendOnlyActiveAccount sendOnlySubscribedToEmail } flowId mailSendDate mailTranslationId recoverEmailStatus sendAfter } adjustments {amount amountType appliedOrderLines {amount appliedQuantity isAutoCreated orderLineId } campaignId campaignType couponId name order type } availableShippingMethods {price rateName shippingMethod shippingSettingsId shippingZoneRateId } billingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } cart {campaignOffers {appliedOrderLineId campaignOfferId campaignOfferProductId offerEndDate offerStartDate status targetPageTypes triggerSourceOrderLineId } createdAt createdBy currencyCode currencySymbol customerId deleted dueDate id itemCount items {createdAt currencyCode currencySymbol deleted discount {amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant {barcodeList brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency currencySymbol discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } merchantId priceListId salesChannelId status storefrontId storefrontRouting {domain dynamicCurrencySettings {roundingFormat targetCurrencyCode targetCurrencySymbol } id locale path priceListId } storefrontRoutingId storefrontThemeId taxLines {price rate } totalPrice updatedAt } cartId couponCode createdAt customer {accountStatus customerGroupIds email firstName id identityNumber lastName notificationsAccepted phone subscriptionStatus } deleted giftPackageLines {price taxValue } giftPackageNote id isGiftPackage merchantId note orderId orderNumber orderedAt recoverEmailStatus recoveryStatus shippingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } shippingLines {finalPrice isRefunded paymentMethod price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod shippingSettingsId shippingZoneRateId status stockLocationId totalFinalPrice updatedAt }";
48
+ "{abandonedCheckoutFlows {campaignId canApplicable couponId customerFilters {sendOnlyActiveAccount sendOnlySubscribedToEmail } flowId mailSendDate mailTranslationId recoverEmailStatus sendAfter } adjustments {amount amountType appliedOrderLines {amount appliedQuantity isAutoCreated orderLineId } campaignId campaignType couponId name order type } availableShippingMethods {price rateName shippingMethod shippingSettingsId shippingZoneRateId } billingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } cart {campaignOffers {appliedOrderLineId campaignOfferId campaignOfferProductId offerEndDate offerStartDate status targetPageTypes triggerSourceOrderLineId } createdAt createdBy currencyCode customerId deleted dueDate id itemCount items {createdAt currencyCode deleted discount {amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant {barcodeList brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } merchantId priceListId salesChannelId status storefrontId storefrontRouting {domain dynamicCurrencySettings {roundingFormat targetCurrencyCode } id locale path priceListId } storefrontRoutingId storefrontThemeId taxLines {price rate } totalPrice updatedAt } cartId couponCode createdAt customer {accountStatus customerGroupIds email firstName id identityNumber lastName notificationsAccepted phone subscriptionStatus } deleted giftPackageLines {price taxValue } giftPackageNote id isGiftPackage merchantId note orderId orderNumber orderedAt recoverEmailStatus recoveryStatus shippingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } shippingLines {finalPrice isRefunded paymentMethod price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod shippingSettingsId shippingZoneRateId status stockLocationId totalFinalPrice updatedAt }";
49
49
 
50
50
  export enum ResponseField {
51
51
  ABANDONED_CHECKOUT_FLOWS__CAMPAIGN_ID = "abandonedCheckoutFlows.campaignId",
@@ -112,7 +112,6 @@ export enum ResponseField {
112
112
  CART__CREATED_AT = "cart.createdAt",
113
113
  CART__CREATED_BY = "cart.createdBy",
114
114
  CART__CURRENCY_CODE = "cart.currencyCode",
115
- CART__CURRENCY_SYMBOL = "cart.currencySymbol",
116
115
  CART__CUSTOMER_ID = "cart.customerId",
117
116
  CART__DELETED = "cart.deleted",
118
117
  CART__DUE_DATE = "cart.dueDate",
@@ -120,7 +119,6 @@ export enum ResponseField {
120
119
  CART__ITEM_COUNT = "cart.itemCount",
121
120
  CART__ITEMS__CREATED_AT = "cart.items.createdAt",
122
121
  CART__ITEMS__CURRENCY_CODE = "cart.items.currencyCode",
123
- CART__ITEMS__CURRENCY_SYMBOL = "cart.items.currencySymbol",
124
122
  CART__ITEMS__DELETED = "cart.items.deleted",
125
123
  CART__ITEMS__DISCOUNT__AMOUNT = "cart.items.discount.amount",
126
124
  CART__ITEMS__DISCOUNT__AMOUNT_TYPE = "cart.items.discount.amountType",
@@ -158,7 +156,6 @@ export enum ResponseField {
158
156
  CART__ITEMS__VARIANT__NAME = "cart.items.variant.name",
159
157
  CART__ITEMS__VARIANT__PRICES__BUY_PRICE = "cart.items.variant.prices.buyPrice",
160
158
  CART__ITEMS__VARIANT__PRICES__CURRENCY = "cart.items.variant.prices.currency",
161
- CART__ITEMS__VARIANT__PRICES__CURRENCY_SYMBOL = "cart.items.variant.prices.currencySymbol",
162
159
  CART__ITEMS__VARIANT__PRICES__DISCOUNT_PRICE = "cart.items.variant.prices.discountPrice",
163
160
  CART__ITEMS__VARIANT__PRICES__PRICE_LIST_ID = "cart.items.variant.prices.priceListId",
164
161
  CART__ITEMS__VARIANT__PRICES__SELL_PRICE = "cart.items.variant.prices.sellPrice",
@@ -182,7 +179,6 @@ export enum ResponseField {
182
179
  CART__STOREFRONT_ROUTING__DOMAIN = "cart.storefrontRouting.domain",
183
180
  CART__STOREFRONT_ROUTING__DYNAMIC_CURRENCY_SETTINGS__ROUNDING_FORMAT = "cart.storefrontRouting.dynamicCurrencySettings.roundingFormat",
184
181
  CART__STOREFRONT_ROUTING__DYNAMIC_CURRENCY_SETTINGS__TARGET_CURRENCY_CODE = "cart.storefrontRouting.dynamicCurrencySettings.targetCurrencyCode",
185
- CART__STOREFRONT_ROUTING__DYNAMIC_CURRENCY_SETTINGS__TARGET_CURRENCY_SYMBOL = "cart.storefrontRouting.dynamicCurrencySettings.targetCurrencySymbol",
186
182
  CART__STOREFRONT_ROUTING__ID = "cart.storefrontRouting.id",
187
183
  CART__STOREFRONT_ROUTING__LOCALE = "cart.storefrontRouting.locale",
188
184
  CART__STOREFRONT_ROUTING__PATH = "cart.storefrontRouting.path",
@@ -42,7 +42,7 @@ export type QueryParams = {
42
42
  };
43
43
 
44
44
  const allReturnFields =
45
- "{abandonedCartFlows {campaignId canApplicable couponId customerFilters {sendOnlyActiveAccount sendOnlySubscribedToEmail } flowId mailSendDate mailTranslationId recoverEmailStatus sendAfter } availableShippingMethods {price rateName shippingMethod shippingSettingsId shippingZoneRateId } billingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } campaignOffers {appliedOrderLineId campaignOffer {availableSalesChannelIds createdAt deleted endDate followUpActionType id minimumRequiredCartAmount name offers {countdownMinutes description discountAmount discountType excludedVariantIdList id order productId showCriteria skipOfferIfProductExistsInCart title translations {description locale title } } startDate targetPageTypes triggerSettings {filterType valueList } type updatedAt } campaignOfferId campaignOfferProductId offerEndDate offerStartDate status targetPageTypes triggerSourceOrderLineId } cartId cartStatus checkoutId clientIp couponCode createdAt createdBy currencyCode currencyRates {code originalRate rate } currencySymbol customer {email firstName fullName id isGuestCheckout lastName notificationsAccepted phone } customerId deleted dueDate giftPackageLines {price taxValue } giftPackageNote host id isGiftPackage itemCount merchantId note orderAdjustments {amount amountType appliedOrderLines {amount appliedQuantity isAutoCreated orderLineId } campaignId campaignType couponId name order type } orderLineItems {createdAt currencyCode currencySymbol deleted discount {amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant {barcodeList brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency currencySymbol discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } orderNumber orderPackageStatus orderedAt priceListId recoverEmailStatus recoveryStatus salesChannelId shippingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } shippingLines {finalPrice isRefunded paymentMethod price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod shippingSettingsId shippingZoneRateId status stockLocationId storefrontId storefrontRouting {domain dynamicCurrencySettings {roundingFormat targetCurrencyCode } id locale path priceListId } storefrontRoutingId storefrontThemeId taxLines {price rate } totalFinalPrice totalPrice updatedAt userAgent }";
45
+ "{abandonedCartFlows {campaignId canApplicable couponId customerFilters {sendOnlyActiveAccount sendOnlySubscribedToEmail } flowId mailSendDate mailTranslationId recoverEmailStatus sendAfter } availableShippingMethods {price rateName shippingMethod shippingSettingsId shippingZoneRateId } billingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } campaignOffers {appliedOrderLineId campaignOffer {availableSalesChannelIds createdAt deleted endDate followUpActionType id minimumRequiredCartAmount name offers {countdownMinutes description discountAmount discountType excludedVariantIdList id order productId showCriteria skipOfferIfProductExistsInCart title translations {description locale title } } startDate targetPageTypes triggerSettings {filterType valueList } type updatedAt } campaignOfferId campaignOfferProductId offerEndDate offerStartDate status targetPageTypes triggerSourceOrderLineId } cartId cartStatus checkoutId clientIp couponCode createdAt createdBy currencyCode currencyRates {code originalRate rate } customer {email firstName fullName id isGuestCheckout lastName notificationsAccepted phone } customerId deleted dueDate giftPackageLines {price taxValue } giftPackageNote host id isGiftPackage itemCount merchantId note orderAdjustments {amount amountType appliedOrderLines {amount appliedQuantity isAutoCreated orderLineId } campaignId campaignType couponId name order type } orderLineItems {createdAt currencyCode deleted discount {amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant {barcodeList brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } orderNumber orderPackageStatus orderedAt priceListId recoverEmailStatus recoveryStatus salesChannelId shippingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } shippingLines {finalPrice isRefunded paymentMethod price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod shippingSettingsId shippingZoneRateId status stockLocationId storefrontId storefrontRouting {domain dynamicCurrencySettings {roundingFormat targetCurrencyCode } id locale path priceListId } storefrontRoutingId storefrontThemeId taxLines {price rate } totalFinalPrice totalPrice updatedAt userAgent }";
46
46
 
47
47
  export enum ResponseField {
48
48
  ABANDONED_CART_FLOWS__CAMPAIGN_ID = "abandonedCartFlows.campaignId",
@@ -133,7 +133,6 @@ export enum ResponseField {
133
133
  CURRENCY_RATES__CODE = "currencyRates.code",
134
134
  CURRENCY_RATES__ORIGINAL_RATE = "currencyRates.originalRate",
135
135
  CURRENCY_RATES__RATE = "currencyRates.rate",
136
- CURRENCY_SYMBOL = "currencySymbol",
137
136
  CUSTOMER__EMAIL = "customer.email",
138
137
  CUSTOMER__FIRST_NAME = "customer.firstName",
139
138
  CUSTOMER__FULL_NAME = "customer.fullName",
@@ -168,7 +167,6 @@ export enum ResponseField {
168
167
  ORDER_ADJUSTMENTS__TYPE = "orderAdjustments.type",
169
168
  ORDER_LINE_ITEMS__CREATED_AT = "orderLineItems.createdAt",
170
169
  ORDER_LINE_ITEMS__CURRENCY_CODE = "orderLineItems.currencyCode",
171
- ORDER_LINE_ITEMS__CURRENCY_SYMBOL = "orderLineItems.currencySymbol",
172
170
  ORDER_LINE_ITEMS__DELETED = "orderLineItems.deleted",
173
171
  ORDER_LINE_ITEMS__DISCOUNT__AMOUNT = "orderLineItems.discount.amount",
174
172
  ORDER_LINE_ITEMS__DISCOUNT__AMOUNT_TYPE = "orderLineItems.discount.amountType",
@@ -206,7 +204,6 @@ export enum ResponseField {
206
204
  ORDER_LINE_ITEMS__VARIANT__NAME = "orderLineItems.variant.name",
207
205
  ORDER_LINE_ITEMS__VARIANT__PRICES__BUY_PRICE = "orderLineItems.variant.prices.buyPrice",
208
206
  ORDER_LINE_ITEMS__VARIANT__PRICES__CURRENCY = "orderLineItems.variant.prices.currency",
209
- ORDER_LINE_ITEMS__VARIANT__PRICES__CURRENCY_SYMBOL = "orderLineItems.variant.prices.currencySymbol",
210
207
  ORDER_LINE_ITEMS__VARIANT__PRICES__DISCOUNT_PRICE = "orderLineItems.variant.prices.discountPrice",
211
208
  ORDER_LINE_ITEMS__VARIANT__PRICES__PRICE_LIST_ID = "orderLineItems.variant.prices.priceListId",
212
209
  ORDER_LINE_ITEMS__VARIANT__PRICES__SELL_PRICE = "orderLineItems.variant.prices.sellPrice",
@@ -45,7 +45,7 @@ export type QueryParams = {
45
45
  };
46
46
 
47
47
  const allReturnFields =
48
- "{billingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } cancelReason cancelledAt createdAt currencyCode currencyRates {code originalRate rate } currencySymbol customer {email firstName fullName id isGuestCheckout lastName notificationsAccepted phone } customerId deleted giftPackageLines {price taxValue } giftPackageNote id invoices {appId appName createdAt id invoiceNumber storeAppId type } isGiftPackage merchantId note orderAdjustments {amount amountType appliedOrderLines {amount appliedQuantity isAutoCreated orderLineId } campaignId campaignType couponId name order type } orderLineItems {createdAt currencyCode currencySymbol deleted discount {amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant {barcodeList brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency currencySymbol discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } orderNumber orderPackageStatus orderPackages {createdAt deleted errorMessage id note orderLineItemIds orderPackageFulfillStatus orderPackageNumber stockLocationId trackingInfo {barcode cargoCompany isSendNotification trackingLink trackingNumber } updatedAt } orderPaymentStatus orderTagIds orderedAt paymentMethods {paymentGatewayCode paymentGatewayId paymentGatewayName price type } shippingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } shippingLines {finalPrice isRefunded paymentMethod price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod status taxLines {price rate } totalFinalPrice totalPrice updatedAt }";
48
+ "{billingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } cancelReason cancelledAt createdAt currencyCode currencyRates {code originalRate rate } customer {email firstName fullName id isGuestCheckout lastName notificationsAccepted phone } customerId deleted giftPackageLines {price taxValue } giftPackageNote id invoices {appId appName createdAt id invoiceNumber storeAppId type } isGiftPackage merchantId note orderAdjustments {amount amountType appliedOrderLines {amount appliedQuantity isAutoCreated orderLineId } campaignId campaignType couponId name order type } orderLineItems {createdAt currencyCode deleted discount {amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant {barcodeList brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } orderNumber orderPackageStatus orderPackages {createdAt deleted errorMessage id note orderLineItemIds orderPackageFulfillStatus orderPackageNumber stockLocationId trackingInfo {barcode cargoCompany isSendNotification trackingLink trackingNumber } updatedAt } orderPaymentStatus orderTagIds orderedAt paymentMethods {paymentGatewayCode paymentGatewayId paymentGatewayName price type } shippingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } shippingLines {finalPrice isRefunded paymentMethod price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod status taxLines {price rate } totalFinalPrice totalPrice updatedAt }";
49
49
 
50
50
  export enum ResponseField {
51
51
  BILLING_ADDRESS__ADDRESS_LINE1 = "billingAddress.addressLine1",
@@ -81,7 +81,6 @@ export enum ResponseField {
81
81
  CURRENCY_RATES__CODE = "currencyRates.code",
82
82
  CURRENCY_RATES__ORIGINAL_RATE = "currencyRates.originalRate",
83
83
  CURRENCY_RATES__RATE = "currencyRates.rate",
84
- CURRENCY_SYMBOL = "currencySymbol",
85
84
  CUSTOMER__EMAIL = "customer.email",
86
85
  CUSTOMER__FIRST_NAME = "customer.firstName",
87
86
  CUSTOMER__FULL_NAME = "customer.fullName",
@@ -120,7 +119,6 @@ export enum ResponseField {
120
119
  ORDER_ADJUSTMENTS__TYPE = "orderAdjustments.type",
121
120
  ORDER_LINE_ITEMS__CREATED_AT = "orderLineItems.createdAt",
122
121
  ORDER_LINE_ITEMS__CURRENCY_CODE = "orderLineItems.currencyCode",
123
- ORDER_LINE_ITEMS__CURRENCY_SYMBOL = "orderLineItems.currencySymbol",
124
122
  ORDER_LINE_ITEMS__DELETED = "orderLineItems.deleted",
125
123
  ORDER_LINE_ITEMS__DISCOUNT__AMOUNT = "orderLineItems.discount.amount",
126
124
  ORDER_LINE_ITEMS__DISCOUNT__AMOUNT_TYPE = "orderLineItems.discount.amountType",
@@ -158,7 +156,6 @@ export enum ResponseField {
158
156
  ORDER_LINE_ITEMS__VARIANT__NAME = "orderLineItems.variant.name",
159
157
  ORDER_LINE_ITEMS__VARIANT__PRICES__BUY_PRICE = "orderLineItems.variant.prices.buyPrice",
160
158
  ORDER_LINE_ITEMS__VARIANT__PRICES__CURRENCY = "orderLineItems.variant.prices.currency",
161
- ORDER_LINE_ITEMS__VARIANT__PRICES__CURRENCY_SYMBOL = "orderLineItems.variant.prices.currencySymbol",
162
159
  ORDER_LINE_ITEMS__VARIANT__PRICES__DISCOUNT_PRICE = "orderLineItems.variant.prices.discountPrice",
163
160
  ORDER_LINE_ITEMS__VARIANT__PRICES__PRICE_LIST_ID = "orderLineItems.variant.prices.priceListId",
164
161
  ORDER_LINE_ITEMS__VARIANT__PRICES__SELL_PRICE = "orderLineItems.variant.prices.sellPrice",
@@ -42,7 +42,7 @@ export type QueryParams = {
42
42
  };
43
43
 
44
44
  const allReturnFields =
45
- "{abandonedCartFlows {campaignId canApplicable couponId customerFilters {sendOnlyActiveAccount sendOnlySubscribedToEmail } flowId mailSendDate mailTranslationId recoverEmailStatus sendAfter } availableShippingMethods {price rateName shippingMethod shippingSettingsId shippingZoneRateId } billingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } campaignOffers {appliedOrderLineId campaignOffer {availableSalesChannelIds createdAt deleted endDate followUpActionType id minimumRequiredCartAmount name offers {countdownMinutes description discountAmount discountType excludedVariantIdList id order productId showCriteria skipOfferIfProductExistsInCart title translations {description locale title } } startDate targetPageTypes triggerSettings {filterType valueList } type updatedAt } campaignOfferId campaignOfferProductId offerEndDate offerStartDate status targetPageTypes triggerSourceOrderLineId } cartId cartStatus checkoutId clientIp couponCode createdAt createdBy currencyCode currencyRates {code originalRate rate } currencySymbol customer {email firstName fullName id isGuestCheckout lastName notificationsAccepted phone } customerId deleted dueDate giftPackageLines {price taxValue } giftPackageNote host id isGiftPackage itemCount merchantId note orderAdjustments {amount amountType appliedOrderLines {amount appliedQuantity isAutoCreated orderLineId } campaignId campaignType couponId name order type } orderLineItems {createdAt currencyCode currencySymbol deleted discount {amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant {barcodeList brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency currencySymbol discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } orderNumber orderPackageStatus orderedAt priceListId recoverEmailStatus recoveryStatus salesChannelId shippingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } shippingLines {finalPrice isRefunded paymentMethod price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod shippingSettingsId shippingZoneRateId status stockLocationId storefrontId storefrontRouting {domain dynamicCurrencySettings {roundingFormat targetCurrencyCode } id locale path priceListId } storefrontRoutingId storefrontThemeId taxLines {price rate } totalFinalPrice totalPrice updatedAt userAgent }";
45
+ "{abandonedCartFlows {campaignId canApplicable couponId customerFilters {sendOnlyActiveAccount sendOnlySubscribedToEmail } flowId mailSendDate mailTranslationId recoverEmailStatus sendAfter } availableShippingMethods {price rateName shippingMethod shippingSettingsId shippingZoneRateId } billingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } campaignOffers {appliedOrderLineId campaignOffer {availableSalesChannelIds createdAt deleted endDate followUpActionType id minimumRequiredCartAmount name offers {countdownMinutes description discountAmount discountType excludedVariantIdList id order productId showCriteria skipOfferIfProductExistsInCart title translations {description locale title } } startDate targetPageTypes triggerSettings {filterType valueList } type updatedAt } campaignOfferId campaignOfferProductId offerEndDate offerStartDate status targetPageTypes triggerSourceOrderLineId } cartId cartStatus checkoutId clientIp couponCode createdAt createdBy currencyCode currencyRates {code originalRate rate } customer {email firstName fullName id isGuestCheckout lastName notificationsAccepted phone } customerId deleted dueDate giftPackageLines {price taxValue } giftPackageNote host id isGiftPackage itemCount merchantId note orderAdjustments {amount amountType appliedOrderLines {amount appliedQuantity isAutoCreated orderLineId } campaignId campaignType couponId name order type } orderLineItems {createdAt currencyCode deleted discount {amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant {barcodeList brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } orderNumber orderPackageStatus orderedAt priceListId recoverEmailStatus recoveryStatus salesChannelId shippingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } shippingLines {finalPrice isRefunded paymentMethod price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod shippingSettingsId shippingZoneRateId status stockLocationId storefrontId storefrontRouting {domain dynamicCurrencySettings {roundingFormat targetCurrencyCode } id locale path priceListId } storefrontRoutingId storefrontThemeId taxLines {price rate } totalFinalPrice totalPrice updatedAt userAgent }";
46
46
 
47
47
  export enum ResponseField {
48
48
  ABANDONED_CART_FLOWS__CAMPAIGN_ID = "abandonedCartFlows.campaignId",
@@ -133,7 +133,6 @@ export enum ResponseField {
133
133
  CURRENCY_RATES__CODE = "currencyRates.code",
134
134
  CURRENCY_RATES__ORIGINAL_RATE = "currencyRates.originalRate",
135
135
  CURRENCY_RATES__RATE = "currencyRates.rate",
136
- CURRENCY_SYMBOL = "currencySymbol",
137
136
  CUSTOMER__EMAIL = "customer.email",
138
137
  CUSTOMER__FIRST_NAME = "customer.firstName",
139
138
  CUSTOMER__FULL_NAME = "customer.fullName",
@@ -168,7 +167,6 @@ export enum ResponseField {
168
167
  ORDER_ADJUSTMENTS__TYPE = "orderAdjustments.type",
169
168
  ORDER_LINE_ITEMS__CREATED_AT = "orderLineItems.createdAt",
170
169
  ORDER_LINE_ITEMS__CURRENCY_CODE = "orderLineItems.currencyCode",
171
- ORDER_LINE_ITEMS__CURRENCY_SYMBOL = "orderLineItems.currencySymbol",
172
170
  ORDER_LINE_ITEMS__DELETED = "orderLineItems.deleted",
173
171
  ORDER_LINE_ITEMS__DISCOUNT__AMOUNT = "orderLineItems.discount.amount",
174
172
  ORDER_LINE_ITEMS__DISCOUNT__AMOUNT_TYPE = "orderLineItems.discount.amountType",
@@ -206,7 +204,6 @@ export enum ResponseField {
206
204
  ORDER_LINE_ITEMS__VARIANT__NAME = "orderLineItems.variant.name",
207
205
  ORDER_LINE_ITEMS__VARIANT__PRICES__BUY_PRICE = "orderLineItems.variant.prices.buyPrice",
208
206
  ORDER_LINE_ITEMS__VARIANT__PRICES__CURRENCY = "orderLineItems.variant.prices.currency",
209
- ORDER_LINE_ITEMS__VARIANT__PRICES__CURRENCY_SYMBOL = "orderLineItems.variant.prices.currencySymbol",
210
207
  ORDER_LINE_ITEMS__VARIANT__PRICES__DISCOUNT_PRICE = "orderLineItems.variant.prices.discountPrice",
211
208
  ORDER_LINE_ITEMS__VARIANT__PRICES__PRICE_LIST_ID = "orderLineItems.variant.prices.priceListId",
212
209
  ORDER_LINE_ITEMS__VARIANT__PRICES__SELL_PRICE = "orderLineItems.variant.prices.sellPrice",