@arrowsphere/api-client 3.416.0-rc-cpe-2 → 3.417.0
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.
- package/CHANGELOG.md +8 -0
- package/build/cart/entities/index.d.ts +0 -2
- package/build/cart/entities/index.js +0 -2
- package/build/cart/entities/item.d.ts +0 -4
- package/build/cart/entities/item.js +4 -15
- package/build/catalog/catalogClient.d.ts +6 -0
- package/build/catalog/catalogClient.js +8 -0
- package/build/catalog/entities/checkEligibilityItem.d.ts +48 -0
- package/build/catalog/entities/checkEligibilityItem.js +82 -0
- package/build/catalog/entities/checkEligibilityItems.d.ts +9 -0
- package/build/catalog/entities/checkEligibilityItems.js +33 -0
- package/build/catalog/index.d.ts +3 -0
- package/build/catalog/index.js +3 -0
- package/build/catalog/types/checkEligibility.d.ts +10 -0
- package/build/catalog/types/checkEligibility.js +3 -0
- package/build/licenses/entities/getLicense/extraDataGetResult.d.ts +1 -0
- package/build/licenses/entities/getLicense/extraDataGetResult.js +1 -0
- package/package.json +1 -1
- package/build/cart/entities/itemPreferredCurrency.d.ts +0 -18
- package/build/cart/entities/itemPreferredCurrency.js +0 -47
- package/build/cart/entities/preferredCurrency/itemPreferredCurrencyValues.d.ts +0 -22
- package/build/cart/entities/preferredCurrency/itemPreferredCurrencyValues.js +0 -61
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
4
4
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
5
5
|
|
|
6
|
+
## [3.417.0] - 2026.10.30
|
|
7
|
+
### Added
|
|
8
|
+
- [catalog] Add `checkEligibility` endpoint to `CatalogClient` (`CheckEligibilityPayload`, `CheckEligibilityItems`, `CheckEligibilityItem`)
|
|
9
|
+
|
|
10
|
+
## [3.416.0] - 2026.10.30
|
|
11
|
+
### Added
|
|
12
|
+
- [licenses] Add `CUSTOMER_ERP_ID` to `CompanyDetailKeyEnum`
|
|
13
|
+
|
|
6
14
|
## [3.415.0] - 2026.10.23
|
|
7
15
|
### Added
|
|
8
16
|
- [supportCenter] Add `extraDescriptionInfo` to `CreateIssuePayload` (`IssueExtraDescriptionInfoType`, `IssueExtraDescriptionInfoNameEnum`, `IssueExtraDescriptionInfoImpactEnum`, `IssueExtraDescriptionInfoUrgencyEnum`, `IssueExtraDescriptionInfoAvailabilityEnum`)
|
|
@@ -16,8 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./endCustomer"), exports);
|
|
18
18
|
__exportStar(require("./item"), exports);
|
|
19
|
-
__exportStar(require("./itemPreferredCurrency"), exports);
|
|
20
|
-
__exportStar(require("./preferredCurrency/itemPreferredCurrencyValues"), exports);
|
|
21
19
|
__exportStar(require("./itemList"), exports);
|
|
22
20
|
__exportStar(require("./cartItemListResult"), exports);
|
|
23
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AbstractEntity } from '../../abstractEntity';
|
|
2
2
|
import { EndCustomer, CartEndCustomerType } from './endCustomer';
|
|
3
|
-
import { ItemPreferredCurrency, ItemPreferredCurrencyType } from './itemPreferredCurrency';
|
|
4
3
|
export declare enum ItemAdditionalDataFields {
|
|
5
4
|
NAME = "name",
|
|
6
5
|
VALUE = "value"
|
|
@@ -29,7 +28,6 @@ export declare enum ItemFields {
|
|
|
29
28
|
PRICE_BAND_ARROWSPHERE_SKU = "priceBandArrowsphereSku",
|
|
30
29
|
PRICE_BAND_ERP_SKU = "pricebandErpSku",
|
|
31
30
|
PRICE_BAND_VENDOR_SKU = "pricebandVendorSku",
|
|
32
|
-
PREFERRED_CURRENCY = "preferredCurrency",
|
|
33
31
|
PRICES = "prices",
|
|
34
32
|
PRICES_WITHOUT_PROMOTION = "pricesWithoutPromotion",
|
|
35
33
|
QUANTITY = "quantity",
|
|
@@ -49,7 +47,6 @@ export declare type ItemType = {
|
|
|
49
47
|
[ItemFields.PRICE_BAND_ARROWSPHERE_SKU]: string;
|
|
50
48
|
[ItemFields.PRICE_BAND_ERP_SKU]?: string;
|
|
51
49
|
[ItemFields.PRICE_BAND_VENDOR_SKU]?: string;
|
|
52
|
-
[ItemFields.PREFERRED_CURRENCY]?: ItemPreferredCurrencyType;
|
|
53
50
|
[ItemFields.PRICES]?: Record<'arrow' | 'partner' | 'endCustomer' | 'retail', number> | undefined;
|
|
54
51
|
[ItemFields.PRICES_WITHOUT_PROMOTION]?: Record<'arrow' | 'partner' | 'endCustomer' | 'retail', number> | undefined;
|
|
55
52
|
[ItemFields.QUANTITY]: number;
|
|
@@ -73,7 +70,6 @@ export declare class Item extends AbstractEntity<ItemType> {
|
|
|
73
70
|
get priceBandArrowsphereSku(): string;
|
|
74
71
|
get pricebandErpSku(): string | undefined;
|
|
75
72
|
get pricebandVendorSku(): string | undefined;
|
|
76
|
-
get preferredCurrency(): ItemPreferredCurrency | undefined;
|
|
77
73
|
get prices(): Record<'arrow' | 'partner' | 'endCustomer' | 'retail', number> | undefined;
|
|
78
74
|
get pricesWithoutPromotion(): Record<'arrow' | 'partner' | 'endCustomer' | 'retail', number> | undefined;
|
|
79
75
|
get quantity(): number;
|
|
@@ -10,12 +10,11 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
11
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
12
|
};
|
|
13
|
-
var _Item_additionalData, _Item_cotermPrices, _Item_cotermPricesWithoutPromotion, _Item_currency, _Item_endCustomer, _Item_isAddon, _Item_isBundle, _Item_isTrial, _Item_itemId, _Item_offerName, _Item_priceBandArrowsphereSku, _Item_pricebandErpSku, _Item_pricebandVendorSku,
|
|
13
|
+
var _Item_additionalData, _Item_cotermPrices, _Item_cotermPricesWithoutPromotion, _Item_currency, _Item_endCustomer, _Item_isAddon, _Item_isBundle, _Item_isTrial, _Item_itemId, _Item_offerName, _Item_priceBandArrowsphereSku, _Item_pricebandErpSku, _Item_pricebandVendorSku, _Item_prices, _Item_pricesWithoutPromotion, _Item_quantity, _Item_rules, _Item_bundleArrowSphereSku, _Item_basePriceBands;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.Item = exports.ItemFields = exports.ItemAdditionalDataFields = void 0;
|
|
16
16
|
const abstractEntity_1 = require("../../abstractEntity");
|
|
17
17
|
const endCustomer_1 = require("./endCustomer");
|
|
18
|
-
const itemPreferredCurrency_1 = require("./itemPreferredCurrency");
|
|
19
18
|
var ItemAdditionalDataFields;
|
|
20
19
|
(function (ItemAdditionalDataFields) {
|
|
21
20
|
ItemAdditionalDataFields["NAME"] = "name";
|
|
@@ -38,7 +37,6 @@ var ItemFields;
|
|
|
38
37
|
ItemFields["PRICE_BAND_ARROWSPHERE_SKU"] = "priceBandArrowsphereSku";
|
|
39
38
|
ItemFields["PRICE_BAND_ERP_SKU"] = "pricebandErpSku";
|
|
40
39
|
ItemFields["PRICE_BAND_VENDOR_SKU"] = "pricebandVendorSku";
|
|
41
|
-
ItemFields["PREFERRED_CURRENCY"] = "preferredCurrency";
|
|
42
40
|
ItemFields["PRICES"] = "prices";
|
|
43
41
|
ItemFields["PRICES_WITHOUT_PROMOTION"] = "pricesWithoutPromotion";
|
|
44
42
|
ItemFields["QUANTITY"] = "quantity";
|
|
@@ -61,7 +59,6 @@ class Item extends abstractEntity_1.AbstractEntity {
|
|
|
61
59
|
_Item_priceBandArrowsphereSku.set(this, void 0);
|
|
62
60
|
_Item_pricebandErpSku.set(this, void 0);
|
|
63
61
|
_Item_pricebandVendorSku.set(this, void 0);
|
|
64
|
-
_Item_preferredCurrency.set(this, void 0);
|
|
65
62
|
_Item_prices.set(this, void 0);
|
|
66
63
|
_Item_pricesWithoutPromotion.set(this, void 0);
|
|
67
64
|
_Item_quantity.set(this, void 0);
|
|
@@ -82,10 +79,6 @@ class Item extends abstractEntity_1.AbstractEntity {
|
|
|
82
79
|
__classPrivateFieldSet(this, _Item_priceBandArrowsphereSku, itemResponse[ItemFields.PRICE_BAND_ARROWSPHERE_SKU], "f");
|
|
83
80
|
__classPrivateFieldSet(this, _Item_pricebandErpSku, itemResponse[ItemFields.PRICE_BAND_ERP_SKU], "f");
|
|
84
81
|
__classPrivateFieldSet(this, _Item_pricebandVendorSku, itemResponse[ItemFields.PRICE_BAND_VENDOR_SKU], "f");
|
|
85
|
-
const preferredCurrency = itemResponse[ItemFields.PREFERRED_CURRENCY];
|
|
86
|
-
__classPrivateFieldSet(this, _Item_preferredCurrency, preferredCurrency
|
|
87
|
-
? new itemPreferredCurrency_1.ItemPreferredCurrency(preferredCurrency)
|
|
88
|
-
: undefined, "f");
|
|
89
82
|
__classPrivateFieldSet(this, _Item_prices, itemResponse[ItemFields.PRICES], "f");
|
|
90
83
|
__classPrivateFieldSet(this, _Item_pricesWithoutPromotion, itemResponse[ItemFields.PRICES_WITHOUT_PROMOTION], "f");
|
|
91
84
|
__classPrivateFieldSet(this, _Item_quantity, itemResponse[ItemFields.QUANTITY], "f");
|
|
@@ -132,9 +125,6 @@ class Item extends abstractEntity_1.AbstractEntity {
|
|
|
132
125
|
get pricebandVendorSku() {
|
|
133
126
|
return __classPrivateFieldGet(this, _Item_pricebandVendorSku, "f");
|
|
134
127
|
}
|
|
135
|
-
get preferredCurrency() {
|
|
136
|
-
return __classPrivateFieldGet(this, _Item_preferredCurrency, "f");
|
|
137
|
-
}
|
|
138
128
|
get prices() {
|
|
139
129
|
return __classPrivateFieldGet(this, _Item_prices, "f");
|
|
140
130
|
}
|
|
@@ -154,7 +144,7 @@ class Item extends abstractEntity_1.AbstractEntity {
|
|
|
154
144
|
return __classPrivateFieldGet(this, _Item_basePriceBands, "f");
|
|
155
145
|
}
|
|
156
146
|
toJSON() {
|
|
157
|
-
var _a, _b
|
|
147
|
+
var _a, _b;
|
|
158
148
|
return {
|
|
159
149
|
[ItemFields.ADDITIONAL_DATA]: this.additionalData,
|
|
160
150
|
[ItemFields.COTERM_PRICES]: this.cotermPrices,
|
|
@@ -170,16 +160,15 @@ class Item extends abstractEntity_1.AbstractEntity {
|
|
|
170
160
|
[ItemFields.PRICE_BAND_ARROWSPHERE_SKU]: this.priceBandArrowsphereSku,
|
|
171
161
|
[ItemFields.PRICE_BAND_ERP_SKU]: this.pricebandErpSku,
|
|
172
162
|
[ItemFields.PRICE_BAND_VENDOR_SKU]: this.pricebandVendorSku,
|
|
173
|
-
[ItemFields.PREFERRED_CURRENCY]: (_b = this.preferredCurrency) === null || _b === void 0 ? void 0 : _b.toJSON(),
|
|
174
163
|
[ItemFields.PRICES]: this.prices,
|
|
175
164
|
[ItemFields.PRICES_WITHOUT_PROMOTION]: this.pricesWithoutPromotion,
|
|
176
165
|
[ItemFields.QUANTITY]: this.quantity,
|
|
177
166
|
[ItemFields.RULES]: this.rules,
|
|
178
167
|
[ItemFields.BUNDLE_ARROWSPHERE_SKU]: this.bundleArrowSphereSku,
|
|
179
|
-
[ItemFields.BASE_PRICE_BANDS]: (
|
|
168
|
+
[ItemFields.BASE_PRICE_BANDS]: (_b = this.basePriceBands) === null || _b === void 0 ? void 0 : _b.map((band) => band.toJSON()),
|
|
180
169
|
};
|
|
181
170
|
}
|
|
182
171
|
}
|
|
183
172
|
exports.Item = Item;
|
|
184
|
-
_Item_additionalData = new WeakMap(), _Item_cotermPrices = new WeakMap(), _Item_cotermPricesWithoutPromotion = new WeakMap(), _Item_currency = new WeakMap(), _Item_endCustomer = new WeakMap(), _Item_isAddon = new WeakMap(), _Item_isBundle = new WeakMap(), _Item_isTrial = new WeakMap(), _Item_itemId = new WeakMap(), _Item_offerName = new WeakMap(), _Item_priceBandArrowsphereSku = new WeakMap(), _Item_pricebandErpSku = new WeakMap(), _Item_pricebandVendorSku = new WeakMap(),
|
|
173
|
+
_Item_additionalData = new WeakMap(), _Item_cotermPrices = new WeakMap(), _Item_cotermPricesWithoutPromotion = new WeakMap(), _Item_currency = new WeakMap(), _Item_endCustomer = new WeakMap(), _Item_isAddon = new WeakMap(), _Item_isBundle = new WeakMap(), _Item_isTrial = new WeakMap(), _Item_itemId = new WeakMap(), _Item_offerName = new WeakMap(), _Item_priceBandArrowsphereSku = new WeakMap(), _Item_pricebandErpSku = new WeakMap(), _Item_pricebandVendorSku = new WeakMap(), _Item_prices = new WeakMap(), _Item_pricesWithoutPromotion = new WeakMap(), _Item_quantity = new WeakMap(), _Item_rules = new WeakMap(), _Item_bundleArrowSphereSku = new WeakMap(), _Item_basePriceBands = new WeakMap();
|
|
185
174
|
//# sourceMappingURL=item.js.map
|
|
@@ -2,6 +2,8 @@ import { AbstractRestfulClient, Parameters } from '../abstractRestfulClient';
|
|
|
2
2
|
import { GetResult } from '../getResult';
|
|
3
3
|
import { Program } from './entities/program';
|
|
4
4
|
import { Programs } from './entities/programs';
|
|
5
|
+
import { CheckEligibilityItems } from './entities/checkEligibilityItems';
|
|
6
|
+
import { CheckEligibilityPayload } from './types/checkEligibility';
|
|
5
7
|
export declare class CatalogClient extends AbstractRestfulClient {
|
|
6
8
|
/**
|
|
7
9
|
* The base path of the API
|
|
@@ -9,4 +11,8 @@ export declare class CatalogClient extends AbstractRestfulClient {
|
|
|
9
11
|
protected basePath: string;
|
|
10
12
|
listPrograms(category: string, parameters?: Parameters): Promise<GetResult<Programs>>;
|
|
11
13
|
getProgram(category: string, program: string, parameters?: Parameters): Promise<GetResult<Program>>;
|
|
14
|
+
/**
|
|
15
|
+
* Checks the Microsoft growth margin eligibility of quote items for an end customer, and resolves their prices
|
|
16
|
+
*/
|
|
17
|
+
checkEligibility(payload: CheckEligibilityPayload, parameters?: Parameters): Promise<GetResult<CheckEligibilityItems>>;
|
|
12
18
|
}
|
|
@@ -5,6 +5,7 @@ const abstractRestfulClient_1 = require("../abstractRestfulClient");
|
|
|
5
5
|
const getResult_1 = require("../getResult");
|
|
6
6
|
const program_1 = require("./entities/program");
|
|
7
7
|
const programs_1 = require("./entities/programs");
|
|
8
|
+
const checkEligibilityItems_1 = require("./entities/checkEligibilityItems");
|
|
8
9
|
class CatalogClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
9
10
|
constructor() {
|
|
10
11
|
super(...arguments);
|
|
@@ -21,6 +22,13 @@ class CatalogClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
21
22
|
this.path = `/categories/${category}/programs/${program}`;
|
|
22
23
|
return new getResult_1.GetResult(program_1.Program, await this.get(parameters));
|
|
23
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* Checks the Microsoft growth margin eligibility of quote items for an end customer, and resolves their prices
|
|
27
|
+
*/
|
|
28
|
+
async checkEligibility(payload, parameters = {}) {
|
|
29
|
+
this.path = '/check-eligibility';
|
|
30
|
+
return new getResult_1.GetResult(checkEligibilityItems_1.CheckEligibilityItems, await this.post(payload, parameters));
|
|
31
|
+
}
|
|
24
32
|
}
|
|
25
33
|
exports.CatalogClient = CatalogClient;
|
|
26
34
|
//# sourceMappingURL=catalogClient.js.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
+
export declare enum CheckEligibilityItemFields {
|
|
3
|
+
GROWTH_MARGIN = "growthMargin",
|
|
4
|
+
IS_ELIGIBLE = "isEligible",
|
|
5
|
+
PRICEBAND_ARROWSPHERE_SKU = "pricebandArrowsphereSku",
|
|
6
|
+
PRICES = "prices",
|
|
7
|
+
PRICES_WITHOUT_PROMOTION = "pricesWithoutPromotion",
|
|
8
|
+
PRICING_RULES = "pricingRules",
|
|
9
|
+
QUANTITY = "quantity"
|
|
10
|
+
}
|
|
11
|
+
export declare type CheckEligibilityPricesType = {
|
|
12
|
+
arrow?: number;
|
|
13
|
+
endCustomer?: number;
|
|
14
|
+
partner?: number;
|
|
15
|
+
retail?: number;
|
|
16
|
+
};
|
|
17
|
+
export declare type CheckEligibilityPricingRuleType = {
|
|
18
|
+
rateType?: string;
|
|
19
|
+
tier?: number;
|
|
20
|
+
type?: string;
|
|
21
|
+
value?: number;
|
|
22
|
+
};
|
|
23
|
+
export declare type CheckEligibilityGrowthMarginType = {
|
|
24
|
+
discountType?: string;
|
|
25
|
+
growthMarginId?: string;
|
|
26
|
+
incrementalMarginRate?: number;
|
|
27
|
+
};
|
|
28
|
+
export declare type CheckEligibilityItemType = {
|
|
29
|
+
[CheckEligibilityItemFields.GROWTH_MARGIN]?: CheckEligibilityGrowthMarginType;
|
|
30
|
+
[CheckEligibilityItemFields.IS_ELIGIBLE]: boolean;
|
|
31
|
+
[CheckEligibilityItemFields.PRICEBAND_ARROWSPHERE_SKU]: string;
|
|
32
|
+
[CheckEligibilityItemFields.PRICES]?: CheckEligibilityPricesType;
|
|
33
|
+
[CheckEligibilityItemFields.PRICES_WITHOUT_PROMOTION]?: CheckEligibilityPricesType;
|
|
34
|
+
[CheckEligibilityItemFields.PRICING_RULES]?: CheckEligibilityPricingRuleType[];
|
|
35
|
+
[CheckEligibilityItemFields.QUANTITY]: number;
|
|
36
|
+
};
|
|
37
|
+
export declare class CheckEligibilityItem extends AbstractEntity<CheckEligibilityItemType> {
|
|
38
|
+
#private;
|
|
39
|
+
constructor(input: CheckEligibilityItemType);
|
|
40
|
+
get growthMargin(): CheckEligibilityGrowthMarginType | undefined;
|
|
41
|
+
get isEligible(): boolean;
|
|
42
|
+
get pricebandArrowsphereSku(): string;
|
|
43
|
+
get prices(): CheckEligibilityPricesType | undefined;
|
|
44
|
+
get pricesWithoutPromotion(): CheckEligibilityPricesType | undefined;
|
|
45
|
+
get pricingRules(): CheckEligibilityPricingRuleType[] | undefined;
|
|
46
|
+
get quantity(): number;
|
|
47
|
+
toJSON(): CheckEligibilityItemType;
|
|
48
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
+
};
|
|
8
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
+
};
|
|
13
|
+
var _CheckEligibilityItem_growthMargin, _CheckEligibilityItem_isEligible, _CheckEligibilityItem_pricebandArrowsphereSku, _CheckEligibilityItem_prices, _CheckEligibilityItem_pricesWithoutPromotion, _CheckEligibilityItem_pricingRules, _CheckEligibilityItem_quantity;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CheckEligibilityItem = exports.CheckEligibilityItemFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../abstractEntity");
|
|
17
|
+
var CheckEligibilityItemFields;
|
|
18
|
+
(function (CheckEligibilityItemFields) {
|
|
19
|
+
CheckEligibilityItemFields["GROWTH_MARGIN"] = "growthMargin";
|
|
20
|
+
CheckEligibilityItemFields["IS_ELIGIBLE"] = "isEligible";
|
|
21
|
+
CheckEligibilityItemFields["PRICEBAND_ARROWSPHERE_SKU"] = "pricebandArrowsphereSku";
|
|
22
|
+
CheckEligibilityItemFields["PRICES"] = "prices";
|
|
23
|
+
CheckEligibilityItemFields["PRICES_WITHOUT_PROMOTION"] = "pricesWithoutPromotion";
|
|
24
|
+
CheckEligibilityItemFields["PRICING_RULES"] = "pricingRules";
|
|
25
|
+
CheckEligibilityItemFields["QUANTITY"] = "quantity";
|
|
26
|
+
})(CheckEligibilityItemFields = exports.CheckEligibilityItemFields || (exports.CheckEligibilityItemFields = {}));
|
|
27
|
+
class CheckEligibilityItem extends abstractEntity_1.AbstractEntity {
|
|
28
|
+
constructor(input) {
|
|
29
|
+
super(input);
|
|
30
|
+
_CheckEligibilityItem_growthMargin.set(this, void 0);
|
|
31
|
+
_CheckEligibilityItem_isEligible.set(this, void 0);
|
|
32
|
+
_CheckEligibilityItem_pricebandArrowsphereSku.set(this, void 0);
|
|
33
|
+
_CheckEligibilityItem_prices.set(this, void 0);
|
|
34
|
+
_CheckEligibilityItem_pricesWithoutPromotion.set(this, void 0);
|
|
35
|
+
_CheckEligibilityItem_pricingRules.set(this, void 0);
|
|
36
|
+
_CheckEligibilityItem_quantity.set(this, void 0);
|
|
37
|
+
__classPrivateFieldSet(this, _CheckEligibilityItem_growthMargin, input[CheckEligibilityItemFields.GROWTH_MARGIN], "f");
|
|
38
|
+
__classPrivateFieldSet(this, _CheckEligibilityItem_isEligible, input[CheckEligibilityItemFields.IS_ELIGIBLE], "f");
|
|
39
|
+
__classPrivateFieldSet(this, _CheckEligibilityItem_pricebandArrowsphereSku, input[CheckEligibilityItemFields.PRICEBAND_ARROWSPHERE_SKU], "f");
|
|
40
|
+
__classPrivateFieldSet(this, _CheckEligibilityItem_prices, input[CheckEligibilityItemFields.PRICES], "f");
|
|
41
|
+
__classPrivateFieldSet(this, _CheckEligibilityItem_pricesWithoutPromotion, input[CheckEligibilityItemFields.PRICES_WITHOUT_PROMOTION], "f");
|
|
42
|
+
__classPrivateFieldSet(this, _CheckEligibilityItem_pricingRules, input[CheckEligibilityItemFields.PRICING_RULES], "f");
|
|
43
|
+
__classPrivateFieldSet(this, _CheckEligibilityItem_quantity, input[CheckEligibilityItemFields.QUANTITY], "f");
|
|
44
|
+
}
|
|
45
|
+
get growthMargin() {
|
|
46
|
+
return __classPrivateFieldGet(this, _CheckEligibilityItem_growthMargin, "f");
|
|
47
|
+
}
|
|
48
|
+
get isEligible() {
|
|
49
|
+
return __classPrivateFieldGet(this, _CheckEligibilityItem_isEligible, "f");
|
|
50
|
+
}
|
|
51
|
+
get pricebandArrowsphereSku() {
|
|
52
|
+
return __classPrivateFieldGet(this, _CheckEligibilityItem_pricebandArrowsphereSku, "f");
|
|
53
|
+
}
|
|
54
|
+
get prices() {
|
|
55
|
+
return __classPrivateFieldGet(this, _CheckEligibilityItem_prices, "f");
|
|
56
|
+
}
|
|
57
|
+
get pricesWithoutPromotion() {
|
|
58
|
+
return __classPrivateFieldGet(this, _CheckEligibilityItem_pricesWithoutPromotion, "f");
|
|
59
|
+
}
|
|
60
|
+
get pricingRules() {
|
|
61
|
+
return __classPrivateFieldGet(this, _CheckEligibilityItem_pricingRules, "f");
|
|
62
|
+
}
|
|
63
|
+
get quantity() {
|
|
64
|
+
return __classPrivateFieldGet(this, _CheckEligibilityItem_quantity, "f");
|
|
65
|
+
}
|
|
66
|
+
toJSON() {
|
|
67
|
+
return {
|
|
68
|
+
[CheckEligibilityItemFields.GROWTH_MARGIN]: this.growthMargin,
|
|
69
|
+
[CheckEligibilityItemFields.IS_ELIGIBLE]: this.isEligible,
|
|
70
|
+
[CheckEligibilityItemFields.PRICEBAND_ARROWSPHERE_SKU]: this
|
|
71
|
+
.pricebandArrowsphereSku,
|
|
72
|
+
[CheckEligibilityItemFields.PRICES]: this.prices,
|
|
73
|
+
[CheckEligibilityItemFields.PRICES_WITHOUT_PROMOTION]: this
|
|
74
|
+
.pricesWithoutPromotion,
|
|
75
|
+
[CheckEligibilityItemFields.PRICING_RULES]: this.pricingRules,
|
|
76
|
+
[CheckEligibilityItemFields.QUANTITY]: this.quantity,
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.CheckEligibilityItem = CheckEligibilityItem;
|
|
81
|
+
_CheckEligibilityItem_growthMargin = new WeakMap(), _CheckEligibilityItem_isEligible = new WeakMap(), _CheckEligibilityItem_pricebandArrowsphereSku = new WeakMap(), _CheckEligibilityItem_prices = new WeakMap(), _CheckEligibilityItem_pricesWithoutPromotion = new WeakMap(), _CheckEligibilityItem_pricingRules = new WeakMap(), _CheckEligibilityItem_quantity = new WeakMap();
|
|
82
|
+
//# sourceMappingURL=checkEligibilityItem.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
+
import { CheckEligibilityItem, CheckEligibilityItemType } from './checkEligibilityItem';
|
|
3
|
+
export declare type CheckEligibilityItemsType = Array<CheckEligibilityItemType>;
|
|
4
|
+
export declare class CheckEligibilityItems extends AbstractEntity<CheckEligibilityItemsType> {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(input: CheckEligibilityItemsType);
|
|
7
|
+
get list(): CheckEligibilityItem[];
|
|
8
|
+
toJSON(): CheckEligibilityItemsType;
|
|
9
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
+
};
|
|
8
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
+
};
|
|
13
|
+
var _CheckEligibilityItems_list;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CheckEligibilityItems = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../abstractEntity");
|
|
17
|
+
const checkEligibilityItem_1 = require("./checkEligibilityItem");
|
|
18
|
+
class CheckEligibilityItems extends abstractEntity_1.AbstractEntity {
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super(input);
|
|
21
|
+
_CheckEligibilityItems_list.set(this, void 0);
|
|
22
|
+
__classPrivateFieldSet(this, _CheckEligibilityItems_list, input.map((item) => new checkEligibilityItem_1.CheckEligibilityItem(item)), "f");
|
|
23
|
+
}
|
|
24
|
+
get list() {
|
|
25
|
+
return __classPrivateFieldGet(this, _CheckEligibilityItems_list, "f");
|
|
26
|
+
}
|
|
27
|
+
toJSON() {
|
|
28
|
+
return this.list.map((item) => item.toJSON());
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.CheckEligibilityItems = CheckEligibilityItems;
|
|
32
|
+
_CheckEligibilityItems_list = new WeakMap();
|
|
33
|
+
//# sourceMappingURL=checkEligibilityItems.js.map
|
package/build/catalog/index.d.ts
CHANGED
|
@@ -2,8 +2,11 @@ export * from './catalogGraphQLClient';
|
|
|
2
2
|
export * from './catalogClient';
|
|
3
3
|
export * from './catalogPlanClient';
|
|
4
4
|
export * from './types/catalogPlan';
|
|
5
|
+
export * from './types/checkEligibility';
|
|
5
6
|
export * from './types/catalogGraphQLTypes';
|
|
6
7
|
export * from './entities/program';
|
|
7
8
|
export * from './entities/programs';
|
|
9
|
+
export * from './entities/checkEligibilityItem';
|
|
10
|
+
export * from './entities/checkEligibilityItems';
|
|
8
11
|
export * from './types/catalogGraphQLQueries';
|
|
9
12
|
export * from './types/catalogGraphQLSchemas';
|
package/build/catalog/index.js
CHANGED
|
@@ -18,9 +18,12 @@ __exportStar(require("./catalogGraphQLClient"), exports);
|
|
|
18
18
|
__exportStar(require("./catalogClient"), exports);
|
|
19
19
|
__exportStar(require("./catalogPlanClient"), exports);
|
|
20
20
|
__exportStar(require("./types/catalogPlan"), exports);
|
|
21
|
+
__exportStar(require("./types/checkEligibility"), exports);
|
|
21
22
|
__exportStar(require("./types/catalogGraphQLTypes"), exports);
|
|
22
23
|
__exportStar(require("./entities/program"), exports);
|
|
23
24
|
__exportStar(require("./entities/programs"), exports);
|
|
25
|
+
__exportStar(require("./entities/checkEligibilityItem"), exports);
|
|
26
|
+
__exportStar(require("./entities/checkEligibilityItems"), exports);
|
|
24
27
|
__exportStar(require("./types/catalogGraphQLQueries"), exports);
|
|
25
28
|
__exportStar(require("./types/catalogGraphQLSchemas"), exports);
|
|
26
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare type CheckEligibilityItemPayload = {
|
|
2
|
+
pricebandArrowsphereSku: string;
|
|
3
|
+
quantity: number;
|
|
4
|
+
vendorProgram: string;
|
|
5
|
+
};
|
|
6
|
+
export declare type CheckEligibilityPayload = {
|
|
7
|
+
customerReference: string;
|
|
8
|
+
items: CheckEligibilityItemPayload[];
|
|
9
|
+
resellerReference: string;
|
|
10
|
+
};
|
|
@@ -46,6 +46,7 @@ export declare enum CompanyDetailKeyEnum {
|
|
|
46
46
|
CHECK_POINT_EMAIL = "CHECK_POINT_EMAIL",
|
|
47
47
|
CHECK_POINT_QUALIFICATION = "CHECK_POINT_QUALIFICATION",
|
|
48
48
|
CHECK_POINT_QUALIFICATION_UK = "CHECK_POINT_QUALIFICATION_UK",
|
|
49
|
+
CUSTOMER_ERP_ID = "CUSTOMER_ERP_ID",
|
|
49
50
|
DOMAIN_NAME = "DOMAIN_NAME",
|
|
50
51
|
IBM_CE_ID = "IBM_CE_ID",
|
|
51
52
|
IBM_CUSTOMER_NUMBER = "IBM_CUSTOMER_NUMBER",
|
|
@@ -63,6 +63,7 @@ var CompanyDetailKeyEnum;
|
|
|
63
63
|
CompanyDetailKeyEnum["CHECK_POINT_EMAIL"] = "CHECK_POINT_EMAIL";
|
|
64
64
|
CompanyDetailKeyEnum["CHECK_POINT_QUALIFICATION"] = "CHECK_POINT_QUALIFICATION";
|
|
65
65
|
CompanyDetailKeyEnum["CHECK_POINT_QUALIFICATION_UK"] = "CHECK_POINT_QUALIFICATION_UK";
|
|
66
|
+
CompanyDetailKeyEnum["CUSTOMER_ERP_ID"] = "CUSTOMER_ERP_ID";
|
|
66
67
|
CompanyDetailKeyEnum["DOMAIN_NAME"] = "DOMAIN_NAME";
|
|
67
68
|
CompanyDetailKeyEnum["IBM_CE_ID"] = "IBM_CE_ID";
|
|
68
69
|
CompanyDetailKeyEnum["IBM_CUSTOMER_NUMBER"] = "IBM_CUSTOMER_NUMBER";
|
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
-
import { ItemPreferredCurrencyValues, ItemPreferredCurrencyValuesType } from './preferredCurrency/itemPreferredCurrencyValues';
|
|
3
|
-
import { ConversionRules, ConversionRulesType } from '../../shared/preferredCurrency/conversionRules';
|
|
4
|
-
export declare enum ItemPreferredCurrencyFields {
|
|
5
|
-
CONVERSION_RULES = "conversionRules",
|
|
6
|
-
VALUES = "values"
|
|
7
|
-
}
|
|
8
|
-
export declare type ItemPreferredCurrencyType = {
|
|
9
|
-
[ItemPreferredCurrencyFields.CONVERSION_RULES]: ConversionRulesType;
|
|
10
|
-
[ItemPreferredCurrencyFields.VALUES]: ItemPreferredCurrencyValuesType;
|
|
11
|
-
};
|
|
12
|
-
export declare class ItemPreferredCurrency extends AbstractEntity<ItemPreferredCurrencyType> {
|
|
13
|
-
#private;
|
|
14
|
-
constructor(input: ItemPreferredCurrencyType);
|
|
15
|
-
get conversionRules(): ConversionRules;
|
|
16
|
-
get values(): ItemPreferredCurrencyValues;
|
|
17
|
-
toJSON(): ItemPreferredCurrencyType;
|
|
18
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
-
};
|
|
8
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
-
};
|
|
13
|
-
var _ItemPreferredCurrency_conversionRules, _ItemPreferredCurrency_values;
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.ItemPreferredCurrency = exports.ItemPreferredCurrencyFields = void 0;
|
|
16
|
-
const abstractEntity_1 = require("../../abstractEntity");
|
|
17
|
-
const itemPreferredCurrencyValues_1 = require("./preferredCurrency/itemPreferredCurrencyValues");
|
|
18
|
-
const conversionRules_1 = require("../../shared/preferredCurrency/conversionRules");
|
|
19
|
-
var ItemPreferredCurrencyFields;
|
|
20
|
-
(function (ItemPreferredCurrencyFields) {
|
|
21
|
-
ItemPreferredCurrencyFields["CONVERSION_RULES"] = "conversionRules";
|
|
22
|
-
ItemPreferredCurrencyFields["VALUES"] = "values";
|
|
23
|
-
})(ItemPreferredCurrencyFields = exports.ItemPreferredCurrencyFields || (exports.ItemPreferredCurrencyFields = {}));
|
|
24
|
-
class ItemPreferredCurrency extends abstractEntity_1.AbstractEntity {
|
|
25
|
-
constructor(input) {
|
|
26
|
-
super(input);
|
|
27
|
-
_ItemPreferredCurrency_conversionRules.set(this, void 0);
|
|
28
|
-
_ItemPreferredCurrency_values.set(this, void 0);
|
|
29
|
-
__classPrivateFieldSet(this, _ItemPreferredCurrency_conversionRules, new conversionRules_1.ConversionRules(input[ItemPreferredCurrencyFields.CONVERSION_RULES]), "f");
|
|
30
|
-
__classPrivateFieldSet(this, _ItemPreferredCurrency_values, new itemPreferredCurrencyValues_1.ItemPreferredCurrencyValues(input[ItemPreferredCurrencyFields.VALUES]), "f");
|
|
31
|
-
}
|
|
32
|
-
get conversionRules() {
|
|
33
|
-
return __classPrivateFieldGet(this, _ItemPreferredCurrency_conversionRules, "f");
|
|
34
|
-
}
|
|
35
|
-
get values() {
|
|
36
|
-
return __classPrivateFieldGet(this, _ItemPreferredCurrency_values, "f");
|
|
37
|
-
}
|
|
38
|
-
toJSON() {
|
|
39
|
-
return {
|
|
40
|
-
[ItemPreferredCurrencyFields.CONVERSION_RULES]: this.conversionRules.toJSON(),
|
|
41
|
-
[ItemPreferredCurrencyFields.VALUES]: this.values.toJSON(),
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
exports.ItemPreferredCurrency = ItemPreferredCurrency;
|
|
46
|
-
_ItemPreferredCurrency_conversionRules = new WeakMap(), _ItemPreferredCurrency_values = new WeakMap();
|
|
47
|
-
//# sourceMappingURL=itemPreferredCurrency.js.map
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
-
export declare enum ItemPreferredCurrencyValuesFields {
|
|
3
|
-
COTERM_PRICES = "cotermPrices",
|
|
4
|
-
COTERM_PRICES_WITHOUT_PROMOTION = "cotermPricesWithoutPromotion",
|
|
5
|
-
PRICES = "prices",
|
|
6
|
-
PRICES_WITHOUT_PROMOTION = "pricesWithoutPromotion"
|
|
7
|
-
}
|
|
8
|
-
export declare type ItemPreferredCurrencyValuesType = {
|
|
9
|
-
[ItemPreferredCurrencyValuesFields.COTERM_PRICES]?: Record<'arrow' | 'partner' | 'endCustomer' | 'retail', number>;
|
|
10
|
-
[ItemPreferredCurrencyValuesFields.COTERM_PRICES_WITHOUT_PROMOTION]?: Record<'arrow' | 'partner' | 'endCustomer' | 'retail', number>;
|
|
11
|
-
[ItemPreferredCurrencyValuesFields.PRICES]?: Record<'arrow' | 'partner' | 'endCustomer' | 'retail', number>;
|
|
12
|
-
[ItemPreferredCurrencyValuesFields.PRICES_WITHOUT_PROMOTION]?: Record<'arrow' | 'partner' | 'endCustomer' | 'retail', number>;
|
|
13
|
-
};
|
|
14
|
-
export declare class ItemPreferredCurrencyValues extends AbstractEntity<ItemPreferredCurrencyValuesType> {
|
|
15
|
-
#private;
|
|
16
|
-
constructor(input: ItemPreferredCurrencyValuesType);
|
|
17
|
-
get cotermPrices(): Record<'arrow' | 'partner' | 'endCustomer' | 'retail', number> | undefined;
|
|
18
|
-
get cotermPricesWithoutPromotion(): Record<'arrow' | 'partner' | 'endCustomer' | 'retail', number> | undefined;
|
|
19
|
-
get prices(): Record<'arrow' | 'partner' | 'endCustomer' | 'retail', number> | undefined;
|
|
20
|
-
get pricesWithoutPromotion(): Record<'arrow' | 'partner' | 'endCustomer' | 'retail', number> | undefined;
|
|
21
|
-
toJSON(): ItemPreferredCurrencyValuesType;
|
|
22
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
-
};
|
|
8
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
-
};
|
|
13
|
-
var _ItemPreferredCurrencyValues_cotermPrices, _ItemPreferredCurrencyValues_cotermPricesWithoutPromotion, _ItemPreferredCurrencyValues_prices, _ItemPreferredCurrencyValues_pricesWithoutPromotion;
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.ItemPreferredCurrencyValues = exports.ItemPreferredCurrencyValuesFields = void 0;
|
|
16
|
-
const abstractEntity_1 = require("../../../abstractEntity");
|
|
17
|
-
var ItemPreferredCurrencyValuesFields;
|
|
18
|
-
(function (ItemPreferredCurrencyValuesFields) {
|
|
19
|
-
ItemPreferredCurrencyValuesFields["COTERM_PRICES"] = "cotermPrices";
|
|
20
|
-
ItemPreferredCurrencyValuesFields["COTERM_PRICES_WITHOUT_PROMOTION"] = "cotermPricesWithoutPromotion";
|
|
21
|
-
ItemPreferredCurrencyValuesFields["PRICES"] = "prices";
|
|
22
|
-
ItemPreferredCurrencyValuesFields["PRICES_WITHOUT_PROMOTION"] = "pricesWithoutPromotion";
|
|
23
|
-
})(ItemPreferredCurrencyValuesFields = exports.ItemPreferredCurrencyValuesFields || (exports.ItemPreferredCurrencyValuesFields = {}));
|
|
24
|
-
class ItemPreferredCurrencyValues extends abstractEntity_1.AbstractEntity {
|
|
25
|
-
constructor(input) {
|
|
26
|
-
super(input);
|
|
27
|
-
_ItemPreferredCurrencyValues_cotermPrices.set(this, void 0);
|
|
28
|
-
_ItemPreferredCurrencyValues_cotermPricesWithoutPromotion.set(this, void 0);
|
|
29
|
-
_ItemPreferredCurrencyValues_prices.set(this, void 0);
|
|
30
|
-
_ItemPreferredCurrencyValues_pricesWithoutPromotion.set(this, void 0);
|
|
31
|
-
__classPrivateFieldSet(this, _ItemPreferredCurrencyValues_cotermPrices, input[ItemPreferredCurrencyValuesFields.COTERM_PRICES], "f");
|
|
32
|
-
__classPrivateFieldSet(this, _ItemPreferredCurrencyValues_cotermPricesWithoutPromotion, input[ItemPreferredCurrencyValuesFields.COTERM_PRICES_WITHOUT_PROMOTION], "f");
|
|
33
|
-
__classPrivateFieldSet(this, _ItemPreferredCurrencyValues_prices, input[ItemPreferredCurrencyValuesFields.PRICES], "f");
|
|
34
|
-
__classPrivateFieldSet(this, _ItemPreferredCurrencyValues_pricesWithoutPromotion, input[ItemPreferredCurrencyValuesFields.PRICES_WITHOUT_PROMOTION], "f");
|
|
35
|
-
}
|
|
36
|
-
get cotermPrices() {
|
|
37
|
-
return __classPrivateFieldGet(this, _ItemPreferredCurrencyValues_cotermPrices, "f");
|
|
38
|
-
}
|
|
39
|
-
get cotermPricesWithoutPromotion() {
|
|
40
|
-
return __classPrivateFieldGet(this, _ItemPreferredCurrencyValues_cotermPricesWithoutPromotion, "f");
|
|
41
|
-
}
|
|
42
|
-
get prices() {
|
|
43
|
-
return __classPrivateFieldGet(this, _ItemPreferredCurrencyValues_prices, "f");
|
|
44
|
-
}
|
|
45
|
-
get pricesWithoutPromotion() {
|
|
46
|
-
return __classPrivateFieldGet(this, _ItemPreferredCurrencyValues_pricesWithoutPromotion, "f");
|
|
47
|
-
}
|
|
48
|
-
toJSON() {
|
|
49
|
-
return {
|
|
50
|
-
[ItemPreferredCurrencyValuesFields.COTERM_PRICES]: this.cotermPrices,
|
|
51
|
-
[ItemPreferredCurrencyValuesFields.COTERM_PRICES_WITHOUT_PROMOTION]: this
|
|
52
|
-
.cotermPricesWithoutPromotion,
|
|
53
|
-
[ItemPreferredCurrencyValuesFields.PRICES]: this.prices,
|
|
54
|
-
[ItemPreferredCurrencyValuesFields.PRICES_WITHOUT_PROMOTION]: this
|
|
55
|
-
.pricesWithoutPromotion,
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
exports.ItemPreferredCurrencyValues = ItemPreferredCurrencyValues;
|
|
60
|
-
_ItemPreferredCurrencyValues_cotermPrices = new WeakMap(), _ItemPreferredCurrencyValues_cotermPricesWithoutPromotion = new WeakMap(), _ItemPreferredCurrencyValues_prices = new WeakMap(), _ItemPreferredCurrencyValues_pricesWithoutPromotion = new WeakMap();
|
|
61
|
-
//# sourceMappingURL=itemPreferredCurrencyValues.js.map
|