@flowio/api-factories 0.0.20 → 0.0.22
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/dist/cjs/api.js +112 -675
- package/dist/esm/api.js +77 -646
- package/dist/types/api.d.ts +7 -1
- package/package.json +2 -2
- package/src/api.ts +88 -778
package/src/api.ts
CHANGED
|
@@ -111,614 +111,6 @@ const factories = {
|
|
|
111
111
|
identifier: factories.string(),
|
|
112
112
|
}),
|
|
113
113
|
|
|
114
|
-
'io.flow.channel.internal.v0.enums.channel_currency_capability': (): io.flow.channel.internal.v0.enums.ChannelCurrencyCapability => faker.random.arrayElement(['payment_authorizations', 'settlement_currency']),
|
|
115
|
-
|
|
116
|
-
'io.flow.channel.internal.v0.enums.channel_order_acceptance_rejection_reason': (): io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceRejectionReason => faker.random.arrayElement([
|
|
117
|
-
'unsupported_origin_country',
|
|
118
|
-
'unsupported_destination_country',
|
|
119
|
-
'domestic_order',
|
|
120
|
-
'order_contains_gift_card',
|
|
121
|
-
]),
|
|
122
|
-
|
|
123
|
-
'io.flow.channel.internal.v0.enums.channel_order_acceptance_status': (): io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceStatus => faker.random.arrayElement(['accepted', 'rejected', 'review']),
|
|
124
|
-
|
|
125
|
-
'io.flow.channel.internal.v0.models.channel': (): io.flow.channel.internal.v0.models.Channel => ({
|
|
126
|
-
id: factories.string(),
|
|
127
|
-
name: factories.string(),
|
|
128
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
129
|
-
organization_id_prefix: factories.string(),
|
|
130
|
-
}),
|
|
131
|
-
|
|
132
|
-
'io.flow.channel.internal.v0.models.channel_currency': (): io.flow.channel.internal.v0.models.ChannelCurrency => ({
|
|
133
|
-
id: factories.string(),
|
|
134
|
-
currency: factories.string(),
|
|
135
|
-
channel: factories['io.flow.common.v0.models.channel_reference'](),
|
|
136
|
-
|
|
137
|
-
capabilities: arrayOf(
|
|
138
|
-
() => factories['io.flow.channel.internal.v0.enums.channel_currency_capability'](),
|
|
139
|
-
),
|
|
140
|
-
}),
|
|
141
|
-
|
|
142
|
-
'io.flow.channel.internal.v0.models.channel_currency_form': (): io.flow.channel.internal.v0.models.ChannelCurrencyForm => ({
|
|
143
|
-
currency: factories.string(),
|
|
144
|
-
channel_id: factories.string(),
|
|
145
|
-
|
|
146
|
-
capabilities: arrayOf(
|
|
147
|
-
() => factories['io.flow.channel.internal.v0.enums.channel_currency_capability'](),
|
|
148
|
-
),
|
|
149
|
-
}),
|
|
150
|
-
|
|
151
|
-
'io.flow.channel.internal.v0.models.channel_form': (): io.flow.channel.internal.v0.models.ChannelForm => ({
|
|
152
|
-
name: factories.string(),
|
|
153
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
154
|
-
organization_id_prefix: factories.string(),
|
|
155
|
-
}),
|
|
156
|
-
|
|
157
|
-
'io.flow.channel.internal.v0.models.channel_membership': (): io.flow.channel.internal.v0.models.ChannelMembership => ({
|
|
158
|
-
id: factories.string(),
|
|
159
|
-
channel: factories['io.flow.common.v0.models.channel_reference'](),
|
|
160
|
-
user: factories['io.flow.common.v0.unions.expandable_user'](),
|
|
161
|
-
role: factories['io.flow.common.v0.enums.role'](),
|
|
162
|
-
}),
|
|
163
|
-
|
|
164
|
-
'io.flow.channel.internal.v0.models.channel_membership_form': (): io.flow.channel.internal.v0.models.ChannelMembershipForm => ({
|
|
165
|
-
channel_id: factories.string(),
|
|
166
|
-
user_id: factories.string(),
|
|
167
|
-
role: factories['io.flow.common.v0.enums.role'](),
|
|
168
|
-
}),
|
|
169
|
-
|
|
170
|
-
'io.flow.channel.internal.v0.models.channel_membership_put_form': (): io.flow.channel.internal.v0.models.ChannelMembershipPutForm => ({
|
|
171
|
-
role: factories['io.flow.common.v0.enums.role'](),
|
|
172
|
-
}),
|
|
173
|
-
|
|
174
|
-
'io.flow.channel.internal.v0.models.channel_order_acceptance': (): io.flow.channel.internal.v0.models.ChannelOrderAcceptance => ({
|
|
175
|
-
id: factories.string(),
|
|
176
|
-
organization_id: factories.string(),
|
|
177
|
-
order_number: factories.string(),
|
|
178
|
-
channel_id: factories.string(),
|
|
179
|
-
external_order_reference: factories.string(),
|
|
180
|
-
payment_request_id: factories.string(),
|
|
181
|
-
status: factories['io.flow.channel.internal.v0.enums.channel_order_acceptance_status'](),
|
|
182
|
-
|
|
183
|
-
reasons: arrayOf(
|
|
184
|
-
() => factories['io.flow.channel.internal.v0.models.channel_order_acceptance_reason'](),
|
|
185
|
-
),
|
|
186
|
-
}),
|
|
187
|
-
|
|
188
|
-
'io.flow.channel.internal.v0.models.channel_order_acceptance_form': (): io.flow.channel.internal.v0.models.ChannelOrderAcceptanceForm => ({
|
|
189
|
-
status: factories['io.flow.channel.internal.v0.enums.channel_order_acceptance_status'](),
|
|
190
|
-
}),
|
|
191
|
-
|
|
192
|
-
'io.flow.channel.internal.v0.models.channel_order_acceptance_reason': (): io.flow.channel.internal.v0.models.ChannelOrderAcceptanceReason => ({
|
|
193
|
-
description: factories.string(),
|
|
194
|
-
rejection_reason: factories['io.flow.channel.internal.v0.enums.channel_order_acceptance_rejection_reason'](),
|
|
195
|
-
}),
|
|
196
|
-
|
|
197
|
-
'io.flow.common.v0.enums.attribute_data_type': (): io.flow.common.v0.enums.AttributeDataType => faker.random.arrayElement(['boolean', 'integer', 'decimal', 'string', 'json_array']),
|
|
198
|
-
'io.flow.common.v0.enums.availability_status': (): io.flow.common.v0.enums.AvailabilityStatus => faker.random.arrayElement(['enabled', 'disabled']),
|
|
199
|
-
'io.flow.common.v0.enums.calendar': (): io.flow.common.v0.enums.Calendar => faker.random.arrayElement(['weekdays', 'everyday']),
|
|
200
|
-
'io.flow.common.v0.enums.capability': (): io.flow.common.v0.enums.Capability => faker.random.arrayElement(['crossdock']),
|
|
201
|
-
'io.flow.common.v0.enums.change_type': (): io.flow.common.v0.enums.ChangeType => faker.random.arrayElement(['insert', 'update', 'delete']),
|
|
202
|
-
'io.flow.common.v0.enums.currency_label_formatter': (): io.flow.common.v0.enums.CurrencyLabelFormatter => faker.random.arrayElement(['strip_trailing_zeros', 'symbol_prefix', 'symbol_suffix']),
|
|
203
|
-
'io.flow.common.v0.enums.currency_symbol_format': (): io.flow.common.v0.enums.CurrencySymbolFormat => faker.random.arrayElement(['narrow', 'primary']),
|
|
204
|
-
|
|
205
|
-
'io.flow.common.v0.enums.day_of_week': (): io.flow.common.v0.enums.DayOfWeek => faker.random.arrayElement([
|
|
206
|
-
'sunday',
|
|
207
|
-
'monday',
|
|
208
|
-
'tuesday',
|
|
209
|
-
'wednesday',
|
|
210
|
-
'thursday',
|
|
211
|
-
'friday',
|
|
212
|
-
'saturday',
|
|
213
|
-
]),
|
|
214
|
-
|
|
215
|
-
'io.flow.common.v0.enums.delivered_duty': (): io.flow.common.v0.enums.DeliveredDuty => faker.random.arrayElement(['paid', 'unpaid']),
|
|
216
|
-
'io.flow.common.v0.enums.discount_target': (): io.flow.common.v0.enums.DiscountTarget => faker.random.arrayElement(['item', 'shipping']),
|
|
217
|
-
'io.flow.common.v0.enums.entity_identifier_type': (): io.flow.common.v0.enums.EntityIdentifierType => faker.random.arrayElement(['ioss', 'voec']),
|
|
218
|
-
'io.flow.common.v0.enums.environment': (): io.flow.common.v0.enums.Environment => faker.random.arrayElement(['sandbox', 'production']),
|
|
219
|
-
'io.flow.common.v0.enums.exception_type': (): io.flow.common.v0.enums.ExceptionType => faker.random.arrayElement(['open', 'closed']),
|
|
220
|
-
'io.flow.common.v0.enums.goods_supply': (): io.flow.common.v0.enums.GoodsSupply => faker.random.arrayElement(['export', 'intra_community', 'local']),
|
|
221
|
-
'io.flow.common.v0.enums.holiday_calendar': (): io.flow.common.v0.enums.HolidayCalendar => faker.random.arrayElement(['us_bank_holidays', 'jewish_holidays']),
|
|
222
|
-
'io.flow.common.v0.enums.included_levy_key': (): io.flow.common.v0.enums.IncludedLevyKey => faker.random.arrayElement(['duty', 'vat', 'vat_and_duty', 'none']),
|
|
223
|
-
|
|
224
|
-
'io.flow.common.v0.enums.incoterm': (): io.flow.common.v0.enums.Incoterm => faker.random.arrayElement([
|
|
225
|
-
'EXW',
|
|
226
|
-
'FCA',
|
|
227
|
-
'CPT',
|
|
228
|
-
'CIP',
|
|
229
|
-
'DAT',
|
|
230
|
-
'DAP',
|
|
231
|
-
'DDP',
|
|
232
|
-
'FAS',
|
|
233
|
-
'FOB',
|
|
234
|
-
'CFR',
|
|
235
|
-
'CIF',
|
|
236
|
-
'DAF',
|
|
237
|
-
'DES',
|
|
238
|
-
'DEQ',
|
|
239
|
-
'DDU',
|
|
240
|
-
]),
|
|
241
|
-
|
|
242
|
-
'io.flow.common.v0.enums.input_specification_type': (): io.flow.common.v0.enums.InputSpecificationType => faker.random.arrayElement(['text', 'number']),
|
|
243
|
-
'io.flow.common.v0.enums.margin_type': (): io.flow.common.v0.enums.MarginType => faker.random.arrayElement(['fixed', 'percent']),
|
|
244
|
-
'io.flow.common.v0.enums.measurement_system': (): io.flow.common.v0.enums.MeasurementSystem => faker.random.arrayElement(['imperial', 'metric']),
|
|
245
|
-
'io.flow.common.v0.enums.merchant_of_record': (): io.flow.common.v0.enums.MerchantOfRecord => faker.random.arrayElement(['flow', 'organization']),
|
|
246
|
-
'io.flow.common.v0.enums.order_merchant_of_record': (): io.flow.common.v0.enums.OrderMerchantOfRecord => faker.random.arrayElement(['flow', 'organization', 'mixed']),
|
|
247
|
-
'io.flow.common.v0.enums.organization_status': (): io.flow.common.v0.enums.OrganizationStatus => faker.random.arrayElement(['active', 'inactive', 'deactivated', 'provisioned']),
|
|
248
|
-
'io.flow.common.v0.enums.price_book_status': (): io.flow.common.v0.enums.PriceBookStatus => faker.random.arrayElement(['draft', 'published', 'archived']),
|
|
249
|
-
'io.flow.common.v0.enums.role': (): io.flow.common.v0.enums.Role => faker.random.arrayElement(['admin', 'member']),
|
|
250
|
-
'io.flow.common.v0.enums.rounding_method': (): io.flow.common.v0.enums.RoundingMethod => faker.random.arrayElement(['up', 'down', 'nearest']),
|
|
251
|
-
'io.flow.common.v0.enums.rounding_type': (): io.flow.common.v0.enums.RoundingType => faker.random.arrayElement(['pattern', 'multiple']),
|
|
252
|
-
'io.flow.common.v0.enums.schedule_exception_status': (): io.flow.common.v0.enums.ScheduleExceptionStatus => faker.random.arrayElement(['Open', 'Closed']),
|
|
253
|
-
'io.flow.common.v0.enums.sort_direction': (): io.flow.common.v0.enums.SortDirection => faker.random.arrayElement(['ascending', 'descending']),
|
|
254
|
-
|
|
255
|
-
'io.flow.common.v0.enums.unit_of_measurement': (): io.flow.common.v0.enums.UnitOfMeasurement => faker.random.arrayElement([
|
|
256
|
-
'millimeter',
|
|
257
|
-
'centimeter',
|
|
258
|
-
'inch',
|
|
259
|
-
'foot',
|
|
260
|
-
'cubic_inch',
|
|
261
|
-
'cubic_meter',
|
|
262
|
-
'gram',
|
|
263
|
-
'kilogram',
|
|
264
|
-
'meter',
|
|
265
|
-
'ounce',
|
|
266
|
-
'pound',
|
|
267
|
-
]),
|
|
268
|
-
|
|
269
|
-
'io.flow.common.v0.enums.unit_of_time': (): io.flow.common.v0.enums.UnitOfTime => faker.random.arrayElement(['year', 'month', 'week', 'day', 'hour', 'minute']),
|
|
270
|
-
'io.flow.common.v0.enums.user_status': (): io.flow.common.v0.enums.UserStatus => faker.random.arrayElement(['pending', 'active', 'inactive']),
|
|
271
|
-
'io.flow.common.v0.enums.value_added_service': (): io.flow.common.v0.enums.ValueAddedService => faker.random.arrayElement(['Hazardous Material']),
|
|
272
|
-
'io.flow.common.v0.enums.visibility': (): io.flow.common.v0.enums.Visibility => faker.random.arrayElement(['public', 'private']),
|
|
273
|
-
|
|
274
|
-
'io.flow.common.v0.models.address': (): io.flow.common.v0.models.Address => ({
|
|
275
|
-
text: factories.string(),
|
|
276
|
-
streets: arrayOf(() => factories.string()),
|
|
277
|
-
street_number: factories.string(),
|
|
278
|
-
city: factories.string(),
|
|
279
|
-
province: factories.string(),
|
|
280
|
-
postal: factories.string(),
|
|
281
|
-
country: factories.string(),
|
|
282
|
-
latitude: factories.string(),
|
|
283
|
-
longitude: factories.string(),
|
|
284
|
-
}),
|
|
285
|
-
|
|
286
|
-
'io.flow.common.v0.models.billing_address': (): io.flow.common.v0.models.BillingAddress => ({
|
|
287
|
-
name: factories['io.flow.common.v0.models.name'](),
|
|
288
|
-
streets: arrayOf(() => factories.string()),
|
|
289
|
-
city: factories.string(),
|
|
290
|
-
province: factories.string(),
|
|
291
|
-
postal: factories.string(),
|
|
292
|
-
country: factories.string(),
|
|
293
|
-
company: factories.string(),
|
|
294
|
-
}),
|
|
295
|
-
|
|
296
|
-
'io.flow.common.v0.models.catalog_item_reference': (): io.flow.common.v0.models.CatalogItemReference => ({
|
|
297
|
-
id: factories.string(),
|
|
298
|
-
number: factories.string(),
|
|
299
|
-
}),
|
|
300
|
-
|
|
301
|
-
'io.flow.common.v0.models.catalog_item_summary': (): io.flow.common.v0.models.CatalogItemSummary => ({
|
|
302
|
-
number: factories.string(),
|
|
303
|
-
name: factories.string(),
|
|
304
|
-
attributes: objectOf(() => factories.string()),
|
|
305
|
-
}),
|
|
306
|
-
|
|
307
|
-
'io.flow.common.v0.models.channel_reference': (): io.flow.common.v0.models.ChannelReference => ({
|
|
308
|
-
id: factories.string(),
|
|
309
|
-
}),
|
|
310
|
-
|
|
311
|
-
'io.flow.common.v0.models.checkout_reference': (): io.flow.common.v0.models.CheckoutReference => ({
|
|
312
|
-
id: factories.string(),
|
|
313
|
-
}),
|
|
314
|
-
|
|
315
|
-
'io.flow.common.v0.models.contact': (): io.flow.common.v0.models.Contact => ({
|
|
316
|
-
name: factories['io.flow.common.v0.models.name'](),
|
|
317
|
-
company: factories.string(),
|
|
318
|
-
email: factories.string(),
|
|
319
|
-
phone: factories.string(),
|
|
320
|
-
}),
|
|
321
|
-
|
|
322
|
-
'io.flow.common.v0.models.customer_invoice': (): io.flow.common.v0.models.CustomerInvoice => ({
|
|
323
|
-
address: factories['io.flow.common.v0.models.billing_address'](),
|
|
324
|
-
}),
|
|
325
|
-
|
|
326
|
-
'io.flow.common.v0.models.customer_reference': (): io.flow.common.v0.models.CustomerReference => ({
|
|
327
|
-
number: factories.string(),
|
|
328
|
-
}),
|
|
329
|
-
|
|
330
|
-
'io.flow.common.v0.models.datetime_range': (): io.flow.common.v0.models.DatetimeRange => ({
|
|
331
|
-
from: factories.date_time_iso_8601(),
|
|
332
|
-
to: factories.date_time_iso_8601(),
|
|
333
|
-
}),
|
|
334
|
-
|
|
335
|
-
'io.flow.common.v0.models.dimension': (): io.flow.common.v0.models.Dimension => ({
|
|
336
|
-
depth: factories['io.flow.common.v0.models.measurement'](),
|
|
337
|
-
diameter: factories['io.flow.common.v0.models.measurement'](),
|
|
338
|
-
length: factories['io.flow.common.v0.models.measurement'](),
|
|
339
|
-
weight: factories['io.flow.common.v0.models.measurement'](),
|
|
340
|
-
width: factories['io.flow.common.v0.models.measurement'](),
|
|
341
|
-
}),
|
|
342
|
-
|
|
343
|
-
'io.flow.common.v0.models.dimensions': (): io.flow.common.v0.models.Dimensions => ({
|
|
344
|
-
product: factories['io.flow.common.v0.models.dimension'](),
|
|
345
|
-
packaging: factories['io.flow.common.v0.models.dimension'](),
|
|
346
|
-
}),
|
|
347
|
-
|
|
348
|
-
'io.flow.common.v0.models.discount_form': (): io.flow.common.v0.models.DiscountForm => ({
|
|
349
|
-
offer: factories['io.flow.common.v0.unions.discount_offer'](),
|
|
350
|
-
target: factories['io.flow.common.v0.enums.discount_target'](),
|
|
351
|
-
label: factories.string(),
|
|
352
|
-
}),
|
|
353
|
-
|
|
354
|
-
'io.flow.common.v0.models.discount_offer_fixed': (): io.flow.common.v0.models.DiscountOfferFixed => ({
|
|
355
|
-
discriminator: 'discount_offer_fixed',
|
|
356
|
-
money: factories['io.flow.common.v0.models.money'](),
|
|
357
|
-
}),
|
|
358
|
-
|
|
359
|
-
'io.flow.common.v0.models.discount_offer_percent': (): io.flow.common.v0.models.DiscountOfferPercent => ({
|
|
360
|
-
discriminator: 'discount_offer_percent',
|
|
361
|
-
percent: factories.decimal(),
|
|
362
|
-
}),
|
|
363
|
-
|
|
364
|
-
'io.flow.common.v0.models.discounts_form': (): io.flow.common.v0.models.DiscountsForm => ({
|
|
365
|
-
discounts: arrayOf(() => factories['io.flow.common.v0.models.discount_form']()),
|
|
366
|
-
}),
|
|
367
|
-
|
|
368
|
-
'io.flow.common.v0.models.duration': (): io.flow.common.v0.models.Duration => ({
|
|
369
|
-
unit: factories['io.flow.common.v0.enums.unit_of_time'](),
|
|
370
|
-
value: factories.long(),
|
|
371
|
-
}),
|
|
372
|
-
|
|
373
|
-
'io.flow.common.v0.models.entity_identifier': (): io.flow.common.v0.models.EntityIdentifier => ({
|
|
374
|
-
name: factories['io.flow.common.v0.enums.entity_identifier_type'](),
|
|
375
|
-
number: factories.string(),
|
|
376
|
-
issuing_country: factories.string(),
|
|
377
|
-
}),
|
|
378
|
-
|
|
379
|
-
'io.flow.common.v0.models.exception': (): io.flow.common.v0.models.Exception => ({
|
|
380
|
-
type: factories['io.flow.common.v0.enums.exception_type'](),
|
|
381
|
-
datetime_range: factories['io.flow.common.v0.models.datetime_range'](),
|
|
382
|
-
}),
|
|
383
|
-
|
|
384
|
-
'io.flow.common.v0.models.experience_summary': (): io.flow.common.v0.models.ExperienceSummary => ({
|
|
385
|
-
id: factories.string(),
|
|
386
|
-
key: factories.string(),
|
|
387
|
-
name: factories.string(),
|
|
388
|
-
country: factories.string(),
|
|
389
|
-
currency: factories.string(),
|
|
390
|
-
language: factories.string(),
|
|
391
|
-
}),
|
|
392
|
-
|
|
393
|
-
'io.flow.common.v0.models.included_levies': (): io.flow.common.v0.models.IncludedLevies => ({
|
|
394
|
-
key: factories['io.flow.common.v0.enums.included_levy_key'](),
|
|
395
|
-
label: factories.string(),
|
|
396
|
-
}),
|
|
397
|
-
|
|
398
|
-
'io.flow.common.v0.models.input_form': (): io.flow.common.v0.models.InputForm => ({
|
|
399
|
-
values: objectOf(() => factories.string()),
|
|
400
|
-
}),
|
|
401
|
-
|
|
402
|
-
'io.flow.common.v0.models.input_form_specification': (): io.flow.common.v0.models.InputFormSpecification => ({
|
|
403
|
-
inputs: arrayOf(() => factories['io.flow.common.v0.models.input_specification']()),
|
|
404
|
-
limitations: factories['io.flow.common.v0.models.input_specification_limitations'](),
|
|
405
|
-
}),
|
|
406
|
-
|
|
407
|
-
'io.flow.common.v0.models.input_specification': (): io.flow.common.v0.models.InputSpecification => ({
|
|
408
|
-
type: factories['io.flow.common.v0.enums.input_specification_type'](),
|
|
409
|
-
name: factories.string(),
|
|
410
|
-
display_text: factories.string(),
|
|
411
|
-
}),
|
|
412
|
-
|
|
413
|
-
'io.flow.common.v0.models.input_specification_limitation_max': (): io.flow.common.v0.models.InputSpecificationLimitationMax => ({
|
|
414
|
-
discriminator: 'input_specification_limitation_max',
|
|
415
|
-
max: factories.long(),
|
|
416
|
-
}),
|
|
417
|
-
|
|
418
|
-
'io.flow.common.v0.models.input_specification_limitations': (): io.flow.common.v0.models.InputSpecificationLimitations => ({
|
|
419
|
-
limitations: arrayOf(
|
|
420
|
-
() => factories['io.flow.common.v0.unions.input_specification_limitation'](),
|
|
421
|
-
),
|
|
422
|
-
}),
|
|
423
|
-
|
|
424
|
-
'io.flow.common.v0.models.item_reference': (): io.flow.common.v0.models.ItemReference => ({
|
|
425
|
-
number: factories.string(),
|
|
426
|
-
}),
|
|
427
|
-
|
|
428
|
-
'io.flow.common.v0.models.line_item': (): io.flow.common.v0.models.LineItem => ({
|
|
429
|
-
number: factories.string(),
|
|
430
|
-
quantity: factories.long(),
|
|
431
|
-
price: factories['io.flow.common.v0.models.money'](),
|
|
432
|
-
attributes: objectOf(() => factories.string()),
|
|
433
|
-
center: factories.string(),
|
|
434
|
-
discount: factories['io.flow.common.v0.models.money'](),
|
|
435
|
-
}),
|
|
436
|
-
|
|
437
|
-
'io.flow.common.v0.models.line_item_attributes_form': (): io.flow.common.v0.models.LineItemAttributesForm => ({
|
|
438
|
-
attributes: objectOf(() => factories.string()),
|
|
439
|
-
}),
|
|
440
|
-
|
|
441
|
-
'io.flow.common.v0.models.line_item_form': (): io.flow.common.v0.models.LineItemForm => ({
|
|
442
|
-
number: factories.string(),
|
|
443
|
-
quantity: factories.long(),
|
|
444
|
-
shipment_estimate: factories['io.flow.common.v0.models.datetime_range'](),
|
|
445
|
-
price: factories['io.flow.common.v0.models.money'](),
|
|
446
|
-
attributes: objectOf(() => factories.string()),
|
|
447
|
-
center: factories.string(),
|
|
448
|
-
discount: factories['io.flow.common.v0.models.money'](),
|
|
449
|
-
discounts: factories['io.flow.common.v0.models.discounts_form'](),
|
|
450
|
-
}),
|
|
451
|
-
|
|
452
|
-
'io.flow.common.v0.models.line_item_quantity_form': (): io.flow.common.v0.models.LineItemQuantityForm => ({
|
|
453
|
-
quantity: factories.long(),
|
|
454
|
-
}),
|
|
455
|
-
|
|
456
|
-
'io.flow.common.v0.models.margin': (): io.flow.common.v0.models.Margin => ({
|
|
457
|
-
type: factories['io.flow.common.v0.enums.margin_type'](),
|
|
458
|
-
value: factories.decimal(),
|
|
459
|
-
}),
|
|
460
|
-
|
|
461
|
-
'io.flow.common.v0.models.measurement': (): io.flow.common.v0.models.Measurement => ({
|
|
462
|
-
value: factories.string(),
|
|
463
|
-
units: factories['io.flow.common.v0.enums.unit_of_measurement'](),
|
|
464
|
-
}),
|
|
465
|
-
|
|
466
|
-
'io.flow.common.v0.models.merchant_of_record_entity': (): io.flow.common.v0.models.MerchantOfRecordEntity => ({
|
|
467
|
-
organization: factories['io.flow.common.v0.models.organization_reference'](),
|
|
468
|
-
name: factories.string(),
|
|
469
|
-
vat: factories['io.flow.common.v0.models.merchant_of_record_entity_registration'](),
|
|
470
|
-
identifiers: arrayOf(() => factories['io.flow.common.v0.models.entity_identifier']()),
|
|
471
|
-
streets: arrayOf(() => factories.string()),
|
|
472
|
-
city: factories.string(),
|
|
473
|
-
province: factories.string(),
|
|
474
|
-
postal: factories.string(),
|
|
475
|
-
country: factories.string(),
|
|
476
|
-
phone: factories.string(),
|
|
477
|
-
email: factories.string(),
|
|
478
|
-
}),
|
|
479
|
-
|
|
480
|
-
'io.flow.common.v0.models.merchant_of_record_entity_registration': (): io.flow.common.v0.models.MerchantOfRecordEntityRegistration => ({
|
|
481
|
-
number: factories.string(),
|
|
482
|
-
country: factories.string(),
|
|
483
|
-
}),
|
|
484
|
-
|
|
485
|
-
'io.flow.common.v0.models.money': (): io.flow.common.v0.models.Money => ({
|
|
486
|
-
amount: factories.double(),
|
|
487
|
-
currency: factories.string(),
|
|
488
|
-
}),
|
|
489
|
-
|
|
490
|
-
'io.flow.common.v0.models.money_with_base': (): io.flow.common.v0.models.MoneyWithBase => ({
|
|
491
|
-
currency: factories.string(),
|
|
492
|
-
amount: factories.double(),
|
|
493
|
-
base: factories['io.flow.common.v0.models.money'](),
|
|
494
|
-
}),
|
|
495
|
-
|
|
496
|
-
'io.flow.common.v0.models.money_with_optional_base': (): io.flow.common.v0.models.MoneyWithOptionalBase => ({
|
|
497
|
-
currency: factories.string(),
|
|
498
|
-
amount: factories.double(),
|
|
499
|
-
base: factories['io.flow.common.v0.models.money'](),
|
|
500
|
-
}),
|
|
501
|
-
|
|
502
|
-
'io.flow.common.v0.models.name': (): io.flow.common.v0.models.Name => ({
|
|
503
|
-
first: factories.string(),
|
|
504
|
-
last: factories.string(),
|
|
505
|
-
}),
|
|
506
|
-
|
|
507
|
-
'io.flow.common.v0.models.order_customer': (): io.flow.common.v0.models.OrderCustomer => ({
|
|
508
|
-
name: factories['io.flow.common.v0.models.name'](),
|
|
509
|
-
number: factories.string(),
|
|
510
|
-
phone: factories.string(),
|
|
511
|
-
email: factories.string(),
|
|
512
|
-
address: factories['io.flow.common.v0.models.billing_address'](),
|
|
513
|
-
invoice: factories['io.flow.common.v0.models.customer_invoice'](),
|
|
514
|
-
}),
|
|
515
|
-
|
|
516
|
-
'io.flow.common.v0.models.order_customer_form': (): io.flow.common.v0.models.OrderCustomerForm => ({
|
|
517
|
-
name: factories['io.flow.common.v0.models.name'](),
|
|
518
|
-
number: factories.string(),
|
|
519
|
-
phone: factories.string(),
|
|
520
|
-
email: factories.string(),
|
|
521
|
-
address: factories['io.flow.common.v0.models.billing_address'](),
|
|
522
|
-
invoice: factories['io.flow.common.v0.models.customer_invoice'](),
|
|
523
|
-
}),
|
|
524
|
-
|
|
525
|
-
'io.flow.common.v0.models.organization': (): io.flow.common.v0.models.Organization => ({
|
|
526
|
-
discriminator: 'organization',
|
|
527
|
-
id: factories.string(),
|
|
528
|
-
name: factories.string(),
|
|
529
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
530
|
-
parent: factories['io.flow.common.v0.models.organization_reference'](),
|
|
531
|
-
defaults: factories['io.flow.common.v0.models.organization_defaults'](),
|
|
532
|
-
created_at: factories.date_time_iso_8601(),
|
|
533
|
-
status: factories['io.flow.common.v0.enums.organization_status'](),
|
|
534
|
-
}),
|
|
535
|
-
|
|
536
|
-
'io.flow.common.v0.models.organization_defaults': (): io.flow.common.v0.models.OrganizationDefaults => ({
|
|
537
|
-
country: factories.string(),
|
|
538
|
-
base_currency: factories.string(),
|
|
539
|
-
language: factories.string(),
|
|
540
|
-
locale: factories.string(),
|
|
541
|
-
timezone: factories.string(),
|
|
542
|
-
}),
|
|
543
|
-
|
|
544
|
-
'io.flow.common.v0.models.organization_reference': (): io.flow.common.v0.models.OrganizationReference => ({
|
|
545
|
-
discriminator: 'organization_reference',
|
|
546
|
-
id: factories.string(),
|
|
547
|
-
}),
|
|
548
|
-
|
|
549
|
-
'io.flow.common.v0.models.organization_summary': (): io.flow.common.v0.models.OrganizationSummary => ({
|
|
550
|
-
id: factories.string(),
|
|
551
|
-
name: factories.string(),
|
|
552
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
553
|
-
}),
|
|
554
|
-
|
|
555
|
-
'io.flow.common.v0.models.partner_reference': (): io.flow.common.v0.models.PartnerReference => ({
|
|
556
|
-
id: factories.string(),
|
|
557
|
-
}),
|
|
558
|
-
|
|
559
|
-
'io.flow.common.v0.models.price': (): io.flow.common.v0.models.Price => ({
|
|
560
|
-
amount: factories.double(),
|
|
561
|
-
currency: factories.string(),
|
|
562
|
-
label: factories.string(),
|
|
563
|
-
}),
|
|
564
|
-
|
|
565
|
-
'io.flow.common.v0.models.price_form': (): io.flow.common.v0.models.PriceForm => ({
|
|
566
|
-
amount: factories.double(),
|
|
567
|
-
currency: factories.string(),
|
|
568
|
-
}),
|
|
569
|
-
|
|
570
|
-
'io.flow.common.v0.models.price_source_catalog': (): io.flow.common.v0.models.PriceSourceCatalog => ({
|
|
571
|
-
discriminator: 'catalog',
|
|
572
|
-
price: factories['io.flow.common.v0.models.money'](),
|
|
573
|
-
}),
|
|
574
|
-
|
|
575
|
-
'io.flow.common.v0.models.price_source_price_book': (): io.flow.common.v0.models.PriceSourcePriceBook => ({
|
|
576
|
-
discriminator: 'price_book',
|
|
577
|
-
price: factories['io.flow.common.v0.models.money'](),
|
|
578
|
-
includes: factories['io.flow.common.v0.models.included_levies'](),
|
|
579
|
-
price_book_reference: factories['io.flow.common.v0.models.price_source_price_book_reference'](),
|
|
580
|
-
}),
|
|
581
|
-
|
|
582
|
-
'io.flow.common.v0.models.price_source_price_book_reference': (): io.flow.common.v0.models.PriceSourcePriceBookReference => ({
|
|
583
|
-
id: factories.string(),
|
|
584
|
-
key: factories.string(),
|
|
585
|
-
}),
|
|
586
|
-
|
|
587
|
-
'io.flow.common.v0.models.price_source_provided': (): io.flow.common.v0.models.PriceSourceProvided => ({
|
|
588
|
-
discriminator: 'provided',
|
|
589
|
-
price: factories['io.flow.common.v0.models.money'](),
|
|
590
|
-
}),
|
|
591
|
-
|
|
592
|
-
'io.flow.common.v0.models.price_with_base': (): io.flow.common.v0.models.PriceWithBase => ({
|
|
593
|
-
currency: factories.string(),
|
|
594
|
-
amount: factories.double(),
|
|
595
|
-
label: factories.string(),
|
|
596
|
-
base: factories['io.flow.common.v0.models.price'](),
|
|
597
|
-
}),
|
|
598
|
-
|
|
599
|
-
'io.flow.common.v0.models.repeat_daily': (): io.flow.common.v0.models.RepeatDaily => ({
|
|
600
|
-
discriminator: 'repeat_daily',
|
|
601
|
-
interval: factories.integer(),
|
|
602
|
-
}),
|
|
603
|
-
|
|
604
|
-
'io.flow.common.v0.models.repeat_hourly': (): io.flow.common.v0.models.RepeatHourly => ({
|
|
605
|
-
discriminator: 'repeat_hourly',
|
|
606
|
-
interval: factories.integer(),
|
|
607
|
-
}),
|
|
608
|
-
|
|
609
|
-
'io.flow.common.v0.models.repeat_monthly': (): io.flow.common.v0.models.RepeatMonthly => ({
|
|
610
|
-
discriminator: 'repeat_monthly',
|
|
611
|
-
interval: factories.integer(),
|
|
612
|
-
days: arrayOf(() => factories.integer()),
|
|
613
|
-
}),
|
|
614
|
-
|
|
615
|
-
'io.flow.common.v0.models.repeat_weekly': (): io.flow.common.v0.models.RepeatWeekly => ({
|
|
616
|
-
discriminator: 'repeat_weekly',
|
|
617
|
-
interval: factories.integer(),
|
|
618
|
-
days_of_week: arrayOf(() => factories['io.flow.common.v0.enums.day_of_week']()),
|
|
619
|
-
}),
|
|
620
|
-
|
|
621
|
-
'io.flow.common.v0.models.rounding': (): io.flow.common.v0.models.Rounding => ({
|
|
622
|
-
type: factories['io.flow.common.v0.enums.rounding_type'](),
|
|
623
|
-
method: factories['io.flow.common.v0.enums.rounding_method'](),
|
|
624
|
-
value: factories.decimal(),
|
|
625
|
-
}),
|
|
626
|
-
|
|
627
|
-
'io.flow.common.v0.models.schedule': (): io.flow.common.v0.models.Schedule => ({
|
|
628
|
-
calendar: factories['io.flow.common.v0.enums.calendar'](),
|
|
629
|
-
holiday: factories['io.flow.common.v0.enums.holiday_calendar'](),
|
|
630
|
-
exception: arrayOf(() => factories['io.flow.common.v0.models.exception']()),
|
|
631
|
-
cutoff: factories.string(),
|
|
632
|
-
min_lead_time: factories.long(),
|
|
633
|
-
max_lead_time: factories.long(),
|
|
634
|
-
}),
|
|
635
|
-
|
|
636
|
-
'io.flow.common.v0.models.session_reference': (): io.flow.common.v0.models.SessionReference => ({
|
|
637
|
-
id: factories.string(),
|
|
638
|
-
}),
|
|
639
|
-
|
|
640
|
-
'io.flow.common.v0.models.user': (): io.flow.common.v0.models.User => ({
|
|
641
|
-
discriminator: 'user',
|
|
642
|
-
id: factories.string(),
|
|
643
|
-
email: factories.string(),
|
|
644
|
-
name: factories['io.flow.common.v0.models.name'](),
|
|
645
|
-
status: factories['io.flow.common.v0.enums.user_status'](),
|
|
646
|
-
}),
|
|
647
|
-
|
|
648
|
-
'io.flow.common.v0.models.user_reference': (): io.flow.common.v0.models.UserReference => ({
|
|
649
|
-
discriminator: 'user_reference',
|
|
650
|
-
id: factories.string(),
|
|
651
|
-
}),
|
|
652
|
-
|
|
653
|
-
'io.flow.common.v0.models.zone': (): io.flow.common.v0.models.Zone => ({
|
|
654
|
-
postals: arrayOf(() => factories.string()),
|
|
655
|
-
provinces: arrayOf(() => factories.string()),
|
|
656
|
-
country: factories.string(),
|
|
657
|
-
}),
|
|
658
|
-
|
|
659
|
-
'io.flow.common.v0.unions.discount_offer': (): io.flow.common.v0.unions.DiscountOffer => {
|
|
660
|
-
const f = faker.random.arrayElement([
|
|
661
|
-
() => factories['io.flow.common.v0.models.discount_offer_fixed'](),
|
|
662
|
-
() => factories['io.flow.common.v0.models.discount_offer_percent'](),
|
|
663
|
-
]);
|
|
664
|
-
|
|
665
|
-
return f();
|
|
666
|
-
},
|
|
667
|
-
|
|
668
|
-
'io.flow.common.v0.unions.expandable_organization': (): io.flow.common.v0.unions.ExpandableOrganization => {
|
|
669
|
-
const f = faker.random.arrayElement([
|
|
670
|
-
() => factories['io.flow.common.v0.models.organization'](),
|
|
671
|
-
() => factories['io.flow.common.v0.models.organization_reference'](),
|
|
672
|
-
]);
|
|
673
|
-
|
|
674
|
-
return f();
|
|
675
|
-
},
|
|
676
|
-
|
|
677
|
-
'io.flow.common.v0.unions.expandable_user': (): io.flow.common.v0.unions.ExpandableUser => {
|
|
678
|
-
const f = faker.random.arrayElement([
|
|
679
|
-
() => factories['io.flow.common.v0.models.user'](),
|
|
680
|
-
() => factories['io.flow.common.v0.models.user_reference'](),
|
|
681
|
-
]);
|
|
682
|
-
|
|
683
|
-
return f();
|
|
684
|
-
},
|
|
685
|
-
|
|
686
|
-
'io.flow.common.v0.unions.input_specification_limitation': (): io.flow.common.v0.unions.InputSpecificationLimitation => {
|
|
687
|
-
const f = faker.random.arrayElement([
|
|
688
|
-
() => factories['io.flow.common.v0.models.input_specification_limitation_max'](),
|
|
689
|
-
]);
|
|
690
|
-
|
|
691
|
-
return f();
|
|
692
|
-
},
|
|
693
|
-
|
|
694
|
-
'io.flow.common.v0.unions.price_source': (): io.flow.common.v0.unions.PriceSource => {
|
|
695
|
-
const f = faker.random.arrayElement([
|
|
696
|
-
() => factories['io.flow.common.v0.models.price_source_price_book'](),
|
|
697
|
-
() => factories['io.flow.common.v0.models.price_source_catalog'](),
|
|
698
|
-
() => factories['io.flow.common.v0.models.price_source_provided'](),
|
|
699
|
-
]);
|
|
700
|
-
|
|
701
|
-
return f();
|
|
702
|
-
},
|
|
703
|
-
|
|
704
|
-
'io.flow.common.v0.unions.repeat_schedule': (): io.flow.common.v0.unions.RepeatSchedule => {
|
|
705
|
-
const f = faker.random.arrayElement([
|
|
706
|
-
() => factories['io.flow.common.v0.models.repeat_hourly'](),
|
|
707
|
-
() => factories['io.flow.common.v0.models.repeat_daily'](),
|
|
708
|
-
() => factories['io.flow.common.v0.models.repeat_weekly'](),
|
|
709
|
-
() => factories['io.flow.common.v0.models.repeat_monthly'](),
|
|
710
|
-
]);
|
|
711
|
-
|
|
712
|
-
return f();
|
|
713
|
-
},
|
|
714
|
-
|
|
715
|
-
'io.flow.error.v0.enums.generic_error_code': (): io.flow.error.v0.enums.GenericErrorCode => faker.random.arrayElement(['generic_error', 'client_error', 'server_error']),
|
|
716
|
-
|
|
717
|
-
'io.flow.error.v0.models.generic_error': (): io.flow.error.v0.models.GenericError => ({
|
|
718
|
-
code: factories['io.flow.error.v0.enums.generic_error_code'](),
|
|
719
|
-
messages: arrayOf(() => factories.string()),
|
|
720
|
-
}),
|
|
721
|
-
|
|
722
114
|
'io.flow.google.pay.v0.enums.auth_method': (): io.flow.google.pay.v0.enums.AuthMethod => faker.random.arrayElement(['PAN_ONLY', 'CRYPTOGRAM_3DS']),
|
|
723
115
|
'io.flow.google.pay.v0.enums.billing_address_format': (): io.flow.google.pay.v0.enums.BillingAddressFormat => faker.random.arrayElement(['MIN', 'FULL']),
|
|
724
116
|
'io.flow.google.pay.v0.enums.card_gateway': (): io.flow.google.pay.v0.enums.CardGateway => faker.random.arrayElement(['adyen', 'stripe']),
|
|
@@ -2791,153 +2183,6 @@ const factories = {
|
|
|
2791
2183
|
destination: factories.string(),
|
|
2792
2184
|
}),
|
|
2793
2185
|
|
|
2794
|
-
'io.flow.token.internal.v0.models.channel_token_form': (): io.flow.token.internal.v0.models.ChannelTokenForm => ({
|
|
2795
|
-
channel_id: factories.string(),
|
|
2796
|
-
description: factories.string(),
|
|
2797
|
-
}),
|
|
2798
|
-
|
|
2799
|
-
'io.flow.token.v0.models.channel_token': (): io.flow.token.v0.models.ChannelToken => ({
|
|
2800
|
-
discriminator: 'channel_token',
|
|
2801
|
-
id: factories.string(),
|
|
2802
|
-
channel: factories['io.flow.common.v0.models.channel_reference'](),
|
|
2803
|
-
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
2804
|
-
partial: factories.string(),
|
|
2805
|
-
cleartext: factories.string(),
|
|
2806
|
-
created_at: factories.date_time_iso_8601(),
|
|
2807
|
-
description: factories.string(),
|
|
2808
|
-
}),
|
|
2809
|
-
|
|
2810
|
-
'io.flow.token.v0.models.channel_token_form': (): io.flow.token.v0.models.ChannelTokenForm => ({
|
|
2811
|
-
channel_id: factories.string(),
|
|
2812
|
-
description: factories.string(),
|
|
2813
|
-
}),
|
|
2814
|
-
|
|
2815
|
-
'io.flow.token.v0.models.channel_token_reference': (): io.flow.token.v0.models.ChannelTokenReference => ({
|
|
2816
|
-
discriminator: 'channel_token_reference',
|
|
2817
|
-
id: factories.string(),
|
|
2818
|
-
channel: factories['io.flow.common.v0.models.channel_reference'](),
|
|
2819
|
-
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
2820
|
-
}),
|
|
2821
|
-
|
|
2822
|
-
'io.flow.token.v0.models.cleartext': (): io.flow.token.v0.models.Cleartext => ({
|
|
2823
|
-
value: factories.string(),
|
|
2824
|
-
}),
|
|
2825
|
-
|
|
2826
|
-
'io.flow.token.v0.models.organization_token': (): io.flow.token.v0.models.OrganizationToken => ({
|
|
2827
|
-
discriminator: 'organization_token',
|
|
2828
|
-
id: factories.string(),
|
|
2829
|
-
organization: factories['io.flow.common.v0.models.organization_reference'](),
|
|
2830
|
-
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
2831
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
2832
|
-
partial: factories.string(),
|
|
2833
|
-
created_at: factories.date_time_iso_8601(),
|
|
2834
|
-
description: factories.string(),
|
|
2835
|
-
}),
|
|
2836
|
-
|
|
2837
|
-
'io.flow.token.v0.models.organization_token_form': (): io.flow.token.v0.models.OrganizationTokenForm => ({
|
|
2838
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
2839
|
-
description: factories.string(),
|
|
2840
|
-
}),
|
|
2841
|
-
|
|
2842
|
-
'io.flow.token.v0.models.organization_token_form_v2': (): io.flow.token.v0.models.OrganizationTokenFormV2 => ({
|
|
2843
|
-
organization_id: factories.string(),
|
|
2844
|
-
description: factories.string(),
|
|
2845
|
-
}),
|
|
2846
|
-
|
|
2847
|
-
'io.flow.token.v0.models.organization_token_reference': (): io.flow.token.v0.models.OrganizationTokenReference => ({
|
|
2848
|
-
discriminator: 'organization_token_reference',
|
|
2849
|
-
id: factories.string(),
|
|
2850
|
-
organization: factories['io.flow.common.v0.models.organization_reference'](),
|
|
2851
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
2852
|
-
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
2853
|
-
}),
|
|
2854
|
-
|
|
2855
|
-
'io.flow.token.v0.models.organization_token_v2': (): io.flow.token.v0.models.OrganizationTokenV2 => ({
|
|
2856
|
-
discriminator: 'organization_token_v2',
|
|
2857
|
-
id: factories.string(),
|
|
2858
|
-
organization: factories['io.flow.common.v0.models.organization_reference'](),
|
|
2859
|
-
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
2860
|
-
partial: factories.string(),
|
|
2861
|
-
cleartext: factories.string(),
|
|
2862
|
-
created_at: factories.date_time_iso_8601(),
|
|
2863
|
-
description: factories.string(),
|
|
2864
|
-
}),
|
|
2865
|
-
|
|
2866
|
-
'io.flow.token.v0.models.organization_token_v2_reference': (): io.flow.token.v0.models.OrganizationTokenV2Reference => ({
|
|
2867
|
-
discriminator: 'organization_token_v2_reference',
|
|
2868
|
-
id: factories.string(),
|
|
2869
|
-
organization: factories['io.flow.common.v0.models.organization_reference'](),
|
|
2870
|
-
}),
|
|
2871
|
-
|
|
2872
|
-
'io.flow.token.v0.models.partner_token': (): io.flow.token.v0.models.PartnerToken => ({
|
|
2873
|
-
discriminator: 'partner_token',
|
|
2874
|
-
id: factories.string(),
|
|
2875
|
-
partner: factories['io.flow.token.v0.models.token_partner_reference'](),
|
|
2876
|
-
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
2877
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
2878
|
-
partial: factories.string(),
|
|
2879
|
-
created_at: factories.date_time_iso_8601(),
|
|
2880
|
-
description: factories.string(),
|
|
2881
|
-
}),
|
|
2882
|
-
|
|
2883
|
-
'io.flow.token.v0.models.partner_token_form': (): io.flow.token.v0.models.PartnerTokenForm => ({
|
|
2884
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
2885
|
-
description: factories.string(),
|
|
2886
|
-
}),
|
|
2887
|
-
|
|
2888
|
-
'io.flow.token.v0.models.partner_token_reference': (): io.flow.token.v0.models.PartnerTokenReference => ({
|
|
2889
|
-
discriminator: 'partner_token_reference',
|
|
2890
|
-
id: factories.string(),
|
|
2891
|
-
partner: factories['io.flow.token.v0.models.token_partner_reference'](),
|
|
2892
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
2893
|
-
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
2894
|
-
}),
|
|
2895
|
-
|
|
2896
|
-
'io.flow.token.v0.models.token_authentication_form': (): io.flow.token.v0.models.TokenAuthenticationForm => ({
|
|
2897
|
-
token: factories.string(),
|
|
2898
|
-
}),
|
|
2899
|
-
|
|
2900
|
-
'io.flow.token.v0.models.token_partner_reference': (): io.flow.token.v0.models.TokenPartnerReference => ({
|
|
2901
|
-
id: factories.string(),
|
|
2902
|
-
}),
|
|
2903
|
-
|
|
2904
|
-
'io.flow.token.v0.models.token_rbac_authentication_form': (): io.flow.token.v0.models.TokenRbacAuthenticationForm => ({
|
|
2905
|
-
token: factories.string(),
|
|
2906
|
-
method: factories.string(),
|
|
2907
|
-
path_pattern: factories.string(),
|
|
2908
|
-
path: factories.string(),
|
|
2909
|
-
}),
|
|
2910
|
-
|
|
2911
|
-
'io.flow.token.v0.models.token_validation': (): io.flow.token.v0.models.TokenValidation => ({
|
|
2912
|
-
status: factories.string(),
|
|
2913
|
-
}),
|
|
2914
|
-
|
|
2915
|
-
'io.flow.token.v0.models.token_validation_form': (): io.flow.token.v0.models.TokenValidationForm => ({
|
|
2916
|
-
token: factories.string(),
|
|
2917
|
-
}),
|
|
2918
|
-
|
|
2919
|
-
'io.flow.token.v0.unions.token': (): io.flow.token.v0.unions.Token => {
|
|
2920
|
-
const f = faker.random.arrayElement([
|
|
2921
|
-
() => factories['io.flow.token.v0.models.channel_token'](),
|
|
2922
|
-
() => factories['io.flow.token.v0.models.organization_token'](),
|
|
2923
|
-
() => factories['io.flow.token.v0.models.organization_token_v2'](),
|
|
2924
|
-
() => factories['io.flow.token.v0.models.partner_token'](),
|
|
2925
|
-
]);
|
|
2926
|
-
|
|
2927
|
-
return f();
|
|
2928
|
-
},
|
|
2929
|
-
|
|
2930
|
-
'io.flow.token.v0.unions.token_reference': (): io.flow.token.v0.unions.TokenReference => {
|
|
2931
|
-
const f = faker.random.arrayElement([
|
|
2932
|
-
() => factories['io.flow.token.v0.models.channel_token_reference'](),
|
|
2933
|
-
() => factories['io.flow.token.v0.models.organization_token_reference'](),
|
|
2934
|
-
() => factories['io.flow.token.v0.models.organization_token_v2_reference'](),
|
|
2935
|
-
() => factories['io.flow.token.v0.models.partner_token_reference'](),
|
|
2936
|
-
]);
|
|
2937
|
-
|
|
2938
|
-
return f();
|
|
2939
|
-
},
|
|
2940
|
-
|
|
2941
2186
|
'io.flow.v0.enums.abandoned_order_promotion_status': (): io.flow.v0.enums.AbandonedOrderPromotionStatus => faker.random.arrayElement(['active', 'inactive']),
|
|
2942
2187
|
'io.flow.v0.enums.abandoned_order_setting_status': (): io.flow.v0.enums.AbandonedOrderSettingStatus => faker.random.arrayElement(['active', 'inactive']),
|
|
2943
2188
|
|
|
@@ -3066,6 +2311,7 @@ const factories = {
|
|
|
3066
2311
|
|
|
3067
2312
|
'io.flow.v0.enums.center_capability': (): io.flow.v0.enums.CenterCapability => faker.random.arrayElement(['international', 'domestic', 'crossdock', 'commercial_invoice']),
|
|
3068
2313
|
'io.flow.v0.enums.change_type': (): io.flow.v0.enums.ChangeType => faker.random.arrayElement(['insert', 'update', 'delete']),
|
|
2314
|
+
'io.flow.v0.enums.channel_currency_capability': (): io.flow.v0.enums.ChannelCurrencyCapability => faker.random.arrayElement(['payment_authorizations', 'settlement_currency']),
|
|
3069
2315
|
'io.flow.v0.enums.consumer_invoice_customer_type': (): io.flow.v0.enums.ConsumerInvoiceCustomerType => faker.random.arrayElement(['business_eu_verified', 'business_non_verified', 'individual']),
|
|
3070
2316
|
'io.flow.v0.enums.consumer_invoice_document_type': (): io.flow.v0.enums.ConsumerInvoiceDocumentType => faker.random.arrayElement(['pdf']),
|
|
3071
2317
|
'io.flow.v0.enums.consumer_invoice_status': (): io.flow.v0.enums.ConsumerInvoiceStatus => faker.random.arrayElement(['pending', 'available', 'invalid']),
|
|
@@ -3331,12 +2577,12 @@ const factories = {
|
|
|
3331
2577
|
'io.flow.v0.enums.exporter_of_record': (): io.flow.v0.enums.ExporterOfRecord => faker.random.arrayElement(['flow', 'organization']),
|
|
3332
2578
|
|
|
3333
2579
|
'io.flow.v0.enums.fee_deduction_type': (): io.flow.v0.enums.FeeDeductionType => faker.random.arrayElement([
|
|
2580
|
+
'duty_guarantee',
|
|
3334
2581
|
'mor',
|
|
2582
|
+
'fraud',
|
|
3335
2583
|
'fx',
|
|
3336
2584
|
'processing',
|
|
3337
2585
|
'rate_lock',
|
|
3338
|
-
'duty_guarantee',
|
|
3339
|
-
'revenue_share',
|
|
3340
2586
|
'transfer',
|
|
3341
2587
|
]),
|
|
3342
2588
|
|
|
@@ -3430,29 +2676,34 @@ const factories = {
|
|
|
3430
2676
|
'io.flow.v0.enums.method': (): io.flow.v0.enums.Method => faker.random.arrayElement(['post']),
|
|
3431
2677
|
|
|
3432
2678
|
'io.flow.v0.enums.onboarding_trade_sector': (): io.flow.v0.enums.OnboardingTradeSector => faker.random.arrayElement([
|
|
3433
|
-
'apparel',
|
|
3434
2679
|
'accessories',
|
|
3435
|
-
'arts_and_entertainment',
|
|
3436
2680
|
'animals_and_pet_supplies',
|
|
2681
|
+
'apparel',
|
|
2682
|
+
'apparel_and_accessories',
|
|
2683
|
+
'arts_and_entertainment',
|
|
3437
2684
|
'baby_and_toddler',
|
|
3438
2685
|
'business_and_industrial',
|
|
3439
|
-
'
|
|
2686
|
+
'cameras_and_optics',
|
|
3440
2687
|
'electronics',
|
|
3441
|
-
'furniture',
|
|
3442
2688
|
'food_beverages_and_tobacco',
|
|
2689
|
+
'furniture',
|
|
2690
|
+
'gift_cards',
|
|
2691
|
+
'hardware',
|
|
3443
2692
|
'health_and_beauty',
|
|
3444
2693
|
'home_and_garden',
|
|
3445
|
-
'hardware',
|
|
3446
2694
|
'jewelry',
|
|
3447
2695
|
'luggage_and_bags',
|
|
2696
|
+
'mature',
|
|
3448
2697
|
'media',
|
|
3449
2698
|
'office_supplies',
|
|
3450
|
-
'sporting_goods',
|
|
3451
|
-
'toys_and_games',
|
|
3452
|
-
'vehicles_and_parts',
|
|
3453
2699
|
'paper_and_art',
|
|
2700
|
+
'religious_and_ceremonial',
|
|
2701
|
+
'software',
|
|
2702
|
+
'sporting_goods',
|
|
3454
2703
|
'sports_and_fitness',
|
|
2704
|
+
'toys_and_games',
|
|
3455
2705
|
'toys_hobbies_gifts',
|
|
2706
|
+
'vehicles_and_parts',
|
|
3456
2707
|
'other',
|
|
3457
2708
|
]),
|
|
3458
2709
|
|
|
@@ -3816,7 +3067,21 @@ const factories = {
|
|
|
3816
3067
|
|
|
3817
3068
|
'io.flow.v0.enums.trade_agreement_name': (): io.flow.v0.enums.TradeAgreementName => faker.random.arrayElement(['USMCA', 'T-MEC', 'CUSMA', 'TCA']),
|
|
3818
3069
|
'io.flow.v0.enums.trade_agreement_status': (): io.flow.v0.enums.TradeAgreementStatus => faker.random.arrayElement(['supported', 'not_supported']),
|
|
3819
|
-
|
|
3070
|
+
|
|
3071
|
+
'io.flow.v0.enums.transaction_source': (): io.flow.v0.enums.TransactionSource => faker.random.arrayElement([
|
|
3072
|
+
'capture',
|
|
3073
|
+
'refund',
|
|
3074
|
+
'dispute',
|
|
3075
|
+
'adjustment',
|
|
3076
|
+
'shipping_label',
|
|
3077
|
+
'platform_fee',
|
|
3078
|
+
'other_adjustment',
|
|
3079
|
+
'tax_adjustment',
|
|
3080
|
+
'channel',
|
|
3081
|
+
'order',
|
|
3082
|
+
'virtual_card_capture',
|
|
3083
|
+
'virtual_card_refund',
|
|
3084
|
+
]),
|
|
3820
3085
|
|
|
3821
3086
|
'io.flow.v0.enums.unit_of_measurement': (): io.flow.v0.enums.UnitOfMeasurement => faker.random.arrayElement([
|
|
3822
3087
|
'millimeter',
|
|
@@ -5130,6 +4395,13 @@ const factories = {
|
|
|
5130
4395
|
center: factories['io.flow.v0.models.center'](),
|
|
5131
4396
|
}),
|
|
5132
4397
|
|
|
4398
|
+
'io.flow.v0.models.channel': (): io.flow.v0.models.Channel => ({
|
|
4399
|
+
id: factories.string(),
|
|
4400
|
+
name: factories.string(),
|
|
4401
|
+
environment: factories['io.flow.v0.enums.environment'](),
|
|
4402
|
+
organization_id_prefix: factories.string(),
|
|
4403
|
+
}),
|
|
4404
|
+
|
|
5133
4405
|
'io.flow.v0.models.channel_authorization': (): io.flow.v0.models.ChannelAuthorization => ({
|
|
5134
4406
|
placeholder: factories.string(),
|
|
5135
4407
|
}),
|
|
@@ -5138,6 +4410,13 @@ const factories = {
|
|
|
5138
4410
|
channel_id: factories.string(),
|
|
5139
4411
|
}),
|
|
5140
4412
|
|
|
4413
|
+
'io.flow.v0.models.channel_currency': (): io.flow.v0.models.ChannelCurrency => ({
|
|
4414
|
+
id: factories.string(),
|
|
4415
|
+
currency: factories.string(),
|
|
4416
|
+
channel: factories['io.flow.v0.models.channel_reference'](),
|
|
4417
|
+
capabilities: arrayOf(() => factories['io.flow.v0.enums.channel_currency_capability']()),
|
|
4418
|
+
}),
|
|
4419
|
+
|
|
5141
4420
|
'io.flow.v0.models.channel_currency_deleted': (): io.flow.v0.models.ChannelCurrencyDeleted => ({
|
|
5142
4421
|
discriminator: 'channel_currency_deleted',
|
|
5143
4422
|
event_id: factories.string(),
|
|
@@ -5149,7 +4428,7 @@ const factories = {
|
|
|
5149
4428
|
discriminator: 'channel_currency_upserted',
|
|
5150
4429
|
event_id: factories.string(),
|
|
5151
4430
|
timestamp: factories.date_time_iso_8601(),
|
|
5152
|
-
channel_currency: factories['io.flow.
|
|
4431
|
+
channel_currency: factories['io.flow.v0.models.channel_currency'](),
|
|
5153
4432
|
}),
|
|
5154
4433
|
|
|
5155
4434
|
'io.flow.v0.models.channel_deleted': (): io.flow.v0.models.ChannelDeleted => ({
|
|
@@ -5243,7 +4522,7 @@ const factories = {
|
|
|
5243
4522
|
discriminator: 'channel_upserted',
|
|
5244
4523
|
event_id: factories.string(),
|
|
5245
4524
|
timestamp: factories.date_time_iso_8601(),
|
|
5246
|
-
channel: factories['io.flow.
|
|
4525
|
+
channel: factories['io.flow.v0.models.channel'](),
|
|
5247
4526
|
}),
|
|
5248
4527
|
|
|
5249
4528
|
'io.flow.v0.models.channel_vies_registration': (): io.flow.v0.models.ChannelViesRegistration => ({
|
|
@@ -8294,6 +7573,15 @@ const factories = {
|
|
|
8294
7573
|
currency: factories.string(),
|
|
8295
7574
|
}),
|
|
8296
7575
|
|
|
7576
|
+
'io.flow.v0.models.merchant_onboarding_address': (): io.flow.v0.models.MerchantOnboardingAddress => ({
|
|
7577
|
+
full_name: factories.string(),
|
|
7578
|
+
streets: arrayOf(() => factories.string()),
|
|
7579
|
+
city: factories.string(),
|
|
7580
|
+
province: factories.string(),
|
|
7581
|
+
postal: factories.string(),
|
|
7582
|
+
country: factories.string(),
|
|
7583
|
+
}),
|
|
7584
|
+
|
|
8297
7585
|
'io.flow.v0.models.money': (): io.flow.v0.models.Money => ({
|
|
8298
7586
|
amount: factories.double(),
|
|
8299
7587
|
currency: factories.string(),
|
|
@@ -8364,6 +7652,23 @@ const factories = {
|
|
|
8364
7652
|
max: factories.long(),
|
|
8365
7653
|
}),
|
|
8366
7654
|
|
|
7655
|
+
'io.flow.v0.models.onboarding_merchant_pickup_window': (): io.flow.v0.models.OnboardingMerchantPickupWindow => ({
|
|
7656
|
+
from: factories['io.flow.v0.models.onboarding_merchant_time'](),
|
|
7657
|
+
to: factories['io.flow.v0.models.onboarding_merchant_time'](),
|
|
7658
|
+
}),
|
|
7659
|
+
|
|
7660
|
+
'io.flow.v0.models.onboarding_merchant_scheduled_pickup': (): io.flow.v0.models.OnboardingMerchantScheduledPickup => ({
|
|
7661
|
+
day_of_week: factories['io.flow.v0.enums.day_of_week'](),
|
|
7662
|
+
window: factories['io.flow.v0.models.onboarding_merchant_pickup_window'](),
|
|
7663
|
+
instructions: factories.string(),
|
|
7664
|
+
}),
|
|
7665
|
+
|
|
7666
|
+
'io.flow.v0.models.onboarding_merchant_time': (): io.flow.v0.models.OnboardingMerchantTime => ({
|
|
7667
|
+
hour_of_day: factories.string(),
|
|
7668
|
+
minute_of_hour: factories.string(),
|
|
7669
|
+
timezone: factories.string(),
|
|
7670
|
+
}),
|
|
7671
|
+
|
|
8367
7672
|
'io.flow.v0.models.online_authorization': (): io.flow.v0.models.OnlineAuthorization => ({
|
|
8368
7673
|
discriminator: 'online_authorization',
|
|
8369
7674
|
id: factories.string(),
|
|
@@ -11905,6 +11210,7 @@ const factories = {
|
|
|
11905
11210
|
'io.flow.v0.models.shopify_merchant_application': (): io.flow.v0.models.ShopifyMerchantApplication => ({
|
|
11906
11211
|
discriminator: 'shopify_merchant_application',
|
|
11907
11212
|
id: factories.string(),
|
|
11213
|
+
organization_id: factories.string(),
|
|
11908
11214
|
company: factories['io.flow.v0.models.merchant_info'](),
|
|
11909
11215
|
indirect_tax_number: factories.string(),
|
|
11910
11216
|
parent_company: factories['io.flow.v0.models.merchant_info'](),
|
|
@@ -12447,17 +11753,15 @@ const factories = {
|
|
|
12447
11753
|
}),
|
|
12448
11754
|
|
|
12449
11755
|
'io.flow.v0.models.third_party_logistics_partner': (): io.flow.v0.models.ThirdPartyLogisticsPartner => ({
|
|
12450
|
-
warehouse_address: factories['io.flow.v0.models.
|
|
11756
|
+
warehouse_address: factories['io.flow.v0.models.merchant_onboarding_address'](),
|
|
12451
11757
|
warehouse_url: factories.string(),
|
|
12452
|
-
|
|
12453
|
-
pickup_location: factories['io.flow.v0.models.billing_address'](),
|
|
12454
|
-
pickup_instructions: factories.string(),
|
|
12455
|
-
operations_contact: factories['io.flow.v0.models.operations_contact'](),
|
|
12456
|
-
}),
|
|
11758
|
+
location: factories['io.flow.v0.models.merchant_onboarding_address'](),
|
|
12457
11759
|
|
|
12458
|
-
|
|
12459
|
-
|
|
12460
|
-
|
|
11760
|
+
scheduled_pickups: arrayOf(
|
|
11761
|
+
() => factories['io.flow.v0.models.onboarding_merchant_scheduled_pickup'](),
|
|
11762
|
+
),
|
|
11763
|
+
|
|
11764
|
+
operations_contact: factories['io.flow.v0.models.operations_contact'](),
|
|
12461
11765
|
}),
|
|
12462
11766
|
|
|
12463
11767
|
'io.flow.v0.models.three_d_secure': (): io.flow.v0.models.ThreeDSecure => ({
|
|
@@ -14280,8 +13584,11 @@ export const makeCenterSummary = () => factories['io.flow.v0.models.center_summa
|
|
|
14280
13584
|
export const makeCenterUpserted = () => factories['io.flow.v0.models.center_upserted']();
|
|
14281
13585
|
export const makeCenterVersion = () => factories['io.flow.v0.models.center_version']();
|
|
14282
13586
|
export const makeChangeType = () => factories['io.flow.v0.enums.change_type']();
|
|
13587
|
+
export const makeChannel = () => factories['io.flow.v0.models.channel']();
|
|
14283
13588
|
export const makeChannelAuthorization = () => factories['io.flow.v0.models.channel_authorization']();
|
|
14284
13589
|
export const makeChannelAuthorizationForm = () => factories['io.flow.v0.models.channel_authorization_form']();
|
|
13590
|
+
export const makeChannelCurrency = () => factories['io.flow.v0.models.channel_currency']();
|
|
13591
|
+
export const makeChannelCurrencyCapability = () => factories['io.flow.v0.enums.channel_currency_capability']();
|
|
14285
13592
|
export const makeChannelCurrencyDeleted = () => factories['io.flow.v0.models.channel_currency_deleted']();
|
|
14286
13593
|
export const makeChannelCurrencyUpserted = () => factories['io.flow.v0.models.channel_currency_upserted']();
|
|
14287
13594
|
export const makeChannelDeleted = () => factories['io.flow.v0.models.channel_deleted']();
|
|
@@ -14835,6 +14142,7 @@ export const makeMerchantOfRecordAuthorizationForm = () => factories['io.flow.v0
|
|
|
14835
14142
|
export const makeMerchantOfRecordEntity = () => factories['io.flow.v0.models.merchant_of_record_entity']();
|
|
14836
14143
|
export const makeMerchantOfRecordEntityRegistration = () => factories['io.flow.v0.models.merchant_of_record_entity_registration']();
|
|
14837
14144
|
export const makeMerchantOfRecordPaymentForm = () => factories['io.flow.v0.models.merchant_of_record_payment_form']();
|
|
14145
|
+
export const makeMerchantOnboardingAddress = () => factories['io.flow.v0.models.merchant_onboarding_address']();
|
|
14838
14146
|
export const makeMethod = () => factories['io.flow.v0.enums.method']();
|
|
14839
14147
|
export const makeMoney = () => factories['io.flow.v0.models.money']();
|
|
14840
14148
|
export const makeMoneyWithBase = () => factories['io.flow.v0.models.money_with_base']();
|
|
@@ -14848,6 +14156,9 @@ export const makeNoInventoryReservationErrorItem = () => factories['io.flow.v0.m
|
|
|
14848
14156
|
export const makeNotificationDeletedV2 = () => factories['io.flow.v0.models.notification_deleted_v2']();
|
|
14849
14157
|
export const makeNotificationUpsertedV2 = () => factories['io.flow.v0.models.notification_upserted_v2']();
|
|
14850
14158
|
export const makeNumberRange = () => factories['io.flow.v0.models.number_range']();
|
|
14159
|
+
export const makeOnboardingMerchantPickupWindow = () => factories['io.flow.v0.models.onboarding_merchant_pickup_window']();
|
|
14160
|
+
export const makeOnboardingMerchantScheduledPickup = () => factories['io.flow.v0.models.onboarding_merchant_scheduled_pickup']();
|
|
14161
|
+
export const makeOnboardingMerchantTime = () => factories['io.flow.v0.models.onboarding_merchant_time']();
|
|
14851
14162
|
export const makeOnboardingTradeSector = () => factories['io.flow.v0.enums.onboarding_trade_sector']();
|
|
14852
14163
|
export const makeOnlineAuthorization = () => factories['io.flow.v0.models.online_authorization']();
|
|
14853
14164
|
export const makeOnlineAuthorizationDeletedV2 = () => factories['io.flow.v0.models.online_authorization_deleted_v2']();
|
|
@@ -15528,7 +14839,6 @@ export const makeTaxVerificationResult = () => factories['io.flow.v0.enums.tax_v
|
|
|
15528
14839
|
export const makeTaxabilityType = () => factories['io.flow.v0.enums.taxability_type']();
|
|
15529
14840
|
export const makeTaxabilityValue = () => factories['io.flow.v0.enums.taxability_value']();
|
|
15530
14841
|
export const makeThirdPartyLogisticsPartner = () => factories['io.flow.v0.models.third_party_logistics_partner']();
|
|
15531
|
-
export const makeThirdPartyLogisticsPickUpTimeWindow = () => factories['io.flow.v0.models.third_party_logistics_pick_up_time_window']();
|
|
15532
14842
|
export const makeThreeDSecure = () => factories['io.flow.v0.models.three_d_secure']();
|
|
15533
14843
|
export const makeThreeDSecureCode = () => factories['io.flow.v0.enums.three_d_secure_code']();
|
|
15534
14844
|
export const makeThreedsChallengeAction = () => factories['io.flow.v0.unions.threeds_challenge_action']();
|