@flowio/api-factories 0.0.121 → 0.0.123
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 +180 -48
- package/dist/esm/api.js +136 -13
- package/dist/types/api.d.ts +10 -1
- package/package.json +1 -1
- package/src/api.ts +151 -16
package/dist/esm/api.js
CHANGED
|
@@ -151,6 +151,7 @@ var factories = {
|
|
|
151
151
|
'unsupported_order_edit',
|
|
152
152
|
'order_allocation_duties_mismatch',
|
|
153
153
|
'order_missing',
|
|
154
|
+
'organization_deactivated',
|
|
154
155
|
]); },
|
|
155
156
|
'io.flow.channel.internal.v0.enums.channel_order_acceptance_status': function () { return faker.helpers.arrayElement(['accepted', 'rejected', 'review', 'edit_review', 'edit_accepted']); },
|
|
156
157
|
'io.flow.channel.internal.v0.enums.channel_service': function () { return faker.helpers.arrayElement(['payment', 'duty_tax_calculator', 'sellability', 'all']); },
|
|
@@ -239,6 +240,13 @@ var factories = {
|
|
|
239
240
|
'io.flow.channel.internal.v0.models.channel_organization_token_body': function () { return ({
|
|
240
241
|
cleartext: factories.string(),
|
|
241
242
|
}); },
|
|
243
|
+
'io.flow.channel.internal.v0.models.channel_shop_statistics': function () { return ({
|
|
244
|
+
id: factories.string(),
|
|
245
|
+
channel: factories['io.flow.common.v0.models.channel_reference'](),
|
|
246
|
+
initial_catalog_synced_at: factories.date_time_iso_8601(),
|
|
247
|
+
catalog_sync_duration: factories.long(),
|
|
248
|
+
catalog_products_count: factories.long(),
|
|
249
|
+
}); },
|
|
242
250
|
'io.flow.channel.internal.v0.models.flow_channel_organization': function () { return ({
|
|
243
251
|
placeholder: factories.string(),
|
|
244
252
|
}); },
|
|
@@ -915,6 +923,7 @@ var factories = {
|
|
|
915
923
|
organization_id: factories.string(),
|
|
916
924
|
number: factories.string(),
|
|
917
925
|
taxonomy_category: factories['io.flow.product.v0.models.product_taxonomy_category'](),
|
|
926
|
+
inferred_taxonomy_category: factories['io.flow.product.v0.models.product_taxonomy_category'](),
|
|
918
927
|
taxonomy_data: arrayOf(function () { return factories['io.flow.product.v0.models.product_taxonomy_data'](); }),
|
|
919
928
|
item_numbers: arrayOf(function () { return factories.string(); }),
|
|
920
929
|
highest_value_item_number: factories.string(),
|
|
@@ -1098,6 +1107,9 @@ var factories = {
|
|
|
1098
1107
|
'io.flow.shopify.external.v0.models.count': function () { return ({
|
|
1099
1108
|
count: factories.long(),
|
|
1100
1109
|
}); },
|
|
1110
|
+
'io.flow.shopify.external.v0.models.graphql_inferred_product_category': function () { return ({
|
|
1111
|
+
category: factories['io.flow.shopify.external.v0.models.graphql_taxonomy_category'](),
|
|
1112
|
+
}); },
|
|
1101
1113
|
'io.flow.shopify.external.v0.models.graphql_inventory_item': function () { return ({
|
|
1102
1114
|
id: factories.string(),
|
|
1103
1115
|
tracked: factories.boolean(),
|
|
@@ -1148,6 +1160,7 @@ var factories = {
|
|
|
1148
1160
|
updatedAt: factories.date_time_iso_8601(),
|
|
1149
1161
|
hasVariantsThatRequiresComponents: factories.boolean(),
|
|
1150
1162
|
category: factories['io.flow.shopify.external.v0.models.graphql_taxonomy_category'](),
|
|
1163
|
+
inferredProductCategory: factories['io.flow.shopify.external.v0.models.graphql_inferred_product_category'](),
|
|
1151
1164
|
metafields: arrayOf(function () { return factories['io.flow.shopify.external.v0.models.graphql_metafield'](); }),
|
|
1152
1165
|
}); },
|
|
1153
1166
|
'io.flow.shopify.external.v0.models.graphql_product_image': function () { return ({
|
|
@@ -3645,8 +3658,10 @@ var factories = {
|
|
|
3645
3658
|
return f();
|
|
3646
3659
|
},
|
|
3647
3660
|
'io.flow.tech.onboarding.playground.v0.enums.amrutha_item_type': function () { return faker.helpers.arrayElement(['physical', 'digital']); },
|
|
3661
|
+
'io.flow.tech.onboarding.playground.v0.enums.bojana_item_type': function () { return faker.helpers.arrayElement(['physical', 'digital']); },
|
|
3648
3662
|
'io.flow.tech.onboarding.playground.v0.enums.chenglin_item_type': function () { return faker.helpers.arrayElement(['physical', 'digital']); },
|
|
3649
3663
|
'io.flow.tech.onboarding.playground.v0.enums.gabriel_item_type': function () { return faker.helpers.arrayElement(['physical', 'digital']); },
|
|
3664
|
+
'io.flow.tech.onboarding.playground.v0.enums.raveena_item_type': function () { return faker.helpers.arrayElement(['physical', 'digital']); },
|
|
3650
3665
|
'io.flow.tech.onboarding.playground.v0.models.amrutha_item': function () { return ({
|
|
3651
3666
|
id: factories.string(),
|
|
3652
3667
|
number: factories.string(),
|
|
@@ -3662,6 +3677,21 @@ var factories = {
|
|
|
3662
3677
|
type: factories['io.flow.tech.onboarding.playground.v0.enums.amrutha_item_type'](),
|
|
3663
3678
|
added_on: factories.date_time_iso_8601(),
|
|
3664
3679
|
}); },
|
|
3680
|
+
'io.flow.tech.onboarding.playground.v0.models.bojana_item': function () { return ({
|
|
3681
|
+
id: factories.string(),
|
|
3682
|
+
number: factories.string(),
|
|
3683
|
+
amount: factories['io.flow.common.v0.models.price'](),
|
|
3684
|
+
description: factories.string(),
|
|
3685
|
+
type: factories['io.flow.tech.onboarding.playground.v0.enums.bojana_item_type'](),
|
|
3686
|
+
added_on: factories.date_time_iso_8601(),
|
|
3687
|
+
}); },
|
|
3688
|
+
'io.flow.tech.onboarding.playground.v0.models.bojana_item_form': function () { return ({
|
|
3689
|
+
number: factories.string(),
|
|
3690
|
+
amount: factories['io.flow.common.v0.models.price'](),
|
|
3691
|
+
description: factories.string(),
|
|
3692
|
+
type: factories['io.flow.tech.onboarding.playground.v0.enums.bojana_item_type'](),
|
|
3693
|
+
added_on: factories.date_time_iso_8601(),
|
|
3694
|
+
}); },
|
|
3665
3695
|
'io.flow.tech.onboarding.playground.v0.models.chenglin_item': function () { return ({
|
|
3666
3696
|
id: factories.string(),
|
|
3667
3697
|
number: factories.string(),
|
|
@@ -3692,6 +3722,21 @@ var factories = {
|
|
|
3692
3722
|
type: factories['io.flow.tech.onboarding.playground.v0.enums.gabriel_item_type'](),
|
|
3693
3723
|
added_on: factories.date_iso_8601(),
|
|
3694
3724
|
}); },
|
|
3725
|
+
'io.flow.tech.onboarding.playground.v0.models.raveena_item': function () { return ({
|
|
3726
|
+
id: factories.string(),
|
|
3727
|
+
number: factories.string(),
|
|
3728
|
+
amount: factories['io.flow.common.v0.models.price'](),
|
|
3729
|
+
description: factories.string(),
|
|
3730
|
+
type: factories['io.flow.tech.onboarding.playground.v0.enums.raveena_item_type'](),
|
|
3731
|
+
added_on: factories.date_time_iso_8601(),
|
|
3732
|
+
}); },
|
|
3733
|
+
'io.flow.tech.onboarding.playground.v0.models.raveena_item_form': function () { return ({
|
|
3734
|
+
number: factories.string(),
|
|
3735
|
+
amount: factories['io.flow.common.v0.models.price'](),
|
|
3736
|
+
description: factories.string(),
|
|
3737
|
+
type: factories['io.flow.tech.onboarding.playground.v0.enums.raveena_item_type'](),
|
|
3738
|
+
added_on: factories.date_time_iso_8601(),
|
|
3739
|
+
}); },
|
|
3695
3740
|
'io.flow.tech.onboarding.playground.v0.models.tech_onboarding_description': function () { return ({
|
|
3696
3741
|
description: factories.string(),
|
|
3697
3742
|
}); },
|
|
@@ -3933,6 +3978,8 @@ var factories = {
|
|
|
3933
3978
|
'consumer_invoice_deleted',
|
|
3934
3979
|
'credit_memo_upserted',
|
|
3935
3980
|
'credit_memo_deleted',
|
|
3981
|
+
'fee_invoice_upserted',
|
|
3982
|
+
'fee_invoice_deleted',
|
|
3936
3983
|
'crossdock_shipment_upserted',
|
|
3937
3984
|
'rate_deleted',
|
|
3938
3985
|
'rate_upserted',
|
|
@@ -4075,8 +4122,18 @@ var factories = {
|
|
|
4075
4122
|
'sp',
|
|
4076
4123
|
'rev_share',
|
|
4077
4124
|
]); },
|
|
4125
|
+
'io.flow.v0.enums.fee_invoice_type': function () { return faker.helpers.arrayElement(['mor_invoice', 'label_invoice', 'mor_credit_memo', 'label_credit_memo']); },
|
|
4078
4126
|
'io.flow.v0.enums.flow_behavior': function () { return faker.helpers.arrayElement(['view_consumer_data']); },
|
|
4079
|
-
'io.flow.v0.enums.flow_entity': function () { return faker.helpers.arrayElement([
|
|
4127
|
+
'io.flow.v0.enums.flow_entity': function () { return faker.helpers.arrayElement([
|
|
4128
|
+
'flow-usa',
|
|
4129
|
+
'flow-irl',
|
|
4130
|
+
'flow-can',
|
|
4131
|
+
'ge-usa',
|
|
4132
|
+
'ge-can',
|
|
4133
|
+
'ge-can-ship',
|
|
4134
|
+
'ge-gbr',
|
|
4135
|
+
'ge-irl',
|
|
4136
|
+
]); },
|
|
4080
4137
|
'io.flow.v0.enums.flow_role': function () { return faker.helpers.arrayElement([
|
|
4081
4138
|
'organization_admin',
|
|
4082
4139
|
'organization_merchant',
|
|
@@ -4291,7 +4348,7 @@ var factories = {
|
|
|
4291
4348
|
'surcharges',
|
|
4292
4349
|
'tip',
|
|
4293
4350
|
]); },
|
|
4294
|
-
'io.flow.v0.enums.order_price_fee_type': function () { return faker.helpers.arrayElement(['service', 'fx', 'tax', 'duties', 'tax_and_duties', 'product']); },
|
|
4351
|
+
'io.flow.v0.enums.order_price_fee_type': function () { return faker.helpers.arrayElement(['service', 'fx', 'tax', 'duties', 'tax_and_duties', 'product', 'mor_tax']); },
|
|
4295
4352
|
'io.flow.v0.enums.order_refund_summary_includes': function () { return faker.helpers.arrayElement(['duties', 'vat', 'shipping']); },
|
|
4296
4353
|
'io.flow.v0.enums.order_refund_summary_partial_charged': function () { return faker.helpers.arrayElement(['per_item', 'for_order', 'by_value_percentage', 'by_quantity_percentage']); },
|
|
4297
4354
|
'io.flow.v0.enums.order_state_status': function () { return faker.helpers.arrayElement(['pending', 'accepted', 'rejected']); },
|
|
@@ -4551,6 +4608,7 @@ var factories = {
|
|
|
4551
4608
|
'io.flow.v0.enums.shipment_integration_type': function () { return faker.helpers.arrayElement(['direct', 'information', 'preadvice']); },
|
|
4552
4609
|
'io.flow.v0.enums.shipment_recipient': function () { return faker.helpers.arrayElement(['customer', 'return', 'crossdock']); },
|
|
4553
4610
|
'io.flow.v0.enums.shipping_configuration_type': function () { return faker.helpers.arrayElement(['default', 'variant']); },
|
|
4611
|
+
'io.flow.v0.enums.shipping_cost_guarantee': function () { return faker.helpers.arrayElement(['guaranteed', 'non_guaranteed']); },
|
|
4554
4612
|
'io.flow.v0.enums.shipping_label_error_code': function () { return faker.helpers.arrayElement([
|
|
4555
4613
|
'generic_error',
|
|
4556
4614
|
'cancelled_order',
|
|
@@ -4618,6 +4676,12 @@ var factories = {
|
|
|
4618
4676
|
'Expired_001',
|
|
4619
4677
|
]); },
|
|
4620
4678
|
'io.flow.v0.enums.surcharge_responsible_party': function () { return faker.helpers.arrayElement(['organization', 'customer']); },
|
|
4679
|
+
'io.flow.v0.enums.tax_and_duty_inclusivity_setting': function () { return faker.helpers.arrayElement([
|
|
4680
|
+
'duty_exclusive_tax_exclusive',
|
|
4681
|
+
'duty_inclusive_tax_exclusive',
|
|
4682
|
+
'duty_exclusive_tax_inclusive',
|
|
4683
|
+
'duty_inclusive_tax_inclusive',
|
|
4684
|
+
]); },
|
|
4621
4685
|
'io.flow.v0.enums.tax_applicability': function () { return faker.helpers.arrayElement(['none', 'all']); },
|
|
4622
4686
|
'io.flow.v0.enums.tax_duty_calculator_validation_error_code': function () { return faker.helpers.arrayElement([
|
|
4623
4687
|
'generic_error',
|
|
@@ -4722,6 +4786,8 @@ var factories = {
|
|
|
4722
4786
|
'b2b_tax',
|
|
4723
4787
|
'b2b_tax_refund',
|
|
4724
4788
|
'b2b_fee_mor_tax',
|
|
4789
|
+
'b2b_fee_shipping_tax',
|
|
4790
|
+
'flat_rate_label',
|
|
4725
4791
|
]); },
|
|
4726
4792
|
'io.flow.v0.enums.transfer_status': function () { return faker.helpers.arrayElement(['succeeded', 'canceled']); },
|
|
4727
4793
|
'io.flow.v0.enums.transfer_type': function () { return faker.helpers.arrayElement([
|
|
@@ -5537,6 +5603,13 @@ var factories = {
|
|
|
5537
5603
|
bank_name: factories.string(),
|
|
5538
5604
|
bank_address: factories['io.flow.v0.models.address'](),
|
|
5539
5605
|
}); },
|
|
5606
|
+
'io.flow.v0.models.bank_account_info_kor_v2': function () { return ({
|
|
5607
|
+
discriminator: 'kor_v2',
|
|
5608
|
+
name: factories.string(),
|
|
5609
|
+
bank_account_number: factories.string(),
|
|
5610
|
+
bank_routing_number: factories.string(),
|
|
5611
|
+
bank_name: factories.string(),
|
|
5612
|
+
}); },
|
|
5540
5613
|
'io.flow.v0.models.bank_account_info_usa': function () { return ({
|
|
5541
5614
|
discriminator: 'usa',
|
|
5542
5615
|
routing_number: factories.string(),
|
|
@@ -6391,7 +6464,6 @@ var factories = {
|
|
|
6391
6464
|
default_country_of_origin: factories.string(),
|
|
6392
6465
|
rate_card: factories.string(),
|
|
6393
6466
|
shop: factories['io.flow.v0.models.shop'](),
|
|
6394
|
-
settlement_currency: factories.string(),
|
|
6395
6467
|
created_at: factories.date_time_iso_8601(),
|
|
6396
6468
|
last_year_xborder_gmv: factories['io.flow.v0.models.money'](),
|
|
6397
6469
|
last_month_xborder_gmv: factories['io.flow.v0.models.money'](),
|
|
@@ -6419,7 +6491,6 @@ var factories = {
|
|
|
6419
6491
|
monthly_average_number_transactions: factories.long(),
|
|
6420
6492
|
default_country_of_origin: factories.string(),
|
|
6421
6493
|
shop: factories['io.flow.v0.models.shop'](),
|
|
6422
|
-
settlement_currency: factories.string(),
|
|
6423
6494
|
rate_card: factories.string(),
|
|
6424
6495
|
last_year_xborder_gmv: factories['io.flow.v0.models.money'](),
|
|
6425
6496
|
last_month_xborder_gmv: factories['io.flow.v0.models.money'](),
|
|
@@ -7604,6 +7675,34 @@ var factories = {
|
|
|
7604
7675
|
amount: factories.decimal(),
|
|
7605
7676
|
description: factories.string(),
|
|
7606
7677
|
}); },
|
|
7678
|
+
'io.flow.v0.models.fee_invoice': function () { return ({
|
|
7679
|
+
id: factories.string(),
|
|
7680
|
+
number: factories.string(),
|
|
7681
|
+
invoice_type: factories['io.flow.v0.enums.fee_invoice_type'](),
|
|
7682
|
+
buyer: factories['io.flow.v0.models.merchant_of_record_entity'](),
|
|
7683
|
+
seller: factories['io.flow.v0.models.merchant_of_record_entity'](),
|
|
7684
|
+
date: factories.date_time_iso_8601(),
|
|
7685
|
+
b2b_tax_transaction_id: factories.string(),
|
|
7686
|
+
order_number: factories.string(),
|
|
7687
|
+
tax: factories['io.flow.v0.models.money'](),
|
|
7688
|
+
tax_lines: arrayOf(function () { return factories['io.flow.v0.models.invoice_tax_line'](); }),
|
|
7689
|
+
lines: arrayOf(function () { return factories['io.flow.v0.unions.consumer_invoice_line'](); }),
|
|
7690
|
+
documents: arrayOf(function () { return factories['io.flow.v0.models.consumer_invoice_document'](); }),
|
|
7691
|
+
}); },
|
|
7692
|
+
'io.flow.v0.models.fee_invoice_deleted': function () { return ({
|
|
7693
|
+
discriminator: 'fee_invoice_deleted',
|
|
7694
|
+
event_id: factories.string(),
|
|
7695
|
+
timestamp: factories.date_time_iso_8601(),
|
|
7696
|
+
organization: factories.string(),
|
|
7697
|
+
id: factories.string(),
|
|
7698
|
+
}); },
|
|
7699
|
+
'io.flow.v0.models.fee_invoice_upserted': function () { return ({
|
|
7700
|
+
discriminator: 'fee_invoice_upserted',
|
|
7701
|
+
event_id: factories.string(),
|
|
7702
|
+
timestamp: factories.date_time_iso_8601(),
|
|
7703
|
+
organization: factories.string(),
|
|
7704
|
+
fee_invoice: factories['io.flow.v0.models.fee_invoice'](),
|
|
7705
|
+
}); },
|
|
7607
7706
|
'io.flow.v0.models.fee_weight': function () { return ({
|
|
7608
7707
|
weight: factories.decimal(),
|
|
7609
7708
|
unit: factories['io.flow.v0.enums.unit_of_measurement'](),
|
|
@@ -8686,6 +8785,7 @@ var factories = {
|
|
|
8686
8785
|
'io.flow.v0.models.line_item_form': function () { return ({
|
|
8687
8786
|
number: factories.string(),
|
|
8688
8787
|
quantity: factories.long(),
|
|
8788
|
+
line_item_identifier: factories.string(),
|
|
8689
8789
|
shipment_estimate: factories['io.flow.v0.models.datetime_range'](),
|
|
8690
8790
|
price: factories['io.flow.v0.models.money'](),
|
|
8691
8791
|
attributes: objectOf(function () { return factories.string(); }),
|
|
@@ -9617,6 +9717,11 @@ var factories = {
|
|
|
9617
9717
|
discriminator: 'order_state_rejection_reason_items_empty',
|
|
9618
9718
|
line_items: arrayOf(function () { return factories.string(); }),
|
|
9619
9719
|
}); },
|
|
9720
|
+
'io.flow.v0.models.order_state_rejection_reason_organization_deactivated': function () { return ({
|
|
9721
|
+
discriminator: 'order_state_rejection_reason_organization_deactivated',
|
|
9722
|
+
deactivation_requested_at: factories.date_time_iso_8601(),
|
|
9723
|
+
deactivated_at: factories.date_time_iso_8601(),
|
|
9724
|
+
}); },
|
|
9620
9725
|
'io.flow.v0.models.order_state_rejection_reason_restricted_item': function () { return ({
|
|
9621
9726
|
discriminator: 'order_state_rejection_reason_restricted_item',
|
|
9622
9727
|
item_numbers: arrayOf(function () { return factories.string(); }),
|
|
@@ -10995,6 +11100,7 @@ var factories = {
|
|
|
10995
11100
|
organization_id: factories.string(),
|
|
10996
11101
|
number: factories.string(),
|
|
10997
11102
|
taxonomy_category: factories['io.flow.v0.models.product_taxonomy_category'](),
|
|
11103
|
+
inferred_taxonomy_category: factories['io.flow.v0.models.product_taxonomy_category'](),
|
|
10998
11104
|
taxonomy_data: arrayOf(function () { return factories['io.flow.v0.models.product_taxonomy_data'](); }),
|
|
10999
11105
|
item_numbers: arrayOf(function () { return factories.string(); }),
|
|
11000
11106
|
highest_value_item_number: factories.string(),
|
|
@@ -11276,6 +11382,7 @@ var factories = {
|
|
|
11276
11382
|
rate_level_key: factories.string(),
|
|
11277
11383
|
direction: factories['io.flow.v0.enums.direction'](),
|
|
11278
11384
|
effective_at: factories.date_time_iso_8601(),
|
|
11385
|
+
effective_until: factories.date_time_iso_8601(),
|
|
11279
11386
|
origination_zones: arrayOf(function () { return factories['io.flow.v0.models.zone'](); }),
|
|
11280
11387
|
service: factories['io.flow.v0.models.ratecard_service_summary'](),
|
|
11281
11388
|
published_at: factories.date_time_iso_8601(),
|
|
@@ -11300,6 +11407,9 @@ var factories = {
|
|
|
11300
11407
|
organization: factories.string(),
|
|
11301
11408
|
ratecard: factories['io.flow.v0.models.ratecard'](),
|
|
11302
11409
|
}); },
|
|
11410
|
+
'io.flow.v0.models.ratecard_effective_until_form': function () { return ({
|
|
11411
|
+
effective_until: factories.date_time_iso_8601(),
|
|
11412
|
+
}); },
|
|
11303
11413
|
'io.flow.v0.models.ratecard_estimate_form': function () { return ({
|
|
11304
11414
|
origin_address: factories['io.flow.v0.models.address'](),
|
|
11305
11415
|
destination_address: factories['io.flow.v0.models.address'](),
|
|
@@ -11317,12 +11427,6 @@ var factories = {
|
|
|
11317
11427
|
duties_owed: factories['io.flow.v0.models.money'](),
|
|
11318
11428
|
commercial_invoice_mode: factories['io.flow.v0.enums.commercial_invoice_mode'](),
|
|
11319
11429
|
}); },
|
|
11320
|
-
'io.flow.v0.models.ratecard_estimate_summary_form': function () { return ({
|
|
11321
|
-
origin: factories.string(),
|
|
11322
|
-
destination: factories.string(),
|
|
11323
|
-
service: factories.string(),
|
|
11324
|
-
center_key: factories.string(),
|
|
11325
|
-
}); },
|
|
11326
11430
|
'io.flow.v0.models.ratecard_estimate_v1': function () { return ({
|
|
11327
11431
|
discriminator: 'ratecard_estimate_v1',
|
|
11328
11432
|
service: factories['io.flow.v0.models.ratecard_service_summary'](),
|
|
@@ -12204,6 +12308,7 @@ var factories = {
|
|
|
12204
12308
|
created_at: factories.date_time_iso_8601(),
|
|
12205
12309
|
updated_at: factories.date_time_iso_8601(),
|
|
12206
12310
|
direction: factories['io.flow.v0.enums.direction'](),
|
|
12311
|
+
shipping_cost_guarantee: factories['io.flow.v0.enums.shipping_cost_guarantee'](),
|
|
12207
12312
|
}); },
|
|
12208
12313
|
'io.flow.v0.models.shipping_label_document': function () { return ({
|
|
12209
12314
|
zpl: factories.string(),
|
|
@@ -12352,6 +12457,7 @@ var factories = {
|
|
|
12352
12457
|
weight_break: factories.decimal(),
|
|
12353
12458
|
}); },
|
|
12354
12459
|
'io.flow.v0.models.shipping_rate_estimate_request': function () { return ({
|
|
12460
|
+
carrier_id: factories.string(),
|
|
12355
12461
|
origin_address: factories['io.flow.v0.models.address'](),
|
|
12356
12462
|
destination_address: factories['io.flow.v0.models.address'](),
|
|
12357
12463
|
package_dimensions: factories['io.flow.v0.models.dimension'](),
|
|
@@ -12561,7 +12667,6 @@ var factories = {
|
|
|
12561
12667
|
activated_at: factories.date_time_iso_8601(),
|
|
12562
12668
|
status_updated_at: factories.date_time_iso_8601(),
|
|
12563
12669
|
shop: factories['io.flow.v0.models.shop'](),
|
|
12564
|
-
settlement_currency: factories.string(),
|
|
12565
12670
|
last_year_xborder_gmv: factories['io.flow.v0.models.money'](),
|
|
12566
12671
|
last_month_xborder_gmv: factories['io.flow.v0.models.money'](),
|
|
12567
12672
|
average_order_value: factories['io.flow.v0.models.money'](),
|
|
@@ -12594,7 +12699,6 @@ var factories = {
|
|
|
12594
12699
|
ratecard_id: factories.string(),
|
|
12595
12700
|
rate_card: factories.string(),
|
|
12596
12701
|
shop: factories['io.flow.v0.models.shop'](),
|
|
12597
|
-
settlement_currency: factories.string(),
|
|
12598
12702
|
last_year_xborder_gmv: factories['io.flow.v0.models.money'](),
|
|
12599
12703
|
last_month_xborder_gmv: factories['io.flow.v0.models.money'](),
|
|
12600
12704
|
average_order_value: factories['io.flow.v0.models.money'](),
|
|
@@ -13379,6 +13483,11 @@ var factories = {
|
|
|
13379
13483
|
'io.flow.v0.models.transaction_metadata_failed_payout_reference': function () { return ({
|
|
13380
13484
|
id: factories.string(),
|
|
13381
13485
|
}); },
|
|
13486
|
+
'io.flow.v0.models.transaction_metadata_flat_rate_label': function () { return ({
|
|
13487
|
+
discriminator: 'flat_rate_label',
|
|
13488
|
+
flat_rate: factories.decimal(),
|
|
13489
|
+
coefficient: factories.decimal(),
|
|
13490
|
+
}); },
|
|
13382
13491
|
'io.flow.v0.models.transaction_metadata_manual': function () { return ({
|
|
13383
13492
|
discriminator: 'manual',
|
|
13384
13493
|
description: factories.string(),
|
|
@@ -13859,6 +13968,7 @@ var factories = {
|
|
|
13859
13968
|
function () { return factories['io.flow.v0.models.bank_account_info_fra'](); },
|
|
13860
13969
|
function () { return factories['io.flow.v0.models.bank_account_info_ita'](); },
|
|
13861
13970
|
function () { return factories['io.flow.v0.models.bank_account_info_kor'](); },
|
|
13971
|
+
function () { return factories['io.flow.v0.models.bank_account_info_kor_v2'](); },
|
|
13862
13972
|
]);
|
|
13863
13973
|
return f();
|
|
13864
13974
|
},
|
|
@@ -14021,6 +14131,8 @@ var factories = {
|
|
|
14021
14131
|
function () { return factories['io.flow.v0.models.consumer_invoice_deleted'](); },
|
|
14022
14132
|
function () { return factories['io.flow.v0.models.credit_memo_upserted'](); },
|
|
14023
14133
|
function () { return factories['io.flow.v0.models.credit_memo_deleted'](); },
|
|
14134
|
+
function () { return factories['io.flow.v0.models.fee_invoice_upserted'](); },
|
|
14135
|
+
function () { return factories['io.flow.v0.models.fee_invoice_deleted'](); },
|
|
14024
14136
|
function () { return factories['io.flow.v0.models.crossdock_shipment_upserted'](); },
|
|
14025
14137
|
function () { return factories['io.flow.v0.models.rate_deleted'](); },
|
|
14026
14138
|
function () { return factories['io.flow.v0.models.rate_upserted'](); },
|
|
@@ -14389,6 +14501,7 @@ var factories = {
|
|
|
14389
14501
|
function () { return factories['io.flow.v0.models.order_state_rejection_reason_restricted_item'](); },
|
|
14390
14502
|
function () { return factories['io.flow.v0.models.order_state_rejection_reason_domestic_order'](); },
|
|
14391
14503
|
function () { return factories['io.flow.v0.models.order_state_rejection_reason_items_empty'](); },
|
|
14504
|
+
function () { return factories['io.flow.v0.models.order_state_rejection_reason_organization_deactivated'](); },
|
|
14392
14505
|
]);
|
|
14393
14506
|
return f();
|
|
14394
14507
|
},
|
|
@@ -14786,6 +14899,7 @@ var factories = {
|
|
|
14786
14899
|
function () { return factories['io.flow.v0.models.transaction_metadata_payment_transaction'](); },
|
|
14787
14900
|
function () { return factories['io.flow.v0.models.transaction_metadata_tax_duty'](); },
|
|
14788
14901
|
function () { return factories['io.flow.v0.models.transaction_metadata_merchant_fee'](); },
|
|
14902
|
+
function () { return factories['io.flow.v0.models.transaction_metadata_flat_rate_label'](); },
|
|
14789
14903
|
]);
|
|
14790
14904
|
return f();
|
|
14791
14905
|
},
|
|
@@ -14941,6 +15055,7 @@ export var makeBankAccountInfoFra = function () { return factories['io.flow.v0.m
|
|
|
14941
15055
|
export var makeBankAccountInfoGbr = function () { return factories['io.flow.v0.models.bank_account_info_gbr'](); };
|
|
14942
15056
|
export var makeBankAccountInfoIta = function () { return factories['io.flow.v0.models.bank_account_info_ita'](); };
|
|
14943
15057
|
export var makeBankAccountInfoKor = function () { return factories['io.flow.v0.models.bank_account_info_kor'](); };
|
|
15058
|
+
export var makeBankAccountInfoKorV2 = function () { return factories['io.flow.v0.models.bank_account_info_kor_v2'](); };
|
|
14944
15059
|
export var makeBankAccountInfoUsa = function () { return factories['io.flow.v0.models.bank_account_info_usa'](); };
|
|
14945
15060
|
export var makeBankAccountReference = function () { return factories['io.flow.v0.models.bank_account_reference'](); };
|
|
14946
15061
|
export var makeBankAccountSummary = function () { return factories['io.flow.v0.models.bank_account_summary'](); };
|
|
@@ -15353,6 +15468,10 @@ export var makeExternalCard = function () { return factories['io.flow.v0.models.
|
|
|
15353
15468
|
export var makeExternalOrderSummary = function () { return factories['io.flow.v0.models.external_order_summary'](); };
|
|
15354
15469
|
export var makeFeeDeduction = function () { return factories['io.flow.v0.models.fee_deduction'](); };
|
|
15355
15470
|
export var makeFeeDeductionType = function () { return factories['io.flow.v0.enums.fee_deduction_type'](); };
|
|
15471
|
+
export var makeFeeInvoice = function () { return factories['io.flow.v0.models.fee_invoice'](); };
|
|
15472
|
+
export var makeFeeInvoiceDeleted = function () { return factories['io.flow.v0.models.fee_invoice_deleted'](); };
|
|
15473
|
+
export var makeFeeInvoiceType = function () { return factories['io.flow.v0.enums.fee_invoice_type'](); };
|
|
15474
|
+
export var makeFeeInvoiceUpserted = function () { return factories['io.flow.v0.models.fee_invoice_upserted'](); };
|
|
15356
15475
|
export var makeFeeWeight = function () { return factories['io.flow.v0.models.fee_weight'](); };
|
|
15357
15476
|
export var makeFieldValidationMax = function () { return factories['io.flow.v0.models.field_validation_max'](); };
|
|
15358
15477
|
export var makeFieldValidationMin = function () { return factories['io.flow.v0.models.field_validation_min'](); };
|
|
@@ -15762,6 +15881,7 @@ export var makeOrderStateDeleted = function () { return factories['io.flow.v0.mo
|
|
|
15762
15881
|
export var makeOrderStateRejectionReason = function () { return factories['io.flow.v0.unions.order_state_rejection_reason'](); };
|
|
15763
15882
|
export var makeOrderStateRejectionReasonDomesticOrder = function () { return factories['io.flow.v0.models.order_state_rejection_reason_domestic_order'](); };
|
|
15764
15883
|
export var makeOrderStateRejectionReasonItemsEmpty = function () { return factories['io.flow.v0.models.order_state_rejection_reason_items_empty'](); };
|
|
15884
|
+
export var makeOrderStateRejectionReasonOrganizationDeactivated = function () { return factories['io.flow.v0.models.order_state_rejection_reason_organization_deactivated'](); };
|
|
15765
15885
|
export var makeOrderStateRejectionReasonRestrictedItem = function () { return factories['io.flow.v0.models.order_state_rejection_reason_restricted_item'](); };
|
|
15766
15886
|
export var makeOrderStateStatus = function () { return factories['io.flow.v0.enums.order_state_status'](); };
|
|
15767
15887
|
export var makeOrderStateUpserted = function () { return factories['io.flow.v0.models.order_state_upserted'](); };
|
|
@@ -16102,9 +16222,9 @@ export var makeRatecard = function () { return factories['io.flow.v0.models.rate
|
|
|
16102
16222
|
export var makeRatecardCarrierSummary = function () { return factories['io.flow.v0.models.ratecard_carrier_summary'](); };
|
|
16103
16223
|
export var makeRatecardData = function () { return factories['io.flow.v0.models.ratecard_data'](); };
|
|
16104
16224
|
export var makeRatecardDeleted = function () { return factories['io.flow.v0.models.ratecard_deleted'](); };
|
|
16225
|
+
export var makeRatecardEffectiveUntilForm = function () { return factories['io.flow.v0.models.ratecard_effective_until_form'](); };
|
|
16105
16226
|
export var makeRatecardEstimate = function () { return factories['io.flow.v0.unions.ratecard_estimate'](); };
|
|
16106
16227
|
export var makeRatecardEstimateForm = function () { return factories['io.flow.v0.models.ratecard_estimate_form'](); };
|
|
16107
|
-
export var makeRatecardEstimateSummaryForm = function () { return factories['io.flow.v0.models.ratecard_estimate_summary_form'](); };
|
|
16108
16228
|
export var makeRatecardEstimateV1 = function () { return factories['io.flow.v0.models.ratecard_estimate_v1'](); };
|
|
16109
16229
|
export var makeRatecardEstimateV2 = function () { return factories['io.flow.v0.models.ratecard_estimate_v2'](); };
|
|
16110
16230
|
export var makeRatecardEstimateV3 = function () { return factories['io.flow.v0.models.ratecard_estimate_v3'](); };
|
|
@@ -16280,6 +16400,7 @@ export var makeShippingConfigurationSummary = function () { return factories['io
|
|
|
16280
16400
|
export var makeShippingConfigurationType = function () { return factories['io.flow.v0.enums.shipping_configuration_type'](); };
|
|
16281
16401
|
export var makeShippingConfigurationUpserted = function () { return factories['io.flow.v0.models.shipping_configuration_upserted'](); };
|
|
16282
16402
|
export var makeShippingConfigurationVersion = function () { return factories['io.flow.v0.models.shipping_configuration_version'](); };
|
|
16403
|
+
export var makeShippingCostGuarantee = function () { return factories['io.flow.v0.enums.shipping_cost_guarantee'](); };
|
|
16283
16404
|
export var makeShippingLabel = function () { return factories['io.flow.v0.models.shipping_label'](); };
|
|
16284
16405
|
export var makeShippingLabelDocument = function () { return factories['io.flow.v0.models.shipping_label_document'](); };
|
|
16285
16406
|
export var makeShippingLabelError = function () { return factories['io.flow.v0.models.shipping_label_error'](); };
|
|
@@ -16396,6 +16517,7 @@ export var makeTariffCodes = function () { return factories['io.flow.v0.models.t
|
|
|
16396
16517
|
export var makeTariffCodesDeleted = function () { return factories['io.flow.v0.models.tariff_codes_deleted'](); };
|
|
16397
16518
|
export var makeTariffCodesUpserted = function () { return factories['io.flow.v0.models.tariff_codes_upserted'](); };
|
|
16398
16519
|
export var makeTax = function () { return factories['io.flow.v0.models.tax'](); };
|
|
16520
|
+
export var makeTaxAndDutyInclusivitySetting = function () { return factories['io.flow.v0.enums.tax_and_duty_inclusivity_setting'](); };
|
|
16399
16521
|
export var makeTaxApplicability = function () { return factories['io.flow.v0.enums.tax_applicability'](); };
|
|
16400
16522
|
export var makeTaxBreakdown = function () { return factories['io.flow.v0.models.tax_breakdown'](); };
|
|
16401
16523
|
export var makeTaxDutyCalculatorValidationError = function () { return factories['io.flow.v0.models.tax_duty_calculator_validation_error'](); };
|
|
@@ -16496,6 +16618,7 @@ export var makeTransactionMetadataChannelCardMetadataIssuerSummary = function ()
|
|
|
16496
16618
|
export var makeTransactionMetadataChannelOrganizationTransaction = function () { return factories['io.flow.v0.models.transaction_metadata_channel_organization_transaction'](); };
|
|
16497
16619
|
export var makeTransactionMetadataFailedPayout = function () { return factories['io.flow.v0.models.transaction_metadata_failed_payout'](); };
|
|
16498
16620
|
export var makeTransactionMetadataFailedPayoutReference = function () { return factories['io.flow.v0.models.transaction_metadata_failed_payout_reference'](); };
|
|
16621
|
+
export var makeTransactionMetadataFlatRateLabel = function () { return factories['io.flow.v0.models.transaction_metadata_flat_rate_label'](); };
|
|
16499
16622
|
export var makeTransactionMetadataManual = function () { return factories['io.flow.v0.models.transaction_metadata_manual'](); };
|
|
16500
16623
|
export var makeTransactionMetadataMerchantFee = function () { return factories['io.flow.v0.models.transaction_metadata_merchant_fee'](); };
|
|
16501
16624
|
export var makeTransactionMetadataMerchantFeeItem = function () { return factories['io.flow.v0.models.transaction_metadata_merchant_fee_item'](); };
|
package/dist/types/api.d.ts
CHANGED
|
@@ -142,6 +142,7 @@ export declare const makeBankAccountInfoFra: () => io.flow.v0.models.BankAccount
|
|
|
142
142
|
export declare const makeBankAccountInfoGbr: () => io.flow.v0.models.BankAccountInfoGbr;
|
|
143
143
|
export declare const makeBankAccountInfoIta: () => io.flow.v0.models.BankAccountInfoIta;
|
|
144
144
|
export declare const makeBankAccountInfoKor: () => io.flow.v0.models.BankAccountInfoKor;
|
|
145
|
+
export declare const makeBankAccountInfoKorV2: () => io.flow.v0.models.BankAccountInfoKorV2;
|
|
145
146
|
export declare const makeBankAccountInfoUsa: () => io.flow.v0.models.BankAccountInfoUsa;
|
|
146
147
|
export declare const makeBankAccountReference: () => io.flow.v0.models.BankAccountReference;
|
|
147
148
|
export declare const makeBankAccountSummary: () => io.flow.v0.models.BankAccountSummary;
|
|
@@ -554,6 +555,10 @@ export declare const makeExternalCard: () => io.flow.v0.models.ExternalCard;
|
|
|
554
555
|
export declare const makeExternalOrderSummary: () => io.flow.v0.models.ExternalOrderSummary;
|
|
555
556
|
export declare const makeFeeDeduction: () => io.flow.v0.models.FeeDeduction;
|
|
556
557
|
export declare const makeFeeDeductionType: () => io.flow.v0.enums.FeeDeductionType;
|
|
558
|
+
export declare const makeFeeInvoice: () => io.flow.v0.models.FeeInvoice;
|
|
559
|
+
export declare const makeFeeInvoiceDeleted: () => io.flow.v0.models.FeeInvoiceDeleted;
|
|
560
|
+
export declare const makeFeeInvoiceType: () => io.flow.v0.enums.FeeInvoiceType;
|
|
561
|
+
export declare const makeFeeInvoiceUpserted: () => io.flow.v0.models.FeeInvoiceUpserted;
|
|
557
562
|
export declare const makeFeeWeight: () => io.flow.v0.models.FeeWeight;
|
|
558
563
|
export declare const makeFieldValidationMax: () => io.flow.v0.models.FieldValidationMax;
|
|
559
564
|
export declare const makeFieldValidationMin: () => io.flow.v0.models.FieldValidationMin;
|
|
@@ -963,6 +968,7 @@ export declare const makeOrderStateDeleted: () => io.flow.v0.models.OrderStateDe
|
|
|
963
968
|
export declare const makeOrderStateRejectionReason: () => io.flow.v0.unions.OrderStateRejectionReason;
|
|
964
969
|
export declare const makeOrderStateRejectionReasonDomesticOrder: () => io.flow.v0.models.OrderStateRejectionReasonDomesticOrder;
|
|
965
970
|
export declare const makeOrderStateRejectionReasonItemsEmpty: () => io.flow.v0.models.OrderStateRejectionReasonItemsEmpty;
|
|
971
|
+
export declare const makeOrderStateRejectionReasonOrganizationDeactivated: () => io.flow.v0.models.OrderStateRejectionReasonOrganizationDeactivated;
|
|
966
972
|
export declare const makeOrderStateRejectionReasonRestrictedItem: () => io.flow.v0.models.OrderStateRejectionReasonRestrictedItem;
|
|
967
973
|
export declare const makeOrderStateStatus: () => io.flow.v0.enums.OrderStateStatus;
|
|
968
974
|
export declare const makeOrderStateUpserted: () => io.flow.v0.models.OrderStateUpserted;
|
|
@@ -1303,9 +1309,9 @@ export declare const makeRatecard: () => io.flow.v0.models.Ratecard;
|
|
|
1303
1309
|
export declare const makeRatecardCarrierSummary: () => io.flow.v0.models.RatecardCarrierSummary;
|
|
1304
1310
|
export declare const makeRatecardData: () => io.flow.v0.models.RatecardData;
|
|
1305
1311
|
export declare const makeRatecardDeleted: () => io.flow.v0.models.RatecardDeleted;
|
|
1312
|
+
export declare const makeRatecardEffectiveUntilForm: () => io.flow.v0.models.RatecardEffectiveUntilForm;
|
|
1306
1313
|
export declare const makeRatecardEstimate: () => io.flow.v0.unions.RatecardEstimate;
|
|
1307
1314
|
export declare const makeRatecardEstimateForm: () => io.flow.v0.models.RatecardEstimateForm;
|
|
1308
|
-
export declare const makeRatecardEstimateSummaryForm: () => io.flow.v0.models.RatecardEstimateSummaryForm;
|
|
1309
1315
|
export declare const makeRatecardEstimateV1: () => io.flow.v0.models.RatecardEstimateV1;
|
|
1310
1316
|
export declare const makeRatecardEstimateV2: () => io.flow.v0.models.RatecardEstimateV2;
|
|
1311
1317
|
export declare const makeRatecardEstimateV3: () => io.flow.v0.models.RatecardEstimateV3;
|
|
@@ -1481,6 +1487,7 @@ export declare const makeShippingConfigurationSummary: () => io.flow.v0.models.S
|
|
|
1481
1487
|
export declare const makeShippingConfigurationType: () => io.flow.v0.enums.ShippingConfigurationType;
|
|
1482
1488
|
export declare const makeShippingConfigurationUpserted: () => io.flow.v0.models.ShippingConfigurationUpserted;
|
|
1483
1489
|
export declare const makeShippingConfigurationVersion: () => io.flow.v0.models.ShippingConfigurationVersion;
|
|
1490
|
+
export declare const makeShippingCostGuarantee: () => io.flow.v0.enums.ShippingCostGuarantee;
|
|
1484
1491
|
export declare const makeShippingLabel: () => io.flow.v0.models.ShippingLabel;
|
|
1485
1492
|
export declare const makeShippingLabelDocument: () => io.flow.v0.models.ShippingLabelDocument;
|
|
1486
1493
|
export declare const makeShippingLabelError: () => io.flow.v0.models.ShippingLabelError;
|
|
@@ -1597,6 +1604,7 @@ export declare const makeTariffCodes: () => io.flow.v0.models.TariffCodes;
|
|
|
1597
1604
|
export declare const makeTariffCodesDeleted: () => io.flow.v0.models.TariffCodesDeleted;
|
|
1598
1605
|
export declare const makeTariffCodesUpserted: () => io.flow.v0.models.TariffCodesUpserted;
|
|
1599
1606
|
export declare const makeTax: () => io.flow.v0.models.Tax;
|
|
1607
|
+
export declare const makeTaxAndDutyInclusivitySetting: () => io.flow.v0.enums.TaxAndDutyInclusivitySetting;
|
|
1600
1608
|
export declare const makeTaxApplicability: () => io.flow.v0.enums.TaxApplicability;
|
|
1601
1609
|
export declare const makeTaxBreakdown: () => io.flow.v0.models.TaxBreakdown;
|
|
1602
1610
|
export declare const makeTaxDutyCalculatorValidationError: () => io.flow.v0.models.TaxDutyCalculatorValidationError;
|
|
@@ -1697,6 +1705,7 @@ export declare const makeTransactionMetadataChannelCardMetadataIssuerSummary: ()
|
|
|
1697
1705
|
export declare const makeTransactionMetadataChannelOrganizationTransaction: () => io.flow.v0.models.TransactionMetadataChannelOrganizationTransaction;
|
|
1698
1706
|
export declare const makeTransactionMetadataFailedPayout: () => io.flow.v0.models.TransactionMetadataFailedPayout;
|
|
1699
1707
|
export declare const makeTransactionMetadataFailedPayoutReference: () => io.flow.v0.models.TransactionMetadataFailedPayoutReference;
|
|
1708
|
+
export declare const makeTransactionMetadataFlatRateLabel: () => io.flow.v0.models.TransactionMetadataFlatRateLabel;
|
|
1700
1709
|
export declare const makeTransactionMetadataManual: () => io.flow.v0.models.TransactionMetadataManual;
|
|
1701
1710
|
export declare const makeTransactionMetadataMerchantFee: () => io.flow.v0.models.TransactionMetadataMerchantFee;
|
|
1702
1711
|
export declare const makeTransactionMetadataMerchantFeeItem: () => io.flow.v0.models.TransactionMetadataMerchantFeeItem;
|