@arrowsphere/api-client 3.393.0 → 3.395.0-rc-cpe-1
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 +4 -0
- package/build/orders/entities/orders/products/prices/preferredCurrency/preferredCurrencyValues.d.ts +16 -0
- package/build/orders/entities/orders/products/prices/preferredCurrency/preferredCurrencyValues.js +45 -0
- package/build/orders/entities/orders/products/prices/preferredCurrency.d.ts +18 -0
- package/build/orders/entities/orders/products/prices/preferredCurrency.js +47 -0
- package/build/orders/entities/orders/products/prices/productPrices.d.ts +5 -1
- package/build/orders/entities/orders/products/prices/productPrices.js +13 -2
- package/build/quotes/quotesClient.d.ts +6 -0
- package/build/quotes/quotesClient.js +4 -0
- package/build/shared/preferredCurrency/conversionRules.d.ts +19 -0
- package/build/shared/preferredCurrency/conversionRules.js +52 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
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.394.0] - 2026.08.27
|
|
7
|
+
### Added
|
|
8
|
+
- [licenses] Add `duplicateQuote` in quotesClient
|
|
9
|
+
|
|
6
10
|
## [3.393.0] - 2026.08.26
|
|
7
11
|
### Added
|
|
8
12
|
- [licenses] Add `bundleUuid` and `bundleArrowSphereSku` fields to `LicenseGetResult`
|
package/build/orders/entities/orders/products/prices/preferredCurrency/preferredCurrencyValues.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../../../../abstractEntity';
|
|
2
|
+
export declare enum PreferredCurrencyValuesFields {
|
|
3
|
+
COLUMN_BUY = "buy",
|
|
4
|
+
COLUMN_SELL = "sell"
|
|
5
|
+
}
|
|
6
|
+
export declare type PreferredCurrencyValuesType = {
|
|
7
|
+
[PreferredCurrencyValuesFields.COLUMN_BUY]: number;
|
|
8
|
+
[PreferredCurrencyValuesFields.COLUMN_SELL]: number;
|
|
9
|
+
};
|
|
10
|
+
export declare class PreferredCurrencyValues extends AbstractEntity<PreferredCurrencyValuesType> {
|
|
11
|
+
#private;
|
|
12
|
+
constructor(input: PreferredCurrencyValuesType);
|
|
13
|
+
get buy(): number;
|
|
14
|
+
get sell(): number;
|
|
15
|
+
toJSON(): PreferredCurrencyValuesType;
|
|
16
|
+
}
|
package/build/orders/entities/orders/products/prices/preferredCurrency/preferredCurrencyValues.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
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 _PreferredCurrencyValues_buy, _PreferredCurrencyValues_sell;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.PreferredCurrencyValues = exports.PreferredCurrencyValuesFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../../../../../abstractEntity");
|
|
17
|
+
var PreferredCurrencyValuesFields;
|
|
18
|
+
(function (PreferredCurrencyValuesFields) {
|
|
19
|
+
PreferredCurrencyValuesFields["COLUMN_BUY"] = "buy";
|
|
20
|
+
PreferredCurrencyValuesFields["COLUMN_SELL"] = "sell";
|
|
21
|
+
})(PreferredCurrencyValuesFields = exports.PreferredCurrencyValuesFields || (exports.PreferredCurrencyValuesFields = {}));
|
|
22
|
+
class PreferredCurrencyValues extends abstractEntity_1.AbstractEntity {
|
|
23
|
+
constructor(input) {
|
|
24
|
+
super(input);
|
|
25
|
+
_PreferredCurrencyValues_buy.set(this, void 0);
|
|
26
|
+
_PreferredCurrencyValues_sell.set(this, void 0);
|
|
27
|
+
__classPrivateFieldSet(this, _PreferredCurrencyValues_buy, input[PreferredCurrencyValuesFields.COLUMN_BUY], "f");
|
|
28
|
+
__classPrivateFieldSet(this, _PreferredCurrencyValues_sell, input[PreferredCurrencyValuesFields.COLUMN_SELL], "f");
|
|
29
|
+
}
|
|
30
|
+
get buy() {
|
|
31
|
+
return __classPrivateFieldGet(this, _PreferredCurrencyValues_buy, "f");
|
|
32
|
+
}
|
|
33
|
+
get sell() {
|
|
34
|
+
return __classPrivateFieldGet(this, _PreferredCurrencyValues_sell, "f");
|
|
35
|
+
}
|
|
36
|
+
toJSON() {
|
|
37
|
+
return {
|
|
38
|
+
[PreferredCurrencyValuesFields.COLUMN_BUY]: this.buy,
|
|
39
|
+
[PreferredCurrencyValuesFields.COLUMN_SELL]: this.sell,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.PreferredCurrencyValues = PreferredCurrencyValues;
|
|
44
|
+
_PreferredCurrencyValues_buy = new WeakMap(), _PreferredCurrencyValues_sell = new WeakMap();
|
|
45
|
+
//# sourceMappingURL=preferredCurrencyValues.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../../../abstractEntity';
|
|
2
|
+
import { PreferredCurrencyValues, PreferredCurrencyValuesType } from './preferredCurrency/preferredCurrencyValues';
|
|
3
|
+
import { ConversionRules, ConversionRulesType } from '../../../../../shared/preferredCurrency/conversionRules';
|
|
4
|
+
export declare enum PreferredCurrencyFields {
|
|
5
|
+
COLUMN_CONVERSION_RULES = "conversionRules",
|
|
6
|
+
COLUMN_VALUES = "values"
|
|
7
|
+
}
|
|
8
|
+
export declare type PreferredCurrencyType = {
|
|
9
|
+
[PreferredCurrencyFields.COLUMN_CONVERSION_RULES]: ConversionRulesType;
|
|
10
|
+
[PreferredCurrencyFields.COLUMN_VALUES]: PreferredCurrencyValuesType;
|
|
11
|
+
};
|
|
12
|
+
export declare class PreferredCurrency extends AbstractEntity<PreferredCurrencyType> {
|
|
13
|
+
#private;
|
|
14
|
+
constructor(input: PreferredCurrencyType);
|
|
15
|
+
get conversionRules(): ConversionRules;
|
|
16
|
+
get values(): PreferredCurrencyValues;
|
|
17
|
+
toJSON(): PreferredCurrencyType;
|
|
18
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 _PreferredCurrency_conversionRules, _PreferredCurrency_values;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.PreferredCurrency = exports.PreferredCurrencyFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../../../../abstractEntity");
|
|
17
|
+
const preferredCurrencyValues_1 = require("./preferredCurrency/preferredCurrencyValues");
|
|
18
|
+
const conversionRules_1 = require("../../../../../shared/preferredCurrency/conversionRules");
|
|
19
|
+
var PreferredCurrencyFields;
|
|
20
|
+
(function (PreferredCurrencyFields) {
|
|
21
|
+
PreferredCurrencyFields["COLUMN_CONVERSION_RULES"] = "conversionRules";
|
|
22
|
+
PreferredCurrencyFields["COLUMN_VALUES"] = "values";
|
|
23
|
+
})(PreferredCurrencyFields = exports.PreferredCurrencyFields || (exports.PreferredCurrencyFields = {}));
|
|
24
|
+
class PreferredCurrency extends abstractEntity_1.AbstractEntity {
|
|
25
|
+
constructor(input) {
|
|
26
|
+
super(input);
|
|
27
|
+
_PreferredCurrency_conversionRules.set(this, void 0);
|
|
28
|
+
_PreferredCurrency_values.set(this, void 0);
|
|
29
|
+
__classPrivateFieldSet(this, _PreferredCurrency_conversionRules, new conversionRules_1.ConversionRules(input[PreferredCurrencyFields.COLUMN_CONVERSION_RULES]), "f");
|
|
30
|
+
__classPrivateFieldSet(this, _PreferredCurrency_values, new preferredCurrencyValues_1.PreferredCurrencyValues(input[PreferredCurrencyFields.COLUMN_VALUES]), "f");
|
|
31
|
+
}
|
|
32
|
+
get conversionRules() {
|
|
33
|
+
return __classPrivateFieldGet(this, _PreferredCurrency_conversionRules, "f");
|
|
34
|
+
}
|
|
35
|
+
get values() {
|
|
36
|
+
return __classPrivateFieldGet(this, _PreferredCurrency_values, "f");
|
|
37
|
+
}
|
|
38
|
+
toJSON() {
|
|
39
|
+
return {
|
|
40
|
+
[PreferredCurrencyFields.COLUMN_CONVERSION_RULES]: this.conversionRules.toJSON(),
|
|
41
|
+
[PreferredCurrencyFields.COLUMN_VALUES]: this.values.toJSON(),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.PreferredCurrency = PreferredCurrency;
|
|
46
|
+
_PreferredCurrency_conversionRules = new WeakMap(), _PreferredCurrency_values = new WeakMap();
|
|
47
|
+
//# sourceMappingURL=preferredCurrency.js.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AbstractEntity } from '../../../../../abstractEntity';
|
|
2
|
+
import { PreferredCurrency, PreferredCurrencyType } from './preferredCurrency';
|
|
2
3
|
export declare enum ProductPricesFields {
|
|
3
4
|
COLUMN_BUY = "buy",
|
|
4
5
|
COLUMN_SELL = "sell",
|
|
@@ -6,7 +7,8 @@ export declare enum ProductPricesFields {
|
|
|
6
7
|
COLUMN_PERIODICITY = "periodicity",
|
|
7
8
|
COLUMN_TERM = "term",
|
|
8
9
|
COLUMN_PERIODICITY_CODE = "periodicityCode",
|
|
9
|
-
COLUMN_TERM_CODE = "termCode"
|
|
10
|
+
COLUMN_TERM_CODE = "termCode",
|
|
11
|
+
COLUMN_PREFERRED_CURRENCY = "preferredCurrency"
|
|
10
12
|
}
|
|
11
13
|
export declare type ProductPricesType = {
|
|
12
14
|
[ProductPricesFields.COLUMN_BUY]: number;
|
|
@@ -16,6 +18,7 @@ export declare type ProductPricesType = {
|
|
|
16
18
|
[ProductPricesFields.COLUMN_TERM]: string;
|
|
17
19
|
[ProductPricesFields.COLUMN_PERIODICITY_CODE]: number;
|
|
18
20
|
[ProductPricesFields.COLUMN_TERM_CODE]: number;
|
|
21
|
+
[ProductPricesFields.COLUMN_PREFERRED_CURRENCY]?: PreferredCurrencyType;
|
|
19
22
|
};
|
|
20
23
|
export declare class ProductPrices extends AbstractEntity<ProductPricesType> {
|
|
21
24
|
#private;
|
|
@@ -27,5 +30,6 @@ export declare class ProductPrices extends AbstractEntity<ProductPricesType> {
|
|
|
27
30
|
get term(): string;
|
|
28
31
|
get periodicityCode(): number;
|
|
29
32
|
get termCode(): number;
|
|
33
|
+
get preferredCurrency(): PreferredCurrency | undefined;
|
|
30
34
|
toJSON(): ProductPricesType;
|
|
31
35
|
}
|
|
@@ -10,10 +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 _ProductPrices_buy, _ProductPrices_sell, _ProductPrices_currency, _ProductPrices_periodicity, _ProductPrices_term, _ProductPrices_periodicityCode, _ProductPrices_termCode;
|
|
13
|
+
var _ProductPrices_buy, _ProductPrices_sell, _ProductPrices_currency, _ProductPrices_periodicity, _ProductPrices_term, _ProductPrices_periodicityCode, _ProductPrices_termCode, _ProductPrices_preferredCurrency;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.ProductPrices = exports.ProductPricesFields = void 0;
|
|
16
16
|
const abstractEntity_1 = require("../../../../../abstractEntity");
|
|
17
|
+
const preferredCurrency_1 = require("./preferredCurrency");
|
|
17
18
|
var ProductPricesFields;
|
|
18
19
|
(function (ProductPricesFields) {
|
|
19
20
|
ProductPricesFields["COLUMN_BUY"] = "buy";
|
|
@@ -23,6 +24,7 @@ var ProductPricesFields;
|
|
|
23
24
|
ProductPricesFields["COLUMN_TERM"] = "term";
|
|
24
25
|
ProductPricesFields["COLUMN_PERIODICITY_CODE"] = "periodicityCode";
|
|
25
26
|
ProductPricesFields["COLUMN_TERM_CODE"] = "termCode";
|
|
27
|
+
ProductPricesFields["COLUMN_PREFERRED_CURRENCY"] = "preferredCurrency";
|
|
26
28
|
})(ProductPricesFields = exports.ProductPricesFields || (exports.ProductPricesFields = {}));
|
|
27
29
|
class ProductPrices extends abstractEntity_1.AbstractEntity {
|
|
28
30
|
constructor(productPricesInput) {
|
|
@@ -34,6 +36,7 @@ class ProductPrices extends abstractEntity_1.AbstractEntity {
|
|
|
34
36
|
_ProductPrices_term.set(this, void 0);
|
|
35
37
|
_ProductPrices_periodicityCode.set(this, void 0);
|
|
36
38
|
_ProductPrices_termCode.set(this, void 0);
|
|
39
|
+
_ProductPrices_preferredCurrency.set(this, void 0);
|
|
37
40
|
__classPrivateFieldSet(this, _ProductPrices_buy, productPricesInput[ProductPricesFields.COLUMN_BUY], "f");
|
|
38
41
|
__classPrivateFieldSet(this, _ProductPrices_sell, productPricesInput[ProductPricesFields.COLUMN_SELL], "f");
|
|
39
42
|
__classPrivateFieldSet(this, _ProductPrices_currency, productPricesInput[ProductPricesFields.COLUMN_CURRENCY], "f");
|
|
@@ -41,6 +44,9 @@ class ProductPrices extends abstractEntity_1.AbstractEntity {
|
|
|
41
44
|
__classPrivateFieldSet(this, _ProductPrices_term, productPricesInput[ProductPricesFields.COLUMN_TERM], "f");
|
|
42
45
|
__classPrivateFieldSet(this, _ProductPrices_periodicityCode, productPricesInput[ProductPricesFields.COLUMN_PERIODICITY_CODE], "f");
|
|
43
46
|
__classPrivateFieldSet(this, _ProductPrices_termCode, productPricesInput[ProductPricesFields.COLUMN_TERM_CODE], "f");
|
|
47
|
+
__classPrivateFieldSet(this, _ProductPrices_preferredCurrency, productPricesInput[ProductPricesFields.COLUMN_PREFERRED_CURRENCY]
|
|
48
|
+
? new preferredCurrency_1.PreferredCurrency(productPricesInput[ProductPricesFields.COLUMN_PREFERRED_CURRENCY])
|
|
49
|
+
: undefined, "f");
|
|
44
50
|
}
|
|
45
51
|
get buy() {
|
|
46
52
|
return __classPrivateFieldGet(this, _ProductPrices_buy, "f");
|
|
@@ -63,7 +69,11 @@ class ProductPrices extends abstractEntity_1.AbstractEntity {
|
|
|
63
69
|
get termCode() {
|
|
64
70
|
return __classPrivateFieldGet(this, _ProductPrices_termCode, "f");
|
|
65
71
|
}
|
|
72
|
+
get preferredCurrency() {
|
|
73
|
+
return __classPrivateFieldGet(this, _ProductPrices_preferredCurrency, "f");
|
|
74
|
+
}
|
|
66
75
|
toJSON() {
|
|
76
|
+
var _a;
|
|
67
77
|
return {
|
|
68
78
|
[ProductPricesFields.COLUMN_BUY]: this.buy,
|
|
69
79
|
[ProductPricesFields.COLUMN_SELL]: this.sell,
|
|
@@ -72,9 +82,10 @@ class ProductPrices extends abstractEntity_1.AbstractEntity {
|
|
|
72
82
|
[ProductPricesFields.COLUMN_TERM]: this.term,
|
|
73
83
|
[ProductPricesFields.COLUMN_PERIODICITY_CODE]: this.periodicityCode,
|
|
74
84
|
[ProductPricesFields.COLUMN_TERM_CODE]: this.termCode,
|
|
85
|
+
[ProductPricesFields.COLUMN_PREFERRED_CURRENCY]: (_a = this.preferredCurrency) === null || _a === void 0 ? void 0 : _a.toJSON(),
|
|
75
86
|
};
|
|
76
87
|
}
|
|
77
88
|
}
|
|
78
89
|
exports.ProductPrices = ProductPrices;
|
|
79
|
-
_ProductPrices_buy = new WeakMap(), _ProductPrices_sell = new WeakMap(), _ProductPrices_currency = new WeakMap(), _ProductPrices_periodicity = new WeakMap(), _ProductPrices_term = new WeakMap(), _ProductPrices_periodicityCode = new WeakMap(), _ProductPrices_termCode = new WeakMap();
|
|
90
|
+
_ProductPrices_buy = new WeakMap(), _ProductPrices_sell = new WeakMap(), _ProductPrices_currency = new WeakMap(), _ProductPrices_periodicity = new WeakMap(), _ProductPrices_term = new WeakMap(), _ProductPrices_periodicityCode = new WeakMap(), _ProductPrices_termCode = new WeakMap(), _ProductPrices_preferredCurrency = new WeakMap();
|
|
80
91
|
//# sourceMappingURL=productPrices.js.map
|
|
@@ -16,6 +16,11 @@ export declare type RequestQuoteRequestType = {
|
|
|
16
16
|
sku: string;
|
|
17
17
|
vendor: string;
|
|
18
18
|
};
|
|
19
|
+
export declare type DuplicateQuoteType = {
|
|
20
|
+
customer?: {
|
|
21
|
+
reference: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
19
24
|
export declare type RequestQuoteIbmRequestType = {
|
|
20
25
|
endCustomerRef?: string;
|
|
21
26
|
reference?: string;
|
|
@@ -63,6 +68,7 @@ export declare class QuotesClient extends AbstractRestfulClient {
|
|
|
63
68
|
requestQuote(postData: RequestQuoteRequestType, parameters?: Parameters): Promise<GetResult<QuoteRequest>>;
|
|
64
69
|
requestQuoteForVendor(vendor: string, postData: RequestQuoteIbmRequestType, parameters?: Parameters): Promise<void>;
|
|
65
70
|
deleteQuote(quoteReference: string, parameters?: Parameters): Promise<void>;
|
|
71
|
+
duplicateQuote(quoteReference: string, versionId: number, postData?: DuplicateQuoteType): Promise<GetResult<PutQuoteResult>>;
|
|
66
72
|
validateQuote(quoteReference: string, parameters?: Parameters): Promise<GetResult<PutQuoteResult>>;
|
|
67
73
|
reopenQuote(quoteReference: string, parameters?: Parameters): Promise<GetResult<PutQuoteResult>>;
|
|
68
74
|
sendToCustomer(quoteReference: string, parameters?: Parameters): Promise<void>;
|
|
@@ -23,6 +23,10 @@ class QuotesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
23
23
|
this.path = `/${quoteReference}`;
|
|
24
24
|
return await this.delete(parameters);
|
|
25
25
|
}
|
|
26
|
+
async duplicateQuote(quoteReference, versionId, postData = {}) {
|
|
27
|
+
this.path = `/${quoteReference}/version/${versionId}/duplicate`;
|
|
28
|
+
return new getResult_1.GetResult(PutQuoteResult_1.PutQuoteResult, await this.post(postData));
|
|
29
|
+
}
|
|
26
30
|
async validateQuote(quoteReference, parameters = {}) {
|
|
27
31
|
this.path = `/${quoteReference}/validate`;
|
|
28
32
|
return new getResult_1.GetResult(PutQuoteResult_1.PutQuoteResult, await this.get(parameters));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
+
export declare enum ConversionRulesFields {
|
|
3
|
+
COLUMN_CURRENCY = "currency",
|
|
4
|
+
COLUMN_EXCHANGE_RATE_DATE = "exchangeRateDate",
|
|
5
|
+
COLUMN_EXCHANGE_RATE = "exchangeRate"
|
|
6
|
+
}
|
|
7
|
+
export declare type ConversionRulesType = {
|
|
8
|
+
[ConversionRulesFields.COLUMN_CURRENCY]: string;
|
|
9
|
+
[ConversionRulesFields.COLUMN_EXCHANGE_RATE_DATE]: string;
|
|
10
|
+
[ConversionRulesFields.COLUMN_EXCHANGE_RATE]: number;
|
|
11
|
+
};
|
|
12
|
+
export declare class ConversionRules extends AbstractEntity<ConversionRulesType> {
|
|
13
|
+
#private;
|
|
14
|
+
constructor(input: ConversionRulesType);
|
|
15
|
+
get currency(): string;
|
|
16
|
+
get exchangeRateDate(): string;
|
|
17
|
+
get exchangeRate(): number;
|
|
18
|
+
toJSON(): ConversionRulesType;
|
|
19
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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 _ConversionRules_currency, _ConversionRules_exchangeRateDate, _ConversionRules_exchangeRate;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.ConversionRules = exports.ConversionRulesFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../abstractEntity");
|
|
17
|
+
var ConversionRulesFields;
|
|
18
|
+
(function (ConversionRulesFields) {
|
|
19
|
+
ConversionRulesFields["COLUMN_CURRENCY"] = "currency";
|
|
20
|
+
ConversionRulesFields["COLUMN_EXCHANGE_RATE_DATE"] = "exchangeRateDate";
|
|
21
|
+
ConversionRulesFields["COLUMN_EXCHANGE_RATE"] = "exchangeRate";
|
|
22
|
+
})(ConversionRulesFields = exports.ConversionRulesFields || (exports.ConversionRulesFields = {}));
|
|
23
|
+
class ConversionRules extends abstractEntity_1.AbstractEntity {
|
|
24
|
+
constructor(input) {
|
|
25
|
+
super(input);
|
|
26
|
+
_ConversionRules_currency.set(this, void 0);
|
|
27
|
+
_ConversionRules_exchangeRateDate.set(this, void 0);
|
|
28
|
+
_ConversionRules_exchangeRate.set(this, void 0);
|
|
29
|
+
__classPrivateFieldSet(this, _ConversionRules_currency, input[ConversionRulesFields.COLUMN_CURRENCY], "f");
|
|
30
|
+
__classPrivateFieldSet(this, _ConversionRules_exchangeRateDate, input[ConversionRulesFields.COLUMN_EXCHANGE_RATE_DATE], "f");
|
|
31
|
+
__classPrivateFieldSet(this, _ConversionRules_exchangeRate, input[ConversionRulesFields.COLUMN_EXCHANGE_RATE], "f");
|
|
32
|
+
}
|
|
33
|
+
get currency() {
|
|
34
|
+
return __classPrivateFieldGet(this, _ConversionRules_currency, "f");
|
|
35
|
+
}
|
|
36
|
+
get exchangeRateDate() {
|
|
37
|
+
return __classPrivateFieldGet(this, _ConversionRules_exchangeRateDate, "f");
|
|
38
|
+
}
|
|
39
|
+
get exchangeRate() {
|
|
40
|
+
return __classPrivateFieldGet(this, _ConversionRules_exchangeRate, "f");
|
|
41
|
+
}
|
|
42
|
+
toJSON() {
|
|
43
|
+
return {
|
|
44
|
+
[ConversionRulesFields.COLUMN_CURRENCY]: this.currency,
|
|
45
|
+
[ConversionRulesFields.COLUMN_EXCHANGE_RATE_DATE]: this.exchangeRateDate,
|
|
46
|
+
[ConversionRulesFields.COLUMN_EXCHANGE_RATE]: this.exchangeRate,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.ConversionRules = ConversionRules;
|
|
51
|
+
_ConversionRules_currency = new WeakMap(), _ConversionRules_exchangeRateDate = new WeakMap(), _ConversionRules_exchangeRate = new WeakMap();
|
|
52
|
+
//# sourceMappingURL=conversionRules.js.map
|
package/package.json
CHANGED