@daffodil/order 0.94.1 → 0.95.1

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 (40) hide show
  1. package/fesm2022/daffodil-order-driver-in-memory.mjs +191 -159
  2. package/fesm2022/daffodil-order-driver-in-memory.mjs.map +1 -1
  3. package/fesm2022/daffodil-order-driver-magento-2.4.0-testing.mjs +0 -4
  4. package/fesm2022/daffodil-order-driver-magento-2.4.0.mjs +288 -297
  5. package/fesm2022/daffodil-order-driver-magento-2.4.0.mjs.map +1 -1
  6. package/fesm2022/daffodil-order-driver-magento-2.4.1-testing.mjs +813 -424
  7. package/fesm2022/daffodil-order-driver-magento-2.4.1-testing.mjs.map +1 -1
  8. package/fesm2022/daffodil-order-driver-magento-2.4.1.mjs +370 -428
  9. package/fesm2022/daffodil-order-driver-magento-2.4.1.mjs.map +1 -1
  10. package/fesm2022/daffodil-order-driver-magento-auto-testing.mjs +7 -0
  11. package/fesm2022/daffodil-order-driver-magento-auto-testing.mjs.map +1 -0
  12. package/fesm2022/daffodil-order-driver-magento-auto.mjs +7 -0
  13. package/fesm2022/daffodil-order-driver-magento-auto.mjs.map +1 -0
  14. package/fesm2022/daffodil-order-driver-testing.mjs +113 -74
  15. package/fesm2022/daffodil-order-driver-testing.mjs.map +1 -1
  16. package/fesm2022/daffodil-order-driver.mjs +18 -29
  17. package/fesm2022/daffodil-order-driver.mjs.map +1 -1
  18. package/fesm2022/daffodil-order-state-testing.mjs +147 -111
  19. package/fesm2022/daffodil-order-state-testing.mjs.map +1 -1
  20. package/fesm2022/daffodil-order-state.mjs +547 -546
  21. package/fesm2022/daffodil-order-state.mjs.map +1 -1
  22. package/fesm2022/daffodil-order-testing.mjs +841 -470
  23. package/fesm2022/daffodil-order-testing.mjs.map +1 -1
  24. package/fesm2022/daffodil-order.mjs +12 -17
  25. package/fesm2022/daffodil-order.mjs.map +1 -1
  26. package/package.json +1 -1
  27. package/types/daffodil-order-driver-in-memory.d.ts +53 -51
  28. package/types/daffodil-order-driver-magento-2.4.0-testing.d.ts +1 -2
  29. package/types/daffodil-order-driver-magento-2.4.0.d.ts +142 -158
  30. package/types/daffodil-order-driver-magento-2.4.1-testing.d.ts +238 -258
  31. package/types/daffodil-order-driver-magento-2.4.1.d.ts +205 -234
  32. package/types/daffodil-order-driver-magento-auto-testing.d.ts +1 -0
  33. package/types/daffodil-order-driver-magento-auto.d.ts +1 -0
  34. package/types/daffodil-order-driver-testing.d.ts +27 -24
  35. package/types/daffodil-order-driver.d.ts +23 -31
  36. package/types/daffodil-order-state-testing.d.ts +52 -47
  37. package/types/daffodil-order-state.d.ts +293 -317
  38. package/types/daffodil-order-testing.d.ts +228 -246
  39. package/types/daffodil-order.d.ts +141 -158
  40. package/fesm2022/daffodil-order-driver-magento-2.4.0-testing.mjs.map +0 -1
@@ -1,258 +1,238 @@
1
- import * as _daffodil_order_driver_magento_2_4_1 from '@daffodil/order/driver/magento/2.4.1';
2
- import { MagentoOrderBundleItemSelectedOptionValue, MagentoOrderBundleItemSelectedOption, MagentoOrderItem, MagentoOrderItemTypenames, MagentoOrderItemType, MagentoOrderBundleItem, MagentoOrderAddress, MagentoOrderCreditItem, MagentoOrderTotal, MagentoOrderCredit, MagentoOrderInvoiceItem, MagentoOrderInvoice, MagentoOrderPayment, MagentoOrderShipmentItem, MagentoOrderShipmentTracking, MagentoOrderShipment, MagentoOrder } from '@daffodil/order/driver/magento/2.4.1';
3
- import { DaffModelFactory } from '@daffodil/core/testing';
4
- import { MagentoMoneyFactory, MagentoDiscountFactory } from '@daffodil/driver/magento/testing';
5
- import * as _daffodil_driver_types_daffodil_driver_magento from '@daffodil/driver/types/daffodil-driver-magento';
6
- import * as i0 from '@angular/core';
7
- import * as _daffodil_driver_magento from '@daffodil/driver/magento';
8
- import { MagentoDiscount, MagentoMoney } from '@daffodil/driver/magento';
9
-
10
- declare class MockMagentoOrderBundleItemSelectedOptionValue implements MagentoOrderBundleItemSelectedOptionValue {
11
- private moneyFactory;
12
- product_name: string;
13
- product_sku: string;
14
- quantity: number;
15
- price: _daffodil_driver_types_daffodil_driver_magento.MagentoMoney;
16
- constructor(moneyFactory: MagentoMoneyFactory);
17
- }
18
- declare class MagentoOrderBundleItemSelectedOptionValueFactory extends DaffModelFactory<MagentoOrderBundleItemSelectedOptionValue> {
19
- constructor(moneyFactory: MagentoMoneyFactory);
20
- static ɵfac: i0.ɵɵFactoryDeclaration<MagentoOrderBundleItemSelectedOptionValueFactory, never>;
21
- static ɵprov: i0.ɵɵInjectableDeclaration<MagentoOrderBundleItemSelectedOptionValueFactory>;
22
- }
23
-
24
- declare class MockMagentoOrderBundleItemSelectedOption implements MagentoOrderBundleItemSelectedOption {
25
- private valueFactory;
26
- label: string;
27
- values: _daffodil_order_driver_magento_2_4_1.MagentoOrderBundleItemSelectedOptionValue[];
28
- constructor(valueFactory: MagentoOrderBundleItemSelectedOptionValueFactory);
29
- }
30
- declare class MagentoOrderBundleItemSelectedOptionFactory extends DaffModelFactory<MagentoOrderBundleItemSelectedOption> {
31
- constructor(valueFactory: MagentoOrderBundleItemSelectedOptionValueFactory);
32
- static ɵfac: i0.ɵɵFactoryDeclaration<MagentoOrderBundleItemSelectedOptionFactory, never>;
33
- static ɵprov: i0.ɵɵInjectableDeclaration<MagentoOrderBundleItemSelectedOptionFactory>;
34
- }
35
-
36
- declare class MockOrderItem implements MagentoOrderItem {
37
- private discountFactory;
38
- private moneyFactory;
39
- __typename: MagentoOrderItemTypenames;
40
- quantity_canceled: number;
41
- quantity_invoiced: number;
42
- quantity_ordered: number;
43
- quantity_refunded: number;
44
- quantity_returned: number;
45
- quantity_shipped: number;
46
- product_sku: string;
47
- product_type: MagentoOrderItemType;
48
- selected_options: any[];
49
- entered_options: any[];
50
- status: string;
51
- product_sale_price: _daffodil_driver_magento.MagentoMoney;
52
- product_name: string;
53
- product_url_key: string;
54
- discounts: MagentoDiscount[];
55
- constructor(discountFactory: MagentoDiscountFactory, moneyFactory: MagentoMoneyFactory);
56
- private createDiscounts;
57
- }
58
- declare class MagentoOrderItemFactory extends DaffModelFactory<MagentoOrderItem> {
59
- constructor(discountFactory: MagentoDiscountFactory, moneyFactory: MagentoMoneyFactory);
60
- static ɵfac: i0.ɵɵFactoryDeclaration<MagentoOrderItemFactory, never>;
61
- static ɵprov: i0.ɵɵInjectableDeclaration<MagentoOrderItemFactory>;
62
- }
63
-
64
- declare class MockBundleOrderItem extends MockOrderItem implements MagentoOrderBundleItem {
65
- private optionFactory;
66
- __typename: MagentoOrderItemTypenames;
67
- type: MagentoOrderItemType;
68
- bundle_options: _daffodil_order_driver_magento_2_4_1.MagentoOrderBundleItemSelectedOption[];
69
- constructor(optionFactory: MagentoOrderBundleItemSelectedOptionFactory, discountFactory: MagentoDiscountFactory, moneyFactory: MagentoMoneyFactory);
70
- }
71
- declare class MagentoOrderBundleItemFactory extends DaffModelFactory<MagentoOrderBundleItem> {
72
- constructor(optionFactory: MagentoOrderBundleItemSelectedOptionFactory, discountFactory: MagentoDiscountFactory, moneyFactory: MagentoMoneyFactory);
73
- static ɵfac: i0.ɵɵFactoryDeclaration<MagentoOrderBundleItemFactory, never>;
74
- static ɵprov: i0.ɵɵInjectableDeclaration<MagentoOrderBundleItemFactory>;
75
- }
76
-
77
- declare class MockOrderAddress implements MagentoOrderAddress {
78
- __typename: "OrderAddress";
79
- street: string[];
80
- city: string;
81
- region_id: number;
82
- region_code: string;
83
- postcode: string;
84
- country: string;
85
- country_code: string;
86
- prefix: string;
87
- suffix: string;
88
- firstname: string;
89
- middlename: string;
90
- lastname: string;
91
- telephone: string;
92
- fax: string;
93
- company: string;
94
- }
95
- declare class MagentoOrderAddressFactory extends DaffModelFactory<MagentoOrderAddress> {
96
- constructor();
97
- static ɵfac: i0.ɵɵFactoryDeclaration<MagentoOrderAddressFactory, never>;
98
- static ɵprov: i0.ɵɵInjectableDeclaration<MagentoOrderAddressFactory>;
99
- }
100
-
101
- declare class MockOrderCreditItem implements MagentoOrderCreditItem {
102
- private itemFactory;
103
- __typename: "CreditMemoItem";
104
- order_item: _daffodil_order_driver_magento_2_4_1.MagentoOrderItem;
105
- quantity_refunded: number;
106
- constructor(itemFactory: MagentoOrderItemFactory);
107
- }
108
- declare class MagentoOrderCreditItemFactory extends DaffModelFactory<MagentoOrderCreditItem> {
109
- constructor(itemFactory: MagentoOrderItemFactory);
110
- static ɵfac: i0.ɵɵFactoryDeclaration<MagentoOrderCreditItemFactory, never>;
111
- static ɵprov: i0.ɵɵInjectableDeclaration<MagentoOrderCreditItemFactory>;
112
- }
113
-
114
- declare class MockOrderTotal implements MagentoOrderTotal {
115
- private moneyFactory;
116
- private discountFactory;
117
- discounts: MagentoDiscount[];
118
- grand_total: MagentoMoney;
119
- subtotal: MagentoMoney;
120
- total_shipping: MagentoMoney;
121
- total_tax: MagentoMoney;
122
- constructor(moneyFactory: MagentoMoneyFactory, discountFactory: MagentoDiscountFactory);
123
- private createMoney;
124
- private createDiscounts;
125
- }
126
- declare class MagentoOrderTotalFactory extends DaffModelFactory<MagentoOrderTotal> {
127
- constructor(moneyFactory: MagentoMoneyFactory, discountFactory: MagentoDiscountFactory);
128
- static ɵfac: i0.ɵɵFactoryDeclaration<MagentoOrderTotalFactory, never>;
129
- static ɵprov: i0.ɵɵInjectableDeclaration<MagentoOrderTotalFactory>;
130
- }
131
-
132
- declare class MockOrderCredit implements MagentoOrderCredit {
133
- private itemFactory;
134
- private totalFactory;
135
- __typename: "CreditMemo";
136
- items: _daffodil_order_driver_magento_2_4_1.MagentoOrderCreditItem[];
137
- total: _daffodil_order_driver_magento_2_4_1.MagentoOrderTotal;
138
- constructor(itemFactory: MagentoOrderCreditItemFactory, totalFactory: MagentoOrderTotalFactory);
139
- }
140
- declare class MagentoOrderCreditFactory extends DaffModelFactory<MagentoOrderCredit> {
141
- constructor(itemFactory: MagentoOrderCreditItemFactory, totalFactory: MagentoOrderTotalFactory);
142
- static ɵfac: i0.ɵɵFactoryDeclaration<MagentoOrderCreditFactory, never>;
143
- static ɵprov: i0.ɵɵInjectableDeclaration<MagentoOrderCreditFactory>;
144
- }
145
-
146
- declare class MockOrderInvoiceItem implements MagentoOrderInvoiceItem {
147
- private itemFactory;
148
- __typename: "InvoiceItem";
149
- order_item: _daffodil_order_driver_magento_2_4_1.MagentoOrderItem;
150
- quantity_invoiced: number;
151
- constructor(itemFactory: MagentoOrderItemFactory);
152
- }
153
- declare class MagentoOrderInvoiceItemFactory extends DaffModelFactory<MagentoOrderInvoiceItem> {
154
- constructor(itemFactory: MagentoOrderItemFactory);
155
- static ɵfac: i0.ɵɵFactoryDeclaration<MagentoOrderInvoiceItemFactory, never>;
156
- static ɵprov: i0.ɵɵInjectableDeclaration<MagentoOrderInvoiceItemFactory>;
157
- }
158
-
159
- declare class MockOrderInvoice implements MagentoOrderInvoice {
160
- private itemFactory;
161
- private totalFactory;
162
- __typename: "Invoice";
163
- items: _daffodil_order_driver_magento_2_4_1.MagentoOrderInvoiceItem[];
164
- total: _daffodil_order_driver_magento_2_4_1.MagentoOrderTotal;
165
- constructor(itemFactory: MagentoOrderInvoiceItemFactory, totalFactory: MagentoOrderTotalFactory);
166
- }
167
- declare class MagentoOrderInvoiceFactory extends DaffModelFactory<MagentoOrderInvoice> {
168
- constructor(itemFactory: MagentoOrderInvoiceItemFactory, totalFactory: MagentoOrderTotalFactory);
169
- static ɵfac: i0.ɵɵFactoryDeclaration<MagentoOrderInvoiceFactory, never>;
170
- static ɵprov: i0.ɵɵInjectableDeclaration<MagentoOrderInvoiceFactory>;
171
- }
172
-
173
- declare class MockOrderPayment implements MagentoOrderPayment {
174
- __typename: "OrderPaymentMethod";
175
- name: string;
176
- type: string;
177
- additional_data: any[];
178
- }
179
- declare class MagentoOrderPaymentFactory extends DaffModelFactory<MagentoOrderPayment> {
180
- constructor();
181
- static ɵfac: i0.ɵɵFactoryDeclaration<MagentoOrderPaymentFactory, never>;
182
- static ɵprov: i0.ɵɵInjectableDeclaration<MagentoOrderPaymentFactory>;
183
- }
184
-
185
- declare class MockOrderShipmentItem implements MagentoOrderShipmentItem {
186
- private itemFactory;
187
- __typename: "ShipmentItem";
188
- order_item: _daffodil_order_driver_magento_2_4_1.MagentoOrderItem;
189
- quantity_shipped: number;
190
- constructor(itemFactory: MagentoOrderItemFactory);
191
- }
192
- declare class MagentoOrderShipmentItemFactory extends DaffModelFactory<MagentoOrderShipmentItem> {
193
- constructor(itemFactory: MagentoOrderItemFactory);
194
- static ɵfac: i0.ɵɵFactoryDeclaration<MagentoOrderShipmentItemFactory, never>;
195
- static ɵprov: i0.ɵɵInjectableDeclaration<MagentoOrderShipmentItemFactory>;
196
- }
197
-
198
- declare class MockOrderShipmentTracking implements MagentoOrderShipmentTracking {
199
- __typename: "ShipmentTracking";
200
- number: string;
201
- carrier: string;
202
- title: string;
203
- }
204
- declare class MagentoOrderShipmentTrackingFactory extends DaffModelFactory<MagentoOrderShipmentTracking> {
205
- constructor();
206
- static ɵfac: i0.ɵɵFactoryDeclaration<MagentoOrderShipmentTrackingFactory, never>;
207
- static ɵprov: i0.ɵɵInjectableDeclaration<MagentoOrderShipmentTrackingFactory>;
208
- }
209
-
210
- declare class MockOrderShipment implements MagentoOrderShipment {
211
- private trackingFactory;
212
- private itemFactory;
213
- __typename: "OrderShipment";
214
- tracking: MagentoOrderShipmentTracking[];
215
- items: MagentoOrderShipmentItem[];
216
- constructor(trackingFactory: MagentoOrderShipmentTrackingFactory, itemFactory: MagentoOrderShipmentItemFactory);
217
- private createTracking;
218
- private createItems;
219
- }
220
- declare class MagentoOrderShipmentFactory extends DaffModelFactory<MagentoOrderShipment> {
221
- constructor(trackingFactory: MagentoOrderShipmentTrackingFactory, itemFactory: MagentoOrderShipmentItemFactory);
222
- static ɵfac: i0.ɵɵFactoryDeclaration<MagentoOrderShipmentFactory, never>;
223
- static ɵprov: i0.ɵɵInjectableDeclaration<MagentoOrderShipmentFactory>;
224
- }
225
-
226
- declare class MockOrder implements MagentoOrder {
227
- private totalFactory;
228
- private itemFactory;
229
- private addressFactory;
230
- private shipmentFactory;
231
- private paymentFactory;
232
- private invoiceFactory;
233
- private creditFactory;
234
- __typename: "GraycoreGuestOrder";
235
- id: string;
236
- number: string;
237
- email: string;
238
- order_date: string;
239
- status: string;
240
- carrier: string;
241
- shipping_method: string;
242
- total: _daffodil_order_driver_magento_2_4_1.MagentoOrderTotal;
243
- items: _daffodil_order_driver_magento_2_4_1.MagentoOrderItem[];
244
- billing_address: _daffodil_order_driver_magento_2_4_1.MagentoOrderAddress;
245
- shipping_address: _daffodil_order_driver_magento_2_4_1.MagentoOrderAddress;
246
- shipments: _daffodil_order_driver_magento_2_4_1.MagentoOrderShipment[];
247
- payment_methods: _daffodil_order_driver_magento_2_4_1.MagentoOrderPayment[];
248
- invoices: _daffodil_order_driver_magento_2_4_1.MagentoOrderInvoice[];
249
- credit_memos: _daffodil_order_driver_magento_2_4_1.MagentoOrderCredit[];
250
- constructor(totalFactory: MagentoOrderTotalFactory, itemFactory: MagentoOrderItemFactory, addressFactory: MagentoOrderAddressFactory, shipmentFactory: MagentoOrderShipmentFactory, paymentFactory: MagentoOrderPaymentFactory, invoiceFactory: MagentoOrderInvoiceFactory, creditFactory: MagentoOrderCreditFactory);
251
- }
252
- declare class MagentoOrderFactory extends DaffModelFactory<MagentoOrder> {
253
- constructor(totalFactory: MagentoOrderTotalFactory, itemFactory: MagentoOrderItemFactory, addressFactory: MagentoOrderAddressFactory, shipmentFactory: MagentoOrderShipmentFactory, paymentFactory: MagentoOrderPaymentFactory, invoiceFactory: MagentoOrderInvoiceFactory, creditFactory: MagentoOrderCreditFactory);
254
- static ɵfac: i0.ɵɵFactoryDeclaration<MagentoOrderFactory, never>;
255
- static ɵprov: i0.ɵɵInjectableDeclaration<MagentoOrderFactory>;
256
- }
257
-
258
- export { MagentoOrderAddressFactory, MagentoOrderBundleItemFactory, MagentoOrderBundleItemSelectedOptionFactory, MagentoOrderBundleItemSelectedOptionValueFactory, MagentoOrderCreditFactory, MagentoOrderCreditItemFactory, MagentoOrderFactory, MagentoOrderInvoiceFactory, MagentoOrderInvoiceItemFactory, MagentoOrderItemFactory, MagentoOrderPaymentFactory, MagentoOrderShipmentFactory, MagentoOrderShipmentItemFactory, MagentoOrderShipmentTrackingFactory, MagentoOrderTotalFactory, MockBundleOrderItem, MockMagentoOrderBundleItemSelectedOption, MockMagentoOrderBundleItemSelectedOptionValue, MockOrder, MockOrderAddress, MockOrderCredit, MockOrderCreditItem, MockOrderInvoice, MockOrderInvoiceItem, MockOrderItem, MockOrderPayment, MockOrderShipment, MockOrderShipmentItem, MockOrderShipmentTracking, MockOrderTotal };
1
+ import { DaffModelFactory } from "@daffodil/core/testing";
2
+ import { MagentoDiscountFactory, MagentoMoneyFactory } from "@daffodil/driver/magento/2.4.7/testing";
3
+ import { MagentoOrder, MagentoOrderAddress, MagentoOrderBundleItem, MagentoOrderBundleItemSelectedOption, MagentoOrderBundleItemSelectedOptionValue, MagentoOrderCredit, MagentoOrderCreditItem, MagentoOrderInvoice, MagentoOrderInvoiceItem, MagentoOrderItem, MagentoOrderItemType, MagentoOrderItemTypenames, MagentoOrderPayment, MagentoOrderShipment, MagentoOrderShipmentItem, MagentoOrderShipmentTracking, MagentoOrderTotal } from "@daffodil/order/driver/magento/2.4.1";
4
+ import * as i0 from "@angular/core";
5
+ import { MagentoDiscount, MagentoMoney } from "@daffodil/driver/magento/2.4.7";
6
+ export declare class MockMagentoOrderBundleItemSelectedOptionValue implements MagentoOrderBundleItemSelectedOptionValue {
7
+ private moneyFactory;
8
+ product_name: string;
9
+ product_sku: string;
10
+ quantity: number;
11
+ price: import("@daffodil/driver/types/daffodil-driver-magento-2.4.7").MagentoMoney;
12
+ constructor(moneyFactory: MagentoMoneyFactory);
13
+ }
14
+ export declare class MagentoOrderBundleItemSelectedOptionValueFactory extends DaffModelFactory<MagentoOrderBundleItemSelectedOptionValue> {
15
+ constructor(moneyFactory: MagentoMoneyFactory);
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagentoOrderBundleItemSelectedOptionValueFactory, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
18
+ }
19
+ export declare class MockMagentoOrderBundleItemSelectedOption implements MagentoOrderBundleItemSelectedOption {
20
+ private valueFactory;
21
+ label: string;
22
+ values: import("@daffodil/order/driver/magento/2.4.1").MagentoOrderBundleItemSelectedOptionValue[];
23
+ constructor(valueFactory: MagentoOrderBundleItemSelectedOptionValueFactory);
24
+ }
25
+ export declare class MagentoOrderBundleItemSelectedOptionFactory extends DaffModelFactory<MagentoOrderBundleItemSelectedOption> {
26
+ constructor(valueFactory: MagentoOrderBundleItemSelectedOptionValueFactory);
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagentoOrderBundleItemSelectedOptionFactory, never>;
28
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
29
+ }
30
+ export declare class MockOrderItem implements MagentoOrderItem {
31
+ private discountFactory;
32
+ private moneyFactory;
33
+ __typename: MagentoOrderItemTypenames;
34
+ quantity_canceled: number;
35
+ quantity_invoiced: number;
36
+ quantity_ordered: number;
37
+ quantity_refunded: number;
38
+ quantity_returned: number;
39
+ quantity_shipped: number;
40
+ product_sku: string;
41
+ product_type: MagentoOrderItemType;
42
+ selected_options: any[];
43
+ entered_options: any[];
44
+ status: string;
45
+ product_sale_price: import("@daffodil/driver/magento/2.4.7").MagentoMoney;
46
+ product_name: string;
47
+ product_url_key: string;
48
+ discounts: MagentoDiscount[];
49
+ constructor(discountFactory: MagentoDiscountFactory, moneyFactory: MagentoMoneyFactory);
50
+ private createDiscounts;
51
+ }
52
+ export declare class MagentoOrderItemFactory extends DaffModelFactory<MagentoOrderItem> {
53
+ constructor(discountFactory: MagentoDiscountFactory, moneyFactory: MagentoMoneyFactory);
54
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagentoOrderItemFactory, never>;
55
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
56
+ }
57
+ export declare class MockBundleOrderItem extends MockOrderItem implements MagentoOrderBundleItem {
58
+ private optionFactory;
59
+ __typename: MagentoOrderItemTypenames;
60
+ type: MagentoOrderItemType;
61
+ bundle_options: import("@daffodil/order/driver/magento/2.4.1").MagentoOrderBundleItemSelectedOption[];
62
+ constructor(optionFactory: MagentoOrderBundleItemSelectedOptionFactory, discountFactory: MagentoDiscountFactory, moneyFactory: MagentoMoneyFactory);
63
+ }
64
+ export declare class MagentoOrderBundleItemFactory extends DaffModelFactory<MagentoOrderBundleItem> {
65
+ constructor(optionFactory: MagentoOrderBundleItemSelectedOptionFactory, discountFactory: MagentoDiscountFactory, moneyFactory: MagentoMoneyFactory);
66
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagentoOrderBundleItemFactory, never>;
67
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
68
+ }
69
+ export declare class MockOrderAddress implements MagentoOrderAddress {
70
+ __typename: "OrderAddress";
71
+ street: string[];
72
+ city: string;
73
+ region_id: number;
74
+ region_code: string;
75
+ postcode: string;
76
+ country: string;
77
+ country_code: string;
78
+ prefix: string;
79
+ suffix: string;
80
+ firstname: string;
81
+ middlename: string;
82
+ lastname: string;
83
+ telephone: string;
84
+ fax: string;
85
+ company: string;
86
+ }
87
+ export declare class MagentoOrderAddressFactory extends DaffModelFactory<MagentoOrderAddress> {
88
+ constructor();
89
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagentoOrderAddressFactory, never>;
90
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
91
+ }
92
+ export declare class MockOrderCreditItem implements MagentoOrderCreditItem {
93
+ private itemFactory;
94
+ __typename: "CreditMemoItem";
95
+ order_item: import("@daffodil/order/driver/magento/2.4.1").MagentoOrderItem;
96
+ quantity_refunded: number;
97
+ constructor(itemFactory: MagentoOrderItemFactory);
98
+ }
99
+ export declare class MagentoOrderCreditItemFactory extends DaffModelFactory<MagentoOrderCreditItem> {
100
+ constructor(itemFactory: MagentoOrderItemFactory);
101
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagentoOrderCreditItemFactory, never>;
102
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
103
+ }
104
+ export declare class MockOrderTotal implements MagentoOrderTotal {
105
+ private moneyFactory;
106
+ private discountFactory;
107
+ discounts: MagentoDiscount[];
108
+ grand_total: MagentoMoney;
109
+ subtotal: MagentoMoney;
110
+ total_shipping: MagentoMoney;
111
+ total_tax: MagentoMoney;
112
+ constructor(moneyFactory: MagentoMoneyFactory, discountFactory: MagentoDiscountFactory);
113
+ private createMoney;
114
+ private createDiscounts;
115
+ }
116
+ export declare class MagentoOrderTotalFactory extends DaffModelFactory<MagentoOrderTotal> {
117
+ constructor(moneyFactory: MagentoMoneyFactory, discountFactory: MagentoDiscountFactory);
118
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagentoOrderTotalFactory, never>;
119
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
120
+ }
121
+ export declare class MockOrderCredit implements MagentoOrderCredit {
122
+ private itemFactory;
123
+ private totalFactory;
124
+ __typename: "CreditMemo";
125
+ items: import("@daffodil/order/driver/magento/2.4.1").MagentoOrderCreditItem[];
126
+ total: import("@daffodil/order/driver/magento/2.4.1").MagentoOrderTotal;
127
+ constructor(itemFactory: MagentoOrderCreditItemFactory, totalFactory: MagentoOrderTotalFactory);
128
+ }
129
+ export declare class MagentoOrderCreditFactory extends DaffModelFactory<MagentoOrderCredit> {
130
+ constructor(itemFactory: MagentoOrderCreditItemFactory, totalFactory: MagentoOrderTotalFactory);
131
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagentoOrderCreditFactory, never>;
132
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
133
+ }
134
+ export declare class MockOrderInvoiceItem implements MagentoOrderInvoiceItem {
135
+ private itemFactory;
136
+ __typename: "InvoiceItem";
137
+ order_item: import("@daffodil/order/driver/magento/2.4.1").MagentoOrderItem;
138
+ quantity_invoiced: number;
139
+ constructor(itemFactory: MagentoOrderItemFactory);
140
+ }
141
+ export declare class MagentoOrderInvoiceItemFactory extends DaffModelFactory<MagentoOrderInvoiceItem> {
142
+ constructor(itemFactory: MagentoOrderItemFactory);
143
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagentoOrderInvoiceItemFactory, never>;
144
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
145
+ }
146
+ export declare class MockOrderInvoice implements MagentoOrderInvoice {
147
+ private itemFactory;
148
+ private totalFactory;
149
+ __typename: "Invoice";
150
+ items: import("@daffodil/order/driver/magento/2.4.1").MagentoOrderInvoiceItem[];
151
+ total: import("@daffodil/order/driver/magento/2.4.1").MagentoOrderTotal;
152
+ constructor(itemFactory: MagentoOrderInvoiceItemFactory, totalFactory: MagentoOrderTotalFactory);
153
+ }
154
+ export declare class MagentoOrderInvoiceFactory extends DaffModelFactory<MagentoOrderInvoice> {
155
+ constructor(itemFactory: MagentoOrderInvoiceItemFactory, totalFactory: MagentoOrderTotalFactory);
156
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagentoOrderInvoiceFactory, never>;
157
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
158
+ }
159
+ export declare class MockOrderPayment implements MagentoOrderPayment {
160
+ __typename: "OrderPaymentMethod";
161
+ name: string;
162
+ type: string;
163
+ additional_data: any[];
164
+ }
165
+ export declare class MagentoOrderPaymentFactory extends DaffModelFactory<MagentoOrderPayment> {
166
+ constructor();
167
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagentoOrderPaymentFactory, never>;
168
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
169
+ }
170
+ export declare class MockOrderShipmentItem implements MagentoOrderShipmentItem {
171
+ private itemFactory;
172
+ __typename: "ShipmentItem";
173
+ order_item: import("@daffodil/order/driver/magento/2.4.1").MagentoOrderItem;
174
+ quantity_shipped: number;
175
+ constructor(itemFactory: MagentoOrderItemFactory);
176
+ }
177
+ export declare class MagentoOrderShipmentItemFactory extends DaffModelFactory<MagentoOrderShipmentItem> {
178
+ constructor(itemFactory: MagentoOrderItemFactory);
179
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagentoOrderShipmentItemFactory, never>;
180
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
181
+ }
182
+ export declare class MockOrderShipmentTracking implements MagentoOrderShipmentTracking {
183
+ __typename: "ShipmentTracking";
184
+ number: string;
185
+ carrier: string;
186
+ title: string;
187
+ }
188
+ export declare class MagentoOrderShipmentTrackingFactory extends DaffModelFactory<MagentoOrderShipmentTracking> {
189
+ constructor();
190
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagentoOrderShipmentTrackingFactory, never>;
191
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
192
+ }
193
+ export declare class MockOrderShipment implements MagentoOrderShipment {
194
+ private trackingFactory;
195
+ private itemFactory;
196
+ __typename: "OrderShipment";
197
+ tracking: MagentoOrderShipmentTracking[];
198
+ items: MagentoOrderShipmentItem[];
199
+ constructor(trackingFactory: MagentoOrderShipmentTrackingFactory, itemFactory: MagentoOrderShipmentItemFactory);
200
+ private createTracking;
201
+ private createItems;
202
+ }
203
+ export declare class MagentoOrderShipmentFactory extends DaffModelFactory<MagentoOrderShipment> {
204
+ constructor(trackingFactory: MagentoOrderShipmentTrackingFactory, itemFactory: MagentoOrderShipmentItemFactory);
205
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagentoOrderShipmentFactory, never>;
206
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
207
+ }
208
+ export declare class MockOrder implements MagentoOrder {
209
+ private totalFactory;
210
+ private itemFactory;
211
+ private addressFactory;
212
+ private shipmentFactory;
213
+ private paymentFactory;
214
+ private invoiceFactory;
215
+ private creditFactory;
216
+ __typename: "GraycoreGuestOrder";
217
+ id: string;
218
+ number: string;
219
+ email: string;
220
+ order_date: string;
221
+ status: string;
222
+ carrier: string;
223
+ shipping_method: string;
224
+ total: import("@daffodil/order/driver/magento/2.4.1").MagentoOrderTotal;
225
+ items: import("@daffodil/order/driver/magento/2.4.1").MagentoOrderItem[];
226
+ billing_address: import("@daffodil/order/driver/magento/2.4.1").MagentoOrderAddress;
227
+ shipping_address: import("@daffodil/order/driver/magento/2.4.1").MagentoOrderAddress;
228
+ shipments: import("@daffodil/order/driver/magento/2.4.1").MagentoOrderShipment[];
229
+ payment_methods: import("@daffodil/order/driver/magento/2.4.1").MagentoOrderPayment[];
230
+ invoices: import("@daffodil/order/driver/magento/2.4.1").MagentoOrderInvoice[];
231
+ credit_memos: import("@daffodil/order/driver/magento/2.4.1").MagentoOrderCredit[];
232
+ constructor(totalFactory: MagentoOrderTotalFactory, itemFactory: MagentoOrderItemFactory, addressFactory: MagentoOrderAddressFactory, shipmentFactory: MagentoOrderShipmentFactory, paymentFactory: MagentoOrderPaymentFactory, invoiceFactory: MagentoOrderInvoiceFactory, creditFactory: MagentoOrderCreditFactory);
233
+ }
234
+ export declare class MagentoOrderFactory extends DaffModelFactory<MagentoOrder> {
235
+ constructor(totalFactory: MagentoOrderTotalFactory, itemFactory: MagentoOrderItemFactory, addressFactory: MagentoOrderAddressFactory, shipmentFactory: MagentoOrderShipmentFactory, paymentFactory: MagentoOrderPaymentFactory, invoiceFactory: MagentoOrderInvoiceFactory, creditFactory: MagentoOrderCreditFactory);
236
+ static ɵfac: i0.ɵɵFactoryDeclaration<MagentoOrderFactory, never>;
237
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
238
+ }