@daffodil/checkout 0.38.9 → 0.39.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. package/bundles/daffodil-checkout-testing.umd.js +16 -353
  2. package/bundles/daffodil-checkout-testing.umd.js.map +1 -1
  3. package/bundles/daffodil-checkout-testing.umd.min.js +1 -1
  4. package/bundles/daffodil-checkout-testing.umd.min.js.map +1 -1
  5. package/bundles/daffodil-checkout.umd.js +85 -681
  6. package/bundles/daffodil-checkout.umd.js.map +1 -1
  7. package/bundles/daffodil-checkout.umd.min.js +2 -2
  8. package/bundles/daffodil-checkout.umd.min.js.map +1 -1
  9. package/esm2015/billing/actions/billing.actions.js +7 -35
  10. package/esm2015/billing/billing-state.module.js +1 -6
  11. package/esm2015/billing/billing.module.js +1 -6
  12. package/esm2015/billing/containers/billing.component.js +2 -37
  13. package/esm2015/billing/facades/billing.facade.js +3 -34
  14. package/esm2015/billing/reducers/billing/billing-reducer.interface.js +2 -18
  15. package/esm2015/billing/reducers/billing/billing.reducer.js +1 -12
  16. package/esm2015/billing/reducers/billing-reducers.interface.js +2 -14
  17. package/esm2015/billing/reducers/billing-reducers.js +1 -7
  18. package/esm2015/billing/selectors/billing.selector.js +9 -35
  19. package/esm2015/checkout.module.js +1 -6
  20. package/esm2015/daffodil-checkout.js +2 -7
  21. package/esm2015/drivers/injection-tokens/driver-checkout.token.js +1 -7
  22. package/esm2015/drivers/injection-tokens/payment-driver.token.js +1 -7
  23. package/esm2015/drivers/injection-tokens/payment-transformer.token.js +1 -7
  24. package/esm2015/drivers/interfaces/checkout-service.interface.js +2 -17
  25. package/esm2015/drivers/interfaces/order-service.interface.js +1 -28
  26. package/esm2015/index.js +1 -6
  27. package/esm2015/models/cart-process-request.js +2 -17
  28. package/esm2015/models/order/order-address.js +2 -63
  29. package/esm2015/models/order/order-item.js +2 -55
  30. package/esm2015/models/order/order-payment.js +2 -47
  31. package/esm2015/models/order/order-shipping-rate.js +2 -37
  32. package/esm2015/models/order/order.js +2 -39
  33. package/esm2015/models/payment/payment-info.js +2 -22
  34. package/esm2015/models/shipping/shipping-option.js +2 -16
  35. package/esm2015/models/shipping/shipping-rate.js +2 -19
  36. package/esm2015/order/actions/order.actions.js +17 -54
  37. package/esm2015/order/containers/order.component.js +2 -24
  38. package/esm2015/order/effects/order.effects.js +3 -38
  39. package/esm2015/order/facades/order.facade.js +3 -34
  40. package/esm2015/order/order-state.module.js +1 -6
  41. package/esm2015/order/order.module.js +1 -6
  42. package/esm2015/order/reducers/order/order-reducer.interface.js +2 -19
  43. package/esm2015/order/reducers/order/order.reducer.js +1 -10
  44. package/esm2015/order/reducers/order-reducers.interface.js +2 -15
  45. package/esm2015/order/reducers/order-reducers.js +1 -7
  46. package/esm2015/order/selectors/order.selector.js +9 -35
  47. package/esm2015/payment/actions/payment.actions.js +5 -20
  48. package/esm2015/payment/facades/payment.facade.js +3 -24
  49. package/esm2015/payment/payment-state.module.js +1 -6
  50. package/esm2015/payment/payment.module.js +1 -6
  51. package/esm2015/payment/reducers/payment/payment-reducer.interface.js +2 -14
  52. package/esm2015/payment/reducers/payment/payment.reducer.js +1 -12
  53. package/esm2015/payment/reducers/payment-reducers.interface.js +2 -14
  54. package/esm2015/payment/reducers/payment-reducers.js +1 -7
  55. package/esm2015/payment/selectors/payment.selector.js +5 -21
  56. package/esm2015/shipping/actions/shipping.actions.js +6 -30
  57. package/esm2015/shipping/containers/shipping.component.js +2 -36
  58. package/esm2015/shipping/facades/shipping.facade.js +3 -34
  59. package/esm2015/shipping/reducers/shipping/shipping-reducer.interface.js +2 -16
  60. package/esm2015/shipping/reducers/shipping/shipping.reducer.js +1 -12
  61. package/esm2015/shipping/reducers/shipping-reducers.interface.js +2 -14
  62. package/esm2015/shipping/reducers/shipping-reducers.js +1 -7
  63. package/esm2015/shipping/selectors/shipping.selectors.js +9 -35
  64. package/esm2015/shipping/shipping-state.module.js +1 -6
  65. package/esm2015/shipping/shipping.module.js +1 -6
  66. package/esm2015/testing/daffodil-checkout-testing.js +2 -7
  67. package/esm2015/testing/drivers/in-memory/checkout-driver.module.js +1 -9
  68. package/esm2015/testing/drivers/in-memory/checkout.service.js +2 -23
  69. package/esm2015/testing/drivers/testing/checkout-driver.module.js +1 -9
  70. package/esm2015/testing/drivers/testing/checkout.service.js +2 -27
  71. package/esm2015/testing/index.js +1 -6
  72. package/esm2015/testing/inmemory-backend/checkout.service.js +4 -50
  73. package/esm2015/testing/order/factories/order-address.factory.js +2 -61
  74. package/esm2015/testing/order/factories/order-item.factory.js +2 -51
  75. package/esm2015/testing/order/factories/order-payment.factory.js +2 -45
  76. package/esm2015/testing/order/factories/order-shipping-rate.factory.js +2 -33
  77. package/esm2015/testing/order/factories/order.factory.js +2 -35
  78. package/esm2015/testing/payment/factories/payment.factory.js +2 -19
  79. package/esm2015/testing/shipping/factories/shipping-option.factory.js +2 -13
  80. package/esm2015/testing/shipping/factories/shipping-rate.factory.js +2 -23
  81. package/fesm2015/daffodil-checkout-testing.js +16 -394
  82. package/fesm2015/daffodil-checkout-testing.js.map +1 -1
  83. package/fesm2015/daffodil-checkout.js +74 -671
  84. package/fesm2015/daffodil-checkout.js.map +1 -1
  85. package/package.json +4 -4
  86. package/testing/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { Component, NgModule, Injectable, ɵɵdefineInjectable, ɵɵinject, InjectionToken, Inject } from '@angular/core';
1
+ import { Component, NgModule, ɵɵdefineInjectable, ɵɵinject, Injectable, InjectionToken, Inject } from '@angular/core';
2
2
  import { createFeatureSelector, createSelector, select, Store, StoreModule } from '@ngrx/store';
3
3
  import { CommonModule } from '@angular/common';
4
4
  import { ofType, Actions, Effect, EffectsModule } from '@ngrx/effects';
@@ -6,120 +6,52 @@ import { __decorate, __metadata } from 'tslib';
6
6
  import { of, Observable } from 'rxjs';
7
7
  import { switchMap, map, catchError } from 'rxjs/operators';
8
8
 
9
- /**
10
- * @fileoverview added by tsickle
11
- * Generated from: shipping/actions/shipping.actions.ts
12
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
13
- */
14
- /** @enum {string} */
15
- const DaffShippingActionTypes = {
16
- UpdateShippingAddressAction: "[Shipping] Update Shipping Address Action",
17
- SelectShippingOptionAction: "[Shipping] Select Shipping Option Action",
18
- };
9
+ var DaffShippingActionTypes;
10
+ (function (DaffShippingActionTypes) {
11
+ DaffShippingActionTypes["UpdateShippingAddressAction"] = "[Shipping] Update Shipping Address Action";
12
+ DaffShippingActionTypes["SelectShippingOptionAction"] = "[Shipping] Select Shipping Option Action";
13
+ })(DaffShippingActionTypes || (DaffShippingActionTypes = {}));
19
14
  class DaffUpdateShippingAddress {
20
- /**
21
- * @param {?} payload
22
- */
23
15
  constructor(payload) {
24
16
  this.payload = payload;
25
17
  this.type = DaffShippingActionTypes.UpdateShippingAddressAction;
26
18
  }
27
19
  }
28
- if (false) {
29
- /** @type {?} */
30
- DaffUpdateShippingAddress.prototype.type;
31
- /** @type {?} */
32
- DaffUpdateShippingAddress.prototype.payload;
33
- }
34
20
  class DaffSelectShippingOption {
35
- /**
36
- * @param {?} payload
37
- */
38
21
  constructor(payload) {
39
22
  this.payload = payload;
40
23
  this.type = DaffShippingActionTypes.SelectShippingOptionAction;
41
24
  }
42
25
  }
43
- if (false) {
44
- /** @type {?} */
45
- DaffSelectShippingOption.prototype.type;
46
- /** @type {?} */
47
- DaffSelectShippingOption.prototype.payload;
48
- }
49
26
 
50
- /**
51
- * @fileoverview added by tsickle
52
- * Generated from: shipping/selectors/shipping.selectors.ts
53
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
54
- */
55
27
  /**
56
28
  * Shipping Feature State
57
- * @type {?}
58
29
  */
59
30
  const selectShippingFeatureState = createFeatureSelector('shipping');
60
- const ɵ0 = /**
61
- * @param {?} state
62
- * @return {?}
63
- */
64
- (state) => state.shipping;
31
+ const ɵ0 = (state) => state.shipping;
65
32
  /**
66
33
  * Shipping State
67
- * @type {?}
68
- */
69
- const selectShippingState = createSelector(selectShippingFeatureState, (ɵ0));
70
- const ɵ1 = /**
71
- * @param {?} state
72
- * @return {?}
73
- */
74
- (state) => state.shippingAddress;
75
- /** @type {?} */
76
- const selectShippingAddress = createSelector(selectShippingState, (ɵ1));
77
- const ɵ2 = /**
78
- * @param {?} state
79
- * @return {?}
80
- */
81
- (state) => state.selectedShippingOptionId;
82
- /** @type {?} */
83
- const selectShippingOptionId = createSelector(selectShippingState, (ɵ2));
84
- const ɵ3 = /**
85
- * @param {?} state
86
- * @return {?}
87
34
  */
88
- (state) => !!state;
89
- /** @type {?} */
90
- const selectIsShippingAddressValid = createSelector(selectShippingAddress, (ɵ3));
35
+ const selectShippingState = createSelector(selectShippingFeatureState, ɵ0);
36
+ const ɵ1 = (state) => state.shippingAddress;
37
+ const selectShippingAddress = createSelector(selectShippingState, ɵ1);
38
+ const ɵ2 = (state) => state.selectedShippingOptionId;
39
+ const selectShippingOptionId = createSelector(selectShippingState, ɵ2);
40
+ const ɵ3 = (state) => !!state;
41
+ const selectIsShippingAddressValid = createSelector(selectShippingAddress, ɵ3);
91
42
 
92
- /**
93
- * @fileoverview added by tsickle
94
- * Generated from: shipping/containers/shipping.component.ts
95
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
96
- */
97
43
  class ShippingContainer {
98
- /**
99
- * @param {?} store
100
- */
101
44
  constructor(store) {
102
45
  this.store = store;
103
46
  }
104
- /**
105
- * @return {?}
106
- */
107
47
  ngOnInit() {
108
48
  this.shippingAddress$ = this.store.pipe(select(selectShippingAddress));
109
49
  this.selectedShippingOptionId$ = this.store.pipe(select(selectShippingOptionId));
110
50
  this.isShippingAddressValid$ = this.store.pipe(select(selectIsShippingAddressValid));
111
51
  }
112
- /**
113
- * @param {?} address
114
- * @return {?}
115
- */
116
52
  updateShippingAddress(address) {
117
53
  this.store.dispatch(new DaffUpdateShippingAddress(address));
118
54
  }
119
- /**
120
- * @param {?} optionId
121
- * @return {?}
122
- */
123
55
  selectShippingOption(optionId) {
124
56
  this.store.dispatch(new DaffSelectShippingOption(optionId));
125
57
  }
@@ -129,101 +61,49 @@ ShippingContainer.decorators = [
129
61
  selector: '[shipping-container]',
130
62
  template: '<ng-content></ng-content>',
131
63
  exportAs: 'ShippingContainer'
132
- }] }
64
+ },] }
133
65
  ];
134
66
  /** @nocollapse */
135
67
  ShippingContainer.ctorParameters = () => [
136
68
  { type: Store }
137
69
  ];
138
- if (false) {
139
- /** @type {?} */
140
- ShippingContainer.prototype.shippingAddress$;
141
- /** @type {?} */
142
- ShippingContainer.prototype.selectedShippingOptionId$;
143
- /** @type {?} */
144
- ShippingContainer.prototype.isShippingAddressValid$;
145
- /** @type {?} */
146
- ShippingContainer.prototype.isShippingOptionSelected$;
147
- /**
148
- * @type {?}
149
- * @private
150
- */
151
- ShippingContainer.prototype.store;
152
- }
153
70
 
154
- /**
155
- * @fileoverview added by tsickle
156
- * Generated from: order/selectors/order.selector.ts
157
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
158
- */
159
71
  /**
160
72
  * Order Feature State
161
73
  *
162
74
  * @deprecated
163
- * @type {?}
164
75
  */
165
76
  const selectOrderFeatureState = createFeatureSelector('order');
166
- const ɵ0$1 = /**
167
- * @param {?} state
168
- * @return {?}
169
- */
170
- (state) => state.order;
77
+ const ɵ0$1 = (state) => state.order;
171
78
  /**
172
79
  * Order State
173
80
  *
174
81
  * @deprecated
175
- * @type {?}
176
- */
177
- const selectOrderState = createSelector(selectOrderFeatureState, (ɵ0$1));
178
- const ɵ1$1 = /**
179
- * @param {?} state
180
- * @return {?}
181
82
  */
182
- (state) => state.order;
83
+ const selectOrderState = createSelector(selectOrderFeatureState, ɵ0$1);
84
+ const ɵ1$1 = (state) => state.order;
183
85
  /**
184
86
  * @deprecated
185
- * @type {?}
186
87
  */
187
- const selectOrder = createSelector(selectOrderState, (ɵ1$1));
188
- const ɵ2$1 = /**
189
- * @param {?} state
190
- * @return {?}
191
- */
192
- (state) => state.loading;
88
+ const selectOrder = createSelector(selectOrderState, ɵ1$1);
89
+ const ɵ2$1 = (state) => state.loading;
193
90
  /**
194
91
  * @deprecated
195
- * @type {?}
196
- */
197
- const selectLoading = createSelector(selectOrderState, (ɵ2$1));
198
- const ɵ3$1 = /**
199
- * @param {?} state
200
- * @return {?}
201
92
  */
202
- (state) => state.errors;
93
+ const selectLoading = createSelector(selectOrderState, ɵ2$1);
94
+ const ɵ3$1 = (state) => state.errors;
203
95
  /**
204
96
  * @deprecated
205
- * @type {?}
206
97
  */
207
- const selectErrors = createSelector(selectOrderState, (ɵ3$1));
98
+ const selectErrors = createSelector(selectOrderState, ɵ3$1);
208
99
 
209
- /**
210
- * @fileoverview added by tsickle
211
- * Generated from: order/containers/order.component.ts
212
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
213
- */
214
100
  /**
215
101
  * @deprecated
216
102
  */
217
103
  class OrderContainer {
218
- /**
219
- * @param {?} store
220
- */
221
104
  constructor(store) {
222
105
  this.store = store;
223
106
  }
224
- /**
225
- * @return {?}
226
- */
227
107
  ngOnInit() {
228
108
  this.order$ = this.store.pipe(select(selectOrder));
229
109
  this.loading$ = this.store.pipe(select(selectLoading));
@@ -234,63 +114,27 @@ OrderContainer.decorators = [
234
114
  selector: '[order-container]',
235
115
  template: '<ng-content></ng-content>',
236
116
  exportAs: 'OrderContainer'
237
- }] }
117
+ },] }
238
118
  ];
239
119
  /** @nocollapse */
240
120
  OrderContainer.ctorParameters = () => [
241
121
  { type: Store }
242
122
  ];
243
- if (false) {
244
- /** @type {?} */
245
- OrderContainer.prototype.order$;
246
- /** @type {?} */
247
- OrderContainer.prototype.loading$;
248
- /**
249
- * @type {?}
250
- * @private
251
- */
252
- OrderContainer.prototype.store;
253
- }
254
123
 
255
- /**
256
- * @fileoverview added by tsickle
257
- * Generated from: payment/actions/payment.actions.ts
258
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
259
- */
260
- /** @enum {string} */
261
- const DaffPaymentActionTypes = {
262
- UpdatePaymentInfoAction: "[Payment] Update Payment Info Action",
263
- };
124
+ var DaffPaymentActionTypes;
125
+ (function (DaffPaymentActionTypes) {
126
+ DaffPaymentActionTypes["UpdatePaymentInfoAction"] = "[Payment] Update Payment Info Action";
127
+ })(DaffPaymentActionTypes || (DaffPaymentActionTypes = {}));
264
128
  class DaffUpdatePaymentInfo {
265
- /**
266
- * @param {?} payload
267
- */
268
129
  constructor(payload) {
269
130
  this.payload = payload;
270
131
  this.type = DaffPaymentActionTypes.UpdatePaymentInfoAction;
271
132
  }
272
133
  }
273
- if (false) {
274
- /** @type {?} */
275
- DaffUpdatePaymentInfo.prototype.type;
276
- /** @type {?} */
277
- DaffUpdatePaymentInfo.prototype.payload;
278
- }
279
134
 
280
- /**
281
- * @fileoverview added by tsickle
282
- * Generated from: payment/reducers/payment/payment.reducer.ts
283
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
284
- */
285
- /** @type {?} */
286
135
  const initialState = {
287
136
  paymentInfo: null,
288
137
  };
289
- /**
290
- * @param {?=} state
291
- * @param {?=} action
292
- * @return {?}
293
- */
294
138
  function daffPaymentReducer(state = initialState, action) {
295
139
  switch (action.type) {
296
140
  case DaffPaymentActionTypes.UpdatePaymentInfoAction:
@@ -300,21 +144,10 @@ function daffPaymentReducer(state = initialState, action) {
300
144
  }
301
145
  }
302
146
 
303
- /**
304
- * @fileoverview added by tsickle
305
- * Generated from: payment/reducers/payment-reducers.ts
306
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
307
- */
308
- /** @type {?} */
309
147
  const daffPaymentReducers = {
310
148
  payment: daffPaymentReducer,
311
149
  };
312
150
 
313
- /**
314
- * @fileoverview added by tsickle
315
- * Generated from: payment/payment-state.module.ts
316
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
317
- */
318
151
  class DaffPaymentStateModule {
319
152
  }
320
153
  DaffPaymentStateModule.decorators = [
@@ -325,11 +158,6 @@ DaffPaymentStateModule.decorators = [
325
158
  },] }
326
159
  ];
327
160
 
328
- /**
329
- * @fileoverview added by tsickle
330
- * Generated from: payment/payment.module.ts
331
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
332
- */
333
161
  class DaffPaymentModule {
334
162
  }
335
163
  DaffPaymentModule.decorators = [
@@ -344,46 +172,22 @@ DaffPaymentModule.decorators = [
344
172
  },] }
345
173
  ];
346
174
 
347
- /**
348
- * @fileoverview added by tsickle
349
- * Generated from: payment/selectors/payment.selector.ts
350
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
351
- */
352
175
  /**
353
176
  * Payment Feature State
354
- * @type {?}
355
177
  */
356
178
  const selectPaymentFeatureState = createFeatureSelector('payment');
357
- const ɵ0$2 = /**
358
- * @param {?} state
359
- * @return {?}
360
- */
361
- (state) => state.payment;
179
+ const ɵ0$2 = (state) => state.payment;
362
180
  /**
363
181
  * Payment State
364
- * @type {?}
365
182
  */
366
- const selectPaymentState = createSelector(selectPaymentFeatureState, (ɵ0$2));
367
- const ɵ1$2 = /**
368
- * @param {?} state
369
- * @return {?}
370
- */
371
- (state) => state.paymentInfo;
372
- /** @type {?} */
373
- const selectPaymentInfo = createSelector(selectPaymentState, (ɵ1$2));
183
+ const selectPaymentState = createSelector(selectPaymentFeatureState, ɵ0$2);
184
+ const ɵ1$2 = (state) => state.paymentInfo;
185
+ const selectPaymentInfo = createSelector(selectPaymentState, ɵ1$2);
374
186
 
375
- /**
376
- * @fileoverview added by tsickle
377
- * Generated from: payment/facades/payment.facade.ts
378
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
379
- */
380
187
  /**
381
188
  * A facade for accessing state for customer payment information.
382
189
  */
383
190
  class DaffPaymentFacade {
384
- /**
385
- * @param {?} store
386
- */
387
191
  constructor(store) {
388
192
  this.store = store;
389
193
  this.paymentInfo$ = this.store.pipe(select(selectPaymentInfo));
@@ -391,13 +195,13 @@ class DaffPaymentFacade {
391
195
  /**
392
196
  * Dispatches the given action.
393
197
  *
394
- * @param {?} action action to dispatch.
395
- * @return {?}
198
+ * @param action action to dispatch.
396
199
  */
397
200
  dispatch(action) {
398
201
  this.store.dispatch(action);
399
202
  }
400
203
  }
204
+ /** @nocollapse */ DaffPaymentFacade.ɵprov = ɵɵdefineInjectable({ factory: function DaffPaymentFacade_Factory() { return new DaffPaymentFacade(ɵɵinject(Store)); }, token: DaffPaymentFacade, providedIn: DaffPaymentModule });
401
205
  DaffPaymentFacade.decorators = [
402
206
  { type: Injectable, args: [{
403
207
  providedIn: DaffPaymentModule,
@@ -407,174 +211,58 @@ DaffPaymentFacade.decorators = [
407
211
  DaffPaymentFacade.ctorParameters = () => [
408
212
  { type: Store }
409
213
  ];
410
- /** @nocollapse */ DaffPaymentFacade.ɵprov = ɵɵdefineInjectable({ factory: function DaffPaymentFacade_Factory() { return new DaffPaymentFacade(ɵɵinject(Store)); }, token: DaffPaymentFacade, providedIn: DaffPaymentModule });
411
- if (false) {
412
- /**
413
- * The payment information for a customer.
414
- * @type {?}
415
- */
416
- DaffPaymentFacade.prototype.paymentInfo$;
417
- /**
418
- * @type {?}
419
- * @private
420
- */
421
- DaffPaymentFacade.prototype.store;
422
- }
423
214
 
424
- /**
425
- * @fileoverview added by tsickle
426
- * Generated from: drivers/injection-tokens/payment-driver.token.ts
427
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
428
- */
429
- /** @type {?} */
430
215
  const DaffPaymentDriver = new InjectionToken('DaffPaymentDriver');
431
216
 
432
- /**
433
- * @fileoverview added by tsickle
434
- * Generated from: drivers/interfaces/order-service.interface.ts
435
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
436
- */
437
- /** @type {?} */
438
217
  const DaffOrderDriver = new InjectionToken('DaffOrderDriver');
439
- /**
440
- * Query order objects accessible by the logged-in user.
441
- *
442
- * @deprecated
443
- * @record
444
- * @template T
445
- */
446
- function DaffOrderServiceInterface() { }
447
- if (false) {
448
- /**
449
- * Get an order object with the specified order ID.
450
- * @param {?} orderId
451
- * @return {?}
452
- */
453
- DaffOrderServiceInterface.prototype.get = function (orderId) { };
454
- /**
455
- * List all order objects for the logged-in user.
456
- * @return {?}
457
- */
458
- DaffOrderServiceInterface.prototype.list = function () { };
459
- }
460
218
 
461
- /**
462
- * @fileoverview added by tsickle
463
- * Generated from: drivers/injection-tokens/payment-transformer.token.ts
464
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
465
- */
466
- /** @type {?} */
467
219
  const DaffPaymentTransformer = new InjectionToken('DaffPaymentTransformer');
468
220
 
469
- /**
470
- * @fileoverview added by tsickle
471
- * Generated from: billing/actions/billing.actions.ts
472
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
473
- */
474
- /** @enum {string} */
475
- const DaffBillingActionTypes = {
476
- UpdateBillingAddressAction: "[Billing] Update Billing Address Action",
477
- UpdatePaymentInfoAction: "[Billing] Update Payment Info Action",
478
- ToggleBillingAddressIsShippingAddressAction: "[Billing] Billing Address Is Shipping Address Action",
479
- };
221
+ var DaffBillingActionTypes;
222
+ (function (DaffBillingActionTypes) {
223
+ DaffBillingActionTypes["UpdateBillingAddressAction"] = "[Billing] Update Billing Address Action";
224
+ DaffBillingActionTypes["UpdatePaymentInfoAction"] = "[Billing] Update Payment Info Action";
225
+ DaffBillingActionTypes["ToggleBillingAddressIsShippingAddressAction"] = "[Billing] Billing Address Is Shipping Address Action";
226
+ })(DaffBillingActionTypes || (DaffBillingActionTypes = {}));
480
227
  class DaffUpdateBillingAddress {
481
- /**
482
- * @param {?} payload
483
- */
484
228
  constructor(payload) {
485
229
  this.payload = payload;
486
230
  this.type = DaffBillingActionTypes.UpdateBillingAddressAction;
487
231
  }
488
232
  }
489
- if (false) {
490
- /** @type {?} */
491
- DaffUpdateBillingAddress.prototype.type;
492
- /** @type {?} */
493
- DaffUpdateBillingAddress.prototype.payload;
494
- }
495
233
  class DaffUpdatePaymentInfo$1 {
496
- /**
497
- * @param {?} payload
498
- */
499
234
  constructor(payload) {
500
235
  this.payload = payload;
501
236
  this.type = DaffBillingActionTypes.UpdatePaymentInfoAction;
502
237
  }
503
238
  }
504
- if (false) {
505
- /** @type {?} */
506
- DaffUpdatePaymentInfo$1.prototype.type;
507
- /** @type {?} */
508
- DaffUpdatePaymentInfo$1.prototype.payload;
509
- }
510
239
  class DaffToggleBillingAddressIsShippingAddress {
511
240
  constructor() {
512
241
  this.type = DaffBillingActionTypes.ToggleBillingAddressIsShippingAddressAction;
513
242
  }
514
243
  }
515
- if (false) {
516
- /** @type {?} */
517
- DaffToggleBillingAddressIsShippingAddress.prototype.type;
518
- }
519
244
 
520
- /**
521
- * @fileoverview added by tsickle
522
- * Generated from: billing/selectors/billing.selector.ts
523
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
524
- */
525
245
  /**
526
246
  * Billing Feature State
527
- * @type {?}
528
247
  */
529
248
  const selectBillingFeatureState = createFeatureSelector('billing');
530
- const ɵ0$3 = /**
531
- * @param {?} state
532
- * @return {?}
533
- */
534
- (state) => state.billing;
249
+ const ɵ0$3 = (state) => state.billing;
535
250
  /**
536
251
  * Billing State
537
- * @type {?}
538
- */
539
- const selectBillingState = createSelector(selectBillingFeatureState, (ɵ0$3));
540
- const ɵ1$3 = /**
541
- * @param {?} state
542
- * @return {?}
543
252
  */
544
- (state) => state.billingAddress;
545
- /** @type {?} */
546
- const selectBillingAddress = createSelector(selectBillingState, (ɵ1$3));
547
- const ɵ2$2 = /**
548
- * @param {?} state
549
- * @return {?}
550
- */
551
- (state) => state.billingAddressIsShippingAddress;
552
- /** @type {?} */
553
- const selectBillingAddressIsShippingAddress = createSelector(selectBillingState, (ɵ2$2));
554
- const ɵ3$2 = /**
555
- * @param {?} state
556
- * @return {?}
557
- */
558
- (state) => state.paymentInfo;
559
- /** @type {?} */
560
- const selectPaymentInfo$1 = createSelector(selectBillingState, (ɵ3$2));
253
+ const selectBillingState = createSelector(selectBillingFeatureState, ɵ0$3);
254
+ const ɵ1$3 = (state) => state.billingAddress;
255
+ const selectBillingAddress = createSelector(selectBillingState, ɵ1$3);
256
+ const ɵ2$2 = (state) => state.billingAddressIsShippingAddress;
257
+ const selectBillingAddressIsShippingAddress = createSelector(selectBillingState, ɵ2$2);
258
+ const ɵ3$2 = (state) => state.paymentInfo;
259
+ const selectPaymentInfo$1 = createSelector(selectBillingState, ɵ3$2);
561
260
 
562
- /**
563
- * @fileoverview added by tsickle
564
- * Generated from: billing/reducers/billing/billing.reducer.ts
565
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
566
- */
567
- /** @type {?} */
568
261
  const initialState$1 = {
569
262
  billingAddress: null,
570
263
  billingAddressIsShippingAddress: false,
571
264
  paymentInfo: null,
572
265
  };
573
- /**
574
- * @param {?=} state
575
- * @param {?=} action
576
- * @return {?}
577
- */
578
266
  function daffBillingReducer(state = initialState$1, action) {
579
267
  switch (action.type) {
580
268
  case DaffBillingActionTypes.UpdateBillingAddressAction:
@@ -588,21 +276,10 @@ function daffBillingReducer(state = initialState$1, action) {
588
276
  }
589
277
  }
590
278
 
591
- /**
592
- * @fileoverview added by tsickle
593
- * Generated from: billing/reducers/billing-reducers.ts
594
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
595
- */
596
- /** @type {?} */
597
279
  const daffBillingReducers = {
598
280
  billing: daffBillingReducer,
599
281
  };
600
282
 
601
- /**
602
- * @fileoverview added by tsickle
603
- * Generated from: billing/billing-state.module.ts
604
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
605
- */
606
283
  class DaffBillingStateModule {
607
284
  }
608
285
  DaffBillingStateModule.decorators = [
@@ -613,43 +290,21 @@ DaffBillingStateModule.decorators = [
613
290
  },] }
614
291
  ];
615
292
 
616
- /**
617
- * @fileoverview added by tsickle
618
- * Generated from: billing/containers/billing.component.ts
619
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
620
- */
621
293
  class BillingContainer {
622
- /**
623
- * @param {?} store
624
- */
625
294
  constructor(store) {
626
295
  this.store = store;
627
296
  }
628
- /**
629
- * @return {?}
630
- */
631
297
  ngOnInit() {
632
298
  this.billingAddress$ = this.store.pipe(select(selectBillingAddress));
633
299
  this.billingAddressIsShippingAddress$ = this.store.pipe(select(selectBillingAddressIsShippingAddress));
634
300
  this.paymentInfo$ = this.store.pipe(select(selectPaymentInfo$1));
635
301
  }
636
- /**
637
- * @param {?} address
638
- * @return {?}
639
- */
640
302
  updateBillingAddress(address) {
641
303
  this.store.dispatch(new DaffUpdateBillingAddress(address));
642
304
  }
643
- /**
644
- * @return {?}
645
- */
646
305
  toggleBillingAddressIsShippingAddress() {
647
306
  this.store.dispatch(new DaffToggleBillingAddressIsShippingAddress());
648
307
  }
649
- /**
650
- * @param {?} info
651
- * @return {?}
652
- */
653
308
  updatePaymentInfo(info) {
654
309
  this.store.dispatch(new DaffUpdatePaymentInfo$1(info));
655
310
  }
@@ -659,31 +314,13 @@ BillingContainer.decorators = [
659
314
  selector: '[billing-container]',
660
315
  template: '<ng-content></ng-content>',
661
316
  exportAs: 'BillingContainer'
662
- }] }
317
+ },] }
663
318
  ];
664
319
  /** @nocollapse */
665
320
  BillingContainer.ctorParameters = () => [
666
321
  { type: Store }
667
322
  ];
668
- if (false) {
669
- /** @type {?} */
670
- BillingContainer.prototype.billingAddress$;
671
- /** @type {?} */
672
- BillingContainer.prototype.billingAddressIsShippingAddress$;
673
- /** @type {?} */
674
- BillingContainer.prototype.paymentInfo$;
675
- /**
676
- * @type {?}
677
- * @private
678
- */
679
- BillingContainer.prototype.store;
680
- }
681
323
 
682
- /**
683
- * @fileoverview added by tsickle
684
- * Generated from: billing/billing.module.ts
685
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
686
- */
687
324
  class DaffBillingModule {
688
325
  }
689
326
  DaffBillingModule.decorators = [
@@ -704,18 +341,10 @@ DaffBillingModule.decorators = [
704
341
  },] }
705
342
  ];
706
343
 
707
- /**
708
- * @fileoverview added by tsickle
709
- * Generated from: billing/facades/billing.facade.ts
710
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
711
- */
712
344
  /**
713
345
  * A facade for accessing state for the billing information of a customer
714
346
  */
715
347
  class DaffBillingFacade {
716
- /**
717
- * @param {?} store
718
- */
719
348
  constructor(store) {
720
349
  this.store = store;
721
350
  this.billingAddress$ = this.store.pipe(select(selectBillingAddress));
@@ -725,13 +354,13 @@ class DaffBillingFacade {
725
354
  /**
726
355
  * Dispatches the given action.
727
356
  *
728
- * @param {?} action action to dispatch.
729
- * @return {?}
357
+ * @param action action to dispatch.
730
358
  */
731
359
  dispatch(action) {
732
360
  this.store.dispatch(action);
733
361
  }
734
362
  }
363
+ /** @nocollapse */ DaffBillingFacade.ɵprov = ɵɵdefineInjectable({ factory: function DaffBillingFacade_Factory() { return new DaffBillingFacade(ɵɵinject(Store)); }, token: DaffBillingFacade, providedIn: DaffBillingModule });
735
364
  DaffBillingFacade.decorators = [
736
365
  { type: Injectable, args: [{
737
366
  providedIn: DaffBillingModule,
@@ -741,45 +370,11 @@ DaffBillingFacade.decorators = [
741
370
  DaffBillingFacade.ctorParameters = () => [
742
371
  { type: Store }
743
372
  ];
744
- /** @nocollapse */ DaffBillingFacade.ɵprov = ɵɵdefineInjectable({ factory: function DaffBillingFacade_Factory() { return new DaffBillingFacade(ɵɵinject(Store)); }, token: DaffBillingFacade, providedIn: DaffBillingModule });
745
- if (false) {
746
- /**
747
- * The billing address for a customer.
748
- * @type {?}
749
- */
750
- DaffBillingFacade.prototype.billingAddress$;
751
- /**
752
- * Whether or not the billing address is the same as the shipping address.
753
- * @type {?}
754
- */
755
- DaffBillingFacade.prototype.billingAddressIsShippingAddress$;
756
- /**
757
- * The payment information for a customer.
758
- * @type {?}
759
- */
760
- DaffBillingFacade.prototype.paymentInfo$;
761
- /**
762
- * @type {?}
763
- * @private
764
- */
765
- DaffBillingFacade.prototype.store;
766
- }
767
373
 
768
- /**
769
- * @fileoverview added by tsickle
770
- * Generated from: shipping/reducers/shipping/shipping.reducer.ts
771
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
772
- */
773
- /** @type {?} */
774
374
  const initialState$2 = {
775
375
  shippingAddress: null,
776
376
  selectedShippingOptionId: null,
777
377
  };
778
- /**
779
- * @param {?=} state
780
- * @param {?=} action
781
- * @return {?}
782
- */
783
378
  function daffShippingReducer(state = initialState$2, action) {
784
379
  switch (action.type) {
785
380
  case DaffShippingActionTypes.UpdateShippingAddressAction:
@@ -791,21 +386,10 @@ function daffShippingReducer(state = initialState$2, action) {
791
386
  }
792
387
  }
793
388
 
794
- /**
795
- * @fileoverview added by tsickle
796
- * Generated from: shipping/reducers/shipping-reducers.ts
797
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
798
- */
799
- /** @type {?} */
800
389
  const daffShippingReducers = {
801
390
  shipping: daffShippingReducer,
802
391
  };
803
392
 
804
- /**
805
- * @fileoverview added by tsickle
806
- * Generated from: shipping/shipping-state.module.ts
807
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
808
- */
809
393
  class DaffShippingStateModule {
810
394
  }
811
395
  DaffShippingStateModule.decorators = [
@@ -816,11 +400,6 @@ DaffShippingStateModule.decorators = [
816
400
  },] }
817
401
  ];
818
402
 
819
- /**
820
- * @fileoverview added by tsickle
821
- * Generated from: shipping/shipping.module.ts
822
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
823
- */
824
403
  class DaffShippingModule {
825
404
  }
826
405
  DaffShippingModule.decorators = [
@@ -841,18 +420,10 @@ DaffShippingModule.decorators = [
841
420
  },] }
842
421
  ];
843
422
 
844
- /**
845
- * @fileoverview added by tsickle
846
- * Generated from: shipping/facades/shipping.facade.ts
847
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
848
- */
849
423
  /**
850
424
  * A facade for accessing state for shipping information.
851
425
  */
852
426
  class DaffShippingFacade {
853
- /**
854
- * @param {?} store
855
- */
856
427
  constructor(store) {
857
428
  this.store = store;
858
429
  this.shippingAddress$ = this.store.pipe(select(selectShippingAddress));
@@ -862,13 +433,13 @@ class DaffShippingFacade {
862
433
  /**
863
434
  * Dispatches the given action.
864
435
  *
865
- * @param {?} action action to dispatch.
866
- * @return {?}
436
+ * @param action action to dispatch.
867
437
  */
868
438
  dispatch(action) {
869
439
  this.store.dispatch(action);
870
440
  }
871
441
  }
442
+ /** @nocollapse */ DaffShippingFacade.ɵprov = ɵɵdefineInjectable({ factory: function DaffShippingFacade_Factory() { return new DaffShippingFacade(ɵɵinject(Store)); }, token: DaffShippingFacade, providedIn: DaffShippingModule });
872
443
  DaffShippingFacade.decorators = [
873
444
  { type: Injectable, args: [{
874
445
  providedIn: DaffShippingModule,
@@ -878,128 +449,64 @@ DaffShippingFacade.decorators = [
878
449
  DaffShippingFacade.ctorParameters = () => [
879
450
  { type: Store }
880
451
  ];
881
- /** @nocollapse */ DaffShippingFacade.ɵprov = ɵɵdefineInjectable({ factory: function DaffShippingFacade_Factory() { return new DaffShippingFacade(ɵɵinject(Store)); }, token: DaffShippingFacade, providedIn: DaffShippingModule });
882
- if (false) {
883
- /**
884
- * The shipping address for the customer.
885
- * @type {?}
886
- */
887
- DaffShippingFacade.prototype.shippingAddress$;
888
- /**
889
- * The selected shipping option id.
890
- * @type {?}
891
- */
892
- DaffShippingFacade.prototype.selectedShippingOptionId$;
893
- /**
894
- * Is the shipping address valid.
895
- * @type {?}
896
- */
897
- DaffShippingFacade.prototype.isShippingAddressValid$;
898
- /**
899
- * @type {?}
900
- * @private
901
- */
902
- DaffShippingFacade.prototype.store;
903
- }
904
452
 
905
453
  /**
906
- * @fileoverview added by tsickle
907
- * Generated from: order/actions/order.actions.ts
908
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
454
+ * @deprecated
909
455
  */
910
- /** @enum {string} */
911
- const DaffOrderActionTypes = {
912
- PlaceOrderAction: "[Order] Place Order Action",
913
- PlaceOrderSuccessAction: "[Order] Place Order Success Action",
914
- PlaceOrderFailureAction: "[Order] Place Order Failure Action",
915
- };
916
- /** @enum {string} */
917
- const OrderActionTypes = {
918
- PlaceOrderAction: "[Order] Place Order Action",
919
- PlaceOrderSuccessAction: "[Order] Place Order Success Action",
920
- PlaceOrderFailureAction: "[Order] Place Order Failure Action",
921
- };
456
+ var DaffOrderActionTypes;
457
+ (function (DaffOrderActionTypes) {
458
+ DaffOrderActionTypes["PlaceOrderAction"] = "[Order] Place Order Action";
459
+ DaffOrderActionTypes["PlaceOrderSuccessAction"] = "[Order] Place Order Success Action";
460
+ DaffOrderActionTypes["PlaceOrderFailureAction"] = "[Order] Place Order Failure Action";
461
+ })(DaffOrderActionTypes || (DaffOrderActionTypes = {}));
462
+ /**
463
+ * @deprecated
464
+ */
465
+ var OrderActionTypes;
466
+ (function (OrderActionTypes) {
467
+ OrderActionTypes["PlaceOrderAction"] = "[Order] Place Order Action";
468
+ OrderActionTypes["PlaceOrderSuccessAction"] = "[Order] Place Order Success Action";
469
+ OrderActionTypes["PlaceOrderFailureAction"] = "[Order] Place Order Failure Action";
470
+ })(OrderActionTypes || (OrderActionTypes = {}));
922
471
  /**
923
472
  * @deprecated
924
473
  */
925
474
  class PlaceOrder {
926
- /**
927
- * @param {?} payload
928
- */
929
475
  constructor(payload) {
930
476
  this.payload = payload;
931
477
  this.type = DaffOrderActionTypes.PlaceOrderAction;
932
478
  }
933
479
  }
934
- if (false) {
935
- /** @type {?} */
936
- PlaceOrder.prototype.type;
937
- /** @type {?} */
938
- PlaceOrder.prototype.payload;
939
- }
940
480
  /**
941
481
  * @deprecated
942
482
  */
943
483
  class DaffPlaceOrder {
944
- /**
945
- * @param {?} payload
946
- */
947
484
  constructor(payload) {
948
485
  this.payload = payload;
949
486
  this.type = DaffOrderActionTypes.PlaceOrderAction;
950
487
  }
951
488
  }
952
- if (false) {
953
- /** @type {?} */
954
- DaffPlaceOrder.prototype.type;
955
- /** @type {?} */
956
- DaffPlaceOrder.prototype.payload;
957
- }
958
489
  /**
959
490
  * @deprecated
960
491
  */
961
492
  class DaffPlaceOrderSuccess {
962
- /**
963
- * @param {?} payload
964
- */
965
493
  constructor(payload) {
966
494
  this.payload = payload;
967
495
  this.type = DaffOrderActionTypes.PlaceOrderSuccessAction;
968
496
  }
969
497
  }
970
- if (false) {
971
- /** @type {?} */
972
- DaffPlaceOrderSuccess.prototype.type;
973
- /** @type {?} */
974
- DaffPlaceOrderSuccess.prototype.payload;
975
- }
976
498
  /**
977
499
  * @deprecated
978
500
  */
979
501
  class DaffPlaceOrderFailure {
980
- /**
981
- * @param {?} payload
982
- */
983
502
  constructor(payload) {
984
503
  this.payload = payload;
985
504
  this.type = DaffOrderActionTypes.PlaceOrderFailureAction;
986
505
  }
987
506
  }
988
- if (false) {
989
- /** @type {?} */
990
- DaffPlaceOrderFailure.prototype.type;
991
- /** @type {?} */
992
- DaffPlaceOrderFailure.prototype.payload;
993
- }
994
507
 
995
- /**
996
- * @fileoverview added by tsickle
997
- * Generated from: order/reducers/order/order.reducer.ts
998
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
999
- */
1000
508
  /**
1001
509
  * @deprecated
1002
- * @type {?}
1003
510
  */
1004
511
  const initialState$3 = {
1005
512
  order: null,
@@ -1008,9 +515,6 @@ const initialState$3 = {
1008
515
  };
1009
516
  /**
1010
517
  * @deprecated
1011
- * @param {?=} state
1012
- * @param {?=} action
1013
- * @return {?}
1014
518
  */
1015
519
  function daffOrderReducer(state = initialState$3, action) {
1016
520
  switch (action.type) {
@@ -1025,57 +529,24 @@ function daffOrderReducer(state = initialState$3, action) {
1025
529
  }
1026
530
  }
1027
531
 
1028
- /**
1029
- * @fileoverview added by tsickle
1030
- * Generated from: order/reducers/order-reducers.ts
1031
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1032
- */
1033
532
  /**
1034
533
  * @deprecated
1035
- * @type {?}
1036
534
  */
1037
535
  const daffOrderReducers = {
1038
536
  order: daffOrderReducer,
1039
537
  };
1040
538
 
1041
- /**
1042
- * @fileoverview added by tsickle
1043
- * Generated from: drivers/injection-tokens/driver-checkout.token.ts
1044
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1045
- */
1046
- /** @type {?} */
1047
539
  const DaffCheckoutDriver = new InjectionToken('DaffCheckoutDriver');
1048
540
 
1049
- /**
1050
- * @fileoverview added by tsickle
1051
- * Generated from: order/effects/order.effects.ts
1052
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1053
- */
1054
541
  /**
1055
542
  * @deprecated
1056
543
  */
1057
544
  class OrderEffects {
1058
- /**
1059
- * @param {?} actions$
1060
- * @param {?} checkoutDriver
1061
- */
1062
545
  constructor(actions$, checkoutDriver) {
1063
546
  this.actions$ = actions$;
1064
547
  this.checkoutDriver = checkoutDriver;
1065
- this.onPlaceOrder$ = this.actions$.pipe(ofType(DaffOrderActionTypes.PlaceOrderAction), switchMap((/**
1066
- * @param {?} action
1067
- * @return {?}
1068
- */
1069
- (action) => this.checkoutDriver.placeOrder(action.payload.id.toString())
1070
- .pipe(map((/**
1071
- * @param {?} resp
1072
- * @return {?}
1073
- */
1074
- (resp) => new DaffPlaceOrderSuccess(resp))), catchError((/**
1075
- * @param {?} error
1076
- * @return {?}
1077
- */
1078
- error => of(new DaffPlaceOrderFailure('Failed to place order'))))))));
548
+ this.onPlaceOrder$ = this.actions$.pipe(ofType(DaffOrderActionTypes.PlaceOrderAction), switchMap((action) => this.checkoutDriver.placeOrder(action.payload.id.toString())
549
+ .pipe(map((resp) => new DaffPlaceOrderSuccess(resp)), catchError(error => of(new DaffPlaceOrderFailure('Failed to place order'))))));
1079
550
  }
1080
551
  }
1081
552
  OrderEffects.decorators = [
@@ -1090,26 +561,7 @@ __decorate([
1090
561
  Effect(),
1091
562
  __metadata("design:type", Observable)
1092
563
  ], OrderEffects.prototype, "onPlaceOrder$", void 0);
1093
- if (false) {
1094
- /** @type {?} */
1095
- OrderEffects.prototype.onPlaceOrder$;
1096
- /**
1097
- * @type {?}
1098
- * @private
1099
- */
1100
- OrderEffects.prototype.actions$;
1101
- /**
1102
- * @type {?}
1103
- * @private
1104
- */
1105
- OrderEffects.prototype.checkoutDriver;
1106
- }
1107
564
 
1108
- /**
1109
- * @fileoverview added by tsickle
1110
- * Generated from: order/order-state.module.ts
1111
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1112
- */
1113
565
  /**
1114
566
  * @deprecated
1115
567
  */
@@ -1126,11 +578,6 @@ DaffOrderStateModule.decorators = [
1126
578
  },] }
1127
579
  ];
1128
580
 
1129
- /**
1130
- * @fileoverview added by tsickle
1131
- * Generated from: order/order.module.ts
1132
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1133
- */
1134
581
  /**
1135
582
  * @deprecated
1136
583
  */
@@ -1154,11 +601,6 @@ DaffOrderModule.decorators = [
1154
601
  },] }
1155
602
  ];
1156
603
 
1157
- /**
1158
- * @fileoverview added by tsickle
1159
- * Generated from: order/facades/order.facade.ts
1160
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1161
- */
1162
604
  /**
1163
605
  * A facade for accessing state for the currently selected category.
1164
606
  */
@@ -1166,9 +608,6 @@ DaffOrderModule.decorators = [
1166
608
  * @deprecated
1167
609
  */
1168
610
  class DaffOrderFacade {
1169
- /**
1170
- * @param {?} store
1171
- */
1172
611
  constructor(store) {
1173
612
  this.store = store;
1174
613
  this.order$ = this.store.pipe(select(selectOrder));
@@ -1178,13 +617,13 @@ class DaffOrderFacade {
1178
617
  /**
1179
618
  * Dispatches the given action.
1180
619
  *
1181
- * @param {?} action action to dispatch.
1182
- * @return {?}
620
+ * @param action action to dispatch.
1183
621
  */
1184
622
  dispatch(action) {
1185
623
  this.store.dispatch(action);
1186
624
  }
1187
625
  }
626
+ /** @nocollapse */ DaffOrderFacade.ɵprov = ɵɵdefineInjectable({ factory: function DaffOrderFacade_Factory() { return new DaffOrderFacade(ɵɵinject(Store)); }, token: DaffOrderFacade, providedIn: DaffOrderModule });
1188
627
  DaffOrderFacade.decorators = [
1189
628
  { type: Injectable, args: [{
1190
629
  providedIn: DaffOrderModule,
@@ -1194,35 +633,7 @@ DaffOrderFacade.decorators = [
1194
633
  DaffOrderFacade.ctorParameters = () => [
1195
634
  { type: Store }
1196
635
  ];
1197
- /** @nocollapse */ DaffOrderFacade.ɵprov = ɵɵdefineInjectable({ factory: function DaffOrderFacade_Factory() { return new DaffOrderFacade(ɵɵinject(Store)); }, token: DaffOrderFacade, providedIn: DaffOrderModule });
1198
- if (false) {
1199
- /**
1200
- * The current order.
1201
- * @type {?}
1202
- */
1203
- DaffOrderFacade.prototype.order$;
1204
- /**
1205
- * The loading state for the current order.
1206
- * @type {?}
1207
- */
1208
- DaffOrderFacade.prototype.loading$;
1209
- /**
1210
- * Any errors involved in loading the order.
1211
- * @type {?}
1212
- */
1213
- DaffOrderFacade.prototype.errors$;
1214
- /**
1215
- * @type {?}
1216
- * @private
1217
- */
1218
- DaffOrderFacade.prototype.store;
1219
- }
1220
636
 
1221
- /**
1222
- * @fileoverview added by tsickle
1223
- * Generated from: checkout.module.ts
1224
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1225
- */
1226
637
  class StateCheckoutModule {
1227
638
  }
1228
639
  StateCheckoutModule.decorators = [
@@ -1244,15 +655,7 @@ StateCheckoutModule.decorators = [
1244
655
  ];
1245
656
 
1246
657
  /**
1247
- * @fileoverview added by tsickle
1248
- * Generated from: index.ts
1249
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1250
- */
1251
-
1252
- /**
1253
- * @fileoverview added by tsickle
1254
- * Generated from: daffodil-checkout.ts
1255
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
658
+ * Generated bundle index. Do not edit.
1256
659
  */
1257
660
 
1258
661
  export { BillingContainer, DaffBillingActionTypes, DaffBillingFacade, DaffBillingModule, DaffCheckoutDriver, DaffOrderActionTypes, DaffOrderDriver, DaffOrderFacade, DaffOrderModule, DaffPaymentActionTypes, DaffPaymentDriver, DaffPaymentFacade, DaffPaymentModule, DaffPaymentTransformer, DaffPlaceOrder, DaffPlaceOrderFailure, DaffPlaceOrderSuccess, DaffSelectShippingOption, DaffShippingActionTypes, DaffShippingFacade, DaffShippingModule, DaffToggleBillingAddressIsShippingAddress, DaffUpdateBillingAddress, DaffUpdatePaymentInfo, DaffUpdateShippingAddress, OrderActionTypes, OrderContainer, PlaceOrder, ShippingContainer, StateCheckoutModule, daffBillingReducer, daffBillingReducers, daffOrderReducer, daffOrderReducers, daffPaymentReducers, daffShippingReducer, daffShippingReducers, selectBillingAddress, selectBillingAddressIsShippingAddress, selectBillingFeatureState, selectBillingState, selectErrors, selectIsShippingAddressValid, selectLoading, selectOrder, selectOrderFeatureState, selectOrderState, selectPaymentFeatureState, selectPaymentInfo, selectPaymentState, selectShippingAddress, selectShippingFeatureState, selectShippingOptionId, selectShippingState, DaffPaymentStateModule as ɵa, daffPaymentReducer as ɵb, DaffBillingStateModule as ɵd, DaffShippingStateModule as ɵe, DaffOrderStateModule as ɵf, OrderEffects as ɵg };