@daffodil/checkout 0.38.9 → 0.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/daffodil-checkout-testing.umd.js +16 -353
- package/bundles/daffodil-checkout-testing.umd.js.map +1 -1
- package/bundles/daffodil-checkout-testing.umd.min.js +1 -1
- package/bundles/daffodil-checkout-testing.umd.min.js.map +1 -1
- package/bundles/daffodil-checkout.umd.js +85 -681
- package/bundles/daffodil-checkout.umd.js.map +1 -1
- package/bundles/daffodil-checkout.umd.min.js +2 -2
- package/bundles/daffodil-checkout.umd.min.js.map +1 -1
- package/esm2015/billing/actions/billing.actions.js +7 -35
- package/esm2015/billing/billing-state.module.js +1 -6
- package/esm2015/billing/billing.module.js +1 -6
- package/esm2015/billing/containers/billing.component.js +2 -37
- package/esm2015/billing/facades/billing.facade.js +3 -34
- package/esm2015/billing/reducers/billing/billing-reducer.interface.js +2 -18
- package/esm2015/billing/reducers/billing/billing.reducer.js +1 -12
- package/esm2015/billing/reducers/billing-reducers.interface.js +2 -14
- package/esm2015/billing/reducers/billing-reducers.js +1 -7
- package/esm2015/billing/selectors/billing.selector.js +9 -35
- package/esm2015/checkout.module.js +1 -6
- package/esm2015/daffodil-checkout.js +2 -7
- package/esm2015/drivers/injection-tokens/driver-checkout.token.js +1 -7
- package/esm2015/drivers/injection-tokens/payment-driver.token.js +1 -7
- package/esm2015/drivers/injection-tokens/payment-transformer.token.js +1 -7
- package/esm2015/drivers/interfaces/checkout-service.interface.js +2 -17
- package/esm2015/drivers/interfaces/order-service.interface.js +1 -28
- package/esm2015/index.js +1 -6
- package/esm2015/models/cart-process-request.js +2 -17
- package/esm2015/models/order/order-address.js +2 -63
- package/esm2015/models/order/order-item.js +2 -55
- package/esm2015/models/order/order-payment.js +2 -47
- package/esm2015/models/order/order-shipping-rate.js +2 -37
- package/esm2015/models/order/order.js +2 -39
- package/esm2015/models/payment/payment-info.js +2 -22
- package/esm2015/models/shipping/shipping-option.js +2 -16
- package/esm2015/models/shipping/shipping-rate.js +2 -19
- package/esm2015/order/actions/order.actions.js +17 -54
- package/esm2015/order/containers/order.component.js +2 -24
- package/esm2015/order/effects/order.effects.js +3 -38
- package/esm2015/order/facades/order.facade.js +3 -34
- package/esm2015/order/order-state.module.js +1 -6
- package/esm2015/order/order.module.js +1 -6
- package/esm2015/order/reducers/order/order-reducer.interface.js +2 -19
- package/esm2015/order/reducers/order/order.reducer.js +1 -10
- package/esm2015/order/reducers/order-reducers.interface.js +2 -15
- package/esm2015/order/reducers/order-reducers.js +1 -7
- package/esm2015/order/selectors/order.selector.js +9 -35
- package/esm2015/payment/actions/payment.actions.js +5 -20
- package/esm2015/payment/facades/payment.facade.js +3 -24
- package/esm2015/payment/payment-state.module.js +1 -6
- package/esm2015/payment/payment.module.js +1 -6
- package/esm2015/payment/reducers/payment/payment-reducer.interface.js +2 -14
- package/esm2015/payment/reducers/payment/payment.reducer.js +1 -12
- package/esm2015/payment/reducers/payment-reducers.interface.js +2 -14
- package/esm2015/payment/reducers/payment-reducers.js +1 -7
- package/esm2015/payment/selectors/payment.selector.js +5 -21
- package/esm2015/shipping/actions/shipping.actions.js +6 -30
- package/esm2015/shipping/containers/shipping.component.js +2 -36
- package/esm2015/shipping/facades/shipping.facade.js +3 -34
- package/esm2015/shipping/reducers/shipping/shipping-reducer.interface.js +2 -16
- package/esm2015/shipping/reducers/shipping/shipping.reducer.js +1 -12
- package/esm2015/shipping/reducers/shipping-reducers.interface.js +2 -14
- package/esm2015/shipping/reducers/shipping-reducers.js +1 -7
- package/esm2015/shipping/selectors/shipping.selectors.js +9 -35
- package/esm2015/shipping/shipping-state.module.js +1 -6
- package/esm2015/shipping/shipping.module.js +1 -6
- package/esm2015/testing/daffodil-checkout-testing.js +2 -7
- package/esm2015/testing/drivers/in-memory/checkout-driver.module.js +1 -9
- package/esm2015/testing/drivers/in-memory/checkout.service.js +2 -23
- package/esm2015/testing/drivers/testing/checkout-driver.module.js +1 -9
- package/esm2015/testing/drivers/testing/checkout.service.js +2 -27
- package/esm2015/testing/index.js +1 -6
- package/esm2015/testing/inmemory-backend/checkout.service.js +4 -50
- package/esm2015/testing/order/factories/order-address.factory.js +2 -61
- package/esm2015/testing/order/factories/order-item.factory.js +2 -51
- package/esm2015/testing/order/factories/order-payment.factory.js +2 -45
- package/esm2015/testing/order/factories/order-shipping-rate.factory.js +2 -33
- package/esm2015/testing/order/factories/order.factory.js +2 -35
- package/esm2015/testing/payment/factories/payment.factory.js +2 -19
- package/esm2015/testing/shipping/factories/shipping-option.factory.js +2 -13
- package/esm2015/testing/shipping/factories/shipping-rate.factory.js +2 -23
- package/fesm2015/daffodil-checkout-testing.js +16 -394
- package/fesm2015/daffodil-checkout-testing.js.map +1 -1
- package/fesm2015/daffodil-checkout.js +74 -671
- package/fesm2015/daffodil-checkout.js.map +1 -1
- package/package.json +4 -4
- package/testing/package.json +1 -1
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
ar[i] = from[i];
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
|
-
return to.concat(ar || from);
|
|
242
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
243
243
|
}
|
|
244
244
|
function __await(v) {
|
|
245
245
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
@@ -356,60 +356,6 @@
|
|
|
356
356
|
}
|
|
357
357
|
return MockOrderAddress;
|
|
358
358
|
}());
|
|
359
|
-
if (false) {
|
|
360
|
-
/** @type {?} */
|
|
361
|
-
MockOrderAddress.prototype.address_id;
|
|
362
|
-
/** @type {?} */
|
|
363
|
-
MockOrderAddress.prototype.quote_id;
|
|
364
|
-
/** @type {?} */
|
|
365
|
-
MockOrderAddress.prototype.created_at;
|
|
366
|
-
/** @type {?} */
|
|
367
|
-
MockOrderAddress.prototype.updated_at;
|
|
368
|
-
/** @type {?} */
|
|
369
|
-
MockOrderAddress.prototype.customer_id;
|
|
370
|
-
/** @type {?} */
|
|
371
|
-
MockOrderAddress.prototype.customer_address_id;
|
|
372
|
-
/** @type {?} */
|
|
373
|
-
MockOrderAddress.prototype.address_type;
|
|
374
|
-
/** @type {?} */
|
|
375
|
-
MockOrderAddress.prototype.email;
|
|
376
|
-
/** @type {?} */
|
|
377
|
-
MockOrderAddress.prototype.prefix;
|
|
378
|
-
/** @type {?} */
|
|
379
|
-
MockOrderAddress.prototype.firstname;
|
|
380
|
-
/** @type {?} */
|
|
381
|
-
MockOrderAddress.prototype.middlename;
|
|
382
|
-
/** @type {?} */
|
|
383
|
-
MockOrderAddress.prototype.lastname;
|
|
384
|
-
/** @type {?} */
|
|
385
|
-
MockOrderAddress.prototype.suffix;
|
|
386
|
-
/** @type {?} */
|
|
387
|
-
MockOrderAddress.prototype.company;
|
|
388
|
-
/** @type {?} */
|
|
389
|
-
MockOrderAddress.prototype.street;
|
|
390
|
-
/** @type {?} */
|
|
391
|
-
MockOrderAddress.prototype.city;
|
|
392
|
-
/** @type {?} */
|
|
393
|
-
MockOrderAddress.prototype.state;
|
|
394
|
-
/** @type {?} */
|
|
395
|
-
MockOrderAddress.prototype.region;
|
|
396
|
-
/** @type {?} */
|
|
397
|
-
MockOrderAddress.prototype.region_id;
|
|
398
|
-
/** @type {?} */
|
|
399
|
-
MockOrderAddress.prototype.postcode;
|
|
400
|
-
/** @type {?} */
|
|
401
|
-
MockOrderAddress.prototype.country_id;
|
|
402
|
-
/** @type {?} */
|
|
403
|
-
MockOrderAddress.prototype.telephone;
|
|
404
|
-
/** @type {?} */
|
|
405
|
-
MockOrderAddress.prototype.fax;
|
|
406
|
-
/** @type {?} */
|
|
407
|
-
MockOrderAddress.prototype.shipping_method;
|
|
408
|
-
/** @type {?} */
|
|
409
|
-
MockOrderAddress.prototype.shipping_description;
|
|
410
|
-
/** @type {?} */
|
|
411
|
-
MockOrderAddress.prototype.shipping_rate;
|
|
412
|
-
}
|
|
413
359
|
/**
|
|
414
360
|
* @deprecated
|
|
415
361
|
*/
|
|
@@ -420,6 +366,7 @@
|
|
|
420
366
|
}
|
|
421
367
|
return DaffOrderAddressFactory;
|
|
422
368
|
}(testing.DaffModelFactory));
|
|
369
|
+
/** @nocollapse */ DaffOrderAddressFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffOrderAddressFactory_Factory() { return new DaffOrderAddressFactory(); }, token: DaffOrderAddressFactory, providedIn: "root" });
|
|
423
370
|
DaffOrderAddressFactory.decorators = [
|
|
424
371
|
{ type: i0.Injectable, args: [{
|
|
425
372
|
providedIn: 'root',
|
|
@@ -427,7 +374,6 @@
|
|
|
427
374
|
];
|
|
428
375
|
/** @nocollapse */
|
|
429
376
|
DaffOrderAddressFactory.ctorParameters = function () { return []; };
|
|
430
|
-
/** @nocollapse */ DaffOrderAddressFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffOrderAddressFactory_Factory() { return new DaffOrderAddressFactory(); }, token: DaffOrderAddressFactory, providedIn: "root" });
|
|
431
377
|
|
|
432
378
|
/**
|
|
433
379
|
* @deprecated
|
|
@@ -458,50 +404,6 @@
|
|
|
458
404
|
}
|
|
459
405
|
return MockOrderItem;
|
|
460
406
|
}());
|
|
461
|
-
if (false) {
|
|
462
|
-
/** @type {?} */
|
|
463
|
-
MockOrderItem.prototype.item_id;
|
|
464
|
-
/** @type {?} */
|
|
465
|
-
MockOrderItem.prototype.image;
|
|
466
|
-
/** @type {?} */
|
|
467
|
-
MockOrderItem.prototype.quote_id;
|
|
468
|
-
/** @type {?} */
|
|
469
|
-
MockOrderItem.prototype.created_at;
|
|
470
|
-
/** @type {?} */
|
|
471
|
-
MockOrderItem.prototype.updated_at;
|
|
472
|
-
/** @type {?} */
|
|
473
|
-
MockOrderItem.prototype.product_id;
|
|
474
|
-
/** @type {?} */
|
|
475
|
-
MockOrderItem.prototype.parent_item_id;
|
|
476
|
-
/** @type {?} */
|
|
477
|
-
MockOrderItem.prototype.sku;
|
|
478
|
-
/** @type {?} */
|
|
479
|
-
MockOrderItem.prototype.name;
|
|
480
|
-
/** @type {?} */
|
|
481
|
-
MockOrderItem.prototype.description;
|
|
482
|
-
/** @type {?} */
|
|
483
|
-
MockOrderItem.prototype.weight;
|
|
484
|
-
/** @type {?} */
|
|
485
|
-
MockOrderItem.prototype.qty;
|
|
486
|
-
/** @type {?} */
|
|
487
|
-
MockOrderItem.prototype.price;
|
|
488
|
-
/** @type {?} */
|
|
489
|
-
MockOrderItem.prototype.discount_percent;
|
|
490
|
-
/** @type {?} */
|
|
491
|
-
MockOrderItem.prototype.discount_amount;
|
|
492
|
-
/** @type {?} */
|
|
493
|
-
MockOrderItem.prototype.tax_percent;
|
|
494
|
-
/** @type {?} */
|
|
495
|
-
MockOrderItem.prototype.tax_amount;
|
|
496
|
-
/** @type {?} */
|
|
497
|
-
MockOrderItem.prototype.row_total;
|
|
498
|
-
/** @type {?} */
|
|
499
|
-
MockOrderItem.prototype.row_total_with_discount;
|
|
500
|
-
/** @type {?} */
|
|
501
|
-
MockOrderItem.prototype.row_weight;
|
|
502
|
-
/** @type {?} */
|
|
503
|
-
MockOrderItem.prototype.tax_before_discount;
|
|
504
|
-
}
|
|
505
407
|
/**
|
|
506
408
|
* @deprecated
|
|
507
409
|
*/
|
|
@@ -512,6 +414,7 @@
|
|
|
512
414
|
}
|
|
513
415
|
return DaffOrderItemFactory;
|
|
514
416
|
}(testing.DaffModelFactory));
|
|
417
|
+
/** @nocollapse */ DaffOrderItemFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffOrderItemFactory_Factory() { return new DaffOrderItemFactory(); }, token: DaffOrderItemFactory, providedIn: "root" });
|
|
515
418
|
DaffOrderItemFactory.decorators = [
|
|
516
419
|
{ type: i0.Injectable, args: [{
|
|
517
420
|
providedIn: 'root',
|
|
@@ -519,7 +422,6 @@
|
|
|
519
422
|
];
|
|
520
423
|
/** @nocollapse */
|
|
521
424
|
DaffOrderItemFactory.ctorParameters = function () { return []; };
|
|
522
|
-
/** @nocollapse */ DaffOrderItemFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffOrderItemFactory_Factory() { return new DaffOrderItemFactory(); }, token: DaffOrderItemFactory, providedIn: "root" });
|
|
523
425
|
|
|
524
426
|
/**
|
|
525
427
|
* @deprecated
|
|
@@ -547,44 +449,6 @@
|
|
|
547
449
|
}
|
|
548
450
|
return MockOrderPayment;
|
|
549
451
|
}());
|
|
550
|
-
if (false) {
|
|
551
|
-
/** @type {?} */
|
|
552
|
-
MockOrderPayment.prototype.id;
|
|
553
|
-
/** @type {?} */
|
|
554
|
-
MockOrderPayment.prototype.payment_id;
|
|
555
|
-
/** @type {?} */
|
|
556
|
-
MockOrderPayment.prototype.quote_id;
|
|
557
|
-
/** @type {?} */
|
|
558
|
-
MockOrderPayment.prototype.created_at;
|
|
559
|
-
/** @type {?} */
|
|
560
|
-
MockOrderPayment.prototype.updated_at;
|
|
561
|
-
/** @type {?} */
|
|
562
|
-
MockOrderPayment.prototype.method;
|
|
563
|
-
/** @type {?} */
|
|
564
|
-
MockOrderPayment.prototype.cc_type;
|
|
565
|
-
/** @type {?} */
|
|
566
|
-
MockOrderPayment.prototype.cc_number_enc;
|
|
567
|
-
/** @type {?} */
|
|
568
|
-
MockOrderPayment.prototype.cc_last4;
|
|
569
|
-
/** @type {?} */
|
|
570
|
-
MockOrderPayment.prototype.cc_cid_enc;
|
|
571
|
-
/** @type {?} */
|
|
572
|
-
MockOrderPayment.prototype.cc_owner;
|
|
573
|
-
/** @type {?} */
|
|
574
|
-
MockOrderPayment.prototype.cc_exp_month;
|
|
575
|
-
/** @type {?} */
|
|
576
|
-
MockOrderPayment.prototype.cc_exp_year;
|
|
577
|
-
/** @type {?} */
|
|
578
|
-
MockOrderPayment.prototype.cc_ss_owner;
|
|
579
|
-
/** @type {?} */
|
|
580
|
-
MockOrderPayment.prototype.cc_ss_start_month;
|
|
581
|
-
/** @type {?} */
|
|
582
|
-
MockOrderPayment.prototype.cc_ss_start_year;
|
|
583
|
-
/** @type {?} */
|
|
584
|
-
MockOrderPayment.prototype.po_number;
|
|
585
|
-
/** @type {?} */
|
|
586
|
-
MockOrderPayment.prototype.cc_ss_issue;
|
|
587
|
-
}
|
|
588
452
|
/**
|
|
589
453
|
* @deprecated
|
|
590
454
|
*/
|
|
@@ -595,6 +459,7 @@
|
|
|
595
459
|
}
|
|
596
460
|
return DaffOrderPaymentFactory;
|
|
597
461
|
}(testing.DaffModelFactory));
|
|
462
|
+
/** @nocollapse */ DaffOrderPaymentFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffOrderPaymentFactory_Factory() { return new DaffOrderPaymentFactory(); }, token: DaffOrderPaymentFactory, providedIn: "root" });
|
|
598
463
|
DaffOrderPaymentFactory.decorators = [
|
|
599
464
|
{ type: i0.Injectable, args: [{
|
|
600
465
|
providedIn: 'root',
|
|
@@ -602,7 +467,6 @@
|
|
|
602
467
|
];
|
|
603
468
|
/** @nocollapse */
|
|
604
469
|
DaffOrderPaymentFactory.ctorParameters = function () { return []; };
|
|
605
|
-
/** @nocollapse */ DaffOrderPaymentFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffOrderPaymentFactory_Factory() { return new DaffOrderPaymentFactory(); }, token: DaffOrderPaymentFactory, providedIn: "root" });
|
|
606
470
|
|
|
607
471
|
/**
|
|
608
472
|
* @deprecated
|
|
@@ -624,32 +488,6 @@
|
|
|
624
488
|
}
|
|
625
489
|
return MockOrderShippingRate;
|
|
626
490
|
}());
|
|
627
|
-
if (false) {
|
|
628
|
-
/** @type {?} */
|
|
629
|
-
MockOrderShippingRate.prototype.rate_id;
|
|
630
|
-
/** @type {?} */
|
|
631
|
-
MockOrderShippingRate.prototype.address_id;
|
|
632
|
-
/** @type {?} */
|
|
633
|
-
MockOrderShippingRate.prototype.created_at;
|
|
634
|
-
/** @type {?} */
|
|
635
|
-
MockOrderShippingRate.prototype.updated_at;
|
|
636
|
-
/** @type {?} */
|
|
637
|
-
MockOrderShippingRate.prototype.carrier;
|
|
638
|
-
/** @type {?} */
|
|
639
|
-
MockOrderShippingRate.prototype.carrier_title;
|
|
640
|
-
/** @type {?} */
|
|
641
|
-
MockOrderShippingRate.prototype.code;
|
|
642
|
-
/** @type {?} */
|
|
643
|
-
MockOrderShippingRate.prototype.method;
|
|
644
|
-
/** @type {?} */
|
|
645
|
-
MockOrderShippingRate.prototype.method_description;
|
|
646
|
-
/** @type {?} */
|
|
647
|
-
MockOrderShippingRate.prototype.price;
|
|
648
|
-
/** @type {?} */
|
|
649
|
-
MockOrderShippingRate.prototype.error_message;
|
|
650
|
-
/** @type {?} */
|
|
651
|
-
MockOrderShippingRate.prototype.method_title;
|
|
652
|
-
}
|
|
653
491
|
/**
|
|
654
492
|
* @deprecated
|
|
655
493
|
*/
|
|
@@ -660,6 +498,7 @@
|
|
|
660
498
|
}
|
|
661
499
|
return DaffOrderShippingRateFactory;
|
|
662
500
|
}(testing.DaffModelFactory));
|
|
501
|
+
/** @nocollapse */ DaffOrderShippingRateFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffOrderShippingRateFactory_Factory() { return new DaffOrderShippingRateFactory(); }, token: DaffOrderShippingRateFactory, providedIn: "root" });
|
|
663
502
|
DaffOrderShippingRateFactory.decorators = [
|
|
664
503
|
{ type: i0.Injectable, args: [{
|
|
665
504
|
providedIn: 'root',
|
|
@@ -667,7 +506,6 @@
|
|
|
667
506
|
];
|
|
668
507
|
/** @nocollapse */
|
|
669
508
|
DaffOrderShippingRateFactory.ctorParameters = function () { return []; };
|
|
670
|
-
/** @nocollapse */ DaffOrderShippingRateFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffOrderShippingRateFactory_Factory() { return new DaffOrderShippingRateFactory(); }, token: DaffOrderShippingRateFactory, providedIn: "root" });
|
|
671
509
|
|
|
672
510
|
/**
|
|
673
511
|
* @deprecated
|
|
@@ -690,34 +528,6 @@
|
|
|
690
528
|
}
|
|
691
529
|
return MockOrder;
|
|
692
530
|
}());
|
|
693
|
-
if (false) {
|
|
694
|
-
/** @type {?} */
|
|
695
|
-
MockOrder.prototype.id;
|
|
696
|
-
/** @type {?} */
|
|
697
|
-
MockOrder.prototype.created_at;
|
|
698
|
-
/** @type {?} */
|
|
699
|
-
MockOrder.prototype.updated_at;
|
|
700
|
-
/** @type {?} */
|
|
701
|
-
MockOrder.prototype.store_to_base_rate;
|
|
702
|
-
/** @type {?} */
|
|
703
|
-
MockOrder.prototype.grand_total;
|
|
704
|
-
/** @type {?} */
|
|
705
|
-
MockOrder.prototype.checkout_method;
|
|
706
|
-
/** @type {?} */
|
|
707
|
-
MockOrder.prototype.customer_id;
|
|
708
|
-
/** @type {?} */
|
|
709
|
-
MockOrder.prototype.coupon_code;
|
|
710
|
-
/** @type {?} */
|
|
711
|
-
MockOrder.prototype.subtotal;
|
|
712
|
-
/** @type {?} */
|
|
713
|
-
MockOrder.prototype.subtotal_with_discount;
|
|
714
|
-
/** @type {?} */
|
|
715
|
-
MockOrder.prototype.items;
|
|
716
|
-
/** @type {?} */
|
|
717
|
-
MockOrder.prototype.addresses;
|
|
718
|
-
/** @type {?} */
|
|
719
|
-
MockOrder.prototype.payment;
|
|
720
|
-
}
|
|
721
531
|
;
|
|
722
532
|
/**
|
|
723
533
|
* @deprecated
|
|
@@ -729,6 +539,7 @@
|
|
|
729
539
|
}
|
|
730
540
|
return DaffOrderFactory;
|
|
731
541
|
}(testing.DaffModelFactory));
|
|
542
|
+
/** @nocollapse */ DaffOrderFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffOrderFactory_Factory() { return new DaffOrderFactory(); }, token: DaffOrderFactory, providedIn: "root" });
|
|
732
543
|
DaffOrderFactory.decorators = [
|
|
733
544
|
{ type: i0.Injectable, args: [{
|
|
734
545
|
providedIn: 'root',
|
|
@@ -736,7 +547,6 @@
|
|
|
736
547
|
];
|
|
737
548
|
/** @nocollapse */
|
|
738
549
|
DaffOrderFactory.ctorParameters = function () { return []; };
|
|
739
|
-
/** @nocollapse */ DaffOrderFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffOrderFactory_Factory() { return new DaffOrderFactory(); }, token: DaffOrderFactory, providedIn: "root" });
|
|
740
550
|
|
|
741
551
|
var MockPaymentInfo = /** @class */ (function () {
|
|
742
552
|
function MockPaymentInfo() {
|
|
@@ -748,18 +558,6 @@
|
|
|
748
558
|
}
|
|
749
559
|
return MockPaymentInfo;
|
|
750
560
|
}());
|
|
751
|
-
if (false) {
|
|
752
|
-
/** @type {?} */
|
|
753
|
-
MockPaymentInfo.prototype.name;
|
|
754
|
-
/** @type {?} */
|
|
755
|
-
MockPaymentInfo.prototype.cardnumber;
|
|
756
|
-
/** @type {?} */
|
|
757
|
-
MockPaymentInfo.prototype.month;
|
|
758
|
-
/** @type {?} */
|
|
759
|
-
MockPaymentInfo.prototype.year;
|
|
760
|
-
/** @type {?} */
|
|
761
|
-
MockPaymentInfo.prototype.securitycode;
|
|
762
|
-
}
|
|
763
561
|
var DaffPaymentFactory = /** @class */ (function (_super) {
|
|
764
562
|
__extends(DaffPaymentFactory, _super);
|
|
765
563
|
function DaffPaymentFactory() {
|
|
@@ -767,6 +565,7 @@
|
|
|
767
565
|
}
|
|
768
566
|
return DaffPaymentFactory;
|
|
769
567
|
}(testing.DaffModelFactory));
|
|
568
|
+
/** @nocollapse */ DaffPaymentFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffPaymentFactory_Factory() { return new DaffPaymentFactory(); }, token: DaffPaymentFactory, providedIn: "root" });
|
|
770
569
|
DaffPaymentFactory.decorators = [
|
|
771
570
|
{ type: i0.Injectable, args: [{
|
|
772
571
|
providedIn: 'root',
|
|
@@ -774,7 +573,6 @@
|
|
|
774
573
|
];
|
|
775
574
|
/** @nocollapse */
|
|
776
575
|
DaffPaymentFactory.ctorParameters = function () { return []; };
|
|
777
|
-
/** @nocollapse */ DaffPaymentFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffPaymentFactory_Factory() { return new DaffPaymentFactory(); }, token: DaffPaymentFactory, providedIn: "root" });
|
|
778
576
|
|
|
779
577
|
var MockShippingOption = /** @class */ (function () {
|
|
780
578
|
function MockShippingOption() {
|
|
@@ -783,12 +581,6 @@
|
|
|
783
581
|
}
|
|
784
582
|
return MockShippingOption;
|
|
785
583
|
}());
|
|
786
|
-
if (false) {
|
|
787
|
-
/** @type {?} */
|
|
788
|
-
MockShippingOption.prototype.id;
|
|
789
|
-
/** @type {?} */
|
|
790
|
-
MockShippingOption.prototype.text;
|
|
791
|
-
}
|
|
792
584
|
var DaffShippingOptionFactory = /** @class */ (function (_super) {
|
|
793
585
|
__extends(DaffShippingOptionFactory, _super);
|
|
794
586
|
function DaffShippingOptionFactory() {
|
|
@@ -796,6 +588,7 @@
|
|
|
796
588
|
}
|
|
797
589
|
return DaffShippingOptionFactory;
|
|
798
590
|
}(testing.DaffModelFactory));
|
|
591
|
+
/** @nocollapse */ DaffShippingOptionFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffShippingOptionFactory_Factory() { return new DaffShippingOptionFactory(); }, token: DaffShippingOptionFactory, providedIn: "root" });
|
|
799
592
|
DaffShippingOptionFactory.decorators = [
|
|
800
593
|
{ type: i0.Injectable, args: [{
|
|
801
594
|
providedIn: 'root',
|
|
@@ -803,7 +596,6 @@
|
|
|
803
596
|
];
|
|
804
597
|
/** @nocollapse */
|
|
805
598
|
DaffShippingOptionFactory.ctorParameters = function () { return []; };
|
|
806
|
-
/** @nocollapse */ DaffShippingOptionFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffShippingOptionFactory_Factory() { return new DaffShippingOptionFactory(); }, token: DaffShippingOptionFactory, providedIn: "root" });
|
|
807
599
|
|
|
808
600
|
var MockShippingRate = /** @class */ (function () {
|
|
809
601
|
function MockShippingRate() {
|
|
@@ -817,22 +609,6 @@
|
|
|
817
609
|
}
|
|
818
610
|
return MockShippingRate;
|
|
819
611
|
}());
|
|
820
|
-
if (false) {
|
|
821
|
-
/** @type {?} */
|
|
822
|
-
MockShippingRate.prototype.rate_id;
|
|
823
|
-
/** @type {?} */
|
|
824
|
-
MockShippingRate.prototype.price;
|
|
825
|
-
/** @type {?} */
|
|
826
|
-
MockShippingRate.prototype.carrier;
|
|
827
|
-
/** @type {?} */
|
|
828
|
-
MockShippingRate.prototype.code;
|
|
829
|
-
/** @type {?} */
|
|
830
|
-
MockShippingRate.prototype.method;
|
|
831
|
-
/** @type {?} */
|
|
832
|
-
MockShippingRate.prototype.method_description;
|
|
833
|
-
/** @type {?} */
|
|
834
|
-
MockShippingRate.prototype.method_title;
|
|
835
|
-
}
|
|
836
612
|
var DaffShippingRateFactory = /** @class */ (function (_super) {
|
|
837
613
|
__extends(DaffShippingRateFactory, _super);
|
|
838
614
|
function DaffShippingRateFactory() {
|
|
@@ -840,6 +616,7 @@
|
|
|
840
616
|
}
|
|
841
617
|
return DaffShippingRateFactory;
|
|
842
618
|
}(testing.DaffModelFactory));
|
|
619
|
+
/** @nocollapse */ DaffShippingRateFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffShippingRateFactory_Factory() { return new DaffShippingRateFactory(); }, token: DaffShippingRateFactory, providedIn: "root" });
|
|
843
620
|
DaffShippingRateFactory.decorators = [
|
|
844
621
|
{ type: i0.Injectable, args: [{
|
|
845
622
|
providedIn: 'root',
|
|
@@ -847,31 +624,18 @@
|
|
|
847
624
|
];
|
|
848
625
|
/** @nocollapse */
|
|
849
626
|
DaffShippingRateFactory.ctorParameters = function () { return []; };
|
|
850
|
-
/** @nocollapse */ DaffShippingRateFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffShippingRateFactory_Factory() { return new DaffShippingRateFactory(); }, token: DaffShippingRateFactory, providedIn: "root" });
|
|
851
627
|
|
|
852
|
-
/**
|
|
853
|
-
* @fileoverview added by tsickle
|
|
854
|
-
* Generated from: drivers/testing/checkout.service.ts
|
|
855
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
856
|
-
*/
|
|
857
628
|
var DaffTestingCheckoutService = /** @class */ (function () {
|
|
858
|
-
/**
|
|
859
|
-
* @param {?} orderFactory
|
|
860
|
-
* @param {?} orderItemFactory
|
|
861
|
-
*/
|
|
862
629
|
function DaffTestingCheckoutService(orderFactory, orderItemFactory) {
|
|
863
630
|
this.orderFactory = orderFactory;
|
|
864
631
|
this.orderItemFactory = orderItemFactory;
|
|
865
632
|
}
|
|
866
|
-
/**
|
|
867
|
-
* @param {?} cartId
|
|
868
|
-
* @return {?}
|
|
869
|
-
*/
|
|
870
633
|
DaffTestingCheckoutService.prototype.placeOrder = function (cartId) {
|
|
871
634
|
return rxjs.of(this.orderFactory.create({ items: this.orderItemFactory.createMany(2) }));
|
|
872
635
|
};
|
|
873
636
|
return DaffTestingCheckoutService;
|
|
874
637
|
}());
|
|
638
|
+
/** @nocollapse */ DaffTestingCheckoutService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffTestingCheckoutService_Factory() { return new DaffTestingCheckoutService(i0.ɵɵinject(DaffOrderFactory), i0.ɵɵinject(DaffOrderItemFactory)); }, token: DaffTestingCheckoutService, providedIn: "root" });
|
|
875
639
|
DaffTestingCheckoutService.decorators = [
|
|
876
640
|
{ type: i0.Injectable, args: [{
|
|
877
641
|
providedIn: 'root',
|
|
@@ -882,42 +646,18 @@
|
|
|
882
646
|
{ type: DaffOrderFactory },
|
|
883
647
|
{ type: DaffOrderItemFactory }
|
|
884
648
|
]; };
|
|
885
|
-
/** @nocollapse */ DaffTestingCheckoutService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffTestingCheckoutService_Factory() { return new DaffTestingCheckoutService(i0.ɵɵinject(DaffOrderFactory), i0.ɵɵinject(DaffOrderItemFactory)); }, token: DaffTestingCheckoutService, providedIn: "root" });
|
|
886
|
-
if (false) {
|
|
887
|
-
/**
|
|
888
|
-
* @type {?}
|
|
889
|
-
* @private
|
|
890
|
-
*/
|
|
891
|
-
DaffTestingCheckoutService.prototype.orderFactory;
|
|
892
|
-
/**
|
|
893
|
-
* @type {?}
|
|
894
|
-
* @private
|
|
895
|
-
*/
|
|
896
|
-
DaffTestingCheckoutService.prototype.orderItemFactory;
|
|
897
|
-
}
|
|
898
649
|
|
|
899
|
-
/**
|
|
900
|
-
* @fileoverview added by tsickle
|
|
901
|
-
* Generated from: drivers/in-memory/checkout.service.ts
|
|
902
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
903
|
-
*/
|
|
904
650
|
var DaffInMemoryCheckoutService = /** @class */ (function () {
|
|
905
|
-
/**
|
|
906
|
-
* @param {?} http
|
|
907
|
-
*/
|
|
908
651
|
function DaffInMemoryCheckoutService(http) {
|
|
909
652
|
this.http = http;
|
|
910
653
|
this.url = '/api/checkout';
|
|
911
654
|
}
|
|
912
|
-
/**
|
|
913
|
-
* @param {?} cartId
|
|
914
|
-
* @return {?}
|
|
915
|
-
*/
|
|
916
655
|
DaffInMemoryCheckoutService.prototype.placeOrder = function (cartId) {
|
|
917
656
|
return this.http.post(this.url + '/placeOrder', { cartId: cartId });
|
|
918
657
|
};
|
|
919
658
|
return DaffInMemoryCheckoutService;
|
|
920
659
|
}());
|
|
660
|
+
/** @nocollapse */ DaffInMemoryCheckoutService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffInMemoryCheckoutService_Factory() { return new DaffInMemoryCheckoutService(i0.ɵɵinject(i1.HttpClient)); }, token: DaffInMemoryCheckoutService, providedIn: "root" });
|
|
921
661
|
DaffInMemoryCheckoutService.decorators = [
|
|
922
662
|
{ type: i0.Injectable, args: [{
|
|
923
663
|
providedIn: 'root',
|
|
@@ -927,28 +667,10 @@
|
|
|
927
667
|
DaffInMemoryCheckoutService.ctorParameters = function () { return [
|
|
928
668
|
{ type: i1.HttpClient }
|
|
929
669
|
]; };
|
|
930
|
-
/** @nocollapse */ DaffInMemoryCheckoutService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffInMemoryCheckoutService_Factory() { return new DaffInMemoryCheckoutService(i0.ɵɵinject(i1.HttpClient)); }, token: DaffInMemoryCheckoutService, providedIn: "root" });
|
|
931
|
-
if (false) {
|
|
932
|
-
/** @type {?} */
|
|
933
|
-
DaffInMemoryCheckoutService.prototype.url;
|
|
934
|
-
/**
|
|
935
|
-
* @type {?}
|
|
936
|
-
* @private
|
|
937
|
-
*/
|
|
938
|
-
DaffInMemoryCheckoutService.prototype.http;
|
|
939
|
-
}
|
|
940
670
|
|
|
941
|
-
/**
|
|
942
|
-
* @fileoverview added by tsickle
|
|
943
|
-
* Generated from: drivers/in-memory/checkout-driver.module.ts
|
|
944
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
945
|
-
*/
|
|
946
671
|
var DaffCheckoutInMemoryDriverModule = /** @class */ (function () {
|
|
947
672
|
function DaffCheckoutInMemoryDriverModule() {
|
|
948
673
|
}
|
|
949
|
-
/**
|
|
950
|
-
* @return {?}
|
|
951
|
-
*/
|
|
952
674
|
DaffCheckoutInMemoryDriverModule.forRoot = function () {
|
|
953
675
|
return {
|
|
954
676
|
ngModule: DaffCheckoutInMemoryDriverModule,
|
|
@@ -970,17 +692,9 @@
|
|
|
970
692
|
},] }
|
|
971
693
|
];
|
|
972
694
|
|
|
973
|
-
/**
|
|
974
|
-
* @fileoverview added by tsickle
|
|
975
|
-
* Generated from: drivers/testing/checkout-driver.module.ts
|
|
976
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
977
|
-
*/
|
|
978
695
|
var DaffCheckoutTestingDriverModule = /** @class */ (function () {
|
|
979
696
|
function DaffCheckoutTestingDriverModule() {
|
|
980
697
|
}
|
|
981
|
-
/**
|
|
982
|
-
* @return {?}
|
|
983
|
-
*/
|
|
984
698
|
DaffCheckoutTestingDriverModule.forRoot = function () {
|
|
985
699
|
return {
|
|
986
700
|
ngModule: DaffCheckoutTestingDriverModule,
|
|
@@ -1002,31 +716,15 @@
|
|
|
1002
716
|
},] }
|
|
1003
717
|
];
|
|
1004
718
|
|
|
1005
|
-
/**
|
|
1006
|
-
* @fileoverview added by tsickle
|
|
1007
|
-
* Generated from: inmemory-backend/checkout.service.ts
|
|
1008
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1009
|
-
*/
|
|
1010
719
|
var DaffInMemoryBackendCheckoutService = /** @class */ (function () {
|
|
1011
|
-
/**
|
|
1012
|
-
* @param {?} orderFactory
|
|
1013
|
-
* @param {?} orderItemFactory
|
|
1014
|
-
* @param {?} productImageFactory
|
|
1015
|
-
*/
|
|
1016
720
|
function DaffInMemoryBackendCheckoutService(orderFactory, orderItemFactory, productImageFactory) {
|
|
1017
721
|
this.orderFactory = orderFactory;
|
|
1018
722
|
this.orderItemFactory = orderItemFactory;
|
|
1019
723
|
this.productImageFactory = productImageFactory;
|
|
1020
724
|
}
|
|
1021
|
-
/**
|
|
1022
|
-
* @param {?} reqInfo
|
|
1023
|
-
* @return {?}
|
|
1024
|
-
*/
|
|
1025
725
|
DaffInMemoryBackendCheckoutService.prototype.post = function (reqInfo) {
|
|
1026
726
|
var _this = this;
|
|
1027
|
-
return reqInfo.utils.createResponse$((
|
|
1028
|
-
* @return {?}
|
|
1029
|
-
*/function () {
|
|
727
|
+
return reqInfo.utils.createResponse$(function () {
|
|
1030
728
|
if (reqInfo.id === 'placeOrder') {
|
|
1031
729
|
//should make a service call to clear cart here.
|
|
1032
730
|
// this.driver.cartService.clear(reqInfo.req.body.orderId).subscribe();
|
|
@@ -1036,20 +734,13 @@
|
|
|
1036
734
|
body: _this.order,
|
|
1037
735
|
status: angularInMemoryWebApi.STATUS.OK,
|
|
1038
736
|
};
|
|
1039
|
-
})
|
|
737
|
+
});
|
|
1040
738
|
};
|
|
1041
|
-
/**
|
|
1042
|
-
* @return {?}
|
|
1043
|
-
*/
|
|
1044
739
|
DaffInMemoryBackendCheckoutService.prototype.createDb = function () {
|
|
1045
740
|
return {
|
|
1046
741
|
order: null,
|
|
1047
742
|
};
|
|
1048
743
|
};
|
|
1049
|
-
/**
|
|
1050
|
-
* @private
|
|
1051
|
-
* @return {?}
|
|
1052
|
-
*/
|
|
1053
744
|
DaffInMemoryBackendCheckoutService.prototype.populateOrder = function () {
|
|
1054
745
|
this.order = this.orderFactory.create({
|
|
1055
746
|
items: this.orderItemFactory.createMany(2, {
|
|
@@ -1059,6 +750,7 @@
|
|
|
1059
750
|
};
|
|
1060
751
|
return DaffInMemoryBackendCheckoutService;
|
|
1061
752
|
}());
|
|
753
|
+
/** @nocollapse */ DaffInMemoryBackendCheckoutService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffInMemoryBackendCheckoutService_Factory() { return new DaffInMemoryBackendCheckoutService(i0.ɵɵinject(DaffOrderFactory), i0.ɵɵinject(DaffOrderItemFactory), i0.ɵɵinject(i3.DaffProductImageFactory)); }, token: DaffInMemoryBackendCheckoutService, providedIn: "root" });
|
|
1062
754
|
DaffInMemoryBackendCheckoutService.decorators = [
|
|
1063
755
|
{ type: i0.Injectable, args: [{
|
|
1064
756
|
providedIn: 'root',
|
|
@@ -1070,40 +762,11 @@
|
|
|
1070
762
|
{ type: DaffOrderItemFactory },
|
|
1071
763
|
{ type: i3.DaffProductImageFactory }
|
|
1072
764
|
]; };
|
|
1073
|
-
/** @nocollapse */ DaffInMemoryBackendCheckoutService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffInMemoryBackendCheckoutService_Factory() { return new DaffInMemoryBackendCheckoutService(i0.ɵɵinject(DaffOrderFactory), i0.ɵɵinject(DaffOrderItemFactory), i0.ɵɵinject(i3.DaffProductImageFactory)); }, token: DaffInMemoryBackendCheckoutService, providedIn: "root" });
|
|
1074
|
-
if (false) {
|
|
1075
|
-
/**
|
|
1076
|
-
* @type {?}
|
|
1077
|
-
* @private
|
|
1078
|
-
*/
|
|
1079
|
-
DaffInMemoryBackendCheckoutService.prototype.order;
|
|
1080
|
-
/**
|
|
1081
|
-
* @type {?}
|
|
1082
|
-
* @private
|
|
1083
|
-
*/
|
|
1084
|
-
DaffInMemoryBackendCheckoutService.prototype.orderFactory;
|
|
1085
|
-
/**
|
|
1086
|
-
* @type {?}
|
|
1087
|
-
* @private
|
|
1088
|
-
*/
|
|
1089
|
-
DaffInMemoryBackendCheckoutService.prototype.orderItemFactory;
|
|
1090
|
-
/**
|
|
1091
|
-
* @type {?}
|
|
1092
|
-
* @private
|
|
1093
|
-
*/
|
|
1094
|
-
DaffInMemoryBackendCheckoutService.prototype.productImageFactory;
|
|
1095
|
-
}
|
|
1096
765
|
|
|
1097
|
-
|
|
1098
|
-
* @fileoverview added by tsickle
|
|
1099
|
-
* Generated from: index.ts
|
|
1100
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1101
|
-
*/
|
|
766
|
+
// Order
|
|
1102
767
|
|
|
1103
768
|
/**
|
|
1104
|
-
*
|
|
1105
|
-
* Generated from: daffodil-checkout-testing.ts
|
|
1106
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
769
|
+
* Generated bundle index. Do not edit.
|
|
1107
770
|
*/
|
|
1108
771
|
|
|
1109
772
|
exports.DaffCheckoutInMemoryDriverModule = DaffCheckoutInMemoryDriverModule;
|