@flowio/api-factories 0.0.119 → 0.0.121

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/esm/api.js CHANGED
@@ -96,6 +96,11 @@ var factories = {
96
96
  organization_ids: arrayOf(function () { return factories.string(); }),
97
97
  num_events: factories.long(),
98
98
  }); },
99
+ 'io.flow.ben.test.internal.v0.models.generate_load_rate': function () { return ({
100
+ organization_ids: arrayOf(function () { return factories.string(); }),
101
+ events_per_second: factories.long(),
102
+ duration_seconds: factories.long(),
103
+ }); },
99
104
  'io.flow.ben.test.internal.v0.models.generate_load_single_org': function () { return ({
100
105
  discriminator: 'generate_load_single_org',
101
106
  organization_id: factories.string(),
@@ -522,6 +527,7 @@ var factories = {
522
527
  'io.flow.common.v0.models.line_item_form': function () { return ({
523
528
  number: factories.string(),
524
529
  quantity: factories.long(),
530
+ line_item_identifier: factories.string(),
525
531
  shipment_estimate: factories['io.flow.common.v0.models.datetime_range'](),
526
532
  price: factories['io.flow.common.v0.models.money'](),
527
533
  attributes: objectOf(function () { return factories.string(); }),
@@ -3638,6 +3644,57 @@ var factories = {
3638
3644
  ]);
3639
3645
  return f();
3640
3646
  },
3647
+ 'io.flow.tech.onboarding.playground.v0.enums.amrutha_item_type': function () { return faker.helpers.arrayElement(['physical', 'digital']); },
3648
+ 'io.flow.tech.onboarding.playground.v0.enums.chenglin_item_type': function () { return faker.helpers.arrayElement(['physical', 'digital']); },
3649
+ 'io.flow.tech.onboarding.playground.v0.enums.gabriel_item_type': function () { return faker.helpers.arrayElement(['physical', 'digital']); },
3650
+ 'io.flow.tech.onboarding.playground.v0.models.amrutha_item': function () { return ({
3651
+ id: factories.string(),
3652
+ number: factories.string(),
3653
+ amount: factories['io.flow.common.v0.models.price'](),
3654
+ description: factories.string(),
3655
+ type: factories['io.flow.tech.onboarding.playground.v0.enums.amrutha_item_type'](),
3656
+ added_on: factories.date_time_iso_8601(),
3657
+ }); },
3658
+ 'io.flow.tech.onboarding.playground.v0.models.amrutha_item_form': function () { return ({
3659
+ number: factories.string(),
3660
+ amount: factories['io.flow.common.v0.models.price'](),
3661
+ description: factories.string(),
3662
+ type: factories['io.flow.tech.onboarding.playground.v0.enums.amrutha_item_type'](),
3663
+ added_on: factories.date_time_iso_8601(),
3664
+ }); },
3665
+ 'io.flow.tech.onboarding.playground.v0.models.chenglin_item': function () { return ({
3666
+ id: factories.string(),
3667
+ number: factories.string(),
3668
+ amount: factories['io.flow.common.v0.models.price'](),
3669
+ description: factories.string(),
3670
+ type: factories['io.flow.tech.onboarding.playground.v0.enums.gabriel_item_type'](),
3671
+ added_on: factories.date_iso_8601(),
3672
+ }); },
3673
+ 'io.flow.tech.onboarding.playground.v0.models.chenglin_item_form': function () { return ({
3674
+ number: factories.string(),
3675
+ amount: factories['io.flow.common.v0.models.price'](),
3676
+ description: factories.string(),
3677
+ type: factories['io.flow.tech.onboarding.playground.v0.enums.gabriel_item_type'](),
3678
+ added_on: factories.date_iso_8601(),
3679
+ }); },
3680
+ 'io.flow.tech.onboarding.playground.v0.models.gabriel_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.gabriel_item_type'](),
3686
+ added_on: factories.date_iso_8601(),
3687
+ }); },
3688
+ 'io.flow.tech.onboarding.playground.v0.models.gabriel_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.gabriel_item_type'](),
3693
+ added_on: factories.date_iso_8601(),
3694
+ }); },
3695
+ 'io.flow.tech.onboarding.playground.v0.models.tech_onboarding_description': function () { return ({
3696
+ description: factories.string(),
3697
+ }); },
3641
3698
  'io.flow.v0.enums.abandoned_order_promotion_status': function () { return faker.helpers.arrayElement(['active', 'inactive']); },
3642
3699
  'io.flow.v0.enums.abandoned_order_setting_status': function () { return faker.helpers.arrayElement(['active', 'inactive']); },
3643
3700
  'io.flow.v0.enums.address_field_name': function () { return faker.helpers.arrayElement([
@@ -3825,6 +3882,8 @@ var factories = {
3825
3882
  'io.flow.v0.enums.event_type': function () { return faker.helpers.arrayElement([
3826
3883
  'test_upserted',
3827
3884
  'generate_load',
3885
+ 'amrutha_item_upserted',
3886
+ 'amrutha_item_deleted',
3828
3887
  'transaction_upserted',
3829
3888
  'organization_transaction_upserted',
3830
3889
  'organization_transaction_deleted',
@@ -3885,6 +3944,8 @@ var factories = {
3885
3944
  'order_upserted_v2',
3886
3945
  'order_identifier_deleted_v2',
3887
3946
  'order_identifier_upserted_v3',
3947
+ 'order_state_upserted',
3948
+ 'order_state_deleted',
3888
3949
  'fraud_status_changed',
3889
3950
  'center_upserted',
3890
3951
  'center_deleted',
@@ -3909,6 +3970,8 @@ var factories = {
3909
3970
  'item_origin_deleted',
3910
3971
  'harmonized_landed_cost_upserted',
3911
3972
  'fully_harmonized_item_upserted',
3973
+ 'tariff_codes_upserted',
3974
+ 'tariff_codes_deleted',
3912
3975
  'label_deleted_v2',
3913
3976
  'label_upserted_v2',
3914
3977
  'notification_upserted_v2',
@@ -4010,6 +4073,7 @@ var factories = {
4010
4073
  'transfer',
4011
4074
  'negative_balance_guarantee',
4012
4075
  'sp',
4076
+ 'rev_share',
4013
4077
  ]); },
4014
4078
  'io.flow.v0.enums.flow_behavior': function () { return faker.helpers.arrayElement(['view_consumer_data']); },
4015
4079
  'io.flow.v0.enums.flow_entity': function () { return faker.helpers.arrayElement(['flow-usa', 'flow-irl', 'flow-can', 'ge-usa', 'ge-can', 'ge-gbr', 'ge-irl']); },
@@ -4087,6 +4151,7 @@ var factories = {
4087
4151
  'notification_requiring_crossdock',
4088
4152
  'flow_simulation_sync',
4089
4153
  'autogenerated',
4154
+ 'legacy_shopify_graphql_server',
4090
4155
  ]); },
4091
4156
  'io.flow.v0.enums.label_trigger_method': function () { return faker.helpers.arrayElement(['autogenerated', 'on_demand']); },
4092
4157
  'io.flow.v0.enums.lane_direction': function () { return faker.helpers.arrayElement(['outbound', 'return']); },
@@ -4229,6 +4294,7 @@ var factories = {
4229
4294
  'io.flow.v0.enums.order_price_fee_type': function () { return faker.helpers.arrayElement(['service', 'fx', 'tax', 'duties', 'tax_and_duties', 'product']); },
4230
4295
  'io.flow.v0.enums.order_refund_summary_includes': function () { return faker.helpers.arrayElement(['duties', 'vat', 'shipping']); },
4231
4296
  '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
+ 'io.flow.v0.enums.order_state_status': function () { return faker.helpers.arrayElement(['pending', 'accepted', 'rejected']); },
4232
4298
  'io.flow.v0.enums.order_status': function () { return faker.helpers.arrayElement(['open', 'submitted']); },
4233
4299
  'io.flow.v0.enums.order_storage': function () { return faker.helpers.arrayElement(['do_not_persist', 'persist']); },
4234
4300
  'io.flow.v0.enums.order_type': function () { return faker.helpers.arrayElement(['standard', 'replacement', 'edit']); },
@@ -4472,7 +4538,14 @@ var factories = {
4472
4538
  'external_service_unavailable',
4473
4539
  ]); },
4474
4540
  'io.flow.v0.enums.sellability_request_status': function () { return faker.helpers.arrayElement(['commit']); },
4475
- 'io.flow.v0.enums.sellability_result_error_code': function () { return faker.helpers.arrayElement(['insufficient_details', 'generic_error']); },
4541
+ 'io.flow.v0.enums.sellability_result_error_code': function () { return faker.helpers.arrayElement([
4542
+ 'insufficient_details',
4543
+ 'ineligible_category',
4544
+ 'wait_for_high_fidelity',
4545
+ 'external_service_unavailable',
4546
+ 'generic_error',
4547
+ 'catalog_processing_threshold',
4548
+ ]); },
4476
4549
  'io.flow.v0.enums.sellability_result_status': function () { return faker.helpers.arrayElement(['in_review', 'succeeded', 'failed']); },
4477
4550
  'io.flow.v0.enums.sellability_screening_mode': function () { return faker.helpers.arrayElement(['pre_onboarding', 'default_on', 'active']); },
4478
4551
  'io.flow.v0.enums.shipment_integration_type': function () { return faker.helpers.arrayElement(['direct', 'information', 'preadvice']); },
@@ -4581,6 +4654,7 @@ var factories = {
4581
4654
  'wyol_shipment_above_de_min',
4582
4655
  'full_refund_without_shipment',
4583
4656
  'unfulfilled_order_above_de_min',
4657
+ 'order_cancellation_without_capture',
4584
4658
  ]); },
4585
4659
  'io.flow.v0.enums.tax_jurisdiction_type': function () { return faker.helpers.arrayElement(['country', 'province']); },
4586
4660
  'io.flow.v0.enums.tax_report_type': function () { return faker.helpers.arrayElement(['consumer', 'b2b']); },
@@ -4647,6 +4721,7 @@ var factories = {
4647
4721
  'merchant_fee',
4648
4722
  'b2b_tax',
4649
4723
  'b2b_tax_refund',
4724
+ 'b2b_fee_mor_tax',
4650
4725
  ]); },
4651
4726
  'io.flow.v0.enums.transfer_status': function () { return faker.helpers.arrayElement(['succeeded', 'canceled']); },
4652
4727
  'io.flow.v0.enums.transfer_type': function () { return faker.helpers.arrayElement([
@@ -5094,6 +5169,18 @@ var factories = {
5094
5169
  discriminator: 'amount_margin_form',
5095
5170
  margin: factories['io.flow.v0.models.money'](),
5096
5171
  }); },
5172
+ 'io.flow.v0.models.amrutha_item_deleted': function () { return ({
5173
+ discriminator: 'amrutha_item_deleted',
5174
+ event_id: factories.string(),
5175
+ timestamp: factories.date_time_iso_8601(),
5176
+ id: factories.string(),
5177
+ }); },
5178
+ 'io.flow.v0.models.amrutha_item_upserted': function () { return ({
5179
+ discriminator: 'amrutha_item_upserted',
5180
+ event_id: factories.string(),
5181
+ timestamp: factories.date_time_iso_8601(),
5182
+ item: factories['io.flow.tech.onboarding.playground.v0.models.amrutha_item'](),
5183
+ }); },
5097
5184
  'io.flow.v0.models.analytics_export_type': function () { return ({
5098
5185
  discriminator: 'analytics_export_type',
5099
5186
  from: factories.date_time_iso_8601(),
@@ -5355,6 +5442,7 @@ var factories = {
5355
5442
  b2b_invoice_type: factories['io.flow.v0.enums.b2b_invoice_type'](),
5356
5443
  center: factories['io.flow.v0.models.consumer_invoice_center_reference'](),
5357
5444
  order: factories['io.flow.v0.models.consumer_invoice_order_summary'](),
5445
+ voids_b2b_invoice: factories.boolean(),
5358
5446
  }); },
5359
5447
  'io.flow.v0.models.b2b_credit_memo_deleted': function () { return ({
5360
5448
  discriminator: 'b2b_credit_memo_deleted',
@@ -6296,7 +6384,6 @@ var factories = {
6296
6384
  beneficiary_details: factories['io.flow.v0.models.merchant_onboarding_beneficiary_details'](),
6297
6385
  other_trade_sector: factories.string(),
6298
6386
  center_contact: factories['io.flow.v0.models.operations_contact'](),
6299
- center_address: factories['io.flow.v0.models.address'](),
6300
6387
  average_order_weight: factories.decimal(),
6301
6388
  average_order_weight_unit: factories['io.flow.v0.enums.unit_of_measurement'](),
6302
6389
  package_dimensions: arrayOf(function () { return factories['io.flow.v0.models.dimension'](); }),
@@ -6304,6 +6391,7 @@ var factories = {
6304
6391
  default_country_of_origin: factories.string(),
6305
6392
  rate_card: factories.string(),
6306
6393
  shop: factories['io.flow.v0.models.shop'](),
6394
+ settlement_currency: factories.string(),
6307
6395
  created_at: factories.date_time_iso_8601(),
6308
6396
  last_year_xborder_gmv: factories['io.flow.v0.models.money'](),
6309
6397
  last_month_xborder_gmv: factories['io.flow.v0.models.money'](),
@@ -6323,7 +6411,6 @@ var factories = {
6323
6411
  beneficiary_details: factories['io.flow.v0.models.merchant_onboarding_beneficiary_details'](),
6324
6412
  other_trade_sector: factories.string(),
6325
6413
  center_contact: factories['io.flow.v0.models.operations_contact'](),
6326
- center_address: factories['io.flow.v0.models.address'](),
6327
6414
  average_order_weight: factories.decimal(),
6328
6415
  average_order_weight_unit: factories['io.flow.v0.enums.unit_of_measurement'](),
6329
6416
  package_dimensions: arrayOf(function () { return factories['io.flow.v0.models.dimension'](); }),
@@ -6332,6 +6419,7 @@ var factories = {
6332
6419
  monthly_average_number_transactions: factories.long(),
6333
6420
  default_country_of_origin: factories.string(),
6334
6421
  shop: factories['io.flow.v0.models.shop'](),
6422
+ settlement_currency: factories.string(),
6335
6423
  rate_card: factories.string(),
6336
6424
  last_year_xborder_gmv: factories['io.flow.v0.models.money'](),
6337
6425
  last_month_xborder_gmv: factories['io.flow.v0.models.money'](),
@@ -7899,6 +7987,10 @@ var factories = {
7899
7987
  destination: factories.string(),
7900
7988
  sort: factories.string(),
7901
7989
  }); },
7990
+ 'io.flow.v0.models.harmonization_tariff_code': function () { return ({
7991
+ tariff_code: factories.string(),
7992
+ destination: factories.string(),
7993
+ }); },
7902
7994
  'io.flow.v0.models.harmonization_tariff_codes_export_type': function () { return ({
7903
7995
  discriminator: 'harmonization_tariff_codes_export_type',
7904
7996
  sort: factories.string(),
@@ -9094,6 +9186,7 @@ var factories = {
9094
9186
  company: factories.string(),
9095
9187
  email: factories.string(),
9096
9188
  phone: factories.string(),
9189
+ address: factories['io.flow.v0.models.address'](),
9097
9190
  }); },
9098
9191
  'io.flow.v0.models.option_weight_estimates': function () { return ({
9099
9192
  gravitational: factories['io.flow.v0.models.measurement'](),
@@ -9500,6 +9593,42 @@ var factories = {
9500
9593
  source_url: factories.string(),
9501
9594
  filename: factories.string(),
9502
9595
  }); },
9596
+ 'io.flow.v0.models.order_state': function () { return ({
9597
+ id: factories.string(),
9598
+ order_number: factories.string(),
9599
+ external_order_reference: factories.string(),
9600
+ payment_requests: arrayOf(function () { return factories['io.flow.v0.models.payment_request_reference'](); }),
9601
+ status: factories['io.flow.v0.enums.order_state_status'](),
9602
+ rejection_reasons: arrayOf(function () { return factories['io.flow.v0.unions.order_state_rejection_reason'](); }),
9603
+ }); },
9604
+ 'io.flow.v0.models.order_state_deleted': function () { return ({
9605
+ discriminator: 'order_state_deleted',
9606
+ event_id: factories.string(),
9607
+ timestamp: factories.date_time_iso_8601(),
9608
+ organization: factories.string(),
9609
+ channel_id: factories.string(),
9610
+ id: factories.string(),
9611
+ }); },
9612
+ 'io.flow.v0.models.order_state_rejection_reason_domestic_order': function () { return ({
9613
+ discriminator: 'order_state_rejection_reason_domestic_order',
9614
+ destination_address: factories['io.flow.v0.models.address'](),
9615
+ }); },
9616
+ 'io.flow.v0.models.order_state_rejection_reason_items_empty': function () { return ({
9617
+ discriminator: 'order_state_rejection_reason_items_empty',
9618
+ line_items: arrayOf(function () { return factories.string(); }),
9619
+ }); },
9620
+ 'io.flow.v0.models.order_state_rejection_reason_restricted_item': function () { return ({
9621
+ discriminator: 'order_state_rejection_reason_restricted_item',
9622
+ item_numbers: arrayOf(function () { return factories.string(); }),
9623
+ }); },
9624
+ 'io.flow.v0.models.order_state_upserted': function () { return ({
9625
+ discriminator: 'order_state_upserted',
9626
+ event_id: factories.string(),
9627
+ timestamp: factories.date_time_iso_8601(),
9628
+ organization: factories.string(),
9629
+ channel_id: factories.string(),
9630
+ order_state: factories['io.flow.v0.models.order_state'](),
9631
+ }); },
9503
9632
  'io.flow.v0.models.order_submission_form': function () { return ({
9504
9633
  identifiers: arrayOf(function () { return factories['io.flow.v0.models.order_submission_identifier_form'](); }),
9505
9634
  }); },
@@ -10900,6 +11029,10 @@ var factories = {
10900
11029
  hs_code: factories.string(),
10901
11030
  restricted_regions_by_type: arrayOf(function () { return factories['io.flow.v0.models.sellability_region_result'](); }),
10902
11031
  needs_action_attributes: arrayOf(function () { return factories['io.flow.v0.models.needs_action_attributes'](); }),
11032
+ fingerprint: factories.string(),
11033
+ restriction_created_at: factories.date_time_iso_8601(),
11034
+ first_reviewed_at: factories.date_time_iso_8601(),
11035
+ seconds_to_first_review: factories.long(),
10903
11036
  }); },
10904
11037
  'io.flow.v0.models.product_restriction_result_deleted': function () { return ({
10905
11038
  discriminator: 'product_restriction_result_deleted',
@@ -10935,6 +11068,7 @@ var factories = {
10935
11068
  dry_run: factories.boolean(),
10936
11069
  }); },
10937
11070
  'io.flow.v0.models.product_sellability_result': function () { return ({
11071
+ id: factories.string(),
10938
11072
  merchant_id: factories.string(),
10939
11073
  product_id: factories.string(),
10940
11074
  restricted_regions: arrayOf(function () { return factories['io.flow.v0.models.sellability_restricted_region'](); }),
@@ -10948,6 +11082,8 @@ var factories = {
10948
11082
  event_id: factories.string(),
10949
11083
  timestamp: factories.date_time_iso_8601(),
10950
11084
  organization: factories.string(),
11085
+ merchant: factories.string(),
11086
+ channel_id: factories.string(),
10951
11087
  id: factories.string(),
10952
11088
  }); },
10953
11089
  'io.flow.v0.models.product_sellability_result_upserted': function () { return ({
@@ -10955,6 +11091,8 @@ var factories = {
10955
11091
  event_id: factories.string(),
10956
11092
  timestamp: factories.date_time_iso_8601(),
10957
11093
  organization: factories.string(),
11094
+ merchant: factories.string(),
11095
+ channel_id: factories.string(),
10958
11096
  product_sellability_result: factories['io.flow.v0.models.product_sellability_result'](),
10959
11097
  }); },
10960
11098
  'io.flow.v0.models.product_taxonomy_category': function () { return ({
@@ -11150,6 +11288,11 @@ var factories = {
11150
11288
  id: factories.string(),
11151
11289
  name: factories.string(),
11152
11290
  }); },
11291
+ 'io.flow.v0.models.ratecard_data': function () { return ({
11292
+ dhlParcelDistributionCenter: factories.string(),
11293
+ glbeRatecardMetadataLaneIdentifier: factories.string(),
11294
+ pickupCenter: factories.string(),
11295
+ }); },
11153
11296
  'io.flow.v0.models.ratecard_deleted': function () { return ({
11154
11297
  discriminator: 'ratecard_deleted',
11155
11298
  event_id: factories.string(),
@@ -11242,7 +11385,7 @@ var factories = {
11242
11385
  glbe_shipping_method_id: factories.string(),
11243
11386
  glbe_proposition_name: factories.string(),
11244
11387
  channel_revenue_share_percentage: factories.decimal(),
11245
- data: objectOf(function () { return factories.string(); }),
11388
+ data: factories['io.flow.v0.models.ratecard_data'](),
11246
11389
  }); },
11247
11390
  'io.flow.v0.models.ratecard_lane': function () { return ({
11248
11391
  id: factories.string(),
@@ -11791,11 +11934,13 @@ var factories = {
11791
11934
  'io.flow.v0.models.sellability_needs_action_attributes': function () { return ({
11792
11935
  reason_code: factories.string(),
11793
11936
  category_metafield_handles: arrayOf(function () { return factories.string(); }),
11937
+ category_metafield_ids: arrayOf(function () { return factories.string(); }),
11794
11938
  require_msds: factories.boolean(),
11795
11939
  }); },
11796
11940
  'io.flow.v0.models.sellability_reason_with_regions': function () { return ({
11797
11941
  reason: factories.string(),
11798
11942
  regions: arrayOf(function () { return factories.string(); }),
11943
+ review_status: factories.string(),
11799
11944
  }); },
11800
11945
  'io.flow.v0.models.sellability_region_result': function () { return ({
11801
11946
  type: factories['io.flow.v0.enums.rule_effect_type'](),
@@ -12416,6 +12561,7 @@ var factories = {
12416
12561
  activated_at: factories.date_time_iso_8601(),
12417
12562
  status_updated_at: factories.date_time_iso_8601(),
12418
12563
  shop: factories['io.flow.v0.models.shop'](),
12564
+ settlement_currency: factories.string(),
12419
12565
  last_year_xborder_gmv: factories['io.flow.v0.models.money'](),
12420
12566
  last_month_xborder_gmv: factories['io.flow.v0.models.money'](),
12421
12567
  average_order_value: factories['io.flow.v0.models.money'](),
@@ -12448,6 +12594,7 @@ var factories = {
12448
12594
  ratecard_id: factories.string(),
12449
12595
  rate_card: factories.string(),
12450
12596
  shop: factories['io.flow.v0.models.shop'](),
12597
+ settlement_currency: factories.string(),
12451
12598
  last_year_xborder_gmv: factories['io.flow.v0.models.money'](),
12452
12599
  last_month_xborder_gmv: factories['io.flow.v0.models.money'](),
12453
12600
  average_order_value: factories['io.flow.v0.models.money'](),
@@ -12706,6 +12853,26 @@ var factories = {
12706
12853
  key: factories['io.flow.v0.enums.delivery_option_cost_detail_component_key'](),
12707
12854
  available: arrayOf(function () { return factories['io.flow.v0.models.surcharge_responsible_party_display'](); }),
12708
12855
  }); },
12856
+ 'io.flow.v0.models.tariff_codes': function () { return ({
12857
+ item_number: factories.string(),
12858
+ product_id: factories.string(),
12859
+ hs6_code: factories.string(),
12860
+ codes: arrayOf(function () { return factories['io.flow.v0.models.harmonization_tariff_code'](); }),
12861
+ }); },
12862
+ 'io.flow.v0.models.tariff_codes_deleted': function () { return ({
12863
+ discriminator: 'tariff_codes_deleted',
12864
+ event_id: factories.string(),
12865
+ timestamp: factories.date_time_iso_8601(),
12866
+ organization: factories.string(),
12867
+ id: factories.string(),
12868
+ }); },
12869
+ 'io.flow.v0.models.tariff_codes_upserted': function () { return ({
12870
+ discriminator: 'tariff_codes_upserted',
12871
+ event_id: factories.string(),
12872
+ timestamp: factories.date_time_iso_8601(),
12873
+ organization: factories.string(),
12874
+ tariff_codes: factories['io.flow.v0.models.tariff_codes'](),
12875
+ }); },
12709
12876
  'io.flow.v0.models.tax': function () { return ({
12710
12877
  name: factories.string(),
12711
12878
  rate: factories.decimal(),
@@ -12841,6 +13008,8 @@ var factories = {
12841
13008
  discriminator: 'test_upserted',
12842
13009
  event_id: factories.string(),
12843
13010
  timestamp: factories.date_time_iso_8601(),
13011
+ organization: factories.string(),
13012
+ channel_id: factories.string(),
12844
13013
  test: factories['io.flow.ben.test.internal.v0.models.test'](),
12845
13014
  }); },
12846
13015
  'io.flow.v0.models.third_party_logistics_partner': function () { return ({
@@ -13215,6 +13384,17 @@ var factories = {
13215
13384
  description: factories.string(),
13216
13385
  original: factories['io.flow.v0.models.transaction_metadata_original_transaction'](),
13217
13386
  url: factories.string(),
13387
+ recoup: factories.boolean(),
13388
+ }); },
13389
+ 'io.flow.v0.models.transaction_metadata_merchant_fee': function () { return ({
13390
+ discriminator: 'merchant_fee',
13391
+ items: arrayOf(function () { return factories['io.flow.v0.models.transaction_metadata_merchant_fee_item'](); }),
13392
+ }); },
13393
+ 'io.flow.v0.models.transaction_metadata_merchant_fee_item': function () { return ({
13394
+ type: factories.string(),
13395
+ amount: factories.decimal(),
13396
+ local_amount: factories.decimal(),
13397
+ description: factories.string(),
13218
13398
  }); },
13219
13399
  'io.flow.v0.models.transaction_metadata_original_transaction': function () { return ({
13220
13400
  id: factories.string(),
@@ -13790,6 +13970,8 @@ var factories = {
13790
13970
  var f = faker.helpers.arrayElement([
13791
13971
  function () { return factories['io.flow.v0.models.test_upserted'](); },
13792
13972
  function () { return factories['io.flow.v0.models.generate_load'](); },
13973
+ function () { return factories['io.flow.v0.models.amrutha_item_upserted'](); },
13974
+ function () { return factories['io.flow.v0.models.amrutha_item_deleted'](); },
13793
13975
  function () { return factories['io.flow.v0.models.transaction_upserted'](); },
13794
13976
  function () { return factories['io.flow.v0.models.organization_transaction_upserted'](); },
13795
13977
  function () { return factories['io.flow.v0.models.organization_transaction_deleted'](); },
@@ -13850,6 +14032,8 @@ var factories = {
13850
14032
  function () { return factories['io.flow.v0.models.order_upserted_v2'](); },
13851
14033
  function () { return factories['io.flow.v0.models.order_identifier_deleted_v2'](); },
13852
14034
  function () { return factories['io.flow.v0.models.order_identifier_upserted_v3'](); },
14035
+ function () { return factories['io.flow.v0.models.order_state_upserted'](); },
14036
+ function () { return factories['io.flow.v0.models.order_state_deleted'](); },
13853
14037
  function () { return factories['io.flow.v0.models.fraud_status_changed'](); },
13854
14038
  function () { return factories['io.flow.v0.models.center_upserted'](); },
13855
14039
  function () { return factories['io.flow.v0.models.center_deleted'](); },
@@ -13874,6 +14058,8 @@ var factories = {
13874
14058
  function () { return factories['io.flow.v0.models.item_origin_deleted'](); },
13875
14059
  function () { return factories['io.flow.v0.models.harmonized_landed_cost_upserted'](); },
13876
14060
  function () { return factories['io.flow.v0.models.fully_harmonized_item_upserted'](); },
14061
+ function () { return factories['io.flow.v0.models.tariff_codes_upserted'](); },
14062
+ function () { return factories['io.flow.v0.models.tariff_codes_deleted'](); },
13877
14063
  function () { return factories['io.flow.v0.models.label_deleted_v2'](); },
13878
14064
  function () { return factories['io.flow.v0.models.label_upserted_v2'](); },
13879
14065
  function () { return factories['io.flow.v0.models.notification_upserted_v2'](); },
@@ -14198,6 +14384,14 @@ var factories = {
14198
14384
  ]);
14199
14385
  return f();
14200
14386
  },
14387
+ 'io.flow.v0.unions.order_state_rejection_reason': function () {
14388
+ var f = faker.helpers.arrayElement([
14389
+ function () { return factories['io.flow.v0.models.order_state_rejection_reason_restricted_item'](); },
14390
+ function () { return factories['io.flow.v0.models.order_state_rejection_reason_domestic_order'](); },
14391
+ function () { return factories['io.flow.v0.models.order_state_rejection_reason_items_empty'](); },
14392
+ ]);
14393
+ return f();
14394
+ },
14201
14395
  'io.flow.v0.unions.partner_center_fee': function () {
14202
14396
  var f = faker.helpers.arrayElement([
14203
14397
  function () { return factories['io.flow.v0.models.commercial_invoice_fee'](); },
@@ -14591,6 +14785,7 @@ var factories = {
14591
14785
  function () { return factories['io.flow.v0.models.transaction_metadata_failed_payout'](); },
14592
14786
  function () { return factories['io.flow.v0.models.transaction_metadata_payment_transaction'](); },
14593
14787
  function () { return factories['io.flow.v0.models.transaction_metadata_tax_duty'](); },
14788
+ function () { return factories['io.flow.v0.models.transaction_metadata_merchant_fee'](); },
14594
14789
  ]);
14595
14790
  return f();
14596
14791
  },
@@ -14670,6 +14865,8 @@ export var makeAllocationUpsertedV2 = function () { return factories['io.flow.v0
14670
14865
  export var makeAllocationV2 = function () { return factories['io.flow.v0.models.allocation_v2'](); };
14671
14866
  export var makeAmountMargin = function () { return factories['io.flow.v0.models.amount_margin'](); };
14672
14867
  export var makeAmountMarginForm = function () { return factories['io.flow.v0.models.amount_margin_form'](); };
14868
+ export var makeAmruthaItemDeleted = function () { return factories['io.flow.v0.models.amrutha_item_deleted'](); };
14869
+ export var makeAmruthaItemUpserted = function () { return factories['io.flow.v0.models.amrutha_item_upserted'](); };
14673
14870
  export var makeAnalyticsExportType = function () { return factories['io.flow.v0.models.analytics_export_type'](); };
14674
14871
  export var makeApplePayMerchantValidationPayload = function () { return factories['io.flow.v0.models.apple_pay_merchant_validation_payload'](); };
14675
14872
  export var makeApplepaySdkCreateResultActionDetails = function () { return factories['io.flow.v0.models.applepay_sdk_create_result_action_details'](); };
@@ -15243,6 +15440,7 @@ export var makeHarmonizationDocument = function () { return factories['io.flow.v
15243
15440
  export var makeHarmonizationHs10ExportType = function () { return factories['io.flow.v0.models.harmonization_hs10_export_type'](); };
15244
15441
  export var makeHarmonizationHs6ExportType = function () { return factories['io.flow.v0.models.harmonization_hs6_export_type'](); };
15245
15442
  export var makeHarmonizationOverviewExportType = function () { return factories['io.flow.v0.models.harmonization_overview_export_type'](); };
15443
+ export var makeHarmonizationTariffCode = function () { return factories['io.flow.v0.models.harmonization_tariff_code'](); };
15246
15444
  export var makeHarmonizationTariffCodesExportType = function () { return factories['io.flow.v0.models.harmonization_tariff_codes_export_type'](); };
15247
15445
  export var makeHarmonizedCategoryReference = function () { return factories['io.flow.v0.models.harmonized_category_reference'](); };
15248
15446
  export var makeHarmonizedItem = function () { return factories['io.flow.v0.models.harmonized_item'](); };
@@ -15559,6 +15757,14 @@ export var makeOrderRulesSummary = function () { return factories['io.flow.v0.mo
15559
15757
  export var makeOrderServiceChange = function () { return factories['io.flow.v0.models.order_service_change'](); };
15560
15758
  export var makeOrderServiceChangeForm = function () { return factories['io.flow.v0.models.order_service_change_form'](); };
15561
15759
  export var makeOrderServiceChangeRequestData = function () { return factories['io.flow.v0.models.order_service_change_request_data'](); };
15760
+ export var makeOrderState = function () { return factories['io.flow.v0.models.order_state'](); };
15761
+ export var makeOrderStateDeleted = function () { return factories['io.flow.v0.models.order_state_deleted'](); };
15762
+ export var makeOrderStateRejectionReason = function () { return factories['io.flow.v0.unions.order_state_rejection_reason'](); };
15763
+ export var makeOrderStateRejectionReasonDomesticOrder = function () { return factories['io.flow.v0.models.order_state_rejection_reason_domestic_order'](); };
15764
+ export var makeOrderStateRejectionReasonItemsEmpty = function () { return factories['io.flow.v0.models.order_state_rejection_reason_items_empty'](); };
15765
+ export var makeOrderStateRejectionReasonRestrictedItem = function () { return factories['io.flow.v0.models.order_state_rejection_reason_restricted_item'](); };
15766
+ export var makeOrderStateStatus = function () { return factories['io.flow.v0.enums.order_state_status'](); };
15767
+ export var makeOrderStateUpserted = function () { return factories['io.flow.v0.models.order_state_upserted'](); };
15562
15768
  export var makeOrderStatus = function () { return factories['io.flow.v0.enums.order_status'](); };
15563
15769
  export var makeOrderStorage = function () { return factories['io.flow.v0.enums.order_storage'](); };
15564
15770
  export var makeOrderSubmissionForm = function () { return factories['io.flow.v0.models.order_submission_form'](); };
@@ -15894,6 +16100,7 @@ export var makeRateUpsertedV3 = function () { return factories['io.flow.v0.model
15894
16100
  export var makeRateVersion = function () { return factories['io.flow.v0.models.rate_version'](); };
15895
16101
  export var makeRatecard = function () { return factories['io.flow.v0.models.ratecard'](); };
15896
16102
  export var makeRatecardCarrierSummary = function () { return factories['io.flow.v0.models.ratecard_carrier_summary'](); };
16103
+ export var makeRatecardData = function () { return factories['io.flow.v0.models.ratecard_data'](); };
15897
16104
  export var makeRatecardDeleted = function () { return factories['io.flow.v0.models.ratecard_deleted'](); };
15898
16105
  export var makeRatecardEstimate = function () { return factories['io.flow.v0.unions.ratecard_estimate'](); };
15899
16106
  export var makeRatecardEstimateForm = function () { return factories['io.flow.v0.models.ratecard_estimate_form'](); };
@@ -16185,6 +16392,9 @@ export var makeSurchargeResponsibleParty = function () { return factories['io.fl
16185
16392
  export var makeSurchargeResponsiblePartyDisplay = function () { return factories['io.flow.v0.models.surcharge_responsible_party_display'](); };
16186
16393
  export var makeSurchargeSetting = function () { return factories['io.flow.v0.models.surcharge_setting'](); };
16187
16394
  export var makeSurchargeSettingDisplay = function () { return factories['io.flow.v0.models.surcharge_setting_display'](); };
16395
+ export var makeTariffCodes = function () { return factories['io.flow.v0.models.tariff_codes'](); };
16396
+ export var makeTariffCodesDeleted = function () { return factories['io.flow.v0.models.tariff_codes_deleted'](); };
16397
+ export var makeTariffCodesUpserted = function () { return factories['io.flow.v0.models.tariff_codes_upserted'](); };
16188
16398
  export var makeTax = function () { return factories['io.flow.v0.models.tax'](); };
16189
16399
  export var makeTaxApplicability = function () { return factories['io.flow.v0.enums.tax_applicability'](); };
16190
16400
  export var makeTaxBreakdown = function () { return factories['io.flow.v0.models.tax_breakdown'](); };
@@ -16287,6 +16497,8 @@ export var makeTransactionMetadataChannelOrganizationTransaction = function () {
16287
16497
  export var makeTransactionMetadataFailedPayout = function () { return factories['io.flow.v0.models.transaction_metadata_failed_payout'](); };
16288
16498
  export var makeTransactionMetadataFailedPayoutReference = function () { return factories['io.flow.v0.models.transaction_metadata_failed_payout_reference'](); };
16289
16499
  export var makeTransactionMetadataManual = function () { return factories['io.flow.v0.models.transaction_metadata_manual'](); };
16500
+ export var makeTransactionMetadataMerchantFee = function () { return factories['io.flow.v0.models.transaction_metadata_merchant_fee'](); };
16501
+ export var makeTransactionMetadataMerchantFeeItem = function () { return factories['io.flow.v0.models.transaction_metadata_merchant_fee_item'](); };
16290
16502
  export var makeTransactionMetadataOriginalTransaction = function () { return factories['io.flow.v0.models.transaction_metadata_original_transaction'](); };
16291
16503
  export var makeTransactionMetadataOutboundTransaction = function () { return factories['io.flow.v0.models.transaction_metadata_outbound_transaction'](); };
16292
16504
  export var makeTransactionMetadataPaymentTransaction = function () { return factories['io.flow.v0.models.transaction_metadata_payment_transaction'](); };
@@ -66,6 +66,8 @@ export declare const makeAllocationUpsertedV2: () => io.flow.v0.models.Allocatio
66
66
  export declare const makeAllocationV2: () => io.flow.v0.models.AllocationV2;
67
67
  export declare const makeAmountMargin: () => io.flow.v0.models.AmountMargin;
68
68
  export declare const makeAmountMarginForm: () => io.flow.v0.models.AmountMarginForm;
69
+ export declare const makeAmruthaItemDeleted: () => io.flow.v0.models.AmruthaItemDeleted;
70
+ export declare const makeAmruthaItemUpserted: () => io.flow.v0.models.AmruthaItemUpserted;
69
71
  export declare const makeAnalyticsExportType: () => io.flow.v0.models.AnalyticsExportType;
70
72
  export declare const makeApplePayMerchantValidationPayload: () => io.flow.v0.models.ApplePayMerchantValidationPayload;
71
73
  export declare const makeApplepaySdkCreateResultActionDetails: () => io.flow.v0.models.ApplepaySdkCreateResultActionDetails;
@@ -639,6 +641,7 @@ export declare const makeHarmonizationDocument: () => io.flow.v0.models.Harmoniz
639
641
  export declare const makeHarmonizationHs10ExportType: () => io.flow.v0.models.HarmonizationHs10ExportType;
640
642
  export declare const makeHarmonizationHs6ExportType: () => io.flow.v0.models.HarmonizationHs6ExportType;
641
643
  export declare const makeHarmonizationOverviewExportType: () => io.flow.v0.models.HarmonizationOverviewExportType;
644
+ export declare const makeHarmonizationTariffCode: () => io.flow.v0.models.HarmonizationTariffCode;
642
645
  export declare const makeHarmonizationTariffCodesExportType: () => io.flow.v0.models.HarmonizationTariffCodesExportType;
643
646
  export declare const makeHarmonizedCategoryReference: () => io.flow.v0.models.HarmonizedCategoryReference;
644
647
  export declare const makeHarmonizedItem: () => io.flow.v0.models.HarmonizedItem;
@@ -955,6 +958,14 @@ export declare const makeOrderRulesSummary: () => io.flow.v0.models.OrderRulesSu
955
958
  export declare const makeOrderServiceChange: () => io.flow.v0.models.OrderServiceChange;
956
959
  export declare const makeOrderServiceChangeForm: () => io.flow.v0.models.OrderServiceChangeForm;
957
960
  export declare const makeOrderServiceChangeRequestData: () => io.flow.v0.models.OrderServiceChangeRequestData;
961
+ export declare const makeOrderState: () => io.flow.v0.models.OrderState;
962
+ export declare const makeOrderStateDeleted: () => io.flow.v0.models.OrderStateDeleted;
963
+ export declare const makeOrderStateRejectionReason: () => io.flow.v0.unions.OrderStateRejectionReason;
964
+ export declare const makeOrderStateRejectionReasonDomesticOrder: () => io.flow.v0.models.OrderStateRejectionReasonDomesticOrder;
965
+ export declare const makeOrderStateRejectionReasonItemsEmpty: () => io.flow.v0.models.OrderStateRejectionReasonItemsEmpty;
966
+ export declare const makeOrderStateRejectionReasonRestrictedItem: () => io.flow.v0.models.OrderStateRejectionReasonRestrictedItem;
967
+ export declare const makeOrderStateStatus: () => io.flow.v0.enums.OrderStateStatus;
968
+ export declare const makeOrderStateUpserted: () => io.flow.v0.models.OrderStateUpserted;
958
969
  export declare const makeOrderStatus: () => io.flow.v0.enums.OrderStatus;
959
970
  export declare const makeOrderStorage: () => io.flow.v0.enums.OrderStorage;
960
971
  export declare const makeOrderSubmissionForm: () => io.flow.v0.models.OrderSubmissionForm;
@@ -1290,6 +1301,7 @@ export declare const makeRateUpsertedV3: () => io.flow.v0.models.RateUpsertedV3;
1290
1301
  export declare const makeRateVersion: () => io.flow.v0.models.RateVersion;
1291
1302
  export declare const makeRatecard: () => io.flow.v0.models.Ratecard;
1292
1303
  export declare const makeRatecardCarrierSummary: () => io.flow.v0.models.RatecardCarrierSummary;
1304
+ export declare const makeRatecardData: () => io.flow.v0.models.RatecardData;
1293
1305
  export declare const makeRatecardDeleted: () => io.flow.v0.models.RatecardDeleted;
1294
1306
  export declare const makeRatecardEstimate: () => io.flow.v0.unions.RatecardEstimate;
1295
1307
  export declare const makeRatecardEstimateForm: () => io.flow.v0.models.RatecardEstimateForm;
@@ -1581,6 +1593,9 @@ export declare const makeSurchargeResponsibleParty: () => io.flow.v0.enums.Surch
1581
1593
  export declare const makeSurchargeResponsiblePartyDisplay: () => io.flow.v0.models.SurchargeResponsiblePartyDisplay;
1582
1594
  export declare const makeSurchargeSetting: () => io.flow.v0.models.SurchargeSetting;
1583
1595
  export declare const makeSurchargeSettingDisplay: () => io.flow.v0.models.SurchargeSettingDisplay;
1596
+ export declare const makeTariffCodes: () => io.flow.v0.models.TariffCodes;
1597
+ export declare const makeTariffCodesDeleted: () => io.flow.v0.models.TariffCodesDeleted;
1598
+ export declare const makeTariffCodesUpserted: () => io.flow.v0.models.TariffCodesUpserted;
1584
1599
  export declare const makeTax: () => io.flow.v0.models.Tax;
1585
1600
  export declare const makeTaxApplicability: () => io.flow.v0.enums.TaxApplicability;
1586
1601
  export declare const makeTaxBreakdown: () => io.flow.v0.models.TaxBreakdown;
@@ -1683,6 +1698,8 @@ export declare const makeTransactionMetadataChannelOrganizationTransaction: () =
1683
1698
  export declare const makeTransactionMetadataFailedPayout: () => io.flow.v0.models.TransactionMetadataFailedPayout;
1684
1699
  export declare const makeTransactionMetadataFailedPayoutReference: () => io.flow.v0.models.TransactionMetadataFailedPayoutReference;
1685
1700
  export declare const makeTransactionMetadataManual: () => io.flow.v0.models.TransactionMetadataManual;
1701
+ export declare const makeTransactionMetadataMerchantFee: () => io.flow.v0.models.TransactionMetadataMerchantFee;
1702
+ export declare const makeTransactionMetadataMerchantFeeItem: () => io.flow.v0.models.TransactionMetadataMerchantFeeItem;
1686
1703
  export declare const makeTransactionMetadataOriginalTransaction: () => io.flow.v0.models.TransactionMetadataOriginalTransaction;
1687
1704
  export declare const makeTransactionMetadataOutboundTransaction: () => io.flow.v0.models.TransactionMetadataOutboundTransaction;
1688
1705
  export declare const makeTransactionMetadataPaymentTransaction: () => io.flow.v0.models.TransactionMetadataPaymentTransaction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/api-factories",
3
- "version": "0.0.119",
3
+ "version": "0.0.121",
4
4
  "description": "Flow API mock data factories",
5
5
  "keywords": [
6
6
  "flow",
@@ -35,6 +35,5 @@
35
35
  "peerDependencies": {
36
36
  "@faker-js/faker": "^6.2.0",
37
37
  "@flowio/api-types": "*"
38
- },
39
- "gitHead": "2db30f8eba758d78a8a5f36c767fbddd2b9f4f94"
38
+ }
40
39
  }