@daffodil/cart 0.38.9 → 0.39.3

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 (430) hide show
  1. package/bundles/daffodil-cart-driver-in-memory.umd.js +111 -1202
  2. package/bundles/daffodil-cart-driver-in-memory.umd.js.map +1 -1
  3. package/bundles/daffodil-cart-driver-in-memory.umd.min.js +1 -1
  4. package/bundles/daffodil-cart-driver-in-memory.umd.min.js.map +1 -1
  5. package/bundles/daffodil-cart-driver-magento-testing.umd.js +12 -177
  6. package/bundles/daffodil-cart-driver-magento-testing.umd.js.map +1 -1
  7. package/bundles/daffodil-cart-driver-magento-testing.umd.min.js +1 -1
  8. package/bundles/daffodil-cart-driver-magento-testing.umd.min.js.map +1 -1
  9. package/bundles/daffodil-cart-driver-magento.umd.js +164 -1661
  10. package/bundles/daffodil-cart-driver-magento.umd.js.map +1 -1
  11. package/bundles/daffodil-cart-driver-magento.umd.min.js +1 -1
  12. package/bundles/daffodil-cart-driver-magento.umd.min.js.map +1 -1
  13. package/bundles/daffodil-cart-driver-testing.umd.js +23 -375
  14. package/bundles/daffodil-cart-driver-testing.umd.js.map +1 -1
  15. package/bundles/daffodil-cart-driver-testing.umd.min.js +1 -1
  16. package/bundles/daffodil-cart-driver-testing.umd.min.js.map +1 -1
  17. package/bundles/daffodil-cart-driver.umd.js +29 -466
  18. package/bundles/daffodil-cart-driver.umd.js.map +1 -1
  19. package/bundles/daffodil-cart-driver.umd.min.js +16 -1
  20. package/bundles/daffodil-cart-driver.umd.min.js.map +1 -1
  21. package/bundles/daffodil-cart-routing.umd.js +43 -518
  22. package/bundles/daffodil-cart-routing.umd.js.map +1 -1
  23. package/bundles/daffodil-cart-routing.umd.min.js +1 -1
  24. package/bundles/daffodil-cart-routing.umd.min.js.map +1 -1
  25. package/bundles/daffodil-cart-state-testing.umd.js +6 -241
  26. package/bundles/daffodil-cart-state-testing.umd.js.map +1 -1
  27. package/bundles/daffodil-cart-state-testing.umd.min.js +2 -2
  28. package/bundles/daffodil-cart-state-testing.umd.min.js.map +1 -1
  29. package/bundles/daffodil-cart-state.umd.js +656 -4198
  30. package/bundles/daffodil-cart-state.umd.js.map +1 -1
  31. package/bundles/daffodil-cart-state.umd.min.js +1 -1
  32. package/bundles/daffodil-cart-state.umd.min.js.map +1 -1
  33. package/bundles/daffodil-cart-testing.umd.js +13 -187
  34. package/bundles/daffodil-cart-testing.umd.js.map +1 -1
  35. package/bundles/daffodil-cart-testing.umd.min.js +1 -1
  36. package/bundles/daffodil-cart-testing.umd.min.js.map +1 -1
  37. package/bundles/daffodil-cart.umd.js +43 -271
  38. package/bundles/daffodil-cart.umd.js.map +1 -1
  39. package/bundles/daffodil-cart.umd.min.js +3 -2
  40. package/bundles/daffodil-cart.umd.min.js.map +1 -1
  41. package/driver/in-memory/package.json +1 -1
  42. package/driver/magento/package.json +1 -1
  43. package/driver/magento/testing/package.json +1 -1
  44. package/driver/package.json +1 -1
  45. package/driver/testing/package.json +1 -1
  46. package/esm2015/daffodil-cart.js +2 -7
  47. package/esm2015/driver/daffodil-cart-driver.js +2 -7
  48. package/esm2015/driver/errors/cart-not-found.js +1 -13
  49. package/esm2015/driver/errors/codes.enum.js +12 -18
  50. package/esm2015/driver/errors/expired-payment-token.js +1 -15
  51. package/esm2015/driver/errors/invalid-api-response.js +1 -15
  52. package/esm2015/driver/errors/invalid-country.js +1 -13
  53. package/esm2015/driver/errors/invalid-coupon-code.js +1 -16
  54. package/esm2015/driver/errors/invalid-region.js +1 -13
  55. package/esm2015/driver/errors/map.js +1 -7
  56. package/esm2015/driver/errors/product-not-found.js +1 -13
  57. package/esm2015/driver/errors/product-out-of-stock.js +1 -13
  58. package/esm2015/driver/errors/public_api.js +1 -6
  59. package/esm2015/driver/in-memory/backend/cart/cart.service.js +7 -65
  60. package/esm2015/driver/in-memory/backend/cart-address/cart-address.service.js +5 -39
  61. package/esm2015/driver/in-memory/backend/cart-billing-address/cart-billing-address.service.js +7 -53
  62. package/esm2015/driver/in-memory/backend/cart-coupon/cart-coupon.service.js +10 -85
  63. package/esm2015/driver/in-memory/backend/cart-items/cart-items.service.js +21 -169
  64. package/esm2015/driver/in-memory/backend/cart-order/cart-order.service.js +5 -22
  65. package/esm2015/driver/in-memory/backend/cart-payment/cart-payment.service.js +9 -67
  66. package/esm2015/driver/in-memory/backend/cart-payment-methods/cart-payment-methods.service.js +5 -27
  67. package/esm2015/driver/in-memory/backend/cart-root.service.js +4 -119
  68. package/esm2015/driver/in-memory/backend/cart-shipping-address/cart-shipping-address.service.js +7 -53
  69. package/esm2015/driver/in-memory/backend/cart-shipping-information/cart-shipping-information.service.js +9 -68
  70. package/esm2015/driver/in-memory/backend/cart-shipping-methods/cart-shipping-methods.service.js +5 -38
  71. package/esm2015/driver/in-memory/backend/public_api.js +1 -6
  72. package/esm2015/driver/in-memory/daffodil-cart-driver-in-memory.js +2 -7
  73. package/esm2015/driver/in-memory/drivers/cart/cart.service.js +4 -48
  74. package/esm2015/driver/in-memory/drivers/cart-address/cart-address.service.js +3 -28
  75. package/esm2015/driver/in-memory/drivers/cart-billing-address/cart-billing-address.service.js +3 -32
  76. package/esm2015/driver/in-memory/drivers/cart-coupon/cart-coupon.service.js +3 -41
  77. package/esm2015/driver/in-memory/drivers/cart-driver.module.js +1 -9
  78. package/esm2015/driver/in-memory/drivers/cart-item/cart-item.service.js +3 -48
  79. package/esm2015/driver/in-memory/drivers/cart-order/cart-order.service.js +3 -28
  80. package/esm2015/driver/in-memory/drivers/cart-payment/cart-payment.service.js +3 -42
  81. package/esm2015/driver/in-memory/drivers/cart-payment-methods/cart-payment-methods.service.js +3 -27
  82. package/esm2015/driver/in-memory/drivers/cart-shipping-address/cart-shipping-address.service.js +3 -32
  83. package/esm2015/driver/in-memory/drivers/cart-shipping-information/cart-shipping-information.service.js +3 -36
  84. package/esm2015/driver/in-memory/drivers/cart-shipping-methods/cart-shipping-methods.service.js +3 -27
  85. package/esm2015/driver/in-memory/drivers/public_api.js +1 -6
  86. package/esm2015/driver/in-memory/index.js +2 -7
  87. package/esm2015/driver/in-memory/injection-tokens/extra-attributes-hook.token.js +2 -16
  88. package/esm2015/driver/in-memory/injection-tokens/public_api.js +1 -6
  89. package/esm2015/driver/in-memory/public_api.js +4 -9
  90. package/esm2015/driver/index.js +2 -7
  91. package/esm2015/driver/interfaces/cart-address-service.interface.js +1 -22
  92. package/esm2015/driver/interfaces/cart-billing-address-service.interface.js +1 -28
  93. package/esm2015/driver/interfaces/cart-coupon-service.interface.js +1 -41
  94. package/esm2015/driver/interfaces/cart-item-service.interface.js +1 -50
  95. package/esm2015/driver/interfaces/cart-order-service.interface.js +1 -22
  96. package/esm2015/driver/interfaces/cart-payment-methods-service.interface.js +1 -21
  97. package/esm2015/driver/interfaces/cart-payment-service.interface.js +1 -42
  98. package/esm2015/driver/interfaces/cart-service.interface.js +1 -42
  99. package/esm2015/driver/interfaces/cart-shipping-address-service.interface.js +1 -28
  100. package/esm2015/driver/interfaces/cart-shipping-information-service.interface.js +1 -36
  101. package/esm2015/driver/interfaces/cart-shipping-methods-service.interface.js +1 -21
  102. package/esm2015/driver/interfaces/public_api.js +1 -6
  103. package/esm2015/driver/magento/cart-address.service.js +5 -71
  104. package/esm2015/driver/magento/cart-billing-address.service.js +7 -93
  105. package/esm2015/driver/magento/cart-coupon.service.js +6 -75
  106. package/esm2015/driver/magento/cart-driver.module.js +1 -9
  107. package/esm2015/driver/magento/cart-item.service.js +10 -126
  108. package/esm2015/driver/magento/cart-order.service.js +5 -33
  109. package/esm2015/driver/magento/cart-payment-methods.service.js +4 -43
  110. package/esm2015/driver/magento/cart-payment.service.js +7 -115
  111. package/esm2015/driver/magento/cart-shipping-address.service.js +7 -93
  112. package/esm2015/driver/magento/cart-shipping-information.service.js +8 -87
  113. package/esm2015/driver/magento/cart-shipping-methods.service.js +4 -43
  114. package/esm2015/driver/magento/cart.service.js +6 -84
  115. package/esm2015/driver/magento/daffodil-cart-driver-magento.js +2 -7
  116. package/esm2015/driver/magento/errors/codes.js +6 -12
  117. package/esm2015/driver/magento/errors/map.js +1 -8
  118. package/esm2015/driver/magento/errors/transform.js +2 -19
  119. package/esm2015/driver/magento/index.js +2 -7
  120. package/esm2015/driver/magento/injection-tokens/cart-mutation-queue.token.js +2 -11
  121. package/esm2015/driver/magento/injection-tokens/fragments/cart.js +2 -11
  122. package/esm2015/driver/magento/injection-tokens/public_api.js +1 -6
  123. package/esm2015/driver/magento/models/public_api.js +3 -8
  124. package/esm2015/driver/magento/models/requests/billing-address.js +2 -20
  125. package/esm2015/driver/magento/models/requests/cart-address.js +2 -32
  126. package/esm2015/driver/magento/models/requests/cart-item-update.js +2 -16
  127. package/esm2015/driver/magento/models/requests/cart-item.js +2 -32
  128. package/esm2015/driver/magento/models/requests/payment-method.js +2 -16
  129. package/esm2015/driver/magento/models/requests/public_api.js +2 -7
  130. package/esm2015/driver/magento/models/requests/shipping-address.js +2 -18
  131. package/esm2015/driver/magento/models/requests/shipping-method.js +2 -16
  132. package/esm2015/driver/magento/models/responses/cart-address.js +2 -32
  133. package/esm2015/driver/magento/models/responses/cart-coupon.js +2 -14
  134. package/esm2015/driver/magento/models/responses/cart-item.js +7 -70
  135. package/esm2015/driver/magento/models/responses/cart-payment-method.js +2 -20
  136. package/esm2015/driver/magento/models/responses/cart-shipping-method.js +2 -22
  137. package/esm2015/driver/magento/models/responses/cart.js +2 -31
  138. package/esm2015/driver/magento/models/responses/public_api.js +2 -7
  139. package/esm2015/driver/magento/models/responses/shipping-address.js +2 -16
  140. package/esm2015/driver/magento/public_api.js +5 -10
  141. package/esm2015/driver/magento/queries/add-cart-item.js +3 -13
  142. package/esm2015/driver/magento/queries/apply-coupon.js +3 -13
  143. package/esm2015/driver/magento/queries/create-cart.js +1 -7
  144. package/esm2015/driver/magento/queries/fragments/available-payment-method.js +1 -7
  145. package/esm2015/driver/magento/queries/fragments/available-shipping-method.js +1 -7
  146. package/esm2015/driver/magento/queries/fragments/cart-address.js +1 -7
  147. package/esm2015/driver/magento/queries/fragments/cart-coupon.js +1 -7
  148. package/esm2015/driver/magento/queries/fragments/cart-item.js +1 -8
  149. package/esm2015/driver/magento/queries/fragments/cart-totals.js +1 -7
  150. package/esm2015/driver/magento/queries/fragments/cart.js +1 -7
  151. package/esm2015/driver/magento/queries/fragments/money.js +1 -7
  152. package/esm2015/driver/magento/queries/fragments/prices.js +1 -7
  153. package/esm2015/driver/magento/queries/fragments/public_api.js +1 -6
  154. package/esm2015/driver/magento/queries/fragments/selected-payment-method.js +1 -7
  155. package/esm2015/driver/magento/queries/fragments/selected-shipping-method.js +1 -7
  156. package/esm2015/driver/magento/queries/get-billing-address.js +3 -13
  157. package/esm2015/driver/magento/queries/get-cart.js +3 -13
  158. package/esm2015/driver/magento/queries/get-selected-payment-method.js +3 -13
  159. package/esm2015/driver/magento/queries/get-selected-shipping-method.js +3 -13
  160. package/esm2015/driver/magento/queries/get-shipping-address.js +3 -13
  161. package/esm2015/driver/magento/queries/list-cart-coupons.js +3 -13
  162. package/esm2015/driver/magento/queries/list-cart-items.js +3 -13
  163. package/esm2015/driver/magento/queries/list-payment-methods.js +3 -13
  164. package/esm2015/driver/magento/queries/list-shipping-methods.js +3 -13
  165. package/esm2015/driver/magento/queries/place-order.js +1 -7
  166. package/esm2015/driver/magento/queries/public_api.js +3 -8
  167. package/esm2015/driver/magento/queries/remove-all-coupons.js +3 -13
  168. package/esm2015/driver/magento/queries/remove-cart-item.js +3 -13
  169. package/esm2015/driver/magento/queries/responses/add-cart-item.js +2 -14
  170. package/esm2015/driver/magento/queries/responses/apply-coupon.js +2 -14
  171. package/esm2015/driver/magento/queries/responses/create-cart.js +2 -14
  172. package/esm2015/driver/magento/queries/responses/get-billing-address.js +2 -14
  173. package/esm2015/driver/magento/queries/responses/get-cart.js +2 -16
  174. package/esm2015/driver/magento/queries/responses/get-selected-payment-method.js +2 -14
  175. package/esm2015/driver/magento/queries/responses/get-selected-shipping-method.js +2 -14
  176. package/esm2015/driver/magento/queries/responses/get-shipping-address.js +2 -14
  177. package/esm2015/driver/magento/queries/responses/list-cart-coupons.js +2 -14
  178. package/esm2015/driver/magento/queries/responses/list-cart-items.js +2 -14
  179. package/esm2015/driver/magento/queries/responses/list-payment-methods.js +2 -14
  180. package/esm2015/driver/magento/queries/responses/list-shipping-methods.js +2 -14
  181. package/esm2015/driver/magento/queries/responses/place-order.js +2 -14
  182. package/esm2015/driver/magento/queries/responses/public_api.js +2 -7
  183. package/esm2015/driver/magento/queries/responses/remove-all-coupons.js +2 -14
  184. package/esm2015/driver/magento/queries/responses/remove-cart-item.js +2 -14
  185. package/esm2015/driver/magento/queries/responses/set-guest-email.js +2 -14
  186. package/esm2015/driver/magento/queries/responses/set-selected-payment-method-with-billing-and-email.js +2 -18
  187. package/esm2015/driver/magento/queries/responses/set-selected-payment-method-with-billing.js +2 -16
  188. package/esm2015/driver/magento/queries/responses/set-selected-payment-method.js +2 -14
  189. package/esm2015/driver/magento/queries/responses/set-selected-shipping-method.js +2 -14
  190. package/esm2015/driver/magento/queries/responses/update-address-with-email.js +2 -18
  191. package/esm2015/driver/magento/queries/responses/update-address.js +2 -16
  192. package/esm2015/driver/magento/queries/responses/update-billing-address-with-email.js +2 -16
  193. package/esm2015/driver/magento/queries/responses/update-billing-address.js +2 -14
  194. package/esm2015/driver/magento/queries/responses/update-cart-item.js +2 -14
  195. package/esm2015/driver/magento/queries/responses/update-shipping-address-with-email.js +2 -16
  196. package/esm2015/driver/magento/queries/responses/update-shipping-address.js +2 -14
  197. package/esm2015/driver/magento/queries/set-selected-payment-method-with-billing-and-email.js +3 -13
  198. package/esm2015/driver/magento/queries/set-selected-payment-method-with-billing.js +3 -13
  199. package/esm2015/driver/magento/queries/set-selected-payment-method.js +3 -13
  200. package/esm2015/driver/magento/queries/set-selected-shipping-method.js +3 -13
  201. package/esm2015/driver/magento/queries/update-address-with-email.js +3 -13
  202. package/esm2015/driver/magento/queries/update-address.js +3 -13
  203. package/esm2015/driver/magento/queries/update-billing-address-with-email.js +3 -13
  204. package/esm2015/driver/magento/queries/update-billing-address.js +3 -13
  205. package/esm2015/driver/magento/queries/update-cart-item.js +3 -13
  206. package/esm2015/driver/magento/queries/update-shipping-address-with-email.js +3 -13
  207. package/esm2015/driver/magento/queries/update-shipping-address.js +3 -13
  208. package/esm2015/driver/magento/testing/daffodil-cart-driver-magento-testing.js +2 -7
  209. package/esm2015/driver/magento/testing/factories/cart-address-input.factory.js +2 -29
  210. package/esm2015/driver/magento/testing/factories/cart-address.factory.js +2 -31
  211. package/esm2015/driver/magento/testing/factories/cart-coupon.factory.js +2 -11
  212. package/esm2015/driver/magento/testing/factories/cart-item/bundle-cart-item.factory.js +2 -13
  213. package/esm2015/driver/magento/testing/factories/cart-item/cart-item.factory.js +2 -32
  214. package/esm2015/driver/magento/testing/factories/cart-item/configurable-cart-item.factory.js +2 -13
  215. package/esm2015/driver/magento/testing/factories/cart-payment-method.factory.js +2 -15
  216. package/esm2015/driver/magento/testing/factories/cart-shipping-method.factory.js +2 -23
  217. package/esm2015/driver/magento/testing/factories/cart.factory.js +2 -33
  218. package/esm2015/driver/magento/testing/factories/public_api.js +1 -6
  219. package/esm2015/driver/magento/testing/factories/shipping-address.factory.js +2 -15
  220. package/esm2015/driver/magento/testing/index.js +2 -7
  221. package/esm2015/driver/magento/testing/public_api.js +2 -7
  222. package/esm2015/driver/magento/transforms/inputs/billing-address.service.js +2 -21
  223. package/esm2015/driver/magento/transforms/inputs/cart-address.service.js +2 -11
  224. package/esm2015/driver/magento/transforms/inputs/cart-item-input-transformers.js +2 -23
  225. package/esm2015/driver/magento/transforms/inputs/cart-item-update.service.js +2 -11
  226. package/esm2015/driver/magento/transforms/inputs/payment-method.service.js +2 -11
  227. package/esm2015/driver/magento/transforms/inputs/shipping-address.service.js +2 -21
  228. package/esm2015/driver/magento/transforms/inputs/shipping-method.service.js +2 -11
  229. package/esm2015/driver/magento/transforms/outputs/billing-address.service.js +3 -19
  230. package/esm2015/driver/magento/transforms/outputs/cart-address.service.js +3 -9
  231. package/esm2015/driver/magento/transforms/outputs/cart-coupon-response.service.js +3 -24
  232. package/esm2015/driver/magento/transforms/outputs/cart-coupon.js +1 -10
  233. package/esm2015/driver/magento/transforms/outputs/cart-item/bundle-cart-item-transformer.js +2 -12
  234. package/esm2015/driver/magento/transforms/outputs/cart-item/cart-item-transformer.js +4 -10
  235. package/esm2015/driver/magento/transforms/outputs/cart-item/configurable-cart-item-transformer.js +2 -12
  236. package/esm2015/driver/magento/transforms/outputs/cart-item/simple-cart-item-transformer.js +4 -14
  237. package/esm2015/driver/magento/transforms/outputs/cart-payment.service.js +3 -9
  238. package/esm2015/driver/magento/transforms/outputs/cart-shipping-information.service.js +6 -20
  239. package/esm2015/driver/magento/transforms/outputs/cart-shipping-rate.service.js +3 -9
  240. package/esm2015/driver/magento/transforms/outputs/cart-totals-transformer.js +4 -31
  241. package/esm2015/driver/magento/transforms/outputs/cart.service.js +5 -98
  242. package/esm2015/driver/magento/transforms/outputs/shipping-address.service.js +3 -19
  243. package/esm2015/driver/magento/transforms/public_api.js +1 -6
  244. package/esm2015/driver/public_api.js +3 -8
  245. package/esm2015/driver/testing/daffodil-cart-driver-testing.js +2 -7
  246. package/esm2015/driver/testing/drivers/cart/cart.service.js +3 -34
  247. package/esm2015/driver/testing/drivers/cart-address/cart-address.service.js +3 -29
  248. package/esm2015/driver/testing/drivers/cart-billing-address/cart-billing-address.service.js +3 -33
  249. package/esm2015/driver/testing/drivers/cart-coupon/cart-coupon.service.js +3 -42
  250. package/esm2015/driver/testing/drivers/cart-driver.module.js +1 -9
  251. package/esm2015/driver/testing/drivers/cart-item/cart-item.service.js +3 -49
  252. package/esm2015/driver/testing/drivers/cart-order/cart-order.service.js +3 -13
  253. package/esm2015/driver/testing/drivers/cart-payment/cart-payment.service.js +3 -43
  254. package/esm2015/driver/testing/drivers/cart-payment-methods/cart-payment-methods.service.js +3 -22
  255. package/esm2015/driver/testing/drivers/cart-shipping-address/cart-shipping-address.service.js +3 -33
  256. package/esm2015/driver/testing/drivers/cart-shipping-information/cart-shipping-information.service.js +3 -37
  257. package/esm2015/driver/testing/drivers/cart-shipping-methods/cart-shipping-methods.service.js +3 -22
  258. package/esm2015/driver/testing/drivers/public_api.js +1 -6
  259. package/esm2015/driver/testing/index.js +2 -7
  260. package/esm2015/driver/testing/public_api.js +2 -7
  261. package/esm2015/errors/codes.enum.js +10 -12
  262. package/esm2015/errors/map.js +1 -7
  263. package/esm2015/errors/public_api.js +2 -7
  264. package/esm2015/errors/resolution/cart-not-found-or-created-resolution.js +2 -14
  265. package/esm2015/errors/resolution/cart-resolution.js +2 -14
  266. package/esm2015/errors/resolution/cart-server-side-resolution.js +2 -14
  267. package/esm2015/errors/resolution/cart-storage-resolution.js +2 -14
  268. package/esm2015/errors/resolution/public_api.js +1 -6
  269. package/esm2015/index.js +2 -7
  270. package/esm2015/injection-tokens/error-matcher.token.js +2 -11
  271. package/esm2015/injection-tokens/payment-method-map.js +3 -12
  272. package/esm2015/injection-tokens/public_api.js +1 -6
  273. package/esm2015/models/cart-address.js +2 -23
  274. package/esm2015/models/cart-coupon.js +2 -31
  275. package/esm2015/models/cart-item-input.js +10 -93
  276. package/esm2015/models/cart-item.js +2 -88
  277. package/esm2015/models/cart-order-result.js +2 -29
  278. package/esm2015/models/cart-payment.js +2 -25
  279. package/esm2015/models/cart-shipping-info.js +2 -14
  280. package/esm2015/models/cart-shipping-rate.js +2 -43
  281. package/esm2015/models/cart-total.js +13 -41
  282. package/esm2015/models/cart.js +2 -76
  283. package/esm2015/models/composite-cart-item.js +2 -40
  284. package/esm2015/models/configurable-cart-item.js +2 -35
  285. package/esm2015/models/public_api.js +7 -12
  286. package/esm2015/public_api.js +4 -9
  287. package/esm2015/routing/cart-routing.module.js +2 -11
  288. package/esm2015/routing/config/config.js +4 -23
  289. package/esm2015/routing/config/resolution/config.js +1 -21
  290. package/esm2015/routing/daffodil-cart-routing.js +2 -7
  291. package/esm2015/routing/guards/billing-address/billing-address-guard-redirect.token.js +1 -7
  292. package/esm2015/routing/guards/billing-address/billing-address.guard.js +5 -39
  293. package/esm2015/routing/guards/cart-items/cart-items-guard-redirect.token.js +2 -8
  294. package/esm2015/routing/guards/cart-items/cart-items.guard.js +6 -44
  295. package/esm2015/routing/guards/order-result/order-result-guard-redirect.token.js +1 -7
  296. package/esm2015/routing/guards/order-result/order-result.guard.js +4 -38
  297. package/esm2015/routing/guards/payment-method/payment-method-guard-redirect.token.js +1 -7
  298. package/esm2015/routing/guards/payment-method/payment-method.guard.js +5 -39
  299. package/esm2015/routing/guards/public_api.js +1 -6
  300. package/esm2015/routing/guards/resolved-cart/resolved-cart.guard.js +7 -49
  301. package/esm2015/routing/guards/shipping-address/shipping-address-guard-redirect.token.js +1 -7
  302. package/esm2015/routing/guards/shipping-address/shipping-address.guard.js +5 -39
  303. package/esm2015/routing/guards/shipping-method/shipping-method-guard-redirect.token.js +1 -7
  304. package/esm2015/routing/guards/shipping-method/shipping-method.guard.js +5 -39
  305. package/esm2015/routing/index.js +2 -7
  306. package/esm2015/routing/public_api.js +3 -8
  307. package/esm2015/routing/resolvers/cart-resolver.service.js +5 -49
  308. package/esm2015/routing/resolvers/empty-cart-resolver.service.js +4 -42
  309. package/esm2015/routing/resolvers/public_api.js +1 -6
  310. package/esm2015/routing/resolvers/tokens/cart-resolver-redirect.token.js +1 -7
  311. package/esm2015/routing/resolvers/tokens/empty-cart-resolver-redirect.token.js +1 -7
  312. package/esm2015/state/actions/cart-address.actions.js +8 -40
  313. package/esm2015/state/actions/cart-billing-address.actions.js +11 -66
  314. package/esm2015/state/actions/cart-coupon.actions.js +17 -124
  315. package/esm2015/state/actions/cart-item.actions.js +22 -186
  316. package/esm2015/state/actions/cart-order.actions.js +8 -40
  317. package/esm2015/state/actions/cart-payment-methods.actions.js +8 -34
  318. package/esm2015/state/actions/cart-payment.actions.js +19 -133
  319. package/esm2015/state/actions/cart-shipping-address.actions.js +11 -66
  320. package/esm2015/state/actions/cart-shipping-information.actions.js +14 -100
  321. package/esm2015/state/actions/cart-shipping-methods.actions.js +8 -36
  322. package/esm2015/state/actions/cart.actions.js +22 -162
  323. package/esm2015/state/actions/public_api.js +12 -17
  324. package/esm2015/state/cart-state.module.js +1 -6
  325. package/esm2015/state/daffodil-cart-state.js +2 -7
  326. package/esm2015/state/effects/cart-address.effects.js +3 -60
  327. package/esm2015/state/effects/cart-billing-address.effects.js +3 -67
  328. package/esm2015/state/effects/cart-coupon.effects.js +9 -129
  329. package/esm2015/state/effects/cart-item.effects.js +6 -120
  330. package/esm2015/state/effects/cart-order.effects.js +3 -62
  331. package/esm2015/state/effects/cart-payment-methods.effects.js +2 -52
  332. package/esm2015/state/effects/cart-payment.effects.js +5 -93
  333. package/esm2015/state/effects/cart-resolver.effects.js +4 -80
  334. package/esm2015/state/effects/cart-shipping-address.effects.js +3 -67
  335. package/esm2015/state/effects/cart-shipping-information.effects.js +4 -82
  336. package/esm2015/state/effects/cart-shipping-methods.effects.js +2 -52
  337. package/esm2015/state/effects/cart.effects.js +9 -128
  338. package/esm2015/state/facades/cart/cart-facade.interface.js +2 -355
  339. package/esm2015/state/facades/cart/cart.facade.js +10 -275
  340. package/esm2015/state/index.js +2 -7
  341. package/esm2015/state/injection-tokens/cart-item-state-debounce-time.js +1 -7
  342. package/esm2015/state/injection-tokens/public_api.js +1 -6
  343. package/esm2015/state/models/public_api.js +4 -9
  344. package/esm2015/state/models/stateful-cart-item.js +9 -27
  345. package/esm2015/state/models/stateful-composite-cart-item.js +2 -10
  346. package/esm2015/state/models/stateful-configurable-cart-item.js +2 -10
  347. package/esm2015/state/public_api.js +6 -11
  348. package/esm2015/state/reducers/action-types.type.js +2 -6
  349. package/esm2015/state/reducers/cart/cart.reducer.js +1 -15
  350. package/esm2015/state/reducers/cart-billing-address/cart-billing-address.reducer.js +1 -15
  351. package/esm2015/state/reducers/cart-coupon/cart-coupon.reducer.js +1 -15
  352. package/esm2015/state/reducers/cart-initial-state.js +1 -7
  353. package/esm2015/state/reducers/cart-item/cart-item.reducer.js +3 -21
  354. package/esm2015/state/reducers/cart-item-entities/cart-item-entities-reducer-adapter.js +4 -22
  355. package/esm2015/state/reducers/cart-item-entities/cart-item-entities.reducer.js +12 -58
  356. package/esm2015/state/reducers/cart-operation-type.enum.js +16 -17
  357. package/esm2015/state/reducers/cart-order/cart-order-initial-state.js +1 -7
  358. package/esm2015/state/reducers/cart-order/cart-order-state.interface.js +2 -19
  359. package/esm2015/state/reducers/cart-order/cart-order.reducer.js +1 -12
  360. package/esm2015/state/reducers/cart-payment/cart-payment.reducer.js +1 -15
  361. package/esm2015/state/reducers/cart-payment-methods/cart-payment-methods.reducer.js +1 -15
  362. package/esm2015/state/reducers/cart-reducers-state.interface.js +1 -28
  363. package/esm2015/state/reducers/cart-reducers.js +1 -7
  364. package/esm2015/state/reducers/cart-resolve/cart-resolve-state.enum.js +9 -15
  365. package/esm2015/state/reducers/cart-resolve/cart-resolve.reducer.js +1 -12
  366. package/esm2015/state/reducers/cart-shipping-address/cart-shipping-address.reducer.js +1 -15
  367. package/esm2015/state/reducers/cart-shipping-information/cart-shipping-information.reducer.js +7 -17
  368. package/esm2015/state/reducers/cart-shipping-methods/cart-shipping-methods.reducer.js +1 -15
  369. package/esm2015/state/reducers/cart-state.interface.js +2 -21
  370. package/esm2015/state/reducers/cart-store-feature-key.js +1 -7
  371. package/esm2015/state/reducers/cart.reducer.js +1 -11
  372. package/esm2015/state/reducers/errors/cart-errors.type.js +2 -6
  373. package/esm2015/state/reducers/errors/error-state-helpers.js +5 -29
  374. package/esm2015/state/reducers/loading/cart-loading.type.js +3 -42
  375. package/esm2015/state/reducers/public_api.js +3 -8
  376. package/esm2015/state/reducers/token/extra.token.js +5 -21
  377. package/esm2015/state/reducers/token/public_api.js +1 -6
  378. package/esm2015/state/reducers/token/reducers.token.js +4 -13
  379. package/esm2015/state/selectors/cart/cart.selector.js +98 -811
  380. package/esm2015/state/selectors/cart-feature.selector.js +5 -28
  381. package/esm2015/state/selectors/cart-item-entities/cart-item-entities.selectors.js +29 -229
  382. package/esm2015/state/selectors/cart-order/cart-order.selector.js +15 -104
  383. package/esm2015/state/selectors/cart.selector.js +6 -30
  384. package/esm2015/state/selectors/public_api.js +2 -7
  385. package/esm2015/state/testing/cart-testing.module.js +1 -6
  386. package/esm2015/state/testing/daffodil-cart-state-testing.js +2 -7
  387. package/esm2015/state/testing/factories/stateful-cart-item.factory.js +2 -11
  388. package/esm2015/state/testing/factories/stateful-composite-cart-item.factory.js +2 -11
  389. package/esm2015/state/testing/factories/stateful-configurable-cart-item.factory.js +2 -11
  390. package/esm2015/state/testing/index.js +2 -7
  391. package/esm2015/state/testing/mock-cart-facade.js +2 -206
  392. package/esm2015/state/testing/public_api.js +4 -9
  393. package/esm2015/storage/cart-storage.service.js +2 -36
  394. package/esm2015/testing/daffodil-cart-testing.js +2 -7
  395. package/esm2015/testing/factories/cart-address.factory.js +2 -41
  396. package/esm2015/testing/factories/cart-coupon.factory.js +2 -17
  397. package/esm2015/testing/factories/cart-item/cart-item.factory.js +5 -51
  398. package/esm2015/testing/factories/cart-item/composite-cart-item.factory.js +2 -23
  399. package/esm2015/testing/factories/cart-item/configurable-cart-item.factory.js +2 -13
  400. package/esm2015/testing/factories/cart-payment.factory.js +2 -11
  401. package/esm2015/testing/factories/cart-shipping-rate.factory.js +2 -23
  402. package/esm2015/testing/factories/cart.factory.js +2 -35
  403. package/esm2015/testing/factories/public_api.js +4 -9
  404. package/esm2015/testing/index.js +2 -7
  405. package/esm2015/testing/public_api.js +2 -7
  406. package/fesm2015/daffodil-cart-driver-in-memory.js +108 -1228
  407. package/fesm2015/daffodil-cart-driver-in-memory.js.map +1 -1
  408. package/fesm2015/daffodil-cart-driver-magento-testing.js +12 -227
  409. package/fesm2015/daffodil-cart-driver-magento-testing.js.map +1 -1
  410. package/fesm2015/daffodil-cart-driver-magento.js +161 -1844
  411. package/fesm2015/daffodil-cart-driver-magento.js.map +1 -1
  412. package/fesm2015/daffodil-cart-driver-testing.js +24 -376
  413. package/fesm2015/daffodil-cart-driver-testing.js.map +1 -1
  414. package/fesm2015/daffodil-cart-driver.js +13 -493
  415. package/fesm2015/daffodil-cart-driver.js.map +1 -1
  416. package/fesm2015/daffodil-cart-routing.js +44 -498
  417. package/fesm2015/daffodil-cart-routing.js.map +1 -1
  418. package/fesm2015/daffodil-cart-state-testing.js +6 -256
  419. package/fesm2015/daffodil-cart-state-testing.js.map +1 -1
  420. package/fesm2015/daffodil-cart-state.js +403 -3921
  421. package/fesm2015/daffodil-cart-state.js.map +1 -1
  422. package/fesm2015/daffodil-cart-testing.js +13 -228
  423. package/fesm2015/daffodil-cart-testing.js.map +1 -1
  424. package/fesm2015/daffodil-cart.js +39 -532
  425. package/fesm2015/daffodil-cart.js.map +1 -1
  426. package/package.json +5 -5
  427. package/routing/package.json +1 -1
  428. package/state/package.json +1 -1
  429. package/state/testing/package.json +1 -1
  430. package/testing/package.json +1 -1
@@ -5,45 +5,21 @@
5
5
  }(this, (function (exports, i0, rxjs, i1, faker, common, driver) { 'use strict';
6
6
 
7
7
  /**
8
- * @fileoverview added by tsickle
9
- * Generated from: drivers/cart/cart.service.ts
10
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
11
- */
12
- /**
13
- * \@inheritdoc
8
+ * @inheritdoc
14
9
  */
15
10
  var DaffTestingCartService = /** @class */ (function () {
16
- /**
17
- * @param {?} cartFactory
18
- */
19
11
  function DaffTestingCartService(cartFactory) {
20
12
  this.cartFactory = cartFactory;
21
13
  }
22
- /**
23
- * @param {?} id
24
- * @return {?}
25
- */
26
14
  DaffTestingCartService.prototype.get = function (id) {
27
15
  return rxjs.of(this.cartFactory.create());
28
16
  };
29
- /**
30
- * @param {?} productId
31
- * @param {?} qty
32
- * @return {?}
33
- */
34
17
  DaffTestingCartService.prototype.addToCart = function (productId, qty) {
35
18
  return rxjs.of(this.cartFactory.create());
36
19
  };
37
- /**
38
- * @param {?} id
39
- * @return {?}
40
- */
41
20
  DaffTestingCartService.prototype.clear = function (id) {
42
21
  return rxjs.of(this.cartFactory.create());
43
22
  };
44
- /**
45
- * @return {?}
46
- */
47
23
  DaffTestingCartService.prototype.create = function () {
48
24
  return rxjs.of({
49
25
  id: this.cartFactory.create().id,
@@ -51,6 +27,7 @@
51
27
  };
52
28
  return DaffTestingCartService;
53
29
  }());
30
+ /** @nocollapse */ DaffTestingCartService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffTestingCartService_Factory() { return new DaffTestingCartService(i0.ɵɵinject(i1.DaffCartFactory)); }, token: DaffTestingCartService, providedIn: "root" });
54
31
  DaffTestingCartService.decorators = [
55
32
  { type: i0.Injectable, args: [{
56
33
  providedIn: 'root',
@@ -60,74 +37,33 @@
60
37
  DaffTestingCartService.ctorParameters = function () { return [
61
38
  { type: i1.DaffCartFactory }
62
39
  ]; };
63
- /** @nocollapse */ DaffTestingCartService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffTestingCartService_Factory() { return new DaffTestingCartService(i0.ɵɵinject(i1.DaffCartFactory)); }, token: DaffTestingCartService, providedIn: "root" });
64
- if (false) {
65
- /**
66
- * @type {?}
67
- * @private
68
- */
69
- DaffTestingCartService.prototype.cartFactory;
70
- }
71
40
 
72
41
  /**
73
- * @fileoverview added by tsickle
74
- * Generated from: drivers/cart-item/cart-item.service.ts
75
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
76
- */
77
- /**
78
- * \@inheritdoc
42
+ * @inheritdoc
79
43
  */
80
44
  var DaffTestingCartItemService = /** @class */ (function () {
81
- /**
82
- * @param {?} cartItemFactory
83
- * @param {?} cartFactory
84
- */
85
45
  function DaffTestingCartItemService(cartItemFactory, cartFactory) {
86
46
  this.cartItemFactory = cartItemFactory;
87
47
  this.cartFactory = cartFactory;
88
48
  }
89
- /**
90
- * @param {?} cartId
91
- * @return {?}
92
- */
93
49
  DaffTestingCartItemService.prototype.list = function (cartId) {
94
50
  return rxjs.of(this.cartItemFactory.createMany(3));
95
51
  };
96
- /**
97
- * @param {?} cartId
98
- * @param {?} itemId
99
- * @return {?}
100
- */
101
52
  DaffTestingCartItemService.prototype.get = function (cartId, itemId) {
102
53
  return rxjs.of(this.cartItemFactory.create());
103
54
  };
104
- /**
105
- * @param {?} cartId
106
- * @param {?} input
107
- * @return {?}
108
- */
109
55
  DaffTestingCartItemService.prototype.add = function (cartId, input) {
110
56
  return rxjs.of(this.cartFactory.create());
111
57
  };
112
- /**
113
- * @param {?} cartId
114
- * @param {?} itemId
115
- * @param {?} item
116
- * @return {?}
117
- */
118
58
  DaffTestingCartItemService.prototype.update = function (cartId, itemId, item) {
119
59
  return rxjs.of(this.cartFactory.create());
120
60
  };
121
- /**
122
- * @param {?} cartId
123
- * @param {?} itemId
124
- * @return {?}
125
- */
126
61
  DaffTestingCartItemService.prototype.delete = function (cartId, itemId) {
127
62
  return rxjs.of(this.cartFactory.create());
128
63
  };
129
64
  return DaffTestingCartItemService;
130
65
  }());
66
+ /** @nocollapse */ DaffTestingCartItemService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffTestingCartItemService_Factory() { return new DaffTestingCartItemService(i0.ɵɵinject(i1.DaffCartItemFactory), i0.ɵɵinject(i1.DaffCartFactory)); }, token: DaffTestingCartItemService, providedIn: "root" });
131
67
  DaffTestingCartItemService.decorators = [
132
68
  { type: i0.Injectable, args: [{
133
69
  providedIn: 'root',
@@ -138,47 +74,21 @@
138
74
  { type: i1.DaffCartItemFactory },
139
75
  { type: i1.DaffCartFactory }
140
76
  ]; };
141
- /** @nocollapse */ DaffTestingCartItemService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffTestingCartItemService_Factory() { return new DaffTestingCartItemService(i0.ɵɵinject(i1.DaffCartItemFactory), i0.ɵɵinject(i1.DaffCartFactory)); }, token: DaffTestingCartItemService, providedIn: "root" });
142
- if (false) {
143
- /**
144
- * @type {?}
145
- * @private
146
- */
147
- DaffTestingCartItemService.prototype.cartItemFactory;
148
- /**
149
- * @type {?}
150
- * @private
151
- */
152
- DaffTestingCartItemService.prototype.cartFactory;
153
- }
154
77
 
155
78
  /**
156
- * @fileoverview added by tsickle
157
- * Generated from: drivers/cart-address/cart-address.service.ts
158
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
159
- */
160
- /**
161
- * \@inheritdoc
79
+ * @inheritdoc
162
80
  */
163
81
  var DaffTestingCartAddressService = /** @class */ (function () {
164
- /**
165
- * @param {?} addressFactory
166
- * @param {?} cartFactory
167
- */
168
82
  function DaffTestingCartAddressService(addressFactory, cartFactory) {
169
83
  this.addressFactory = addressFactory;
170
84
  this.cartFactory = cartFactory;
171
85
  }
172
- /**
173
- * @param {?} cartId
174
- * @param {?} address
175
- * @return {?}
176
- */
177
86
  DaffTestingCartAddressService.prototype.update = function (cartId, address) {
178
87
  return rxjs.of(this.cartFactory.create());
179
88
  };
180
89
  return DaffTestingCartAddressService;
181
90
  }());
91
+ /** @nocollapse */ DaffTestingCartAddressService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffTestingCartAddressService_Factory() { return new DaffTestingCartAddressService(i0.ɵɵinject(i1.DaffCartAddressFactory), i0.ɵɵinject(i1.DaffCartFactory)); }, token: DaffTestingCartAddressService, providedIn: "root" });
182
92
  DaffTestingCartAddressService.decorators = [
183
93
  { type: i0.Injectable, args: [{
184
94
  providedIn: 'root',
@@ -189,54 +99,24 @@
189
99
  { type: i1.DaffCartAddressFactory },
190
100
  { type: i1.DaffCartFactory }
191
101
  ]; };
192
- /** @nocollapse */ DaffTestingCartAddressService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffTestingCartAddressService_Factory() { return new DaffTestingCartAddressService(i0.ɵɵinject(i1.DaffCartAddressFactory), i0.ɵɵinject(i1.DaffCartFactory)); }, token: DaffTestingCartAddressService, providedIn: "root" });
193
- if (false) {
194
- /**
195
- * @type {?}
196
- * @private
197
- */
198
- DaffTestingCartAddressService.prototype.addressFactory;
199
- /**
200
- * @type {?}
201
- * @private
202
- */
203
- DaffTestingCartAddressService.prototype.cartFactory;
204
- }
205
102
 
206
103
  /**
207
- * @fileoverview added by tsickle
208
- * Generated from: drivers/cart-billing-address/cart-billing-address.service.ts
209
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
210
- */
211
- /**
212
- * \@inheritdoc
104
+ * @inheritdoc
213
105
  */
214
106
  var DaffTestingCartBillingAddressService = /** @class */ (function () {
215
- /**
216
- * @param {?} addressFactory
217
- * @param {?} cartFactory
218
- */
219
107
  function DaffTestingCartBillingAddressService(addressFactory, cartFactory) {
220
108
  this.addressFactory = addressFactory;
221
109
  this.cartFactory = cartFactory;
222
110
  }
223
- /**
224
- * @param {?} cartId
225
- * @return {?}
226
- */
227
111
  DaffTestingCartBillingAddressService.prototype.get = function (cartId) {
228
112
  return rxjs.of(this.addressFactory.create());
229
113
  };
230
- /**
231
- * @param {?} cartId
232
- * @param {?} address
233
- * @return {?}
234
- */
235
114
  DaffTestingCartBillingAddressService.prototype.update = function (cartId, address) {
236
115
  return rxjs.of(this.cartFactory.create());
237
116
  };
238
117
  return DaffTestingCartBillingAddressService;
239
118
  }());
119
+ /** @nocollapse */ DaffTestingCartBillingAddressService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffTestingCartBillingAddressService_Factory() { return new DaffTestingCartBillingAddressService(i0.ɵɵinject(i1.DaffCartAddressFactory), i0.ɵɵinject(i1.DaffCartFactory)); }, token: DaffTestingCartBillingAddressService, providedIn: "root" });
240
120
  DaffTestingCartBillingAddressService.decorators = [
241
121
  { type: i0.Injectable, args: [{
242
122
  providedIn: 'root',
@@ -247,70 +127,30 @@
247
127
  { type: i1.DaffCartAddressFactory },
248
128
  { type: i1.DaffCartFactory }
249
129
  ]; };
250
- /** @nocollapse */ DaffTestingCartBillingAddressService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffTestingCartBillingAddressService_Factory() { return new DaffTestingCartBillingAddressService(i0.ɵɵinject(i1.DaffCartAddressFactory), i0.ɵɵinject(i1.DaffCartFactory)); }, token: DaffTestingCartBillingAddressService, providedIn: "root" });
251
- if (false) {
252
- /**
253
- * @type {?}
254
- * @private
255
- */
256
- DaffTestingCartBillingAddressService.prototype.addressFactory;
257
- /**
258
- * @type {?}
259
- * @private
260
- */
261
- DaffTestingCartBillingAddressService.prototype.cartFactory;
262
- }
263
130
 
264
131
  /**
265
- * @fileoverview added by tsickle
266
- * Generated from: drivers/cart-payment/cart-payment.service.ts
267
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
268
- */
269
- /**
270
- * \@inheritdoc
132
+ * @inheritdoc
271
133
  */
272
134
  var DaffTestingCartPaymentService = /** @class */ (function () {
273
- /**
274
- * @param {?} paymentFactory
275
- * @param {?} cartFactory
276
- */
277
135
  function DaffTestingCartPaymentService(paymentFactory, cartFactory) {
278
136
  this.paymentFactory = paymentFactory;
279
137
  this.cartFactory = cartFactory;
280
138
  }
281
- /**
282
- * @param {?} cartId
283
- * @return {?}
284
- */
285
139
  DaffTestingCartPaymentService.prototype.get = function (cartId) {
286
140
  return rxjs.of(this.paymentFactory.create());
287
141
  };
288
- /**
289
- * @param {?} cartId
290
- * @param {?} payment
291
- * @return {?}
292
- */
293
142
  DaffTestingCartPaymentService.prototype.update = function (cartId, payment) {
294
143
  return rxjs.of(this.cartFactory.create());
295
144
  };
296
- /**
297
- * @param {?} cartId
298
- * @param {?} payment
299
- * @param {?} address
300
- * @return {?}
301
- */
302
145
  DaffTestingCartPaymentService.prototype.updateWithBilling = function (cartId, payment, address) {
303
146
  return rxjs.of(this.cartFactory.create());
304
147
  };
305
- /**
306
- * @param {?} cartId
307
- * @return {?}
308
- */
309
148
  DaffTestingCartPaymentService.prototype.remove = function (cartId) {
310
149
  return rxjs.of(undefined);
311
150
  };
312
151
  return DaffTestingCartPaymentService;
313
152
  }());
153
+ /** @nocollapse */ DaffTestingCartPaymentService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffTestingCartPaymentService_Factory() { return new DaffTestingCartPaymentService(i0.ɵɵinject(i1.DaffCartPaymentFactory), i0.ɵɵinject(i1.DaffCartFactory)); }, token: DaffTestingCartPaymentService, providedIn: "root" });
314
154
  DaffTestingCartPaymentService.decorators = [
315
155
  { type: i0.Injectable, args: [{
316
156
  providedIn: 'root',
@@ -321,44 +161,20 @@
321
161
  { type: i1.DaffCartPaymentFactory },
322
162
  { type: i1.DaffCartFactory }
323
163
  ]; };
324
- /** @nocollapse */ DaffTestingCartPaymentService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffTestingCartPaymentService_Factory() { return new DaffTestingCartPaymentService(i0.ɵɵinject(i1.DaffCartPaymentFactory), i0.ɵɵinject(i1.DaffCartFactory)); }, token: DaffTestingCartPaymentService, providedIn: "root" });
325
- if (false) {
326
- /**
327
- * @type {?}
328
- * @private
329
- */
330
- DaffTestingCartPaymentService.prototype.paymentFactory;
331
- /**
332
- * @type {?}
333
- * @private
334
- */
335
- DaffTestingCartPaymentService.prototype.cartFactory;
336
- }
337
164
 
338
165
  /**
339
- * @fileoverview added by tsickle
340
- * Generated from: drivers/cart-payment-methods/cart-payment-methods.service.ts
341
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
342
- */
343
- /**
344
- * \@inheritdoc
166
+ * @inheritdoc
345
167
  */
346
168
  var DaffTestingCartPaymentMethodsService = /** @class */ (function () {
347
- /**
348
- * @param {?} paymentFactory
349
- */
350
169
  function DaffTestingCartPaymentMethodsService(paymentFactory) {
351
170
  this.paymentFactory = paymentFactory;
352
171
  }
353
- /**
354
- * @param {?} cartId
355
- * @return {?}
356
- */
357
172
  DaffTestingCartPaymentMethodsService.prototype.list = function (cartId) {
358
173
  return rxjs.of(this.paymentFactory.createMany(3));
359
174
  };
360
175
  return DaffTestingCartPaymentMethodsService;
361
176
  }());
177
+ /** @nocollapse */ DaffTestingCartPaymentMethodsService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffTestingCartPaymentMethodsService_Factory() { return new DaffTestingCartPaymentMethodsService(i0.ɵɵinject(i1.DaffCartPaymentFactory)); }, token: DaffTestingCartPaymentMethodsService, providedIn: "root" });
362
178
  DaffTestingCartPaymentMethodsService.decorators = [
363
179
  { type: i0.Injectable, args: [{
364
180
  providedIn: 'root',
@@ -368,49 +184,24 @@
368
184
  DaffTestingCartPaymentMethodsService.ctorParameters = function () { return [
369
185
  { type: i1.DaffCartPaymentFactory }
370
186
  ]; };
371
- /** @nocollapse */ DaffTestingCartPaymentMethodsService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffTestingCartPaymentMethodsService_Factory() { return new DaffTestingCartPaymentMethodsService(i0.ɵɵinject(i1.DaffCartPaymentFactory)); }, token: DaffTestingCartPaymentMethodsService, providedIn: "root" });
372
- if (false) {
373
- /**
374
- * @type {?}
375
- * @private
376
- */
377
- DaffTestingCartPaymentMethodsService.prototype.paymentFactory;
378
- }
379
187
 
380
188
  /**
381
- * @fileoverview added by tsickle
382
- * Generated from: drivers/cart-shipping-address/cart-shipping-address.service.ts
383
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
384
- */
385
- /**
386
- * \@inheritdoc
189
+ * @inheritdoc
387
190
  */
388
191
  var DaffTestingCartShippingAddressService = /** @class */ (function () {
389
- /**
390
- * @param {?} addressFactory
391
- * @param {?} cartFactory
392
- */
393
192
  function DaffTestingCartShippingAddressService(addressFactory, cartFactory) {
394
193
  this.addressFactory = addressFactory;
395
194
  this.cartFactory = cartFactory;
396
195
  }
397
- /**
398
- * @param {?} cartId
399
- * @return {?}
400
- */
401
196
  DaffTestingCartShippingAddressService.prototype.get = function (cartId) {
402
197
  return rxjs.of(this.addressFactory.create());
403
198
  };
404
- /**
405
- * @param {?} cartId
406
- * @param {?} address
407
- * @return {?}
408
- */
409
199
  DaffTestingCartShippingAddressService.prototype.update = function (cartId, address) {
410
200
  return rxjs.of(this.cartFactory.create());
411
201
  };
412
202
  return DaffTestingCartShippingAddressService;
413
203
  }());
204
+ /** @nocollapse */ DaffTestingCartShippingAddressService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffTestingCartShippingAddressService_Factory() { return new DaffTestingCartShippingAddressService(i0.ɵɵinject(i1.DaffCartAddressFactory), i0.ɵɵinject(i1.DaffCartFactory)); }, token: DaffTestingCartShippingAddressService, providedIn: "root" });
414
205
  DaffTestingCartShippingAddressService.decorators = [
415
206
  { type: i0.Injectable, args: [{
416
207
  providedIn: 'root',
@@ -421,61 +212,27 @@
421
212
  { type: i1.DaffCartAddressFactory },
422
213
  { type: i1.DaffCartFactory }
423
214
  ]; };
424
- /** @nocollapse */ DaffTestingCartShippingAddressService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffTestingCartShippingAddressService_Factory() { return new DaffTestingCartShippingAddressService(i0.ɵɵinject(i1.DaffCartAddressFactory), i0.ɵɵinject(i1.DaffCartFactory)); }, token: DaffTestingCartShippingAddressService, providedIn: "root" });
425
- if (false) {
426
- /**
427
- * @type {?}
428
- * @private
429
- */
430
- DaffTestingCartShippingAddressService.prototype.addressFactory;
431
- /**
432
- * @type {?}
433
- * @private
434
- */
435
- DaffTestingCartShippingAddressService.prototype.cartFactory;
436
- }
437
215
 
438
216
  /**
439
- * @fileoverview added by tsickle
440
- * Generated from: drivers/cart-shipping-information/cart-shipping-information.service.ts
441
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
442
- */
443
- /**
444
- * \@inheritdoc
217
+ * @inheritdoc
445
218
  */
446
219
  var DaffTestingCartShippingInformationService = /** @class */ (function () {
447
- /**
448
- * @param {?} shippingInfoFactory
449
- * @param {?} cartFactory
450
- */
451
220
  function DaffTestingCartShippingInformationService(shippingInfoFactory, cartFactory) {
452
221
  this.shippingInfoFactory = shippingInfoFactory;
453
222
  this.cartFactory = cartFactory;
454
223
  }
455
- /**
456
- * @param {?} cartId
457
- * @return {?}
458
- */
459
224
  DaffTestingCartShippingInformationService.prototype.get = function (cartId) {
460
225
  return rxjs.of(this.shippingInfoFactory.create());
461
226
  };
462
- /**
463
- * @param {?} cartId
464
- * @param {?} info
465
- * @return {?}
466
- */
467
227
  DaffTestingCartShippingInformationService.prototype.update = function (cartId, info) {
468
228
  return rxjs.of(this.cartFactory.create());
469
229
  };
470
- /**
471
- * @param {?} cartId
472
- * @return {?}
473
- */
474
230
  DaffTestingCartShippingInformationService.prototype.delete = function (cartId) {
475
231
  return rxjs.of(this.cartFactory.create());
476
232
  };
477
233
  return DaffTestingCartShippingInformationService;
478
234
  }());
235
+ /** @nocollapse */ DaffTestingCartShippingInformationService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffTestingCartShippingInformationService_Factory() { return new DaffTestingCartShippingInformationService(i0.ɵɵinject(i1.DaffCartShippingRateFactory), i0.ɵɵinject(i1.DaffCartFactory)); }, token: DaffTestingCartShippingInformationService, providedIn: "root" });
479
236
  DaffTestingCartShippingInformationService.decorators = [
480
237
  { type: i0.Injectable, args: [{
481
238
  providedIn: 'root',
@@ -486,44 +243,20 @@
486
243
  { type: i1.DaffCartShippingRateFactory },
487
244
  { type: i1.DaffCartFactory }
488
245
  ]; };
489
- /** @nocollapse */ DaffTestingCartShippingInformationService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffTestingCartShippingInformationService_Factory() { return new DaffTestingCartShippingInformationService(i0.ɵɵinject(i1.DaffCartShippingRateFactory), i0.ɵɵinject(i1.DaffCartFactory)); }, token: DaffTestingCartShippingInformationService, providedIn: "root" });
490
- if (false) {
491
- /**
492
- * @type {?}
493
- * @private
494
- */
495
- DaffTestingCartShippingInformationService.prototype.shippingInfoFactory;
496
- /**
497
- * @type {?}
498
- * @private
499
- */
500
- DaffTestingCartShippingInformationService.prototype.cartFactory;
501
- }
502
246
 
503
247
  /**
504
- * @fileoverview added by tsickle
505
- * Generated from: drivers/cart-shipping-methods/cart-shipping-methods.service.ts
506
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
507
- */
508
- /**
509
- * \@inheritdoc
248
+ * @inheritdoc
510
249
  */
511
250
  var DaffTestingCartShippingMethodsService = /** @class */ (function () {
512
- /**
513
- * @param {?} shippingInfoFactory
514
- */
515
251
  function DaffTestingCartShippingMethodsService(shippingInfoFactory) {
516
252
  this.shippingInfoFactory = shippingInfoFactory;
517
253
  }
518
- /**
519
- * @param {?} cartId
520
- * @return {?}
521
- */
522
254
  DaffTestingCartShippingMethodsService.prototype.list = function (cartId) {
523
255
  return rxjs.of(this.shippingInfoFactory.createMany(3));
524
256
  };
525
257
  return DaffTestingCartShippingMethodsService;
526
258
  }());
259
+ /** @nocollapse */ DaffTestingCartShippingMethodsService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffTestingCartShippingMethodsService_Factory() { return new DaffTestingCartShippingMethodsService(i0.ɵɵinject(i1.DaffCartShippingRateFactory)); }, token: DaffTestingCartShippingMethodsService, providedIn: "root" });
527
260
  DaffTestingCartShippingMethodsService.decorators = [
528
261
  { type: i0.Injectable, args: [{
529
262
  providedIn: 'root',
@@ -533,31 +266,13 @@
533
266
  DaffTestingCartShippingMethodsService.ctorParameters = function () { return [
534
267
  { type: i1.DaffCartShippingRateFactory }
535
268
  ]; };
536
- /** @nocollapse */ DaffTestingCartShippingMethodsService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffTestingCartShippingMethodsService_Factory() { return new DaffTestingCartShippingMethodsService(i0.ɵɵinject(i1.DaffCartShippingRateFactory)); }, token: DaffTestingCartShippingMethodsService, providedIn: "root" });
537
- if (false) {
538
- /**
539
- * @type {?}
540
- * @private
541
- */
542
- DaffTestingCartShippingMethodsService.prototype.shippingInfoFactory;
543
- }
544
269
 
545
270
  /**
546
- * @fileoverview added by tsickle
547
- * Generated from: drivers/cart-order/cart-order.service.ts
548
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
549
- */
550
- /**
551
- * \@inheritdoc
271
+ * @inheritdoc
552
272
  */
553
273
  var DaffTestingCartOrderService = /** @class */ (function () {
554
274
  function DaffTestingCartOrderService() {
555
275
  }
556
- /**
557
- * @param {?} cartId
558
- * @param {?=} payment
559
- * @return {?}
560
- */
561
276
  DaffTestingCartOrderService.prototype.placeOrder = function (cartId, payment) {
562
277
  return rxjs.of({
563
278
  id: faker.datatype.uuid(),
@@ -567,62 +282,36 @@
567
282
  };
568
283
  return DaffTestingCartOrderService;
569
284
  }());
285
+ /** @nocollapse */ DaffTestingCartOrderService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffTestingCartOrderService_Factory() { return new DaffTestingCartOrderService(); }, token: DaffTestingCartOrderService, providedIn: "root" });
570
286
  DaffTestingCartOrderService.decorators = [
571
287
  { type: i0.Injectable, args: [{
572
288
  providedIn: 'root',
573
289
  },] }
574
290
  ];
575
- /** @nocollapse */ DaffTestingCartOrderService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffTestingCartOrderService_Factory() { return new DaffTestingCartOrderService(); }, token: DaffTestingCartOrderService, providedIn: "root" });
576
291
 
577
292
  /**
578
- * @fileoverview added by tsickle
579
- * Generated from: drivers/cart-coupon/cart-coupon.service.ts
580
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
581
- */
582
- /**
583
- * \@inheritdoc
293
+ * @inheritdoc
584
294
  */
585
295
  var DaffTestingCartCouponService = /** @class */ (function () {
586
- /**
587
- * @param {?} couponFactory
588
- * @param {?} cartFactory
589
- */
590
296
  function DaffTestingCartCouponService(couponFactory, cartFactory) {
591
297
  this.couponFactory = couponFactory;
592
298
  this.cartFactory = cartFactory;
593
299
  }
594
- /**
595
- * @param {?} cartId
596
- * @return {?}
597
- */
598
300
  DaffTestingCartCouponService.prototype.list = function (cartId) {
599
301
  return rxjs.of(this.couponFactory.createMany(3));
600
302
  };
601
- /**
602
- * @param {?} cartId
603
- * @param {?} coupon
604
- * @return {?}
605
- */
606
303
  DaffTestingCartCouponService.prototype.apply = function (cartId, coupon) {
607
304
  return rxjs.of(this.cartFactory.create());
608
305
  };
609
- /**
610
- * @param {?} cartId
611
- * @param {?} coupon
612
- * @return {?}
613
- */
614
306
  DaffTestingCartCouponService.prototype.remove = function (cartId, coupon) {
615
307
  return rxjs.of(this.cartFactory.create());
616
308
  };
617
- /**
618
- * @param {?} cartId
619
- * @return {?}
620
- */
621
309
  DaffTestingCartCouponService.prototype.removeAll = function (cartId) {
622
310
  return rxjs.of(this.cartFactory.create());
623
311
  };
624
312
  return DaffTestingCartCouponService;
625
313
  }());
314
+ /** @nocollapse */ DaffTestingCartCouponService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffTestingCartCouponService_Factory() { return new DaffTestingCartCouponService(i0.ɵɵinject(i1.DaffCartCouponFactory), i0.ɵɵinject(i1.DaffCartFactory)); }, token: DaffTestingCartCouponService, providedIn: "root" });
626
315
  DaffTestingCartCouponService.decorators = [
627
316
  { type: i0.Injectable, args: [{
628
317
  providedIn: 'root',
@@ -633,31 +322,10 @@
633
322
  { type: i1.DaffCartCouponFactory },
634
323
  { type: i1.DaffCartFactory }
635
324
  ]; };
636
- /** @nocollapse */ DaffTestingCartCouponService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffTestingCartCouponService_Factory() { return new DaffTestingCartCouponService(i0.ɵɵinject(i1.DaffCartCouponFactory), i0.ɵɵinject(i1.DaffCartFactory)); }, token: DaffTestingCartCouponService, providedIn: "root" });
637
- if (false) {
638
- /**
639
- * @type {?}
640
- * @private
641
- */
642
- DaffTestingCartCouponService.prototype.couponFactory;
643
- /**
644
- * @type {?}
645
- * @private
646
- */
647
- DaffTestingCartCouponService.prototype.cartFactory;
648
- }
649
325
 
650
- /**
651
- * @fileoverview added by tsickle
652
- * Generated from: drivers/cart-driver.module.ts
653
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
654
- */
655
326
  var DaffTestingCartDriverModule = /** @class */ (function () {
656
327
  function DaffTestingCartDriverModule() {
657
328
  }
658
- /**
659
- * @return {?}
660
- */
661
329
  DaffTestingCartDriverModule.forRoot = function () {
662
330
  return {
663
331
  ngModule: DaffTestingCartDriverModule,
@@ -720,27 +388,7 @@
720
388
  ];
721
389
 
722
390
  /**
723
- * @fileoverview added by tsickle
724
- * Generated from: drivers/public_api.ts
725
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
726
- */
727
-
728
- /**
729
- * @fileoverview added by tsickle
730
- * Generated from: public_api.ts
731
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
732
- */
733
-
734
- /**
735
- * @fileoverview added by tsickle
736
- * Generated from: index.ts
737
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
738
- */
739
-
740
- /**
741
- * @fileoverview added by tsickle
742
- * Generated from: daffodil-cart-driver-testing.ts
743
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
391
+ * Generated bundle index. Do not edit.
744
392
  */
745
393
 
746
394
  exports.DaffTestingCartAddressService = DaffTestingCartAddressService;