@flowio/api-factories 0.0.103 → 0.0.104
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api.js +224 -59
- package/dist/esm/api.js +185 -28
- package/dist/types/api.d.ts +13 -5
- package/package.json +2 -2
- package/src/api.ts +211 -29
package/src/api.ts
CHANGED
|
@@ -707,6 +707,9 @@ const factories = {
|
|
|
707
707
|
'inch',
|
|
708
708
|
'foot',
|
|
709
709
|
'cubic_inch',
|
|
710
|
+
'cubic_foot',
|
|
711
|
+
'cubic_millimeter',
|
|
712
|
+
'cubic_centimeter',
|
|
710
713
|
'cubic_meter',
|
|
711
714
|
'gram',
|
|
712
715
|
'kilogram',
|
|
@@ -3032,6 +3035,45 @@ const factories = {
|
|
|
3032
3035
|
offset: factories.integer(),
|
|
3033
3036
|
}),
|
|
3034
3037
|
|
|
3038
|
+
'io.flow.sellability.v0.enums.rule_effect_type': (): io.flow.sellability.v0.enums.RuleEffectType => faker.helpers.arrayElement(['market', 'dhl', 'dhl_ecommerce', 'ups']),
|
|
3039
|
+
'io.flow.sellability.v0.enums.sellability_error_code': (): io.flow.sellability.v0.enums.SellabilityErrorCode => faker.helpers.arrayElement(['insufficient_details', 'ineligible_category']),
|
|
3040
|
+
|
|
3041
|
+
'io.flow.sellability.v0.models.product_sellability': (): io.flow.sellability.v0.models.ProductSellability => ({
|
|
3042
|
+
shop_id: factories.string(),
|
|
3043
|
+
product_id: factories.string(),
|
|
3044
|
+
request_id: factories.string(),
|
|
3045
|
+
hs6_code: factories.string(),
|
|
3046
|
+
|
|
3047
|
+
restricted_regions: arrayOf(
|
|
3048
|
+
() => factories['io.flow.sellability.v0.models.sellablility_region_result'](),
|
|
3049
|
+
),
|
|
3050
|
+
}),
|
|
3051
|
+
|
|
3052
|
+
'io.flow.sellability.v0.models.product_sellability_form': (): io.flow.sellability.v0.models.ProductSellabilityForm => ({
|
|
3053
|
+
shop_id: factories.string(),
|
|
3054
|
+
product_id: factories.string(),
|
|
3055
|
+
request_id: factories.string(),
|
|
3056
|
+
name: factories.string(),
|
|
3057
|
+
price: factories['io.flow.sellability.v0.models.product_sellability_price'](),
|
|
3058
|
+
description: factories.string(),
|
|
3059
|
+
taxonomy_category: factories['io.flow.product.v0.models.product_taxonomy_category'](),
|
|
3060
|
+
}),
|
|
3061
|
+
|
|
3062
|
+
'io.flow.sellability.v0.models.product_sellability_price': (): io.flow.sellability.v0.models.ProductSellabilityPrice => ({
|
|
3063
|
+
currency: factories.string(),
|
|
3064
|
+
amount: factories.decimal(),
|
|
3065
|
+
}),
|
|
3066
|
+
|
|
3067
|
+
'io.flow.sellability.v0.models.sellability_error': (): io.flow.sellability.v0.models.SellabilityError => ({
|
|
3068
|
+
code: factories['io.flow.sellability.v0.enums.sellability_error_code'](),
|
|
3069
|
+
messages: arrayOf(() => factories.string()),
|
|
3070
|
+
}),
|
|
3071
|
+
|
|
3072
|
+
'io.flow.sellability.v0.models.sellablility_region_result': (): io.flow.sellability.v0.models.SellablilityRegionResult => ({
|
|
3073
|
+
type: factories['io.flow.sellability.v0.enums.rule_effect_type'](),
|
|
3074
|
+
regions: arrayOf(() => factories.string()),
|
|
3075
|
+
}),
|
|
3076
|
+
|
|
3035
3077
|
'io.flow.shopify.external.v0.enums.cancel_reason': (): io.flow.shopify.external.v0.enums.CancelReason => faker.helpers.arrayElement(['customer', 'fraud', 'inventory', 'declined', 'other']),
|
|
3036
3078
|
'io.flow.shopify.external.v0.enums.discount_status': (): io.flow.shopify.external.v0.enums.DiscountStatus => faker.helpers.arrayElement(['enabled', 'disabled', 'depleted']),
|
|
3037
3079
|
'io.flow.shopify.external.v0.enums.discount_type': (): io.flow.shopify.external.v0.enums.DiscountType => faker.helpers.arrayElement(['fixed_amount', 'percentage', 'shipping']),
|
|
@@ -4355,6 +4397,7 @@ const factories = {
|
|
|
4355
4397
|
'void_invoice',
|
|
4356
4398
|
]),
|
|
4357
4399
|
|
|
4400
|
+
'io.flow.stripe.v0.enums.capability_status': (): io.flow.stripe.v0.enums.CapabilityStatus => faker.helpers.arrayElement(['active', 'disabled', 'inactive', 'pending', 'unrequested']),
|
|
4358
4401
|
'io.flow.stripe.v0.enums.capture_method': (): io.flow.stripe.v0.enums.CaptureMethod => faker.helpers.arrayElement(['automatic', 'manual']),
|
|
4359
4402
|
|
|
4360
4403
|
'io.flow.stripe.v0.enums.card_brand': (): io.flow.stripe.v0.enums.CardBrand => faker.helpers.arrayElement([
|
|
@@ -4385,6 +4428,14 @@ const factories = {
|
|
|
4385
4428
|
'io.flow.stripe.v0.enums.check_outcome': (): io.flow.stripe.v0.enums.CheckOutcome => faker.helpers.arrayElement(['pass', 'fail', 'unavailable', 'unchecked']),
|
|
4386
4429
|
'io.flow.stripe.v0.enums.code_verification_status': (): io.flow.stripe.v0.enums.CodeVerificationStatus => faker.helpers.arrayElement(['pending', 'succeeded', 'failed']),
|
|
4387
4430
|
'io.flow.stripe.v0.enums.confirmation_method': (): io.flow.stripe.v0.enums.ConfirmationMethod => faker.helpers.arrayElement(['automatic', 'manual']),
|
|
4431
|
+
'io.flow.stripe.v0.enums.connect_report_reporting_category': (): io.flow.stripe.v0.enums.ConnectReportReportingCategory => faker.helpers.arrayElement(['charge', 'refund', 'payout_reversal', 'transfer', 'transfer_reversal']),
|
|
4432
|
+
'io.flow.stripe.v0.enums.connect_report_shop_plan': (): io.flow.stripe.v0.enums.ConnectReportShopPlan => faker.helpers.arrayElement(['shopify_plus', 'standard']),
|
|
4433
|
+
|
|
4434
|
+
'io.flow.stripe.v0.enums.connect_report_transfer_type': (): io.flow.stripe.v0.enums.ConnectReportTransferType => faker.helpers.arrayElement([
|
|
4435
|
+
'ManagedMarketsRefundDebit',
|
|
4436
|
+
'ManagedMarketsDutiesAndTaxesAdjustmentDebit',
|
|
4437
|
+
'ManagedMarketsDisputedAmountDebit',
|
|
4438
|
+
]),
|
|
4388
4439
|
|
|
4389
4440
|
'io.flow.stripe.v0.enums.decline_code': (): io.flow.stripe.v0.enums.DeclineCode => faker.helpers.arrayElement([
|
|
4390
4441
|
'approve_with_id',
|
|
@@ -4571,6 +4622,7 @@ const factories = {
|
|
|
4571
4622
|
]),
|
|
4572
4623
|
|
|
4573
4624
|
'io.flow.stripe.v0.enums.event_type': (): io.flow.stripe.v0.enums.EventType => faker.helpers.arrayElement([
|
|
4625
|
+
'capability.updated',
|
|
4574
4626
|
'charge.captured',
|
|
4575
4627
|
'charge.failed',
|
|
4576
4628
|
'charge.pending',
|
|
@@ -4860,6 +4912,17 @@ const factories = {
|
|
|
4860
4912
|
type: factories['io.flow.stripe.v0.enums.apple_pay_type'](),
|
|
4861
4913
|
}),
|
|
4862
4914
|
|
|
4915
|
+
'io.flow.stripe.v0.models.capability': (): io.flow.stripe.v0.models.Capability => ({
|
|
4916
|
+
id: factories.string(),
|
|
4917
|
+
account: factories.string(),
|
|
4918
|
+
requested: factories.boolean(),
|
|
4919
|
+
requirements: factories.object(),
|
|
4920
|
+
status: factories['io.flow.stripe.v0.enums.capability_status'](),
|
|
4921
|
+
object: factories.string(),
|
|
4922
|
+
future_requirements: factories.object(),
|
|
4923
|
+
requested_at: factories.long(),
|
|
4924
|
+
}),
|
|
4925
|
+
|
|
4863
4926
|
'io.flow.stripe.v0.models.card': (): io.flow.stripe.v0.models.Card => ({
|
|
4864
4927
|
id: factories.string(),
|
|
4865
4928
|
object: factories.string(),
|
|
@@ -5003,6 +5066,46 @@ const factories = {
|
|
|
5003
5066
|
status: factories['io.flow.stripe.v0.enums.code_verification_status'](),
|
|
5004
5067
|
}),
|
|
5005
5068
|
|
|
5069
|
+
'io.flow.stripe.v0.models.connect_report_record': (): io.flow.stripe.v0.models.ConnectReportRecord => ({
|
|
5070
|
+
created_utc: factories.date_time_iso_8601(),
|
|
5071
|
+
charge_id: factories.string(),
|
|
5072
|
+
payment_intent_id: factories.string(),
|
|
5073
|
+
gross: factories.decimal(),
|
|
5074
|
+
fee: factories.decimal(),
|
|
5075
|
+
net: factories.decimal(),
|
|
5076
|
+
currency: factories.string(),
|
|
5077
|
+
connected_account: factories.string(),
|
|
5078
|
+
reporting_category: factories['io.flow.stripe.v0.enums.connect_report_reporting_category'](),
|
|
5079
|
+
dispute_reason: factories['io.flow.stripe.v0.enums.dispute_reason'](),
|
|
5080
|
+
available_on_utc: factories.date_time_iso_8601(),
|
|
5081
|
+
automatic_payout_effective_at_utc: factories.date_time_iso_8601(),
|
|
5082
|
+
source_id: factories.string(),
|
|
5083
|
+
customer_facing_amount: factories.decimal(),
|
|
5084
|
+
customer_facing_currency: factories.string(),
|
|
5085
|
+
payment_method_type: factories.string(),
|
|
5086
|
+
card_brand: factories.string(),
|
|
5087
|
+
statement_descriptor: factories.string(),
|
|
5088
|
+
payment_metadata: factories['io.flow.stripe.v0.models.connect_report_record_payment_metadata'](),
|
|
5089
|
+
transfer_metadata: factories.object(),
|
|
5090
|
+
}),
|
|
5091
|
+
|
|
5092
|
+
'io.flow.stripe.v0.models.connect_report_record_payment_metadata': (): io.flow.stripe.v0.models.ConnectReportRecordPaymentMetadata => ({
|
|
5093
|
+
shop_id: factories.integer(),
|
|
5094
|
+
shop_plan: factories['io.flow.stripe.v0.enums.connect_report_shop_plan'](),
|
|
5095
|
+
checkout_id: factories.string(),
|
|
5096
|
+
order_id: factories.integer(),
|
|
5097
|
+
order_transaction_id: factories.integer(),
|
|
5098
|
+
transfer_type: factories['io.flow.stripe.v0.enums.connect_report_transfer_type'](),
|
|
5099
|
+
transfer_exchange_rate: factories.decimal(),
|
|
5100
|
+
charge_total: factories.integer(),
|
|
5101
|
+
charge_currency: factories.string(),
|
|
5102
|
+
charge_exchange_rate: factories.decimal(),
|
|
5103
|
+
duties: factories.integer(),
|
|
5104
|
+
import_taxes: factories.integer(),
|
|
5105
|
+
mor_fee: factories.integer(),
|
|
5106
|
+
fx_fee: factories.integer(),
|
|
5107
|
+
}),
|
|
5108
|
+
|
|
5006
5109
|
'io.flow.stripe.v0.models.customer': (): io.flow.stripe.v0.models.Customer => ({
|
|
5007
5110
|
id: factories.string(),
|
|
5008
5111
|
object: factories.string(),
|
|
@@ -6444,8 +6547,6 @@ const factories = {
|
|
|
6444
6547
|
'io.flow.v0.enums.economic_title_location': (): io.flow.v0.enums.EconomicTitleLocation => faker.helpers.arrayElement(['high_seas', 'origination', 'destination']),
|
|
6445
6548
|
'io.flow.v0.enums.entity_identifier_type': (): io.flow.v0.enums.EntityIdentifierType => faker.helpers.arrayElement(['ioss', 'voec', 'zaz']),
|
|
6446
6549
|
'io.flow.v0.enums.environment': (): io.flow.v0.enums.Environment => faker.helpers.arrayElement(['sandbox', 'production']),
|
|
6447
|
-
'io.flow.v0.enums.estimate_origin': (): io.flow.v0.enums.EstimateOrigin => faker.helpers.arrayElement(['Shopify', 'GlobalE', 'Aftership', 'Carrier']),
|
|
6448
|
-
'io.flow.v0.enums.estimate_type': (): io.flow.v0.enums.EstimateType => faker.helpers.arrayElement(['Estimated', 'Final']),
|
|
6449
6550
|
|
|
6450
6551
|
'io.flow.v0.enums.event_type': (): io.flow.v0.enums.EventType => faker.helpers.arrayElement([
|
|
6451
6552
|
'test_upserted',
|
|
@@ -6566,8 +6667,6 @@ const factories = {
|
|
|
6566
6667
|
'ge_item_inserted',
|
|
6567
6668
|
'ge_item_updated',
|
|
6568
6669
|
'ge_item_deleted',
|
|
6569
|
-
'ge_product_restriction_result_upserted',
|
|
6570
|
-
'ge_product_restriction_result_deleted',
|
|
6571
6670
|
'hs6_code_upserted',
|
|
6572
6671
|
'hs6_code_deleted',
|
|
6573
6672
|
'hs10_code_upserted',
|
|
@@ -6701,6 +6800,9 @@ const factories = {
|
|
|
6701
6800
|
'io.flow.v0.enums.fulfillment_method_type': (): io.flow.v0.enums.FulfillmentMethodType => faker.helpers.arrayElement(['fulfillment_method']),
|
|
6702
6801
|
'io.flow.v0.enums.fulfillment_method_value': (): io.flow.v0.enums.FulfillmentMethodValue => faker.helpers.arrayElement(['digital', 'physical']),
|
|
6703
6802
|
'io.flow.v0.enums.fulfillment_routing': (): io.flow.v0.enums.FulfillmentRouting => faker.helpers.arrayElement(['fulfilled_from_center', 'fulfillment_service']),
|
|
6803
|
+
'io.flow.v0.enums.ge_catalog_item_ingestion_response': (): io.flow.v0.enums.GeCatalogItemIngestionResponse => faker.helpers.arrayElement(['ge_catalog_item_ingestion_success', 'ge_catalog_item_ingestion_failure']),
|
|
6804
|
+
'io.flow.v0.enums.ge_environment': (): io.flow.v0.enums.GeEnvironment => faker.helpers.arrayElement(['production', 'sandbox']),
|
|
6805
|
+
'io.flow.v0.enums.ge_event_type': (): io.flow.v0.enums.GeEventType => faker.helpers.arrayElement(['restriction_result', 'ingestion_result']),
|
|
6704
6806
|
'io.flow.v0.enums.generic_error_code': (): io.flow.v0.enums.GenericErrorCode => faker.helpers.arrayElement(['generic_error', 'client_error', 'server_error']),
|
|
6705
6807
|
'io.flow.v0.enums.goods_supply': (): io.flow.v0.enums.GoodsSupply => faker.helpers.arrayElement(['export', 'intra_community', 'local']),
|
|
6706
6808
|
'io.flow.v0.enums.holiday_calendar': (): io.flow.v0.enums.HolidayCalendar => faker.helpers.arrayElement(['us_bank_holidays', 'jewish_holidays']),
|
|
@@ -6914,7 +7016,7 @@ const factories = {
|
|
|
6914
7016
|
'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']),
|
|
6915
7017
|
'io.flow.v0.enums.order_status': (): io.flow.v0.enums.OrderStatus => faker.helpers.arrayElement(['open', 'submitted']),
|
|
6916
7018
|
'io.flow.v0.enums.order_storage': (): io.flow.v0.enums.OrderStorage => faker.helpers.arrayElement(['do_not_persist', 'persist']),
|
|
6917
|
-
'io.flow.v0.enums.order_type': (): io.flow.v0.enums.OrderType => faker.helpers.arrayElement(['standard', 'replacement']),
|
|
7019
|
+
'io.flow.v0.enums.order_type': (): io.flow.v0.enums.OrderType => faker.helpers.arrayElement(['standard', 'replacement', 'edit']),
|
|
6918
7020
|
'io.flow.v0.enums.organization_payment_method_tag': (): io.flow.v0.enums.OrganizationPaymentMethodTag => faker.helpers.arrayElement(['deny']),
|
|
6919
7021
|
'io.flow.v0.enums.organization_status': (): io.flow.v0.enums.OrganizationStatus => faker.helpers.arrayElement(['active', 'inactive', 'deactivated', 'provisioned']),
|
|
6920
7022
|
'io.flow.v0.enums.organization_type': (): io.flow.v0.enums.OrganizationType => faker.helpers.arrayElement(['standalone', 'channel']),
|
|
@@ -6971,6 +7073,7 @@ const factories = {
|
|
|
6971
7073
|
'payment_checks_declined',
|
|
6972
7074
|
]),
|
|
6973
7075
|
|
|
7076
|
+
'io.flow.v0.enums.payment_fee_type': (): io.flow.v0.enums.PaymentFeeType => faker.helpers.arrayElement(['fx', 'mor']),
|
|
6974
7077
|
'io.flow.v0.enums.payment_method_capability': (): io.flow.v0.enums.PaymentMethodCapability => faker.helpers.arrayElement(['credit', 'debit']),
|
|
6975
7078
|
'io.flow.v0.enums.payment_method_data_option_type': (): io.flow.v0.enums.PaymentMethodDataOptionType => faker.helpers.arrayElement(['ideal_issuer_option']),
|
|
6976
7079
|
'io.flow.v0.enums.payment_method_rule_content_key': (): io.flow.v0.enums.PaymentMethodRuleContentKey => faker.helpers.arrayElement(['description']),
|
|
@@ -7333,7 +7436,6 @@ const factories = {
|
|
|
7333
7436
|
'tax_refund',
|
|
7334
7437
|
'non_l4l_tax_duty_fx',
|
|
7335
7438
|
'ge_revenue_share',
|
|
7336
|
-
'tax_duty_delta',
|
|
7337
7439
|
]),
|
|
7338
7440
|
|
|
7339
7441
|
'io.flow.v0.enums.trueup_source': (): io.flow.v0.enums.TrueupSource => faker.helpers.arrayElement(['flow', 'channel', 'dhl-parcel', 'dhl', 'ups']),
|
|
@@ -7367,6 +7469,9 @@ const factories = {
|
|
|
7367
7469
|
'inch',
|
|
7368
7470
|
'foot',
|
|
7369
7471
|
'cubic_inch',
|
|
7472
|
+
'cubic_foot',
|
|
7473
|
+
'cubic_millimeter',
|
|
7474
|
+
'cubic_centimeter',
|
|
7370
7475
|
'cubic_meter',
|
|
7371
7476
|
'gram',
|
|
7372
7477
|
'kilogram',
|
|
@@ -7376,7 +7481,15 @@ const factories = {
|
|
|
7376
7481
|
]),
|
|
7377
7482
|
|
|
7378
7483
|
'io.flow.v0.enums.unit_of_time': (): io.flow.v0.enums.UnitOfTime => faker.helpers.arrayElement(['year', 'month', 'week', 'day', 'hour', 'minute']),
|
|
7379
|
-
|
|
7484
|
+
|
|
7485
|
+
'io.flow.v0.enums.unit_of_volume': (): io.flow.v0.enums.UnitOfVolume => faker.helpers.arrayElement([
|
|
7486
|
+
'cubic_inch',
|
|
7487
|
+
'cubic_foot',
|
|
7488
|
+
'cubic_millimeter',
|
|
7489
|
+
'cubic_centimeter',
|
|
7490
|
+
'cubic_meter',
|
|
7491
|
+
]),
|
|
7492
|
+
|
|
7380
7493
|
'io.flow.v0.enums.unit_of_weight': (): io.flow.v0.enums.UnitOfWeight => faker.helpers.arrayElement(['gram', 'kilogram', 'ounce', 'pound']),
|
|
7381
7494
|
'io.flow.v0.enums.update_policy': (): io.flow.v0.enums.UpdatePolicy => faker.helpers.arrayElement(['auto', 'queue', 'discard']),
|
|
7382
7495
|
'io.flow.v0.enums.user_status': (): io.flow.v0.enums.UserStatus => faker.helpers.arrayElement(['pending', 'active', 'inactive']),
|
|
@@ -8378,6 +8491,7 @@ const factories = {
|
|
|
8378
8491
|
attributes: objectOf(() => factories.string()),
|
|
8379
8492
|
status: factories['io.flow.v0.enums.capture_status'](),
|
|
8380
8493
|
base: factories['io.flow.v0.models.money'](),
|
|
8494
|
+
fees: arrayOf(() => factories['io.flow.v0.models.payment_fee']()),
|
|
8381
8495
|
}),
|
|
8382
8496
|
|
|
8383
8497
|
'io.flow.v0.models.capture_deleted': (): io.flow.v0.models.CaptureDeleted => ({
|
|
@@ -10135,6 +10249,7 @@ const factories = {
|
|
|
10135
10249
|
'io.flow.v0.models.duties_taxes_paid_surcharge_service_fee': (): io.flow.v0.models.DutiesTaxesPaidSurchargeServiceFee => ({
|
|
10136
10250
|
discriminator: 'duties_taxes_paid_surcharge_service_fee',
|
|
10137
10251
|
amount: factories['io.flow.v0.models.money'](),
|
|
10252
|
+
destination_countries: arrayOf(() => factories.string()),
|
|
10138
10253
|
starts_at: factories.date_time_iso_8601(),
|
|
10139
10254
|
ends_at: factories.date_time_iso_8601(),
|
|
10140
10255
|
}),
|
|
@@ -10294,15 +10409,6 @@ const factories = {
|
|
|
10294
10409
|
issuing_country: factories.string(),
|
|
10295
10410
|
}),
|
|
10296
10411
|
|
|
10297
|
-
'io.flow.v0.models.estimate': (): io.flow.v0.models.Estimate => ({
|
|
10298
|
-
id: factories.string(),
|
|
10299
|
-
organization_id: factories.string(),
|
|
10300
|
-
label_id: factories.string(),
|
|
10301
|
-
estimate: factories['io.flow.v0.models.shipping_label_hop_summary'](),
|
|
10302
|
-
type: factories['io.flow.v0.enums.estimate_type'](),
|
|
10303
|
-
origin: factories['io.flow.v0.enums.estimate_origin'](),
|
|
10304
|
-
}),
|
|
10305
|
-
|
|
10306
10412
|
'io.flow.v0.models.estimated_dimensions': (): io.flow.v0.models.EstimatedDimensions => ({
|
|
10307
10413
|
depth: factories['io.flow.v0.models.measurement'](),
|
|
10308
10414
|
length: factories['io.flow.v0.models.measurement'](),
|
|
@@ -10696,6 +10802,12 @@ const factories = {
|
|
|
10696
10802
|
'export': factories['io.flow.v0.models.export'](),
|
|
10697
10803
|
}),
|
|
10698
10804
|
|
|
10805
|
+
'io.flow.v0.models.external_card': (): io.flow.v0.models.ExternalCard => ({
|
|
10806
|
+
discriminator: 'external_card',
|
|
10807
|
+
id: factories.string(),
|
|
10808
|
+
type: factories['io.flow.v0.enums.card_type'](),
|
|
10809
|
+
}),
|
|
10810
|
+
|
|
10699
10811
|
'io.flow.v0.models.fee_deduction': (): io.flow.v0.models.FeeDeduction => ({
|
|
10700
10812
|
type: factories['io.flow.v0.enums.fee_deduction_type'](),
|
|
10701
10813
|
amount: factories.decimal(),
|
|
@@ -10994,6 +11106,45 @@ const factories = {
|
|
|
10994
11106
|
landed_costs: arrayOf(() => factories['io.flow.v0.models.lane_landed_cost']()),
|
|
10995
11107
|
}),
|
|
10996
11108
|
|
|
11109
|
+
'io.flow.v0.models.ge_catalog_item_ingestion_result': (): io.flow.v0.models.GeCatalogItemIngestionResult => ({
|
|
11110
|
+
discriminator: 'ge_catalog_item_ingestion_result',
|
|
11111
|
+
event_id: factories.string(),
|
|
11112
|
+
event_type: factories['io.flow.v0.enums.ge_event_type'](),
|
|
11113
|
+
environment: factories['io.flow.v0.enums.ge_environment'](),
|
|
11114
|
+
timestamp: factories.date_time_iso_8601(),
|
|
11115
|
+
source: factories.string(),
|
|
11116
|
+
response: factories['io.flow.v0.enums.ge_catalog_item_ingestion_response'](),
|
|
11117
|
+
message: factories.string(),
|
|
11118
|
+
}),
|
|
11119
|
+
|
|
11120
|
+
'io.flow.v0.models.ge_catalog_item_input': (): io.flow.v0.models.GeCatalogItemInput => ({
|
|
11121
|
+
event_id: factories.string(),
|
|
11122
|
+
number: factories.string(),
|
|
11123
|
+
organization_id: factories.string(),
|
|
11124
|
+
name: factories.string(),
|
|
11125
|
+
description: factories.string(),
|
|
11126
|
+
price: factories['io.flow.v0.models.ge_input_price'](),
|
|
11127
|
+
attributes: factories['io.flow.v0.models.ge_input_attributes'](),
|
|
11128
|
+
locale: factories.string(),
|
|
11129
|
+
id: factories.string(),
|
|
11130
|
+
categories: arrayOf(() => factories.string()),
|
|
11131
|
+
created_at: factories.date_time_iso_8601(),
|
|
11132
|
+
updated_at: factories.date_time_iso_8601(),
|
|
11133
|
+
images: arrayOf(() => factories.string()),
|
|
11134
|
+
}),
|
|
11135
|
+
|
|
11136
|
+
'io.flow.v0.models.ge_input_attributes': (): io.flow.v0.models.GeInputAttributes => ({
|
|
11137
|
+
country_of_origin: factories.string(),
|
|
11138
|
+
ge_hs6_code: factories.string(),
|
|
11139
|
+
product_id: factories.string(),
|
|
11140
|
+
}),
|
|
11141
|
+
|
|
11142
|
+
'io.flow.v0.models.ge_input_price': (): io.flow.v0.models.GeInputPrice => ({
|
|
11143
|
+
amount: factories.double(),
|
|
11144
|
+
currency: factories.string(),
|
|
11145
|
+
label: factories.string(),
|
|
11146
|
+
}),
|
|
11147
|
+
|
|
10997
11148
|
'io.flow.v0.models.ge_item_deleted': (): io.flow.v0.models.GeItemDeleted => ({
|
|
10998
11149
|
discriminator: 'ge_item_deleted',
|
|
10999
11150
|
event_id: factories.string(),
|
|
@@ -11018,19 +11169,23 @@ const factories = {
|
|
|
11018
11169
|
item: factories['io.flow.v0.models.item'](),
|
|
11019
11170
|
}),
|
|
11020
11171
|
|
|
11021
|
-
'io.flow.v0.models.
|
|
11022
|
-
discriminator: '
|
|
11172
|
+
'io.flow.v0.models.ge_product_restriction_result_delete': (): io.flow.v0.models.GeProductRestrictionResultDelete => ({
|
|
11173
|
+
discriminator: 'ge_product_restriction_result_delete',
|
|
11174
|
+
organization: factories.string(),
|
|
11023
11175
|
event_id: factories.string(),
|
|
11176
|
+
event_type: factories['io.flow.v0.enums.ge_event_type'](),
|
|
11177
|
+
environment: factories['io.flow.v0.enums.ge_environment'](),
|
|
11024
11178
|
timestamp: factories.date_time_iso_8601(),
|
|
11025
|
-
organization: factories.string(),
|
|
11026
11179
|
id: factories.string(),
|
|
11027
11180
|
}),
|
|
11028
11181
|
|
|
11029
|
-
'io.flow.v0.models.
|
|
11030
|
-
discriminator: '
|
|
11182
|
+
'io.flow.v0.models.ge_product_restriction_result_upsert': (): io.flow.v0.models.GeProductRestrictionResultUpsert => ({
|
|
11183
|
+
discriminator: 'ge_product_restriction_result_upsert',
|
|
11184
|
+
organization: factories.string(),
|
|
11031
11185
|
event_id: factories.string(),
|
|
11186
|
+
event_type: factories['io.flow.v0.enums.ge_event_type'](),
|
|
11187
|
+
environment: factories['io.flow.v0.enums.ge_environment'](),
|
|
11032
11188
|
timestamp: factories.date_time_iso_8601(),
|
|
11033
|
-
organization: factories.string(),
|
|
11034
11189
|
ge_product_restriction_result: factories['io.flow.v0.models.product_restriction_result'](),
|
|
11035
11190
|
}),
|
|
11036
11191
|
|
|
@@ -13743,6 +13898,12 @@ const factories = {
|
|
|
13743
13898
|
failure_message: factories.string(),
|
|
13744
13899
|
}),
|
|
13745
13900
|
|
|
13901
|
+
'io.flow.v0.models.payment_fee': (): io.flow.v0.models.PaymentFee => ({
|
|
13902
|
+
type: factories['io.flow.v0.enums.payment_fee_type'](),
|
|
13903
|
+
money: factories['io.flow.v0.models.money'](),
|
|
13904
|
+
base: factories['io.flow.v0.models.money'](),
|
|
13905
|
+
}),
|
|
13906
|
+
|
|
13746
13907
|
'io.flow.v0.models.payment_information': (): io.flow.v0.models.PaymentInformation => ({
|
|
13747
13908
|
amount_refundable: factories.decimal(),
|
|
13748
13909
|
amount_refunded: factories.decimal(),
|
|
@@ -14750,6 +14911,10 @@ const factories = {
|
|
|
14750
14911
|
updated_by: factories.string(),
|
|
14751
14912
|
product_restriction_id: factories.string(),
|
|
14752
14913
|
hs_code: factories.string(),
|
|
14914
|
+
|
|
14915
|
+
restricted_regions_by_type: arrayOf(
|
|
14916
|
+
() => factories['io.flow.sellability.v0.models.sellablility_region_result'](),
|
|
14917
|
+
),
|
|
14753
14918
|
}),
|
|
14754
14919
|
|
|
14755
14920
|
'io.flow.v0.models.product_restriction_result_deleted': (): io.flow.v0.models.ProductRestrictionResultDeleted => ({
|
|
@@ -17882,8 +18047,6 @@ const factories = {
|
|
|
17882
18047
|
() => factories['io.flow.v0.models.ge_item_inserted'](),
|
|
17883
18048
|
() => factories['io.flow.v0.models.ge_item_updated'](),
|
|
17884
18049
|
() => factories['io.flow.v0.models.ge_item_deleted'](),
|
|
17885
|
-
() => factories['io.flow.v0.models.ge_product_restriction_result_upserted'](),
|
|
17886
|
-
() => factories['io.flow.v0.models.ge_product_restriction_result_deleted'](),
|
|
17887
18050
|
() => factories['io.flow.v0.models.hs6_code_upserted'](),
|
|
17888
18051
|
() => factories['io.flow.v0.models.hs6_code_deleted'](),
|
|
17889
18052
|
() => factories['io.flow.v0.models.hs10_code_upserted'](),
|
|
@@ -17981,6 +18144,7 @@ const factories = {
|
|
|
17981
18144
|
() => factories['io.flow.v0.models.card'](),
|
|
17982
18145
|
() => factories['io.flow.v0.models.card_reference'](),
|
|
17983
18146
|
() => factories['io.flow.v0.models.card_summary'](),
|
|
18147
|
+
() => factories['io.flow.v0.models.external_card'](),
|
|
17984
18148
|
]);
|
|
17985
18149
|
|
|
17986
18150
|
return f();
|
|
@@ -18118,6 +18282,16 @@ const factories = {
|
|
|
18118
18282
|
return f();
|
|
18119
18283
|
},
|
|
18120
18284
|
|
|
18285
|
+
'io.flow.v0.unions.ge_restriction_event': (): io.flow.v0.unions.GeRestrictionEvent => {
|
|
18286
|
+
const f = faker.helpers.arrayElement([
|
|
18287
|
+
() => factories['io.flow.v0.models.ge_product_restriction_result_upsert'](),
|
|
18288
|
+
() => factories['io.flow.v0.models.ge_product_restriction_result_delete'](),
|
|
18289
|
+
() => factories['io.flow.v0.models.ge_catalog_item_ingestion_result'](),
|
|
18290
|
+
]);
|
|
18291
|
+
|
|
18292
|
+
return f();
|
|
18293
|
+
},
|
|
18294
|
+
|
|
18121
18295
|
'io.flow.v0.unions.inline_action_configuration': (): io.flow.v0.unions.InlineActionConfiguration => {
|
|
18122
18296
|
const f = faker.helpers.arrayElement(
|
|
18123
18297
|
[() => factories['io.flow.v0.models.browser_inline_action_configuration']()],
|
|
@@ -19215,9 +19389,6 @@ export const makeEntity = () => factories['io.flow.v0.unions.entity']();
|
|
|
19215
19389
|
export const makeEntityIdentifier = () => factories['io.flow.v0.models.entity_identifier']();
|
|
19216
19390
|
export const makeEntityIdentifierType = () => factories['io.flow.v0.enums.entity_identifier_type']();
|
|
19217
19391
|
export const makeEnvironment = () => factories['io.flow.v0.enums.environment']();
|
|
19218
|
-
export const makeEstimate = () => factories['io.flow.v0.models.estimate']();
|
|
19219
|
-
export const makeEstimateOrigin = () => factories['io.flow.v0.enums.estimate_origin']();
|
|
19220
|
-
export const makeEstimateType = () => factories['io.flow.v0.enums.estimate_type']();
|
|
19221
19392
|
export const makeEstimatedDimensions = () => factories['io.flow.v0.models.estimated_dimensions']();
|
|
19222
19393
|
export const makeEstimatedWindow = () => factories['io.flow.v0.models.estimated_window']();
|
|
19223
19394
|
export const makeEvent = () => factories['io.flow.v0.unions.event']();
|
|
@@ -19296,6 +19467,7 @@ export const makeExportStatus = () => factories['io.flow.v0.enums.export_status'
|
|
|
19296
19467
|
export const makeExportType = () => factories['io.flow.v0.unions.export_type']();
|
|
19297
19468
|
export const makeExportVersion = () => factories['io.flow.v0.models.export_version']();
|
|
19298
19469
|
export const makeExporterOfRecord = () => factories['io.flow.v0.enums.exporter_of_record']();
|
|
19470
|
+
export const makeExternalCard = () => factories['io.flow.v0.models.external_card']();
|
|
19299
19471
|
export const makeFeeDeduction = () => factories['io.flow.v0.models.fee_deduction']();
|
|
19300
19472
|
export const makeFeeDeductionType = () => factories['io.flow.v0.enums.fee_deduction_type']();
|
|
19301
19473
|
export const makeFeeWeight = () => factories['io.flow.v0.models.fee_weight']();
|
|
@@ -19361,11 +19533,19 @@ export const makeFulfillmentRouting = () => factories['io.flow.v0.enums.fulfillm
|
|
|
19361
19533
|
export const makeFullyHarmonizedItemUpserted = () => factories['io.flow.v0.models.fully_harmonized_item_upserted']();
|
|
19362
19534
|
export const makeGatewayAuthenticationData = () => factories['io.flow.v0.unions.gateway_authentication_data']();
|
|
19363
19535
|
export const makeGatewayAuthenticationDataForm = () => factories['io.flow.v0.unions.gateway_authentication_data_form']();
|
|
19536
|
+
export const makeGeCatalogItemIngestionResponse = () => factories['io.flow.v0.enums.ge_catalog_item_ingestion_response']();
|
|
19537
|
+
export const makeGeCatalogItemIngestionResult = () => factories['io.flow.v0.models.ge_catalog_item_ingestion_result']();
|
|
19538
|
+
export const makeGeCatalogItemInput = () => factories['io.flow.v0.models.ge_catalog_item_input']();
|
|
19539
|
+
export const makeGeEnvironment = () => factories['io.flow.v0.enums.ge_environment']();
|
|
19540
|
+
export const makeGeEventType = () => factories['io.flow.v0.enums.ge_event_type']();
|
|
19541
|
+
export const makeGeInputAttributes = () => factories['io.flow.v0.models.ge_input_attributes']();
|
|
19542
|
+
export const makeGeInputPrice = () => factories['io.flow.v0.models.ge_input_price']();
|
|
19364
19543
|
export const makeGeItemDeleted = () => factories['io.flow.v0.models.ge_item_deleted']();
|
|
19365
19544
|
export const makeGeItemInserted = () => factories['io.flow.v0.models.ge_item_inserted']();
|
|
19366
19545
|
export const makeGeItemUpdated = () => factories['io.flow.v0.models.ge_item_updated']();
|
|
19367
|
-
export const
|
|
19368
|
-
export const
|
|
19546
|
+
export const makeGeProductRestrictionResultDelete = () => factories['io.flow.v0.models.ge_product_restriction_result_delete']();
|
|
19547
|
+
export const makeGeProductRestrictionResultUpsert = () => factories['io.flow.v0.models.ge_product_restriction_result_upsert']();
|
|
19548
|
+
export const makeGeRestrictionEvent = () => factories['io.flow.v0.unions.ge_restriction_event']();
|
|
19369
19549
|
export const makeGenerateLoad = () => factories['io.flow.v0.models.generate_load']();
|
|
19370
19550
|
export const makeGenericError = () => factories['io.flow.v0.models.generic_error']();
|
|
19371
19551
|
export const makeGenericErrorCode = () => factories['io.flow.v0.enums.generic_error_code']();
|
|
@@ -19804,6 +19984,8 @@ export const makePaymentError = () => factories['io.flow.v0.models.payment_error
|
|
|
19804
19984
|
export const makePaymentErrorCode = () => factories['io.flow.v0.enums.payment_error_code']();
|
|
19805
19985
|
export const makePaymentFailure = () => factories['io.flow.v0.models.payment_failure']();
|
|
19806
19986
|
export const makePaymentFailureCode = () => factories['io.flow.v0.enums.payment_failure_code']();
|
|
19987
|
+
export const makePaymentFee = () => factories['io.flow.v0.models.payment_fee']();
|
|
19988
|
+
export const makePaymentFeeType = () => factories['io.flow.v0.enums.payment_fee_type']();
|
|
19807
19989
|
export const makePaymentForm = () => factories['io.flow.v0.unions.payment_form']();
|
|
19808
19990
|
export const makePaymentInformation = () => factories['io.flow.v0.models.payment_information']();
|
|
19809
19991
|
export const makePaymentMethod = () => factories['io.flow.v0.models.payment_method']();
|