@flowio/api-factories 0.0.79 → 0.0.81
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 +232 -40
- package/dist/esm/api.js +180 -4
- package/dist/types/api.d.ts +16 -0
- package/package.json +2 -2
- package/src/api.ts +205 -4
package/src/api.ts
CHANGED
|
@@ -1599,7 +1599,7 @@ const factories = {
|
|
|
1599
1599
|
]),
|
|
1600
1600
|
|
|
1601
1601
|
'io.flow.stripe.v0.enums.payment_method_category_klarna': (): io.flow.stripe.v0.enums.PaymentMethodCategoryKlarna => faker.helpers.arrayElement(['pay_later', 'pay_now', 'pay_with_financing', 'pay_in_installments']),
|
|
1602
|
-
'io.flow.stripe.v0.enums.payment_method_type': (): io.flow.stripe.v0.enums.PaymentMethodType => faker.helpers.arrayElement(['card', 'card_present']),
|
|
1602
|
+
'io.flow.stripe.v0.enums.payment_method_type': (): io.flow.stripe.v0.enums.PaymentMethodType => faker.helpers.arrayElement(['card', 'card_present', 'klarna']),
|
|
1603
1603
|
'io.flow.stripe.v0.enums.payment_outcome_type': (): io.flow.stripe.v0.enums.PaymentOutcomeType => faker.helpers.arrayElement(['authorized', 'manual_review', 'issuer_declined', 'blocked', 'invalid']),
|
|
1604
1604
|
'io.flow.stripe.v0.enums.payment_status': (): io.flow.stripe.v0.enums.PaymentStatus => faker.helpers.arrayElement(['succeeded', 'pending', 'failed']),
|
|
1605
1605
|
|
|
@@ -1949,6 +1949,12 @@ const factories = {
|
|
|
1949
1949
|
),
|
|
1950
1950
|
}),
|
|
1951
1951
|
|
|
1952
|
+
'io.flow.stripe.v0.models.klarna_dob_form': (): io.flow.stripe.v0.models.KlarnaDobForm => ({
|
|
1953
|
+
day: factories.integer(),
|
|
1954
|
+
month: factories.integer(),
|
|
1955
|
+
year: factories.integer(),
|
|
1956
|
+
}),
|
|
1957
|
+
|
|
1952
1958
|
'io.flow.stripe.v0.models.klarna_marketplace_seller_info': (): io.flow.stripe.v0.models.KlarnaMarketplaceSellerInfo => ({
|
|
1953
1959
|
sub_merchant_id: factories.string(),
|
|
1954
1960
|
product_category: factories.string(),
|
|
@@ -1958,6 +1964,12 @@ const factories = {
|
|
|
1958
1964
|
additional_owners: arrayOf(() => factories['io.flow.stripe.v0.models.owner']()),
|
|
1959
1965
|
}),
|
|
1960
1966
|
|
|
1967
|
+
'io.flow.stripe.v0.models.marketplace_seller_info': (): io.flow.stripe.v0.models.MarketplaceSellerInfo => ({
|
|
1968
|
+
name: factories.string(),
|
|
1969
|
+
id: factories.string(),
|
|
1970
|
+
product_category: factories.string(),
|
|
1971
|
+
}),
|
|
1972
|
+
|
|
1961
1973
|
'io.flow.stripe.v0.models.masterpass': (): io.flow.stripe.v0.models.Masterpass => ({
|
|
1962
1974
|
type: 'masterpass',
|
|
1963
1975
|
masterpass: factories['io.flow.stripe.v0.models.masterpass_information'](),
|
|
@@ -2046,6 +2058,10 @@ const factories = {
|
|
|
2046
2058
|
verified_phone: factories.string(),
|
|
2047
2059
|
}),
|
|
2048
2060
|
|
|
2061
|
+
'io.flow.stripe.v0.models.payment_details': (): io.flow.stripe.v0.models.PaymentDetails => ({
|
|
2062
|
+
marketplace_seller_info: factories['io.flow.stripe.v0.models.marketplace_seller_info'](),
|
|
2063
|
+
}),
|
|
2064
|
+
|
|
2049
2065
|
'io.flow.stripe.v0.models.payment_intent': (): io.flow.stripe.v0.models.PaymentIntent => ({
|
|
2050
2066
|
id: factories.string(),
|
|
2051
2067
|
object: factories.string(),
|
|
@@ -2170,6 +2186,7 @@ const factories = {
|
|
|
2170
2186
|
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
2171
2187
|
card: factories['io.flow.stripe.v0.models.payment_method_card_details'](),
|
|
2172
2188
|
card_present: factories.object(),
|
|
2189
|
+
klarna: factories.object(),
|
|
2173
2190
|
created: factories.long(),
|
|
2174
2191
|
customer: factories.string(),
|
|
2175
2192
|
livemode: factories.boolean(),
|
|
@@ -2210,6 +2227,13 @@ const factories = {
|
|
|
2210
2227
|
card: factories['io.flow.stripe.v0.models.payment_method_card_form'](),
|
|
2211
2228
|
}),
|
|
2212
2229
|
|
|
2230
|
+
'io.flow.stripe.v0.models.payment_method_data_klarna': (): io.flow.stripe.v0.models.PaymentMethodDataKlarna => ({
|
|
2231
|
+
type: 'klarna',
|
|
2232
|
+
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
2233
|
+
metadata: factories.object(),
|
|
2234
|
+
klarna: factories['io.flow.stripe.v0.models.payment_method_klarna_form'](),
|
|
2235
|
+
}),
|
|
2236
|
+
|
|
2213
2237
|
'io.flow.stripe.v0.models.payment_method_details_card': (): io.flow.stripe.v0.models.PaymentMethodDetailsCard => ({
|
|
2214
2238
|
type: 'card',
|
|
2215
2239
|
card: factories['io.flow.stripe.v0.models.payment_method_details_card_information'](),
|
|
@@ -2258,8 +2282,20 @@ const factories = {
|
|
|
2258
2282
|
card: factories['io.flow.stripe.v0.models.payment_method_card_form'](),
|
|
2259
2283
|
}),
|
|
2260
2284
|
|
|
2285
|
+
'io.flow.stripe.v0.models.payment_method_form_klarna': (): io.flow.stripe.v0.models.PaymentMethodFormKlarna => ({
|
|
2286
|
+
type: 'klarna',
|
|
2287
|
+
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
2288
|
+
metadata: factories.object(),
|
|
2289
|
+
klarna: factories['io.flow.stripe.v0.models.payment_method_klarna_form'](),
|
|
2290
|
+
}),
|
|
2291
|
+
|
|
2292
|
+
'io.flow.stripe.v0.models.payment_method_klarna_form': (): io.flow.stripe.v0.models.PaymentMethodKlarnaForm => ({
|
|
2293
|
+
dob: factories['io.flow.stripe.v0.models.klarna_dob_form'](),
|
|
2294
|
+
}),
|
|
2295
|
+
|
|
2261
2296
|
'io.flow.stripe.v0.models.payment_method_options': (): io.flow.stripe.v0.models.PaymentMethodOptions => ({
|
|
2262
2297
|
card: factories['io.flow.stripe.v0.models.payment_method_options_card'](),
|
|
2298
|
+
klarna: factories['io.flow.stripe.v0.models.payment_method_options_klarna'](),
|
|
2263
2299
|
}),
|
|
2264
2300
|
|
|
2265
2301
|
'io.flow.stripe.v0.models.payment_method_options_card': (): io.flow.stripe.v0.models.PaymentMethodOptionsCard => ({
|
|
@@ -2279,6 +2315,21 @@ const factories = {
|
|
|
2279
2315
|
|
|
2280
2316
|
'io.flow.stripe.v0.models.payment_method_options_form': (): io.flow.stripe.v0.models.PaymentMethodOptionsForm => ({
|
|
2281
2317
|
card: factories['io.flow.stripe.v0.models.payment_method_options_card_form'](),
|
|
2318
|
+
klarna: factories['io.flow.stripe.v0.models.payment_method_options_klarna_form'](),
|
|
2319
|
+
}),
|
|
2320
|
+
|
|
2321
|
+
'io.flow.stripe.v0.models.payment_method_options_klarna': (): io.flow.stripe.v0.models.PaymentMethodOptionsKlarna => ({
|
|
2322
|
+
capture_method: factories['io.flow.stripe.v0.enums.capture_method'](),
|
|
2323
|
+
preferred_locale: factories['io.flow.stripe.v0.enums.preferred_locale_klarna'](),
|
|
2324
|
+
setup_future_usage: factories['io.flow.stripe.v0.enums.setup_future_usage'](),
|
|
2325
|
+
payment_details: factories['io.flow.stripe.v0.models.payment_details'](),
|
|
2326
|
+
}),
|
|
2327
|
+
|
|
2328
|
+
'io.flow.stripe.v0.models.payment_method_options_klarna_form': (): io.flow.stripe.v0.models.PaymentMethodOptionsKlarnaForm => ({
|
|
2329
|
+
capture_method: factories['io.flow.stripe.v0.enums.capture_method'](),
|
|
2330
|
+
preferred_locale: factories['io.flow.stripe.v0.enums.preferred_locale_klarna'](),
|
|
2331
|
+
setup_future_usage: factories['io.flow.stripe.v0.enums.setup_future_usage'](),
|
|
2332
|
+
payment_details: factories['io.flow.stripe.v0.models.payment_details'](),
|
|
2282
2333
|
}),
|
|
2283
2334
|
|
|
2284
2335
|
'io.flow.stripe.v0.models.payment_outcome': (): io.flow.stripe.v0.models.PaymentOutcome => ({
|
|
@@ -2584,7 +2635,11 @@ const factories = {
|
|
|
2584
2635
|
},
|
|
2585
2636
|
|
|
2586
2637
|
'io.flow.stripe.v0.unions.payment_method_data': (): io.flow.stripe.v0.unions.PaymentMethodData => {
|
|
2587
|
-
const f = faker.helpers.arrayElement([
|
|
2638
|
+
const f = faker.helpers.arrayElement([
|
|
2639
|
+
() => factories['io.flow.stripe.v0.models.payment_method_data_card'](),
|
|
2640
|
+
() => factories['io.flow.stripe.v0.models.payment_method_data_klarna'](),
|
|
2641
|
+
]);
|
|
2642
|
+
|
|
2588
2643
|
return f();
|
|
2589
2644
|
},
|
|
2590
2645
|
|
|
@@ -2598,7 +2653,11 @@ const factories = {
|
|
|
2598
2653
|
},
|
|
2599
2654
|
|
|
2600
2655
|
'io.flow.stripe.v0.unions.payment_method_form': (): io.flow.stripe.v0.unions.PaymentMethodForm => {
|
|
2601
|
-
const f = faker.helpers.arrayElement([
|
|
2656
|
+
const f = faker.helpers.arrayElement([
|
|
2657
|
+
() => factories['io.flow.stripe.v0.models.payment_method_form_card'](),
|
|
2658
|
+
() => factories['io.flow.stripe.v0.models.payment_method_form_klarna'](),
|
|
2659
|
+
]);
|
|
2660
|
+
|
|
2602
2661
|
return f();
|
|
2603
2662
|
},
|
|
2604
2663
|
|
|
@@ -3042,6 +3101,7 @@ const factories = {
|
|
|
3042
3101
|
'organization_fulfillment',
|
|
3043
3102
|
'organization_marketing',
|
|
3044
3103
|
'organization_finance',
|
|
3104
|
+
'organization_classification',
|
|
3045
3105
|
'flow_operations',
|
|
3046
3106
|
'channel_admin',
|
|
3047
3107
|
'channel_organization_admin',
|
|
@@ -3125,6 +3185,7 @@ const factories = {
|
|
|
3125
3185
|
'io.flow.v0.enums.logistics_format_preference': (): io.flow.v0.enums.LogisticsFormatPreference => faker.helpers.arrayElement(['shopify_console', 'existing_3pl_integration', 'byo_integration']),
|
|
3126
3186
|
'io.flow.v0.enums.margin_type': (): io.flow.v0.enums.MarginType => faker.helpers.arrayElement(['fixed', 'percent']),
|
|
3127
3187
|
'io.flow.v0.enums.measurement_system': (): io.flow.v0.enums.MeasurementSystem => faker.helpers.arrayElement(['imperial', 'metric']),
|
|
3188
|
+
'io.flow.v0.enums.merchant_disabled_reason': (): io.flow.v0.enums.MerchantDisabledReason => faker.helpers.arrayElement(['merchant_deactivated', 'merchant_rejected']),
|
|
3128
3189
|
|
|
3129
3190
|
'io.flow.v0.enums.merchant_gift_card_error_code': (): io.flow.v0.enums.MerchantGiftCardErrorCode => faker.helpers.arrayElement([
|
|
3130
3191
|
'invalid',
|
|
@@ -3151,6 +3212,7 @@ const factories = {
|
|
|
3151
3212
|
'business_street_address_is_blank',
|
|
3152
3213
|
'business_street_address_is_po_box',
|
|
3153
3214
|
'exception_merchant',
|
|
3215
|
+
'application_missing',
|
|
3154
3216
|
]),
|
|
3155
3217
|
|
|
3156
3218
|
'io.flow.v0.enums.onboarding_trade_sector': (): io.flow.v0.enums.OnboardingTradeSector => faker.helpers.arrayElement([
|
|
@@ -3623,9 +3685,10 @@ const factories = {
|
|
|
3623
3685
|
'reversal',
|
|
3624
3686
|
'shipping_label',
|
|
3625
3687
|
'shipping_label_service',
|
|
3688
|
+
'shipping_label_revenue_share',
|
|
3626
3689
|
'trueup',
|
|
3627
3690
|
'carrier_charge',
|
|
3628
|
-
'
|
|
3691
|
+
'carrier_charge_revenue_share',
|
|
3629
3692
|
'platform_fee',
|
|
3630
3693
|
'tax',
|
|
3631
3694
|
'duty',
|
|
@@ -3649,6 +3712,10 @@ const factories = {
|
|
|
3649
3712
|
'emergency',
|
|
3650
3713
|
'peak',
|
|
3651
3714
|
'address_correction',
|
|
3715
|
+
'security_ratecard_fee',
|
|
3716
|
+
'eei_filing_ratecard_fee',
|
|
3717
|
+
'fixed_ddp_ratecard_fee',
|
|
3718
|
+
'fixed_currency_conversion_ratecard_fee',
|
|
3652
3719
|
]),
|
|
3653
3720
|
|
|
3654
3721
|
'io.flow.v0.enums.unit_of_length': (): io.flow.v0.enums.UnitOfLength => faker.helpers.arrayElement(['millimeter', 'centimeter', 'inch', 'foot', 'meter']),
|
|
@@ -3725,6 +3792,10 @@ const factories = {
|
|
|
3725
3792
|
status: factories['io.flow.v0.enums.abandoned_order_setting_status'](),
|
|
3726
3793
|
}),
|
|
3727
3794
|
|
|
3795
|
+
'io.flow.v0.models.account_id_reference': (): io.flow.v0.models.AccountIdReference => ({
|
|
3796
|
+
id: factories.string(),
|
|
3797
|
+
}),
|
|
3798
|
+
|
|
3728
3799
|
'io.flow.v0.models.account_orders_export_type': (): io.flow.v0.models.AccountOrdersExportType => ({
|
|
3729
3800
|
discriminator: 'account_orders_export_type',
|
|
3730
3801
|
statement_id: factories.string(),
|
|
@@ -3872,6 +3943,17 @@ const factories = {
|
|
|
3872
3943
|
placeholder: factories.boolean(),
|
|
3873
3944
|
}),
|
|
3874
3945
|
|
|
3946
|
+
'io.flow.v0.models.additional_handling_service_fee': (): io.flow.v0.models.AdditionalHandlingServiceFee => ({
|
|
3947
|
+
discriminator: 'additional_handling_service_fee',
|
|
3948
|
+
length_girth_threshold: factories.decimal(),
|
|
3949
|
+
length_threshold: factories.decimal(),
|
|
3950
|
+
width_threshold: factories.decimal(),
|
|
3951
|
+
dimensional_unit: factories['io.flow.v0.enums.unit_of_measurement'](),
|
|
3952
|
+
weight_threshold: factories.decimal(),
|
|
3953
|
+
weight_unit: factories['io.flow.v0.enums.unit_of_measurement'](),
|
|
3954
|
+
amount: factories['io.flow.v0.models.money'](),
|
|
3955
|
+
}),
|
|
3956
|
+
|
|
3875
3957
|
'io.flow.v0.models.additional_services_requested': (): io.flow.v0.models.AdditionalServicesRequested => ({
|
|
3876
3958
|
name: factories.string(),
|
|
3877
3959
|
description: factories.string(),
|
|
@@ -5335,6 +5417,7 @@ const factories = {
|
|
|
5335
5417
|
'io.flow.v0.models.channel_transaction': (): io.flow.v0.models.ChannelTransaction => ({
|
|
5336
5418
|
statement: factories['io.flow.v0.models.billing_channel_statement_reference'](),
|
|
5337
5419
|
id: factories.string(),
|
|
5420
|
+
account: factories['io.flow.v0.models.account_id_reference'](),
|
|
5338
5421
|
metadata: factories['io.flow.v0.unions.transaction_metadata'](),
|
|
5339
5422
|
order: factories['io.flow.v0.models.billing_channel_order_summary'](),
|
|
5340
5423
|
payment_request: factories['io.flow.v0.models.billing_channel_payment_request_reference'](),
|
|
@@ -6495,6 +6578,17 @@ const factories = {
|
|
|
6495
6578
|
ecommerce_platform: factories['io.flow.v0.models.ecommerce_platform'](),
|
|
6496
6579
|
}),
|
|
6497
6580
|
|
|
6581
|
+
'io.flow.v0.models.eei_filing_ratecard_fee': (): io.flow.v0.models.EeiFilingRatecardFee => ({
|
|
6582
|
+
discriminator: 'eei_filing_ratecard_fee',
|
|
6583
|
+
amount: factories['io.flow.v0.models.money'](),
|
|
6584
|
+
}),
|
|
6585
|
+
|
|
6586
|
+
'io.flow.v0.models.eei_filing_service_fee': (): io.flow.v0.models.EeiFilingServiceFee => ({
|
|
6587
|
+
discriminator: 'eei_filing_service_fee',
|
|
6588
|
+
amount: factories['io.flow.v0.models.money'](),
|
|
6589
|
+
value_threshold: factories['io.flow.v0.models.money'](),
|
|
6590
|
+
}),
|
|
6591
|
+
|
|
6498
6592
|
'io.flow.v0.models.email_abandoned_order_promotion': (): io.flow.v0.models.EmailAbandonedOrderPromotion => ({
|
|
6499
6593
|
discount_form: factories['io.flow.v0.models.discount_form'](),
|
|
6500
6594
|
attributes: objectOf(() => factories.string()),
|
|
@@ -7017,6 +7111,31 @@ const factories = {
|
|
|
7017
7111
|
placeholder: factories.string(),
|
|
7018
7112
|
}),
|
|
7019
7113
|
|
|
7114
|
+
'io.flow.v0.models.fixed_currency_conversion_ratecard_fee': (): io.flow.v0.models.FixedCurrencyConversionRatecardFee => ({
|
|
7115
|
+
discriminator: 'fixed_currency_conversion_ratecard_fee',
|
|
7116
|
+
amount: factories['io.flow.v0.models.money'](),
|
|
7117
|
+
}),
|
|
7118
|
+
|
|
7119
|
+
'io.flow.v0.models.fixed_currency_conversion_service_fee': (): io.flow.v0.models.FixedCurrencyConversionServiceFee => ({
|
|
7120
|
+
discriminator: 'fixed_currency_conversion_service_fee',
|
|
7121
|
+
conditions: arrayOf(() => factories['io.flow.v0.models.fixed_fee_condition']()),
|
|
7122
|
+
}),
|
|
7123
|
+
|
|
7124
|
+
'io.flow.v0.models.fixed_ddp_ratecard_fee': (): io.flow.v0.models.FixedDdpRatecardFee => ({
|
|
7125
|
+
discriminator: 'fixed_ddp_ratecard_fee',
|
|
7126
|
+
amount: factories['io.flow.v0.models.money'](),
|
|
7127
|
+
}),
|
|
7128
|
+
|
|
7129
|
+
'io.flow.v0.models.fixed_ddp_service_fee': (): io.flow.v0.models.FixedDdpServiceFee => ({
|
|
7130
|
+
discriminator: 'fixed_ddp_service_fee',
|
|
7131
|
+
conditions: arrayOf(() => factories['io.flow.v0.models.fixed_fee_condition']()),
|
|
7132
|
+
}),
|
|
7133
|
+
|
|
7134
|
+
'io.flow.v0.models.fixed_fee_condition': (): io.flow.v0.models.FixedFeeCondition => ({
|
|
7135
|
+
countries: arrayOf(() => factories.string()),
|
|
7136
|
+
amount: factories['io.flow.v0.models.money'](),
|
|
7137
|
+
}),
|
|
7138
|
+
|
|
7020
7139
|
'io.flow.v0.models.flat_rate': (): io.flow.v0.models.FlatRate => ({
|
|
7021
7140
|
discriminator: 'flat_rate',
|
|
7022
7141
|
price: factories['io.flow.v0.models.price'](),
|
|
@@ -7037,6 +7156,26 @@ const factories = {
|
|
|
7037
7156
|
status: factories['io.flow.v0.enums.subcatalog_item_status'](),
|
|
7038
7157
|
}),
|
|
7039
7158
|
|
|
7159
|
+
'io.flow.v0.models.flow_transaction': (): io.flow.v0.models.FlowTransaction => ({
|
|
7160
|
+
statement: factories['io.flow.v0.models.billing_channel_statement_reference'](),
|
|
7161
|
+
id: factories.string(),
|
|
7162
|
+
account: factories['io.flow.v0.models.account_id_reference'](),
|
|
7163
|
+
metadata: factories['io.flow.v0.unions.transaction_metadata'](),
|
|
7164
|
+
order: factories['io.flow.v0.models.billing_channel_order_summary'](),
|
|
7165
|
+
payment_request: factories['io.flow.v0.models.billing_channel_payment_request_reference'](),
|
|
7166
|
+
currency: factories.string(),
|
|
7167
|
+
source: factories['io.flow.v0.enums.transaction_source'](),
|
|
7168
|
+
parent: factories['io.flow.v0.models.parent_transaction_summary'](),
|
|
7169
|
+
gross: factories.decimal(),
|
|
7170
|
+
fees: arrayOf(() => factories['io.flow.v0.models.fee_deduction']()),
|
|
7171
|
+
withholdings: arrayOf(() => factories['io.flow.v0.models.withholding_deduction']()),
|
|
7172
|
+
discounts: arrayOf(() => factories['io.flow.v0.models.billing_discount']()),
|
|
7173
|
+
net: factories.decimal(),
|
|
7174
|
+
identifiers: objectOf(() => factories.string()),
|
|
7175
|
+
created_at: factories.date_time_iso_8601(),
|
|
7176
|
+
updated_at: factories.date_time_iso_8601(),
|
|
7177
|
+
}),
|
|
7178
|
+
|
|
7040
7179
|
'io.flow.v0.models.fraud_email_rule': (): io.flow.v0.models.FraudEmailRule => ({
|
|
7041
7180
|
id: factories.string(),
|
|
7042
7181
|
email: factories.string(),
|
|
@@ -8220,6 +8359,15 @@ const factories = {
|
|
|
8220
8359
|
iso_639_2: factories.string(),
|
|
8221
8360
|
}),
|
|
8222
8361
|
|
|
8362
|
+
'io.flow.v0.models.large_package_service_fee': (): io.flow.v0.models.LargePackageServiceFee => ({
|
|
8363
|
+
discriminator: 'large_package_service_fee',
|
|
8364
|
+
length_girth_threshold: factories.decimal(),
|
|
8365
|
+
dimensional_unit: factories['io.flow.v0.enums.unit_of_measurement'](),
|
|
8366
|
+
weight_threshold: factories.decimal(),
|
|
8367
|
+
weight_unit: factories['io.flow.v0.enums.unit_of_measurement'](),
|
|
8368
|
+
amount: factories['io.flow.v0.models.money'](),
|
|
8369
|
+
}),
|
|
8370
|
+
|
|
8223
8371
|
'io.flow.v0.models.line': (): io.flow.v0.models.Line => ({
|
|
8224
8372
|
id: factories.string(),
|
|
8225
8373
|
item_number: factories.string(),
|
|
@@ -8571,6 +8719,11 @@ const factories = {
|
|
|
8571
8719
|
reason: factories.string(),
|
|
8572
8720
|
}),
|
|
8573
8721
|
|
|
8722
|
+
'io.flow.v0.models.merchant_disabled': (): io.flow.v0.models.MerchantDisabled => ({
|
|
8723
|
+
discriminator: 'merchant_disabled',
|
|
8724
|
+
reason: factories['io.flow.v0.enums.merchant_disabled_reason'](),
|
|
8725
|
+
}),
|
|
8726
|
+
|
|
8574
8727
|
'io.flow.v0.models.merchant_gift_card_balance': (): io.flow.v0.models.MerchantGiftCardBalance => ({
|
|
8575
8728
|
amount: factories.decimal(),
|
|
8576
8729
|
currency: factories.string(),
|
|
@@ -10684,6 +10837,7 @@ const factories = {
|
|
|
10684
10837
|
|
|
10685
10838
|
'io.flow.v0.models.payout_transaction': (): io.flow.v0.models.PayoutTransaction => ({
|
|
10686
10839
|
id: factories.string(),
|
|
10840
|
+
account: factories['io.flow.v0.models.account_id_reference'](),
|
|
10687
10841
|
metadata: factories['io.flow.v0.unions.transaction_metadata'](),
|
|
10688
10842
|
order: factories['io.flow.v0.models.billing_channel_order_summary'](),
|
|
10689
10843
|
payment_request: factories['io.flow.v0.models.billing_channel_payment_request_reference'](),
|
|
@@ -11692,6 +11846,12 @@ const factories = {
|
|
|
11692
11846
|
status: factories['io.flow.v0.enums.availability_status'](),
|
|
11693
11847
|
}),
|
|
11694
11848
|
|
|
11849
|
+
'io.flow.v0.models.remote_area_by_weight_service_fee': (): io.flow.v0.models.RemoteAreaByWeightServiceFee => ({
|
|
11850
|
+
discriminator: 'remote_area_by_weight_service_fee',
|
|
11851
|
+
amount: factories['io.flow.v0.models.money'](),
|
|
11852
|
+
weight_unit: factories['io.flow.v0.enums.unit_of_measurement'](),
|
|
11853
|
+
}),
|
|
11854
|
+
|
|
11695
11855
|
'io.flow.v0.models.remote_area_ratecard_fee': (): io.flow.v0.models.RemoteAreaRatecardFee => ({
|
|
11696
11856
|
discriminator: 'remote_area_ratecard_fee',
|
|
11697
11857
|
amount: factories['io.flow.v0.models.money'](),
|
|
@@ -12038,6 +12198,17 @@ const factories = {
|
|
|
12038
12198
|
minute_of_hour: factories.string(),
|
|
12039
12199
|
}),
|
|
12040
12200
|
|
|
12201
|
+
'io.flow.v0.models.security_ratecard_fee': (): io.flow.v0.models.SecurityRatecardFee => ({
|
|
12202
|
+
discriminator: 'security_ratecard_fee',
|
|
12203
|
+
amount: factories['io.flow.v0.models.money'](),
|
|
12204
|
+
}),
|
|
12205
|
+
|
|
12206
|
+
'io.flow.v0.models.security_service_fee': (): io.flow.v0.models.SecurityServiceFee => ({
|
|
12207
|
+
discriminator: 'security_service_fee',
|
|
12208
|
+
amount: factories['io.flow.v0.models.money'](),
|
|
12209
|
+
countries: arrayOf(() => factories.string()),
|
|
12210
|
+
}),
|
|
12211
|
+
|
|
12041
12212
|
'io.flow.v0.models.select_issuer_option_action_details': (): io.flow.v0.models.SelectIssuerOptionActionDetails => ({
|
|
12042
12213
|
discriminator: 'select_issuer_option_action_details',
|
|
12043
12214
|
issuer_options: arrayOf(() => factories['io.flow.v0.models.issuer_reference']()),
|
|
@@ -13564,6 +13735,7 @@ const factories = {
|
|
|
13564
13735
|
'io.flow.v0.models.transaction': (): io.flow.v0.models.Transaction => ({
|
|
13565
13736
|
statement: factories['io.flow.v0.models.billing_channel_statement_reference'](),
|
|
13566
13737
|
id: factories.string(),
|
|
13738
|
+
account: factories['io.flow.v0.models.account_id_reference'](),
|
|
13567
13739
|
metadata: factories['io.flow.v0.unions.transaction_metadata'](),
|
|
13568
13740
|
order: factories['io.flow.v0.models.billing_channel_order_summary'](),
|
|
13569
13741
|
payment_request: factories['io.flow.v0.models.billing_channel_payment_request_reference'](),
|
|
@@ -13593,6 +13765,7 @@ const factories = {
|
|
|
13593
13765
|
label_created_at: factories.date_time_iso_8601(),
|
|
13594
13766
|
carrier_id: factories.string(),
|
|
13595
13767
|
carrier_tracking_number: factories.string(),
|
|
13768
|
+
revenue_share_percentage: factories.decimal(),
|
|
13596
13769
|
outbound: factories['io.flow.v0.models.transaction_metadata_carrier_charge_outbound'](),
|
|
13597
13770
|
}),
|
|
13598
13771
|
|
|
@@ -14656,6 +14829,7 @@ const factories = {
|
|
|
14656
14829
|
() => factories['io.flow.v0.models.setup_completed'](),
|
|
14657
14830
|
() => factories['io.flow.v0.models.merchant_activated'](),
|
|
14658
14831
|
() => factories['io.flow.v0.models.merchant_deactivated'](),
|
|
14832
|
+
() => factories['io.flow.v0.models.merchant_disabled'](),
|
|
14659
14833
|
]);
|
|
14660
14834
|
|
|
14661
14835
|
return f();
|
|
@@ -14958,6 +15132,10 @@ const factories = {
|
|
|
14958
15132
|
() => factories['io.flow.v0.models.emergency_situation_surcharge_ratecard_fee'](),
|
|
14959
15133
|
() => factories['io.flow.v0.models.peak_surcharge_ratecard_fee'](),
|
|
14960
15134
|
() => factories['io.flow.v0.models.duties_taxes_paid_surcharge_ratecard_fee'](),
|
|
15135
|
+
() => factories['io.flow.v0.models.security_ratecard_fee'](),
|
|
15136
|
+
() => factories['io.flow.v0.models.eei_filing_ratecard_fee'](),
|
|
15137
|
+
() => factories['io.flow.v0.models.fixed_ddp_ratecard_fee'](),
|
|
15138
|
+
() => factories['io.flow.v0.models.fixed_currency_conversion_ratecard_fee'](),
|
|
14961
15139
|
]);
|
|
14962
15140
|
|
|
14963
15141
|
return f();
|
|
@@ -15021,6 +15199,13 @@ const factories = {
|
|
|
15021
15199
|
() => factories['io.flow.v0.models.peak_surcharge_by_weight_service_fee'](),
|
|
15022
15200
|
() => factories['io.flow.v0.models.duties_taxes_paid_surcharge_service_fee'](),
|
|
15023
15201
|
() => factories['io.flow.v0.models.oversize_piece_surcharge_service_fee'](),
|
|
15202
|
+
() => factories['io.flow.v0.models.remote_area_by_weight_service_fee'](),
|
|
15203
|
+
() => factories['io.flow.v0.models.additional_handling_service_fee'](),
|
|
15204
|
+
() => factories['io.flow.v0.models.large_package_service_fee'](),
|
|
15205
|
+
() => factories['io.flow.v0.models.security_service_fee'](),
|
|
15206
|
+
() => factories['io.flow.v0.models.fixed_ddp_service_fee'](),
|
|
15207
|
+
() => factories['io.flow.v0.models.fixed_currency_conversion_service_fee'](),
|
|
15208
|
+
() => factories['io.flow.v0.models.eei_filing_service_fee'](),
|
|
15024
15209
|
]);
|
|
15025
15210
|
|
|
15026
15211
|
return f();
|
|
@@ -15176,6 +15361,7 @@ export const makeAbandonedOrderPromotionForm = () => factories['io.flow.v0.model
|
|
|
15176
15361
|
export const makeAbandonedOrderPromotionStatus = () => factories['io.flow.v0.enums.abandoned_order_promotion_status']();
|
|
15177
15362
|
export const makeAbandonedOrderSettingStatus = () => factories['io.flow.v0.enums.abandoned_order_setting_status']();
|
|
15178
15363
|
export const makeAbandonedOrderSettings = () => factories['io.flow.v0.models.abandoned_order_settings']();
|
|
15364
|
+
export const makeAccountIdReference = () => factories['io.flow.v0.models.account_id_reference']();
|
|
15179
15365
|
export const makeAccountOrdersExportType = () => factories['io.flow.v0.models.account_orders_export_type']();
|
|
15180
15366
|
export const makeAccountReference = () => factories['io.flow.v0.models.account_reference']();
|
|
15181
15367
|
export const makeAccountTransactionsExportType = () => factories['io.flow.v0.models.account_transactions_export_type']();
|
|
@@ -15195,6 +15381,7 @@ export const makeActionUseSdkPaypal = () => factories['io.flow.v0.models.action_
|
|
|
15195
15381
|
export const makeActionUseSdkStripeV3 = () => factories['io.flow.v0.models.action_use_sdk_stripe_v3']();
|
|
15196
15382
|
export const makeActionWait = () => factories['io.flow.v0.models.action_wait']();
|
|
15197
15383
|
export const makeActivationPutForm = () => factories['io.flow.v0.models.activation_put_form']();
|
|
15384
|
+
export const makeAdditionalHandlingServiceFee = () => factories['io.flow.v0.models.additional_handling_service_fee']();
|
|
15198
15385
|
export const makeAdditionalServicesRequested = () => factories['io.flow.v0.models.additional_services_requested']();
|
|
15199
15386
|
export const makeAddress = () => factories['io.flow.v0.models.address']();
|
|
15200
15387
|
export const makeAddressConfiguration = () => factories['io.flow.v0.models.address_configuration']();
|
|
@@ -15631,6 +15818,8 @@ export const makeEcommercePlatformForm = () => factories['io.flow.v0.models.ecom
|
|
|
15631
15818
|
export const makeEcommercePlatformType = () => factories['io.flow.v0.enums.ecommerce_platform_type']();
|
|
15632
15819
|
export const makeEcommercePlatformUpserted = () => factories['io.flow.v0.models.ecommerce_platform_upserted']();
|
|
15633
15820
|
export const makeEconomicTitleLocation = () => factories['io.flow.v0.enums.economic_title_location']();
|
|
15821
|
+
export const makeEeiFilingRatecardFee = () => factories['io.flow.v0.models.eei_filing_ratecard_fee']();
|
|
15822
|
+
export const makeEeiFilingServiceFee = () => factories['io.flow.v0.models.eei_filing_service_fee']();
|
|
15634
15823
|
export const makeEmailAbandonedOrderPromotion = () => factories['io.flow.v0.models.email_abandoned_order_promotion']();
|
|
15635
15824
|
export const makeEmailAbandonedOrderUrls = () => factories['io.flow.v0.models.email_abandoned_order_urls']();
|
|
15636
15825
|
export const makeEmailNotification = () => factories['io.flow.v0.models.email_notification']();
|
|
@@ -15738,6 +15927,11 @@ export const makeFieldValidationPattern = () => factories['io.flow.v0.models.fie
|
|
|
15738
15927
|
export const makeFieldValidationRequired = () => factories['io.flow.v0.models.field_validation_required']();
|
|
15739
15928
|
export const makeFieldValidationRequiredIfPresent = () => factories['io.flow.v0.models.field_validation_required_if_present']();
|
|
15740
15929
|
export const makeFieldValidationRule = () => factories['io.flow.v0.unions.field_validation_rule']();
|
|
15930
|
+
export const makeFixedCurrencyConversionRatecardFee = () => factories['io.flow.v0.models.fixed_currency_conversion_ratecard_fee']();
|
|
15931
|
+
export const makeFixedCurrencyConversionServiceFee = () => factories['io.flow.v0.models.fixed_currency_conversion_service_fee']();
|
|
15932
|
+
export const makeFixedDdpRatecardFee = () => factories['io.flow.v0.models.fixed_ddp_ratecard_fee']();
|
|
15933
|
+
export const makeFixedDdpServiceFee = () => factories['io.flow.v0.models.fixed_ddp_service_fee']();
|
|
15934
|
+
export const makeFixedFeeCondition = () => factories['io.flow.v0.models.fixed_fee_condition']();
|
|
15741
15935
|
export const makeFlatRate = () => factories['io.flow.v0.models.flat_rate']();
|
|
15742
15936
|
export const makeFlatRateForm = () => factories['io.flow.v0.models.flat_rate_form']();
|
|
15743
15937
|
export const makeFlowBehavior = () => factories['io.flow.v0.enums.flow_behavior']();
|
|
@@ -15745,6 +15939,7 @@ export const makeFlowCenterReference = () => factories['io.flow.v0.models.flow_c
|
|
|
15745
15939
|
export const makeFlowEntity = () => factories['io.flow.v0.enums.flow_entity']();
|
|
15746
15940
|
export const makeFlowItemIndexMetadata = () => factories['io.flow.v0.models.flow_item_index_metadata']();
|
|
15747
15941
|
export const makeFlowRole = () => factories['io.flow.v0.enums.flow_role']();
|
|
15942
|
+
export const makeFlowTransaction = () => factories['io.flow.v0.models.flow_transaction']();
|
|
15748
15943
|
export const makeFraudEmailRule = () => factories['io.flow.v0.models.fraud_email_rule']();
|
|
15749
15944
|
export const makeFraudEmailRuleDecision = () => factories['io.flow.v0.enums.fraud_email_rule_decision']();
|
|
15750
15945
|
export const makeFraudEmailRuleForm = () => factories['io.flow.v0.models.fraud_email_rule_form']();
|
|
@@ -15950,6 +16145,7 @@ export const makeLanePreselectPreference = () => factories['io.flow.v0.enums.lan
|
|
|
15950
16145
|
export const makeLaneStrategy = () => factories['io.flow.v0.enums.lane_strategy']();
|
|
15951
16146
|
export const makeLaneSummary = () => factories['io.flow.v0.models.lane_summary']();
|
|
15952
16147
|
export const makeLanguage = () => factories['io.flow.v0.models.language']();
|
|
16148
|
+
export const makeLargePackageServiceFee = () => factories['io.flow.v0.models.large_package_service_fee']();
|
|
15953
16149
|
export const makeLevyComponent = () => factories['io.flow.v0.enums.levy_component']();
|
|
15954
16150
|
export const makeLevyInclusion = () => factories['io.flow.v0.enums.levy_inclusion']();
|
|
15955
16151
|
export const makeLevyStrategy = () => factories['io.flow.v0.enums.levy_strategy']();
|
|
@@ -16011,6 +16207,8 @@ export const makeMerchantApplicationPutForm = () => factories['io.flow.v0.unions
|
|
|
16011
16207
|
export const makeMerchantApplicationUpserted = () => factories['io.flow.v0.models.merchant_application_upserted']();
|
|
16012
16208
|
export const makeMerchantApplicationsSummary = () => factories['io.flow.v0.unions.merchant_applications_summary']();
|
|
16013
16209
|
export const makeMerchantDeactivated = () => factories['io.flow.v0.models.merchant_deactivated']();
|
|
16210
|
+
export const makeMerchantDisabled = () => factories['io.flow.v0.models.merchant_disabled']();
|
|
16211
|
+
export const makeMerchantDisabledReason = () => factories['io.flow.v0.enums.merchant_disabled_reason']();
|
|
16014
16212
|
export const makeMerchantGiftCardBalance = () => factories['io.flow.v0.models.merchant_gift_card_balance']();
|
|
16015
16213
|
export const makeMerchantGiftCardBalanceForm = () => factories['io.flow.v0.models.merchant_gift_card_balance_form']();
|
|
16016
16214
|
export const makeMerchantGiftCardError = () => factories['io.flow.v0.models.merchant_gift_card_error']();
|
|
@@ -16534,6 +16732,7 @@ export const makeRegionReference = () => factories['io.flow.v0.models.region_ref
|
|
|
16534
16732
|
export const makeRegionSetting = () => factories['io.flow.v0.models.region_setting']();
|
|
16535
16733
|
export const makeRegionSettingForm = () => factories['io.flow.v0.models.region_setting_form']();
|
|
16536
16734
|
export const makeRegionType = () => factories['io.flow.v0.enums.region_type']();
|
|
16735
|
+
export const makeRemoteAreaByWeightServiceFee = () => factories['io.flow.v0.models.remote_area_by_weight_service_fee']();
|
|
16537
16736
|
export const makeRemoteAreaRatecardFee = () => factories['io.flow.v0.models.remote_area_ratecard_fee']();
|
|
16538
16737
|
export const makeRemoteAreaServiceFee = () => factories['io.flow.v0.models.remote_area_service_fee']();
|
|
16539
16738
|
export const makeRepeatDaily = () => factories['io.flow.v0.models.repeat_daily']();
|
|
@@ -16599,6 +16798,8 @@ export const makeScheduledExport = () => factories['io.flow.v0.models.scheduled_
|
|
|
16599
16798
|
export const makeScheduledExportForm = () => factories['io.flow.v0.models.scheduled_export_form']();
|
|
16600
16799
|
export const makeScheduledPickup = () => factories['io.flow.v0.models.scheduled_pickup']();
|
|
16601
16800
|
export const makeSdkAdyenV3AuthenticationToken = () => factories['io.flow.v0.unions.sdk_adyen_v3_authentication_token']();
|
|
16801
|
+
export const makeSecurityRatecardFee = () => factories['io.flow.v0.models.security_ratecard_fee']();
|
|
16802
|
+
export const makeSecurityServiceFee = () => factories['io.flow.v0.models.security_service_fee']();
|
|
16602
16803
|
export const makeSelectIssuerOptionActionDetails = () => factories['io.flow.v0.models.select_issuer_option_action_details']();
|
|
16603
16804
|
export const makeServiceDescription = () => factories['io.flow.v0.unions.service_description']();
|
|
16604
16805
|
export const makeServiceFee = () => factories['io.flow.v0.unions.service_fee']();
|