@veloceapps/api 2.0.2 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -690,6 +690,22 @@
690
690
  return LineItemDTO;
691
691
  }());
692
692
 
693
+ var ConfigurePriceDTO = /** @class */ (function () {
694
+ function ConfigurePriceDTO(lineItem, context, charges) {
695
+ this.lineItem = lineItem;
696
+ this.context = context;
697
+ this.charges = charges;
698
+ }
699
+ ConfigurePriceDTO.fromDTO = function (dto) {
700
+ return {
701
+ lineItem: LineItemDTO.fromDTO(dto.lineItem),
702
+ charges: dto.charges,
703
+ context: dto.context,
704
+ };
705
+ };
706
+ return ConfigurePriceDTO;
707
+ }());
708
+
693
709
  var ConfigurationApiService = /** @class */ (function () {
694
710
  function ConfigurationApiService(httpService) {
695
711
  this.httpService = httpService;
@@ -723,12 +739,8 @@
723
739
  body: configurationRequest,
724
740
  errorHandler: function (e) { return rxjs.throwError(e); },
725
741
  })
726
- .pipe(operators.map(function (response) {
727
- var lineItem = LineItemDTO.fromDTO(response.lineItem);
728
- return {
729
- lineItem: _this.updatePortDomains(lineItem, runtimeModel),
730
- context: response.context,
731
- };
742
+ .pipe(operators.map(function (response) { return ConfigurePriceDTO.fromDTO(response); }), operators.map(function (configurePrice) {
743
+ return Object.assign(Object.assign({}, configurePrice), { lineItem: _this.updatePortDomains(configurePrice.lineItem, runtimeModel) });
732
744
  }));
733
745
  };
734
746
  ConfigurationApiService.prototype.getRuntimeDataByProductId = function (productId, offeringId) {