@infrab4a/connect-angular 4.17.3-beta.14 → 4.17.3-beta.15

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.
@@ -1115,13 +1115,18 @@ class CheckoutService {
1115
1115
  checkoutId: checkout.id,
1116
1116
  })), concatMap(() => this.getCheckout()));
1117
1117
  }
1118
- checkCoupon(nickname, checkoutType) {
1118
+ applyCouponDiscount(nickname, checkoutType) {
1119
1119
  return this.getCheckout().pipe(concatMap((checkout) => this.http.post(`${this.checkoutUrl}/checkoutApplyDiscount`, {
1120
1120
  checkoutId: checkout.id,
1121
1121
  coupon: nickname,
1122
1122
  checkoutType,
1123
1123
  })), concatMap(() => this.getCheckout()), map((checkout) => checkout.coupon));
1124
1124
  }
1125
+ removeCouponDiscount() {
1126
+ return this.getCheckout().pipe(concatMap((checkout) => this.http.post(`${this.checkoutUrl}/checkoutRemoveDiscount`, {
1127
+ checkoutId: checkout.id,
1128
+ })), concatMap(() => this.getCheckout()));
1129
+ }
1125
1130
  validateStockProducts() {
1126
1131
  return this.getCheckout().pipe(concatMap((checkout) => this.http.post(`${this.checkoutUrl}/checkoutValidateProductStock`, {
1127
1132
  checkoutId: checkout.id,