@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/src/api.ts CHANGED
@@ -117,6 +117,12 @@ const factories = {
117
117
  num_events: factories.long(),
118
118
  }),
119
119
 
120
+ 'io.flow.ben.test.internal.v0.models.generate_load_rate': (): io.flow.ben.test.internal.v0.models.GenerateLoadRate => ({
121
+ organization_ids: arrayOf(() => factories.string()),
122
+ events_per_second: factories.long(),
123
+ duration_seconds: factories.long(),
124
+ }),
125
+
120
126
  'io.flow.ben.test.internal.v0.models.generate_load_single_org': (): io.flow.ben.test.internal.v0.models.GenerateLoadSingleOrg => ({
121
127
  discriminator: 'generate_load_single_org',
122
128
  organization_id: factories.string(),
@@ -634,6 +640,7 @@ const factories = {
634
640
  'io.flow.common.v0.models.line_item_form': (): io.flow.common.v0.models.LineItemForm => ({
635
641
  number: factories.string(),
636
642
  quantity: factories.long(),
643
+ line_item_identifier: factories.string(),
637
644
  shipment_estimate: factories['io.flow.common.v0.models.datetime_range'](),
638
645
  price: factories['io.flow.common.v0.models.money'](),
639
646
  attributes: objectOf(() => factories.string()),
@@ -4226,6 +4233,65 @@ const factories = {
4226
4233
  return f();
4227
4234
  },
4228
4235
 
4236
+ 'io.flow.tech.onboarding.playground.v0.enums.amrutha_item_type': (): io.flow.tech.onboarding.playground.v0.enums.AmruthaItemType => faker.helpers.arrayElement(['physical', 'digital']),
4237
+ 'io.flow.tech.onboarding.playground.v0.enums.chenglin_item_type': (): io.flow.tech.onboarding.playground.v0.enums.ChenglinItemType => faker.helpers.arrayElement(['physical', 'digital']),
4238
+ 'io.flow.tech.onboarding.playground.v0.enums.gabriel_item_type': (): io.flow.tech.onboarding.playground.v0.enums.GabrielItemType => faker.helpers.arrayElement(['physical', 'digital']),
4239
+
4240
+ 'io.flow.tech.onboarding.playground.v0.models.amrutha_item': (): io.flow.tech.onboarding.playground.v0.models.AmruthaItem => ({
4241
+ id: factories.string(),
4242
+ number: factories.string(),
4243
+ amount: factories['io.flow.common.v0.models.price'](),
4244
+ description: factories.string(),
4245
+ type: factories['io.flow.tech.onboarding.playground.v0.enums.amrutha_item_type'](),
4246
+ added_on: factories.date_time_iso_8601(),
4247
+ }),
4248
+
4249
+ 'io.flow.tech.onboarding.playground.v0.models.amrutha_item_form': (): io.flow.tech.onboarding.playground.v0.models.AmruthaItemForm => ({
4250
+ number: factories.string(),
4251
+ amount: factories['io.flow.common.v0.models.price'](),
4252
+ description: factories.string(),
4253
+ type: factories['io.flow.tech.onboarding.playground.v0.enums.amrutha_item_type'](),
4254
+ added_on: factories.date_time_iso_8601(),
4255
+ }),
4256
+
4257
+ 'io.flow.tech.onboarding.playground.v0.models.chenglin_item': (): io.flow.tech.onboarding.playground.v0.models.ChenglinItem => ({
4258
+ id: factories.string(),
4259
+ number: factories.string(),
4260
+ amount: factories['io.flow.common.v0.models.price'](),
4261
+ description: factories.string(),
4262
+ type: factories['io.flow.tech.onboarding.playground.v0.enums.gabriel_item_type'](),
4263
+ added_on: factories.date_iso_8601(),
4264
+ }),
4265
+
4266
+ 'io.flow.tech.onboarding.playground.v0.models.chenglin_item_form': (): io.flow.tech.onboarding.playground.v0.models.ChenglinItemForm => ({
4267
+ number: factories.string(),
4268
+ amount: factories['io.flow.common.v0.models.price'](),
4269
+ description: factories.string(),
4270
+ type: factories['io.flow.tech.onboarding.playground.v0.enums.gabriel_item_type'](),
4271
+ added_on: factories.date_iso_8601(),
4272
+ }),
4273
+
4274
+ 'io.flow.tech.onboarding.playground.v0.models.gabriel_item': (): io.flow.tech.onboarding.playground.v0.models.GabrielItem => ({
4275
+ id: factories.string(),
4276
+ number: factories.string(),
4277
+ amount: factories['io.flow.common.v0.models.price'](),
4278
+ description: factories.string(),
4279
+ type: factories['io.flow.tech.onboarding.playground.v0.enums.gabriel_item_type'](),
4280
+ added_on: factories.date_iso_8601(),
4281
+ }),
4282
+
4283
+ 'io.flow.tech.onboarding.playground.v0.models.gabriel_item_form': (): io.flow.tech.onboarding.playground.v0.models.GabrielItemForm => ({
4284
+ number: factories.string(),
4285
+ amount: factories['io.flow.common.v0.models.price'](),
4286
+ description: factories.string(),
4287
+ type: factories['io.flow.tech.onboarding.playground.v0.enums.gabriel_item_type'](),
4288
+ added_on: factories.date_iso_8601(),
4289
+ }),
4290
+
4291
+ 'io.flow.tech.onboarding.playground.v0.models.tech_onboarding_description': (): io.flow.tech.onboarding.playground.v0.models.TechOnboardingDescription => ({
4292
+ description: factories.string(),
4293
+ }),
4294
+
4229
4295
  'io.flow.v0.enums.abandoned_order_promotion_status': (): io.flow.v0.enums.AbandonedOrderPromotionStatus => faker.helpers.arrayElement(['active', 'inactive']),
4230
4296
  'io.flow.v0.enums.abandoned_order_setting_status': (): io.flow.v0.enums.AbandonedOrderSettingStatus => faker.helpers.arrayElement(['active', 'inactive']),
4231
4297
 
@@ -4435,6 +4501,8 @@ const factories = {
4435
4501
  'io.flow.v0.enums.event_type': (): io.flow.v0.enums.EventType => faker.helpers.arrayElement([
4436
4502
  'test_upserted',
4437
4503
  'generate_load',
4504
+ 'amrutha_item_upserted',
4505
+ 'amrutha_item_deleted',
4438
4506
  'transaction_upserted',
4439
4507
  'organization_transaction_upserted',
4440
4508
  'organization_transaction_deleted',
@@ -4495,6 +4563,8 @@ const factories = {
4495
4563
  'order_upserted_v2',
4496
4564
  'order_identifier_deleted_v2',
4497
4565
  'order_identifier_upserted_v3',
4566
+ 'order_state_upserted',
4567
+ 'order_state_deleted',
4498
4568
  'fraud_status_changed',
4499
4569
  'center_upserted',
4500
4570
  'center_deleted',
@@ -4519,6 +4589,8 @@ const factories = {
4519
4589
  'item_origin_deleted',
4520
4590
  'harmonized_landed_cost_upserted',
4521
4591
  'fully_harmonized_item_upserted',
4592
+ 'tariff_codes_upserted',
4593
+ 'tariff_codes_deleted',
4522
4594
  'label_deleted_v2',
4523
4595
  'label_upserted_v2',
4524
4596
  'notification_upserted_v2',
@@ -4622,6 +4694,7 @@ const factories = {
4622
4694
  'transfer',
4623
4695
  'negative_balance_guarantee',
4624
4696
  'sp',
4697
+ 'rev_share',
4625
4698
  ]),
4626
4699
 
4627
4700
  'io.flow.v0.enums.flow_behavior': (): io.flow.v0.enums.FlowBehavior => faker.helpers.arrayElement(['view_consumer_data']),
@@ -4710,6 +4783,7 @@ const factories = {
4710
4783
  'notification_requiring_crossdock',
4711
4784
  'flow_simulation_sync',
4712
4785
  'autogenerated',
4786
+ 'legacy_shopify_graphql_server',
4713
4787
  ]),
4714
4788
 
4715
4789
  'io.flow.v0.enums.label_trigger_method': (): io.flow.v0.enums.LabelTriggerMethod => faker.helpers.arrayElement(['autogenerated', 'on_demand']),
@@ -4866,6 +4940,7 @@ const factories = {
4866
4940
  'io.flow.v0.enums.order_price_fee_type': (): io.flow.v0.enums.OrderPriceFeeType => faker.helpers.arrayElement(['service', 'fx', 'tax', 'duties', 'tax_and_duties', 'product']),
4867
4941
  'io.flow.v0.enums.order_refund_summary_includes': (): io.flow.v0.enums.OrderRefundSummaryIncludes => faker.helpers.arrayElement(['duties', 'vat', 'shipping']),
4868
4942
  'io.flow.v0.enums.order_refund_summary_partial_charged': (): io.flow.v0.enums.OrderRefundSummaryPartialCharged => faker.helpers.arrayElement(['per_item', 'for_order', 'by_value_percentage', 'by_quantity_percentage']),
4943
+ 'io.flow.v0.enums.order_state_status': (): io.flow.v0.enums.OrderStateStatus => faker.helpers.arrayElement(['pending', 'accepted', 'rejected']),
4869
4944
  'io.flow.v0.enums.order_status': (): io.flow.v0.enums.OrderStatus => faker.helpers.arrayElement(['open', 'submitted']),
4870
4945
  'io.flow.v0.enums.order_storage': (): io.flow.v0.enums.OrderStorage => faker.helpers.arrayElement(['do_not_persist', 'persist']),
4871
4946
  'io.flow.v0.enums.order_type': (): io.flow.v0.enums.OrderType => faker.helpers.arrayElement(['standard', 'replacement', 'edit']),
@@ -5133,7 +5208,16 @@ const factories = {
5133
5208
  ]),
5134
5209
 
5135
5210
  'io.flow.v0.enums.sellability_request_status': (): io.flow.v0.enums.SellabilityRequestStatus => faker.helpers.arrayElement(['commit']),
5136
- 'io.flow.v0.enums.sellability_result_error_code': (): io.flow.v0.enums.SellabilityResultErrorCode => faker.helpers.arrayElement(['insufficient_details', 'generic_error']),
5211
+
5212
+ 'io.flow.v0.enums.sellability_result_error_code': (): io.flow.v0.enums.SellabilityResultErrorCode => faker.helpers.arrayElement([
5213
+ 'insufficient_details',
5214
+ 'ineligible_category',
5215
+ 'wait_for_high_fidelity',
5216
+ 'external_service_unavailable',
5217
+ 'generic_error',
5218
+ 'catalog_processing_threshold',
5219
+ ]),
5220
+
5137
5221
  'io.flow.v0.enums.sellability_result_status': (): io.flow.v0.enums.SellabilityResultStatus => faker.helpers.arrayElement(['in_review', 'succeeded', 'failed']),
5138
5222
  'io.flow.v0.enums.sellability_screening_mode': (): io.flow.v0.enums.SellabilityScreeningMode => faker.helpers.arrayElement(['pre_onboarding', 'default_on', 'active']),
5139
5223
  'io.flow.v0.enums.shipment_integration_type': (): io.flow.v0.enums.ShipmentIntegrationType => faker.helpers.arrayElement(['direct', 'information', 'preadvice']),
@@ -5248,6 +5332,7 @@ const factories = {
5248
5332
  'wyol_shipment_above_de_min',
5249
5333
  'full_refund_without_shipment',
5250
5334
  'unfulfilled_order_above_de_min',
5335
+ 'order_cancellation_without_capture',
5251
5336
  ]),
5252
5337
 
5253
5338
  'io.flow.v0.enums.tax_jurisdiction_type': (): io.flow.v0.enums.TaxJurisdictionType => faker.helpers.arrayElement(['country', 'province']),
@@ -5318,6 +5403,7 @@ const factories = {
5318
5403
  'merchant_fee',
5319
5404
  'b2b_tax',
5320
5405
  'b2b_tax_refund',
5406
+ 'b2b_fee_mor_tax',
5321
5407
  ]),
5322
5408
 
5323
5409
  'io.flow.v0.enums.transfer_status': (): io.flow.v0.enums.TransferStatus => faker.helpers.arrayElement(['succeeded', 'canceled']),
@@ -5838,6 +5924,20 @@ const factories = {
5838
5924
  margin: factories['io.flow.v0.models.money'](),
5839
5925
  }),
5840
5926
 
5927
+ 'io.flow.v0.models.amrutha_item_deleted': (): io.flow.v0.models.AmruthaItemDeleted => ({
5928
+ discriminator: 'amrutha_item_deleted',
5929
+ event_id: factories.string(),
5930
+ timestamp: factories.date_time_iso_8601(),
5931
+ id: factories.string(),
5932
+ }),
5933
+
5934
+ 'io.flow.v0.models.amrutha_item_upserted': (): io.flow.v0.models.AmruthaItemUpserted => ({
5935
+ discriminator: 'amrutha_item_upserted',
5936
+ event_id: factories.string(),
5937
+ timestamp: factories.date_time_iso_8601(),
5938
+ item: factories['io.flow.tech.onboarding.playground.v0.models.amrutha_item'](),
5939
+ }),
5940
+
5841
5941
  'io.flow.v0.models.analytics_export_type': (): io.flow.v0.models.AnalyticsExportType => ({
5842
5942
  discriminator: 'analytics_export_type',
5843
5943
  from: factories.date_time_iso_8601(),
@@ -6140,6 +6240,7 @@ const factories = {
6140
6240
  b2b_invoice_type: factories['io.flow.v0.enums.b2b_invoice_type'](),
6141
6241
  center: factories['io.flow.v0.models.consumer_invoice_center_reference'](),
6142
6242
  order: factories['io.flow.v0.models.consumer_invoice_order_summary'](),
6243
+ voids_b2b_invoice: factories.boolean(),
6143
6244
  }),
6144
6245
 
6145
6246
  'io.flow.v0.models.b2b_credit_memo_deleted': (): io.flow.v0.models.B2BCreditMemoDeleted => ({
@@ -7225,7 +7326,6 @@ const factories = {
7225
7326
  beneficiary_details: factories['io.flow.v0.models.merchant_onboarding_beneficiary_details'](),
7226
7327
  other_trade_sector: factories.string(),
7227
7328
  center_contact: factories['io.flow.v0.models.operations_contact'](),
7228
- center_address: factories['io.flow.v0.models.address'](),
7229
7329
  average_order_weight: factories.decimal(),
7230
7330
  average_order_weight_unit: factories['io.flow.v0.enums.unit_of_measurement'](),
7231
7331
  package_dimensions: arrayOf(() => factories['io.flow.v0.models.dimension']()),
@@ -7233,6 +7333,7 @@ const factories = {
7233
7333
  default_country_of_origin: factories.string(),
7234
7334
  rate_card: factories.string(),
7235
7335
  shop: factories['io.flow.v0.models.shop'](),
7336
+ settlement_currency: factories.string(),
7236
7337
  created_at: factories.date_time_iso_8601(),
7237
7338
  last_year_xborder_gmv: factories['io.flow.v0.models.money'](),
7238
7339
  last_month_xborder_gmv: factories['io.flow.v0.models.money'](),
@@ -7253,7 +7354,6 @@ const factories = {
7253
7354
  beneficiary_details: factories['io.flow.v0.models.merchant_onboarding_beneficiary_details'](),
7254
7355
  other_trade_sector: factories.string(),
7255
7356
  center_contact: factories['io.flow.v0.models.operations_contact'](),
7256
- center_address: factories['io.flow.v0.models.address'](),
7257
7357
  average_order_weight: factories.decimal(),
7258
7358
  average_order_weight_unit: factories['io.flow.v0.enums.unit_of_measurement'](),
7259
7359
  package_dimensions: arrayOf(() => factories['io.flow.v0.models.dimension']()),
@@ -7262,6 +7362,7 @@ const factories = {
7262
7362
  monthly_average_number_transactions: factories.long(),
7263
7363
  default_country_of_origin: factories.string(),
7264
7364
  shop: factories['io.flow.v0.models.shop'](),
7365
+ settlement_currency: factories.string(),
7265
7366
  rate_card: factories.string(),
7266
7367
  last_year_xborder_gmv: factories['io.flow.v0.models.money'](),
7267
7368
  last_month_xborder_gmv: factories['io.flow.v0.models.money'](),
@@ -9099,6 +9200,11 @@ const factories = {
9099
9200
  sort: factories.string(),
9100
9201
  }),
9101
9202
 
9203
+ 'io.flow.v0.models.harmonization_tariff_code': (): io.flow.v0.models.HarmonizationTariffCode => ({
9204
+ tariff_code: factories.string(),
9205
+ destination: factories.string(),
9206
+ }),
9207
+
9102
9208
  'io.flow.v0.models.harmonization_tariff_codes_export_type': (): io.flow.v0.models.HarmonizationTariffCodesExportType => ({
9103
9209
  discriminator: 'harmonization_tariff_codes_export_type',
9104
9210
  sort: factories.string(),
@@ -10485,6 +10591,7 @@ const factories = {
10485
10591
  company: factories.string(),
10486
10592
  email: factories.string(),
10487
10593
  phone: factories.string(),
10594
+ address: factories['io.flow.v0.models.address'](),
10488
10595
  }),
10489
10596
 
10490
10597
  'io.flow.v0.models.option_weight_estimates': (): io.flow.v0.models.OptionWeightEstimates => ({
@@ -10961,6 +11068,48 @@ const factories = {
10961
11068
  filename: factories.string(),
10962
11069
  }),
10963
11070
 
11071
+ 'io.flow.v0.models.order_state': (): io.flow.v0.models.OrderState => ({
11072
+ id: factories.string(),
11073
+ order_number: factories.string(),
11074
+ external_order_reference: factories.string(),
11075
+ payment_requests: arrayOf(() => factories['io.flow.v0.models.payment_request_reference']()),
11076
+ status: factories['io.flow.v0.enums.order_state_status'](),
11077
+ rejection_reasons: arrayOf(() => factories['io.flow.v0.unions.order_state_rejection_reason']()),
11078
+ }),
11079
+
11080
+ 'io.flow.v0.models.order_state_deleted': (): io.flow.v0.models.OrderStateDeleted => ({
11081
+ discriminator: 'order_state_deleted',
11082
+ event_id: factories.string(),
11083
+ timestamp: factories.date_time_iso_8601(),
11084
+ organization: factories.string(),
11085
+ channel_id: factories.string(),
11086
+ id: factories.string(),
11087
+ }),
11088
+
11089
+ 'io.flow.v0.models.order_state_rejection_reason_domestic_order': (): io.flow.v0.models.OrderStateRejectionReasonDomesticOrder => ({
11090
+ discriminator: 'order_state_rejection_reason_domestic_order',
11091
+ destination_address: factories['io.flow.v0.models.address'](),
11092
+ }),
11093
+
11094
+ 'io.flow.v0.models.order_state_rejection_reason_items_empty': (): io.flow.v0.models.OrderStateRejectionReasonItemsEmpty => ({
11095
+ discriminator: 'order_state_rejection_reason_items_empty',
11096
+ line_items: arrayOf(() => factories.string()),
11097
+ }),
11098
+
11099
+ 'io.flow.v0.models.order_state_rejection_reason_restricted_item': (): io.flow.v0.models.OrderStateRejectionReasonRestrictedItem => ({
11100
+ discriminator: 'order_state_rejection_reason_restricted_item',
11101
+ item_numbers: arrayOf(() => factories.string()),
11102
+ }),
11103
+
11104
+ 'io.flow.v0.models.order_state_upserted': (): io.flow.v0.models.OrderStateUpserted => ({
11105
+ discriminator: 'order_state_upserted',
11106
+ event_id: factories.string(),
11107
+ timestamp: factories.date_time_iso_8601(),
11108
+ organization: factories.string(),
11109
+ channel_id: factories.string(),
11110
+ order_state: factories['io.flow.v0.models.order_state'](),
11111
+ }),
11112
+
10964
11113
  'io.flow.v0.models.order_submission_form': (): io.flow.v0.models.OrderSubmissionForm => ({
10965
11114
  identifiers: arrayOf(() => factories['io.flow.v0.models.order_submission_identifier_form']()),
10966
11115
  }),
@@ -12592,6 +12741,10 @@ const factories = {
12592
12741
  hs_code: factories.string(),
12593
12742
  restricted_regions_by_type: arrayOf(() => factories['io.flow.v0.models.sellability_region_result']()),
12594
12743
  needs_action_attributes: arrayOf(() => factories['io.flow.v0.models.needs_action_attributes']()),
12744
+ fingerprint: factories.string(),
12745
+ restriction_created_at: factories.date_time_iso_8601(),
12746
+ first_reviewed_at: factories.date_time_iso_8601(),
12747
+ seconds_to_first_review: factories.long(),
12595
12748
  }),
12596
12749
 
12597
12750
  'io.flow.v0.models.product_restriction_result_deleted': (): io.flow.v0.models.ProductRestrictionResultDeleted => ({
@@ -12632,6 +12785,7 @@ const factories = {
12632
12785
  }),
12633
12786
 
12634
12787
  'io.flow.v0.models.product_sellability_result': (): io.flow.v0.models.ProductSellabilityResult => ({
12788
+ id: factories.string(),
12635
12789
  merchant_id: factories.string(),
12636
12790
  product_id: factories.string(),
12637
12791
  restricted_regions: arrayOf(() => factories['io.flow.v0.models.sellability_restricted_region']()),
@@ -12646,6 +12800,8 @@ const factories = {
12646
12800
  event_id: factories.string(),
12647
12801
  timestamp: factories.date_time_iso_8601(),
12648
12802
  organization: factories.string(),
12803
+ merchant: factories.string(),
12804
+ channel_id: factories.string(),
12649
12805
  id: factories.string(),
12650
12806
  }),
12651
12807
 
@@ -12654,6 +12810,8 @@ const factories = {
12654
12810
  event_id: factories.string(),
12655
12811
  timestamp: factories.date_time_iso_8601(),
12656
12812
  organization: factories.string(),
12813
+ merchant: factories.string(),
12814
+ channel_id: factories.string(),
12657
12815
  product_sellability_result: factories['io.flow.v0.models.product_sellability_result'](),
12658
12816
  }),
12659
12817
 
@@ -12883,6 +13041,12 @@ const factories = {
12883
13041
  name: factories.string(),
12884
13042
  }),
12885
13043
 
13044
+ 'io.flow.v0.models.ratecard_data': (): io.flow.v0.models.RatecardData => ({
13045
+ dhlParcelDistributionCenter: factories.string(),
13046
+ glbeRatecardMetadataLaneIdentifier: factories.string(),
13047
+ pickupCenter: factories.string(),
13048
+ }),
13049
+
12886
13050
  'io.flow.v0.models.ratecard_deleted': (): io.flow.v0.models.RatecardDeleted => ({
12887
13051
  discriminator: 'ratecard_deleted',
12888
13052
  event_id: factories.string(),
@@ -12983,7 +13147,7 @@ const factories = {
12983
13147
  glbe_shipping_method_id: factories.string(),
12984
13148
  glbe_proposition_name: factories.string(),
12985
13149
  channel_revenue_share_percentage: factories.decimal(),
12986
- data: objectOf(() => factories.string()),
13150
+ data: factories['io.flow.v0.models.ratecard_data'](),
12987
13151
  }),
12988
13152
 
12989
13153
  'io.flow.v0.models.ratecard_lane': (): io.flow.v0.models.RatecardLane => ({
@@ -13619,12 +13783,14 @@ const factories = {
13619
13783
  'io.flow.v0.models.sellability_needs_action_attributes': (): io.flow.v0.models.SellabilityNeedsActionAttributes => ({
13620
13784
  reason_code: factories.string(),
13621
13785
  category_metafield_handles: arrayOf(() => factories.string()),
13786
+ category_metafield_ids: arrayOf(() => factories.string()),
13622
13787
  require_msds: factories.boolean(),
13623
13788
  }),
13624
13789
 
13625
13790
  'io.flow.v0.models.sellability_reason_with_regions': (): io.flow.v0.models.SellabilityReasonWithRegions => ({
13626
13791
  reason: factories.string(),
13627
13792
  regions: arrayOf(() => factories.string()),
13793
+ review_status: factories.string(),
13628
13794
  }),
13629
13795
 
13630
13796
  'io.flow.v0.models.sellability_region_result': (): io.flow.v0.models.SellabilityRegionResult => ({
@@ -14339,6 +14505,7 @@ const factories = {
14339
14505
  activated_at: factories.date_time_iso_8601(),
14340
14506
  status_updated_at: factories.date_time_iso_8601(),
14341
14507
  shop: factories['io.flow.v0.models.shop'](),
14508
+ settlement_currency: factories.string(),
14342
14509
  last_year_xborder_gmv: factories['io.flow.v0.models.money'](),
14343
14510
  last_month_xborder_gmv: factories['io.flow.v0.models.money'](),
14344
14511
  average_order_value: factories['io.flow.v0.models.money'](),
@@ -14372,6 +14539,7 @@ const factories = {
14372
14539
  ratecard_id: factories.string(),
14373
14540
  rate_card: factories.string(),
14374
14541
  shop: factories['io.flow.v0.models.shop'](),
14542
+ settlement_currency: factories.string(),
14375
14543
  last_year_xborder_gmv: factories['io.flow.v0.models.money'](),
14376
14544
  last_month_xborder_gmv: factories['io.flow.v0.models.money'](),
14377
14545
  average_order_value: factories['io.flow.v0.models.money'](),
@@ -14679,6 +14847,29 @@ const factories = {
14679
14847
  available: arrayOf(() => factories['io.flow.v0.models.surcharge_responsible_party_display']()),
14680
14848
  }),
14681
14849
 
14850
+ 'io.flow.v0.models.tariff_codes': (): io.flow.v0.models.TariffCodes => ({
14851
+ item_number: factories.string(),
14852
+ product_id: factories.string(),
14853
+ hs6_code: factories.string(),
14854
+ codes: arrayOf(() => factories['io.flow.v0.models.harmonization_tariff_code']()),
14855
+ }),
14856
+
14857
+ 'io.flow.v0.models.tariff_codes_deleted': (): io.flow.v0.models.TariffCodesDeleted => ({
14858
+ discriminator: 'tariff_codes_deleted',
14859
+ event_id: factories.string(),
14860
+ timestamp: factories.date_time_iso_8601(),
14861
+ organization: factories.string(),
14862
+ id: factories.string(),
14863
+ }),
14864
+
14865
+ 'io.flow.v0.models.tariff_codes_upserted': (): io.flow.v0.models.TariffCodesUpserted => ({
14866
+ discriminator: 'tariff_codes_upserted',
14867
+ event_id: factories.string(),
14868
+ timestamp: factories.date_time_iso_8601(),
14869
+ organization: factories.string(),
14870
+ tariff_codes: factories['io.flow.v0.models.tariff_codes'](),
14871
+ }),
14872
+
14682
14873
  'io.flow.v0.models.tax': (): io.flow.v0.models.Tax => ({
14683
14874
  name: factories.string(),
14684
14875
  rate: factories.decimal(),
@@ -14832,6 +15023,8 @@ const factories = {
14832
15023
  discriminator: 'test_upserted',
14833
15024
  event_id: factories.string(),
14834
15025
  timestamp: factories.date_time_iso_8601(),
15026
+ organization: factories.string(),
15027
+ channel_id: factories.string(),
14835
15028
  test: factories['io.flow.ben.test.internal.v0.models.test'](),
14836
15029
  }),
14837
15030
 
@@ -15264,6 +15457,22 @@ const factories = {
15264
15457
  description: factories.string(),
15265
15458
  original: factories['io.flow.v0.models.transaction_metadata_original_transaction'](),
15266
15459
  url: factories.string(),
15460
+ recoup: factories.boolean(),
15461
+ }),
15462
+
15463
+ 'io.flow.v0.models.transaction_metadata_merchant_fee': (): io.flow.v0.models.TransactionMetadataMerchantFee => ({
15464
+ discriminator: 'merchant_fee',
15465
+
15466
+ items: arrayOf(
15467
+ () => factories['io.flow.v0.models.transaction_metadata_merchant_fee_item'](),
15468
+ ),
15469
+ }),
15470
+
15471
+ 'io.flow.v0.models.transaction_metadata_merchant_fee_item': (): io.flow.v0.models.TransactionMetadataMerchantFeeItem => ({
15472
+ type: factories.string(),
15473
+ amount: factories.decimal(),
15474
+ local_amount: factories.decimal(),
15475
+ description: factories.string(),
15267
15476
  }),
15268
15477
 
15269
15478
  'io.flow.v0.models.transaction_metadata_original_transaction': (): io.flow.v0.models.TransactionMetadataOriginalTransaction => ({
@@ -15957,6 +16166,8 @@ const factories = {
15957
16166
  const f = faker.helpers.arrayElement([
15958
16167
  () => factories['io.flow.v0.models.test_upserted'](),
15959
16168
  () => factories['io.flow.v0.models.generate_load'](),
16169
+ () => factories['io.flow.v0.models.amrutha_item_upserted'](),
16170
+ () => factories['io.flow.v0.models.amrutha_item_deleted'](),
15960
16171
  () => factories['io.flow.v0.models.transaction_upserted'](),
15961
16172
  () => factories['io.flow.v0.models.organization_transaction_upserted'](),
15962
16173
  () => factories['io.flow.v0.models.organization_transaction_deleted'](),
@@ -16017,6 +16228,8 @@ const factories = {
16017
16228
  () => factories['io.flow.v0.models.order_upserted_v2'](),
16018
16229
  () => factories['io.flow.v0.models.order_identifier_deleted_v2'](),
16019
16230
  () => factories['io.flow.v0.models.order_identifier_upserted_v3'](),
16231
+ () => factories['io.flow.v0.models.order_state_upserted'](),
16232
+ () => factories['io.flow.v0.models.order_state_deleted'](),
16020
16233
  () => factories['io.flow.v0.models.fraud_status_changed'](),
16021
16234
  () => factories['io.flow.v0.models.center_upserted'](),
16022
16235
  () => factories['io.flow.v0.models.center_deleted'](),
@@ -16041,6 +16254,8 @@ const factories = {
16041
16254
  () => factories['io.flow.v0.models.item_origin_deleted'](),
16042
16255
  () => factories['io.flow.v0.models.harmonized_landed_cost_upserted'](),
16043
16256
  () => factories['io.flow.v0.models.fully_harmonized_item_upserted'](),
16257
+ () => factories['io.flow.v0.models.tariff_codes_upserted'](),
16258
+ () => factories['io.flow.v0.models.tariff_codes_deleted'](),
16044
16259
  () => factories['io.flow.v0.models.label_deleted_v2'](),
16045
16260
  () => factories['io.flow.v0.models.label_upserted_v2'](),
16046
16261
  () => factories['io.flow.v0.models.notification_upserted_v2'](),
@@ -16435,6 +16650,16 @@ const factories = {
16435
16650
  return f();
16436
16651
  },
16437
16652
 
16653
+ 'io.flow.v0.unions.order_state_rejection_reason': (): io.flow.v0.unions.OrderStateRejectionReason => {
16654
+ const f = faker.helpers.arrayElement([
16655
+ () => factories['io.flow.v0.models.order_state_rejection_reason_restricted_item'](),
16656
+ () => factories['io.flow.v0.models.order_state_rejection_reason_domestic_order'](),
16657
+ () => factories['io.flow.v0.models.order_state_rejection_reason_items_empty'](),
16658
+ ]);
16659
+
16660
+ return f();
16661
+ },
16662
+
16438
16663
  'io.flow.v0.unions.partner_center_fee': (): io.flow.v0.unions.PartnerCenterFee => {
16439
16664
  const f = faker.helpers.arrayElement([
16440
16665
  () => factories['io.flow.v0.models.commercial_invoice_fee'](),
@@ -16919,6 +17144,7 @@ const factories = {
16919
17144
  () => factories['io.flow.v0.models.transaction_metadata_failed_payout'](),
16920
17145
  () => factories['io.flow.v0.models.transaction_metadata_payment_transaction'](),
16921
17146
  () => factories['io.flow.v0.models.transaction_metadata_tax_duty'](),
17147
+ () => factories['io.flow.v0.models.transaction_metadata_merchant_fee'](),
16922
17148
  ]);
16923
17149
 
16924
17150
  return f();
@@ -17002,6 +17228,8 @@ export const makeAllocationUpsertedV2 = () => factories['io.flow.v0.models.alloc
17002
17228
  export const makeAllocationV2 = () => factories['io.flow.v0.models.allocation_v2']();
17003
17229
  export const makeAmountMargin = () => factories['io.flow.v0.models.amount_margin']();
17004
17230
  export const makeAmountMarginForm = () => factories['io.flow.v0.models.amount_margin_form']();
17231
+ export const makeAmruthaItemDeleted = () => factories['io.flow.v0.models.amrutha_item_deleted']();
17232
+ export const makeAmruthaItemUpserted = () => factories['io.flow.v0.models.amrutha_item_upserted']();
17005
17233
  export const makeAnalyticsExportType = () => factories['io.flow.v0.models.analytics_export_type']();
17006
17234
  export const makeApplePayMerchantValidationPayload = () => factories['io.flow.v0.models.apple_pay_merchant_validation_payload']();
17007
17235
  export const makeApplepaySdkCreateResultActionDetails = () => factories['io.flow.v0.models.applepay_sdk_create_result_action_details']();
@@ -17575,6 +17803,7 @@ export const makeHarmonizationDocument = () => factories['io.flow.v0.models.harm
17575
17803
  export const makeHarmonizationHs10ExportType = () => factories['io.flow.v0.models.harmonization_hs10_export_type']();
17576
17804
  export const makeHarmonizationHs6ExportType = () => factories['io.flow.v0.models.harmonization_hs6_export_type']();
17577
17805
  export const makeHarmonizationOverviewExportType = () => factories['io.flow.v0.models.harmonization_overview_export_type']();
17806
+ export const makeHarmonizationTariffCode = () => factories['io.flow.v0.models.harmonization_tariff_code']();
17578
17807
  export const makeHarmonizationTariffCodesExportType = () => factories['io.flow.v0.models.harmonization_tariff_codes_export_type']();
17579
17808
  export const makeHarmonizedCategoryReference = () => factories['io.flow.v0.models.harmonized_category_reference']();
17580
17809
  export const makeHarmonizedItem = () => factories['io.flow.v0.models.harmonized_item']();
@@ -17891,6 +18120,14 @@ export const makeOrderRulesSummary = () => factories['io.flow.v0.models.order_ru
17891
18120
  export const makeOrderServiceChange = () => factories['io.flow.v0.models.order_service_change']();
17892
18121
  export const makeOrderServiceChangeForm = () => factories['io.flow.v0.models.order_service_change_form']();
17893
18122
  export const makeOrderServiceChangeRequestData = () => factories['io.flow.v0.models.order_service_change_request_data']();
18123
+ export const makeOrderState = () => factories['io.flow.v0.models.order_state']();
18124
+ export const makeOrderStateDeleted = () => factories['io.flow.v0.models.order_state_deleted']();
18125
+ export const makeOrderStateRejectionReason = () => factories['io.flow.v0.unions.order_state_rejection_reason']();
18126
+ export const makeOrderStateRejectionReasonDomesticOrder = () => factories['io.flow.v0.models.order_state_rejection_reason_domestic_order']();
18127
+ export const makeOrderStateRejectionReasonItemsEmpty = () => factories['io.flow.v0.models.order_state_rejection_reason_items_empty']();
18128
+ export const makeOrderStateRejectionReasonRestrictedItem = () => factories['io.flow.v0.models.order_state_rejection_reason_restricted_item']();
18129
+ export const makeOrderStateStatus = () => factories['io.flow.v0.enums.order_state_status']();
18130
+ export const makeOrderStateUpserted = () => factories['io.flow.v0.models.order_state_upserted']();
17894
18131
  export const makeOrderStatus = () => factories['io.flow.v0.enums.order_status']();
17895
18132
  export const makeOrderStorage = () => factories['io.flow.v0.enums.order_storage']();
17896
18133
  export const makeOrderSubmissionForm = () => factories['io.flow.v0.models.order_submission_form']();
@@ -18226,6 +18463,7 @@ export const makeRateUpsertedV3 = () => factories['io.flow.v0.models.rate_upsert
18226
18463
  export const makeRateVersion = () => factories['io.flow.v0.models.rate_version']();
18227
18464
  export const makeRatecard = () => factories['io.flow.v0.models.ratecard']();
18228
18465
  export const makeRatecardCarrierSummary = () => factories['io.flow.v0.models.ratecard_carrier_summary']();
18466
+ export const makeRatecardData = () => factories['io.flow.v0.models.ratecard_data']();
18229
18467
  export const makeRatecardDeleted = () => factories['io.flow.v0.models.ratecard_deleted']();
18230
18468
  export const makeRatecardEstimate = () => factories['io.flow.v0.unions.ratecard_estimate']();
18231
18469
  export const makeRatecardEstimateForm = () => factories['io.flow.v0.models.ratecard_estimate_form']();
@@ -18517,6 +18755,9 @@ export const makeSurchargeResponsibleParty = () => factories['io.flow.v0.enums.s
18517
18755
  export const makeSurchargeResponsiblePartyDisplay = () => factories['io.flow.v0.models.surcharge_responsible_party_display']();
18518
18756
  export const makeSurchargeSetting = () => factories['io.flow.v0.models.surcharge_setting']();
18519
18757
  export const makeSurchargeSettingDisplay = () => factories['io.flow.v0.models.surcharge_setting_display']();
18758
+ export const makeTariffCodes = () => factories['io.flow.v0.models.tariff_codes']();
18759
+ export const makeTariffCodesDeleted = () => factories['io.flow.v0.models.tariff_codes_deleted']();
18760
+ export const makeTariffCodesUpserted = () => factories['io.flow.v0.models.tariff_codes_upserted']();
18520
18761
  export const makeTax = () => factories['io.flow.v0.models.tax']();
18521
18762
  export const makeTaxApplicability = () => factories['io.flow.v0.enums.tax_applicability']();
18522
18763
  export const makeTaxBreakdown = () => factories['io.flow.v0.models.tax_breakdown']();
@@ -18619,6 +18860,8 @@ export const makeTransactionMetadataChannelOrganizationTransaction = () => facto
18619
18860
  export const makeTransactionMetadataFailedPayout = () => factories['io.flow.v0.models.transaction_metadata_failed_payout']();
18620
18861
  export const makeTransactionMetadataFailedPayoutReference = () => factories['io.flow.v0.models.transaction_metadata_failed_payout_reference']();
18621
18862
  export const makeTransactionMetadataManual = () => factories['io.flow.v0.models.transaction_metadata_manual']();
18863
+ export const makeTransactionMetadataMerchantFee = () => factories['io.flow.v0.models.transaction_metadata_merchant_fee']();
18864
+ export const makeTransactionMetadataMerchantFeeItem = () => factories['io.flow.v0.models.transaction_metadata_merchant_fee_item']();
18622
18865
  export const makeTransactionMetadataOriginalTransaction = () => factories['io.flow.v0.models.transaction_metadata_original_transaction']();
18623
18866
  export const makeTransactionMetadataOutboundTransaction = () => factories['io.flow.v0.models.transaction_metadata_outbound_transaction']();
18624
18867
  export const makeTransactionMetadataPaymentTransaction = () => factories['io.flow.v0.models.transaction_metadata_payment_transaction']();