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

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 +2 -0
  3. package/src/__api/models/CartStorefrontRoutingDynamicCurrencySettings.ts +2 -0
  4. package/src/__api/models/CartV2.ts +2 -0
  5. package/src/__api/models/CheckoutSettingsPrice.ts +2 -0
  6. package/src/__api/models/Country.ts +4 -0
  7. package/src/__api/models/CurrencyRate.ts +4 -0
  8. package/src/__api/models/OrderLineItem.ts +2 -0
  9. package/src/__api/models/OrderLineVariantPrice.ts +2 -0
  10. package/src/__api/models/ProductBackInStockRemind.ts +2 -0
  11. package/src/__api/models/ProductOptionSelectValueOtherPrice.ts +2 -0
  12. package/src/__api/models/ProductPrice.ts +4 -0
  13. package/src/__api/models/RafflePaginationResponse.ts +5 -3
  14. package/src/__api/models/RaffleParticipants.ts +8 -10
  15. package/src/__api/models/RaffleParticipantsInput.ts +1 -4
  16. package/src/__api/models/SearchProductPrice.ts +4 -0
  17. package/src/__api/models/StorefrontDynamicCurrencySettings.ts +2 -0
  18. package/src/__api/models/StorefrontOrder.ts +2 -0
  19. package/src/__api/models/{Raffle.ts → StorefrontRaffle.ts} +5 -16
  20. package/src/__api/models/StorefrontTransaction.ts +2 -0
  21. package/src/__api/models/_base.ts +2 -1
  22. package/src/__api/mutations/addCouponCodeToCheckout.ts +5 -1
  23. package/src/__api/mutations/addItemToCart.ts +4 -1
  24. package/src/__api/mutations/createOrderRefundRequest.ts +4 -1
  25. package/src/__api/mutations/saveCart.ts +4 -1
  26. package/src/__api/mutations/saveCartCouponCode.ts +4 -1
  27. package/src/__api/mutations/saveCheckout.ts +5 -1
  28. package/src/__api/mutations/saveItemToCart.ts +5 -1
  29. package/src/__api/mutations/saveProductBackInStockRemind.ts +2 -1
  30. package/src/__api/mutations/saveRaffleParticipant.ts +25 -3
  31. package/src/__api/mutations/updateCartCampaignOffer.ts +4 -1
  32. package/src/__api/queries/getCart.ts +5 -1
  33. package/src/__api/queries/getCartById.ts +4 -1
  34. package/src/__api/queries/getCheckoutByCartId.ts +5 -1
  35. package/src/__api/queries/getCheckoutById.ts +5 -1
  36. package/src/__api/queries/getCurrencyRate.ts +3 -1
  37. package/src/__api/queries/getCustomerOrders.ts +4 -1
  38. package/src/__api/queries/getOrder.ts +4 -1
  39. package/src/__api/queries/getOrderByEmail.ts +4 -1
  40. package/src/__api/queries/getStorefront.ts +2 -1
  41. package/src/__api/queries/listCheckoutSettings.ts +2 -1
  42. package/src/__api/queries/listCountry.ts +3 -1
  43. package/src/__api/queries/listOrderTransactions.ts +2 -1
  44. package/src/__api/queries/listProduct.ts +3 -1
  45. package/src/__api/queries/listProductBackInStockRemind.ts +2 -1
  46. package/src/__api/queries/listProductOptionSet.ts +3 -1
  47. package/src/__api/queries/listRaffleParticipants.ts +81 -0
  48. package/src/__api/queries/{listRaffle.ts → listStorefrontRaffle.ts} +10 -10
  49. package/src/__api/queries/searchProducts.ts +3 -1
  50. package/src/__api/types/index.ts +43 -35
  51. package/src/api/checkout/index.ts +1 -1
  52. package/src/api/customer/index.ts +9 -0
  53. package/src/api/file-upload/index.ts +35 -29
  54. package/src/api/masterpass/index.ts +7 -7
  55. package/src/api/product/index.ts +1 -0
  56. package/src/api/raffle/index.ts +12 -14
  57. package/src/index.ts +9 -7
  58. package/src/__api/models/RaffleParticipantsUpdateInput.ts +0 -24
  59. package/src/__api/mutations/updateRaffleParticipant.ts +0 -72
  60. package/src/__api/queries/getRaffleParticipants.ts +0 -59
  61. package/src/__api/queries/getRafflesByCustomerId.ts +0 -74
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront-api",
3
- "version": "4.0.0-alpha.4",
3
+ "version": "4.0.0-alpha.41",
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,12 +16,13 @@
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.13"
19
+ "@ikas/fe-api-client": "^1.0.16",
20
+ "ts-essentials": "^7.0.1"
20
21
  },
21
22
  "devDependencies": {
22
23
  "@rollup/plugin-commonjs": "^22.0.0",
23
- "@ikas/storefront-config": "^4.0.0-alpha.4",
24
- "@ikas/storefront-models": "^4.0.0-alpha.4",
24
+ "@ikas/storefront-config": "^4.0.0-alpha.41",
25
+ "@ikas/storefront-models": "^4.0.0-alpha.41",
25
26
  "@rollup/plugin-node-resolve": "^13.3.0",
26
27
  "prettier": "^2.2.1",
27
28
  "rollup": "^2.75.6",
@@ -31,12 +32,11 @@
31
32
  "typescript": "^4.7.2",
32
33
  "ttypescript": "^1.5.12",
33
34
  "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.4",
39
- "@ikas/storefront-models": "^4.0.0-alpha.4",
38
+ "@ikas/storefront-config": "^4.0.0-alpha.41",
39
+ "@ikas/storefront-models": "^4.0.0-alpha.41",
40
40
  "axios": "^0.26.0"
41
41
  }
42
42
  }
@@ -10,6 +10,7 @@ export class CartData extends BaseModelData {
10
10
  campaignOffers: CartCampaignOfferData[] | null;
11
11
  createdBy: CartCreatedByEnum | null;
12
12
  currencyCode: string | null;
13
+ currencySymbol: string | null;
13
14
  customerId: string | null;
14
15
  dueDate: any;
15
16
  itemCount: number;
@@ -33,6 +34,7 @@ export class CartData extends BaseModelData {
33
34
  : null;
34
35
  this.createdBy = data.createdBy || null;
35
36
  this.currencyCode = data.currencyCode || null;
37
+ this.currencySymbol = data.currencySymbol || null;
36
38
  this.customerId = data.customerId || null;
37
39
  this.dueDate = data.dueDate || null;
38
40
  this.itemCount = data.itemCount || 0;
@@ -3,12 +3,14 @@ import { DeepReadonly } from "ts-essentials";
3
3
  export class CartStorefrontRoutingDynamicCurrencySettingsData {
4
4
  roundingFormat: string | null;
5
5
  targetCurrencyCode: string;
6
+ targetCurrencySymbol: string | null;
6
7
 
7
8
  constructor(
8
9
  data: Partial<CartStorefrontRoutingDynamicCurrencySettingsData> = {}
9
10
  ) {
10
11
  this.roundingFormat = data.roundingFormat || null;
11
12
  this.targetCurrencyCode = data.targetCurrencyCode || "";
13
+ this.targetCurrencySymbol = data.targetCurrencySymbol || null;
12
14
  }
13
15
  }
14
16
 
@@ -34,6 +34,7 @@ export class CartV2Data extends BaseModelData {
34
34
  createdBy: CartCreatedByEnum | null;
35
35
  currencyCode: string;
36
36
  currencyRates: OrderCurrencyRateData[];
37
+ currencySymbol: string | null;
37
38
  customer: OrderCustomerData | null;
38
39
  customerId: string | null;
39
40
  dueDate: any | null;
@@ -96,6 +97,7 @@ export class CartV2Data extends BaseModelData {
96
97
  this.currencyRates = data.currencyRates
97
98
  ? data.currencyRates.map((o) => new OrderCurrencyRateData(o))
98
99
  : [];
100
+ this.currencySymbol = data.currencySymbol || null;
99
101
  this.customer = data.customer ? new OrderCustomerData(data.customer) : null;
100
102
  this.customerId = data.customerId || null;
101
103
  this.dueDate = data.dueDate || null;
@@ -2,10 +2,12 @@ import { DeepReadonly } from "ts-essentials";
2
2
 
3
3
  export class CheckoutSettingsPriceData {
4
4
  currencyCode: string;
5
+ currencySymbol: string | null;
5
6
  price: number;
6
7
 
7
8
  constructor(data: Partial<CheckoutSettingsPriceData> = {}) {
8
9
  this.currencyCode = data.currencyCode || "";
10
+ this.currencySymbol = data.currencySymbol || null;
9
11
  this.price = data.price || 0;
10
12
  }
11
13
  }
@@ -5,6 +5,8 @@ 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;
8
10
  emoji: string | null;
9
11
  emojiString: string | null;
10
12
  iso2: string | null;
@@ -21,6 +23,8 @@ export class CountryData extends BaseModelData {
21
23
 
22
24
  this.capital = data.capital || null;
23
25
  this.currency = data.currency || null;
26
+ this.currencyCode = data.currencyCode || null;
27
+ this.currencySymbol = data.currencySymbol || null;
24
28
  this.emoji = data.emoji || null;
25
29
  this.emojiString = data.emojiString || null;
26
30
  this.iso2 = data.iso2 || null;
@@ -4,6 +4,8 @@ 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;
7
9
  date: any;
8
10
  rates: CurrencyRateDataData[];
9
11
 
@@ -11,6 +13,8 @@ export class CurrencyRateData extends BaseModelData {
11
13
  super(data);
12
14
 
13
15
  this.baseCurrency = data.baseCurrency || "";
16
+ this.baseCurrencyCode = data.baseCurrencyCode || null;
17
+ this.baseCurrencySymbol = data.baseCurrencySymbol || null;
14
18
  this.date = data.date || null;
15
19
  this.rates = data.rates
16
20
  ? data.rates.map((c) => new CurrencyRateDataData(c))
@@ -7,6 +7,7 @@ import { OrderLineVariantData } from "./OrderLineVariant";
7
7
 
8
8
  export class OrderLineItemData extends BaseModelData {
9
9
  currencyCode: string | null;
10
+ currencySymbol: string | null;
10
11
  discount: OrderLineDiscountData | null;
11
12
  discountPrice: number | null;
12
13
  finalPrice: number | null;
@@ -24,6 +25,7 @@ export class OrderLineItemData extends BaseModelData {
24
25
  super(data);
25
26
 
26
27
  this.currencyCode = data.currencyCode || null;
28
+ this.currencySymbol = data.currencySymbol || null;
27
29
  this.discount = data.discount
28
30
  ? new OrderLineDiscountData(data.discount)
29
31
  : null;
@@ -3,6 +3,7 @@ import { DeepReadonly } from "ts-essentials";
3
3
  export class OrderLineVariantPriceData {
4
4
  buyPrice: number | null;
5
5
  currency: string | null;
6
+ currencySymbol: string | null;
6
7
  discountPrice: number | null;
7
8
  priceListId: string | null;
8
9
  sellPrice: number;
@@ -13,6 +14,7 @@ export class OrderLineVariantPriceData {
13
14
  ? data.buyPrice
14
15
  : null;
15
16
  this.currency = data.currency || null;
17
+ this.currencySymbol = data.currencySymbol || null;
16
18
  this.discountPrice =
17
19
  data.discountPrice !== undefined && data.discountPrice !== null
18
20
  ? data.discountPrice
@@ -6,6 +6,7 @@ export class ProductBackInStockRemindData extends BaseModelData {
6
6
  email: string;
7
7
  productId: string;
8
8
  storefrontId: string;
9
+ storefrontRoutingId: string | null;
9
10
  variantId: string;
10
11
 
11
12
  constructor(data: Partial<ProductBackInStockRemindData> = {}) {
@@ -15,6 +16,7 @@ export class ProductBackInStockRemindData extends BaseModelData {
15
16
  this.email = data.email || "";
16
17
  this.productId = data.productId || "";
17
18
  this.storefrontId = data.storefrontId || "";
19
+ this.storefrontRoutingId = data.storefrontRoutingId || null;
18
20
  this.variantId = data.variantId || "";
19
21
  }
20
22
  }
@@ -2,10 +2,12 @@ import { DeepReadonly } from "ts-essentials";
2
2
 
3
3
  export class ProductOptionSelectValueOtherPriceData {
4
4
  currencyCode: string;
5
+ currencySymbol: string | null;
5
6
  price: number;
6
7
 
7
8
  constructor(data: Partial<ProductOptionSelectValueOtherPriceData> = {}) {
8
9
  this.currencyCode = data.currencyCode || "";
10
+ this.currencySymbol = data.currencySymbol || null;
9
11
  this.price = data.price || 0;
10
12
  }
11
13
  }
@@ -3,6 +3,8 @@ 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;
6
8
  discountPrice: number | null;
7
9
  priceListId: string | null;
8
10
  sellPrice: number;
@@ -13,6 +15,8 @@ export class ProductPriceData {
13
15
  ? data.buyPrice
14
16
  : null;
15
17
  this.currency = data.currency || null;
18
+ this.currencyCode = data.currencyCode || null;
19
+ this.currencySymbol = data.currencySymbol || null;
16
20
  this.discountPrice =
17
21
  data.discountPrice !== undefined && data.discountPrice !== null
18
22
  ? data.discountPrice
@@ -1,16 +1,18 @@
1
1
  import { DeepReadonly } from "ts-essentials";
2
- import { RaffleData } from "./Raffle";
2
+ import { StorefrontRaffleData } from "./StorefrontRaffle";
3
3
 
4
4
  export class RafflePaginationResponseData {
5
5
  count: number;
6
- data: RaffleData[];
6
+ data: StorefrontRaffleData[];
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 ? data.data.map((r) => new RaffleData(r)) : [];
13
+ this.data = data.data
14
+ ? data.data.map((s) => new StorefrontRaffleData(s))
15
+ : [];
14
16
  this.hasNext = data.hasNext || false;
15
17
  this.limit = data.limit || 0;
16
18
  this.page = data.page || 0;
@@ -1,6 +1,8 @@
1
1
  import { DeepReadonly } from "ts-essentials";
2
2
  import BaseModelData from "./_base";
3
+ import { RaffleParticipantStatusEnum } from "../types";
3
4
  import { AppliedProductData } from "./AppliedProduct";
5
+ import { StorefrontRaffleData } from "./StorefrontRaffle";
4
6
 
5
7
  export class RaffleParticipantsData extends BaseModelData {
6
8
  applicationDate: any;
@@ -11,11 +13,11 @@ export class RaffleParticipantsData extends BaseModelData {
11
13
  firstName: string;
12
14
  fullName: string;
13
15
  isDeliveredCargo: boolean | null;
14
- isSendEmail: boolean | null;
15
- isWinner: boolean | null;
16
16
  lastName: string;
17
17
  phone: string | null;
18
+ raffle: StorefrontRaffleData;
18
19
  raffleId: string;
20
+ status: RaffleParticipantStatusEnum | null;
19
21
 
20
22
  constructor(data: Partial<RaffleParticipantsData> = {}) {
21
23
  super(data);
@@ -33,17 +35,13 @@ export class RaffleParticipantsData extends BaseModelData {
33
35
  data.isDeliveredCargo !== undefined && data.isDeliveredCargo !== null
34
36
  ? data.isDeliveredCargo
35
37
  : 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;
44
38
  this.lastName = data.lastName || "";
45
39
  this.phone = data.phone || null;
40
+ this.raffle = data.raffle
41
+ ? new StorefrontRaffleData(data.raffle)
42
+ : new StorefrontRaffleData();
46
43
  this.raffleId = data.raffleId || "";
44
+ this.status = data.status || null;
47
45
  }
48
46
  }
49
47
 
@@ -1,8 +1,7 @@
1
1
  import { DeepReadonly } from "ts-essentials";
2
- import BaseModelData from "./_base";
3
2
  import { AppliedProductInputData } from "./AppliedProductInput";
4
3
 
5
- export class RaffleParticipantsInputData extends BaseModelData {
4
+ export class RaffleParticipantsInputData {
6
5
  appliedProduct: AppliedProductInputData;
7
6
  email: string;
8
7
  extraData: any | null;
@@ -12,8 +11,6 @@ export class RaffleParticipantsInputData extends BaseModelData {
12
11
  raffleId: string;
13
12
 
14
13
  constructor(data: Partial<RaffleParticipantsInputData> = {}) {
15
- super(data);
16
-
17
14
  this.appliedProduct = data.appliedProduct
18
15
  ? new AppliedProductInputData(data.appliedProduct)
19
16
  : new AppliedProductInputData();
@@ -3,6 +3,8 @@ 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;
6
8
  discountPrice: number | null;
7
9
  priceListId: string | null;
8
10
  sellPrice: number;
@@ -13,6 +15,8 @@ export class SearchProductPriceData {
13
15
  ? data.buyPrice
14
16
  : null;
15
17
  this.currency = data.currency || null;
18
+ this.currencyCode = data.currencyCode || null;
19
+ this.currencySymbol = data.currencySymbol || null;
16
20
  this.discountPrice =
17
21
  data.discountPrice !== undefined && data.discountPrice !== null
18
22
  ? data.discountPrice
@@ -3,10 +3,12 @@ import { DeepReadonly } from "ts-essentials";
3
3
  export class StorefrontDynamicCurrencySettingsData {
4
4
  roundingFormat: string | null;
5
5
  targetCurrencyCode: string;
6
+ targetCurrencySymbol: string | null;
6
7
 
7
8
  constructor(data: Partial<StorefrontDynamicCurrencySettingsData> = {}) {
8
9
  this.roundingFormat = data.roundingFormat || null;
9
10
  this.targetCurrencyCode = data.targetCurrencyCode || "";
11
+ this.targetCurrencySymbol = data.targetCurrencySymbol || null;
10
12
  }
11
13
  }
12
14
 
@@ -25,6 +25,7 @@ export class StorefrontOrderData extends BaseModelData {
25
25
  cancelledAt: any | null;
26
26
  currencyCode: string;
27
27
  currencyRates: OrderCurrencyRateData[];
28
+ currencySymbol: string | null;
28
29
  customer: OrderCustomerData | null;
29
30
  customerId: string | null;
30
31
  giftPackageLines: OrderGiftPackageLineData[] | null;
@@ -62,6 +63,7 @@ export class StorefrontOrderData extends BaseModelData {
62
63
  this.currencyRates = data.currencyRates
63
64
  ? data.currencyRates.map((o) => new OrderCurrencyRateData(o))
64
65
  : [];
66
+ this.currencySymbol = data.currencySymbol || null;
65
67
  this.customer = data.customer ? new OrderCustomerData(data.customer) : null;
66
68
  this.customerId = data.customerId || null;
67
69
  this.giftPackageLines = data.giftPackageLines
@@ -5,19 +5,16 @@ import { RaffleDateRangeFieldData } from "./RaffleDateRangeField";
5
5
  import { RaffleMetadataData } from "./RaffleMetadata";
6
6
  import { RaffleVariantInformationData } from "./RaffleVariantInformation";
7
7
 
8
- export class RaffleData extends BaseModelData {
8
+ export class StorefrontRaffleData 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;
15
12
  requiredCustomerAccount: boolean;
16
13
  status: boolean;
17
14
  variants: RaffleVariantInformationData[];
18
15
  verificationType: VerificationTypeEnum;
19
16
 
20
- constructor(data: Partial<RaffleData> = {}) {
17
+ constructor(data: Partial<StorefrontRaffleData> = {}) {
21
18
  super(data);
22
19
 
23
20
  this.dateRange = data.dateRange
@@ -27,14 +24,6 @@ export class RaffleData extends BaseModelData {
27
24
  ? new RaffleMetadataData(data.metadata)
28
25
  : new RaffleMetadataData();
29
26
  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;
38
27
  this.requiredCustomerAccount = data.requiredCustomerAccount || false;
39
28
  this.status = data.status || false;
40
29
  this.variants = data.variants
@@ -44,6 +33,6 @@ export class RaffleData extends BaseModelData {
44
33
  }
45
34
  }
46
35
 
47
- export class Raffle extends RaffleData {}
48
- export type PartialRaffle = Partial<Raffle>;
49
- export type ReadOnlyRaffle = DeepReadonly<Raffle>;
36
+ export class StorefrontRaffle extends StorefrontRaffleData {}
37
+ export type PartialStorefrontRaffle = Partial<StorefrontRaffle>;
38
+ export type ReadOnlyStorefrontRaffle = DeepReadonly<StorefrontRaffle>;
@@ -12,6 +12,7 @@ export class StorefrontTransactionData extends BaseModelData {
12
12
  amount: number;
13
13
  checkoutId: string | null;
14
14
  currencyCode: string;
15
+ currencySymbol: string | null;
15
16
  customerId: string | null;
16
17
  error: TransactionErrorData | null;
17
18
  orderId: string | null;
@@ -31,6 +32,7 @@ export class StorefrontTransactionData extends BaseModelData {
31
32
  this.amount = data.amount || 0;
32
33
  this.checkoutId = data.checkoutId || null;
33
34
  this.currencyCode = data.currencyCode || "";
35
+ this.currencySymbol = data.currencySymbol || null;
34
36
  this.customerId = data.customerId || null;
35
37
  this.error = data.error ? new TransactionErrorData(data.error) : null;
36
38
  this.orderId = data.orderId || null;
@@ -5,7 +5,8 @@ export default class BaseModelData {
5
5
  deleted?: boolean | null;
6
6
 
7
7
  constructor(data: BaseModelParams = {}) {
8
- this.id = data.id || Date.now() + "";
8
+ //@ts-ignore
9
+ this.id = data.id || null;
9
10
  this.createdAt = data.createdAt || Date.now();
10
11
  this.updatedAt = data.updatedAt || Date.now();
11
12
  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 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 }";
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 }";
49
49
 
50
50
  export enum ResponseField {
51
51
  ABANDONED_CHECKOUT_FLOWS__CAMPAIGN_ID = "abandonedCheckoutFlows.campaignId",
@@ -112,6 +112,7 @@ 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",
115
116
  CART__CUSTOMER_ID = "cart.customerId",
116
117
  CART__DELETED = "cart.deleted",
117
118
  CART__DUE_DATE = "cart.dueDate",
@@ -119,6 +120,7 @@ export enum ResponseField {
119
120
  CART__ITEM_COUNT = "cart.itemCount",
120
121
  CART__ITEMS__CREATED_AT = "cart.items.createdAt",
121
122
  CART__ITEMS__CURRENCY_CODE = "cart.items.currencyCode",
123
+ CART__ITEMS__CURRENCY_SYMBOL = "cart.items.currencySymbol",
122
124
  CART__ITEMS__DELETED = "cart.items.deleted",
123
125
  CART__ITEMS__DISCOUNT__AMOUNT = "cart.items.discount.amount",
124
126
  CART__ITEMS__DISCOUNT__AMOUNT_TYPE = "cart.items.discount.amountType",
@@ -156,6 +158,7 @@ export enum ResponseField {
156
158
  CART__ITEMS__VARIANT__NAME = "cart.items.variant.name",
157
159
  CART__ITEMS__VARIANT__PRICES__BUY_PRICE = "cart.items.variant.prices.buyPrice",
158
160
  CART__ITEMS__VARIANT__PRICES__CURRENCY = "cart.items.variant.prices.currency",
161
+ CART__ITEMS__VARIANT__PRICES__CURRENCY_SYMBOL = "cart.items.variant.prices.currencySymbol",
159
162
  CART__ITEMS__VARIANT__PRICES__DISCOUNT_PRICE = "cart.items.variant.prices.discountPrice",
160
163
  CART__ITEMS__VARIANT__PRICES__PRICE_LIST_ID = "cart.items.variant.prices.priceListId",
161
164
  CART__ITEMS__VARIANT__PRICES__SELL_PRICE = "cart.items.variant.prices.sellPrice",
@@ -179,6 +182,7 @@ export enum ResponseField {
179
182
  CART__STOREFRONT_ROUTING__DOMAIN = "cart.storefrontRouting.domain",
180
183
  CART__STOREFRONT_ROUTING__DYNAMIC_CURRENCY_SETTINGS__ROUNDING_FORMAT = "cart.storefrontRouting.dynamicCurrencySettings.roundingFormat",
181
184
  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",
182
186
  CART__STOREFRONT_ROUTING__ID = "cart.storefrontRouting.id",
183
187
  CART__STOREFRONT_ROUTING__LOCALE = "cart.storefrontRouting.locale",
184
188
  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 } 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 }";
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 }";
46
46
 
47
47
  export enum ResponseField {
48
48
  ABANDONED_CART_FLOWS__CAMPAIGN_ID = "abandonedCartFlows.campaignId",
@@ -133,6 +133,7 @@ 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",
136
137
  CUSTOMER__EMAIL = "customer.email",
137
138
  CUSTOMER__FIRST_NAME = "customer.firstName",
138
139
  CUSTOMER__FULL_NAME = "customer.fullName",
@@ -167,6 +168,7 @@ export enum ResponseField {
167
168
  ORDER_ADJUSTMENTS__TYPE = "orderAdjustments.type",
168
169
  ORDER_LINE_ITEMS__CREATED_AT = "orderLineItems.createdAt",
169
170
  ORDER_LINE_ITEMS__CURRENCY_CODE = "orderLineItems.currencyCode",
171
+ ORDER_LINE_ITEMS__CURRENCY_SYMBOL = "orderLineItems.currencySymbol",
170
172
  ORDER_LINE_ITEMS__DELETED = "orderLineItems.deleted",
171
173
  ORDER_LINE_ITEMS__DISCOUNT__AMOUNT = "orderLineItems.discount.amount",
172
174
  ORDER_LINE_ITEMS__DISCOUNT__AMOUNT_TYPE = "orderLineItems.discount.amountType",
@@ -204,6 +206,7 @@ export enum ResponseField {
204
206
  ORDER_LINE_ITEMS__VARIANT__NAME = "orderLineItems.variant.name",
205
207
  ORDER_LINE_ITEMS__VARIANT__PRICES__BUY_PRICE = "orderLineItems.variant.prices.buyPrice",
206
208
  ORDER_LINE_ITEMS__VARIANT__PRICES__CURRENCY = "orderLineItems.variant.prices.currency",
209
+ ORDER_LINE_ITEMS__VARIANT__PRICES__CURRENCY_SYMBOL = "orderLineItems.variant.prices.currencySymbol",
207
210
  ORDER_LINE_ITEMS__VARIANT__PRICES__DISCOUNT_PRICE = "orderLineItems.variant.prices.discountPrice",
208
211
  ORDER_LINE_ITEMS__VARIANT__PRICES__PRICE_LIST_ID = "orderLineItems.variant.prices.priceListId",
209
212
  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 } 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 }";
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 }";
49
49
 
50
50
  export enum ResponseField {
51
51
  BILLING_ADDRESS__ADDRESS_LINE1 = "billingAddress.addressLine1",
@@ -81,6 +81,7 @@ 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",
84
85
  CUSTOMER__EMAIL = "customer.email",
85
86
  CUSTOMER__FIRST_NAME = "customer.firstName",
86
87
  CUSTOMER__FULL_NAME = "customer.fullName",
@@ -119,6 +120,7 @@ export enum ResponseField {
119
120
  ORDER_ADJUSTMENTS__TYPE = "orderAdjustments.type",
120
121
  ORDER_LINE_ITEMS__CREATED_AT = "orderLineItems.createdAt",
121
122
  ORDER_LINE_ITEMS__CURRENCY_CODE = "orderLineItems.currencyCode",
123
+ ORDER_LINE_ITEMS__CURRENCY_SYMBOL = "orderLineItems.currencySymbol",
122
124
  ORDER_LINE_ITEMS__DELETED = "orderLineItems.deleted",
123
125
  ORDER_LINE_ITEMS__DISCOUNT__AMOUNT = "orderLineItems.discount.amount",
124
126
  ORDER_LINE_ITEMS__DISCOUNT__AMOUNT_TYPE = "orderLineItems.discount.amountType",
@@ -156,6 +158,7 @@ export enum ResponseField {
156
158
  ORDER_LINE_ITEMS__VARIANT__NAME = "orderLineItems.variant.name",
157
159
  ORDER_LINE_ITEMS__VARIANT__PRICES__BUY_PRICE = "orderLineItems.variant.prices.buyPrice",
158
160
  ORDER_LINE_ITEMS__VARIANT__PRICES__CURRENCY = "orderLineItems.variant.prices.currency",
161
+ ORDER_LINE_ITEMS__VARIANT__PRICES__CURRENCY_SYMBOL = "orderLineItems.variant.prices.currencySymbol",
159
162
  ORDER_LINE_ITEMS__VARIANT__PRICES__DISCOUNT_PRICE = "orderLineItems.variant.prices.discountPrice",
160
163
  ORDER_LINE_ITEMS__VARIANT__PRICES__PRICE_LIST_ID = "orderLineItems.variant.prices.priceListId",
161
164
  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 } 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 }";
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 }";
46
46
 
47
47
  export enum ResponseField {
48
48
  ABANDONED_CART_FLOWS__CAMPAIGN_ID = "abandonedCartFlows.campaignId",
@@ -133,6 +133,7 @@ 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",
136
137
  CUSTOMER__EMAIL = "customer.email",
137
138
  CUSTOMER__FIRST_NAME = "customer.firstName",
138
139
  CUSTOMER__FULL_NAME = "customer.fullName",
@@ -167,6 +168,7 @@ export enum ResponseField {
167
168
  ORDER_ADJUSTMENTS__TYPE = "orderAdjustments.type",
168
169
  ORDER_LINE_ITEMS__CREATED_AT = "orderLineItems.createdAt",
169
170
  ORDER_LINE_ITEMS__CURRENCY_CODE = "orderLineItems.currencyCode",
171
+ ORDER_LINE_ITEMS__CURRENCY_SYMBOL = "orderLineItems.currencySymbol",
170
172
  ORDER_LINE_ITEMS__DELETED = "orderLineItems.deleted",
171
173
  ORDER_LINE_ITEMS__DISCOUNT__AMOUNT = "orderLineItems.discount.amount",
172
174
  ORDER_LINE_ITEMS__DISCOUNT__AMOUNT_TYPE = "orderLineItems.discount.amountType",
@@ -204,6 +206,7 @@ export enum ResponseField {
204
206
  ORDER_LINE_ITEMS__VARIANT__NAME = "orderLineItems.variant.name",
205
207
  ORDER_LINE_ITEMS__VARIANT__PRICES__BUY_PRICE = "orderLineItems.variant.prices.buyPrice",
206
208
  ORDER_LINE_ITEMS__VARIANT__PRICES__CURRENCY = "orderLineItems.variant.prices.currency",
209
+ ORDER_LINE_ITEMS__VARIANT__PRICES__CURRENCY_SYMBOL = "orderLineItems.variant.prices.currencySymbol",
207
210
  ORDER_LINE_ITEMS__VARIANT__PRICES__DISCOUNT_PRICE = "orderLineItems.variant.prices.discountPrice",
208
211
  ORDER_LINE_ITEMS__VARIANT__PRICES__PRICE_LIST_ID = "orderLineItems.variant.prices.priceListId",
209
212
  ORDER_LINE_ITEMS__VARIANT__PRICES__SELL_PRICE = "orderLineItems.variant.prices.sellPrice",