@daffodil/cart 0.63.1 → 0.64.0

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.
Files changed (224) hide show
  1. package/driver/in-memory/backend/cart-root.service.d.ts +2 -2
  2. package/driver/magento/transforms/inputs/billing-address.service.d.ts +1 -1
  3. package/driver/magento/transforms/inputs/shipping-address.service.d.ts +1 -1
  4. package/driver/magento/transforms/outputs/billing-address.service.d.ts +1 -1
  5. package/driver/magento/transforms/outputs/cart-shipping-information.service.d.ts +1 -1
  6. package/driver/magento/transforms/outputs/cart.service.d.ts +2 -2
  7. package/driver/magento/transforms/outputs/shipping-address.service.d.ts +1 -1
  8. package/esm2020/driver/in-memory/backend/cart/cart.service.mjs +3 -3
  9. package/esm2020/driver/in-memory/backend/cart-address/cart-address.service.mjs +3 -3
  10. package/esm2020/driver/in-memory/backend/cart-billing-address/cart-billing-address.service.mjs +3 -3
  11. package/esm2020/driver/in-memory/backend/cart-coupon/cart-coupon.service.mjs +3 -3
  12. package/esm2020/driver/in-memory/backend/cart-items/cart-items.service.mjs +3 -3
  13. package/esm2020/driver/in-memory/backend/cart-order/cart-order.service.mjs +3 -3
  14. package/esm2020/driver/in-memory/backend/cart-payment/cart-payment.service.mjs +3 -3
  15. package/esm2020/driver/in-memory/backend/cart-payment-methods/cart-payment-methods.service.mjs +3 -3
  16. package/esm2020/driver/in-memory/backend/cart-root.service.mjs +6 -6
  17. package/esm2020/driver/in-memory/backend/cart-shipping-address/cart-shipping-address.service.mjs +3 -3
  18. package/esm2020/driver/in-memory/backend/cart-shipping-information/cart-shipping-information.service.mjs +3 -3
  19. package/esm2020/driver/in-memory/backend/cart-shipping-methods/cart-shipping-methods.service.mjs +3 -3
  20. package/esm2020/driver/in-memory/drivers/cart/cart.service.mjs +3 -3
  21. package/esm2020/driver/in-memory/drivers/cart-address/cart-address.service.mjs +3 -3
  22. package/esm2020/driver/in-memory/drivers/cart-billing-address/cart-billing-address.service.mjs +3 -3
  23. package/esm2020/driver/in-memory/drivers/cart-coupon/cart-coupon.service.mjs +3 -3
  24. package/esm2020/driver/in-memory/drivers/cart-driver.module.mjs +7 -9
  25. package/esm2020/driver/in-memory/drivers/cart-item/cart-item.service.mjs +3 -3
  26. package/esm2020/driver/in-memory/drivers/cart-order/cart-order.service.mjs +3 -3
  27. package/esm2020/driver/in-memory/drivers/cart-payment/cart-payment.service.mjs +3 -3
  28. package/esm2020/driver/in-memory/drivers/cart-payment-methods/cart-payment-methods.service.mjs +3 -3
  29. package/esm2020/driver/in-memory/drivers/cart-shipping-address/cart-shipping-address.service.mjs +3 -3
  30. package/esm2020/driver/in-memory/drivers/cart-shipping-information/cart-shipping-information.service.mjs +3 -3
  31. package/esm2020/driver/in-memory/drivers/cart-shipping-methods/cart-shipping-methods.service.mjs +3 -3
  32. package/esm2020/driver/magento/cart-address.service.mjs +3 -3
  33. package/esm2020/driver/magento/cart-billing-address.service.mjs +3 -3
  34. package/esm2020/driver/magento/cart-coupon.service.mjs +3 -3
  35. package/esm2020/driver/magento/cart-driver.module.mjs +5 -7
  36. package/esm2020/driver/magento/cart-item.service.mjs +3 -3
  37. package/esm2020/driver/magento/cart-order.service.mjs +3 -3
  38. package/esm2020/driver/magento/cart-payment-methods.service.mjs +3 -3
  39. package/esm2020/driver/magento/cart-payment.service.mjs +3 -3
  40. package/esm2020/driver/magento/cart-shipping-address.service.mjs +3 -3
  41. package/esm2020/driver/magento/cart-shipping-information.service.mjs +3 -3
  42. package/esm2020/driver/magento/cart-shipping-methods.service.mjs +3 -3
  43. package/esm2020/driver/magento/cart.service.mjs +3 -3
  44. package/esm2020/driver/magento/errors/map.mjs +2 -2
  45. package/esm2020/driver/magento/errors/transform.mjs +1 -1
  46. package/esm2020/driver/magento/queries/add-item/query.mjs +1 -1
  47. package/esm2020/driver/magento/queries/apply-coupon/query.mjs +1 -1
  48. package/esm2020/driver/magento/queries/get-billing-address/query.mjs +1 -1
  49. package/esm2020/driver/magento/queries/get-cart/query.mjs +1 -1
  50. package/esm2020/driver/magento/queries/get-selected-payment-method/query.mjs +1 -1
  51. package/esm2020/driver/magento/queries/get-selected-shipping-method/query.mjs +1 -1
  52. package/esm2020/driver/magento/queries/get-shipping-address/query.mjs +1 -1
  53. package/esm2020/driver/magento/queries/list-coupons/query.mjs +1 -1
  54. package/esm2020/driver/magento/queries/list-items/query.mjs +1 -1
  55. package/esm2020/driver/magento/queries/list-payment-methods/query.mjs +1 -1
  56. package/esm2020/driver/magento/queries/merge-carts/query.mjs +1 -1
  57. package/esm2020/driver/magento/queries/remove-all-coupons/query.mjs +1 -1
  58. package/esm2020/driver/magento/queries/remove-item/query.mjs +1 -1
  59. package/esm2020/driver/magento/queries/set-selected-payment-method/query.mjs +1 -1
  60. package/esm2020/driver/magento/queries/set-selected-payment-method-with-billing/query.mjs +1 -1
  61. package/esm2020/driver/magento/queries/set-selected-payment-method-with-billing-and-email/query.mjs +1 -1
  62. package/esm2020/driver/magento/queries/set-selected-shipping-method/query.mjs +1 -1
  63. package/esm2020/driver/magento/queries/update-address/query.mjs +1 -1
  64. package/esm2020/driver/magento/queries/update-address-with-email/query.mjs +1 -1
  65. package/esm2020/driver/magento/queries/update-billing-address/query.mjs +1 -1
  66. package/esm2020/driver/magento/queries/update-billing-address-with-email/query.mjs +1 -1
  67. package/esm2020/driver/magento/queries/update-item/query.mjs +1 -1
  68. package/esm2020/driver/magento/queries/update-shipping-address/query.mjs +1 -1
  69. package/esm2020/driver/magento/queries/update-shipping-address-with-email/query.mjs +1 -1
  70. package/esm2020/driver/magento/testing/factories/cart-address-input.factory.mjs +3 -3
  71. package/esm2020/driver/magento/testing/factories/cart-address.factory.mjs +3 -3
  72. package/esm2020/driver/magento/testing/factories/cart-coupon.factory.mjs +3 -3
  73. package/esm2020/driver/magento/testing/factories/cart-item/bundle-cart-item.factory.mjs +3 -3
  74. package/esm2020/driver/magento/testing/factories/cart-item/cart-item.factory.mjs +3 -3
  75. package/esm2020/driver/magento/testing/factories/cart-item/configurable-cart-item.factory.mjs +3 -3
  76. package/esm2020/driver/magento/testing/factories/cart-payment-method.factory.mjs +3 -3
  77. package/esm2020/driver/magento/testing/factories/cart-shipping-method.factory.mjs +3 -3
  78. package/esm2020/driver/magento/testing/factories/cart.factory.mjs +3 -3
  79. package/esm2020/driver/magento/testing/factories/shipping-address.factory.mjs +3 -3
  80. package/esm2020/driver/magento/transforms/inputs/billing-address.service.mjs +4 -4
  81. package/esm2020/driver/magento/transforms/inputs/cart-address.service.mjs +3 -3
  82. package/esm2020/driver/magento/transforms/inputs/cart-item-update.service.mjs +3 -3
  83. package/esm2020/driver/magento/transforms/inputs/payment-method.service.mjs +3 -3
  84. package/esm2020/driver/magento/transforms/inputs/shipping-address.service.mjs +4 -4
  85. package/esm2020/driver/magento/transforms/inputs/shipping-method.service.mjs +3 -3
  86. package/esm2020/driver/magento/transforms/outputs/billing-address.service.mjs +4 -4
  87. package/esm2020/driver/magento/transforms/outputs/cart-address.service.mjs +3 -3
  88. package/esm2020/driver/magento/transforms/outputs/cart-coupon-response.service.mjs +5 -5
  89. package/esm2020/driver/magento/transforms/outputs/cart-item/bundle-cart-item-transformer.mjs +1 -1
  90. package/esm2020/driver/magento/transforms/outputs/cart-item/cart-item-transformer.mjs +2 -2
  91. package/esm2020/driver/magento/transforms/outputs/cart-item/configurable-cart-item-transformer.mjs +1 -1
  92. package/esm2020/driver/magento/transforms/outputs/cart-payment.service.mjs +3 -3
  93. package/esm2020/driver/magento/transforms/outputs/cart-shipping-information.service.mjs +4 -4
  94. package/esm2020/driver/magento/transforms/outputs/cart-shipping-rate.service.mjs +3 -3
  95. package/esm2020/driver/magento/transforms/outputs/cart.service.mjs +5 -5
  96. package/esm2020/driver/magento/transforms/outputs/shipping-address.service.mjs +4 -4
  97. package/esm2020/driver/services/resolve.service.mjs +3 -3
  98. package/esm2020/driver/testing/drivers/cart/cart.service.mjs +3 -3
  99. package/esm2020/driver/testing/drivers/cart-address/cart-address.service.mjs +3 -3
  100. package/esm2020/driver/testing/drivers/cart-billing-address/cart-billing-address.service.mjs +3 -3
  101. package/esm2020/driver/testing/drivers/cart-coupon/cart-coupon.service.mjs +3 -3
  102. package/esm2020/driver/testing/drivers/cart-driver.module.mjs +7 -9
  103. package/esm2020/driver/testing/drivers/cart-item/cart-item.service.mjs +3 -3
  104. package/esm2020/driver/testing/drivers/cart-order/cart-order.service.mjs +3 -3
  105. package/esm2020/driver/testing/drivers/cart-payment/cart-payment.service.mjs +3 -3
  106. package/esm2020/driver/testing/drivers/cart-payment-methods/cart-payment-methods.service.mjs +3 -3
  107. package/esm2020/driver/testing/drivers/cart-shipping-address/cart-shipping-address.service.mjs +3 -3
  108. package/esm2020/driver/testing/drivers/cart-shipping-information/cart-shipping-information.service.mjs +3 -3
  109. package/esm2020/driver/testing/drivers/cart-shipping-methods/cart-shipping-methods.service.mjs +3 -3
  110. package/esm2020/routing/cart-routing.module.mjs +4 -4
  111. package/esm2020/routing/guards/billing-address/billing-address.guard.mjs +3 -3
  112. package/esm2020/routing/guards/cart-items/cart-items.guard.mjs +3 -3
  113. package/esm2020/routing/guards/in-stock-items/in-stock-items.guard.mjs +3 -3
  114. package/esm2020/routing/guards/order-result/order-result.guard.mjs +3 -3
  115. package/esm2020/routing/guards/payment-method/payment-method.guard.mjs +3 -3
  116. package/esm2020/routing/guards/resolve-cart/resolve-cart.guard.mjs +3 -3
  117. package/esm2020/routing/guards/resolved-cart/resolved-cart.guard.mjs +3 -3
  118. package/esm2020/routing/guards/shipping-address/shipping-address.guard.mjs +3 -3
  119. package/esm2020/routing/guards/shipping-method/shipping-method.guard.mjs +3 -3
  120. package/esm2020/routing/resolvers/cart-resolver.service.mjs +3 -3
  121. package/esm2020/routing/resolvers/empty-cart-resolver.service.mjs +3 -3
  122. package/esm2020/state/cart-state.module.mjs +21 -23
  123. package/esm2020/state/effects/cart-address.effects.mjs +3 -3
  124. package/esm2020/state/effects/cart-billing-address.effects.mjs +3 -3
  125. package/esm2020/state/effects/cart-coupon.effects.mjs +3 -3
  126. package/esm2020/state/effects/cart-item.effects.mjs +3 -3
  127. package/esm2020/state/effects/cart-order.effects.mjs +3 -3
  128. package/esm2020/state/effects/cart-payment-methods.effects.mjs +3 -3
  129. package/esm2020/state/effects/cart-payment-processor.effects.mjs +3 -3
  130. package/esm2020/state/effects/cart-payment.effects.mjs +3 -3
  131. package/esm2020/state/effects/cart-resolver.effects.mjs +3 -3
  132. package/esm2020/state/effects/cart-shipping-address.effects.mjs +3 -3
  133. package/esm2020/state/effects/cart-shipping-information.effects.mjs +3 -3
  134. package/esm2020/state/effects/cart-shipping-methods.effects.mjs +3 -3
  135. package/esm2020/state/effects/cart.effects.mjs +3 -3
  136. package/esm2020/state/facades/cart/cart.facade.mjs +4 -4
  137. package/esm2020/state/reducers/cart/cart.reducer.mjs +8 -8
  138. package/esm2020/state/reducers/cart-billing-address/cart-billing-address.reducer.mjs +6 -6
  139. package/esm2020/state/reducers/cart-coupon/cart-coupon.reducer.mjs +6 -6
  140. package/esm2020/state/reducers/cart-initial-state.mjs +11 -10
  141. package/esm2020/state/reducers/cart-item/cart-item.reducer.mjs +10 -10
  142. package/esm2020/state/reducers/cart-item-entities/cart-item-entities.reducer.mjs +2 -2
  143. package/esm2020/state/reducers/cart-order/cart-order-initial-state.mjs +2 -2
  144. package/esm2020/state/reducers/cart-order/cart-order.reducer.mjs +5 -5
  145. package/esm2020/state/reducers/cart-payment/cart-payment.reducer.mjs +7 -7
  146. package/esm2020/state/reducers/cart-payment-methods/cart-payment-methods.reducer.mjs +4 -4
  147. package/esm2020/state/reducers/cart-reducers-state.interface.mjs +1 -1
  148. package/esm2020/state/reducers/cart-resolve/cart-resolve.reducer.mjs +2 -2
  149. package/esm2020/state/reducers/cart-shipping-address/cart-shipping-address.reducer.mjs +6 -6
  150. package/esm2020/state/reducers/cart-shipping-information/cart-shipping-information.reducer.mjs +6 -6
  151. package/esm2020/state/reducers/cart-shipping-methods/cart-shipping-methods.reducer.mjs +4 -4
  152. package/esm2020/state/reducers/cart.reducer.mjs +3 -3
  153. package/esm2020/state/reducers/errors/error-state-helpers.mjs +1 -1
  154. package/esm2020/state/reducers/token/reducers.token.mjs +2 -2
  155. package/esm2020/state/selectors/cart/cart.selector.mjs +26 -26
  156. package/esm2020/state/selectors/cart-order/cart-order.selector.mjs +3 -3
  157. package/esm2020/state/selectors/cart.selector.mjs +2 -2
  158. package/esm2020/state/testing/cart-testing.module.mjs +4 -4
  159. package/esm2020/state/testing/factories/stateful-cart-item.factory.mjs +3 -3
  160. package/esm2020/state/testing/factories/stateful-composite-cart-item.factory.mjs +3 -3
  161. package/esm2020/state/testing/factories/stateful-configurable-cart-item.factory.mjs +3 -3
  162. package/esm2020/state/testing/mock-cart-facade.mjs +3 -3
  163. package/esm2020/storage/cart-storage.service.mjs +3 -3
  164. package/esm2020/testing/factories/cart-address.factory.mjs +3 -3
  165. package/esm2020/testing/factories/cart-coupon.factory.mjs +3 -3
  166. package/esm2020/testing/factories/cart-item/cart-item.factory.mjs +3 -3
  167. package/esm2020/testing/factories/cart-item/composite-cart-item.factory.mjs +3 -3
  168. package/esm2020/testing/factories/cart-item/configurable-cart-item.factory.mjs +3 -3
  169. package/esm2020/testing/factories/cart-payment.factory.mjs +3 -3
  170. package/esm2020/testing/factories/cart-shipping-rate.factory.mjs +3 -3
  171. package/esm2020/testing/factories/cart.factory.mjs +3 -3
  172. package/fesm2015/daffodil-cart-driver-in-memory.mjs +73 -75
  173. package/fesm2015/daffodil-cart-driver-in-memory.mjs.map +1 -1
  174. package/fesm2015/daffodil-cart-driver-magento-testing.mjs +30 -30
  175. package/fesm2015/daffodil-cart-driver-magento.mjs +152 -154
  176. package/fesm2015/daffodil-cart-driver-magento.mjs.map +1 -1
  177. package/fesm2015/daffodil-cart-driver-testing.mjs +37 -39
  178. package/fesm2015/daffodil-cart-driver-testing.mjs.map +1 -1
  179. package/fesm2015/daffodil-cart-driver.mjs +3 -3
  180. package/fesm2015/daffodil-cart-routing.mjs +37 -37
  181. package/fesm2015/daffodil-cart-state-testing.mjs +16 -16
  182. package/fesm2015/daffodil-cart-state.mjs +252 -253
  183. package/fesm2015/daffodil-cart-state.mjs.map +1 -1
  184. package/fesm2015/daffodil-cart-testing.mjs +24 -24
  185. package/fesm2015/daffodil-cart.mjs +3 -3
  186. package/fesm2020/daffodil-cart-driver-in-memory.mjs +205 -207
  187. package/fesm2020/daffodil-cart-driver-in-memory.mjs.map +1 -1
  188. package/fesm2020/daffodil-cart-driver-magento-testing.mjs +30 -30
  189. package/fesm2020/daffodil-cart-driver-magento.mjs +153 -155
  190. package/fesm2020/daffodil-cart-driver-magento.mjs.map +1 -1
  191. package/fesm2020/daffodil-cart-driver-testing.mjs +37 -39
  192. package/fesm2020/daffodil-cart-driver-testing.mjs.map +1 -1
  193. package/fesm2020/daffodil-cart-driver.mjs +3 -3
  194. package/fesm2020/daffodil-cart-routing.mjs +37 -37
  195. package/fesm2020/daffodil-cart-state-testing.mjs +16 -16
  196. package/fesm2020/daffodil-cart-state.mjs +319 -320
  197. package/fesm2020/daffodil-cart-state.mjs.map +1 -1
  198. package/fesm2020/daffodil-cart-testing.mjs +24 -24
  199. package/fesm2020/daffodil-cart.mjs +3 -3
  200. package/package.json +1 -1
  201. package/state/facades/cart/cart.facade.d.ts +1 -1
  202. package/state/reducers/cart-order/cart-order.reducer.d.ts +1 -1
  203. package/state/reducers/cart-reducers-state.interface.d.ts +1 -1
  204. package/state/reducers/errors/error-state-helpers.d.ts +1 -1
  205. package/state/selectors/cart.selector.d.ts +2 -2
  206. package/daffodil-cart.d.ts +0 -5
  207. package/driver/daffodil-cart-driver.d.ts +0 -5
  208. package/driver/in-memory/daffodil-cart-driver-in-memory.d.ts +0 -5
  209. package/driver/in-memory/package.json +0 -1
  210. package/driver/magento/daffodil-cart-driver-magento.d.ts +0 -5
  211. package/driver/magento/package.json +0 -1
  212. package/driver/magento/testing/daffodil-cart-driver-magento-testing.d.ts +0 -5
  213. package/driver/magento/testing/package.json +0 -1
  214. package/driver/package.json +0 -1
  215. package/driver/testing/daffodil-cart-driver-testing.d.ts +0 -5
  216. package/driver/testing/package.json +0 -1
  217. package/routing/daffodil-cart-routing.d.ts +0 -5
  218. package/routing/package.json +0 -1
  219. package/state/daffodil-cart-state.d.ts +0 -5
  220. package/state/package.json +0 -1
  221. package/state/testing/daffodil-cart-state-testing.d.ts +0 -5
  222. package/state/testing/package.json +0 -1
  223. package/testing/daffodil-cart-testing.d.ts +0 -5
  224. package/testing/package.json +0 -1
@@ -44,9 +44,9 @@ class DaffInMemoryCartService {
44
44
  })));
45
45
  }
46
46
  }
47
- /** @nocollapse */ DaffInMemoryCartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
48
- /** @nocollapse */ DaffInMemoryCartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartService, providedIn: 'root' });
49
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartService, decorators: [{
47
+ /** @nocollapse */ DaffInMemoryCartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
48
+ /** @nocollapse */ DaffInMemoryCartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartService, providedIn: 'root' });
49
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartService, decorators: [{
50
50
  type: Injectable,
51
51
  args: [{
52
52
  providedIn: 'root',
@@ -80,9 +80,9 @@ class DaffInMemoryCartItemService {
80
80
  return this.http.delete(`${this.url}/${cartId}/${itemId}`);
81
81
  }
82
82
  }
83
- /** @nocollapse */ DaffInMemoryCartItemService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartItemService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
84
- /** @nocollapse */ DaffInMemoryCartItemService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartItemService, providedIn: 'root' });
85
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartItemService, decorators: [{
83
+ /** @nocollapse */ DaffInMemoryCartItemService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartItemService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
84
+ /** @nocollapse */ DaffInMemoryCartItemService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartItemService, providedIn: 'root' });
85
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartItemService, decorators: [{
86
86
  type: Injectable,
87
87
  args: [{
88
88
  providedIn: 'root',
@@ -107,9 +107,9 @@ class DaffInMemoryCartBillingAddressService {
107
107
  return this.http.put(`${this.url}/${cartId}`, address);
108
108
  }
109
109
  }
110
- /** @nocollapse */ DaffInMemoryCartBillingAddressService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartBillingAddressService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
111
- /** @nocollapse */ DaffInMemoryCartBillingAddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartBillingAddressService, providedIn: 'root' });
112
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartBillingAddressService, decorators: [{
110
+ /** @nocollapse */ DaffInMemoryCartBillingAddressService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartBillingAddressService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
111
+ /** @nocollapse */ DaffInMemoryCartBillingAddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartBillingAddressService, providedIn: 'root' });
112
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartBillingAddressService, decorators: [{
113
113
  type: Injectable,
114
114
  args: [{
115
115
  providedIn: 'root',
@@ -140,9 +140,9 @@ class DaffInMemoryCartPaymentService {
140
140
  return this.http.delete(`${this.url}/${cartId}`);
141
141
  }
142
142
  }
143
- /** @nocollapse */ DaffInMemoryCartPaymentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartPaymentService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
144
- /** @nocollapse */ DaffInMemoryCartPaymentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartPaymentService, providedIn: 'root' });
145
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartPaymentService, decorators: [{
143
+ /** @nocollapse */ DaffInMemoryCartPaymentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartPaymentService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
144
+ /** @nocollapse */ DaffInMemoryCartPaymentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartPaymentService, providedIn: 'root' });
145
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartPaymentService, decorators: [{
146
146
  type: Injectable,
147
147
  args: [{
148
148
  providedIn: 'root',
@@ -164,9 +164,9 @@ class DaffInMemoryCartPaymentMethodsService {
164
164
  return this.http.get(`${this.url}/${cartId}`);
165
165
  }
166
166
  }
167
- /** @nocollapse */ DaffInMemoryCartPaymentMethodsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartPaymentMethodsService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
168
- /** @nocollapse */ DaffInMemoryCartPaymentMethodsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartPaymentMethodsService, providedIn: 'root' });
169
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartPaymentMethodsService, decorators: [{
167
+ /** @nocollapse */ DaffInMemoryCartPaymentMethodsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartPaymentMethodsService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
168
+ /** @nocollapse */ DaffInMemoryCartPaymentMethodsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartPaymentMethodsService, providedIn: 'root' });
169
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartPaymentMethodsService, decorators: [{
170
170
  type: Injectable,
171
171
  args: [{
172
172
  providedIn: 'root',
@@ -191,9 +191,9 @@ class DaffInMemoryCartShippingAddressService {
191
191
  return this.http.put(`${this.url}/${cartId}`, address);
192
192
  }
193
193
  }
194
- /** @nocollapse */ DaffInMemoryCartShippingAddressService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartShippingAddressService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
195
- /** @nocollapse */ DaffInMemoryCartShippingAddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartShippingAddressService, providedIn: 'root' });
196
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartShippingAddressService, decorators: [{
194
+ /** @nocollapse */ DaffInMemoryCartShippingAddressService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartShippingAddressService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
195
+ /** @nocollapse */ DaffInMemoryCartShippingAddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartShippingAddressService, providedIn: 'root' });
196
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartShippingAddressService, decorators: [{
197
197
  type: Injectable,
198
198
  args: [{
199
199
  providedIn: 'root',
@@ -221,9 +221,9 @@ class DaffInMemoryCartShippingInformationService {
221
221
  return this.http.delete(`${this.url}/${cartId}`);
222
222
  }
223
223
  }
224
- /** @nocollapse */ DaffInMemoryCartShippingInformationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartShippingInformationService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
225
- /** @nocollapse */ DaffInMemoryCartShippingInformationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartShippingInformationService, providedIn: 'root' });
226
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartShippingInformationService, decorators: [{
224
+ /** @nocollapse */ DaffInMemoryCartShippingInformationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartShippingInformationService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
225
+ /** @nocollapse */ DaffInMemoryCartShippingInformationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartShippingInformationService, providedIn: 'root' });
226
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartShippingInformationService, decorators: [{
227
227
  type: Injectable,
228
228
  args: [{
229
229
  providedIn: 'root',
@@ -245,9 +245,9 @@ class DaffInMemoryCartShippingMethodsService {
245
245
  return this.http.get(`${this.url}/${cartId}`);
246
246
  }
247
247
  }
248
- /** @nocollapse */ DaffInMemoryCartShippingMethodsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartShippingMethodsService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
249
- /** @nocollapse */ DaffInMemoryCartShippingMethodsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartShippingMethodsService, providedIn: 'root' });
250
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartShippingMethodsService, decorators: [{
248
+ /** @nocollapse */ DaffInMemoryCartShippingMethodsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartShippingMethodsService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
249
+ /** @nocollapse */ DaffInMemoryCartShippingMethodsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartShippingMethodsService, providedIn: 'root' });
250
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartShippingMethodsService, decorators: [{
251
251
  type: Injectable,
252
252
  args: [{
253
253
  providedIn: 'root',
@@ -269,9 +269,9 @@ class DaffInMemoryCartOrderService {
269
269
  return this.http.post(`${this.url}/${cartId}/`, { payment });
270
270
  }
271
271
  }
272
- /** @nocollapse */ DaffInMemoryCartOrderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartOrderService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
273
- /** @nocollapse */ DaffInMemoryCartOrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartOrderService, providedIn: 'root' });
274
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartOrderService, decorators: [{
272
+ /** @nocollapse */ DaffInMemoryCartOrderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartOrderService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
273
+ /** @nocollapse */ DaffInMemoryCartOrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartOrderService, providedIn: 'root' });
274
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartOrderService, decorators: [{
275
275
  type: Injectable,
276
276
  args: [{
277
277
  providedIn: 'root',
@@ -302,9 +302,9 @@ class DaffInMemoryCartCouponService {
302
302
  return this.http.delete(`${this.url}/${cartId}/`);
303
303
  }
304
304
  }
305
- /** @nocollapse */ DaffInMemoryCartCouponService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartCouponService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
306
- /** @nocollapse */ DaffInMemoryCartCouponService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartCouponService, providedIn: 'root' });
307
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartCouponService, decorators: [{
305
+ /** @nocollapse */ DaffInMemoryCartCouponService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartCouponService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
306
+ /** @nocollapse */ DaffInMemoryCartCouponService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartCouponService, providedIn: 'root' });
307
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartCouponService, decorators: [{
308
308
  type: Injectable,
309
309
  args: [{
310
310
  providedIn: 'root',
@@ -326,9 +326,9 @@ class DaffInMemoryCartAddressService {
326
326
  return this.http.put(`${this.url}/${cartId}`, address);
327
327
  }
328
328
  }
329
- /** @nocollapse */ DaffInMemoryCartAddressService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartAddressService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
330
- /** @nocollapse */ DaffInMemoryCartAddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartAddressService, providedIn: 'root' });
331
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryCartAddressService, decorators: [{
329
+ /** @nocollapse */ DaffInMemoryCartAddressService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartAddressService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
330
+ /** @nocollapse */ DaffInMemoryCartAddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartAddressService, providedIn: 'root' });
331
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryCartAddressService, decorators: [{
332
332
  type: Injectable,
333
333
  args: [{
334
334
  providedIn: 'root',
@@ -388,12 +388,10 @@ class DaffCartInMemoryDriverModule {
388
388
  };
389
389
  }
390
390
  }
391
- /** @nocollapse */ DaffCartInMemoryDriverModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffCartInMemoryDriverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
392
- /** @nocollapse */ DaffCartInMemoryDriverModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffCartInMemoryDriverModule, imports: [CommonModule] });
393
- /** @nocollapse */ DaffCartInMemoryDriverModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffCartInMemoryDriverModule, imports: [[
394
- CommonModule,
395
- ]] });
396
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffCartInMemoryDriverModule, decorators: [{
391
+ /** @nocollapse */ DaffCartInMemoryDriverModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCartInMemoryDriverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
392
+ /** @nocollapse */ DaffCartInMemoryDriverModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: DaffCartInMemoryDriverModule, imports: [CommonModule] });
393
+ /** @nocollapse */ DaffCartInMemoryDriverModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCartInMemoryDriverModule, imports: [CommonModule] });
394
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCartInMemoryDriverModule, decorators: [{
397
395
  type: NgModule,
398
396
  args: [{
399
397
  imports: [
@@ -424,6 +422,118 @@ const DAFF_CART_IN_MEMORY_EXTRA_ATTRIBUTES_HOOK = new InjectionToken('DAFF_CART_
424
422
  factory: () => (reqInfo, cart) => ({}),
425
423
  });
426
424
 
425
+ /**
426
+ * @inheritdoc
427
+ */
428
+ class DaffInMemoryBackendCartService {
429
+ constructor(cartFactory, extraFieldsHook) {
430
+ this.cartFactory = cartFactory;
431
+ this.extraFieldsHook = extraFieldsHook;
432
+ }
433
+ get(reqInfo) {
434
+ return reqInfo.utils.createResponse$(() => this.getCart(reqInfo));
435
+ }
436
+ post(reqInfo) {
437
+ return reqInfo.utils.createResponse$(() => {
438
+ let ret;
439
+ const action = this.getAction(reqInfo);
440
+ if (reqInfo.id === 'addToCart') {
441
+ // deprecated
442
+ ret = {
443
+ body: {},
444
+ status: STATUS.OK,
445
+ };
446
+ }
447
+ else if (action === 'clear') {
448
+ ret = this.clear(reqInfo);
449
+ }
450
+ else if (action === 'merge') {
451
+ ret = this.merge(reqInfo);
452
+ }
453
+ else {
454
+ ret = this.create(reqInfo);
455
+ }
456
+ return ret;
457
+ });
458
+ }
459
+ /**
460
+ * Gets whatever follows the cart ID section of the request URL.
461
+ */
462
+ getAction(reqInfo) {
463
+ return reqInfo.url.replace(`/${reqInfo.resourceUrl}${reqInfo.id}/`, '');
464
+ }
465
+ clear(reqInfo) {
466
+ const cart = this.getCart(reqInfo).body;
467
+ cart.items = [];
468
+ return {
469
+ body: {
470
+ ...cart,
471
+ extra_attributes: this.extraFieldsHook(reqInfo, cart),
472
+ },
473
+ status: STATUS.OK,
474
+ };
475
+ }
476
+ create(reqInfo) {
477
+ const cart = this.cartFactory.create();
478
+ reqInfo.collection.push(cart);
479
+ return {
480
+ body: {
481
+ id: cart.id,
482
+ },
483
+ status: STATUS.OK,
484
+ };
485
+ }
486
+ merge(reqInfo) {
487
+ const { source, destination, } = reqInfo.utils.getJsonBody(reqInfo.req);
488
+ const sourceCart = reqInfo.utils.findById(reqInfo.collection, source);
489
+ if (!sourceCart) {
490
+ return {
491
+ status: STATUS.NOT_FOUND,
492
+ };
493
+ }
494
+ const destinationCart = reqInfo.utils.findById(reqInfo.collection, destination ? destination : this.create(reqInfo).body.id);
495
+ if (!destinationCart) {
496
+ return {
497
+ status: STATUS.NOT_FOUND,
498
+ };
499
+ }
500
+ destinationCart.items.push(...sourceCart.items);
501
+ reqInfo.collection.push(destinationCart);
502
+ return {
503
+ body: {
504
+ ...destinationCart,
505
+ extra_attributes: this.extraFieldsHook(reqInfo, destinationCart),
506
+ },
507
+ status: STATUS.OK,
508
+ };
509
+ }
510
+ getCart(reqInfo) {
511
+ const cart = reqInfo.utils.findById(reqInfo.collection, reqInfo.id);
512
+ return cart
513
+ ? {
514
+ body: {
515
+ ...cart,
516
+ extra_attributes: this.extraFieldsHook(reqInfo, cart),
517
+ },
518
+ status: STATUS.OK,
519
+ }
520
+ : {
521
+ status: STATUS.NOT_FOUND,
522
+ };
523
+ }
524
+ }
525
+ /** @nocollapse */ DaffInMemoryBackendCartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartService, deps: [{ token: i1$1.DaffCartFactory }, { token: DAFF_CART_IN_MEMORY_EXTRA_ATTRIBUTES_HOOK }], target: i0.ɵɵFactoryTarget.Injectable });
526
+ /** @nocollapse */ DaffInMemoryBackendCartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartService, providedIn: 'root' });
527
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartService, decorators: [{
528
+ type: Injectable,
529
+ args: [{
530
+ providedIn: 'root',
531
+ }]
532
+ }], ctorParameters: function () { return [{ type: i1$1.DaffCartFactory }, { type: undefined, decorators: [{
533
+ type: Inject,
534
+ args: [DAFF_CART_IN_MEMORY_EXTRA_ATTRIBUTES_HOOK]
535
+ }] }]; } });
536
+
427
537
  /**
428
538
  * @inheritdoc
429
539
  */
@@ -451,9 +561,9 @@ class DaffInMemoryBackendCartAddressService {
451
561
  };
452
562
  }
453
563
  }
454
- /** @nocollapse */ DaffInMemoryBackendCartAddressService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartAddressService, deps: [{ token: DAFF_CART_IN_MEMORY_EXTRA_ATTRIBUTES_HOOK }], target: i0.ɵɵFactoryTarget.Injectable });
455
- /** @nocollapse */ DaffInMemoryBackendCartAddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartAddressService, providedIn: 'root' });
456
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartAddressService, decorators: [{
564
+ /** @nocollapse */ DaffInMemoryBackendCartAddressService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartAddressService, deps: [{ token: DAFF_CART_IN_MEMORY_EXTRA_ATTRIBUTES_HOOK }], target: i0.ɵɵFactoryTarget.Injectable });
565
+ /** @nocollapse */ DaffInMemoryBackendCartAddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartAddressService, providedIn: 'root' });
566
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartAddressService, decorators: [{
457
567
  type: Injectable,
458
568
  args: [{
459
569
  providedIn: 'root',
@@ -498,9 +608,9 @@ class DaffInMemoryBackendCartBillingAddressService {
498
608
  };
499
609
  }
500
610
  }
501
- /** @nocollapse */ DaffInMemoryBackendCartBillingAddressService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartBillingAddressService, deps: [{ token: DAFF_CART_IN_MEMORY_EXTRA_ATTRIBUTES_HOOK }], target: i0.ɵɵFactoryTarget.Injectable });
502
- /** @nocollapse */ DaffInMemoryBackendCartBillingAddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartBillingAddressService, providedIn: 'root' });
503
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartBillingAddressService, decorators: [{
611
+ /** @nocollapse */ DaffInMemoryBackendCartBillingAddressService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartBillingAddressService, deps: [{ token: DAFF_CART_IN_MEMORY_EXTRA_ATTRIBUTES_HOOK }], target: i0.ɵɵFactoryTarget.Injectable });
612
+ /** @nocollapse */ DaffInMemoryBackendCartBillingAddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartBillingAddressService, providedIn: 'root' });
613
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartBillingAddressService, decorators: [{
504
614
  type: Injectable,
505
615
  args: [{
506
616
  providedIn: 'root',
@@ -583,9 +693,9 @@ class DaffInMemoryBackendCartCouponService {
583
693
  };
584
694
  }
585
695
  }
586
- /** @nocollapse */ DaffInMemoryBackendCartCouponService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartCouponService, deps: [{ token: DAFF_CART_IN_MEMORY_EXTRA_ATTRIBUTES_HOOK }], target: i0.ɵɵFactoryTarget.Injectable });
587
- /** @nocollapse */ DaffInMemoryBackendCartCouponService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartCouponService, providedIn: 'root' });
588
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartCouponService, decorators: [{
696
+ /** @nocollapse */ DaffInMemoryBackendCartCouponService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartCouponService, deps: [{ token: DAFF_CART_IN_MEMORY_EXTRA_ATTRIBUTES_HOOK }], target: i0.ɵɵFactoryTarget.Injectable });
697
+ /** @nocollapse */ DaffInMemoryBackendCartCouponService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartCouponService, providedIn: 'root' });
698
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartCouponService, decorators: [{
589
699
  type: Injectable,
590
700
  args: [{
591
701
  providedIn: 'root',
@@ -715,9 +825,9 @@ class DaffInMemoryBackendCartItemsService {
715
825
  return reqInfo.collection[cartIndex];
716
826
  }
717
827
  }
718
- /** @nocollapse */ DaffInMemoryBackendCartItemsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartItemsService, deps: [{ token: i1$1.DaffCartItemFactory }, { token: DAFF_CART_IN_MEMORY_EXTRA_ATTRIBUTES_HOOK }], target: i0.ɵɵFactoryTarget.Injectable });
719
- /** @nocollapse */ DaffInMemoryBackendCartItemsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartItemsService, providedIn: 'root' });
720
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartItemsService, decorators: [{
828
+ /** @nocollapse */ DaffInMemoryBackendCartItemsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartItemsService, deps: [{ token: i1$1.DaffCartItemFactory }, { token: DAFF_CART_IN_MEMORY_EXTRA_ATTRIBUTES_HOOK }], target: i0.ɵɵFactoryTarget.Injectable });
829
+ /** @nocollapse */ DaffInMemoryBackendCartItemsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartItemsService, providedIn: 'root' });
830
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartItemsService, decorators: [{
721
831
  type: Injectable,
722
832
  args: [{
723
833
  providedIn: 'root',
@@ -745,35 +855,9 @@ class DaffInMemoryBackendCartOrderService {
745
855
  };
746
856
  }
747
857
  }
748
- /** @nocollapse */ DaffInMemoryBackendCartOrderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartOrderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
749
- /** @nocollapse */ DaffInMemoryBackendCartOrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartOrderService, providedIn: 'root' });
750
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartOrderService, decorators: [{
751
- type: Injectable,
752
- args: [{
753
- providedIn: 'root',
754
- }]
755
- }] });
756
-
757
- /**
758
- * @inheritdoc
759
- */
760
- class DaffInMemoryBackendCartPaymentMethodsService {
761
- get(reqInfo) {
762
- return reqInfo.utils.createResponse$(() => ({
763
- body: this.listPaymentMethods(reqInfo),
764
- status: STATUS.OK,
765
- }));
766
- }
767
- getCart(reqInfo) {
768
- return reqInfo.utils.findById(reqInfo.collection, reqInfo.id);
769
- }
770
- listPaymentMethods(reqInfo) {
771
- return this.getCart(reqInfo).available_payment_methods;
772
- }
773
- }
774
- /** @nocollapse */ DaffInMemoryBackendCartPaymentMethodsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartPaymentMethodsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
775
- /** @nocollapse */ DaffInMemoryBackendCartPaymentMethodsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartPaymentMethodsService, providedIn: 'root' });
776
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartPaymentMethodsService, decorators: [{
858
+ /** @nocollapse */ DaffInMemoryBackendCartOrderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartOrderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
859
+ /** @nocollapse */ DaffInMemoryBackendCartOrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartOrderService, providedIn: 'root' });
860
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartOrderService, decorators: [{
777
861
  type: Injectable,
778
862
  args: [{
779
863
  providedIn: 'root',
@@ -832,9 +916,9 @@ class DaffInMemoryBackendCartPaymentService {
832
916
  };
833
917
  }
834
918
  }
835
- /** @nocollapse */ DaffInMemoryBackendCartPaymentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartPaymentService, deps: [{ token: DAFF_CART_IN_MEMORY_EXTRA_ATTRIBUTES_HOOK }], target: i0.ɵɵFactoryTarget.Injectable });
836
- /** @nocollapse */ DaffInMemoryBackendCartPaymentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartPaymentService, providedIn: 'root' });
837
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartPaymentService, decorators: [{
919
+ /** @nocollapse */ DaffInMemoryBackendCartPaymentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartPaymentService, deps: [{ token: DAFF_CART_IN_MEMORY_EXTRA_ATTRIBUTES_HOOK }], target: i0.ɵɵFactoryTarget.Injectable });
920
+ /** @nocollapse */ DaffInMemoryBackendCartPaymentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartPaymentService, providedIn: 'root' });
921
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartPaymentService, decorators: [{
838
922
  type: Injectable,
839
923
  args: [{
840
924
  providedIn: 'root',
@@ -844,6 +928,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImpor
844
928
  args: [DAFF_CART_IN_MEMORY_EXTRA_ATTRIBUTES_HOOK]
845
929
  }] }]; } });
846
930
 
931
+ /**
932
+ * @inheritdoc
933
+ */
934
+ class DaffInMemoryBackendCartPaymentMethodsService {
935
+ get(reqInfo) {
936
+ return reqInfo.utils.createResponse$(() => ({
937
+ body: this.listPaymentMethods(reqInfo),
938
+ status: STATUS.OK,
939
+ }));
940
+ }
941
+ getCart(reqInfo) {
942
+ return reqInfo.utils.findById(reqInfo.collection, reqInfo.id);
943
+ }
944
+ listPaymentMethods(reqInfo) {
945
+ return this.getCart(reqInfo).available_payment_methods;
946
+ }
947
+ }
948
+ /** @nocollapse */ DaffInMemoryBackendCartPaymentMethodsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartPaymentMethodsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
949
+ /** @nocollapse */ DaffInMemoryBackendCartPaymentMethodsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartPaymentMethodsService, providedIn: 'root' });
950
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartPaymentMethodsService, decorators: [{
951
+ type: Injectable,
952
+ args: [{
953
+ providedIn: 'root',
954
+ }]
955
+ }] });
956
+
847
957
  /**
848
958
  * @inheritdoc
849
959
  */
@@ -879,9 +989,9 @@ class DaffInMemoryBackendCartShippingAddressService {
879
989
  };
880
990
  }
881
991
  }
882
- /** @nocollapse */ DaffInMemoryBackendCartShippingAddressService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartShippingAddressService, deps: [{ token: DAFF_CART_IN_MEMORY_EXTRA_ATTRIBUTES_HOOK }], target: i0.ɵɵFactoryTarget.Injectable });
883
- /** @nocollapse */ DaffInMemoryBackendCartShippingAddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartShippingAddressService, providedIn: 'root' });
884
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartShippingAddressService, decorators: [{
992
+ /** @nocollapse */ DaffInMemoryBackendCartShippingAddressService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartShippingAddressService, deps: [{ token: DAFF_CART_IN_MEMORY_EXTRA_ATTRIBUTES_HOOK }], target: i0.ɵɵFactoryTarget.Injectable });
993
+ /** @nocollapse */ DaffInMemoryBackendCartShippingAddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartShippingAddressService, providedIn: 'root' });
994
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartShippingAddressService, decorators: [{
885
995
  type: Injectable,
886
996
  args: [{
887
997
  providedIn: 'root',
@@ -940,9 +1050,9 @@ class DaffInMemoryBackendCartShippingInformationService {
940
1050
  };
941
1051
  }
942
1052
  }
943
- /** @nocollapse */ DaffInMemoryBackendCartShippingInformationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartShippingInformationService, deps: [{ token: DAFF_CART_IN_MEMORY_EXTRA_ATTRIBUTES_HOOK }], target: i0.ɵɵFactoryTarget.Injectable });
944
- /** @nocollapse */ DaffInMemoryBackendCartShippingInformationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartShippingInformationService, providedIn: 'root' });
945
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartShippingInformationService, decorators: [{
1053
+ /** @nocollapse */ DaffInMemoryBackendCartShippingInformationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartShippingInformationService, deps: [{ token: DAFF_CART_IN_MEMORY_EXTRA_ATTRIBUTES_HOOK }], target: i0.ɵɵFactoryTarget.Injectable });
1054
+ /** @nocollapse */ DaffInMemoryBackendCartShippingInformationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartShippingInformationService, providedIn: 'root' });
1055
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartShippingInformationService, decorators: [{
946
1056
  type: Injectable,
947
1057
  args: [{
948
1058
  providedIn: 'root',
@@ -981,127 +1091,15 @@ class DaffInMemoryBackendCartShippingMethodsService {
981
1091
  return cart.available_shipping_methods;
982
1092
  }
983
1093
  }
984
- /** @nocollapse */ DaffInMemoryBackendCartShippingMethodsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartShippingMethodsService, deps: [{ token: i1$1.DaffCartShippingRateFactory }], target: i0.ɵɵFactoryTarget.Injectable });
985
- /** @nocollapse */ DaffInMemoryBackendCartShippingMethodsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartShippingMethodsService, providedIn: 'root' });
986
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartShippingMethodsService, decorators: [{
1094
+ /** @nocollapse */ DaffInMemoryBackendCartShippingMethodsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartShippingMethodsService, deps: [{ token: i1$1.DaffCartShippingRateFactory }], target: i0.ɵɵFactoryTarget.Injectable });
1095
+ /** @nocollapse */ DaffInMemoryBackendCartShippingMethodsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartShippingMethodsService, providedIn: 'root' });
1096
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartShippingMethodsService, decorators: [{
987
1097
  type: Injectable,
988
1098
  args: [{
989
1099
  providedIn: 'root',
990
1100
  }]
991
1101
  }], ctorParameters: function () { return [{ type: i1$1.DaffCartShippingRateFactory }]; } });
992
1102
 
993
- /**
994
- * @inheritdoc
995
- */
996
- class DaffInMemoryBackendCartService {
997
- constructor(cartFactory, extraFieldsHook) {
998
- this.cartFactory = cartFactory;
999
- this.extraFieldsHook = extraFieldsHook;
1000
- }
1001
- get(reqInfo) {
1002
- return reqInfo.utils.createResponse$(() => this.getCart(reqInfo));
1003
- }
1004
- post(reqInfo) {
1005
- return reqInfo.utils.createResponse$(() => {
1006
- let ret;
1007
- const action = this.getAction(reqInfo);
1008
- if (reqInfo.id === 'addToCart') {
1009
- // deprecated
1010
- ret = {
1011
- body: {},
1012
- status: STATUS.OK,
1013
- };
1014
- }
1015
- else if (action === 'clear') {
1016
- ret = this.clear(reqInfo);
1017
- }
1018
- else if (action === 'merge') {
1019
- ret = this.merge(reqInfo);
1020
- }
1021
- else {
1022
- ret = this.create(reqInfo);
1023
- }
1024
- return ret;
1025
- });
1026
- }
1027
- /**
1028
- * Gets whatever follows the cart ID section of the request URL.
1029
- */
1030
- getAction(reqInfo) {
1031
- return reqInfo.url.replace(`/${reqInfo.resourceUrl}${reqInfo.id}/`, '');
1032
- }
1033
- clear(reqInfo) {
1034
- const cart = this.getCart(reqInfo).body;
1035
- cart.items = [];
1036
- return {
1037
- body: {
1038
- ...cart,
1039
- extra_attributes: this.extraFieldsHook(reqInfo, cart),
1040
- },
1041
- status: STATUS.OK,
1042
- };
1043
- }
1044
- create(reqInfo) {
1045
- const cart = this.cartFactory.create();
1046
- reqInfo.collection.push(cart);
1047
- return {
1048
- body: {
1049
- id: cart.id,
1050
- },
1051
- status: STATUS.OK,
1052
- };
1053
- }
1054
- merge(reqInfo) {
1055
- const { source, destination, } = reqInfo.utils.getJsonBody(reqInfo.req);
1056
- const sourceCart = reqInfo.utils.findById(reqInfo.collection, source);
1057
- if (!sourceCart) {
1058
- return {
1059
- status: STATUS.NOT_FOUND,
1060
- };
1061
- }
1062
- const destinationCart = reqInfo.utils.findById(reqInfo.collection, destination ? destination : this.create(reqInfo).body.id);
1063
- if (!destinationCart) {
1064
- return {
1065
- status: STATUS.NOT_FOUND,
1066
- };
1067
- }
1068
- destinationCart.items.push(...sourceCart.items);
1069
- reqInfo.collection.push(destinationCart);
1070
- return {
1071
- body: {
1072
- ...destinationCart,
1073
- extra_attributes: this.extraFieldsHook(reqInfo, destinationCart),
1074
- },
1075
- status: STATUS.OK,
1076
- };
1077
- }
1078
- getCart(reqInfo) {
1079
- const cart = reqInfo.utils.findById(reqInfo.collection, reqInfo.id);
1080
- return cart
1081
- ? {
1082
- body: {
1083
- ...cart,
1084
- extra_attributes: this.extraFieldsHook(reqInfo, cart),
1085
- },
1086
- status: STATUS.OK,
1087
- }
1088
- : {
1089
- status: STATUS.NOT_FOUND,
1090
- };
1091
- }
1092
- }
1093
- /** @nocollapse */ DaffInMemoryBackendCartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartService, deps: [{ token: i1$1.DaffCartFactory }, { token: DAFF_CART_IN_MEMORY_EXTRA_ATTRIBUTES_HOOK }], target: i0.ɵɵFactoryTarget.Injectable });
1094
- /** @nocollapse */ DaffInMemoryBackendCartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartService, providedIn: 'root' });
1095
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartService, decorators: [{
1096
- type: Injectable,
1097
- args: [{
1098
- providedIn: 'root',
1099
- }]
1100
- }], ctorParameters: function () { return [{ type: i1$1.DaffCartFactory }, { type: undefined, decorators: [{
1101
- type: Inject,
1102
- args: [DAFF_CART_IN_MEMORY_EXTRA_ATTRIBUTES_HOOK]
1103
- }] }]; } });
1104
-
1105
1103
  /**
1106
1104
  * The root cart in-memory backend.
1107
1105
  * Creates the database and delegates requests to child backends.
@@ -1197,9 +1195,9 @@ DaffInMemoryBackendCartRootService.COLLECTION_NAMES = [
1197
1195
  'cart-payment',
1198
1196
  'cart-shipping-information',
1199
1197
  ];
1200
- /** @nocollapse */ DaffInMemoryBackendCartRootService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartRootService, deps: [{ token: DaffInMemoryBackendCartService }, { token: DaffInMemoryBackendCartItemsService }, { token: DaffInMemoryBackendCartOrderService }, { token: DaffInMemoryBackendCartCouponService }, { token: DaffInMemoryBackendCartAddressService }, { token: DaffInMemoryBackendCartShippingAddressService }, { token: DaffInMemoryBackendCartBillingAddressService }, { token: DaffInMemoryBackendCartPaymentMethodsService }, { token: DaffInMemoryBackendCartShippingMethodsService }, { token: DaffInMemoryBackendCartPaymentService }, { token: DaffInMemoryBackendCartShippingInformationService }], target: i0.ɵɵFactoryTarget.Injectable });
1201
- /** @nocollapse */ DaffInMemoryBackendCartRootService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartRootService, providedIn: 'root' });
1202
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendCartRootService, decorators: [{
1198
+ /** @nocollapse */ DaffInMemoryBackendCartRootService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartRootService, deps: [{ token: DaffInMemoryBackendCartService }, { token: DaffInMemoryBackendCartItemsService }, { token: DaffInMemoryBackendCartOrderService }, { token: DaffInMemoryBackendCartCouponService }, { token: DaffInMemoryBackendCartAddressService }, { token: DaffInMemoryBackendCartShippingAddressService }, { token: DaffInMemoryBackendCartBillingAddressService }, { token: DaffInMemoryBackendCartPaymentMethodsService }, { token: DaffInMemoryBackendCartShippingMethodsService }, { token: DaffInMemoryBackendCartPaymentService }, { token: DaffInMemoryBackendCartShippingInformationService }], target: i0.ɵɵFactoryTarget.Injectable });
1199
+ /** @nocollapse */ DaffInMemoryBackendCartRootService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartRootService, providedIn: 'root' });
1200
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartRootService, decorators: [{
1203
1201
  type: Injectable,
1204
1202
  args: [{
1205
1203
  providedIn: 'root',