@flowio/api-factories 0.0.3 → 0.0.5
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 +260 -33
- package/dist/esm/api.js +208 -2
- package/dist/types/api.d.ts +21 -0
- package/package.json +2 -2
- package/src/api.ts +230 -5
package/dist/esm/api.js
CHANGED
|
@@ -2991,6 +2991,42 @@ var factories = {
|
|
|
2991
2991
|
]); },
|
|
2992
2992
|
'io.flow.v0.enums.merchant_of_record': function () { return faker.random.arrayElement(['flow', 'organization']); },
|
|
2993
2993
|
'io.flow.v0.enums.method': function () { return faker.random.arrayElement(['post']); },
|
|
2994
|
+
'io.flow.v0.enums.onboarding_dangerous_goods': function () { return faker.random.arrayElement([
|
|
2995
|
+
'aerosols',
|
|
2996
|
+
'air_bag_inflators_or_seat_belt_pretensioners',
|
|
2997
|
+
'alcoholic_beverages_containing_more_than_24_percent_alcohol_by_volume',
|
|
2998
|
+
'batteries',
|
|
2999
|
+
'carbon_dioxide_or_dry_ice',
|
|
3000
|
+
'corrosives',
|
|
3001
|
+
'cannabidiol_products',
|
|
3002
|
+
'cologne_or_perfume',
|
|
3003
|
+
'currency_or_gift_cards_or_monetary_instruments',
|
|
3004
|
+
'exotic_leather_goods',
|
|
3005
|
+
'environmental_waste',
|
|
3006
|
+
'explosives_or_ammunition',
|
|
3007
|
+
'flammable_liquids',
|
|
3008
|
+
'gases',
|
|
3009
|
+
'hazardous_or_combustible_materials',
|
|
3010
|
+
'infectious_or_biological_substances',
|
|
3011
|
+
'knives',
|
|
3012
|
+
'matches_or_lighter_or_lighter_refills',
|
|
3013
|
+
'nail_polish',
|
|
3014
|
+
'oxidizing_materials_or_organic_peroxides',
|
|
3015
|
+
'pornography',
|
|
3016
|
+
'prohibited_carriage',
|
|
3017
|
+
'pesticides_or_toxic_herbicides_or_insecticides_or_poisonous_toxic_substances',
|
|
3018
|
+
]); },
|
|
3019
|
+
'io.flow.v0.enums.onboarding_trade_sector': function () { return faker.random.arrayElement([
|
|
3020
|
+
'apparel_and_accessories',
|
|
3021
|
+
'beauty_and_cosmetics',
|
|
3022
|
+
'electronics',
|
|
3023
|
+
'food_or_perishables',
|
|
3024
|
+
'jewellery_and_watches',
|
|
3025
|
+
'paper_and_art',
|
|
3026
|
+
'sports_and_fitness',
|
|
3027
|
+
'toys_hobbies_gifts',
|
|
3028
|
+
'other',
|
|
3029
|
+
]); },
|
|
2994
3030
|
'io.flow.v0.enums.optin_response_type': function () { return faker.random.arrayElement(['not_shown', 'opted_in', 'opted_out']); },
|
|
2995
3031
|
'io.flow.v0.enums.order_change_source': function () { return faker.random.arrayElement(['consumer', 'retailer', 'fulfillment', 'flow', 'carrier']); },
|
|
2996
3032
|
'io.flow.v0.enums.order_error_code': function () { return faker.random.arrayElement([
|
|
@@ -3099,6 +3135,8 @@ var factories = {
|
|
|
3099
3135
|
'io.flow.v0.enums.organization_status': function () { return faker.random.arrayElement(['active', 'inactive', 'deactivated', 'provisioned']); },
|
|
3100
3136
|
'io.flow.v0.enums.payment_action_type': function () { return faker.random.arrayElement([
|
|
3101
3137
|
'redirect',
|
|
3138
|
+
'redirect_get',
|
|
3139
|
+
'redirect_post',
|
|
3102
3140
|
'use_sdk_klarna_v1',
|
|
3103
3141
|
'use_sdk_applepay_js',
|
|
3104
3142
|
'use_sdk_googlepay',
|
|
@@ -3146,7 +3184,16 @@ var factories = {
|
|
|
3146
3184
|
'in_dispute',
|
|
3147
3185
|
'charged_back',
|
|
3148
3186
|
]); },
|
|
3149
|
-
'io.flow.v0.enums.payment_type': function () { return faker.random.arrayElement([
|
|
3187
|
+
'io.flow.v0.enums.payment_type': function () { return faker.random.arrayElement([
|
|
3188
|
+
'card',
|
|
3189
|
+
'klarna',
|
|
3190
|
+
'googlepay',
|
|
3191
|
+
'paypal',
|
|
3192
|
+
'applepay',
|
|
3193
|
+
'ideal',
|
|
3194
|
+
'sofort',
|
|
3195
|
+
'afterpay',
|
|
3196
|
+
]); },
|
|
3150
3197
|
'io.flow.v0.enums.permitted_http_method': function () { return faker.random.arrayElement(['GET', 'POST', 'PUT', 'DELETE', 'PATCH']); },
|
|
3151
3198
|
'io.flow.v0.enums.physical_delivery_special_serivce': function () { return faker.random.arrayElement(['cold_storage', 'hazardous', 'perishable']); },
|
|
3152
3199
|
'io.flow.v0.enums.postal_type': function () { return faker.random.arrayElement(['eircode', 'pin', 'postal', 'zip']); },
|
|
@@ -3308,6 +3355,7 @@ var factories = {
|
|
|
3308
3355
|
]); },
|
|
3309
3356
|
'io.flow.v0.enums.trade_agreement_name': function () { return faker.random.arrayElement(['USMCA', 'T-MEC', 'CUSMA', 'TCA']); },
|
|
3310
3357
|
'io.flow.v0.enums.trade_agreement_status': function () { return faker.random.arrayElement(['supported', 'not_supported']); },
|
|
3358
|
+
'io.flow.v0.enums.uncertain_boolean': function () { return faker.random.arrayElement(['yes', 'no', 'i_dont_know']); },
|
|
3311
3359
|
'io.flow.v0.enums.unit_of_measurement': function () { return faker.random.arrayElement([
|
|
3312
3360
|
'millimeter',
|
|
3313
3361
|
'centimeter',
|
|
@@ -3429,6 +3477,10 @@ var factories = {
|
|
|
3429
3477
|
expires_at: factories.date_time_iso_8601(),
|
|
3430
3478
|
script: factories.string(),
|
|
3431
3479
|
}); },
|
|
3480
|
+
'io.flow.v0.models.action_ideal_select_issuer': function () { return ({
|
|
3481
|
+
type: 'select_ideal_issuer',
|
|
3482
|
+
issuers: arrayOf(function () { return factories['io.flow.v0.models.ideal_issuer'](); }),
|
|
3483
|
+
}); },
|
|
3432
3484
|
'io.flow.v0.models.action_redirect': function () { return ({
|
|
3433
3485
|
type: 'redirect',
|
|
3434
3486
|
expires_at: factories.date_time_iso_8601(),
|
|
@@ -6228,6 +6280,11 @@ var factories = {
|
|
|
6228
6280
|
number: factories.string(),
|
|
6229
6281
|
code: factories.string(),
|
|
6230
6282
|
}); },
|
|
6283
|
+
'io.flow.v0.models.ideal_issuer': function () { return ({
|
|
6284
|
+
id: factories.string(),
|
|
6285
|
+
name: factories.string(),
|
|
6286
|
+
images: factories['io.flow.v0.models.payment_method_images'](),
|
|
6287
|
+
}); },
|
|
6231
6288
|
'io.flow.v0.models.identifier_form': function () { return ({
|
|
6232
6289
|
primary: factories.boolean(),
|
|
6233
6290
|
name: factories.string(),
|
|
@@ -7134,6 +7191,116 @@ var factories = {
|
|
|
7134
7191
|
min: factories.long(),
|
|
7135
7192
|
max: factories.long(),
|
|
7136
7193
|
}); },
|
|
7194
|
+
'io.flow.v0.models.onboarding_bank_account': function () { return ({
|
|
7195
|
+
id: factories.string(),
|
|
7196
|
+
name: factories.string(),
|
|
7197
|
+
address: factories['io.flow.v0.models.address'](),
|
|
7198
|
+
contact: factories['io.flow.v0.models.contact'](),
|
|
7199
|
+
account_number: factories.string(),
|
|
7200
|
+
aba_routing_transit_number: factories.string(),
|
|
7201
|
+
created_at: factories.date_time_iso_8601(),
|
|
7202
|
+
}); },
|
|
7203
|
+
'io.flow.v0.models.onboarding_bank_account_form': function () { return ({
|
|
7204
|
+
name: factories.string(),
|
|
7205
|
+
address: factories['io.flow.v0.models.address'](),
|
|
7206
|
+
contact: factories['io.flow.v0.models.contact'](),
|
|
7207
|
+
account_number: factories.string(),
|
|
7208
|
+
aba_routing_transit_number: factories.string(),
|
|
7209
|
+
}); },
|
|
7210
|
+
'io.flow.v0.models.onboarding_classification': function () { return ({
|
|
7211
|
+
id: factories.string(),
|
|
7212
|
+
country_of_origin_populated: factories.boolean(),
|
|
7213
|
+
created_at: factories.date_time_iso_8601(),
|
|
7214
|
+
}); },
|
|
7215
|
+
'io.flow.v0.models.onboarding_classification_form': function () { return ({
|
|
7216
|
+
country_of_origin_populated: factories.boolean(),
|
|
7217
|
+
}); },
|
|
7218
|
+
'io.flow.v0.models.onboarding_incorporation': function () { return ({
|
|
7219
|
+
country: factories.string(),
|
|
7220
|
+
state: factories.string(),
|
|
7221
|
+
province: factories.string(),
|
|
7222
|
+
jurisdiction: factories.string(),
|
|
7223
|
+
}); },
|
|
7224
|
+
'io.flow.v0.models.onboarding_payment': function () { return ({
|
|
7225
|
+
id: factories.string(),
|
|
7226
|
+
legal_name: factories.string(),
|
|
7227
|
+
incorporation: factories['io.flow.v0.models.onboarding_incorporation'](),
|
|
7228
|
+
indirect_tax_number: factories.long(),
|
|
7229
|
+
subsidiary_company: factories['io.flow.v0.models.onboarding_subsidiary_company'](),
|
|
7230
|
+
beneficiary: factories.string(),
|
|
7231
|
+
business_url: factories.string(),
|
|
7232
|
+
business_description: factories.string(),
|
|
7233
|
+
business_address: factories['io.flow.v0.models.address'](),
|
|
7234
|
+
refund_percentage: factories.decimal(),
|
|
7235
|
+
chargeback_percentage: factories.decimal(),
|
|
7236
|
+
created_at: factories.date_time_iso_8601(),
|
|
7237
|
+
}); },
|
|
7238
|
+
'io.flow.v0.models.onboarding_payment_form': function () { return ({
|
|
7239
|
+
legal_name: factories.string(),
|
|
7240
|
+
incorporation: factories['io.flow.v0.models.onboarding_incorporation'](),
|
|
7241
|
+
indirect_tax_number: factories.long(),
|
|
7242
|
+
subsidiary_company: factories['io.flow.v0.models.onboarding_subsidiary_company'](),
|
|
7243
|
+
beneficiary: factories.string(),
|
|
7244
|
+
business_url: factories.string(),
|
|
7245
|
+
business_description: factories.string(),
|
|
7246
|
+
business_address: factories['io.flow.v0.models.address'](),
|
|
7247
|
+
refund_percentage: factories.decimal(),
|
|
7248
|
+
chargeback_percentage: factories.decimal(),
|
|
7249
|
+
}); },
|
|
7250
|
+
'io.flow.v0.models.onboarding_preparer_details': function () { return ({
|
|
7251
|
+
id: factories.string(),
|
|
7252
|
+
name: factories.string(),
|
|
7253
|
+
title: factories.string(),
|
|
7254
|
+
company: factories.string(),
|
|
7255
|
+
created_at: factories.date_time_iso_8601(),
|
|
7256
|
+
}); },
|
|
7257
|
+
'io.flow.v0.models.onboarding_preparer_details_form': function () { return ({
|
|
7258
|
+
name: factories.string(),
|
|
7259
|
+
title: factories.string(),
|
|
7260
|
+
company: factories.string(),
|
|
7261
|
+
}); },
|
|
7262
|
+
'io.flow.v0.models.onboarding_product_logistics': function () { return ({
|
|
7263
|
+
id: factories.string(),
|
|
7264
|
+
trade_sector: arrayOf(function () { return factories['io.flow.v0.enums.onboarding_trade_sector'](); }),
|
|
7265
|
+
other_trade_sector: factories.string(),
|
|
7266
|
+
shipped_prohibited_products_before: factories.boolean(),
|
|
7267
|
+
third_party_logistics_partner: factories['io.flow.v0.models.third_party_logistics_partner'](),
|
|
7268
|
+
third_party_logistics_pick_up_time_window: factories['io.flow.v0.models.third_party_logistics_pick_up_time_window'](),
|
|
7269
|
+
pickup_location: factories['io.flow.v0.models.billing_address'](),
|
|
7270
|
+
pickup_instructions: factories.string(),
|
|
7271
|
+
operations_contact: factories['io.flow.v0.models.contact'](),
|
|
7272
|
+
average_order_weight: factories.decimal(),
|
|
7273
|
+
package_dimensions: factories['io.flow.v0.models.dimensions'](),
|
|
7274
|
+
average_order_value: factories.decimal(),
|
|
7275
|
+
maximum_order_value: factories.decimal(),
|
|
7276
|
+
monthly_average_volume: factories.decimal(),
|
|
7277
|
+
monthly_average_transactions: factories.long(),
|
|
7278
|
+
sells_dangerous_goods: factories['io.flow.v0.enums.uncertain_boolean'](),
|
|
7279
|
+
dangerous_goods: arrayOf(function () { return factories['io.flow.v0.enums.onboarding_dangerous_goods'](); }),
|
|
7280
|
+
created_at: factories.date_time_iso_8601(),
|
|
7281
|
+
}); },
|
|
7282
|
+
'io.flow.v0.models.onboarding_product_logistics_form': function () { return ({
|
|
7283
|
+
trade_sector: arrayOf(function () { return factories['io.flow.v0.enums.onboarding_trade_sector'](); }),
|
|
7284
|
+
other_trade_sector: factories.string(),
|
|
7285
|
+
shipped_prohibited_products_before: factories.boolean(),
|
|
7286
|
+
third_party_logistics_partner: factories['io.flow.v0.models.third_party_logistics_partner'](),
|
|
7287
|
+
third_party_logistics_pick_up_time_window: factories['io.flow.v0.models.third_party_logistics_pick_up_time_window'](),
|
|
7288
|
+
pickup_location: factories['io.flow.v0.models.billing_address'](),
|
|
7289
|
+
pickup_instructions: factories.string(),
|
|
7290
|
+
operations_contact: factories['io.flow.v0.models.contact'](),
|
|
7291
|
+
average_order_weight: factories.decimal(),
|
|
7292
|
+
package_dimensions: factories['io.flow.v0.models.dimensions'](),
|
|
7293
|
+
average_order_value: factories.decimal(),
|
|
7294
|
+
maximum_order_value: factories.decimal(),
|
|
7295
|
+
monthly_average_volume: factories.decimal(),
|
|
7296
|
+
monthly_average_transactions: factories.long(),
|
|
7297
|
+
sells_dangerous_goods: factories['io.flow.v0.enums.uncertain_boolean'](),
|
|
7298
|
+
dangerous_goods: arrayOf(function () { return factories['io.flow.v0.enums.onboarding_dangerous_goods'](); }),
|
|
7299
|
+
}); },
|
|
7300
|
+
'io.flow.v0.models.onboarding_subsidiary_company': function () { return ({
|
|
7301
|
+
legal_name: factories.string(),
|
|
7302
|
+
incorporation_country: factories['io.flow.v0.models.onboarding_incorporation'](),
|
|
7303
|
+
}); },
|
|
7137
7304
|
'io.flow.v0.models.online_authorization': function () { return ({
|
|
7138
7305
|
discriminator: 'online_authorization',
|
|
7139
7306
|
id: factories.string(),
|
|
@@ -8290,6 +8457,10 @@ var factories = {
|
|
|
8290
8457
|
type: 'init_paypal',
|
|
8291
8458
|
placeholder: factories.string(),
|
|
8292
8459
|
}); },
|
|
8460
|
+
'io.flow.v0.models.payment_method_data_init_sofort': function () { return ({
|
|
8461
|
+
type: 'init_sofort',
|
|
8462
|
+
placeholder: factories.string(),
|
|
8463
|
+
}); },
|
|
8293
8464
|
'io.flow.v0.models.payment_method_data_validate_applepay': function () { return ({
|
|
8294
8465
|
type: 'validate_applepay',
|
|
8295
8466
|
validation_url: factories.string(),
|
|
@@ -8353,6 +8524,10 @@ var factories = {
|
|
|
8353
8524
|
type: 'paypal',
|
|
8354
8525
|
merchant_of_record: factories['io.flow.v0.enums.merchant_of_record'](),
|
|
8355
8526
|
}); },
|
|
8527
|
+
'io.flow.v0.models.payment_method_summary_sofort': function () { return ({
|
|
8528
|
+
type: 'sofort',
|
|
8529
|
+
merchant_of_record: factories['io.flow.v0.enums.merchant_of_record'](),
|
|
8530
|
+
}); },
|
|
8356
8531
|
'io.flow.v0.models.payment_order_details_line_item': function () { return ({
|
|
8357
8532
|
id: factories.string(),
|
|
8358
8533
|
description: factories.string(),
|
|
@@ -10399,7 +10574,6 @@ var factories = {
|
|
|
10399
10574
|
'io.flow.v0.models.tax_duty_calculator_validation_error': function () { return ({
|
|
10400
10575
|
code: factories['io.flow.v0.enums.tax_duty_calculator_validation_error_code'](),
|
|
10401
10576
|
messages: arrayOf(function () { return factories.string(); }),
|
|
10402
|
-
codes: arrayOf(function () { return factories['io.flow.v0.enums.tax_duty_calculator_validation_error_code'](); }),
|
|
10403
10577
|
}); },
|
|
10404
10578
|
'io.flow.v0.models.tax_duty_quote': function () { return ({
|
|
10405
10579
|
id: factories.string(),
|
|
@@ -10493,6 +10667,14 @@ var factories = {
|
|
|
10493
10667
|
types: arrayOf(function () { return factories['io.flow.v0.enums.tax_report_type'](); }),
|
|
10494
10668
|
email_recipients: arrayOf(function () { return factories.string(); }),
|
|
10495
10669
|
}); },
|
|
10670
|
+
'io.flow.v0.models.third_party_logistics_partner': function () { return ({
|
|
10671
|
+
warehouse_address: factories['io.flow.v0.models.billing_address'](),
|
|
10672
|
+
warehouse_url: factories.string(),
|
|
10673
|
+
}); },
|
|
10674
|
+
'io.flow.v0.models.third_party_logistics_pick_up_time_window': function () { return ({
|
|
10675
|
+
from: factories.date_time_iso_8601(),
|
|
10676
|
+
to: factories.date_time_iso_8601(),
|
|
10677
|
+
}); },
|
|
10496
10678
|
'io.flow.v0.models.three_d_secure': function () { return ({
|
|
10497
10679
|
code: factories['io.flow.v0.enums.three_d_secure_code'](),
|
|
10498
10680
|
description: factories.string(),
|
|
@@ -10965,6 +11147,7 @@ var factories = {
|
|
|
10965
11147
|
function () { return factories['io.flow.v0.models.action_use_sdk_stripe_v3'](); },
|
|
10966
11148
|
function () { return factories['io.flow.v0.models.action_use_sdk_adyen_v3'](); },
|
|
10967
11149
|
function () { return factories['io.flow.v0.models.action_use_sdk_adyen_v4'](); },
|
|
11150
|
+
function () { return factories['io.flow.v0.models.action_ideal_select_issuer'](); },
|
|
10968
11151
|
function () { return factories['io.flow.v0.models.action_execute_script'](); },
|
|
10969
11152
|
function () { return factories['io.flow.v0.models.action_display_inline_window'](); },
|
|
10970
11153
|
function () { return factories['io.flow.v0.models.action_wait'](); },
|
|
@@ -11538,6 +11721,7 @@ var factories = {
|
|
|
11538
11721
|
function () { return factories['io.flow.v0.models.payment_method_data_init_googlepay'](); },
|
|
11539
11722
|
function () { return factories['io.flow.v0.models.payment_method_data_init_paypal'](); },
|
|
11540
11723
|
function () { return factories['io.flow.v0.models.payment_method_data_init_ideal'](); },
|
|
11724
|
+
function () { return factories['io.flow.v0.models.payment_method_data_init_sofort'](); },
|
|
11541
11725
|
function () { return factories['io.flow.v0.models.payment_method_data_validate_applepay'](); },
|
|
11542
11726
|
function () { return factories['io.flow.v0.models.payment_method_data_authorize_card'](); },
|
|
11543
11727
|
function () { return factories['io.flow.v0.models.payment_method_data_authorize_googlepay'](); },
|
|
@@ -11564,6 +11748,7 @@ var factories = {
|
|
|
11564
11748
|
function () { return factories['io.flow.v0.models.payment_method_summary_googlepay'](); },
|
|
11565
11749
|
function () { return factories['io.flow.v0.models.payment_method_summary_paypal'](); },
|
|
11566
11750
|
function () { return factories['io.flow.v0.models.payment_method_summary_ideal'](); },
|
|
11751
|
+
function () { return factories['io.flow.v0.models.payment_method_summary_sofort'](); },
|
|
11567
11752
|
]);
|
|
11568
11753
|
return f();
|
|
11569
11754
|
},
|
|
@@ -11797,6 +11982,7 @@ export var makeAchAuthorizationForm = function () { return factories['io.flow.v0
|
|
|
11797
11982
|
export var makeAction = function () { return factories['io.flow.v0.unions.action'](); };
|
|
11798
11983
|
export var makeActionDisplayInlineWindow = function () { return factories['io.flow.v0.models.action_display_inline_window'](); };
|
|
11799
11984
|
export var makeActionExecuteScript = function () { return factories['io.flow.v0.models.action_execute_script'](); };
|
|
11985
|
+
export var makeActionIdealSelectIssuer = function () { return factories['io.flow.v0.models.action_ideal_select_issuer'](); };
|
|
11800
11986
|
export var makeActionRedirect = function () { return factories['io.flow.v0.models.action_redirect'](); };
|
|
11801
11987
|
export var makeActionUseSdkAdyenV3 = function () { return factories['io.flow.v0.models.action_use_sdk_adyen_v3'](); };
|
|
11802
11988
|
export var makeActionUseSdkAdyenV4 = function () { return factories['io.flow.v0.models.action_use_sdk_adyen_v4'](); };
|
|
@@ -12366,6 +12552,7 @@ export var makeHs10Version = function () { return factories['io.flow.v0.models.h
|
|
|
12366
12552
|
export var makeHs6 = function () { return factories['io.flow.v0.models.hs6'](); };
|
|
12367
12553
|
export var makeHs6CodeDeleted = function () { return factories['io.flow.v0.models.hs6_code_deleted'](); };
|
|
12368
12554
|
export var makeHs6CodeUpserted = function () { return factories['io.flow.v0.models.hs6_code_upserted'](); };
|
|
12555
|
+
export var makeIdealIssuer = function () { return factories['io.flow.v0.models.ideal_issuer'](); };
|
|
12369
12556
|
export var makeIdentifierForm = function () { return factories['io.flow.v0.models.identifier_form'](); };
|
|
12370
12557
|
export var makeImage = function () { return factories['io.flow.v0.models.image'](); };
|
|
12371
12558
|
export var makeImageForm = function () { return factories['io.flow.v0.models.image_form'](); };
|
|
@@ -12539,6 +12726,20 @@ export var makeNoInventoryReservationErrorItem = function () { return factories[
|
|
|
12539
12726
|
export var makeNotificationDeletedV2 = function () { return factories['io.flow.v0.models.notification_deleted_v2'](); };
|
|
12540
12727
|
export var makeNotificationUpsertedV2 = function () { return factories['io.flow.v0.models.notification_upserted_v2'](); };
|
|
12541
12728
|
export var makeNumberRange = function () { return factories['io.flow.v0.models.number_range'](); };
|
|
12729
|
+
export var makeOnboardingBankAccount = function () { return factories['io.flow.v0.models.onboarding_bank_account'](); };
|
|
12730
|
+
export var makeOnboardingBankAccountForm = function () { return factories['io.flow.v0.models.onboarding_bank_account_form'](); };
|
|
12731
|
+
export var makeOnboardingClassification = function () { return factories['io.flow.v0.models.onboarding_classification'](); };
|
|
12732
|
+
export var makeOnboardingClassificationForm = function () { return factories['io.flow.v0.models.onboarding_classification_form'](); };
|
|
12733
|
+
export var makeOnboardingDangerousGoods = function () { return factories['io.flow.v0.enums.onboarding_dangerous_goods'](); };
|
|
12734
|
+
export var makeOnboardingIncorporation = function () { return factories['io.flow.v0.models.onboarding_incorporation'](); };
|
|
12735
|
+
export var makeOnboardingPayment = function () { return factories['io.flow.v0.models.onboarding_payment'](); };
|
|
12736
|
+
export var makeOnboardingPaymentForm = function () { return factories['io.flow.v0.models.onboarding_payment_form'](); };
|
|
12737
|
+
export var makeOnboardingPreparerDetails = function () { return factories['io.flow.v0.models.onboarding_preparer_details'](); };
|
|
12738
|
+
export var makeOnboardingPreparerDetailsForm = function () { return factories['io.flow.v0.models.onboarding_preparer_details_form'](); };
|
|
12739
|
+
export var makeOnboardingProductLogistics = function () { return factories['io.flow.v0.models.onboarding_product_logistics'](); };
|
|
12740
|
+
export var makeOnboardingProductLogisticsForm = function () { return factories['io.flow.v0.models.onboarding_product_logistics_form'](); };
|
|
12741
|
+
export var makeOnboardingSubsidiaryCompany = function () { return factories['io.flow.v0.models.onboarding_subsidiary_company'](); };
|
|
12742
|
+
export var makeOnboardingTradeSector = function () { return factories['io.flow.v0.enums.onboarding_trade_sector'](); };
|
|
12542
12743
|
export var makeOnlineAuthorization = function () { return factories['io.flow.v0.models.online_authorization'](); };
|
|
12543
12744
|
export var makeOnlineAuthorizationDeletedV2 = function () { return factories['io.flow.v0.models.online_authorization_deleted_v2'](); };
|
|
12544
12745
|
export var makeOnlineAuthorizationDetails = function () { return factories['io.flow.v0.unions.online_authorization_details'](); };
|
|
@@ -12764,6 +12965,7 @@ export var makePaymentMethodDataInitGooglepay = function () { return factories['
|
|
|
12764
12965
|
export var makePaymentMethodDataInitIdeal = function () { return factories['io.flow.v0.models.payment_method_data_init_ideal'](); };
|
|
12765
12966
|
export var makePaymentMethodDataInitKlarna = function () { return factories['io.flow.v0.models.payment_method_data_init_klarna'](); };
|
|
12766
12967
|
export var makePaymentMethodDataInitPaypal = function () { return factories['io.flow.v0.models.payment_method_data_init_paypal'](); };
|
|
12968
|
+
export var makePaymentMethodDataInitSofort = function () { return factories['io.flow.v0.models.payment_method_data_init_sofort'](); };
|
|
12767
12969
|
export var makePaymentMethodDataValidateApplepay = function () { return factories['io.flow.v0.models.payment_method_data_validate_applepay'](); };
|
|
12768
12970
|
export var makePaymentMethodImage = function () { return factories['io.flow.v0.models.payment_method_image'](); };
|
|
12769
12971
|
export var makePaymentMethodImages = function () { return factories['io.flow.v0.models.payment_method_images'](); };
|
|
@@ -12779,6 +12981,7 @@ export var makePaymentMethodSummaryGooglepay = function () { return factories['i
|
|
|
12779
12981
|
export var makePaymentMethodSummaryIdeal = function () { return factories['io.flow.v0.models.payment_method_summary_ideal'](); };
|
|
12780
12982
|
export var makePaymentMethodSummaryKlarna = function () { return factories['io.flow.v0.models.payment_method_summary_klarna'](); };
|
|
12781
12983
|
export var makePaymentMethodSummaryPaypal = function () { return factories['io.flow.v0.models.payment_method_summary_paypal'](); };
|
|
12984
|
+
export var makePaymentMethodSummarySofort = function () { return factories['io.flow.v0.models.payment_method_summary_sofort'](); };
|
|
12782
12985
|
export var makePaymentMethodTag = function () { return factories['io.flow.v0.unions.payment_method_tag'](); };
|
|
12783
12986
|
export var makePaymentMethodType = function () { return factories['io.flow.v0.enums.payment_method_type'](); };
|
|
12784
12987
|
export var makePaymentOrderDetailsLineItem = function () { return factories['io.flow.v0.models.payment_order_details_line_item'](); };
|
|
@@ -13191,6 +13394,8 @@ export var makeTaxSetting = function () { return factories['io.flow.v0.unions.ta
|
|
|
13191
13394
|
export var makeTaxVerificationResult = function () { return factories['io.flow.v0.enums.tax_verification_result'](); };
|
|
13192
13395
|
export var makeTaxabilityType = function () { return factories['io.flow.v0.enums.taxability_type'](); };
|
|
13193
13396
|
export var makeTaxabilityValue = function () { return factories['io.flow.v0.enums.taxability_value'](); };
|
|
13397
|
+
export var makeThirdPartyLogisticsPartner = function () { return factories['io.flow.v0.models.third_party_logistics_partner'](); };
|
|
13398
|
+
export var makeThirdPartyLogisticsPickUpTimeWindow = function () { return factories['io.flow.v0.models.third_party_logistics_pick_up_time_window'](); };
|
|
13194
13399
|
export var makeThreeDSecure = function () { return factories['io.flow.v0.models.three_d_secure'](); };
|
|
13195
13400
|
export var makeThreeDSecureCode = function () { return factories['io.flow.v0.enums.three_d_secure_code'](); };
|
|
13196
13401
|
export var makeThreedsChallengeAction = function () { return factories['io.flow.v0.unions.threeds_challenge_action'](); };
|
|
@@ -13249,6 +13454,7 @@ export var makeTradeAgreementName = function () { return factories['io.flow.v0.e
|
|
|
13249
13454
|
export var makeTradeAgreementStatus = function () { return factories['io.flow.v0.enums.trade_agreement_status'](); };
|
|
13250
13455
|
export var makeTransitEstimate = function () { return factories['io.flow.v0.models.transit_estimate'](); };
|
|
13251
13456
|
export var makeTransitWindow = function () { return factories['io.flow.v0.models.transit_window'](); };
|
|
13457
|
+
export var makeUncertainBoolean = function () { return factories['io.flow.v0.enums.uncertain_boolean'](); };
|
|
13252
13458
|
export var makeUnharmonizedItemExportType = function () { return factories['io.flow.v0.models.unharmonized_item_export_type'](); };
|
|
13253
13459
|
export var makeUnitOfMeasurement = function () { return factories['io.flow.v0.enums.unit_of_measurement'](); };
|
|
13254
13460
|
export var makeUnitOfTime = function () { return factories['io.flow.v0.enums.unit_of_time'](); };
|
package/dist/types/api.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export declare const makeAchAuthorizationForm: () => io.flow.v0.models.AchAuthor
|
|
|
13
13
|
export declare const makeAction: () => io.flow.v0.unions.Action;
|
|
14
14
|
export declare const makeActionDisplayInlineWindow: () => io.flow.v0.models.ActionDisplayInlineWindow;
|
|
15
15
|
export declare const makeActionExecuteScript: () => io.flow.v0.models.ActionExecuteScript;
|
|
16
|
+
export declare const makeActionIdealSelectIssuer: () => io.flow.v0.models.ActionIdealSelectIssuer;
|
|
16
17
|
export declare const makeActionRedirect: () => io.flow.v0.models.ActionRedirect;
|
|
17
18
|
export declare const makeActionUseSdkAdyenV3: () => io.flow.v0.models.ActionUseSdkAdyenV3;
|
|
18
19
|
export declare const makeActionUseSdkAdyenV4: () => io.flow.v0.models.ActionUseSdkAdyenV4;
|
|
@@ -582,6 +583,7 @@ export declare const makeHs10Version: () => io.flow.v0.models.Hs10Version;
|
|
|
582
583
|
export declare const makeHs6: () => io.flow.v0.models.Hs6;
|
|
583
584
|
export declare const makeHs6CodeDeleted: () => io.flow.v0.models.Hs6CodeDeleted;
|
|
584
585
|
export declare const makeHs6CodeUpserted: () => io.flow.v0.models.Hs6CodeUpserted;
|
|
586
|
+
export declare const makeIdealIssuer: () => io.flow.v0.models.IdealIssuer;
|
|
585
587
|
export declare const makeIdentifierForm: () => io.flow.v0.models.IdentifierForm;
|
|
586
588
|
export declare const makeImage: () => io.flow.v0.models.Image;
|
|
587
589
|
export declare const makeImageForm: () => io.flow.v0.models.ImageForm;
|
|
@@ -755,6 +757,20 @@ export declare const makeNoInventoryReservationErrorItem: () => io.flow.v0.model
|
|
|
755
757
|
export declare const makeNotificationDeletedV2: () => io.flow.v0.models.NotificationDeletedV2;
|
|
756
758
|
export declare const makeNotificationUpsertedV2: () => io.flow.v0.models.NotificationUpsertedV2;
|
|
757
759
|
export declare const makeNumberRange: () => io.flow.v0.models.NumberRange;
|
|
760
|
+
export declare const makeOnboardingBankAccount: () => io.flow.v0.models.OnboardingBankAccount;
|
|
761
|
+
export declare const makeOnboardingBankAccountForm: () => io.flow.v0.models.OnboardingBankAccountForm;
|
|
762
|
+
export declare const makeOnboardingClassification: () => io.flow.v0.models.OnboardingClassification;
|
|
763
|
+
export declare const makeOnboardingClassificationForm: () => io.flow.v0.models.OnboardingClassificationForm;
|
|
764
|
+
export declare const makeOnboardingDangerousGoods: () => io.flow.v0.enums.OnboardingDangerousGoods;
|
|
765
|
+
export declare const makeOnboardingIncorporation: () => io.flow.v0.models.OnboardingIncorporation;
|
|
766
|
+
export declare const makeOnboardingPayment: () => io.flow.v0.models.OnboardingPayment;
|
|
767
|
+
export declare const makeOnboardingPaymentForm: () => io.flow.v0.models.OnboardingPaymentForm;
|
|
768
|
+
export declare const makeOnboardingPreparerDetails: () => io.flow.v0.models.OnboardingPreparerDetails;
|
|
769
|
+
export declare const makeOnboardingPreparerDetailsForm: () => io.flow.v0.models.OnboardingPreparerDetailsForm;
|
|
770
|
+
export declare const makeOnboardingProductLogistics: () => io.flow.v0.models.OnboardingProductLogistics;
|
|
771
|
+
export declare const makeOnboardingProductLogisticsForm: () => io.flow.v0.models.OnboardingProductLogisticsForm;
|
|
772
|
+
export declare const makeOnboardingSubsidiaryCompany: () => io.flow.v0.models.OnboardingSubsidiaryCompany;
|
|
773
|
+
export declare const makeOnboardingTradeSector: () => io.flow.v0.enums.OnboardingTradeSector;
|
|
758
774
|
export declare const makeOnlineAuthorization: () => io.flow.v0.models.OnlineAuthorization;
|
|
759
775
|
export declare const makeOnlineAuthorizationDeletedV2: () => io.flow.v0.models.OnlineAuthorizationDeletedV2;
|
|
760
776
|
export declare const makeOnlineAuthorizationDetails: () => io.flow.v0.unions.OnlineAuthorizationDetails;
|
|
@@ -980,6 +996,7 @@ export declare const makePaymentMethodDataInitGooglepay: () => io.flow.v0.models
|
|
|
980
996
|
export declare const makePaymentMethodDataInitIdeal: () => io.flow.v0.models.PaymentMethodDataInitIdeal;
|
|
981
997
|
export declare const makePaymentMethodDataInitKlarna: () => io.flow.v0.models.PaymentMethodDataInitKlarna;
|
|
982
998
|
export declare const makePaymentMethodDataInitPaypal: () => io.flow.v0.models.PaymentMethodDataInitPaypal;
|
|
999
|
+
export declare const makePaymentMethodDataInitSofort: () => io.flow.v0.models.PaymentMethodDataInitSofort;
|
|
983
1000
|
export declare const makePaymentMethodDataValidateApplepay: () => io.flow.v0.models.PaymentMethodDataValidateApplepay;
|
|
984
1001
|
export declare const makePaymentMethodImage: () => io.flow.v0.models.PaymentMethodImage;
|
|
985
1002
|
export declare const makePaymentMethodImages: () => io.flow.v0.models.PaymentMethodImages;
|
|
@@ -995,6 +1012,7 @@ export declare const makePaymentMethodSummaryGooglepay: () => io.flow.v0.models.
|
|
|
995
1012
|
export declare const makePaymentMethodSummaryIdeal: () => io.flow.v0.models.PaymentMethodSummaryIdeal;
|
|
996
1013
|
export declare const makePaymentMethodSummaryKlarna: () => io.flow.v0.models.PaymentMethodSummaryKlarna;
|
|
997
1014
|
export declare const makePaymentMethodSummaryPaypal: () => io.flow.v0.models.PaymentMethodSummaryPaypal;
|
|
1015
|
+
export declare const makePaymentMethodSummarySofort: () => io.flow.v0.models.PaymentMethodSummarySofort;
|
|
998
1016
|
export declare const makePaymentMethodTag: () => io.flow.v0.unions.PaymentMethodTag;
|
|
999
1017
|
export declare const makePaymentMethodType: () => io.flow.v0.enums.PaymentMethodType;
|
|
1000
1018
|
export declare const makePaymentOrderDetailsLineItem: () => io.flow.v0.models.PaymentOrderDetailsLineItem;
|
|
@@ -1407,6 +1425,8 @@ export declare const makeTaxSetting: () => io.flow.v0.unions.TaxSetting;
|
|
|
1407
1425
|
export declare const makeTaxVerificationResult: () => io.flow.v0.enums.TaxVerificationResult;
|
|
1408
1426
|
export declare const makeTaxabilityType: () => "tax_rule";
|
|
1409
1427
|
export declare const makeTaxabilityValue: () => "exempt";
|
|
1428
|
+
export declare const makeThirdPartyLogisticsPartner: () => io.flow.v0.models.ThirdPartyLogisticsPartner;
|
|
1429
|
+
export declare const makeThirdPartyLogisticsPickUpTimeWindow: () => io.flow.v0.models.ThirdPartyLogisticsPickUpTimeWindow;
|
|
1410
1430
|
export declare const makeThreeDSecure: () => io.flow.v0.models.ThreeDSecure;
|
|
1411
1431
|
export declare const makeThreeDSecureCode: () => io.flow.v0.enums.ThreeDSecureCode;
|
|
1412
1432
|
export declare const makeThreedsChallengeAction: () => io.flow.v0.models.ThreedsTwoChallengeRequest;
|
|
@@ -1465,6 +1485,7 @@ export declare const makeTradeAgreementName: () => io.flow.v0.enums.TradeAgreeme
|
|
|
1465
1485
|
export declare const makeTradeAgreementStatus: () => io.flow.v0.enums.TradeAgreementStatus;
|
|
1466
1486
|
export declare const makeTransitEstimate: () => io.flow.v0.models.TransitEstimate;
|
|
1467
1487
|
export declare const makeTransitWindow: () => io.flow.v0.models.TransitWindow;
|
|
1488
|
+
export declare const makeUncertainBoolean: () => io.flow.v0.enums.UncertainBoolean;
|
|
1468
1489
|
export declare const makeUnharmonizedItemExportType: () => io.flow.v0.models.UnharmonizedItemExportType;
|
|
1469
1490
|
export declare const makeUnitOfMeasurement: () => io.flow.v0.enums.UnitOfMeasurement;
|
|
1470
1491
|
export declare const makeUnitOfTime: () => io.flow.v0.enums.UnitOfTime;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/api-factories",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "Flow API mock data factories",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"flow",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"@faker-js/faker": "^6.2.0",
|
|
37
37
|
"@flowio/api-types": "file:../api-types"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "a4ac670b27bea4060357fda0c13229174f48c854"
|
|
40
40
|
}
|