@flowio/api-internal-factories 0.0.122 → 0.0.123
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api-internal.js +255 -79
- package/dist/esm/api-internal.js +217 -50
- package/dist/types/api-internal.d.ts +9 -0
- package/package.json +2 -2
- package/src/api-internal.ts +238 -52
package/src/api-internal.ts
CHANGED
|
@@ -802,6 +802,7 @@ const factories = {
|
|
|
802
802
|
'virtual_card_refund',
|
|
803
803
|
'failed_payout',
|
|
804
804
|
'tax_refund',
|
|
805
|
+
'duty_refund',
|
|
805
806
|
'non_l4l_tax_duty_fx',
|
|
806
807
|
'ge_revenue_share',
|
|
807
808
|
]),
|
|
@@ -6951,10 +6952,20 @@ const factories = {
|
|
|
6951
6952
|
'io.flow.internal.v0.enums.classification_decision': (): io.flow.internal.v0.enums.ClassificationDecision => faker.helpers.arrayElement(['Accept', 'Reject']),
|
|
6952
6953
|
'io.flow.internal.v0.enums.classification_error_code': (): io.flow.internal.v0.enums.ClassificationErrorCode => faker.helpers.arrayElement(['generic_error']),
|
|
6953
6954
|
'io.flow.internal.v0.enums.classification_platform': (): io.flow.internal.v0.enums.ClassificationPlatform => faker.helpers.arrayElement(['GlobalE', 'Flow', 'Borderfree']),
|
|
6954
|
-
'io.flow.internal.v0.enums.classification_type': (): io.flow.internal.v0.enums.ClassificationType => faker.helpers.arrayElement(['None', 'Manual', 'ML']),
|
|
6955
|
+
'io.flow.internal.v0.enums.classification_type': (): io.flow.internal.v0.enums.ClassificationType => faker.helpers.arrayElement(['None', 'Manual', 'ML', 'System']),
|
|
6955
6956
|
'io.flow.internal.v0.enums.clothing_age_classification': (): io.flow.internal.v0.enums.ClothingAgeClassification => faker.helpers.arrayElement(['None', 'AgeKidsGeneral', 'Age0_10', 'Age10_13', 'Age13_14']),
|
|
6956
6957
|
'io.flow.internal.v0.enums.company': (): io.flow.internal.v0.enums.Company => faker.helpers.arrayElement(['globale', 'flow']),
|
|
6957
6958
|
'io.flow.internal.v0.enums.compliance_type': (): io.flow.internal.v0.enums.ComplianceType => faker.helpers.arrayElement(['weee']),
|
|
6959
|
+
|
|
6960
|
+
'io.flow.internal.v0.enums.connect_report_transfer_type': (): io.flow.internal.v0.enums.ConnectReportTransferType => faker.helpers.arrayElement([
|
|
6961
|
+
'ManagedMarketsRefundDebit',
|
|
6962
|
+
'ManagedMarketsDutiesAndTaxesAdjustmentDebit',
|
|
6963
|
+
'ManagedMarketsDisputedAmountDebit',
|
|
6964
|
+
'ManagedMarketsChargeCredit',
|
|
6965
|
+
'ManagedMarketsDisputeWonAmountCredit',
|
|
6966
|
+
'ManagedMarketsDutiesAndTaxesAdjustmentCredit',
|
|
6967
|
+
]),
|
|
6968
|
+
|
|
6958
6969
|
'io.flow.internal.v0.enums.content_element_type': (): io.flow.internal.v0.enums.ContentElementType => faker.helpers.arrayElement(['markdown', 'html', 'plain_text', 'href']),
|
|
6959
6970
|
'io.flow.internal.v0.enums.content_status': (): io.flow.internal.v0.enums.ContentStatus => faker.helpers.arrayElement(['draft', 'live', 'archived']),
|
|
6960
6971
|
'io.flow.internal.v0.enums.content_type': (): io.flow.internal.v0.enums.ContentType => faker.helpers.arrayElement(['text', 'html']),
|
|
@@ -6997,7 +7008,7 @@ const factories = {
|
|
|
6997
7008
|
]),
|
|
6998
7009
|
|
|
6999
7010
|
'io.flow.internal.v0.enums.duty_simple_expression_type': (): io.flow.internal.v0.enums.DutySimpleExpressionType => faker.helpers.arrayElement(['free', 'percent', 'per_uom', 'flat']),
|
|
7000
|
-
'io.flow.internal.v0.enums.duty_transaction_type': (): io.flow.internal.v0.enums.DutyTransactionType => faker.helpers.arrayElement(['adjustment', 'reversal', 'duty']),
|
|
7011
|
+
'io.flow.internal.v0.enums.duty_transaction_type': (): io.flow.internal.v0.enums.DutyTransactionType => faker.helpers.arrayElement(['adjustment', 'reversal', 'duty', 'refund']),
|
|
7001
7012
|
'io.flow.internal.v0.enums.empty_attribute': (): io.flow.internal.v0.enums.EmptyAttribute => faker.helpers.arrayElement(['irrelevant']),
|
|
7002
7013
|
'io.flow.internal.v0.enums.erp_file_type': (): io.flow.internal.v0.enums.ErpFileType => faker.helpers.arrayElement(['vendor']),
|
|
7003
7014
|
|
|
@@ -7229,6 +7240,8 @@ const factories = {
|
|
|
7229
7240
|
'partner_tracking_subscription_deleted',
|
|
7230
7241
|
'spp_tracker_update_request_upserted',
|
|
7231
7242
|
'spp_tracker_update_request_deleted',
|
|
7243
|
+
'partner_request_upserted',
|
|
7244
|
+
'partner_request_deleted',
|
|
7232
7245
|
'internal_authorization_upserted',
|
|
7233
7246
|
'internal_authorization_deleted',
|
|
7234
7247
|
'afterpay_authorization_upserted',
|
|
@@ -7328,6 +7341,8 @@ const factories = {
|
|
|
7328
7341
|
'shopify_order_fulfillments_snapshot_deleted',
|
|
7329
7342
|
'shopify_merchant_plan_upserted',
|
|
7330
7343
|
'shopify_merchant_plan_deleted',
|
|
7344
|
+
'shopify_dispute_upserted',
|
|
7345
|
+
'shopify_dispute_deleted',
|
|
7331
7346
|
'stripe_authorization_deleted',
|
|
7332
7347
|
'stripe_authorization_upserted',
|
|
7333
7348
|
'stripe_reversal_deleted',
|
|
@@ -7475,6 +7490,13 @@ const factories = {
|
|
|
7475
7490
|
'non_fraud_chargeback',
|
|
7476
7491
|
]),
|
|
7477
7492
|
|
|
7493
|
+
'io.flow.internal.v0.enums.merchant_of_record': (): io.flow.internal.v0.enums.MerchantOfRecord => faker.helpers.arrayElement([
|
|
7494
|
+
'global_e_united_states',
|
|
7495
|
+
'global_e_united_kingdom',
|
|
7496
|
+
'global_e_canada',
|
|
7497
|
+
'global_e_netherlands',
|
|
7498
|
+
]),
|
|
7499
|
+
|
|
7478
7500
|
'io.flow.internal.v0.enums.merchant_override_status': (): io.flow.internal.v0.enums.MerchantOverrideStatus => faker.helpers.arrayElement(['in_review', 'accepted', 'rejected']),
|
|
7479
7501
|
'io.flow.internal.v0.enums.mixed_bag_weight': (): io.flow.internal.v0.enums.MixedBagWeight => faker.helpers.arrayElement(['0', '1', '2']),
|
|
7480
7502
|
|
|
@@ -7516,7 +7538,6 @@ const factories = {
|
|
|
7516
7538
|
'dtce',
|
|
7517
7539
|
'restrictions',
|
|
7518
7540
|
'organization_status',
|
|
7519
|
-
'category_constraints',
|
|
7520
7541
|
'miscellaneous',
|
|
7521
7542
|
]),
|
|
7522
7543
|
|
|
@@ -14013,9 +14034,13 @@ const factories = {
|
|
|
14013
14034
|
status: factories['io.flow.internal.v0.enums.merchant_override_status'](),
|
|
14014
14035
|
hs6_code: factories.string(),
|
|
14015
14036
|
merchant_hs6_code: factories.string(),
|
|
14037
|
+
created_at: factories.date_time_iso_8601(),
|
|
14038
|
+
updated_at: factories.date_time_iso_8601(),
|
|
14039
|
+
updated_by_user_id: factories.string(),
|
|
14016
14040
|
}),
|
|
14017
14041
|
|
|
14018
14042
|
'io.flow.internal.v0.models.merchant_override_decision_form': (): io.flow.internal.v0.models.MerchantOverrideDecisionForm => ({
|
|
14043
|
+
id: factories.string(),
|
|
14019
14044
|
status: factories['io.flow.internal.v0.enums.merchant_override_status'](),
|
|
14020
14045
|
}),
|
|
14021
14046
|
|
|
@@ -14815,6 +14840,9 @@ const factories = {
|
|
|
14815
14840
|
last_order_submitted_at: factories.date_time_iso_8601(),
|
|
14816
14841
|
matching_positive_keywords: arrayOf(() => factories.string()),
|
|
14817
14842
|
product_categories: arrayOf(() => factories.string()),
|
|
14843
|
+
matching_negative_keywords: arrayOf(() => factories.string()),
|
|
14844
|
+
decisions_user_ids: arrayOf(() => factories.string()),
|
|
14845
|
+
restriction_rule_ids: arrayOf(() => factories.string()),
|
|
14818
14846
|
}),
|
|
14819
14847
|
|
|
14820
14848
|
'io.flow.internal.v0.models.organization_metadata_deleted': (): io.flow.internal.v0.models.OrganizationMetadataDeleted => ({
|
|
@@ -15236,6 +15264,33 @@ const factories = {
|
|
|
15236
15264
|
partner_organization_settings: factories['io.flow.internal.v0.models.partner_organization_settings'](),
|
|
15237
15265
|
}),
|
|
15238
15266
|
|
|
15267
|
+
'io.flow.internal.v0.models.partner_request': (): io.flow.internal.v0.models.PartnerRequest => ({
|
|
15268
|
+
id: factories.string(),
|
|
15269
|
+
partner_id: factories.string(),
|
|
15270
|
+
organization_id: factories.string(),
|
|
15271
|
+
method: factories.string(),
|
|
15272
|
+
path: factories.string(),
|
|
15273
|
+
request_id: factories.string(),
|
|
15274
|
+
parameters: objectOf(() => factories.string()),
|
|
15275
|
+
request_body: factories.object(),
|
|
15276
|
+
response_body: factories.object(),
|
|
15277
|
+
reference_id: factories.string(),
|
|
15278
|
+
}),
|
|
15279
|
+
|
|
15280
|
+
'io.flow.internal.v0.models.partner_request_deleted': (): io.flow.internal.v0.models.PartnerRequestDeleted => ({
|
|
15281
|
+
discriminator: 'partner_request_deleted',
|
|
15282
|
+
event_id: factories.string(),
|
|
15283
|
+
timestamp: factories.date_time_iso_8601(),
|
|
15284
|
+
id: factories.string(),
|
|
15285
|
+
}),
|
|
15286
|
+
|
|
15287
|
+
'io.flow.internal.v0.models.partner_request_upserted': (): io.flow.internal.v0.models.PartnerRequestUpserted => ({
|
|
15288
|
+
discriminator: 'partner_request_upserted',
|
|
15289
|
+
event_id: factories.string(),
|
|
15290
|
+
timestamp: factories.date_time_iso_8601(),
|
|
15291
|
+
partner_request: factories['io.flow.internal.v0.models.partner_request'](),
|
|
15292
|
+
}),
|
|
15293
|
+
|
|
15239
15294
|
'io.flow.internal.v0.models.partner_tracking_subscription_deleted': (): io.flow.internal.v0.models.PartnerTrackingSubscriptionDeleted => ({
|
|
15240
15295
|
discriminator: 'partner_tracking_subscription_deleted',
|
|
15241
15296
|
event_id: factories.string(),
|
|
@@ -16466,6 +16521,7 @@ const factories = {
|
|
|
16466
16521
|
id: factories.string(),
|
|
16467
16522
|
processor: factories.string(),
|
|
16468
16523
|
report_file_type: factories['io.flow.internal.v0.enums.report_file_type'](),
|
|
16524
|
+
merchant_of_record_identifier: factories['io.flow.internal.v0.enums.merchant_of_record'](),
|
|
16469
16525
|
file_name: factories.string(),
|
|
16470
16526
|
status: factories['io.flow.internal.v0.enums.report_file_status'](),
|
|
16471
16527
|
failure_reason: factories.string(),
|
|
@@ -17449,6 +17505,36 @@ const factories = {
|
|
|
17449
17505
|
code: factories.string(),
|
|
17450
17506
|
}),
|
|
17451
17507
|
|
|
17508
|
+
'io.flow.internal.v0.models.shopify_dispute': (): io.flow.internal.v0.models.ShopifyDispute => ({
|
|
17509
|
+
id: factories.string(),
|
|
17510
|
+
organization_id: factories.string(),
|
|
17511
|
+
authorization_id: factories.string(),
|
|
17512
|
+
amount: factories.decimal(),
|
|
17513
|
+
currency: factories.string(),
|
|
17514
|
+
status: factories.string(),
|
|
17515
|
+
category: factories.string(),
|
|
17516
|
+
attributes: objectOf(() => factories.string()),
|
|
17517
|
+
external_reference_id: factories.string(),
|
|
17518
|
+
issued_at: factories.date_time_iso_8601(),
|
|
17519
|
+
updated_at: factories.date_time_iso_8601(),
|
|
17520
|
+
}),
|
|
17521
|
+
|
|
17522
|
+
'io.flow.internal.v0.models.shopify_dispute_deleted': (): io.flow.internal.v0.models.ShopifyDisputeDeleted => ({
|
|
17523
|
+
discriminator: 'shopify_dispute_deleted',
|
|
17524
|
+
event_id: factories.string(),
|
|
17525
|
+
timestamp: factories.date_time_iso_8601(),
|
|
17526
|
+
organization: factories.string(),
|
|
17527
|
+
id: factories.string(),
|
|
17528
|
+
}),
|
|
17529
|
+
|
|
17530
|
+
'io.flow.internal.v0.models.shopify_dispute_upserted': (): io.flow.internal.v0.models.ShopifyDisputeUpserted => ({
|
|
17531
|
+
discriminator: 'shopify_dispute_upserted',
|
|
17532
|
+
event_id: factories.string(),
|
|
17533
|
+
timestamp: factories.date_time_iso_8601(),
|
|
17534
|
+
organization: factories.string(),
|
|
17535
|
+
dispute: factories['io.flow.internal.v0.models.shopify_dispute'](),
|
|
17536
|
+
}),
|
|
17537
|
+
|
|
17452
17538
|
'io.flow.internal.v0.models.shopify_experience_short_id': (): io.flow.internal.v0.models.ShopifyExperienceShortId => ({
|
|
17453
17539
|
id: factories.string(),
|
|
17454
17540
|
experience: factories['io.flow.experience.v0.models.experience_reference'](),
|
|
@@ -18616,7 +18702,7 @@ const factories = {
|
|
|
18616
18702
|
net: factories.decimal(),
|
|
18617
18703
|
currency: factories.string(),
|
|
18618
18704
|
connected_account: factories.string(),
|
|
18619
|
-
reporting_category: factories['io.flow.stripe.v0.
|
|
18705
|
+
reporting_category: factories['io.flow.stripe.v0.unions.connect_report_reporting_category'](),
|
|
18620
18706
|
dispute_reason: factories.string(),
|
|
18621
18707
|
available_on_utc: factories.date_time_iso_8601(),
|
|
18622
18708
|
automatic_payout_effective_at_utc: factories.date_time_iso_8601(),
|
|
@@ -18626,7 +18712,7 @@ const factories = {
|
|
|
18626
18712
|
payment_method_type: factories.string(),
|
|
18627
18713
|
card_brand: factories.string(),
|
|
18628
18714
|
statement_descriptor: factories.string(),
|
|
18629
|
-
payment_metadata: factories['io.flow.
|
|
18715
|
+
payment_metadata: factories['io.flow.internal.v0.models.stripe_connect_report_record_payment_metadata'](),
|
|
18630
18716
|
transfer_metadata: factories.object(),
|
|
18631
18717
|
}),
|
|
18632
18718
|
|
|
@@ -18637,11 +18723,28 @@ const factories = {
|
|
|
18637
18723
|
id: factories.string(),
|
|
18638
18724
|
}),
|
|
18639
18725
|
|
|
18726
|
+
'io.flow.internal.v0.models.stripe_connect_report_record_payment_metadata': (): io.flow.internal.v0.models.StripeConnectReportRecordPaymentMetadata => ({
|
|
18727
|
+
shop_id: factories.integer(),
|
|
18728
|
+
shop_plan: factories['io.flow.internal.v0.enums.shopify_plan_type'](),
|
|
18729
|
+
checkout_id: factories.string(),
|
|
18730
|
+
order_id: factories.integer(),
|
|
18731
|
+
order_transaction_id: factories.integer(),
|
|
18732
|
+
transfer_type: factories['io.flow.internal.v0.enums.connect_report_transfer_type'](),
|
|
18733
|
+
transfer_exchange_rate: factories.decimal(),
|
|
18734
|
+
charge_total: factories.integer(),
|
|
18735
|
+
charge_currency: factories.string(),
|
|
18736
|
+
charge_exchange_rate: factories.decimal(),
|
|
18737
|
+
duties: factories.integer(),
|
|
18738
|
+
import_taxes: factories.integer(),
|
|
18739
|
+
mor_fee: factories.integer(),
|
|
18740
|
+
fx_fee: factories.integer(),
|
|
18741
|
+
}),
|
|
18742
|
+
|
|
18640
18743
|
'io.flow.internal.v0.models.stripe_connect_report_record_upserted': (): io.flow.internal.v0.models.StripeConnectReportRecordUpserted => ({
|
|
18641
18744
|
discriminator: 'stripe_connect_report_record_upserted',
|
|
18642
18745
|
event_id: factories.string(),
|
|
18643
18746
|
timestamp: factories.date_time_iso_8601(),
|
|
18644
|
-
record: factories['io.flow.
|
|
18747
|
+
record: factories['io.flow.internal.v0.models.stripe_connect_report_record'](),
|
|
18645
18748
|
}),
|
|
18646
18749
|
|
|
18647
18750
|
'io.flow.internal.v0.models.stripe_dispute_deleted': (): io.flow.internal.v0.models.StripeDisputeDeleted => ({
|
|
@@ -20106,6 +20209,8 @@ const factories = {
|
|
|
20106
20209
|
() => factories['io.flow.internal.v0.models.partner_tracking_subscription_deleted'](),
|
|
20107
20210
|
() => factories['io.flow.internal.v0.models.spp_tracker_update_request_upserted'](),
|
|
20108
20211
|
() => factories['io.flow.internal.v0.models.spp_tracker_update_request_deleted'](),
|
|
20212
|
+
() => factories['io.flow.internal.v0.models.partner_request_upserted'](),
|
|
20213
|
+
() => factories['io.flow.internal.v0.models.partner_request_deleted'](),
|
|
20109
20214
|
() => factories['io.flow.internal.v0.models.internal_authorization_upserted'](),
|
|
20110
20215
|
() => factories['io.flow.internal.v0.models.internal_authorization_deleted'](),
|
|
20111
20216
|
() => factories['io.flow.internal.v0.models.afterpay_authorization_upserted'](),
|
|
@@ -20205,6 +20310,8 @@ const factories = {
|
|
|
20205
20310
|
() => factories['io.flow.internal.v0.models.shopify_order_fulfillments_snapshot_deleted'](),
|
|
20206
20311
|
() => factories['io.flow.internal.v0.models.shopify_merchant_plan_upserted'](),
|
|
20207
20312
|
() => factories['io.flow.internal.v0.models.shopify_merchant_plan_deleted'](),
|
|
20313
|
+
() => factories['io.flow.internal.v0.models.shopify_dispute_upserted'](),
|
|
20314
|
+
() => factories['io.flow.internal.v0.models.shopify_dispute_deleted'](),
|
|
20208
20315
|
() => factories['io.flow.internal.v0.models.stripe_authorization_deleted'](),
|
|
20209
20316
|
() => factories['io.flow.internal.v0.models.stripe_authorization_upserted'](),
|
|
20210
20317
|
() => factories['io.flow.internal.v0.models.stripe_reversal_deleted'](),
|
|
@@ -23273,6 +23380,16 @@ const factories = {
|
|
|
23273
23380
|
'io.flow.payment.v0.enums.three_d_secure_code': (): io.flow.payment.v0.enums.ThreeDSecureCode => faker.helpers.arrayElement(['verified', 'not_verified', 'failed']),
|
|
23274
23381
|
'io.flow.payment.v0.enums.threeds_two_challenge_viewport': (): io.flow.payment.v0.enums.ThreedsTwoChallengeViewport => faker.helpers.arrayElement(['xxx_small', 'xx_small', 'x_small', 'small', 'fullscreen']),
|
|
23275
23382
|
'io.flow.payment.v0.enums.token_type': (): io.flow.payment.v0.enums.TokenType => faker.helpers.arrayElement(['permanent', 'one_time']),
|
|
23383
|
+
'io.flow.payment.v0.enums.transfer_status': (): io.flow.payment.v0.enums.TransferStatus => faker.helpers.arrayElement(['succeeded', 'canceled']),
|
|
23384
|
+
|
|
23385
|
+
'io.flow.payment.v0.enums.transfer_type': (): io.flow.payment.v0.enums.TransferType => faker.helpers.arrayElement([
|
|
23386
|
+
'payout_to_merchant',
|
|
23387
|
+
'disputed_amount_to_merchant',
|
|
23388
|
+
'duties_and_taxes_adjustment_to_merchant',
|
|
23389
|
+
'disputed_amount_from_merchant',
|
|
23390
|
+
'duties_and_taxes_adjustment_from_merchant',
|
|
23391
|
+
'refund_from_merchant',
|
|
23392
|
+
]),
|
|
23276
23393
|
|
|
23277
23394
|
'io.flow.payment.v0.models.ach_authorization_form': (): io.flow.payment.v0.models.AchAuthorizationForm => ({
|
|
23278
23395
|
discriminator: 'ach_authorization_form',
|
|
@@ -23485,6 +23602,7 @@ const factories = {
|
|
|
23485
23602
|
}),
|
|
23486
23603
|
|
|
23487
23604
|
'io.flow.payment.v0.models.capture_reference': (): io.flow.payment.v0.models.CaptureReference => ({
|
|
23605
|
+
discriminator: 'capture_reference',
|
|
23488
23606
|
id: factories.string(),
|
|
23489
23607
|
key: factories.string(),
|
|
23490
23608
|
}),
|
|
@@ -23703,6 +23821,17 @@ const factories = {
|
|
|
23703
23821
|
account_holder_name: factories.string(),
|
|
23704
23822
|
}),
|
|
23705
23823
|
|
|
23824
|
+
'io.flow.payment.v0.models.dispute_reference': (): io.flow.payment.v0.models.DisputeReference => ({
|
|
23825
|
+
discriminator: 'dispute_reference',
|
|
23826
|
+
id: factories.string(),
|
|
23827
|
+
key: factories.string(),
|
|
23828
|
+
}),
|
|
23829
|
+
|
|
23830
|
+
'io.flow.payment.v0.models.exchanged_money': (): io.flow.payment.v0.models.ExchangedMoney => ({
|
|
23831
|
+
fx_rate: factories.decimal(),
|
|
23832
|
+
money: factories['io.flow.common.v0.models.money'](),
|
|
23833
|
+
}),
|
|
23834
|
+
|
|
23706
23835
|
'io.flow.payment.v0.models.expiration': (): io.flow.payment.v0.models.Expiration => ({
|
|
23707
23836
|
month: factories.integer(),
|
|
23708
23837
|
year: factories.integer(),
|
|
@@ -24059,6 +24188,7 @@ const factories = {
|
|
|
24059
24188
|
}),
|
|
24060
24189
|
|
|
24061
24190
|
'io.flow.payment.v0.models.refund_reference': (): io.flow.payment.v0.models.RefundReference => ({
|
|
24191
|
+
discriminator: 'refund_reference',
|
|
24062
24192
|
id: factories.string(),
|
|
24063
24193
|
key: factories.string(),
|
|
24064
24194
|
}),
|
|
@@ -24184,6 +24314,17 @@ const factories = {
|
|
|
24184
24314
|
network: factories['io.flow.payment.v0.enums.card_type'](),
|
|
24185
24315
|
}),
|
|
24186
24316
|
|
|
24317
|
+
'io.flow.payment.v0.models.transfer': (): io.flow.payment.v0.models.Transfer => ({
|
|
24318
|
+
id: factories.string(),
|
|
24319
|
+
type: factories['io.flow.payment.v0.enums.transfer_type'](),
|
|
24320
|
+
money: factories['io.flow.common.v0.models.money'](),
|
|
24321
|
+
transferred_money: factories['io.flow.payment.v0.models.exchanged_money'](),
|
|
24322
|
+
status: factories['io.flow.payment.v0.enums.transfer_status'](),
|
|
24323
|
+
created_at: factories.date_time_iso_8601(),
|
|
24324
|
+
reference: factories['io.flow.payment.v0.unions.transfer_reference'](),
|
|
24325
|
+
transferred_at: factories.date_time_iso_8601(),
|
|
24326
|
+
}),
|
|
24327
|
+
|
|
24187
24328
|
'io.flow.payment.v0.models.virtual_card': (): io.flow.payment.v0.models.VirtualCard => ({
|
|
24188
24329
|
id: factories.string(),
|
|
24189
24330
|
key: factories.string(),
|
|
@@ -24452,6 +24593,16 @@ const factories = {
|
|
|
24452
24593
|
return f();
|
|
24453
24594
|
},
|
|
24454
24595
|
|
|
24596
|
+
'io.flow.payment.v0.unions.transfer_reference': (): io.flow.payment.v0.unions.TransferReference => {
|
|
24597
|
+
const f = faker.helpers.arrayElement([
|
|
24598
|
+
() => factories['io.flow.payment.v0.models.capture_reference'](),
|
|
24599
|
+
() => factories['io.flow.payment.v0.models.refund_reference'](),
|
|
24600
|
+
() => factories['io.flow.payment.v0.models.dispute_reference'](),
|
|
24601
|
+
]);
|
|
24602
|
+
|
|
24603
|
+
return f();
|
|
24604
|
+
},
|
|
24605
|
+
|
|
24455
24606
|
'io.flow.permission.v0.enums.authentication_technique': (): io.flow.permission.v0.enums.AuthenticationTechnique => faker.helpers.arrayElement(['anonymous', 'session', 'token', 'partner_token', 'user']),
|
|
24456
24607
|
'io.flow.permission.v0.enums.flow_behavior': (): io.flow.permission.v0.enums.FlowBehavior => faker.helpers.arrayElement(['view_consumer_data']),
|
|
24457
24608
|
|
|
@@ -25140,6 +25291,8 @@ const factories = {
|
|
|
25140
25291
|
discriminator: 'ratecard_estimate_v4',
|
|
25141
25292
|
hops: arrayOf(() => factories['io.flow.ratecard.v0.models.hop_v2']()),
|
|
25142
25293
|
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
25294
|
+
distance_unit_of_measurement: factories['io.flow.common.v0.enums.unit_of_measurement'](),
|
|
25295
|
+
weight_unit_of_measurement: factories['io.flow.common.v0.enums.unit_of_measurement'](),
|
|
25143
25296
|
dimensional_weight: factories['io.flow.common.v0.models.measurement'](),
|
|
25144
25297
|
gravitational_weight: factories['io.flow.common.v0.models.measurement'](),
|
|
25145
25298
|
ratecard_id: factories.string(),
|
|
@@ -28997,13 +29150,59 @@ const factories = {
|
|
|
28997
29150
|
'io.flow.stripe.v0.enums.check_outcome': (): io.flow.stripe.v0.enums.CheckOutcome => faker.helpers.arrayElement(['pass', 'fail', 'unavailable', 'unchecked']),
|
|
28998
29151
|
'io.flow.stripe.v0.enums.code_verification_status': (): io.flow.stripe.v0.enums.CodeVerificationStatus => faker.helpers.arrayElement(['pending', 'succeeded', 'failed']),
|
|
28999
29152
|
'io.flow.stripe.v0.enums.confirmation_method': (): io.flow.stripe.v0.enums.ConfirmationMethod => faker.helpers.arrayElement(['automatic', 'manual']),
|
|
29000
|
-
'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']),
|
|
29001
|
-
'io.flow.stripe.v0.enums.connect_report_shop_plan': (): io.flow.stripe.v0.enums.ConnectReportShopPlan => faker.helpers.arrayElement(['shopify_plus', 'standard']),
|
|
29002
29153
|
|
|
29003
|
-
'io.flow.stripe.v0.enums.
|
|
29004
|
-
'
|
|
29005
|
-
'
|
|
29006
|
-
'
|
|
29154
|
+
'io.flow.stripe.v0.enums.connect_report_balance_reporting_category': (): io.flow.stripe.v0.enums.ConnectReportBalanceReportingCategory => faker.helpers.arrayElement([
|
|
29155
|
+
'anticipation_repayment',
|
|
29156
|
+
'climate_order_purchase',
|
|
29157
|
+
'climate_order_refund',
|
|
29158
|
+
'contribution',
|
|
29159
|
+
'currency_conversion',
|
|
29160
|
+
'fee',
|
|
29161
|
+
'other_adjustment',
|
|
29162
|
+
'payment_network_reserve_hold',
|
|
29163
|
+
'payment_network_reserve_release',
|
|
29164
|
+
'payout',
|
|
29165
|
+
'payout_minimum_balance_hold',
|
|
29166
|
+
'payout_minimum_balance_release',
|
|
29167
|
+
'payout_reversal',
|
|
29168
|
+
'risk_reserved_funds',
|
|
29169
|
+
'stripe_balance_payment_debit',
|
|
29170
|
+
'stripe_balance_payment_debit_reversal',
|
|
29171
|
+
'topup',
|
|
29172
|
+
'topup_reversal',
|
|
29173
|
+
'unreconciled_customer_funds',
|
|
29174
|
+
]),
|
|
29175
|
+
|
|
29176
|
+
'io.flow.stripe.v0.enums.connect_report_connect_reporting_category': (): io.flow.stripe.v0.enums.ConnectReportConnectReportingCategory => faker.helpers.arrayElement([
|
|
29177
|
+
'advance',
|
|
29178
|
+
'advance_funding',
|
|
29179
|
+
'connect_collection_transfer',
|
|
29180
|
+
'connect_reserved_funds',
|
|
29181
|
+
'platform_earning',
|
|
29182
|
+
'platform_earning_refund',
|
|
29183
|
+
'transfer',
|
|
29184
|
+
'transfer_reversal',
|
|
29185
|
+
]),
|
|
29186
|
+
|
|
29187
|
+
'io.flow.stripe.v0.enums.connect_report_issuing_reporting_category': (): io.flow.stripe.v0.enums.ConnectReportIssuingReportingCategory => faker.helpers.arrayElement([
|
|
29188
|
+
'issuing_authorization_hold',
|
|
29189
|
+
'issuing_authorization_release',
|
|
29190
|
+
'issuing_disbursement',
|
|
29191
|
+
'issuing_dispute',
|
|
29192
|
+
'issuing_dispute_fraud_liability_debit',
|
|
29193
|
+
'issuing_dispute_provisional_credit',
|
|
29194
|
+
'issuing_dispute_provisional_credit_reversal',
|
|
29195
|
+
'issuing_transaction',
|
|
29196
|
+
]),
|
|
29197
|
+
|
|
29198
|
+
'io.flow.stripe.v0.enums.connect_report_payment_reporting_category': (): io.flow.stripe.v0.enums.ConnectReportPaymentReportingCategory => faker.helpers.arrayElement([
|
|
29199
|
+
'charge',
|
|
29200
|
+
'charge_failure',
|
|
29201
|
+
'dispute',
|
|
29202
|
+
'dispute_reversal',
|
|
29203
|
+
'partial_capture_reversal',
|
|
29204
|
+
'refund',
|
|
29205
|
+
'refund_failure',
|
|
29007
29206
|
]),
|
|
29008
29207
|
|
|
29009
29208
|
'io.flow.stripe.v0.enums.decline_code': (): io.flow.stripe.v0.enums.DeclineCode => faker.helpers.arrayElement([
|
|
@@ -29635,46 +29834,6 @@ const factories = {
|
|
|
29635
29834
|
status: factories['io.flow.stripe.v0.enums.code_verification_status'](),
|
|
29636
29835
|
}),
|
|
29637
29836
|
|
|
29638
|
-
'io.flow.stripe.v0.models.connect_report_record': (): io.flow.stripe.v0.models.ConnectReportRecord => ({
|
|
29639
|
-
created_utc: factories.date_time_iso_8601(),
|
|
29640
|
-
charge_id: factories.string(),
|
|
29641
|
-
payment_intent_id: factories.string(),
|
|
29642
|
-
gross: factories.decimal(),
|
|
29643
|
-
fee: factories.decimal(),
|
|
29644
|
-
net: factories.decimal(),
|
|
29645
|
-
currency: factories.string(),
|
|
29646
|
-
connected_account: factories.string(),
|
|
29647
|
-
reporting_category: factories['io.flow.stripe.v0.enums.connect_report_reporting_category'](),
|
|
29648
|
-
dispute_reason: factories['io.flow.stripe.v0.enums.dispute_reason'](),
|
|
29649
|
-
available_on_utc: factories.date_time_iso_8601(),
|
|
29650
|
-
automatic_payout_effective_at_utc: factories.date_time_iso_8601(),
|
|
29651
|
-
source_id: factories.string(),
|
|
29652
|
-
customer_facing_amount: factories.decimal(),
|
|
29653
|
-
customer_facing_currency: factories.string(),
|
|
29654
|
-
payment_method_type: factories.string(),
|
|
29655
|
-
card_brand: factories.string(),
|
|
29656
|
-
statement_descriptor: factories.string(),
|
|
29657
|
-
payment_metadata: factories['io.flow.stripe.v0.models.connect_report_record_payment_metadata'](),
|
|
29658
|
-
transfer_metadata: factories.object(),
|
|
29659
|
-
}),
|
|
29660
|
-
|
|
29661
|
-
'io.flow.stripe.v0.models.connect_report_record_payment_metadata': (): io.flow.stripe.v0.models.ConnectReportRecordPaymentMetadata => ({
|
|
29662
|
-
shop_id: factories.integer(),
|
|
29663
|
-
shop_plan: factories['io.flow.stripe.v0.enums.connect_report_shop_plan'](),
|
|
29664
|
-
checkout_id: factories.string(),
|
|
29665
|
-
order_id: factories.integer(),
|
|
29666
|
-
order_transaction_id: factories.integer(),
|
|
29667
|
-
transfer_type: factories['io.flow.stripe.v0.enums.connect_report_transfer_type'](),
|
|
29668
|
-
transfer_exchange_rate: factories.decimal(),
|
|
29669
|
-
charge_total: factories.integer(),
|
|
29670
|
-
charge_currency: factories.string(),
|
|
29671
|
-
charge_exchange_rate: factories.decimal(),
|
|
29672
|
-
duties: factories.integer(),
|
|
29673
|
-
import_taxes: factories.integer(),
|
|
29674
|
-
mor_fee: factories.integer(),
|
|
29675
|
-
fx_fee: factories.integer(),
|
|
29676
|
-
}),
|
|
29677
|
-
|
|
29678
29837
|
'io.flow.stripe.v0.models.customer': (): io.flow.stripe.v0.models.Customer => ({
|
|
29679
29838
|
id: factories.string(),
|
|
29680
29839
|
object: factories.string(),
|
|
@@ -30691,6 +30850,24 @@ const factories = {
|
|
|
30691
30850
|
return f();
|
|
30692
30851
|
},
|
|
30693
30852
|
|
|
30853
|
+
'io.flow.stripe.v0.unions.connect_report_reporting_category': (): io.flow.stripe.v0.unions.ConnectReportReportingCategory => {
|
|
30854
|
+
const f = faker.helpers.arrayElement([() => ({
|
|
30855
|
+
discriminator: 'connect_report_payment_reporting_category' as const,
|
|
30856
|
+
value: factories['io.flow.stripe.v0.enums.connect_report_payment_reporting_category'](),
|
|
30857
|
+
}), () => ({
|
|
30858
|
+
discriminator: 'connect_report_balance_reporting_category' as const,
|
|
30859
|
+
value: factories['io.flow.stripe.v0.enums.connect_report_balance_reporting_category'](),
|
|
30860
|
+
}), () => ({
|
|
30861
|
+
discriminator: 'connect_report_issuing_reporting_category' as const,
|
|
30862
|
+
value: factories['io.flow.stripe.v0.enums.connect_report_issuing_reporting_category'](),
|
|
30863
|
+
}), () => ({
|
|
30864
|
+
discriminator: 'connect_report_connect_reporting_category' as const,
|
|
30865
|
+
value: factories['io.flow.stripe.v0.enums.connect_report_connect_reporting_category'](),
|
|
30866
|
+
})]);
|
|
30867
|
+
|
|
30868
|
+
return f();
|
|
30869
|
+
},
|
|
30870
|
+
|
|
30694
30871
|
'io.flow.stripe.v0.unions.payment_method_data': (): io.flow.stripe.v0.unions.PaymentMethodData => {
|
|
30695
30872
|
const f = faker.helpers.arrayElement([
|
|
30696
30873
|
() => factories['io.flow.stripe.v0.models.payment_method_data_card'](),
|
|
@@ -31540,6 +31717,7 @@ export const makeComplianceData = () => factories['io.flow.internal.v0.unions.co
|
|
|
31540
31717
|
export const makeComplianceForm = () => factories['io.flow.internal.v0.unions.compliance_form']();
|
|
31541
31718
|
export const makeComplianceType = () => factories['io.flow.internal.v0.enums.compliance_type']();
|
|
31542
31719
|
export const makeComponents = () => factories['io.flow.internal.v0.models.components']();
|
|
31720
|
+
export const makeConnectReportTransferType = () => factories['io.flow.internal.v0.enums.connect_report_transfer_type']();
|
|
31543
31721
|
export const makeConsoleLabelRequestForm = () => factories['io.flow.internal.v0.models.console_label_request_form']();
|
|
31544
31722
|
export const makeConsoleLabelValidationForm = () => factories['io.flow.internal.v0.unions.console_label_validation_form']();
|
|
31545
31723
|
export const makeConsoleMarkUnresolvableForm = () => factories['io.flow.internal.v0.models.console_mark_unresolvable_form']();
|
|
@@ -32094,6 +32272,7 @@ export const makeMerchantGuidAssignmentDeleted = () => factories['io.flow.intern
|
|
|
32094
32272
|
export const makeMerchantGuidAssignmentUpserted = () => factories['io.flow.internal.v0.models.merchant_guid_assignment_upserted']();
|
|
32095
32273
|
export const makeMerchantHubOverride = () => factories['io.flow.internal.v0.models.merchant_hub_override']();
|
|
32096
32274
|
export const makeMerchantHubOverrideForm = () => factories['io.flow.internal.v0.models.merchant_hub_override_form']();
|
|
32275
|
+
export const makeMerchantOfRecord = () => factories['io.flow.internal.v0.enums.merchant_of_record']();
|
|
32097
32276
|
export const makeMerchantOfRecordEntitySettings = () => factories['io.flow.internal.v0.models.merchant_of_record_entity_settings']();
|
|
32098
32277
|
export const makeMerchantOfRecordEntitySettingsForm = () => factories['io.flow.internal.v0.models.merchant_of_record_entity_settings_form']();
|
|
32099
32278
|
export const makeMerchantOverride = () => factories['io.flow.internal.v0.models.merchant_override']();
|
|
@@ -32288,6 +32467,9 @@ export const makePartnerOrganizationSettings = () => factories['io.flow.internal
|
|
|
32288
32467
|
export const makePartnerOrganizationSettingsDeleted = () => factories['io.flow.internal.v0.models.partner_organization_settings_deleted']();
|
|
32289
32468
|
export const makePartnerOrganizationSettingsForm = () => factories['io.flow.internal.v0.models.partner_organization_settings_form']();
|
|
32290
32469
|
export const makePartnerOrganizationSettingsUpserted = () => factories['io.flow.internal.v0.models.partner_organization_settings_upserted']();
|
|
32470
|
+
export const makePartnerRequest = () => factories['io.flow.internal.v0.models.partner_request']();
|
|
32471
|
+
export const makePartnerRequestDeleted = () => factories['io.flow.internal.v0.models.partner_request_deleted']();
|
|
32472
|
+
export const makePartnerRequestUpserted = () => factories['io.flow.internal.v0.models.partner_request_upserted']();
|
|
32291
32473
|
export const makePartnerTrackingSubscriptionDeleted = () => factories['io.flow.internal.v0.models.partner_tracking_subscription_deleted']();
|
|
32292
32474
|
export const makePartnerTrackingSubscriptionUpserted = () => factories['io.flow.internal.v0.models.partner_tracking_subscription_upserted']();
|
|
32293
32475
|
export const makePassphrase = () => factories['io.flow.internal.v0.models.passphrase']();
|
|
@@ -32623,6 +32805,9 @@ export const makeShopifyChannelOrganizationTokens = () => factories['io.flow.int
|
|
|
32623
32805
|
export const makeShopifyCheckInventoryError = () => factories['io.flow.internal.v0.models.shopify_check_inventory_error']();
|
|
32624
32806
|
export const makeShopifyCheckInventoryErrorCode = () => factories['io.flow.internal.v0.enums.shopify_check_inventory_error_code']();
|
|
32625
32807
|
export const makeShopifyCodeForm = () => factories['io.flow.internal.v0.models.shopify_code_form']();
|
|
32808
|
+
export const makeShopifyDispute = () => factories['io.flow.internal.v0.models.shopify_dispute']();
|
|
32809
|
+
export const makeShopifyDisputeDeleted = () => factories['io.flow.internal.v0.models.shopify_dispute_deleted']();
|
|
32810
|
+
export const makeShopifyDisputeUpserted = () => factories['io.flow.internal.v0.models.shopify_dispute_upserted']();
|
|
32626
32811
|
export const makeShopifyExperienceShortId = () => factories['io.flow.internal.v0.models.shopify_experience_short_id']();
|
|
32627
32812
|
export const makeShopifyExperienceShortIdDeleted = () => factories['io.flow.internal.v0.models.shopify_experience_short_id_deleted']();
|
|
32628
32813
|
export const makeShopifyExperienceShortIdUpserted = () => factories['io.flow.internal.v0.models.shopify_experience_short_id_upserted']();
|
|
@@ -32816,6 +33001,7 @@ export const makeStripeCaptureDeleted = () => factories['io.flow.internal.v0.mod
|
|
|
32816
33001
|
export const makeStripeCaptureUpserted = () => factories['io.flow.internal.v0.models.stripe_capture_upserted']();
|
|
32817
33002
|
export const makeStripeConnectReportRecord = () => factories['io.flow.internal.v0.models.stripe_connect_report_record']();
|
|
32818
33003
|
export const makeStripeConnectReportRecordDeleted = () => factories['io.flow.internal.v0.models.stripe_connect_report_record_deleted']();
|
|
33004
|
+
export const makeStripeConnectReportRecordPaymentMetadata = () => factories['io.flow.internal.v0.models.stripe_connect_report_record_payment_metadata']();
|
|
32819
33005
|
export const makeStripeConnectReportRecordUpserted = () => factories['io.flow.internal.v0.models.stripe_connect_report_record_upserted']();
|
|
32820
33006
|
export const makeStripeDisputeDeleted = () => factories['io.flow.internal.v0.models.stripe_dispute_deleted']();
|
|
32821
33007
|
export const makeStripeDisputeUpserted = () => factories['io.flow.internal.v0.models.stripe_dispute_upserted']();
|