@veloceapps/api 4.0.12 → 4.0.14
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/bundles/veloce-api.umd.js +11 -4
- package/bundles/veloce-api.umd.js.map +1 -1
- package/esm2015/lib/services/configuration-settings-api.service.js +8 -2
- package/esm2015/lib/types/dto/charge-group-item-dto.types.js +6 -4
- package/fesm2015/veloce-api.js +12 -5
- package/fesm2015/veloce-api.js.map +1 -1
- package/lib/types/dto/charge-group-item-dto.types.d.ts +3 -2
- package/package.json +1 -1
@@ -681,7 +681,7 @@
|
|
681
681
|
}());
|
682
682
|
|
683
683
|
var ChargeGroupItemDTO = /** @class */ (function () {
|
684
|
-
function ChargeGroupItemDTO(chargeType, chargeMethod, properties, id, chargeTypeDisplayValue, frequencyUnit, frequencyDuration, currency, sellingTerm, netPrice, listPrice, netUnitPrice, listUnitPrice, cost, priceAdjustment, priceWaterfalls,
|
684
|
+
function ChargeGroupItemDTO(chargeType, chargeMethod, properties, id, chargeTypeDisplayValue, frequencyUnit, frequencyDuration, currency, sellingTerm, netPrice, listPrice, netUnitPrice, listUnitPrice, cost, priceAdjustment, priceWaterfalls, priceAdjustmentEnabled, listPriceAdjustmentEnabled) {
|
685
685
|
this.chargeType = chargeType;
|
686
686
|
this.chargeMethod = chargeMethod;
|
687
687
|
this.properties = properties;
|
@@ -698,7 +698,8 @@
|
|
698
698
|
this.cost = cost;
|
699
699
|
this.priceAdjustment = priceAdjustment;
|
700
700
|
this.priceWaterfalls = priceWaterfalls;
|
701
|
-
this.
|
701
|
+
this.priceAdjustmentEnabled = priceAdjustmentEnabled;
|
702
|
+
this.listPriceAdjustmentEnabled = listPriceAdjustmentEnabled;
|
702
703
|
}
|
703
704
|
ChargeGroupItemDTO.fromDTO = function (dto) {
|
704
705
|
var _a;
|
@@ -718,7 +719,8 @@
|
|
718
719
|
cost: dto.cost,
|
719
720
|
priceAdjustment: dto.priceAdjustment && PriceAdjustmentDTO.fromDTO(dto.priceAdjustment),
|
720
721
|
priceWaterfalls: (_a = dto.priceWaterfalls) === null || _a === void 0 ? void 0 : _a.map(PriceAdjustmentDTO.fromDTO),
|
721
|
-
|
722
|
+
priceAdjustmentEnabled: dto.priceAdjustmentEnabled,
|
723
|
+
listPriceAdjustmentEnabled: dto.listPriceAdjustmentEnabled,
|
722
724
|
properties: dto.properties,
|
723
725
|
};
|
724
726
|
};
|
@@ -1134,7 +1136,12 @@
|
|
1134
1136
|
ConfigurationSettingsApiService.prototype.fetchSetting = function (settingsKey, options) {
|
1135
1137
|
return this.httpService
|
1136
1138
|
.api(Object.assign({ url: this.SERVICE_URL + "/byKey/" + settingsKey, method: 'get' }, options))
|
1137
|
-
.pipe(operators.map(function (setting) { return ConfigurationSettingsDTO.fromDTO(setting, settingsKey); }), operators.catchError(function () {
|
1139
|
+
.pipe(operators.map(function (setting) { return ConfigurationSettingsDTO.fromDTO(setting, settingsKey); }), operators.catchError(function (err) {
|
1140
|
+
if (err instanceof i5.HttpErrorResponse && err.status === 404) {
|
1141
|
+
return rxjs.of(null);
|
1142
|
+
}
|
1143
|
+
throw err;
|
1144
|
+
}));
|
1138
1145
|
};
|
1139
1146
|
ConfigurationSettingsApiService.prototype.createSetting = function (setting, options) {
|
1140
1147
|
var request = ConfigurationSettingsDTO.toDTO(setting);
|