@artisan-commerce/builders 0.7.0-canary.5 → 0.7.0-canary.7
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,24 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.7.0-canary.7](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/builders@0.7.0-canary.6...@artisan-commerce/builders@0.7.0-canary.7) (2021-08-23)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **global:** add missing properties to order interfaces and types ([757157f](https://bitbucket.org/tradesystem/artisn_sdk/commit/757157fbb2dd25d04efc791cd9b9511e41685471))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [0.7.0-canary.6](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/builders@0.7.0-canary.5...@artisan-commerce/builders@0.7.0-canary.6) (2021-08-23)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **global:** add missing properties to shipping address and complete document type ([c9156f6](https://bitbucket.org/tradesystem/artisn_sdk/commit/c9156f6db3e55f23479484577760f5196e112afc))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
6
24
|
## [0.7.0-canary.5](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/builders@0.7.0-canary.4...@artisan-commerce/builders@0.7.0-canary.5) (2021-08-12)
|
|
7
25
|
|
|
8
26
|
|
|
@@ -1,5 +1,83 @@
|
|
|
1
|
-
import { DocumentType } from "@artisan-commerce/types";
|
|
1
|
+
import { CountryCode, DocumentType } from "@artisan-commerce/types";
|
|
2
|
+
import { ARDocumentType, BODocumentType } from "@artisan-commerce/types";
|
|
3
|
+
import { BRDocumentType, CLDocumentType } from "@artisan-commerce/types";
|
|
4
|
+
import { CODocumentType, ECDocumentType } from "@artisan-commerce/types";
|
|
5
|
+
import { PYDocumentType, PEDocumentType } from "@artisan-commerce/types";
|
|
6
|
+
import { UYDocumentType, VEDocumentType } from "@artisan-commerce/types";
|
|
7
|
+
import { USDocumentType, CommonDocumentType } from "@artisan-commerce/types";
|
|
2
8
|
import { CountrySummary, RandomImageConfig } from "@artisan-commerce/types";
|
|
9
|
+
/**
|
|
10
|
+
* Default document types for all countries.
|
|
11
|
+
*
|
|
12
|
+
* @since 0.1.0
|
|
13
|
+
*/
|
|
14
|
+
export declare const commonDocumentTypes: CommonDocumentType[];
|
|
15
|
+
/**
|
|
16
|
+
* Argentina supported document types.
|
|
17
|
+
*
|
|
18
|
+
* @since 0.1.0
|
|
19
|
+
*/
|
|
20
|
+
export declare const ARDocumentTypes: ARDocumentType[];
|
|
21
|
+
/**
|
|
22
|
+
* Bolivia supported document types.
|
|
23
|
+
*
|
|
24
|
+
* @since 0.1.0
|
|
25
|
+
*/
|
|
26
|
+
export declare const BODocumentTypes: BODocumentType[];
|
|
27
|
+
/**
|
|
28
|
+
* Brasil supported document types.
|
|
29
|
+
*
|
|
30
|
+
* @since 0.1.0
|
|
31
|
+
*/
|
|
32
|
+
export declare const BRDocumentTypes: BRDocumentType[];
|
|
33
|
+
/**
|
|
34
|
+
* Chile supported document types.
|
|
35
|
+
*
|
|
36
|
+
* @since 0.1.0
|
|
37
|
+
*/
|
|
38
|
+
export declare const CLDocumentTypes: CLDocumentType[];
|
|
39
|
+
/**
|
|
40
|
+
* Colombia supported document types.
|
|
41
|
+
*
|
|
42
|
+
* @since 0.1.0
|
|
43
|
+
*/
|
|
44
|
+
export declare const CODocumentTypes: CODocumentType[];
|
|
45
|
+
/**
|
|
46
|
+
* Ecuador supported document types.
|
|
47
|
+
*
|
|
48
|
+
* @since 0.1.0
|
|
49
|
+
*/
|
|
50
|
+
export declare const ECDocumentTypes: ECDocumentType[];
|
|
51
|
+
/**
|
|
52
|
+
* Paraguay supported document types.
|
|
53
|
+
*
|
|
54
|
+
* @since 0.1.0
|
|
55
|
+
*/
|
|
56
|
+
export declare const PYDocumentTypes: PYDocumentType[];
|
|
57
|
+
/**
|
|
58
|
+
* Perú supported document types.
|
|
59
|
+
*
|
|
60
|
+
* @since 0.1.0
|
|
61
|
+
*/
|
|
62
|
+
export declare const PEDocumentTypes: PEDocumentType[];
|
|
63
|
+
/**
|
|
64
|
+
* Uruguay supported document types.
|
|
65
|
+
*
|
|
66
|
+
* @since 0.1.0
|
|
67
|
+
*/
|
|
68
|
+
export declare const UYDocumentTypes: UYDocumentType[];
|
|
69
|
+
/**
|
|
70
|
+
* Venezuela supported document types.
|
|
71
|
+
*
|
|
72
|
+
* @since 0.1.0
|
|
73
|
+
*/
|
|
74
|
+
export declare const VEDocumentTypes: VEDocumentType[];
|
|
75
|
+
/**
|
|
76
|
+
* United States supported document types.
|
|
77
|
+
*
|
|
78
|
+
* @since 0.1.0
|
|
79
|
+
*/
|
|
80
|
+
export declare const USDocumentTypes: USDocumentType[];
|
|
3
81
|
/**
|
|
4
82
|
* Generates a random password.
|
|
5
83
|
*
|
|
@@ -150,8 +228,9 @@ export declare const genDocument: (digits: number) => string;
|
|
|
150
228
|
* Generates a random document type.
|
|
151
229
|
*
|
|
152
230
|
* @since 0.5.14
|
|
231
|
+
* @param {string} countryISOCode Country calling code
|
|
153
232
|
*/
|
|
154
|
-
export declare const genDocumentType: () => DocumentType;
|
|
233
|
+
export declare const genDocumentType: (countryISOCode?: CountryCode) => DocumentType;
|
|
155
234
|
/**
|
|
156
235
|
* Generates a random mobile phone with the country code provided.
|
|
157
236
|
*
|
|
@@ -202,3 +281,9 @@ export declare const chooseRandomEnum: <T>(anEnum: T) => T[keyof T];
|
|
|
202
281
|
* @since 0.5.14
|
|
203
282
|
*/
|
|
204
283
|
export declare const genSymbol: string;
|
|
284
|
+
/**
|
|
285
|
+
* Generates a random internet ip.
|
|
286
|
+
*
|
|
287
|
+
* @since 0.1.0
|
|
288
|
+
*/
|
|
289
|
+
export declare const genIP: () => string;
|
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
import { Workflow, StepWorkflow } from "@artisan-commerce/types";
|
|
2
2
|
import { StepWorkflowAdditionalInfo } from "@artisan-commerce/types";
|
|
3
|
-
import { StepWorkflowGroup } from "@artisan-commerce/types";
|
|
3
|
+
import { StepWorkflowGroup, StepCode } from "@artisan-commerce/types";
|
|
4
4
|
import { Issue } from "@artisan-commerce/types";
|
|
5
|
-
import { StepNotification } from "@artisan-commerce/types";
|
|
5
|
+
import { StepCategory, StepNotification } from "@artisan-commerce/types";
|
|
6
6
|
import { IssueAdditionalInfo, IssueHistory } from "@artisan-commerce/types";
|
|
7
7
|
import { WebhookWorkflow, TransitionWorkflow } from "@artisan-commerce/types";
|
|
8
|
+
/**
|
|
9
|
+
* All values of StepCategory.
|
|
10
|
+
*
|
|
11
|
+
* @since 0.1.0
|
|
12
|
+
*/
|
|
13
|
+
export declare const stepCategory: StepCategory[];
|
|
14
|
+
/**
|
|
15
|
+
* All values of StepCode.
|
|
16
|
+
*
|
|
17
|
+
* @since 0.1.0
|
|
18
|
+
*/
|
|
19
|
+
export declare const stepCode: StepCode[];
|
|
8
20
|
/**
|
|
9
21
|
* Generates Issue object with random data.
|
|
10
22
|
*
|
|
@@ -1,8 +1,42 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PaymentMethodByOrder } from "@artisan-commerce/types";
|
|
2
|
+
import { OrderRetry, Suborder, ZipCodeField } from "@artisan-commerce/types";
|
|
3
|
+
import { OperatorInformation } from "@artisan-commerce/types";
|
|
4
|
+
import { NotificationSettings } from "@artisan-commerce/types";
|
|
5
|
+
import { OrderAdditionalInfo } from "@artisan-commerce/types";
|
|
6
|
+
import { OrderRetryPaymentMethod } from "@artisan-commerce/types";
|
|
7
|
+
import { MetadataShipping, OrderUser } from "@artisan-commerce/types";
|
|
8
|
+
import { InjectionDetail, IntegrationMessage } from "@artisan-commerce/types";
|
|
9
|
+
import { Allocation, BaseField, Status } from "@artisan-commerce/types";
|
|
2
10
|
import { BaseOrder, OrderDetails } from "@artisan-commerce/types";
|
|
3
11
|
import { OrderStep, OrderShoppingCart } from "@artisan-commerce/types";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
12
|
+
import { OrderPaymentMethod, OrderStatus } from "@artisan-commerce/types";
|
|
13
|
+
import { OrderDetailShippingCost } from "@artisan-commerce/types";
|
|
14
|
+
import { OrderStepAdditionalInfo } from "@artisan-commerce/types";
|
|
15
|
+
import { OrderStepAdditionalInfoGroup } from "@artisan-commerce/types";
|
|
16
|
+
/**
|
|
17
|
+
* All values of OrderStatus.
|
|
18
|
+
*
|
|
19
|
+
* @since 0.1.0
|
|
20
|
+
*/
|
|
21
|
+
export declare const orderStatusOptions: OrderStatus[];
|
|
22
|
+
/**
|
|
23
|
+
* All values of Allocation.
|
|
24
|
+
*
|
|
25
|
+
* @since 0.1.0
|
|
26
|
+
*/
|
|
27
|
+
export declare const allocationOptions: Allocation[];
|
|
28
|
+
/**
|
|
29
|
+
* Generate a sequence identifier with random numbers.
|
|
30
|
+
*
|
|
31
|
+
* @since 0.1.0
|
|
32
|
+
*/
|
|
33
|
+
export declare const genSeqId: () => string;
|
|
34
|
+
/**
|
|
35
|
+
* Generate a order reference with random data.
|
|
36
|
+
*
|
|
37
|
+
* @since 0.1.0
|
|
38
|
+
*/
|
|
39
|
+
export declare const genReference: () => string;
|
|
6
40
|
/**
|
|
7
41
|
* Generates BaseOrder object with random data.
|
|
8
42
|
*
|
|
@@ -48,6 +82,36 @@ export declare const genOrderDetails: (quantity?: number | undefined) => OrderDe
|
|
|
48
82
|
* @returns {OrderStep} A {@link OrderStep} object
|
|
49
83
|
*/
|
|
50
84
|
export declare const buildOrderStep: (overrides?: Partial<OrderStep>) => OrderStep;
|
|
85
|
+
/**
|
|
86
|
+
* Generates OrderStepAdditionalInfo object with random data.
|
|
87
|
+
*
|
|
88
|
+
* @since 0.1.0
|
|
89
|
+
* @param {Partial<OrderStepAdditionalInfo>} overrides Properties to override
|
|
90
|
+
* a {@link OrderStepAdditionalInfo}
|
|
91
|
+
* @returns {OrderStepAdditionalInfo} A
|
|
92
|
+
* {@link OrderStepAdditionalInfo} object
|
|
93
|
+
*/
|
|
94
|
+
export declare const buildOrderStepAdditionalInfo: (overrides?: Partial<OrderStepAdditionalInfo>) => OrderStepAdditionalInfo;
|
|
95
|
+
/**
|
|
96
|
+
* Generates a list of OrderStepAdditionalInfo objects with random data.
|
|
97
|
+
*
|
|
98
|
+
* @since 0.1.0
|
|
99
|
+
* @param {number} quantity The number of objects to be generated
|
|
100
|
+
* @returns {OrderStepAdditionalInfo[]} An array of
|
|
101
|
+
* OrderStepAdditionalInfo objects,
|
|
102
|
+
* see {@link OrderStepAdditionalInfo}
|
|
103
|
+
*/
|
|
104
|
+
export declare const genOrderStepAdditionalInfos: (quantity?: number | undefined) => OrderStepAdditionalInfo[];
|
|
105
|
+
/**
|
|
106
|
+
* Generates OrderStepAdditionalInfoGroup object with random data.
|
|
107
|
+
*
|
|
108
|
+
* @since 0.1.0
|
|
109
|
+
* @param {Partial<OrderStepAdditionalInfoGroup>} overrides Properties
|
|
110
|
+
* to override a {@link OrderStepAdditionalInfoGroup}
|
|
111
|
+
* @returns {OrderStepAdditionalInfoGroup} A
|
|
112
|
+
* {@link OrderStepAdditionalInfoGroup} object
|
|
113
|
+
*/
|
|
114
|
+
export declare const buildOrderStepAdditionalInfoGroup: (overrides?: Partial<OrderStepAdditionalInfoGroup>) => OrderStepAdditionalInfoGroup;
|
|
51
115
|
/**
|
|
52
116
|
* Generates a list of OrderStep objects with random data.
|
|
53
117
|
*
|
|
@@ -76,77 +140,59 @@ export declare const buildOrderDetailShippingCost: (overrides?: Partial<OrderDet
|
|
|
76
140
|
*/
|
|
77
141
|
export declare const genOrderDetailShippingCosts: (quantity?: number | undefined) => OrderDetailShippingCost[];
|
|
78
142
|
/**
|
|
79
|
-
* Generates
|
|
143
|
+
* Generates OrderRetry object with random data.
|
|
80
144
|
*
|
|
81
145
|
* @since 0.5.14
|
|
82
|
-
* @param {Partial<
|
|
83
|
-
* a {@link
|
|
84
|
-
* @returns {
|
|
146
|
+
* @param {Partial<OrderRetry>} overrides Properties to override
|
|
147
|
+
* a {@link OrderRetry}
|
|
148
|
+
* @returns {OrderRetry} A {@link OrderRetry} object
|
|
85
149
|
*/
|
|
86
|
-
export declare const
|
|
150
|
+
export declare const buildOrderRetry: (overrides?: Partial<OrderRetry>) => OrderRetry;
|
|
87
151
|
/**
|
|
88
|
-
* Generates
|
|
152
|
+
* Generates Status object with random data.
|
|
89
153
|
*
|
|
90
|
-
* @since 0.
|
|
91
|
-
* @param {
|
|
92
|
-
* @
|
|
93
|
-
*
|
|
154
|
+
* @since 0.1.0
|
|
155
|
+
* @param {Partial<Status>} overrides Properties to override
|
|
156
|
+
* a {@link Status}
|
|
157
|
+
* @returns {Status} A {@link Status} object
|
|
94
158
|
*/
|
|
95
|
-
export declare const
|
|
159
|
+
export declare const buildStatus: (overrides?: Partial<Status>) => Status;
|
|
96
160
|
/**
|
|
97
|
-
* Generates
|
|
161
|
+
* Generates a list of Status objects with random data.
|
|
98
162
|
*
|
|
99
|
-
* @since 0.
|
|
100
|
-
* @param {Partial<OrderPaidPaymentMethod>} overrides Properties to override
|
|
101
|
-
* a {@link OrderPaidPaymentMethod}
|
|
102
|
-
* @returns {OrderPaidPaymentMethod} A {@link OrderPaidPaymentMethod} object
|
|
103
|
-
*/
|
|
104
|
-
export declare const buildOrderPaidPaymentMethod: (overrides?: Partial<OrderPaidPaymentMethod>) => OrderPaidPaymentMethod;
|
|
105
|
-
/**
|
|
106
|
-
* Generates a list of OrderPaidPaymentMethod objects with random data.
|
|
107
|
-
*
|
|
108
|
-
* @since 0.5.14
|
|
163
|
+
* @since 0.1.0
|
|
109
164
|
* @param {number} quantity The number of objects to be generated
|
|
110
|
-
* @returns {
|
|
111
|
-
*
|
|
165
|
+
* @returns {Status[]} An array of Status objects,
|
|
166
|
+
* see {@link Status}
|
|
112
167
|
*/
|
|
113
|
-
export declare const
|
|
168
|
+
export declare const genStatus: (quantity?: number | undefined) => Status[];
|
|
114
169
|
/**
|
|
115
|
-
* Generates
|
|
116
|
-
*
|
|
117
|
-
* @since 0.5.14
|
|
118
|
-
* @param {Partial<OrderProduct>} overrides Properties to override
|
|
119
|
-
* a {@link OrderProduct}
|
|
120
|
-
* @returns {OrderProduct} A {@link OrderProduct} object
|
|
121
|
-
*/
|
|
122
|
-
export declare const buildOrderProduct: (overrides?: Partial<OrderProduct>) => OrderProduct;
|
|
123
|
-
/**
|
|
124
|
-
* Generates a list of OrderProduct objects with random data.
|
|
170
|
+
* Generates a list of OrderRetry objects with random data.
|
|
125
171
|
*
|
|
126
172
|
* @since 0.5.14
|
|
127
173
|
* @param {number} quantity The number of objects to be generated
|
|
128
|
-
* @returns {
|
|
129
|
-
* see {@link
|
|
174
|
+
* @returns {OrderRetry[]} An array of OrderRetry objects,
|
|
175
|
+
* see {@link OrderRetry}
|
|
130
176
|
*/
|
|
131
|
-
export declare const
|
|
177
|
+
export declare const genOrderRetries: (quantity?: number | undefined) => OrderRetry[];
|
|
132
178
|
/**
|
|
133
|
-
* Generates
|
|
179
|
+
* Generates OrderPaymentMethod object with random data.
|
|
134
180
|
*
|
|
135
181
|
* @since 0.5.14
|
|
136
|
-
* @param {Partial<
|
|
137
|
-
* a {@link
|
|
138
|
-
* @returns {
|
|
182
|
+
* @param {Partial<OrderPaymentMethod>} overrides Properties to override
|
|
183
|
+
* a {@link OrderPaymentMethod}
|
|
184
|
+
* @returns {OrderPaymentMethod} A {@link OrderPaymentMethod} object
|
|
139
185
|
*/
|
|
140
|
-
export declare const
|
|
186
|
+
export declare const buildOrderPaymentMethod: (overrides?: Partial<OrderPaymentMethod>) => OrderPaymentMethod;
|
|
141
187
|
/**
|
|
142
|
-
* Generates a list of
|
|
188
|
+
* Generates a list of OrderPaymentMethod objects with random data.
|
|
143
189
|
*
|
|
144
190
|
* @since 0.5.14
|
|
145
191
|
* @param {number} quantity The number of objects to be generated
|
|
146
|
-
* @returns {
|
|
147
|
-
* see {@link
|
|
192
|
+
* @returns {OrderPaymentMethod[]} An array of OrderPaymentMethod
|
|
193
|
+
* objects, see {@link OrderPaymentMethod}
|
|
148
194
|
*/
|
|
149
|
-
export declare const
|
|
195
|
+
export declare const genOrderPaymentMethods: (quantity?: number | undefined) => OrderPaymentMethod[];
|
|
150
196
|
/**
|
|
151
197
|
* Generates OrderShoppingCart object with random data.
|
|
152
198
|
*
|
|
@@ -165,3 +211,217 @@ export declare const buildOrderShoppingCart: (overrides?: Partial<OrderShoppingC
|
|
|
165
211
|
* see {@link OrderShoppingCart}
|
|
166
212
|
*/
|
|
167
213
|
export declare const genOrderShoppingCarts: (quantity?: number | undefined) => OrderShoppingCart[];
|
|
214
|
+
/**
|
|
215
|
+
* Generates OrderAdditionalInfo object with random data.
|
|
216
|
+
*
|
|
217
|
+
* @since 0.1.0
|
|
218
|
+
* @param {Partial<OrderAdditionalInfo>} overrides Properties to override
|
|
219
|
+
* a {@link OrderAdditionalInfo}
|
|
220
|
+
* @returns {OrderAdditionalInfo} A {@link OrderAdditionalInfo} object
|
|
221
|
+
*/
|
|
222
|
+
export declare const buildOrderAdditionalInfo: (overrides?: Partial<OrderAdditionalInfo>) => OrderAdditionalInfo;
|
|
223
|
+
/**
|
|
224
|
+
* Generates a list of OrderAdditionalInfo objects with random data.
|
|
225
|
+
*
|
|
226
|
+
* @since 0.1.0
|
|
227
|
+
* @param {number} quantity The number of objects to be generated
|
|
228
|
+
* @returns {OrderAdditionalInfo[]} An array of OrderAdditionalInfo objects,
|
|
229
|
+
* see {@link OrderAdditionalInfo}
|
|
230
|
+
*/
|
|
231
|
+
export declare const genOrderAdditionalInfos: (quantity?: number | undefined) => OrderAdditionalInfo[];
|
|
232
|
+
/**
|
|
233
|
+
* Generates MetadataShipping object with random data.
|
|
234
|
+
*
|
|
235
|
+
* @since 0.1.0
|
|
236
|
+
* @param {Partial<MetadataShipping>} overrides Properties to override
|
|
237
|
+
* a {@link MetadataShipping}
|
|
238
|
+
* @returns {MetadataShipping} A {@link MetadataShipping} object
|
|
239
|
+
*/
|
|
240
|
+
export declare const buildMetadataShipping: (overrides?: Partial<MetadataShipping>) => MetadataShipping;
|
|
241
|
+
/**
|
|
242
|
+
* Generates a list of MetadataShipping objects with random data.
|
|
243
|
+
*
|
|
244
|
+
* @since 0.1.0
|
|
245
|
+
* @param {number} quantity The number of objects to be generated
|
|
246
|
+
* @returns {MetadataShipping[]} An array of MetadataShipping objects,
|
|
247
|
+
* see {@link MetadataShipping}
|
|
248
|
+
*/
|
|
249
|
+
export declare const genMetadataShippings: (quantity?: number | undefined) => MetadataShipping[];
|
|
250
|
+
/**
|
|
251
|
+
* Generates BaseField object with random data.
|
|
252
|
+
*
|
|
253
|
+
* @since 0.1.0
|
|
254
|
+
* @param {Partial<BaseField>} overrides Properties to override
|
|
255
|
+
* a {@link BaseField}
|
|
256
|
+
* @returns {BaseField} A {@link BaseField} object
|
|
257
|
+
*/
|
|
258
|
+
export declare const buildBaseField: (overrides?: Partial<BaseField>) => BaseField;
|
|
259
|
+
/**
|
|
260
|
+
* Generates a list of BaseField objects with random data.
|
|
261
|
+
*
|
|
262
|
+
* @since 0.1.0
|
|
263
|
+
* @param {number} quantity The number of objects to be generated
|
|
264
|
+
* @returns {BaseField[]} An array of BaseField objects,
|
|
265
|
+
* see {@link BaseField}
|
|
266
|
+
*/
|
|
267
|
+
export declare const genBaseFields: (quantity?: number | undefined) => BaseField[];
|
|
268
|
+
/**
|
|
269
|
+
* Generates ZipCodeField object with random data.
|
|
270
|
+
*
|
|
271
|
+
* @since 0.1.0
|
|
272
|
+
* @param {Partial<ZipCodeField>} overrides Properties to override
|
|
273
|
+
* a {@link ZipCodeField}
|
|
274
|
+
* @returns {ZipCodeField} A {@link ZipCodeField} object
|
|
275
|
+
*/
|
|
276
|
+
export declare const buildZipCodeField: (overrides?: Partial<ZipCodeField>) => ZipCodeField;
|
|
277
|
+
/**
|
|
278
|
+
* Generates a list of ZipCodeField objects with random data.
|
|
279
|
+
*
|
|
280
|
+
* @since 0.1.0
|
|
281
|
+
* @param {number} quantity The number of objects to be generated
|
|
282
|
+
* @returns {ZipCodeField[]} An array of ZipCodeField objects,
|
|
283
|
+
* see {@link ZipCodeField}
|
|
284
|
+
*/
|
|
285
|
+
export declare const genZipCodeFields: (quantity?: number | undefined) => ZipCodeField[];
|
|
286
|
+
/**
|
|
287
|
+
* Generates IntegrationMessage object with random data.
|
|
288
|
+
*
|
|
289
|
+
* @since 0.1.0
|
|
290
|
+
* @param {Partial<IntegrationMessage>} overrides Properties to override
|
|
291
|
+
* a {@link IntegrationMessage}
|
|
292
|
+
* @returns {IntegrationMessage} A {@link IntegrationMessage} object
|
|
293
|
+
*/
|
|
294
|
+
export declare const buildIntegrationMessage: (overrides?: Partial<IntegrationMessage>) => IntegrationMessage;
|
|
295
|
+
/**
|
|
296
|
+
* Generates a list of IntegrationMessage objects with random data.
|
|
297
|
+
*
|
|
298
|
+
* @since 0.1.0
|
|
299
|
+
* @param {number} quantity The number of objects to be generated
|
|
300
|
+
* @returns {IntegrationMessage[]} An array of IntegrationMessage objects,
|
|
301
|
+
* see {@link IntegrationMessage}
|
|
302
|
+
*/
|
|
303
|
+
export declare const genIntegrationMessages: (quantity?: number | undefined) => IntegrationMessage[];
|
|
304
|
+
/**
|
|
305
|
+
* Generates InjectionDetail object with random data.
|
|
306
|
+
*
|
|
307
|
+
* @since 0.1.0
|
|
308
|
+
* @param {Partial<InjectionDetail>} overrides Properties to override
|
|
309
|
+
* a {@link InjectionDetail}
|
|
310
|
+
* @returns {InjectionDetail} A {@link InjectionDetail} object
|
|
311
|
+
*/
|
|
312
|
+
export declare const buildInjectionDetail: (overrides?: Partial<InjectionDetail>) => InjectionDetail;
|
|
313
|
+
/**
|
|
314
|
+
* Generates a list of InjectionDetail objects with random data.
|
|
315
|
+
*
|
|
316
|
+
* @since 0.1.0
|
|
317
|
+
* @param {number} quantity The number of objects to be generated
|
|
318
|
+
* @returns {InjectionDetail[]} An array of InjectionDetail objects,
|
|
319
|
+
* see {@link InjectionDetail}
|
|
320
|
+
*/
|
|
321
|
+
export declare const genInjectionDetails: (quantity?: number | undefined) => InjectionDetail[];
|
|
322
|
+
/**
|
|
323
|
+
* Generates OrderUser object with random data.
|
|
324
|
+
*
|
|
325
|
+
* @since 0.1.0
|
|
326
|
+
* @param {Partial<OrderUser>} overrides Properties to override
|
|
327
|
+
* a {@link OrderUser}
|
|
328
|
+
* @returns {OrderUser} A {@link OrderUser} object
|
|
329
|
+
*/
|
|
330
|
+
export declare const buildOrderUser: (overrides?: Partial<OrderUser>) => OrderUser;
|
|
331
|
+
/**
|
|
332
|
+
* Generates a list of OrderUser objects with random data.
|
|
333
|
+
*
|
|
334
|
+
* @since 0.1.0
|
|
335
|
+
* @param {number} quantity The number of objects to be generated
|
|
336
|
+
* @returns {OrderUser[]} An array of OrderUser objects,
|
|
337
|
+
* see {@link OrderUser}
|
|
338
|
+
*/
|
|
339
|
+
export declare const genOrderUsers: (quantity?: number | undefined) => OrderUser[];
|
|
340
|
+
/**
|
|
341
|
+
* Generates NotificationSettings object with random data.
|
|
342
|
+
*
|
|
343
|
+
* @since 0.1.0
|
|
344
|
+
* @param {Partial<NotificationSettings>} overrides Properties to override
|
|
345
|
+
* a {@link NotificationSettings}
|
|
346
|
+
* @returns {NotificationSettings} A {@link NotificationSettings} object
|
|
347
|
+
*/
|
|
348
|
+
export declare const buildNotificationSettings: (overrides?: Partial<NotificationSettings>) => NotificationSettings;
|
|
349
|
+
/**
|
|
350
|
+
* Generates a list of NotificationSettings objects with random data.
|
|
351
|
+
*
|
|
352
|
+
* @since 0.1.0
|
|
353
|
+
* @param {number} quantity The number of objects to be generated
|
|
354
|
+
* @returns {NotificationSettings[]} An array of NotificationSettings objects,
|
|
355
|
+
* see {@link NotificationSettings}
|
|
356
|
+
*/
|
|
357
|
+
export declare const genNotificationSettings: (quantity?: number | undefined) => NotificationSettings[];
|
|
358
|
+
/**
|
|
359
|
+
* Generates OperatorInformation object with random data.
|
|
360
|
+
*
|
|
361
|
+
* @param {Partial<OperatorInformation>} overrides Properties to override
|
|
362
|
+
* a {@link OperatorInformation}
|
|
363
|
+
* @returns {OperatorInformation} A {@link OperatorInformation} object
|
|
364
|
+
*/
|
|
365
|
+
export declare const buildOperatorInformation: (overrides?: Partial<OperatorInformation>) => OperatorInformation;
|
|
366
|
+
/**
|
|
367
|
+
* Generates a list of OperatorInformation objects with random data.
|
|
368
|
+
*
|
|
369
|
+
* @param {number} quantity The number of objects to be generated
|
|
370
|
+
* @returns {OperatorInformation[]} An array of OperatorInformation objects,
|
|
371
|
+
* see {@link OperatorInformation}
|
|
372
|
+
*/
|
|
373
|
+
export declare const genOperatorInformation: (quantity?: number | undefined) => OperatorInformation[];
|
|
374
|
+
/**
|
|
375
|
+
* Generates Suborder object with random data.
|
|
376
|
+
*
|
|
377
|
+
* @since 0.1.0
|
|
378
|
+
* @param {Partial<Suborder>} overrides Properties to override
|
|
379
|
+
* a {@link Suborder}
|
|
380
|
+
* @returns {Suborder} A {@link Suborder} object
|
|
381
|
+
*/
|
|
382
|
+
export declare const buildSuborder: (overrides?: Partial<Suborder>) => Suborder;
|
|
383
|
+
/**
|
|
384
|
+
* Generates a list of Suborder objects with random data.
|
|
385
|
+
*
|
|
386
|
+
* @since 0.1.0
|
|
387
|
+
* @param {number} quantity The number of objects to be generated
|
|
388
|
+
* @returns {Suborder[]} An array of Suborder objects,
|
|
389
|
+
* see {@link Suborder}
|
|
390
|
+
*/
|
|
391
|
+
export declare const genSuborders: (quantity?: number | undefined) => Suborder[];
|
|
392
|
+
/**
|
|
393
|
+
* Generates PaymentMethodByOrder object with random data.
|
|
394
|
+
*
|
|
395
|
+
* @since 0.1.0
|
|
396
|
+
* @param {Partial<PaymentMethodByOrder>} overrides Properties to override
|
|
397
|
+
* a {@link PaymentMethodByOrder}
|
|
398
|
+
* @returns {PaymentMethodByOrder} A {@link PaymentMethodByOrder} object
|
|
399
|
+
*/
|
|
400
|
+
export declare const buildPaymentMethodByOrder: (overrides?: Partial<PaymentMethodByOrder>) => PaymentMethodByOrder;
|
|
401
|
+
/**
|
|
402
|
+
* Generates a list of PaymentMethodByOrder objects with random data.
|
|
403
|
+
*
|
|
404
|
+
* @since 0.1.0
|
|
405
|
+
* @param {number} quantity The number of objects to be generated
|
|
406
|
+
* @returns {PaymentMethodByOrder[]} An array of PaymentMethodByOrder objects,
|
|
407
|
+
* see {@link PaymentMethodByOrder}
|
|
408
|
+
*/
|
|
409
|
+
export declare const genPaymentMethodByOrders: (quantity?: number | undefined) => PaymentMethodByOrder[];
|
|
410
|
+
/**
|
|
411
|
+
* Generates OrderRetryPaymentMethod object with random data.
|
|
412
|
+
*
|
|
413
|
+
* @since 0.1.0
|
|
414
|
+
* @param {Partial<OrderRetryPaymentMethod>} overrides Properties to override
|
|
415
|
+
* a {@link OrderRetryPaymentMethod}
|
|
416
|
+
* @returns {OrderRetryPaymentMethod} A {@link OrderRetryPaymentMethod} object
|
|
417
|
+
*/
|
|
418
|
+
export declare const buildOrderRetryPaymentMethod: (overrides?: Partial<OrderRetryPaymentMethod>) => OrderRetryPaymentMethod;
|
|
419
|
+
/**
|
|
420
|
+
* Generates a list of OrderRetryPaymentMethod objects with random data.
|
|
421
|
+
*
|
|
422
|
+
* @since 0.1.0
|
|
423
|
+
* @param {number} quantity The number of objects to be generated
|
|
424
|
+
* @returns {OrderRetryPaymentMethod[]} An array of
|
|
425
|
+
* OrderRetryPaymentMethod objects, see {@link OrderRetryPaymentMethod}
|
|
426
|
+
*/
|
|
427
|
+
export declare const genOrderRetryPaymentMethods: (quantity?: number | undefined) => OrderRetryPaymentMethod[];
|