@infrab4a/connect-angular 5.7.5-beta.1 → 5.7.5-beta.2

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.
@@ -1388,6 +1388,17 @@ class CheckoutService {
1388
1388
  checkoutId: checkout.id,
1389
1389
  })), concatMap(() => this.getCheckout()));
1390
1390
  }
1391
+ applyPointsDiscount(points) {
1392
+ return this.getCheckout().pipe(concatMap((checkout) => this.dependenciesFacade.httpClient.post(`${this.checkoutUrl}/checkoutApplyPointsDiscount`, {
1393
+ checkoutId: checkout.id,
1394
+ points,
1395
+ })), concatMap(() => this.getCheckout()));
1396
+ }
1397
+ removePointsDiscount() {
1398
+ return this.getCheckout().pipe(concatMap((checkout) => this.dependenciesFacade.httpClient.post(`${this.checkoutUrl}/checkoutRemovePointsDiscount`, {
1399
+ checkoutId: checkout.id,
1400
+ })), concatMap(() => this.getCheckout()));
1401
+ }
1391
1402
  validateStockProducts() {
1392
1403
  return this.getCheckout().pipe(concatMap((checkout) => this.dependenciesFacade.httpClient.post(`${this.checkoutUrl}/checkoutValidateProductStock`, {
1393
1404
  checkoutId: checkout.id,