@infrab4a/connect-angular 4.17.3-beta.12 → 4.17.3-beta.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/esm2020/services/checkout.service.mjs +6 -1
- package/fesm2015/infrab4a-connect-angular.mjs +5 -0
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
- package/fesm2020/infrab4a-connect-angular.mjs +5 -0
- package/fesm2020/infrab4a-connect-angular.mjs.map +1 -1
- package/package.json +2 -2
- package/services/checkout.service.d.ts +1 -0
|
@@ -1110,6 +1110,11 @@ class CheckoutService {
|
|
|
1110
1110
|
clearCheckoutFromSession() {
|
|
1111
1111
|
return this.dataPersistence.remove('checkoutId');
|
|
1112
1112
|
}
|
|
1113
|
+
resetCheckoutValues() {
|
|
1114
|
+
return this.getCheckout().pipe(concatMap((checkout) => this.http.post(`${this.checkoutUrl}/checkoutResetValues`, {
|
|
1115
|
+
checkoutId: checkout.id,
|
|
1116
|
+
})), concatMap(() => this.getCheckout()));
|
|
1117
|
+
}
|
|
1113
1118
|
checkCoupon(nickname, checkoutType) {
|
|
1114
1119
|
return this.getCheckout().pipe(concatMap((checkout) => this.http.post(`${this.checkoutUrl}/checkoutApplyDiscount`, {
|
|
1115
1120
|
checkoutId: checkout.id,
|