@infrab4a/connect-angular 4.17.3-beta.4 → 4.17.3-beta.5
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 +4 -4
- package/fesm2015/infrab4a-connect-angular.mjs +3 -3
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
- package/fesm2020/infrab4a-connect-angular.mjs +3 -3
- package/fesm2020/infrab4a-connect-angular.mjs.map +1 -1
- package/package.json +1 -1
- package/services/checkout.service.d.ts +1 -1
|
@@ -12,7 +12,7 @@ import { isPlatformBrowser, isPlatformServer } from '@angular/common';
|
|
|
12
12
|
import * as i1$1 from '@angular/fire/firestore';
|
|
13
13
|
import { Firestore, provideFirestore, initializeFirestore, memoryLocalCache, docSnapshots, doc } from '@angular/fire/firestore';
|
|
14
14
|
import cookie from 'js-cookie';
|
|
15
|
-
import { of, from, combineLatest, throwError,
|
|
15
|
+
import { of, from, combineLatest, throwError, Subject, iif, forkJoin } from 'rxjs';
|
|
16
16
|
import { map, mergeMap, catchError, concatMap, tap } from 'rxjs/operators';
|
|
17
17
|
import * as i2 from '@angular/common/http';
|
|
18
18
|
import { __decorate, __metadata } from 'tslib';
|
|
@@ -1403,9 +1403,9 @@ class CheckoutService {
|
|
|
1403
1403
|
// )
|
|
1404
1404
|
}
|
|
1405
1405
|
validateStockProducts() {
|
|
1406
|
-
return
|
|
1406
|
+
return this.getCheckout().pipe(concatMap((checkout) => this.http.post(`${this.checkoutUrl}/checkoutValidateProductStock`, {
|
|
1407
1407
|
checkoutId: checkout.id,
|
|
1408
|
-
})))
|
|
1408
|
+
})));
|
|
1409
1409
|
}
|
|
1410
1410
|
async createCheckout(checkoutData) {
|
|
1411
1411
|
const checkout = await this.checkoutRepository.create({
|