@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/dist/esm/api-internal.js
CHANGED
|
@@ -707,6 +707,7 @@ var factories = {
|
|
|
707
707
|
'virtual_card_refund',
|
|
708
708
|
'failed_payout',
|
|
709
709
|
'tax_refund',
|
|
710
|
+
'duty_refund',
|
|
710
711
|
'non_l4l_tax_duty_fx',
|
|
711
712
|
'ge_revenue_share',
|
|
712
713
|
]); },
|
|
@@ -5909,10 +5910,18 @@ var factories = {
|
|
|
5909
5910
|
'io.flow.internal.v0.enums.classification_decision': function () { return faker.helpers.arrayElement(['Accept', 'Reject']); },
|
|
5910
5911
|
'io.flow.internal.v0.enums.classification_error_code': function () { return faker.helpers.arrayElement(['generic_error']); },
|
|
5911
5912
|
'io.flow.internal.v0.enums.classification_platform': function () { return faker.helpers.arrayElement(['GlobalE', 'Flow', 'Borderfree']); },
|
|
5912
|
-
'io.flow.internal.v0.enums.classification_type': function () { return faker.helpers.arrayElement(['None', 'Manual', 'ML']); },
|
|
5913
|
+
'io.flow.internal.v0.enums.classification_type': function () { return faker.helpers.arrayElement(['None', 'Manual', 'ML', 'System']); },
|
|
5913
5914
|
'io.flow.internal.v0.enums.clothing_age_classification': function () { return faker.helpers.arrayElement(['None', 'AgeKidsGeneral', 'Age0_10', 'Age10_13', 'Age13_14']); },
|
|
5914
5915
|
'io.flow.internal.v0.enums.company': function () { return faker.helpers.arrayElement(['globale', 'flow']); },
|
|
5915
5916
|
'io.flow.internal.v0.enums.compliance_type': function () { return faker.helpers.arrayElement(['weee']); },
|
|
5917
|
+
'io.flow.internal.v0.enums.connect_report_transfer_type': function () { return faker.helpers.arrayElement([
|
|
5918
|
+
'ManagedMarketsRefundDebit',
|
|
5919
|
+
'ManagedMarketsDutiesAndTaxesAdjustmentDebit',
|
|
5920
|
+
'ManagedMarketsDisputedAmountDebit',
|
|
5921
|
+
'ManagedMarketsChargeCredit',
|
|
5922
|
+
'ManagedMarketsDisputeWonAmountCredit',
|
|
5923
|
+
'ManagedMarketsDutiesAndTaxesAdjustmentCredit',
|
|
5924
|
+
]); },
|
|
5916
5925
|
'io.flow.internal.v0.enums.content_element_type': function () { return faker.helpers.arrayElement(['markdown', 'html', 'plain_text', 'href']); },
|
|
5917
5926
|
'io.flow.internal.v0.enums.content_status': function () { return faker.helpers.arrayElement(['draft', 'live', 'archived']); },
|
|
5918
5927
|
'io.flow.internal.v0.enums.content_type': function () { return faker.helpers.arrayElement(['text', 'html']); },
|
|
@@ -5949,7 +5958,7 @@ var factories = {
|
|
|
5949
5958
|
'preferential_rate',
|
|
5950
5959
|
]); },
|
|
5951
5960
|
'io.flow.internal.v0.enums.duty_simple_expression_type': function () { return faker.helpers.arrayElement(['free', 'percent', 'per_uom', 'flat']); },
|
|
5952
|
-
'io.flow.internal.v0.enums.duty_transaction_type': function () { return faker.helpers.arrayElement(['adjustment', 'reversal', 'duty']); },
|
|
5961
|
+
'io.flow.internal.v0.enums.duty_transaction_type': function () { return faker.helpers.arrayElement(['adjustment', 'reversal', 'duty', 'refund']); },
|
|
5953
5962
|
'io.flow.internal.v0.enums.empty_attribute': function () { return faker.helpers.arrayElement(['irrelevant']); },
|
|
5954
5963
|
'io.flow.internal.v0.enums.erp_file_type': function () { return faker.helpers.arrayElement(['vendor']); },
|
|
5955
5964
|
'io.flow.internal.v0.enums.event_type': function () { return faker.helpers.arrayElement([
|
|
@@ -6180,6 +6189,8 @@ var factories = {
|
|
|
6180
6189
|
'partner_tracking_subscription_deleted',
|
|
6181
6190
|
'spp_tracker_update_request_upserted',
|
|
6182
6191
|
'spp_tracker_update_request_deleted',
|
|
6192
|
+
'partner_request_upserted',
|
|
6193
|
+
'partner_request_deleted',
|
|
6183
6194
|
'internal_authorization_upserted',
|
|
6184
6195
|
'internal_authorization_deleted',
|
|
6185
6196
|
'afterpay_authorization_upserted',
|
|
@@ -6279,6 +6290,8 @@ var factories = {
|
|
|
6279
6290
|
'shopify_order_fulfillments_snapshot_deleted',
|
|
6280
6291
|
'shopify_merchant_plan_upserted',
|
|
6281
6292
|
'shopify_merchant_plan_deleted',
|
|
6293
|
+
'shopify_dispute_upserted',
|
|
6294
|
+
'shopify_dispute_deleted',
|
|
6282
6295
|
'stripe_authorization_deleted',
|
|
6283
6296
|
'stripe_authorization_upserted',
|
|
6284
6297
|
'stripe_reversal_deleted',
|
|
@@ -6408,6 +6421,12 @@ var factories = {
|
|
|
6408
6421
|
'bank_payment_failure',
|
|
6409
6422
|
'non_fraud_chargeback',
|
|
6410
6423
|
]); },
|
|
6424
|
+
'io.flow.internal.v0.enums.merchant_of_record': function () { return faker.helpers.arrayElement([
|
|
6425
|
+
'global_e_united_states',
|
|
6426
|
+
'global_e_united_kingdom',
|
|
6427
|
+
'global_e_canada',
|
|
6428
|
+
'global_e_netherlands',
|
|
6429
|
+
]); },
|
|
6411
6430
|
'io.flow.internal.v0.enums.merchant_override_status': function () { return faker.helpers.arrayElement(['in_review', 'accepted', 'rejected']); },
|
|
6412
6431
|
'io.flow.internal.v0.enums.mixed_bag_weight': function () { return faker.helpers.arrayElement(['0', '1', '2']); },
|
|
6413
6432
|
'io.flow.internal.v0.enums.nature_of_sale': function () { return faker.helpers.arrayElement([
|
|
@@ -6445,7 +6464,6 @@ var factories = {
|
|
|
6445
6464
|
'dtce',
|
|
6446
6465
|
'restrictions',
|
|
6447
6466
|
'organization_status',
|
|
6448
|
-
'category_constraints',
|
|
6449
6467
|
'miscellaneous',
|
|
6450
6468
|
]); },
|
|
6451
6469
|
'io.flow.internal.v0.enums.onboarding_automation_process_state': function () { return faker.helpers.arrayElement(['not_started', 'in_progress', 'success', 'failed']); },
|
|
@@ -12012,8 +12030,12 @@ var factories = {
|
|
|
12012
12030
|
status: factories['io.flow.internal.v0.enums.merchant_override_status'](),
|
|
12013
12031
|
hs6_code: factories.string(),
|
|
12014
12032
|
merchant_hs6_code: factories.string(),
|
|
12033
|
+
created_at: factories.date_time_iso_8601(),
|
|
12034
|
+
updated_at: factories.date_time_iso_8601(),
|
|
12035
|
+
updated_by_user_id: factories.string(),
|
|
12015
12036
|
}); },
|
|
12016
12037
|
'io.flow.internal.v0.models.merchant_override_decision_form': function () { return ({
|
|
12038
|
+
id: factories.string(),
|
|
12017
12039
|
status: factories['io.flow.internal.v0.enums.merchant_override_status'](),
|
|
12018
12040
|
}); },
|
|
12019
12041
|
'io.flow.internal.v0.models.merchant_search_result': function () { return ({
|
|
@@ -12692,6 +12714,9 @@ var factories = {
|
|
|
12692
12714
|
last_order_submitted_at: factories.date_time_iso_8601(),
|
|
12693
12715
|
matching_positive_keywords: arrayOf(function () { return factories.string(); }),
|
|
12694
12716
|
product_categories: arrayOf(function () { return factories.string(); }),
|
|
12717
|
+
matching_negative_keywords: arrayOf(function () { return factories.string(); }),
|
|
12718
|
+
decisions_user_ids: arrayOf(function () { return factories.string(); }),
|
|
12719
|
+
restriction_rule_ids: arrayOf(function () { return factories.string(); }),
|
|
12695
12720
|
}); },
|
|
12696
12721
|
'io.flow.internal.v0.models.organization_metadata_deleted': function () { return ({
|
|
12697
12722
|
discriminator: 'organization_metadata_deleted',
|
|
@@ -13043,6 +13068,30 @@ var factories = {
|
|
|
13043
13068
|
organization: factories.string(),
|
|
13044
13069
|
partner_organization_settings: factories['io.flow.internal.v0.models.partner_organization_settings'](),
|
|
13045
13070
|
}); },
|
|
13071
|
+
'io.flow.internal.v0.models.partner_request': function () { return ({
|
|
13072
|
+
id: factories.string(),
|
|
13073
|
+
partner_id: factories.string(),
|
|
13074
|
+
organization_id: factories.string(),
|
|
13075
|
+
method: factories.string(),
|
|
13076
|
+
path: factories.string(),
|
|
13077
|
+
request_id: factories.string(),
|
|
13078
|
+
parameters: objectOf(function () { return factories.string(); }),
|
|
13079
|
+
request_body: factories.object(),
|
|
13080
|
+
response_body: factories.object(),
|
|
13081
|
+
reference_id: factories.string(),
|
|
13082
|
+
}); },
|
|
13083
|
+
'io.flow.internal.v0.models.partner_request_deleted': function () { return ({
|
|
13084
|
+
discriminator: 'partner_request_deleted',
|
|
13085
|
+
event_id: factories.string(),
|
|
13086
|
+
timestamp: factories.date_time_iso_8601(),
|
|
13087
|
+
id: factories.string(),
|
|
13088
|
+
}); },
|
|
13089
|
+
'io.flow.internal.v0.models.partner_request_upserted': function () { return ({
|
|
13090
|
+
discriminator: 'partner_request_upserted',
|
|
13091
|
+
event_id: factories.string(),
|
|
13092
|
+
timestamp: factories.date_time_iso_8601(),
|
|
13093
|
+
partner_request: factories['io.flow.internal.v0.models.partner_request'](),
|
|
13094
|
+
}); },
|
|
13046
13095
|
'io.flow.internal.v0.models.partner_tracking_subscription_deleted': function () { return ({
|
|
13047
13096
|
discriminator: 'partner_tracking_subscription_deleted',
|
|
13048
13097
|
event_id: factories.string(),
|
|
@@ -14101,6 +14150,7 @@ var factories = {
|
|
|
14101
14150
|
id: factories.string(),
|
|
14102
14151
|
processor: factories.string(),
|
|
14103
14152
|
report_file_type: factories['io.flow.internal.v0.enums.report_file_type'](),
|
|
14153
|
+
merchant_of_record_identifier: factories['io.flow.internal.v0.enums.merchant_of_record'](),
|
|
14104
14154
|
file_name: factories.string(),
|
|
14105
14155
|
status: factories['io.flow.internal.v0.enums.report_file_status'](),
|
|
14106
14156
|
failure_reason: factories.string(),
|
|
@@ -14929,6 +14979,33 @@ var factories = {
|
|
|
14929
14979
|
'io.flow.internal.v0.models.shopify_code_form': function () { return ({
|
|
14930
14980
|
code: factories.string(),
|
|
14931
14981
|
}); },
|
|
14982
|
+
'io.flow.internal.v0.models.shopify_dispute': function () { return ({
|
|
14983
|
+
id: factories.string(),
|
|
14984
|
+
organization_id: factories.string(),
|
|
14985
|
+
authorization_id: factories.string(),
|
|
14986
|
+
amount: factories.decimal(),
|
|
14987
|
+
currency: factories.string(),
|
|
14988
|
+
status: factories.string(),
|
|
14989
|
+
category: factories.string(),
|
|
14990
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
14991
|
+
external_reference_id: factories.string(),
|
|
14992
|
+
issued_at: factories.date_time_iso_8601(),
|
|
14993
|
+
updated_at: factories.date_time_iso_8601(),
|
|
14994
|
+
}); },
|
|
14995
|
+
'io.flow.internal.v0.models.shopify_dispute_deleted': function () { return ({
|
|
14996
|
+
discriminator: 'shopify_dispute_deleted',
|
|
14997
|
+
event_id: factories.string(),
|
|
14998
|
+
timestamp: factories.date_time_iso_8601(),
|
|
14999
|
+
organization: factories.string(),
|
|
15000
|
+
id: factories.string(),
|
|
15001
|
+
}); },
|
|
15002
|
+
'io.flow.internal.v0.models.shopify_dispute_upserted': function () { return ({
|
|
15003
|
+
discriminator: 'shopify_dispute_upserted',
|
|
15004
|
+
event_id: factories.string(),
|
|
15005
|
+
timestamp: factories.date_time_iso_8601(),
|
|
15006
|
+
organization: factories.string(),
|
|
15007
|
+
dispute: factories['io.flow.internal.v0.models.shopify_dispute'](),
|
|
15008
|
+
}); },
|
|
14932
15009
|
'io.flow.internal.v0.models.shopify_experience_short_id': function () { return ({
|
|
14933
15010
|
id: factories.string(),
|
|
14934
15011
|
experience: factories['io.flow.experience.v0.models.experience_reference'](),
|
|
@@ -15897,7 +15974,7 @@ var factories = {
|
|
|
15897
15974
|
net: factories.decimal(),
|
|
15898
15975
|
currency: factories.string(),
|
|
15899
15976
|
connected_account: factories.string(),
|
|
15900
|
-
reporting_category: factories['io.flow.stripe.v0.
|
|
15977
|
+
reporting_category: factories['io.flow.stripe.v0.unions.connect_report_reporting_category'](),
|
|
15901
15978
|
dispute_reason: factories.string(),
|
|
15902
15979
|
available_on_utc: factories.date_time_iso_8601(),
|
|
15903
15980
|
automatic_payout_effective_at_utc: factories.date_time_iso_8601(),
|
|
@@ -15907,7 +15984,7 @@ var factories = {
|
|
|
15907
15984
|
payment_method_type: factories.string(),
|
|
15908
15985
|
card_brand: factories.string(),
|
|
15909
15986
|
statement_descriptor: factories.string(),
|
|
15910
|
-
payment_metadata: factories['io.flow.
|
|
15987
|
+
payment_metadata: factories['io.flow.internal.v0.models.stripe_connect_report_record_payment_metadata'](),
|
|
15911
15988
|
transfer_metadata: factories.object(),
|
|
15912
15989
|
}); },
|
|
15913
15990
|
'io.flow.internal.v0.models.stripe_connect_report_record_deleted': function () { return ({
|
|
@@ -15916,11 +15993,27 @@ var factories = {
|
|
|
15916
15993
|
timestamp: factories.date_time_iso_8601(),
|
|
15917
15994
|
id: factories.string(),
|
|
15918
15995
|
}); },
|
|
15996
|
+
'io.flow.internal.v0.models.stripe_connect_report_record_payment_metadata': function () { return ({
|
|
15997
|
+
shop_id: factories.integer(),
|
|
15998
|
+
shop_plan: factories['io.flow.internal.v0.enums.shopify_plan_type'](),
|
|
15999
|
+
checkout_id: factories.string(),
|
|
16000
|
+
order_id: factories.integer(),
|
|
16001
|
+
order_transaction_id: factories.integer(),
|
|
16002
|
+
transfer_type: factories['io.flow.internal.v0.enums.connect_report_transfer_type'](),
|
|
16003
|
+
transfer_exchange_rate: factories.decimal(),
|
|
16004
|
+
charge_total: factories.integer(),
|
|
16005
|
+
charge_currency: factories.string(),
|
|
16006
|
+
charge_exchange_rate: factories.decimal(),
|
|
16007
|
+
duties: factories.integer(),
|
|
16008
|
+
import_taxes: factories.integer(),
|
|
16009
|
+
mor_fee: factories.integer(),
|
|
16010
|
+
fx_fee: factories.integer(),
|
|
16011
|
+
}); },
|
|
15919
16012
|
'io.flow.internal.v0.models.stripe_connect_report_record_upserted': function () { return ({
|
|
15920
16013
|
discriminator: 'stripe_connect_report_record_upserted',
|
|
15921
16014
|
event_id: factories.string(),
|
|
15922
16015
|
timestamp: factories.date_time_iso_8601(),
|
|
15923
|
-
record: factories['io.flow.
|
|
16016
|
+
record: factories['io.flow.internal.v0.models.stripe_connect_report_record'](),
|
|
15924
16017
|
}); },
|
|
15925
16018
|
'io.flow.internal.v0.models.stripe_dispute_deleted': function () { return ({
|
|
15926
16019
|
discriminator: 'stripe_dispute_deleted',
|
|
@@ -17200,6 +17293,8 @@ var factories = {
|
|
|
17200
17293
|
function () { return factories['io.flow.internal.v0.models.partner_tracking_subscription_deleted'](); },
|
|
17201
17294
|
function () { return factories['io.flow.internal.v0.models.spp_tracker_update_request_upserted'](); },
|
|
17202
17295
|
function () { return factories['io.flow.internal.v0.models.spp_tracker_update_request_deleted'](); },
|
|
17296
|
+
function () { return factories['io.flow.internal.v0.models.partner_request_upserted'](); },
|
|
17297
|
+
function () { return factories['io.flow.internal.v0.models.partner_request_deleted'](); },
|
|
17203
17298
|
function () { return factories['io.flow.internal.v0.models.internal_authorization_upserted'](); },
|
|
17204
17299
|
function () { return factories['io.flow.internal.v0.models.internal_authorization_deleted'](); },
|
|
17205
17300
|
function () { return factories['io.flow.internal.v0.models.afterpay_authorization_upserted'](); },
|
|
@@ -17299,6 +17394,8 @@ var factories = {
|
|
|
17299
17394
|
function () { return factories['io.flow.internal.v0.models.shopify_order_fulfillments_snapshot_deleted'](); },
|
|
17300
17395
|
function () { return factories['io.flow.internal.v0.models.shopify_merchant_plan_upserted'](); },
|
|
17301
17396
|
function () { return factories['io.flow.internal.v0.models.shopify_merchant_plan_deleted'](); },
|
|
17397
|
+
function () { return factories['io.flow.internal.v0.models.shopify_dispute_upserted'](); },
|
|
17398
|
+
function () { return factories['io.flow.internal.v0.models.shopify_dispute_deleted'](); },
|
|
17302
17399
|
function () { return factories['io.flow.internal.v0.models.stripe_authorization_deleted'](); },
|
|
17303
17400
|
function () { return factories['io.flow.internal.v0.models.stripe_authorization_upserted'](); },
|
|
17304
17401
|
function () { return factories['io.flow.internal.v0.models.stripe_reversal_deleted'](); },
|
|
@@ -19837,6 +19934,15 @@ var factories = {
|
|
|
19837
19934
|
'io.flow.payment.v0.enums.three_d_secure_code': function () { return faker.helpers.arrayElement(['verified', 'not_verified', 'failed']); },
|
|
19838
19935
|
'io.flow.payment.v0.enums.threeds_two_challenge_viewport': function () { return faker.helpers.arrayElement(['xxx_small', 'xx_small', 'x_small', 'small', 'fullscreen']); },
|
|
19839
19936
|
'io.flow.payment.v0.enums.token_type': function () { return faker.helpers.arrayElement(['permanent', 'one_time']); },
|
|
19937
|
+
'io.flow.payment.v0.enums.transfer_status': function () { return faker.helpers.arrayElement(['succeeded', 'canceled']); },
|
|
19938
|
+
'io.flow.payment.v0.enums.transfer_type': function () { return faker.helpers.arrayElement([
|
|
19939
|
+
'payout_to_merchant',
|
|
19940
|
+
'disputed_amount_to_merchant',
|
|
19941
|
+
'duties_and_taxes_adjustment_to_merchant',
|
|
19942
|
+
'disputed_amount_from_merchant',
|
|
19943
|
+
'duties_and_taxes_adjustment_from_merchant',
|
|
19944
|
+
'refund_from_merchant',
|
|
19945
|
+
]); },
|
|
19840
19946
|
'io.flow.payment.v0.models.ach_authorization_form': function () { return ({
|
|
19841
19947
|
discriminator: 'ach_authorization_form',
|
|
19842
19948
|
account_owner_name: factories.string(),
|
|
@@ -20019,6 +20125,7 @@ var factories = {
|
|
|
20019
20125
|
primary: factories.boolean(),
|
|
20020
20126
|
}); },
|
|
20021
20127
|
'io.flow.payment.v0.models.capture_reference': function () { return ({
|
|
20128
|
+
discriminator: 'capture_reference',
|
|
20022
20129
|
id: factories.string(),
|
|
20023
20130
|
key: factories.string(),
|
|
20024
20131
|
}); },
|
|
@@ -20209,6 +20316,15 @@ var factories = {
|
|
|
20209
20316
|
last4: factories.string(),
|
|
20210
20317
|
account_holder_name: factories.string(),
|
|
20211
20318
|
}); },
|
|
20319
|
+
'io.flow.payment.v0.models.dispute_reference': function () { return ({
|
|
20320
|
+
discriminator: 'dispute_reference',
|
|
20321
|
+
id: factories.string(),
|
|
20322
|
+
key: factories.string(),
|
|
20323
|
+
}); },
|
|
20324
|
+
'io.flow.payment.v0.models.exchanged_money': function () { return ({
|
|
20325
|
+
fx_rate: factories.decimal(),
|
|
20326
|
+
money: factories['io.flow.common.v0.models.money'](),
|
|
20327
|
+
}); },
|
|
20212
20328
|
'io.flow.payment.v0.models.expiration': function () { return ({
|
|
20213
20329
|
month: factories.integer(),
|
|
20214
20330
|
year: factories.integer(),
|
|
@@ -20518,6 +20634,7 @@ var factories = {
|
|
|
20518
20634
|
shipping: factories.decimal(),
|
|
20519
20635
|
}); },
|
|
20520
20636
|
'io.flow.payment.v0.models.refund_reference': function () { return ({
|
|
20637
|
+
discriminator: 'refund_reference',
|
|
20521
20638
|
id: factories.string(),
|
|
20522
20639
|
key: factories.string(),
|
|
20523
20640
|
}); },
|
|
@@ -20625,6 +20742,16 @@ var factories = {
|
|
|
20625
20742
|
network_transaction_id: factories.string(),
|
|
20626
20743
|
network: factories['io.flow.payment.v0.enums.card_type'](),
|
|
20627
20744
|
}); },
|
|
20745
|
+
'io.flow.payment.v0.models.transfer': function () { return ({
|
|
20746
|
+
id: factories.string(),
|
|
20747
|
+
type: factories['io.flow.payment.v0.enums.transfer_type'](),
|
|
20748
|
+
money: factories['io.flow.common.v0.models.money'](),
|
|
20749
|
+
transferred_money: factories['io.flow.payment.v0.models.exchanged_money'](),
|
|
20750
|
+
status: factories['io.flow.payment.v0.enums.transfer_status'](),
|
|
20751
|
+
created_at: factories.date_time_iso_8601(),
|
|
20752
|
+
reference: factories['io.flow.payment.v0.unions.transfer_reference'](),
|
|
20753
|
+
transferred_at: factories.date_time_iso_8601(),
|
|
20754
|
+
}); },
|
|
20628
20755
|
'io.flow.payment.v0.models.virtual_card': function () { return ({
|
|
20629
20756
|
id: factories.string(),
|
|
20630
20757
|
key: factories.string(),
|
|
@@ -20841,6 +20968,14 @@ var factories = {
|
|
|
20841
20968
|
var f = faker.helpers.arrayElement([function () { return factories['io.flow.payment.v0.models.transaction_details_card'](); }]);
|
|
20842
20969
|
return f();
|
|
20843
20970
|
},
|
|
20971
|
+
'io.flow.payment.v0.unions.transfer_reference': function () {
|
|
20972
|
+
var f = faker.helpers.arrayElement([
|
|
20973
|
+
function () { return factories['io.flow.payment.v0.models.capture_reference'](); },
|
|
20974
|
+
function () { return factories['io.flow.payment.v0.models.refund_reference'](); },
|
|
20975
|
+
function () { return factories['io.flow.payment.v0.models.dispute_reference'](); },
|
|
20976
|
+
]);
|
|
20977
|
+
return f();
|
|
20978
|
+
},
|
|
20844
20979
|
'io.flow.permission.v0.enums.authentication_technique': function () { return faker.helpers.arrayElement(['anonymous', 'session', 'token', 'partner_token', 'user']); },
|
|
20845
20980
|
'io.flow.permission.v0.enums.flow_behavior': function () { return faker.helpers.arrayElement(['view_consumer_data']); },
|
|
20846
20981
|
'io.flow.permission.v0.enums.flow_role': function () { return faker.helpers.arrayElement([
|
|
@@ -21432,6 +21567,8 @@ var factories = {
|
|
|
21432
21567
|
discriminator: 'ratecard_estimate_v4',
|
|
21433
21568
|
hops: arrayOf(function () { return factories['io.flow.ratecard.v0.models.hop_v2'](); }),
|
|
21434
21569
|
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
21570
|
+
distance_unit_of_measurement: factories['io.flow.common.v0.enums.unit_of_measurement'](),
|
|
21571
|
+
weight_unit_of_measurement: factories['io.flow.common.v0.enums.unit_of_measurement'](),
|
|
21435
21572
|
dimensional_weight: factories['io.flow.common.v0.models.measurement'](),
|
|
21436
21573
|
gravitational_weight: factories['io.flow.common.v0.models.measurement'](),
|
|
21437
21574
|
ratecard_id: factories.string(),
|
|
@@ -24623,12 +24760,55 @@ var factories = {
|
|
|
24623
24760
|
'io.flow.stripe.v0.enums.check_outcome': function () { return faker.helpers.arrayElement(['pass', 'fail', 'unavailable', 'unchecked']); },
|
|
24624
24761
|
'io.flow.stripe.v0.enums.code_verification_status': function () { return faker.helpers.arrayElement(['pending', 'succeeded', 'failed']); },
|
|
24625
24762
|
'io.flow.stripe.v0.enums.confirmation_method': function () { return faker.helpers.arrayElement(['automatic', 'manual']); },
|
|
24626
|
-
'io.flow.stripe.v0.enums.
|
|
24627
|
-
|
|
24628
|
-
|
|
24629
|
-
'
|
|
24630
|
-
'
|
|
24631
|
-
'
|
|
24763
|
+
'io.flow.stripe.v0.enums.connect_report_balance_reporting_category': function () { return faker.helpers.arrayElement([
|
|
24764
|
+
'anticipation_repayment',
|
|
24765
|
+
'climate_order_purchase',
|
|
24766
|
+
'climate_order_refund',
|
|
24767
|
+
'contribution',
|
|
24768
|
+
'currency_conversion',
|
|
24769
|
+
'fee',
|
|
24770
|
+
'other_adjustment',
|
|
24771
|
+
'payment_network_reserve_hold',
|
|
24772
|
+
'payment_network_reserve_release',
|
|
24773
|
+
'payout',
|
|
24774
|
+
'payout_minimum_balance_hold',
|
|
24775
|
+
'payout_minimum_balance_release',
|
|
24776
|
+
'payout_reversal',
|
|
24777
|
+
'risk_reserved_funds',
|
|
24778
|
+
'stripe_balance_payment_debit',
|
|
24779
|
+
'stripe_balance_payment_debit_reversal',
|
|
24780
|
+
'topup',
|
|
24781
|
+
'topup_reversal',
|
|
24782
|
+
'unreconciled_customer_funds',
|
|
24783
|
+
]); },
|
|
24784
|
+
'io.flow.stripe.v0.enums.connect_report_connect_reporting_category': function () { return faker.helpers.arrayElement([
|
|
24785
|
+
'advance',
|
|
24786
|
+
'advance_funding',
|
|
24787
|
+
'connect_collection_transfer',
|
|
24788
|
+
'connect_reserved_funds',
|
|
24789
|
+
'platform_earning',
|
|
24790
|
+
'platform_earning_refund',
|
|
24791
|
+
'transfer',
|
|
24792
|
+
'transfer_reversal',
|
|
24793
|
+
]); },
|
|
24794
|
+
'io.flow.stripe.v0.enums.connect_report_issuing_reporting_category': function () { return faker.helpers.arrayElement([
|
|
24795
|
+
'issuing_authorization_hold',
|
|
24796
|
+
'issuing_authorization_release',
|
|
24797
|
+
'issuing_disbursement',
|
|
24798
|
+
'issuing_dispute',
|
|
24799
|
+
'issuing_dispute_fraud_liability_debit',
|
|
24800
|
+
'issuing_dispute_provisional_credit',
|
|
24801
|
+
'issuing_dispute_provisional_credit_reversal',
|
|
24802
|
+
'issuing_transaction',
|
|
24803
|
+
]); },
|
|
24804
|
+
'io.flow.stripe.v0.enums.connect_report_payment_reporting_category': function () { return faker.helpers.arrayElement([
|
|
24805
|
+
'charge',
|
|
24806
|
+
'charge_failure',
|
|
24807
|
+
'dispute',
|
|
24808
|
+
'dispute_reversal',
|
|
24809
|
+
'partial_capture_reversal',
|
|
24810
|
+
'refund',
|
|
24811
|
+
'refund_failure',
|
|
24632
24812
|
]); },
|
|
24633
24813
|
'io.flow.stripe.v0.enums.decline_code': function () { return faker.helpers.arrayElement([
|
|
24634
24814
|
'approve_with_id',
|
|
@@ -25213,44 +25393,6 @@ var factories = {
|
|
|
25213
25393
|
attempts_remaining: factories.long(),
|
|
25214
25394
|
status: factories['io.flow.stripe.v0.enums.code_verification_status'](),
|
|
25215
25395
|
}); },
|
|
25216
|
-
'io.flow.stripe.v0.models.connect_report_record': function () { return ({
|
|
25217
|
-
created_utc: factories.date_time_iso_8601(),
|
|
25218
|
-
charge_id: factories.string(),
|
|
25219
|
-
payment_intent_id: factories.string(),
|
|
25220
|
-
gross: factories.decimal(),
|
|
25221
|
-
fee: factories.decimal(),
|
|
25222
|
-
net: factories.decimal(),
|
|
25223
|
-
currency: factories.string(),
|
|
25224
|
-
connected_account: factories.string(),
|
|
25225
|
-
reporting_category: factories['io.flow.stripe.v0.enums.connect_report_reporting_category'](),
|
|
25226
|
-
dispute_reason: factories['io.flow.stripe.v0.enums.dispute_reason'](),
|
|
25227
|
-
available_on_utc: factories.date_time_iso_8601(),
|
|
25228
|
-
automatic_payout_effective_at_utc: factories.date_time_iso_8601(),
|
|
25229
|
-
source_id: factories.string(),
|
|
25230
|
-
customer_facing_amount: factories.decimal(),
|
|
25231
|
-
customer_facing_currency: factories.string(),
|
|
25232
|
-
payment_method_type: factories.string(),
|
|
25233
|
-
card_brand: factories.string(),
|
|
25234
|
-
statement_descriptor: factories.string(),
|
|
25235
|
-
payment_metadata: factories['io.flow.stripe.v0.models.connect_report_record_payment_metadata'](),
|
|
25236
|
-
transfer_metadata: factories.object(),
|
|
25237
|
-
}); },
|
|
25238
|
-
'io.flow.stripe.v0.models.connect_report_record_payment_metadata': function () { return ({
|
|
25239
|
-
shop_id: factories.integer(),
|
|
25240
|
-
shop_plan: factories['io.flow.stripe.v0.enums.connect_report_shop_plan'](),
|
|
25241
|
-
checkout_id: factories.string(),
|
|
25242
|
-
order_id: factories.integer(),
|
|
25243
|
-
order_transaction_id: factories.integer(),
|
|
25244
|
-
transfer_type: factories['io.flow.stripe.v0.enums.connect_report_transfer_type'](),
|
|
25245
|
-
transfer_exchange_rate: factories.decimal(),
|
|
25246
|
-
charge_total: factories.integer(),
|
|
25247
|
-
charge_currency: factories.string(),
|
|
25248
|
-
charge_exchange_rate: factories.decimal(),
|
|
25249
|
-
duties: factories.integer(),
|
|
25250
|
-
import_taxes: factories.integer(),
|
|
25251
|
-
mor_fee: factories.integer(),
|
|
25252
|
-
fx_fee: factories.integer(),
|
|
25253
|
-
}); },
|
|
25254
25396
|
'io.flow.stripe.v0.models.customer': function () { return ({
|
|
25255
25397
|
id: factories.string(),
|
|
25256
25398
|
object: factories.string(),
|
|
@@ -26144,6 +26286,22 @@ var factories = {
|
|
|
26144
26286
|
]);
|
|
26145
26287
|
return f();
|
|
26146
26288
|
},
|
|
26289
|
+
'io.flow.stripe.v0.unions.connect_report_reporting_category': function () {
|
|
26290
|
+
var f = faker.helpers.arrayElement([function () { return ({
|
|
26291
|
+
discriminator: 'connect_report_payment_reporting_category',
|
|
26292
|
+
value: factories['io.flow.stripe.v0.enums.connect_report_payment_reporting_category'](),
|
|
26293
|
+
}); }, function () { return ({
|
|
26294
|
+
discriminator: 'connect_report_balance_reporting_category',
|
|
26295
|
+
value: factories['io.flow.stripe.v0.enums.connect_report_balance_reporting_category'](),
|
|
26296
|
+
}); }, function () { return ({
|
|
26297
|
+
discriminator: 'connect_report_issuing_reporting_category',
|
|
26298
|
+
value: factories['io.flow.stripe.v0.enums.connect_report_issuing_reporting_category'](),
|
|
26299
|
+
}); }, function () { return ({
|
|
26300
|
+
discriminator: 'connect_report_connect_reporting_category',
|
|
26301
|
+
value: factories['io.flow.stripe.v0.enums.connect_report_connect_reporting_category'](),
|
|
26302
|
+
}); }]);
|
|
26303
|
+
return f();
|
|
26304
|
+
},
|
|
26147
26305
|
'io.flow.stripe.v0.unions.payment_method_data': function () {
|
|
26148
26306
|
var f = faker.helpers.arrayElement([
|
|
26149
26307
|
function () { return factories['io.flow.stripe.v0.models.payment_method_data_card'](); },
|
|
@@ -26933,6 +27091,7 @@ export var makeComplianceData = function () { return factories['io.flow.internal
|
|
|
26933
27091
|
export var makeComplianceForm = function () { return factories['io.flow.internal.v0.unions.compliance_form'](); };
|
|
26934
27092
|
export var makeComplianceType = function () { return factories['io.flow.internal.v0.enums.compliance_type'](); };
|
|
26935
27093
|
export var makeComponents = function () { return factories['io.flow.internal.v0.models.components'](); };
|
|
27094
|
+
export var makeConnectReportTransferType = function () { return factories['io.flow.internal.v0.enums.connect_report_transfer_type'](); };
|
|
26936
27095
|
export var makeConsoleLabelRequestForm = function () { return factories['io.flow.internal.v0.models.console_label_request_form'](); };
|
|
26937
27096
|
export var makeConsoleLabelValidationForm = function () { return factories['io.flow.internal.v0.unions.console_label_validation_form'](); };
|
|
26938
27097
|
export var makeConsoleMarkUnresolvableForm = function () { return factories['io.flow.internal.v0.models.console_mark_unresolvable_form'](); };
|
|
@@ -27487,6 +27646,7 @@ export var makeMerchantGuidAssignmentDeleted = function () { return factories['i
|
|
|
27487
27646
|
export var makeMerchantGuidAssignmentUpserted = function () { return factories['io.flow.internal.v0.models.merchant_guid_assignment_upserted'](); };
|
|
27488
27647
|
export var makeMerchantHubOverride = function () { return factories['io.flow.internal.v0.models.merchant_hub_override'](); };
|
|
27489
27648
|
export var makeMerchantHubOverrideForm = function () { return factories['io.flow.internal.v0.models.merchant_hub_override_form'](); };
|
|
27649
|
+
export var makeMerchantOfRecord = function () { return factories['io.flow.internal.v0.enums.merchant_of_record'](); };
|
|
27490
27650
|
export var makeMerchantOfRecordEntitySettings = function () { return factories['io.flow.internal.v0.models.merchant_of_record_entity_settings'](); };
|
|
27491
27651
|
export var makeMerchantOfRecordEntitySettingsForm = function () { return factories['io.flow.internal.v0.models.merchant_of_record_entity_settings_form'](); };
|
|
27492
27652
|
export var makeMerchantOverride = function () { return factories['io.flow.internal.v0.models.merchant_override'](); };
|
|
@@ -27681,6 +27841,9 @@ export var makePartnerOrganizationSettings = function () { return factories['io.
|
|
|
27681
27841
|
export var makePartnerOrganizationSettingsDeleted = function () { return factories['io.flow.internal.v0.models.partner_organization_settings_deleted'](); };
|
|
27682
27842
|
export var makePartnerOrganizationSettingsForm = function () { return factories['io.flow.internal.v0.models.partner_organization_settings_form'](); };
|
|
27683
27843
|
export var makePartnerOrganizationSettingsUpserted = function () { return factories['io.flow.internal.v0.models.partner_organization_settings_upserted'](); };
|
|
27844
|
+
export var makePartnerRequest = function () { return factories['io.flow.internal.v0.models.partner_request'](); };
|
|
27845
|
+
export var makePartnerRequestDeleted = function () { return factories['io.flow.internal.v0.models.partner_request_deleted'](); };
|
|
27846
|
+
export var makePartnerRequestUpserted = function () { return factories['io.flow.internal.v0.models.partner_request_upserted'](); };
|
|
27684
27847
|
export var makePartnerTrackingSubscriptionDeleted = function () { return factories['io.flow.internal.v0.models.partner_tracking_subscription_deleted'](); };
|
|
27685
27848
|
export var makePartnerTrackingSubscriptionUpserted = function () { return factories['io.flow.internal.v0.models.partner_tracking_subscription_upserted'](); };
|
|
27686
27849
|
export var makePassphrase = function () { return factories['io.flow.internal.v0.models.passphrase'](); };
|
|
@@ -28016,6 +28179,9 @@ export var makeShopifyChannelOrganizationTokens = function () { return factories
|
|
|
28016
28179
|
export var makeShopifyCheckInventoryError = function () { return factories['io.flow.internal.v0.models.shopify_check_inventory_error'](); };
|
|
28017
28180
|
export var makeShopifyCheckInventoryErrorCode = function () { return factories['io.flow.internal.v0.enums.shopify_check_inventory_error_code'](); };
|
|
28018
28181
|
export var makeShopifyCodeForm = function () { return factories['io.flow.internal.v0.models.shopify_code_form'](); };
|
|
28182
|
+
export var makeShopifyDispute = function () { return factories['io.flow.internal.v0.models.shopify_dispute'](); };
|
|
28183
|
+
export var makeShopifyDisputeDeleted = function () { return factories['io.flow.internal.v0.models.shopify_dispute_deleted'](); };
|
|
28184
|
+
export var makeShopifyDisputeUpserted = function () { return factories['io.flow.internal.v0.models.shopify_dispute_upserted'](); };
|
|
28019
28185
|
export var makeShopifyExperienceShortId = function () { return factories['io.flow.internal.v0.models.shopify_experience_short_id'](); };
|
|
28020
28186
|
export var makeShopifyExperienceShortIdDeleted = function () { return factories['io.flow.internal.v0.models.shopify_experience_short_id_deleted'](); };
|
|
28021
28187
|
export var makeShopifyExperienceShortIdUpserted = function () { return factories['io.flow.internal.v0.models.shopify_experience_short_id_upserted'](); };
|
|
@@ -28209,6 +28375,7 @@ export var makeStripeCaptureDeleted = function () { return factories['io.flow.in
|
|
|
28209
28375
|
export var makeStripeCaptureUpserted = function () { return factories['io.flow.internal.v0.models.stripe_capture_upserted'](); };
|
|
28210
28376
|
export var makeStripeConnectReportRecord = function () { return factories['io.flow.internal.v0.models.stripe_connect_report_record'](); };
|
|
28211
28377
|
export var makeStripeConnectReportRecordDeleted = function () { return factories['io.flow.internal.v0.models.stripe_connect_report_record_deleted'](); };
|
|
28378
|
+
export var makeStripeConnectReportRecordPaymentMetadata = function () { return factories['io.flow.internal.v0.models.stripe_connect_report_record_payment_metadata'](); };
|
|
28212
28379
|
export var makeStripeConnectReportRecordUpserted = function () { return factories['io.flow.internal.v0.models.stripe_connect_report_record_upserted'](); };
|
|
28213
28380
|
export var makeStripeDisputeDeleted = function () { return factories['io.flow.internal.v0.models.stripe_dispute_deleted'](); };
|
|
28214
28381
|
export var makeStripeDisputeUpserted = function () { return factories['io.flow.internal.v0.models.stripe_dispute_upserted'](); };
|
|
@@ -399,6 +399,7 @@ export declare const makeComplianceData: () => io.flow.internal.v0.models.WasteE
|
|
|
399
399
|
export declare const makeComplianceForm: () => io.flow.internal.v0.models.WasteElectricalAndElectronicEquipmentComplianceForm;
|
|
400
400
|
export declare const makeComplianceType: () => "weee";
|
|
401
401
|
export declare const makeComponents: () => io.flow.internal.v0.models.Components;
|
|
402
|
+
export declare const makeConnectReportTransferType: () => io.flow.internal.v0.enums.ConnectReportTransferType;
|
|
402
403
|
export declare const makeConsoleLabelRequestForm: () => io.flow.internal.v0.models.ConsoleLabelRequestForm;
|
|
403
404
|
export declare const makeConsoleLabelValidationForm: () => io.flow.internal.v0.unions.ConsoleLabelValidationForm;
|
|
404
405
|
export declare const makeConsoleMarkUnresolvableForm: () => io.flow.internal.v0.models.ConsoleMarkUnresolvableForm;
|
|
@@ -953,6 +954,7 @@ export declare const makeMerchantGuidAssignmentDeleted: () => io.flow.internal.v
|
|
|
953
954
|
export declare const makeMerchantGuidAssignmentUpserted: () => io.flow.internal.v0.models.MerchantGuidAssignmentUpserted;
|
|
954
955
|
export declare const makeMerchantHubOverride: () => io.flow.internal.v0.models.MerchantHubOverride;
|
|
955
956
|
export declare const makeMerchantHubOverrideForm: () => io.flow.internal.v0.models.MerchantHubOverrideForm;
|
|
957
|
+
export declare const makeMerchantOfRecord: () => io.flow.internal.v0.enums.MerchantOfRecord;
|
|
956
958
|
export declare const makeMerchantOfRecordEntitySettings: () => io.flow.internal.v0.models.MerchantOfRecordEntitySettings;
|
|
957
959
|
export declare const makeMerchantOfRecordEntitySettingsForm: () => io.flow.internal.v0.models.MerchantOfRecordEntitySettingsForm;
|
|
958
960
|
export declare const makeMerchantOverride: () => io.flow.internal.v0.models.MerchantOverride;
|
|
@@ -1147,6 +1149,9 @@ export declare const makePartnerOrganizationSettings: () => io.flow.internal.v0.
|
|
|
1147
1149
|
export declare const makePartnerOrganizationSettingsDeleted: () => io.flow.internal.v0.models.PartnerOrganizationSettingsDeleted;
|
|
1148
1150
|
export declare const makePartnerOrganizationSettingsForm: () => io.flow.internal.v0.models.PartnerOrganizationSettingsForm;
|
|
1149
1151
|
export declare const makePartnerOrganizationSettingsUpserted: () => io.flow.internal.v0.models.PartnerOrganizationSettingsUpserted;
|
|
1152
|
+
export declare const makePartnerRequest: () => io.flow.internal.v0.models.PartnerRequest;
|
|
1153
|
+
export declare const makePartnerRequestDeleted: () => io.flow.internal.v0.models.PartnerRequestDeleted;
|
|
1154
|
+
export declare const makePartnerRequestUpserted: () => io.flow.internal.v0.models.PartnerRequestUpserted;
|
|
1150
1155
|
export declare const makePartnerTrackingSubscriptionDeleted: () => io.flow.internal.v0.models.PartnerTrackingSubscriptionDeleted;
|
|
1151
1156
|
export declare const makePartnerTrackingSubscriptionUpserted: () => io.flow.internal.v0.models.PartnerTrackingSubscriptionUpserted;
|
|
1152
1157
|
export declare const makePassphrase: () => io.flow.internal.v0.models.Passphrase;
|
|
@@ -1482,6 +1487,9 @@ export declare const makeShopifyChannelOrganizationTokens: () => io.flow.interna
|
|
|
1482
1487
|
export declare const makeShopifyCheckInventoryError: () => io.flow.internal.v0.models.ShopifyCheckInventoryError;
|
|
1483
1488
|
export declare const makeShopifyCheckInventoryErrorCode: () => "inventory_out_of_stock";
|
|
1484
1489
|
export declare const makeShopifyCodeForm: () => io.flow.internal.v0.models.ShopifyCodeForm;
|
|
1490
|
+
export declare const makeShopifyDispute: () => io.flow.internal.v0.models.ShopifyDispute;
|
|
1491
|
+
export declare const makeShopifyDisputeDeleted: () => io.flow.internal.v0.models.ShopifyDisputeDeleted;
|
|
1492
|
+
export declare const makeShopifyDisputeUpserted: () => io.flow.internal.v0.models.ShopifyDisputeUpserted;
|
|
1485
1493
|
export declare const makeShopifyExperienceShortId: () => io.flow.internal.v0.models.ShopifyExperienceShortId;
|
|
1486
1494
|
export declare const makeShopifyExperienceShortIdDeleted: () => io.flow.internal.v0.models.ShopifyExperienceShortIdDeleted;
|
|
1487
1495
|
export declare const makeShopifyExperienceShortIdUpserted: () => io.flow.internal.v0.models.ShopifyExperienceShortIdUpserted;
|
|
@@ -1675,6 +1683,7 @@ export declare const makeStripeCaptureDeleted: () => io.flow.internal.v0.models.
|
|
|
1675
1683
|
export declare const makeStripeCaptureUpserted: () => io.flow.internal.v0.models.StripeCaptureUpserted;
|
|
1676
1684
|
export declare const makeStripeConnectReportRecord: () => io.flow.internal.v0.models.StripeConnectReportRecord;
|
|
1677
1685
|
export declare const makeStripeConnectReportRecordDeleted: () => io.flow.internal.v0.models.StripeConnectReportRecordDeleted;
|
|
1686
|
+
export declare const makeStripeConnectReportRecordPaymentMetadata: () => io.flow.internal.v0.models.StripeConnectReportRecordPaymentMetadata;
|
|
1678
1687
|
export declare const makeStripeConnectReportRecordUpserted: () => io.flow.internal.v0.models.StripeConnectReportRecordUpserted;
|
|
1679
1688
|
export declare const makeStripeDisputeDeleted: () => io.flow.internal.v0.models.StripeDisputeDeleted;
|
|
1680
1689
|
export declare const makeStripeDisputeUpserted: () => io.flow.internal.v0.models.StripeDisputeUpserted;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/api-internal-factories",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.123",
|
|
4
4
|
"description": "Flow API internal mock data factories",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"flow",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"@faker-js/faker": "^6.2.0",
|
|
38
38
|
"@flowio/api-types": "*"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "20eb3ad55f76873162f52f64cb42347be379f34e"
|
|
41
41
|
}
|