@flowio/api-factories 0.0.48 → 0.0.50
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 -68
- package/dist/esm/api.js +167 -32
- package/dist/types/api.d.ts +25 -5
- package/package.json +2 -2
- package/src/api.ts +187 -33
package/dist/esm/api.js
CHANGED
|
@@ -25,7 +25,7 @@ var factories = {
|
|
|
25
25
|
string: function () { return faker.datatype.string(); },
|
|
26
26
|
unit: function () { return undefined; },
|
|
27
27
|
uuid: function () { return faker.datatype.uuid(); },
|
|
28
|
-
'io.flow.apple.pay.v0.enums.apple_pay_contact_field': function () { return faker.helpers.arrayElement(['email', 'name', 'phone', '
|
|
28
|
+
'io.flow.apple.pay.v0.enums.apple_pay_contact_field': function () { return faker.helpers.arrayElement(['email', 'name', 'phone', 'postalAddress', 'phoneticName']); },
|
|
29
29
|
'io.flow.apple.pay.v0.enums.apple_pay_line_item_type': function () { return faker.helpers.arrayElement(['final', 'pending']); },
|
|
30
30
|
'io.flow.apple.pay.v0.enums.apple_pay_merchant_capability': function () { return faker.helpers.arrayElement(['supports3DS', 'supportsCredit', 'supportsDebit', 'supportsEMV']); },
|
|
31
31
|
'io.flow.apple.pay.v0.enums.apple_pay_shipping_type': function () { return faker.helpers.arrayElement(['shipping', 'delivery', 'store_pickup', 'service_pickup']); },
|
|
@@ -41,7 +41,7 @@ var factories = {
|
|
|
41
41
|
'io.flow.apple.pay.v0.models.apple_pay_line_item': function () { return ({
|
|
42
42
|
label: factories.string(),
|
|
43
43
|
type: factories['io.flow.apple.pay.v0.enums.apple_pay_line_item_type'](),
|
|
44
|
-
amount: factories.
|
|
44
|
+
amount: factories.string(),
|
|
45
45
|
}); },
|
|
46
46
|
'io.flow.apple.pay.v0.models.apple_pay_payment_contact': function () { return ({
|
|
47
47
|
email_address: factories.string(),
|
|
@@ -88,7 +88,7 @@ var factories = {
|
|
|
88
88
|
'io.flow.apple.pay.v0.models.apple_pay_shipping_method': function () { return ({
|
|
89
89
|
label: factories.string(),
|
|
90
90
|
detail: factories.string(),
|
|
91
|
-
amount: factories.
|
|
91
|
+
amount: factories.string(),
|
|
92
92
|
identifier: factories.string(),
|
|
93
93
|
}); },
|
|
94
94
|
'io.flow.google.pay.v0.enums.auth_method': function () { return faker.helpers.arrayElement(['PAN_ONLY', 'CRYPTOGRAM_3DS']); },
|
|
@@ -821,7 +821,6 @@ var factories = {
|
|
|
821
821
|
id: factories.long(),
|
|
822
822
|
quantity: factories.long(),
|
|
823
823
|
fulfillable_quantity: factories.long(),
|
|
824
|
-
fulfillment_service: factories.string(),
|
|
825
824
|
fulfillment_status: factories['io.flow.shopify.external.v0.enums.fulfillment_status_type'](),
|
|
826
825
|
grams: factories.double(),
|
|
827
826
|
price: factories.string(),
|
|
@@ -841,7 +840,6 @@ var factories = {
|
|
|
841
840
|
}); },
|
|
842
841
|
'io.flow.shopify.external.v0.models.shopify_line_item_form': function () { return ({
|
|
843
842
|
fulfillable_quantity: factories.long(),
|
|
844
|
-
fulfillment_service: factories.string(),
|
|
845
843
|
fulfillment_status: factories['io.flow.shopify.external.v0.enums.fulfillment_status_type'](),
|
|
846
844
|
grams: factories.double(),
|
|
847
845
|
price: factories.string(),
|
|
@@ -1007,7 +1005,6 @@ var factories = {
|
|
|
1007
1005
|
title: factories.string(),
|
|
1008
1006
|
tax_lines: arrayOf(function () { return factories['io.flow.shopify.external.v0.models.shopify_tax_line'](); }),
|
|
1009
1007
|
carrier_identifier: factories.string(),
|
|
1010
|
-
requested_fulfillment_service_id: factories.string(),
|
|
1011
1008
|
}); },
|
|
1012
1009
|
'io.flow.shopify.external.v0.models.shopify_tax_line': function () { return ({
|
|
1013
1010
|
price: factories.string(),
|
|
@@ -1902,7 +1899,6 @@ var factories = {
|
|
|
1902
1899
|
'io.flow.v0.enums.address_verification_result_field_code': function () { return faker.helpers.arrayElement(['matched', 'not_available', 'not_checked', 'not_matched']); },
|
|
1903
1900
|
'io.flow.v0.enums.adjustment_reason_key': function () { return faker.helpers.arrayElement(['duty_deminimis', 'vat_deminimis']); },
|
|
1904
1901
|
'io.flow.v0.enums.aggregate': function () { return faker.helpers.arrayElement(['maximum', 'minimum']); },
|
|
1905
|
-
'io.flow.v0.enums.attachment_type': function () { return faker.helpers.arrayElement(['csv']); },
|
|
1906
1902
|
'io.flow.v0.enums.attribute_data_type': function () { return faker.helpers.arrayElement(['boolean', 'integer', 'decimal', 'string', 'json_array']); },
|
|
1907
1903
|
'io.flow.v0.enums.attribute_intent': function () { return faker.helpers.arrayElement([
|
|
1908
1904
|
'brand',
|
|
@@ -2068,6 +2064,7 @@ var factories = {
|
|
|
2068
2064
|
'io.flow.v0.enums.entity_identifier_type': function () { return faker.helpers.arrayElement(['ioss', 'voec']); },
|
|
2069
2065
|
'io.flow.v0.enums.environment': function () { return faker.helpers.arrayElement(['sandbox', 'production']); },
|
|
2070
2066
|
'io.flow.v0.enums.event_type': function () { return faker.helpers.arrayElement([
|
|
2067
|
+
'test_upserted',
|
|
2071
2068
|
'transaction_upserted',
|
|
2072
2069
|
'organization_transaction_upserted',
|
|
2073
2070
|
'organization_transaction_deleted',
|
|
@@ -2556,6 +2553,19 @@ var factories = {
|
|
|
2556
2553
|
'io.flow.v0.enums.payment_method_data_option_type': function () { return faker.helpers.arrayElement(['ideal_issuer_option']); },
|
|
2557
2554
|
'io.flow.v0.enums.payment_method_rule_content_key': function () { return faker.helpers.arrayElement(['description']); },
|
|
2558
2555
|
'io.flow.v0.enums.payment_method_type': function () { return faker.helpers.arrayElement(['card', 'online', 'offline']); },
|
|
2556
|
+
'io.flow.v0.enums.payment_request_review_check_status': function () { return faker.helpers.arrayElement(['passed', 'failed']); },
|
|
2557
|
+
'io.flow.v0.enums.payment_request_review_check_type': function () { return faker.helpers.arrayElement([
|
|
2558
|
+
'restricted_party_screening',
|
|
2559
|
+
'fraud_suspicious_behavior',
|
|
2560
|
+
'fraud_suspicious_past_activity',
|
|
2561
|
+
'fraud_risky_velocity',
|
|
2562
|
+
'fraud_previous_chargebacks',
|
|
2563
|
+
'order_restricted_goods',
|
|
2564
|
+
'order_unsupported_destination',
|
|
2565
|
+
'order_missing_information',
|
|
2566
|
+
'order_domestic',
|
|
2567
|
+
]); },
|
|
2568
|
+
'io.flow.v0.enums.payment_request_review_status': function () { return faker.helpers.arrayElement(['pending', 'approved', 'rejected']); },
|
|
2559
2569
|
'io.flow.v0.enums.payment_source_confirmation_action_type': function () { return faker.helpers.arrayElement(['cvv', 'billing_address', 'number']); },
|
|
2560
2570
|
'io.flow.v0.enums.payment_status': function () { return faker.helpers.arrayElement([
|
|
2561
2571
|
'requires_payment_method',
|
|
@@ -2581,7 +2591,8 @@ var factories = {
|
|
|
2581
2591
|
'afterpay',
|
|
2582
2592
|
'bancontact',
|
|
2583
2593
|
]); },
|
|
2584
|
-
'io.flow.v0.enums.
|
|
2594
|
+
'io.flow.v0.enums.payout_attachment_type': function () { return faker.helpers.arrayElement(['transactions']); },
|
|
2595
|
+
'io.flow.v0.enums.payout_status_failure_code': function () { return faker.helpers.arrayElement(['invalid_account_number', 'could_not_process']); },
|
|
2585
2596
|
'io.flow.v0.enums.permitted_http_method': function () { return faker.helpers.arrayElement(['GET', 'POST', 'PUT', 'DELETE', 'PATCH']); },
|
|
2586
2597
|
'io.flow.v0.enums.physical_delivery_special_serivce': function () { return faker.helpers.arrayElement(['cold_storage', 'hazardous', 'perishable']); },
|
|
2587
2598
|
'io.flow.v0.enums.postal_type': function () { return faker.helpers.arrayElement(['eircode', 'pin', 'postal', 'zip']); },
|
|
@@ -2688,6 +2699,7 @@ var factories = {
|
|
|
2688
2699
|
'io.flow.v0.enums.shopify_localization_method': function () { return faker.helpers.arrayElement(['api', 'ssr']); },
|
|
2689
2700
|
'io.flow.v0.enums.shopify_sync_check': function () { return faker.helpers.arrayElement(['localized_variants', 'flow_variant_metafields']); },
|
|
2690
2701
|
'io.flow.v0.enums.sort_direction': function () { return faker.helpers.arrayElement(['ascending', 'descending']); },
|
|
2702
|
+
'io.flow.v0.enums.statement_attachment_type': function () { return faker.helpers.arrayElement(['csv']); },
|
|
2691
2703
|
'io.flow.v0.enums.strategy': function () { return faker.helpers.arrayElement(['range', 'from', 'to']); },
|
|
2692
2704
|
'io.flow.v0.enums.subcatalog_item_status': function () { return faker.helpers.arrayElement(['excluded', 'included', 'restricted']); },
|
|
2693
2705
|
'io.flow.v0.enums.surcharge_responsible_party': function () { return faker.helpers.arrayElement(['organization', 'customer']); },
|
|
@@ -3163,12 +3175,17 @@ var factories = {
|
|
|
3163
3175
|
validation_url: factories.string(),
|
|
3164
3176
|
display_name: factories.string(),
|
|
3165
3177
|
}); },
|
|
3178
|
+
'io.flow.v0.models.applepay_sdk_authorization_result_action_details': function () { return ({
|
|
3179
|
+
discriminator: 'applepay_sdk_authorization_result_action_details',
|
|
3180
|
+
merchant_identifier: factories.string(),
|
|
3181
|
+
payment_data_request: factories.object(),
|
|
3182
|
+
}); },
|
|
3166
3183
|
'io.flow.v0.models.at_cost': function () { return ({
|
|
3167
3184
|
discriminator: 'at_cost',
|
|
3168
3185
|
ignore: factories.string(),
|
|
3169
3186
|
}); },
|
|
3170
3187
|
'io.flow.v0.models.attachment': function () { return ({
|
|
3171
|
-
type: factories['io.flow.v0.enums.
|
|
3188
|
+
type: factories['io.flow.v0.enums.statement_attachment_type'](),
|
|
3172
3189
|
url: factories.string(),
|
|
3173
3190
|
}); },
|
|
3174
3191
|
'io.flow.v0.models.attribute': function () { return ({
|
|
@@ -3458,7 +3475,6 @@ var factories = {
|
|
|
3458
3475
|
b2b_invoice: factories['io.flow.v0.models.b2b_invoice'](),
|
|
3459
3476
|
}); },
|
|
3460
3477
|
'io.flow.v0.models.bank_account_form': function () { return ({
|
|
3461
|
-
last4: factories.string(),
|
|
3462
3478
|
info: factories['io.flow.v0.unions.bank_account_info'](),
|
|
3463
3479
|
}); },
|
|
3464
3480
|
'io.flow.v0.models.bank_account_info_usa': function () { return ({
|
|
@@ -3469,6 +3485,9 @@ var factories = {
|
|
|
3469
3485
|
'io.flow.v0.models.bank_account_reference': function () { return ({
|
|
3470
3486
|
id: factories.string(),
|
|
3471
3487
|
}); },
|
|
3488
|
+
'io.flow.v0.models.bank_account_summary': function () { return ({
|
|
3489
|
+
last4: factories.string(),
|
|
3490
|
+
}); },
|
|
3472
3491
|
'io.flow.v0.models.behavior_audit': function () { return ({
|
|
3473
3492
|
behavior: factories['io.flow.v0.enums.flow_behavior'](),
|
|
3474
3493
|
authentication_techniques: arrayOf(function () { return factories['io.flow.v0.enums.authentication_technique'](); }),
|
|
@@ -3958,6 +3977,11 @@ var factories = {
|
|
|
3958
3977
|
'io.flow.v0.models.channel_authorization_form': function () { return ({
|
|
3959
3978
|
channel_id: factories.string(),
|
|
3960
3979
|
}); },
|
|
3980
|
+
'io.flow.v0.models.channel_bank_account': function () { return ({
|
|
3981
|
+
id: factories.string(),
|
|
3982
|
+
key: factories.string(),
|
|
3983
|
+
last4: factories.string(),
|
|
3984
|
+
}); },
|
|
3961
3985
|
'io.flow.v0.models.channel_currency': function () { return ({
|
|
3962
3986
|
id: factories.string(),
|
|
3963
3987
|
currency: factories.string(),
|
|
@@ -3976,6 +4000,10 @@ var factories = {
|
|
|
3976
4000
|
timestamp: factories.date_time_iso_8601(),
|
|
3977
4001
|
channel_currency: factories['io.flow.v0.models.channel_currency'](),
|
|
3978
4002
|
}); },
|
|
4003
|
+
'io.flow.v0.models.channel_default_bank_account': function () { return ({
|
|
4004
|
+
id: factories.string(),
|
|
4005
|
+
bank_account: factories['io.flow.v0.models.bank_account_reference'](),
|
|
4006
|
+
}); },
|
|
3979
4007
|
'io.flow.v0.models.channel_deleted': function () { return ({
|
|
3980
4008
|
discriminator: 'channel_deleted',
|
|
3981
4009
|
event_id: factories.string(),
|
|
@@ -4024,6 +4052,16 @@ var factories = {
|
|
|
4024
4052
|
timestamp: factories.date_time_iso_8601(),
|
|
4025
4053
|
channel_organization: factories['io.flow.v0.models.channel_organization'](),
|
|
4026
4054
|
}); },
|
|
4055
|
+
'io.flow.v0.models.channel_payout': function () { return ({
|
|
4056
|
+
id: factories.string(),
|
|
4057
|
+
account: factories['io.flow.v0.models.account_reference'](),
|
|
4058
|
+
status: factories['io.flow.v0.unions.payout_status'](),
|
|
4059
|
+
bank_account: factories['io.flow.v0.models.bank_account_summary'](),
|
|
4060
|
+
amount: factories.decimal(),
|
|
4061
|
+
attachments: arrayOf(function () { return factories['io.flow.v0.models.payout_attachment'](); }),
|
|
4062
|
+
created_at: factories.date_time_iso_8601(),
|
|
4063
|
+
updated_at: factories.date_time_iso_8601(),
|
|
4064
|
+
}); },
|
|
4027
4065
|
'io.flow.v0.models.channel_rate': function () { return ({
|
|
4028
4066
|
placeholder: factories.string(),
|
|
4029
4067
|
}); },
|
|
@@ -4073,12 +4111,13 @@ var factories = {
|
|
|
4073
4111
|
user: factories['io.flow.v0.models.user_reference'](),
|
|
4074
4112
|
}); },
|
|
4075
4113
|
'io.flow.v0.models.channel_transaction': function () { return ({
|
|
4114
|
+
statement: factories['io.flow.v0.models.billing_channel_statement_reference'](),
|
|
4076
4115
|
id: factories.string(),
|
|
4077
4116
|
order: factories['io.flow.v0.models.billing_channel_order_summary'](),
|
|
4078
|
-
statement: factories['io.flow.v0.models.billing_channel_statement_reference'](),
|
|
4079
4117
|
payment_request: factories['io.flow.v0.models.billing_channel_payment_request_reference'](),
|
|
4080
4118
|
currency: factories.string(),
|
|
4081
4119
|
source: factories['io.flow.v0.enums.transaction_source'](),
|
|
4120
|
+
parent: factories['io.flow.v0.models.parent_transaction_summary'](),
|
|
4082
4121
|
gross: factories.decimal(),
|
|
4083
4122
|
fees: arrayOf(function () { return factories['io.flow.v0.models.fee_deduction'](); }),
|
|
4084
4123
|
withholdings: arrayOf(function () { return factories['io.flow.v0.models.withholding_deduction'](); }),
|
|
@@ -4086,6 +4125,7 @@ var factories = {
|
|
|
4086
4125
|
net: factories.decimal(),
|
|
4087
4126
|
identifiers: objectOf(function () { return factories.string(); }),
|
|
4088
4127
|
created_at: factories.date_time_iso_8601(),
|
|
4128
|
+
updated_at: factories.date_time_iso_8601(),
|
|
4089
4129
|
}); },
|
|
4090
4130
|
'io.flow.v0.models.channel_transaction_deleted': function () { return ({
|
|
4091
4131
|
discriminator: 'channel_transaction_deleted',
|
|
@@ -6859,10 +6899,6 @@ var factories = {
|
|
|
6859
6899
|
requested_quantity: factories.long(),
|
|
6860
6900
|
available_quantity: factories.long(),
|
|
6861
6901
|
}); },
|
|
6862
|
-
'io.flow.v0.models.no_payout': function () { return ({
|
|
6863
|
-
discriminator: 'no_payout',
|
|
6864
|
-
placeholder: factories.string(),
|
|
6865
|
-
}); },
|
|
6866
6902
|
'io.flow.v0.models.notification_deleted_v2': function () { return ({
|
|
6867
6903
|
discriminator: 'notification_deleted_v2',
|
|
6868
6904
|
event_id: factories.string(),
|
|
@@ -7637,6 +7673,7 @@ var factories = {
|
|
|
7637
7673
|
}); },
|
|
7638
7674
|
'io.flow.v0.models.organization_bank_account': function () { return ({
|
|
7639
7675
|
id: factories.string(),
|
|
7676
|
+
key: factories.string(),
|
|
7640
7677
|
last4: factories.string(),
|
|
7641
7678
|
}); },
|
|
7642
7679
|
'io.flow.v0.models.organization_configuration_reference': function () { return ({
|
|
@@ -7714,6 +7751,16 @@ var factories = {
|
|
|
7714
7751
|
organization: factories.string(),
|
|
7715
7752
|
organization_onboarding_state: factories['io.flow.v0.models.organization_onboarding_state'](),
|
|
7716
7753
|
}); },
|
|
7754
|
+
'io.flow.v0.models.organization_payout': function () { return ({
|
|
7755
|
+
id: factories.string(),
|
|
7756
|
+
account: factories['io.flow.v0.models.account_reference'](),
|
|
7757
|
+
status: factories['io.flow.v0.unions.payout_status'](),
|
|
7758
|
+
bank_account: factories['io.flow.v0.models.bank_account_summary'](),
|
|
7759
|
+
amount: factories.decimal(),
|
|
7760
|
+
attachments: arrayOf(function () { return factories['io.flow.v0.models.payout_attachment'](); }),
|
|
7761
|
+
created_at: factories.date_time_iso_8601(),
|
|
7762
|
+
updated_at: factories.date_time_iso_8601(),
|
|
7763
|
+
}); },
|
|
7717
7764
|
'io.flow.v0.models.organization_put_form': function () { return ({
|
|
7718
7765
|
name: factories.string(),
|
|
7719
7766
|
environment: factories['io.flow.v0.enums.environment'](),
|
|
@@ -7862,6 +7909,10 @@ var factories = {
|
|
|
7862
7909
|
name: factories.string(),
|
|
7863
7910
|
number: factories.string(),
|
|
7864
7911
|
}); },
|
|
7912
|
+
'io.flow.v0.models.parent_transaction_summary': function () { return ({
|
|
7913
|
+
id: factories.string(),
|
|
7914
|
+
source: factories['io.flow.v0.enums.transaction_source'](),
|
|
7915
|
+
}); },
|
|
7865
7916
|
'io.flow.v0.models.partner_center': function () { return ({
|
|
7866
7917
|
partner_reference: factories['io.flow.v0.models.partner_reference'](),
|
|
7867
7918
|
number: factories.string(),
|
|
@@ -8320,6 +8371,7 @@ var factories = {
|
|
|
8320
8371
|
payment_information: factories['io.flow.v0.models.payment_information'](),
|
|
8321
8372
|
supported_actions: arrayOf(function () { return factories['io.flow.v0.enums.payment_action_type'](); }),
|
|
8322
8373
|
payment_capture_option: factories['io.flow.v0.unions.payment_capture_option'](),
|
|
8374
|
+
review: factories['io.flow.v0.models.payment_request_review'](),
|
|
8323
8375
|
}); },
|
|
8324
8376
|
'io.flow.v0.models.payment_request_billing': function () { return ({
|
|
8325
8377
|
fees: factories['io.flow.v0.models.payment_request_billing_fees'](),
|
|
@@ -8353,6 +8405,14 @@ var factories = {
|
|
|
8353
8405
|
id: factories.string(),
|
|
8354
8406
|
reference: factories.string(),
|
|
8355
8407
|
}); },
|
|
8408
|
+
'io.flow.v0.models.payment_request_review': function () { return ({
|
|
8409
|
+
status: factories['io.flow.v0.enums.payment_request_review_status'](),
|
|
8410
|
+
checks: arrayOf(function () { return factories['io.flow.v0.models.payment_request_review_check'](); }),
|
|
8411
|
+
}); },
|
|
8412
|
+
'io.flow.v0.models.payment_request_review_check': function () { return ({
|
|
8413
|
+
type: factories['io.flow.v0.enums.payment_request_review_check_type'](),
|
|
8414
|
+
status: factories['io.flow.v0.enums.payment_request_review_check_status'](),
|
|
8415
|
+
}); },
|
|
8356
8416
|
'io.flow.v0.models.payment_request_upserted': function () { return ({
|
|
8357
8417
|
discriminator: 'payment_request_upserted',
|
|
8358
8418
|
event_id: factories.string(),
|
|
@@ -8397,15 +8457,38 @@ var factories = {
|
|
|
8397
8457
|
type: factories['io.flow.v0.enums.change_type'](),
|
|
8398
8458
|
payment: factories['io.flow.v0.unions.payment'](),
|
|
8399
8459
|
}); },
|
|
8400
|
-
'io.flow.v0.models.
|
|
8401
|
-
|
|
8402
|
-
|
|
8403
|
-
amount: factories.decimal(),
|
|
8404
|
-
sent_on: factories.date_time_iso_8601(),
|
|
8460
|
+
'io.flow.v0.models.payout_attachment': function () { return ({
|
|
8461
|
+
type: factories['io.flow.v0.enums.payout_attachment_type'](),
|
|
8462
|
+
url: factories.string(),
|
|
8405
8463
|
}); },
|
|
8406
|
-
'io.flow.v0.models.
|
|
8407
|
-
code:
|
|
8408
|
-
|
|
8464
|
+
'io.flow.v0.models.payout_status_failed': function () { return ({
|
|
8465
|
+
code: 'failed',
|
|
8466
|
+
timestamp: factories.date_time_iso_8601(),
|
|
8467
|
+
reason: factories['io.flow.v0.enums.payout_status_failure_code'](),
|
|
8468
|
+
}); },
|
|
8469
|
+
'io.flow.v0.models.payout_status_scheduled': function () { return ({
|
|
8470
|
+
code: 'scheduled',
|
|
8471
|
+
placeholder: factories.string(),
|
|
8472
|
+
}); },
|
|
8473
|
+
'io.flow.v0.models.payout_status_sent': function () { return ({
|
|
8474
|
+
code: 'sent',
|
|
8475
|
+
timestamp: factories.date_time_iso_8601(),
|
|
8476
|
+
}); },
|
|
8477
|
+
'io.flow.v0.models.payout_transaction': function () { return ({
|
|
8478
|
+
id: factories.string(),
|
|
8479
|
+
order: factories['io.flow.v0.models.billing_channel_order_summary'](),
|
|
8480
|
+
payment_request: factories['io.flow.v0.models.billing_channel_payment_request_reference'](),
|
|
8481
|
+
currency: factories.string(),
|
|
8482
|
+
source: factories['io.flow.v0.enums.transaction_source'](),
|
|
8483
|
+
parent: factories['io.flow.v0.models.parent_transaction_summary'](),
|
|
8484
|
+
gross: factories.decimal(),
|
|
8485
|
+
fees: arrayOf(function () { return factories['io.flow.v0.models.fee_deduction'](); }),
|
|
8486
|
+
withholdings: arrayOf(function () { return factories['io.flow.v0.models.withholding_deduction'](); }),
|
|
8487
|
+
discounts: arrayOf(function () { return factories['io.flow.v0.models.billing_discount'](); }),
|
|
8488
|
+
net: factories.decimal(),
|
|
8489
|
+
identifiers: objectOf(function () { return factories.string(); }),
|
|
8490
|
+
created_at: factories.date_time_iso_8601(),
|
|
8491
|
+
updated_at: factories.date_time_iso_8601(),
|
|
8409
8492
|
}); },
|
|
8410
8493
|
'io.flow.v0.models.paypal_authorization_details': function () { return ({
|
|
8411
8494
|
discriminator: 'paypal_authorization_details',
|
|
@@ -9620,13 +9703,23 @@ var factories = {
|
|
|
9620
9703
|
'io.flow.v0.models.session_visitor': function () { return ({
|
|
9621
9704
|
id: factories.string(),
|
|
9622
9705
|
}); },
|
|
9706
|
+
'io.flow.v0.models.settlement_no_payout': function () { return ({
|
|
9707
|
+
discriminator: 'no_payout',
|
|
9708
|
+
placeholder: factories.string(),
|
|
9709
|
+
}); },
|
|
9710
|
+
'io.flow.v0.models.settlement_payout': function () { return ({
|
|
9711
|
+
discriminator: 'payout',
|
|
9712
|
+
status: factories['io.flow.v0.unions.payout_status'](),
|
|
9713
|
+
amount: factories.decimal(),
|
|
9714
|
+
sent_on: factories.date_time_iso_8601(),
|
|
9715
|
+
}); },
|
|
9623
9716
|
'io.flow.v0.models.setup_blocked': function () { return ({
|
|
9624
9717
|
discriminator: 'setup_blocked',
|
|
9625
9718
|
reasons: arrayOf(function () { return factories['io.flow.v0.enums.onboarding_blocked_reason'](); }),
|
|
9626
9719
|
}); },
|
|
9627
9720
|
'io.flow.v0.models.setup_completed': function () { return ({
|
|
9628
9721
|
discriminator: 'setup_completed',
|
|
9629
|
-
|
|
9722
|
+
third_party_logistics_guid: factories.string(),
|
|
9630
9723
|
}); },
|
|
9631
9724
|
'io.flow.v0.models.setup_in_progress': function () { return ({
|
|
9632
9725
|
discriminator: 'setup_in_progress',
|
|
@@ -10534,6 +10627,16 @@ var factories = {
|
|
|
10534
10627
|
types: arrayOf(function () { return factories['io.flow.v0.enums.tax_report_type'](); }),
|
|
10535
10628
|
email_recipients: arrayOf(function () { return factories.string(); }),
|
|
10536
10629
|
}); },
|
|
10630
|
+
'io.flow.v0.models.test': function () { return ({
|
|
10631
|
+
id: factories.string(),
|
|
10632
|
+
}); },
|
|
10633
|
+
'io.flow.v0.models.test_upserted': function () { return ({
|
|
10634
|
+
discriminator: 'test_upserted',
|
|
10635
|
+
event_id: factories.string(),
|
|
10636
|
+
timestamp: factories.date_time_iso_8601(),
|
|
10637
|
+
organization: factories.string(),
|
|
10638
|
+
test: factories['io.flow.v0.models.test'](),
|
|
10639
|
+
}); },
|
|
10537
10640
|
'io.flow.v0.models.third_party_logistics_partner': function () { return ({
|
|
10538
10641
|
warehouse_address: factories['io.flow.v0.models.merchant_onboarding_address'](),
|
|
10539
10642
|
warehouse_url: factories.string(),
|
|
@@ -10815,12 +10918,13 @@ var factories = {
|
|
|
10815
10918
|
duty: factories['io.flow.v0.models.duty'](),
|
|
10816
10919
|
}); },
|
|
10817
10920
|
'io.flow.v0.models.transaction': function () { return ({
|
|
10921
|
+
statement: factories['io.flow.v0.models.billing_channel_statement_reference'](),
|
|
10818
10922
|
id: factories.string(),
|
|
10819
10923
|
order: factories['io.flow.v0.models.billing_channel_order_summary'](),
|
|
10820
|
-
statement: factories['io.flow.v0.models.billing_channel_statement_reference'](),
|
|
10821
10924
|
payment_request: factories['io.flow.v0.models.billing_channel_payment_request_reference'](),
|
|
10822
10925
|
currency: factories.string(),
|
|
10823
10926
|
source: factories['io.flow.v0.enums.transaction_source'](),
|
|
10927
|
+
parent: factories['io.flow.v0.models.parent_transaction_summary'](),
|
|
10824
10928
|
gross: factories.decimal(),
|
|
10825
10929
|
fees: arrayOf(function () { return factories['io.flow.v0.models.fee_deduction'](); }),
|
|
10826
10930
|
withholdings: arrayOf(function () { return factories['io.flow.v0.models.withholding_deduction'](); }),
|
|
@@ -10828,6 +10932,7 @@ var factories = {
|
|
|
10828
10932
|
net: factories.decimal(),
|
|
10829
10933
|
identifiers: objectOf(function () { return factories.string(); }),
|
|
10830
10934
|
created_at: factories.date_time_iso_8601(),
|
|
10935
|
+
updated_at: factories.date_time_iso_8601(),
|
|
10831
10936
|
}); },
|
|
10832
10937
|
'io.flow.v0.models.transaction_details_card': function () { return ({
|
|
10833
10938
|
type: 'card',
|
|
@@ -11136,6 +11241,7 @@ var factories = {
|
|
|
11136
11241
|
function () { return factories['io.flow.v0.models.stripe_authorization_result_action_details'](); },
|
|
11137
11242
|
function () { return factories['io.flow.v0.models.threeds_identify_action_details'](); },
|
|
11138
11243
|
function () { return factories['io.flow.v0.models.threeds_challenge_action_details'](); },
|
|
11244
|
+
function () { return factories['io.flow.v0.models.applepay_sdk_authorization_result_action_details'](); },
|
|
11139
11245
|
function () { return factories['io.flow.v0.models.klarna_sdk_authorization_result_action_details'](); },
|
|
11140
11246
|
function () { return factories['io.flow.v0.models.select_issuer_option_action_details'](); },
|
|
11141
11247
|
]);
|
|
@@ -11246,6 +11352,7 @@ var factories = {
|
|
|
11246
11352
|
},
|
|
11247
11353
|
'io.flow.v0.unions.event': function () {
|
|
11248
11354
|
var f = faker.helpers.arrayElement([
|
|
11355
|
+
function () { return factories['io.flow.v0.models.test_upserted'](); },
|
|
11249
11356
|
function () { return factories['io.flow.v0.models.transaction_upserted'](); },
|
|
11250
11357
|
function () { return factories['io.flow.v0.models.organization_transaction_upserted'](); },
|
|
11251
11358
|
function () { return factories['io.flow.v0.models.organization_transaction_deleted'](); },
|
|
@@ -11777,6 +11884,14 @@ var factories = {
|
|
|
11777
11884
|
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.card_payment_source_form'](); }]);
|
|
11778
11885
|
return f();
|
|
11779
11886
|
},
|
|
11887
|
+
'io.flow.v0.unions.payout_status': function () {
|
|
11888
|
+
var f = faker.helpers.arrayElement([
|
|
11889
|
+
function () { return factories['io.flow.v0.models.payout_status_scheduled'](); },
|
|
11890
|
+
function () { return factories['io.flow.v0.models.payout_status_sent'](); },
|
|
11891
|
+
function () { return factories['io.flow.v0.models.payout_status_failed'](); },
|
|
11892
|
+
]);
|
|
11893
|
+
return f();
|
|
11894
|
+
},
|
|
11780
11895
|
'io.flow.v0.unions.price_source': function () {
|
|
11781
11896
|
var f = faker.helpers.arrayElement([
|
|
11782
11897
|
function () { return factories['io.flow.v0.models.price_source_price_book'](); },
|
|
@@ -11896,8 +12011,8 @@ var factories = {
|
|
|
11896
12011
|
},
|
|
11897
12012
|
'io.flow.v0.unions.settlement': function () {
|
|
11898
12013
|
var f = faker.helpers.arrayElement([
|
|
11899
|
-
function () { return factories['io.flow.v0.models.
|
|
11900
|
-
function () { return factories['io.flow.v0.models.
|
|
12014
|
+
function () { return factories['io.flow.v0.models.settlement_no_payout'](); },
|
|
12015
|
+
function () { return factories['io.flow.v0.models.settlement_payout'](); },
|
|
11901
12016
|
]);
|
|
11902
12017
|
return f();
|
|
11903
12018
|
},
|
|
@@ -12054,9 +12169,9 @@ export var makeAmountMargin = function () { return factories['io.flow.v0.models.
|
|
|
12054
12169
|
export var makeAmountMarginForm = function () { return factories['io.flow.v0.models.amount_margin_form'](); };
|
|
12055
12170
|
export var makeAnalyticsExportType = function () { return factories['io.flow.v0.models.analytics_export_type'](); };
|
|
12056
12171
|
export var makeApplePayMerchantValidationPayload = function () { return factories['io.flow.v0.models.apple_pay_merchant_validation_payload'](); };
|
|
12172
|
+
export var makeApplepaySdkAuthorizationResultActionDetails = function () { return factories['io.flow.v0.models.applepay_sdk_authorization_result_action_details'](); };
|
|
12057
12173
|
export var makeAtCost = function () { return factories['io.flow.v0.models.at_cost'](); };
|
|
12058
12174
|
export var makeAttachment = function () { return factories['io.flow.v0.models.attachment'](); };
|
|
12059
|
-
export var makeAttachmentType = function () { return factories['io.flow.v0.enums.attachment_type'](); };
|
|
12060
12175
|
export var makeAttribute = function () { return factories['io.flow.v0.models.attribute'](); };
|
|
12061
12176
|
export var makeAttributeDataType = function () { return factories['io.flow.v0.enums.attribute_data_type'](); };
|
|
12062
12177
|
export var makeAttributeDeleted = function () { return factories['io.flow.v0.models.attribute_deleted'](); };
|
|
@@ -12121,6 +12236,7 @@ export var makeBankAccountForm = function () { return factories['io.flow.v0.mode
|
|
|
12121
12236
|
export var makeBankAccountInfo = function () { return factories['io.flow.v0.unions.bank_account_info'](); };
|
|
12122
12237
|
export var makeBankAccountInfoUsa = function () { return factories['io.flow.v0.models.bank_account_info_usa'](); };
|
|
12123
12238
|
export var makeBankAccountReference = function () { return factories['io.flow.v0.models.bank_account_reference'](); };
|
|
12239
|
+
export var makeBankAccountSummary = function () { return factories['io.flow.v0.models.bank_account_summary'](); };
|
|
12124
12240
|
export var makeBehaviorAudit = function () { return factories['io.flow.v0.models.behavior_audit'](); };
|
|
12125
12241
|
export var makeBillingAddress = function () { return factories['io.flow.v0.models.billing_address'](); };
|
|
12126
12242
|
export var makeBillingChannelOrderSummary = function () { return factories['io.flow.v0.models.billing_channel_order_summary'](); };
|
|
@@ -12209,10 +12325,12 @@ export var makeChangeType = function () { return factories['io.flow.v0.enums.cha
|
|
|
12209
12325
|
export var makeChannel = function () { return factories['io.flow.v0.models.channel'](); };
|
|
12210
12326
|
export var makeChannelAuthorization = function () { return factories['io.flow.v0.models.channel_authorization'](); };
|
|
12211
12327
|
export var makeChannelAuthorizationForm = function () { return factories['io.flow.v0.models.channel_authorization_form'](); };
|
|
12328
|
+
export var makeChannelBankAccount = function () { return factories['io.flow.v0.models.channel_bank_account'](); };
|
|
12212
12329
|
export var makeChannelCurrency = function () { return factories['io.flow.v0.models.channel_currency'](); };
|
|
12213
12330
|
export var makeChannelCurrencyCapability = function () { return factories['io.flow.v0.enums.channel_currency_capability'](); };
|
|
12214
12331
|
export var makeChannelCurrencyDeleted = function () { return factories['io.flow.v0.models.channel_currency_deleted'](); };
|
|
12215
12332
|
export var makeChannelCurrencyUpserted = function () { return factories['io.flow.v0.models.channel_currency_upserted'](); };
|
|
12333
|
+
export var makeChannelDefaultBankAccount = function () { return factories['io.flow.v0.models.channel_default_bank_account'](); };
|
|
12216
12334
|
export var makeChannelDeleted = function () { return factories['io.flow.v0.models.channel_deleted'](); };
|
|
12217
12335
|
export var makeChannelOrganization = function () { return factories['io.flow.v0.models.channel_organization'](); };
|
|
12218
12336
|
export var makeChannelOrganizationAuthorization = function () { return factories['io.flow.v0.models.channel_organization_authorization'](); };
|
|
@@ -12221,6 +12339,7 @@ export var makeChannelOrganizationDeleted = function () { return factories['io.f
|
|
|
12221
12339
|
export var makeChannelOrganizationForm = function () { return factories['io.flow.v0.models.channel_organization_form'](); };
|
|
12222
12340
|
export var makeChannelOrganizationPutForm = function () { return factories['io.flow.v0.models.channel_organization_put_form'](); };
|
|
12223
12341
|
export var makeChannelOrganizationUpserted = function () { return factories['io.flow.v0.models.channel_organization_upserted'](); };
|
|
12342
|
+
export var makeChannelPayout = function () { return factories['io.flow.v0.models.channel_payout'](); };
|
|
12224
12343
|
export var makeChannelRate = function () { return factories['io.flow.v0.models.channel_rate'](); };
|
|
12225
12344
|
export var makeChannelReference = function () { return factories['io.flow.v0.models.channel_reference'](); };
|
|
12226
12345
|
export var makeChannelStatement = function () { return factories['io.flow.v0.models.channel_statement'](); };
|
|
@@ -12808,7 +12927,6 @@ export var makeName = function () { return factories['io.flow.v0.models.name']()
|
|
|
12808
12927
|
export var makeNameForm = function () { return factories['io.flow.v0.models.name_form'](); };
|
|
12809
12928
|
export var makeNoInventoryReservationError = function () { return factories['io.flow.v0.models.no_inventory_reservation_error'](); };
|
|
12810
12929
|
export var makeNoInventoryReservationErrorItem = function () { return factories['io.flow.v0.models.no_inventory_reservation_error_item'](); };
|
|
12811
|
-
export var makeNoPayout = function () { return factories['io.flow.v0.models.no_payout'](); };
|
|
12812
12930
|
export var makeNotificationDeletedV2 = function () { return factories['io.flow.v0.models.notification_deleted_v2'](); };
|
|
12813
12931
|
export var makeNotificationUpsertedV2 = function () { return factories['io.flow.v0.models.notification_upserted_v2'](); };
|
|
12814
12932
|
export var makeNumberRange = function () { return factories['io.flow.v0.models.number_range'](); };
|
|
@@ -12972,6 +13090,7 @@ export var makeOrganizationOnboardingState = function () { return factories['io.
|
|
|
12972
13090
|
export var makeOrganizationOnboardingStateDeleted = function () { return factories['io.flow.v0.models.organization_onboarding_state_deleted'](); };
|
|
12973
13091
|
export var makeOrganizationOnboardingStateUpserted = function () { return factories['io.flow.v0.models.organization_onboarding_state_upserted'](); };
|
|
12974
13092
|
export var makeOrganizationPaymentMethodTag = function () { return factories['io.flow.v0.enums.organization_payment_method_tag'](); };
|
|
13093
|
+
export var makeOrganizationPayout = function () { return factories['io.flow.v0.models.organization_payout'](); };
|
|
12975
13094
|
export var makeOrganizationPutForm = function () { return factories['io.flow.v0.models.organization_put_form'](); };
|
|
12976
13095
|
export var makeOrganizationRatesData = function () { return factories['io.flow.v0.models.organization_rates_data'](); };
|
|
12977
13096
|
export var makeOrganizationRatesPublished = function () { return factories['io.flow.v0.models.organization_rates_published'](); };
|
|
@@ -12996,6 +13115,7 @@ export var makeOriginalPrices = function () { return factories['io.flow.v0.model
|
|
|
12996
13115
|
export var makeOutboundCartonFee = function () { return factories['io.flow.v0.models.outbound_carton_fee'](); };
|
|
12997
13116
|
export var makeOversizedShipmentRatecardFee = function () { return factories['io.flow.v0.models.oversized_shipment_ratecard_fee'](); };
|
|
12998
13117
|
export var makePackaging = function () { return factories['io.flow.v0.models.packaging'](); };
|
|
13118
|
+
export var makeParentTransactionSummary = function () { return factories['io.flow.v0.models.parent_transaction_summary'](); };
|
|
12999
13119
|
export var makePartnerCenter = function () { return factories['io.flow.v0.models.partner_center'](); };
|
|
13000
13120
|
export var makePartnerCenterFee = function () { return factories['io.flow.v0.unions.partner_center_fee'](); };
|
|
13001
13121
|
export var makePartnerCenterForm = function () { return factories['io.flow.v0.models.partner_center_form'](); };
|
|
@@ -13108,6 +13228,11 @@ export var makePaymentRequestBundle = function () { return factories['io.flow.v0
|
|
|
13108
13228
|
export var makePaymentRequestBundleForm = function () { return factories['io.flow.v0.models.payment_request_bundle_form'](); };
|
|
13109
13229
|
export var makePaymentRequestForm = function () { return factories['io.flow.v0.models.payment_request_form'](); };
|
|
13110
13230
|
export var makePaymentRequestReference = function () { return factories['io.flow.v0.models.payment_request_reference'](); };
|
|
13231
|
+
export var makePaymentRequestReview = function () { return factories['io.flow.v0.models.payment_request_review'](); };
|
|
13232
|
+
export var makePaymentRequestReviewCheck = function () { return factories['io.flow.v0.models.payment_request_review_check'](); };
|
|
13233
|
+
export var makePaymentRequestReviewCheckStatus = function () { return factories['io.flow.v0.enums.payment_request_review_check_status'](); };
|
|
13234
|
+
export var makePaymentRequestReviewCheckType = function () { return factories['io.flow.v0.enums.payment_request_review_check_type'](); };
|
|
13235
|
+
export var makePaymentRequestReviewStatus = function () { return factories['io.flow.v0.enums.payment_request_review_status'](); };
|
|
13111
13236
|
export var makePaymentRequestUpserted = function () { return factories['io.flow.v0.models.payment_request_upserted'](); };
|
|
13112
13237
|
export var makePaymentReversal = function () { return factories['io.flow.v0.models.payment_reversal'](); };
|
|
13113
13238
|
export var makePaymentReversalForm = function () { return factories['io.flow.v0.models.payment_reversal_form'](); };
|
|
@@ -13121,9 +13246,14 @@ export var makePaymentTax = function () { return factories['io.flow.v0.models.pa
|
|
|
13121
13246
|
export var makePaymentType = function () { return factories['io.flow.v0.enums.payment_type'](); };
|
|
13122
13247
|
export var makePaymentUpserted = function () { return factories['io.flow.v0.models.payment_upserted'](); };
|
|
13123
13248
|
export var makePaymentVersion = function () { return factories['io.flow.v0.models.payment_version'](); };
|
|
13124
|
-
export var
|
|
13125
|
-
export var
|
|
13126
|
-
export var
|
|
13249
|
+
export var makePayoutAttachment = function () { return factories['io.flow.v0.models.payout_attachment'](); };
|
|
13250
|
+
export var makePayoutAttachmentType = function () { return factories['io.flow.v0.enums.payout_attachment_type'](); };
|
|
13251
|
+
export var makePayoutStatus = function () { return factories['io.flow.v0.unions.payout_status'](); };
|
|
13252
|
+
export var makePayoutStatusFailed = function () { return factories['io.flow.v0.models.payout_status_failed'](); };
|
|
13253
|
+
export var makePayoutStatusFailureCode = function () { return factories['io.flow.v0.enums.payout_status_failure_code'](); };
|
|
13254
|
+
export var makePayoutStatusScheduled = function () { return factories['io.flow.v0.models.payout_status_scheduled'](); };
|
|
13255
|
+
export var makePayoutStatusSent = function () { return factories['io.flow.v0.models.payout_status_sent'](); };
|
|
13256
|
+
export var makePayoutTransaction = function () { return factories['io.flow.v0.models.payout_transaction'](); };
|
|
13127
13257
|
export var makePaypalAuthorizationDetails = function () { return factories['io.flow.v0.models.paypal_authorization_details'](); };
|
|
13128
13258
|
export var makePaypalAuthorizationForm = function () { return factories['io.flow.v0.models.paypal_authorization_form'](); };
|
|
13129
13259
|
export var makePeakSurchargeByWeightServiceFee = function () { return factories['io.flow.v0.models.peak_surcharge_by_weight_service_fee'](); };
|
|
@@ -13360,6 +13490,8 @@ export var makeSessionReference = function () { return factories['io.flow.v0.mod
|
|
|
13360
13490
|
export var makeSessionVisit = function () { return factories['io.flow.v0.models.session_visit'](); };
|
|
13361
13491
|
export var makeSessionVisitor = function () { return factories['io.flow.v0.models.session_visitor'](); };
|
|
13362
13492
|
export var makeSettlement = function () { return factories['io.flow.v0.unions.settlement'](); };
|
|
13493
|
+
export var makeSettlementNoPayout = function () { return factories['io.flow.v0.models.settlement_no_payout'](); };
|
|
13494
|
+
export var makeSettlementPayout = function () { return factories['io.flow.v0.models.settlement_payout'](); };
|
|
13363
13495
|
export var makeSetupBlocked = function () { return factories['io.flow.v0.models.setup_blocked'](); };
|
|
13364
13496
|
export var makeSetupCompleted = function () { return factories['io.flow.v0.models.setup_completed'](); };
|
|
13365
13497
|
export var makeSetupInProgress = function () { return factories['io.flow.v0.models.setup_in_progress'](); };
|
|
@@ -13458,6 +13590,7 @@ export var makeSolidusProductExportType = function () { return factories['io.flo
|
|
|
13458
13590
|
export var makeSolidusVariantExportType = function () { return factories['io.flow.v0.models.solidus_variant_export_type'](); };
|
|
13459
13591
|
export var makeSortDirection = function () { return factories['io.flow.v0.enums.sort_direction'](); };
|
|
13460
13592
|
export var makeStatement = function () { return factories['io.flow.v0.models.statement'](); };
|
|
13593
|
+
export var makeStatementAttachmentType = function () { return factories['io.flow.v0.enums.statement_attachment_type'](); };
|
|
13461
13594
|
export var makeStatementDeleted = function () { return factories['io.flow.v0.models.statement_deleted'](); };
|
|
13462
13595
|
export var makeStatementUpserted = function () { return factories['io.flow.v0.models.statement_upserted'](); };
|
|
13463
13596
|
export var makeStrategy = function () { return factories['io.flow.v0.enums.strategy'](); };
|
|
@@ -13522,6 +13655,8 @@ export var makeTaxSetting = function () { return factories['io.flow.v0.unions.ta
|
|
|
13522
13655
|
export var makeTaxVerificationResult = function () { return factories['io.flow.v0.enums.tax_verification_result'](); };
|
|
13523
13656
|
export var makeTaxabilityType = function () { return factories['io.flow.v0.enums.taxability_type'](); };
|
|
13524
13657
|
export var makeTaxabilityValue = function () { return factories['io.flow.v0.enums.taxability_value'](); };
|
|
13658
|
+
export var makeTest = function () { return factories['io.flow.v0.models.test'](); };
|
|
13659
|
+
export var makeTestUpserted = function () { return factories['io.flow.v0.models.test_upserted'](); };
|
|
13525
13660
|
export var makeThirdPartyLogisticsPartner = function () { return factories['io.flow.v0.models.third_party_logistics_partner'](); };
|
|
13526
13661
|
export var makeThreeDSecure = function () { return factories['io.flow.v0.models.three_d_secure'](); };
|
|
13527
13662
|
export var makeThreeDSecureCode = function () { return factories['io.flow.v0.enums.three_d_secure_code'](); };
|