@flowio/api-factories 0.0.118 → 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']),
@@ -4925,7 +5000,7 @@ const factories = {
4925
5000
  'payment_checks_declined',
4926
5001
  ]),
4927
5002
 
4928
- 'io.flow.v0.enums.payment_fee_type': (): io.flow.v0.enums.PaymentFeeType => faker.helpers.arrayElement(['fx', 'mor', 'sp']),
5003
+ 'io.flow.v0.enums.payment_fee_type': (): io.flow.v0.enums.PaymentFeeType => faker.helpers.arrayElement(['fx', 'mor', 'sp', 'mor_tax']),
4929
5004
  'io.flow.v0.enums.payment_method_capability': (): io.flow.v0.enums.PaymentMethodCapability => faker.helpers.arrayElement(['credit', 'debit']),
4930
5005
  'io.flow.v0.enums.payment_method_data_option_type': (): io.flow.v0.enums.PaymentMethodDataOptionType => faker.helpers.arrayElement(['ideal_issuer_option']),
4931
5006
  'io.flow.v0.enums.payment_method_rule_content_key': (): io.flow.v0.enums.PaymentMethodRuleContentKey => faker.helpers.arrayElement(['description']),
@@ -5031,6 +5106,7 @@ const factories = {
5031
5106
  'io.flow.v0.enums.price_detail_key': (): io.flow.v0.enums.PriceDetailKey => faker.helpers.arrayElement(['item_price', 'margins', 'vat', 'duty', 'rounding', 'adjustment']),
5032
5107
  'io.flow.v0.enums.price_facet_boundary': (): io.flow.v0.enums.PriceFacetBoundary => faker.helpers.arrayElement(['min', 'max']),
5033
5108
  'io.flow.v0.enums.pricing_levy_setting': (): io.flow.v0.enums.PricingLevySetting => faker.helpers.arrayElement(['included', 'displayed', 'ignored']),
5109
+ 'io.flow.v0.enums.pricing_type': (): io.flow.v0.enums.PricingType => faker.helpers.arrayElement(['inclusive_pricing']),
5034
5110
  'io.flow.v0.enums.promotion_trigger_type': (): io.flow.v0.enums.PromotionTriggerType => faker.helpers.arrayElement(['automatic', 'order_subtotal']),
5035
5111
 
5036
5112
  'io.flow.v0.enums.province_type': (): io.flow.v0.enums.ProvinceType => faker.helpers.arrayElement([
@@ -5132,7 +5208,16 @@ const factories = {
5132
5208
  ]),
5133
5209
 
5134
5210
  'io.flow.v0.enums.sellability_request_status': (): io.flow.v0.enums.SellabilityRequestStatus => faker.helpers.arrayElement(['commit']),
5135
- '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
+
5136
5221
  'io.flow.v0.enums.sellability_result_status': (): io.flow.v0.enums.SellabilityResultStatus => faker.helpers.arrayElement(['in_review', 'succeeded', 'failed']),
5137
5222
  'io.flow.v0.enums.sellability_screening_mode': (): io.flow.v0.enums.SellabilityScreeningMode => faker.helpers.arrayElement(['pre_onboarding', 'default_on', 'active']),
5138
5223
  'io.flow.v0.enums.shipment_integration_type': (): io.flow.v0.enums.ShipmentIntegrationType => faker.helpers.arrayElement(['direct', 'information', 'preadvice']),
@@ -5247,6 +5332,7 @@ const factories = {
5247
5332
  'wyol_shipment_above_de_min',
5248
5333
  'full_refund_without_shipment',
5249
5334
  'unfulfilled_order_above_de_min',
5335
+ 'order_cancellation_without_capture',
5250
5336
  ]),
5251
5337
 
5252
5338
  'io.flow.v0.enums.tax_jurisdiction_type': (): io.flow.v0.enums.TaxJurisdictionType => faker.helpers.arrayElement(['country', 'province']),
@@ -5317,6 +5403,7 @@ const factories = {
5317
5403
  'merchant_fee',
5318
5404
  'b2b_tax',
5319
5405
  'b2b_tax_refund',
5406
+ 'b2b_fee_mor_tax',
5320
5407
  ]),
5321
5408
 
5322
5409
  'io.flow.v0.enums.transfer_status': (): io.flow.v0.enums.TransferStatus => faker.helpers.arrayElement(['succeeded', 'canceled']),
@@ -5837,6 +5924,20 @@ const factories = {
5837
5924
  margin: factories['io.flow.v0.models.money'](),
5838
5925
  }),
5839
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
+
5840
5941
  'io.flow.v0.models.analytics_export_type': (): io.flow.v0.models.AnalyticsExportType => ({
5841
5942
  discriminator: 'analytics_export_type',
5842
5943
  from: factories.date_time_iso_8601(),
@@ -6139,6 +6240,7 @@ const factories = {
6139
6240
  b2b_invoice_type: factories['io.flow.v0.enums.b2b_invoice_type'](),
6140
6241
  center: factories['io.flow.v0.models.consumer_invoice_center_reference'](),
6141
6242
  order: factories['io.flow.v0.models.consumer_invoice_order_summary'](),
6243
+ voids_b2b_invoice: factories.boolean(),
6142
6244
  }),
6143
6245
 
6144
6246
  'io.flow.v0.models.b2b_credit_memo_deleted': (): io.flow.v0.models.B2BCreditMemoDeleted => ({
@@ -6235,6 +6337,18 @@ const factories = {
6235
6337
  iban: factories.string(),
6236
6338
  }),
6237
6339
 
6340
+ 'io.flow.v0.models.bank_account_info_kor': (): io.flow.v0.models.BankAccountInfoKor => ({
6341
+ discriminator: 'kor',
6342
+ name: factories.string(),
6343
+ address: factories['io.flow.v0.models.address'](),
6344
+ phone: factories.string(),
6345
+ email: factories.string(),
6346
+ bank_account_number: factories.string(),
6347
+ bank_routing_number: factories.string(),
6348
+ bank_name: factories.string(),
6349
+ bank_address: factories['io.flow.v0.models.address'](),
6350
+ }),
6351
+
6238
6352
  'io.flow.v0.models.bank_account_info_usa': (): io.flow.v0.models.BankAccountInfoUsa => ({
6239
6353
  discriminator: 'usa',
6240
6354
  routing_number: factories.string(),
@@ -7212,7 +7326,6 @@ const factories = {
7212
7326
  beneficiary_details: factories['io.flow.v0.models.merchant_onboarding_beneficiary_details'](),
7213
7327
  other_trade_sector: factories.string(),
7214
7328
  center_contact: factories['io.flow.v0.models.operations_contact'](),
7215
- center_address: factories['io.flow.v0.models.address'](),
7216
7329
  average_order_weight: factories.decimal(),
7217
7330
  average_order_weight_unit: factories['io.flow.v0.enums.unit_of_measurement'](),
7218
7331
  package_dimensions: arrayOf(() => factories['io.flow.v0.models.dimension']()),
@@ -7220,6 +7333,7 @@ const factories = {
7220
7333
  default_country_of_origin: factories.string(),
7221
7334
  rate_card: factories.string(),
7222
7335
  shop: factories['io.flow.v0.models.shop'](),
7336
+ settlement_currency: factories.string(),
7223
7337
  created_at: factories.date_time_iso_8601(),
7224
7338
  last_year_xborder_gmv: factories['io.flow.v0.models.money'](),
7225
7339
  last_month_xborder_gmv: factories['io.flow.v0.models.money'](),
@@ -7240,7 +7354,6 @@ const factories = {
7240
7354
  beneficiary_details: factories['io.flow.v0.models.merchant_onboarding_beneficiary_details'](),
7241
7355
  other_trade_sector: factories.string(),
7242
7356
  center_contact: factories['io.flow.v0.models.operations_contact'](),
7243
- center_address: factories['io.flow.v0.models.address'](),
7244
7357
  average_order_weight: factories.decimal(),
7245
7358
  average_order_weight_unit: factories['io.flow.v0.enums.unit_of_measurement'](),
7246
7359
  package_dimensions: arrayOf(() => factories['io.flow.v0.models.dimension']()),
@@ -7249,6 +7362,7 @@ const factories = {
7249
7362
  monthly_average_number_transactions: factories.long(),
7250
7363
  default_country_of_origin: factories.string(),
7251
7364
  shop: factories['io.flow.v0.models.shop'](),
7365
+ settlement_currency: factories.string(),
7252
7366
  rate_card: factories.string(),
7253
7367
  last_year_xborder_gmv: factories['io.flow.v0.models.money'](),
7254
7368
  last_month_xborder_gmv: factories['io.flow.v0.models.money'](),
@@ -9086,6 +9200,11 @@ const factories = {
9086
9200
  sort: factories.string(),
9087
9201
  }),
9088
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
+
9089
9208
  'io.flow.v0.models.harmonization_tariff_codes_export_type': (): io.flow.v0.models.HarmonizationTariffCodesExportType => ({
9090
9209
  discriminator: 'harmonization_tariff_codes_export_type',
9091
9210
  sort: factories.string(),
@@ -10472,6 +10591,7 @@ const factories = {
10472
10591
  company: factories.string(),
10473
10592
  email: factories.string(),
10474
10593
  phone: factories.string(),
10594
+ address: factories['io.flow.v0.models.address'](),
10475
10595
  }),
10476
10596
 
10477
10597
  'io.flow.v0.models.option_weight_estimates': (): io.flow.v0.models.OptionWeightEstimates => ({
@@ -10517,6 +10637,7 @@ const factories = {
10517
10637
  payment_source: factories['io.flow.v0.enums.order_payment_source_type'](),
10518
10638
  edits: arrayOf(() => factories['io.flow.v0.models.edit_summary']()),
10519
10639
  rates: arrayOf(() => factories['io.flow.v0.models.order_rate']()),
10640
+ pricing_type: factories['io.flow.v0.enums.pricing_type'](),
10520
10641
  }),
10521
10642
 
10522
10643
  'io.flow.v0.models.order_address': (): io.flow.v0.models.OrderAddress => ({
@@ -10947,6 +11068,48 @@ const factories = {
10947
11068
  filename: factories.string(),
10948
11069
  }),
10949
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
+
10950
11113
  'io.flow.v0.models.order_submission_form': (): io.flow.v0.models.OrderSubmissionForm => ({
10951
11114
  identifiers: arrayOf(() => factories['io.flow.v0.models.order_submission_identifier_form']()),
10952
11115
  }),
@@ -12578,6 +12741,10 @@ const factories = {
12578
12741
  hs_code: factories.string(),
12579
12742
  restricted_regions_by_type: arrayOf(() => factories['io.flow.v0.models.sellability_region_result']()),
12580
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(),
12581
12748
  }),
12582
12749
 
12583
12750
  'io.flow.v0.models.product_restriction_result_deleted': (): io.flow.v0.models.ProductRestrictionResultDeleted => ({
@@ -12618,9 +12785,11 @@ const factories = {
12618
12785
  }),
12619
12786
 
12620
12787
  'io.flow.v0.models.product_sellability_result': (): io.flow.v0.models.ProductSellabilityResult => ({
12788
+ id: factories.string(),
12621
12789
  merchant_id: factories.string(),
12622
12790
  product_id: factories.string(),
12623
12791
  restricted_regions: arrayOf(() => factories['io.flow.v0.models.sellability_restricted_region']()),
12792
+ restricted_reasons: arrayOf(() => factories['io.flow.v0.models.sellability_restricted_reason']()),
12624
12793
  needs_action_attributes: arrayOf(() => factories['io.flow.v0.models.sellability_needs_action_attributes']()),
12625
12794
  request_id: factories.string(),
12626
12795
  hs6_code: factories.string(),
@@ -12631,6 +12800,8 @@ const factories = {
12631
12800
  event_id: factories.string(),
12632
12801
  timestamp: factories.date_time_iso_8601(),
12633
12802
  organization: factories.string(),
12803
+ merchant: factories.string(),
12804
+ channel_id: factories.string(),
12634
12805
  id: factories.string(),
12635
12806
  }),
12636
12807
 
@@ -12639,6 +12810,8 @@ const factories = {
12639
12810
  event_id: factories.string(),
12640
12811
  timestamp: factories.date_time_iso_8601(),
12641
12812
  organization: factories.string(),
12813
+ merchant: factories.string(),
12814
+ channel_id: factories.string(),
12642
12815
  product_sellability_result: factories['io.flow.v0.models.product_sellability_result'](),
12643
12816
  }),
12644
12817
 
@@ -12868,6 +13041,12 @@ const factories = {
12868
13041
  name: factories.string(),
12869
13042
  }),
12870
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
+
12871
13050
  'io.flow.v0.models.ratecard_deleted': (): io.flow.v0.models.RatecardDeleted => ({
12872
13051
  discriminator: 'ratecard_deleted',
12873
13052
  event_id: factories.string(),
@@ -12968,7 +13147,7 @@ const factories = {
12968
13147
  glbe_shipping_method_id: factories.string(),
12969
13148
  glbe_proposition_name: factories.string(),
12970
13149
  channel_revenue_share_percentage: factories.decimal(),
12971
- data: objectOf(() => factories.string()),
13150
+ data: factories['io.flow.v0.models.ratecard_data'](),
12972
13151
  }),
12973
13152
 
12974
13153
  'io.flow.v0.models.ratecard_lane': (): io.flow.v0.models.RatecardLane => ({
@@ -13604,9 +13783,16 @@ const factories = {
13604
13783
  'io.flow.v0.models.sellability_needs_action_attributes': (): io.flow.v0.models.SellabilityNeedsActionAttributes => ({
13605
13784
  reason_code: factories.string(),
13606
13785
  category_metafield_handles: arrayOf(() => factories.string()),
13786
+ category_metafield_ids: arrayOf(() => factories.string()),
13607
13787
  require_msds: factories.boolean(),
13608
13788
  }),
13609
13789
 
13790
+ 'io.flow.v0.models.sellability_reason_with_regions': (): io.flow.v0.models.SellabilityReasonWithRegions => ({
13791
+ reason: factories.string(),
13792
+ regions: arrayOf(() => factories.string()),
13793
+ review_status: factories.string(),
13794
+ }),
13795
+
13610
13796
  'io.flow.v0.models.sellability_region_result': (): io.flow.v0.models.SellabilityRegionResult => ({
13611
13797
  type: factories['io.flow.v0.enums.rule_effect_type'](),
13612
13798
  regions: arrayOf(() => factories.string()),
@@ -13617,14 +13803,19 @@ const factories = {
13617
13803
  reasons: arrayOf(() => factories.string()),
13618
13804
  }),
13619
13805
 
13806
+ 'io.flow.v0.models.sellability_restricted_reason': (): io.flow.v0.models.SellabilityRestrictedReason => ({
13807
+ type: factories['io.flow.v0.enums.rule_effect_type'](),
13808
+ reasons_with_regions: arrayOf(() => factories['io.flow.v0.models.sellability_reason_with_regions']()),
13809
+ }),
13810
+
13620
13811
  'io.flow.v0.models.sellability_restricted_region': (): io.flow.v0.models.SellabilityRestrictedRegion => ({
13621
13812
  type: factories['io.flow.v0.enums.rule_effect_type'](),
13622
- regions_with_reasons: arrayOf(() => factories['io.flow.v0.models.sellability_region_with_reasons']()),
13813
+ regions: arrayOf(() => factories.string()),
13623
13814
  }),
13624
13815
 
13625
13816
  'io.flow.v0.models.sellability_screening': (): io.flow.v0.models.SellabilityScreening => ({
13626
13817
  discriminator: 'sellability_screening',
13627
- sellability_result: factories['io.flow.v0.models.product_sellability_result'](),
13818
+ product_sellability_result: factories['io.flow.v0.models.product_sellability_result'](),
13628
13819
  request_id: factories.string(),
13629
13820
  status: factories['io.flow.v0.enums.sellability_result_status'](),
13630
13821
  error_code: factories['io.flow.v0.enums.sellability_result_error_code'](),
@@ -14314,6 +14505,7 @@ const factories = {
14314
14505
  activated_at: factories.date_time_iso_8601(),
14315
14506
  status_updated_at: factories.date_time_iso_8601(),
14316
14507
  shop: factories['io.flow.v0.models.shop'](),
14508
+ settlement_currency: factories.string(),
14317
14509
  last_year_xborder_gmv: factories['io.flow.v0.models.money'](),
14318
14510
  last_month_xborder_gmv: factories['io.flow.v0.models.money'](),
14319
14511
  average_order_value: factories['io.flow.v0.models.money'](),
@@ -14347,6 +14539,7 @@ const factories = {
14347
14539
  ratecard_id: factories.string(),
14348
14540
  rate_card: factories.string(),
14349
14541
  shop: factories['io.flow.v0.models.shop'](),
14542
+ settlement_currency: factories.string(),
14350
14543
  last_year_xborder_gmv: factories['io.flow.v0.models.money'](),
14351
14544
  last_month_xborder_gmv: factories['io.flow.v0.models.money'](),
14352
14545
  average_order_value: factories['io.flow.v0.models.money'](),
@@ -14654,6 +14847,29 @@ const factories = {
14654
14847
  available: arrayOf(() => factories['io.flow.v0.models.surcharge_responsible_party_display']()),
14655
14848
  }),
14656
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
+
14657
14873
  'io.flow.v0.models.tax': (): io.flow.v0.models.Tax => ({
14658
14874
  name: factories.string(),
14659
14875
  rate: factories.decimal(),
@@ -14807,6 +15023,8 @@ const factories = {
14807
15023
  discriminator: 'test_upserted',
14808
15024
  event_id: factories.string(),
14809
15025
  timestamp: factories.date_time_iso_8601(),
15026
+ organization: factories.string(),
15027
+ channel_id: factories.string(),
14810
15028
  test: factories['io.flow.ben.test.internal.v0.models.test'](),
14811
15029
  }),
14812
15030
 
@@ -15239,6 +15457,22 @@ const factories = {
15239
15457
  description: factories.string(),
15240
15458
  original: factories['io.flow.v0.models.transaction_metadata_original_transaction'](),
15241
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(),
15242
15476
  }),
15243
15477
 
15244
15478
  'io.flow.v0.models.transaction_metadata_original_transaction': (): io.flow.v0.models.TransactionMetadataOriginalTransaction => ({
@@ -15787,6 +16021,7 @@ const factories = {
15787
16021
  () => factories['io.flow.v0.models.bank_account_info_gbr'](),
15788
16022
  () => factories['io.flow.v0.models.bank_account_info_fra'](),
15789
16023
  () => factories['io.flow.v0.models.bank_account_info_ita'](),
16024
+ () => factories['io.flow.v0.models.bank_account_info_kor'](),
15790
16025
  ]);
15791
16026
 
15792
16027
  return f();
@@ -15931,6 +16166,8 @@ const factories = {
15931
16166
  const f = faker.helpers.arrayElement([
15932
16167
  () => factories['io.flow.v0.models.test_upserted'](),
15933
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'](),
15934
16171
  () => factories['io.flow.v0.models.transaction_upserted'](),
15935
16172
  () => factories['io.flow.v0.models.organization_transaction_upserted'](),
15936
16173
  () => factories['io.flow.v0.models.organization_transaction_deleted'](),
@@ -15991,6 +16228,8 @@ const factories = {
15991
16228
  () => factories['io.flow.v0.models.order_upserted_v2'](),
15992
16229
  () => factories['io.flow.v0.models.order_identifier_deleted_v2'](),
15993
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'](),
15994
16233
  () => factories['io.flow.v0.models.fraud_status_changed'](),
15995
16234
  () => factories['io.flow.v0.models.center_upserted'](),
15996
16235
  () => factories['io.flow.v0.models.center_deleted'](),
@@ -16015,6 +16254,8 @@ const factories = {
16015
16254
  () => factories['io.flow.v0.models.item_origin_deleted'](),
16016
16255
  () => factories['io.flow.v0.models.harmonized_landed_cost_upserted'](),
16017
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'](),
16018
16259
  () => factories['io.flow.v0.models.label_deleted_v2'](),
16019
16260
  () => factories['io.flow.v0.models.label_upserted_v2'](),
16020
16261
  () => factories['io.flow.v0.models.notification_upserted_v2'](),
@@ -16409,6 +16650,16 @@ const factories = {
16409
16650
  return f();
16410
16651
  },
16411
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
+
16412
16663
  'io.flow.v0.unions.partner_center_fee': (): io.flow.v0.unions.PartnerCenterFee => {
16413
16664
  const f = faker.helpers.arrayElement([
16414
16665
  () => factories['io.flow.v0.models.commercial_invoice_fee'](),
@@ -16893,6 +17144,7 @@ const factories = {
16893
17144
  () => factories['io.flow.v0.models.transaction_metadata_failed_payout'](),
16894
17145
  () => factories['io.flow.v0.models.transaction_metadata_payment_transaction'](),
16895
17146
  () => factories['io.flow.v0.models.transaction_metadata_tax_duty'](),
17147
+ () => factories['io.flow.v0.models.transaction_metadata_merchant_fee'](),
16896
17148
  ]);
16897
17149
 
16898
17150
  return f();
@@ -16976,6 +17228,8 @@ export const makeAllocationUpsertedV2 = () => factories['io.flow.v0.models.alloc
16976
17228
  export const makeAllocationV2 = () => factories['io.flow.v0.models.allocation_v2']();
16977
17229
  export const makeAmountMargin = () => factories['io.flow.v0.models.amount_margin']();
16978
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']();
16979
17233
  export const makeAnalyticsExportType = () => factories['io.flow.v0.models.analytics_export_type']();
16980
17234
  export const makeApplePayMerchantValidationPayload = () => factories['io.flow.v0.models.apple_pay_merchant_validation_payload']();
16981
17235
  export const makeApplepaySdkCreateResultActionDetails = () => factories['io.flow.v0.models.applepay_sdk_create_result_action_details']();
@@ -17049,6 +17303,7 @@ export const makeBankAccountInfoCan = () => factories['io.flow.v0.models.bank_ac
17049
17303
  export const makeBankAccountInfoFra = () => factories['io.flow.v0.models.bank_account_info_fra']();
17050
17304
  export const makeBankAccountInfoGbr = () => factories['io.flow.v0.models.bank_account_info_gbr']();
17051
17305
  export const makeBankAccountInfoIta = () => factories['io.flow.v0.models.bank_account_info_ita']();
17306
+ export const makeBankAccountInfoKor = () => factories['io.flow.v0.models.bank_account_info_kor']();
17052
17307
  export const makeBankAccountInfoUsa = () => factories['io.flow.v0.models.bank_account_info_usa']();
17053
17308
  export const makeBankAccountReference = () => factories['io.flow.v0.models.bank_account_reference']();
17054
17309
  export const makeBankAccountSummary = () => factories['io.flow.v0.models.bank_account_summary']();
@@ -17548,6 +17803,7 @@ export const makeHarmonizationDocument = () => factories['io.flow.v0.models.harm
17548
17803
  export const makeHarmonizationHs10ExportType = () => factories['io.flow.v0.models.harmonization_hs10_export_type']();
17549
17804
  export const makeHarmonizationHs6ExportType = () => factories['io.flow.v0.models.harmonization_hs6_export_type']();
17550
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']();
17551
17807
  export const makeHarmonizationTariffCodesExportType = () => factories['io.flow.v0.models.harmonization_tariff_codes_export_type']();
17552
17808
  export const makeHarmonizedCategoryReference = () => factories['io.flow.v0.models.harmonized_category_reference']();
17553
17809
  export const makeHarmonizedItem = () => factories['io.flow.v0.models.harmonized_item']();
@@ -17864,6 +18120,14 @@ export const makeOrderRulesSummary = () => factories['io.flow.v0.models.order_ru
17864
18120
  export const makeOrderServiceChange = () => factories['io.flow.v0.models.order_service_change']();
17865
18121
  export const makeOrderServiceChangeForm = () => factories['io.flow.v0.models.order_service_change_form']();
17866
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']();
17867
18131
  export const makeOrderStatus = () => factories['io.flow.v0.enums.order_status']();
17868
18132
  export const makeOrderStorage = () => factories['io.flow.v0.enums.order_storage']();
17869
18133
  export const makeOrderSubmissionForm = () => factories['io.flow.v0.models.order_submission_form']();
@@ -18145,6 +18409,7 @@ export const makePriceWithBaseAndDetails = () => factories['io.flow.v0.models.pr
18145
18409
  export const makePricing = () => factories['io.flow.v0.models.pricing']();
18146
18410
  export const makePricingLevySetting = () => factories['io.flow.v0.enums.pricing_levy_setting']();
18147
18411
  export const makePricingSettings = () => factories['io.flow.v0.models.pricing_settings']();
18412
+ export const makePricingType = () => factories['io.flow.v0.enums.pricing_type']();
18148
18413
  export const makePricingVersion = () => factories['io.flow.v0.models.pricing_version']();
18149
18414
  export const makeProcessingEstimate = () => factories['io.flow.v0.models.processing_estimate']();
18150
18415
  export const makeProduct = () => factories['io.flow.v0.models.product']();
@@ -18198,6 +18463,7 @@ export const makeRateUpsertedV3 = () => factories['io.flow.v0.models.rate_upsert
18198
18463
  export const makeRateVersion = () => factories['io.flow.v0.models.rate_version']();
18199
18464
  export const makeRatecard = () => factories['io.flow.v0.models.ratecard']();
18200
18465
  export const makeRatecardCarrierSummary = () => factories['io.flow.v0.models.ratecard_carrier_summary']();
18466
+ export const makeRatecardData = () => factories['io.flow.v0.models.ratecard_data']();
18201
18467
  export const makeRatecardDeleted = () => factories['io.flow.v0.models.ratecard_deleted']();
18202
18468
  export const makeRatecardEstimate = () => factories['io.flow.v0.unions.ratecard_estimate']();
18203
18469
  export const makeRatecardEstimateForm = () => factories['io.flow.v0.models.ratecard_estimate_form']();
@@ -18319,11 +18585,13 @@ export const makeSelfBillingAgreement = () => factories['io.flow.v0.models.self_
18319
18585
  export const makeSellabilityError = () => factories['io.flow.v0.models.sellability_error']();
18320
18586
  export const makeSellabilityErrorCode = () => factories['io.flow.v0.enums.sellability_error_code']();
18321
18587
  export const makeSellabilityNeedsActionAttributes = () => factories['io.flow.v0.models.sellability_needs_action_attributes']();
18588
+ export const makeSellabilityReasonWithRegions = () => factories['io.flow.v0.models.sellability_reason_with_regions']();
18322
18589
  export const makeSellabilityRegionResult = () => factories['io.flow.v0.models.sellability_region_result']();
18323
18590
  export const makeSellabilityRegionWithReasons = () => factories['io.flow.v0.models.sellability_region_with_reasons']();
18324
18591
  export const makeSellabilityRequest = () => factories['io.flow.v0.unions.sellability_request']();
18325
18592
  export const makeSellabilityRequestStatus = () => factories['io.flow.v0.enums.sellability_request_status']();
18326
18593
  export const makeSellabilityResponse = () => factories['io.flow.v0.unions.sellability_response']();
18594
+ export const makeSellabilityRestrictedReason = () => factories['io.flow.v0.models.sellability_restricted_reason']();
18327
18595
  export const makeSellabilityRestrictedRegion = () => factories['io.flow.v0.models.sellability_restricted_region']();
18328
18596
  export const makeSellabilityResultErrorCode = () => factories['io.flow.v0.enums.sellability_result_error_code']();
18329
18597
  export const makeSellabilityResultStatus = () => factories['io.flow.v0.enums.sellability_result_status']();
@@ -18487,6 +18755,9 @@ export const makeSurchargeResponsibleParty = () => factories['io.flow.v0.enums.s
18487
18755
  export const makeSurchargeResponsiblePartyDisplay = () => factories['io.flow.v0.models.surcharge_responsible_party_display']();
18488
18756
  export const makeSurchargeSetting = () => factories['io.flow.v0.models.surcharge_setting']();
18489
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']();
18490
18761
  export const makeTax = () => factories['io.flow.v0.models.tax']();
18491
18762
  export const makeTaxApplicability = () => factories['io.flow.v0.enums.tax_applicability']();
18492
18763
  export const makeTaxBreakdown = () => factories['io.flow.v0.models.tax_breakdown']();
@@ -18589,6 +18860,8 @@ export const makeTransactionMetadataChannelOrganizationTransaction = () => facto
18589
18860
  export const makeTransactionMetadataFailedPayout = () => factories['io.flow.v0.models.transaction_metadata_failed_payout']();
18590
18861
  export const makeTransactionMetadataFailedPayoutReference = () => factories['io.flow.v0.models.transaction_metadata_failed_payout_reference']();
18591
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']();
18592
18865
  export const makeTransactionMetadataOriginalTransaction = () => factories['io.flow.v0.models.transaction_metadata_original_transaction']();
18593
18866
  export const makeTransactionMetadataOutboundTransaction = () => factories['io.flow.v0.models.transaction_metadata_outbound_transaction']();
18594
18867
  export const makeTransactionMetadataPaymentTransaction = () => factories['io.flow.v0.models.transaction_metadata_payment_transaction']();