@veloceapps/sdk 2.0.18 → 2.0.20

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.
@@ -985,7 +985,7 @@ class QuoteService {
985
985
  this.quote = new BehaviorSubject(null);
986
986
  }
987
987
  init(quoteId, params) {
988
- return zip(this.quoteApiService.getQuote(quoteId, params), this.priceApiService.getPriceLists(), this.contextService.resolve$().pipe(filter(Boolean), map(context => context))).pipe(tap(([quote, priceLists, configurationContext]) => {
988
+ return zip(this.quoteApiService.getQuoteDraft(quoteId, params), this.priceApiService.getPriceLists(), this.contextService.resolve$().pipe(filter(Boolean), map(context => context))).pipe(tap(([quote, priceLists, configurationContext]) => {
989
989
  this.quote.next(quote);
990
990
  this.priceLists = priceLists;
991
991
  this.quotePriceList = priceLists.find(p => p.id === configurationContext.priceListId);
@@ -1019,7 +1019,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
1019
1019
  type: Injectable,
1020
1020
  args: [{ providedIn: 'root' }]
1021
1021
  }], ctorParameters: function () { return [{ type: ContextService }, { type: i1.QuoteApiService }, { type: i1.PriceApiService }]; } });
1022
- ``;
1023
1022
 
1024
1023
  class ShoppingCartService {
1025
1024
  constructor(priceApiService, contextService, quoteService) {
@@ -2670,7 +2669,7 @@ class VlQuoteDirective {
2670
2669
  this.runtimeService = runtimeService;
2671
2670
  }
2672
2671
  getQuote(quoteId) {
2673
- return this.quoteApiService.getQuote(quoteId).toPromise();
2672
+ return this.quoteApiService.getQuoteDraft(quoteId).toPromise();
2674
2673
  }
2675
2674
  upsertQuote(quoteDraft) {
2676
2675
  return this.quoteApiService.upsertQuote(quoteDraft).toPromise();