@flowio/api-factories 0.0.84 → 0.0.86
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 +192 -41
- package/dist/esm/api.js +156 -19
- package/dist/types/api.d.ts +15 -2
- package/package.json +2 -2
- package/src/api.ts +174 -21
package/dist/esm/api.js
CHANGED
|
@@ -302,6 +302,28 @@ var factories = {
|
|
|
302
302
|
'io.flow.shopify.external.v0.enums.shopify_customer_state': function () { return faker.helpers.arrayElement(['disabled', 'invited', 'enabled']); },
|
|
303
303
|
'io.flow.shopify.external.v0.enums.shopify_discount_pagination_direction': function () { return faker.helpers.arrayElement(['next', 'prev']); },
|
|
304
304
|
'io.flow.shopify.external.v0.enums.shopify_gift_card_status': function () { return faker.helpers.arrayElement(['any', 'enabled', 'disabled']); },
|
|
305
|
+
'io.flow.shopify.external.v0.enums.shopify_plan_name': function () { return faker.helpers.arrayElement([
|
|
306
|
+
'basic',
|
|
307
|
+
'business',
|
|
308
|
+
'cancelled',
|
|
309
|
+
'dormant',
|
|
310
|
+
'enterprise',
|
|
311
|
+
'fraudulent',
|
|
312
|
+
'frozen',
|
|
313
|
+
'npo_full',
|
|
314
|
+
'npo_lite',
|
|
315
|
+
'open_learning',
|
|
316
|
+
'paid_trial',
|
|
317
|
+
'professional',
|
|
318
|
+
'retail',
|
|
319
|
+
'shopify_alumni',
|
|
320
|
+
'shopify_plus',
|
|
321
|
+
'staff',
|
|
322
|
+
'staff_business',
|
|
323
|
+
'starter',
|
|
324
|
+
'starter_2022',
|
|
325
|
+
'unlimited',
|
|
326
|
+
]); },
|
|
305
327
|
'io.flow.shopify.external.v0.enums.shopify_processing_method_type': function () { return faker.helpers.arrayElement(['checkout', 'direct', 'manual', 'offsite', 'express']); },
|
|
306
328
|
'io.flow.shopify.external.v0.enums.shopify_transaction_error_code': function () { return faker.helpers.arrayElement([
|
|
307
329
|
'incorrect_number',
|
|
@@ -1040,6 +1062,11 @@ var factories = {
|
|
|
1040
1062
|
tax_lines: arrayOf(function () { return factories['io.flow.shopify.external.v0.models.shopify_tax_line'](); }),
|
|
1041
1063
|
carrier_identifier: factories.string(),
|
|
1042
1064
|
}); },
|
|
1065
|
+
'io.flow.shopify.external.v0.models.shopify_shop_update': function () { return ({
|
|
1066
|
+
id: factories.long(),
|
|
1067
|
+
plan_display_name: factories.string(),
|
|
1068
|
+
plan_name: factories['io.flow.shopify.external.v0.enums.shopify_plan_name'](),
|
|
1069
|
+
}); },
|
|
1043
1070
|
'io.flow.shopify.external.v0.models.shopify_tax_line': function () { return ({
|
|
1044
1071
|
price: factories.string(),
|
|
1045
1072
|
rate: factories.double(),
|
|
@@ -2620,6 +2647,8 @@ var factories = {
|
|
|
2620
2647
|
'notification_deleted_v2',
|
|
2621
2648
|
'manifested_label_upserted',
|
|
2622
2649
|
'manifested_label_deleted',
|
|
2650
|
+
'label_processing_modification_upserted',
|
|
2651
|
+
'label_processing_modification_deleted',
|
|
2623
2652
|
'local_item_upserted',
|
|
2624
2653
|
'local_item_deleted',
|
|
2625
2654
|
'merchant_application_upserted',
|
|
@@ -3230,6 +3259,8 @@ var factories = {
|
|
|
3230
3259
|
'shipping_label_service',
|
|
3231
3260
|
'shipping_label_revenue_share',
|
|
3232
3261
|
'trueup',
|
|
3262
|
+
'trueup_base',
|
|
3263
|
+
'trueup_surcharge',
|
|
3233
3264
|
'carrier_charge',
|
|
3234
3265
|
'carrier_charge_revenue_share',
|
|
3235
3266
|
'platform_fee',
|
|
@@ -3243,8 +3274,9 @@ var factories = {
|
|
|
3243
3274
|
'order_service',
|
|
3244
3275
|
'virtual_card_capture',
|
|
3245
3276
|
'virtual_card_refund',
|
|
3277
|
+
'failed_payout',
|
|
3246
3278
|
]); },
|
|
3247
|
-
'io.flow.v0.enums.trueup_source': function () { return faker.helpers.arrayElement(['flow', 'channel', 'dhl-parcel', 'dhl']); },
|
|
3279
|
+
'io.flow.v0.enums.trueup_source': function () { return faker.helpers.arrayElement(['flow', 'channel', 'dhl-parcel', 'dhl', 'ups']); },
|
|
3248
3280
|
'io.flow.v0.enums.trueup_surcharge_type': function () { return faker.helpers.arrayElement([
|
|
3249
3281
|
'fuel',
|
|
3250
3282
|
'remote_area',
|
|
@@ -3257,6 +3289,12 @@ var factories = {
|
|
|
3257
3289
|
'eei_filing',
|
|
3258
3290
|
'fixed_ddp',
|
|
3259
3291
|
'fixed_currency_conversion',
|
|
3292
|
+
'prohibited_item',
|
|
3293
|
+
'undeliverable_shipment',
|
|
3294
|
+
'signature_required',
|
|
3295
|
+
'direct_delivery',
|
|
3296
|
+
'saturday_stop',
|
|
3297
|
+
'residential_extended_area_pickup',
|
|
3260
3298
|
]); },
|
|
3261
3299
|
'io.flow.v0.enums.unit_of_length': function () { return faker.helpers.arrayElement(['millimeter', 'centimeter', 'inch', 'foot', 'meter']); },
|
|
3262
3300
|
'io.flow.v0.enums.unit_of_measurement': function () { return faker.helpers.arrayElement([
|
|
@@ -5336,6 +5374,7 @@ var factories = {
|
|
|
5336
5374
|
}); },
|
|
5337
5375
|
'io.flow.v0.models.deactivation_put_form': function () { return ({
|
|
5338
5376
|
reason: factories.string(),
|
|
5377
|
+
deactivate_at: factories.date_time_iso_8601(),
|
|
5339
5378
|
}); },
|
|
5340
5379
|
'io.flow.v0.models.dead_weight': function () { return ({
|
|
5341
5380
|
weight: factories.decimal(),
|
|
@@ -7148,6 +7187,26 @@ var factories = {
|
|
|
7148
7187
|
id: factories.string(),
|
|
7149
7188
|
number: factories.string(),
|
|
7150
7189
|
}); },
|
|
7190
|
+
'io.flow.v0.models.label_processing_modification': function () { return ({
|
|
7191
|
+
id: factories.string(),
|
|
7192
|
+
modifications: arrayOf(function () { return factories.string(); }),
|
|
7193
|
+
destination: factories['io.flow.v0.models.shipping_address'](),
|
|
7194
|
+
destination_provided_to_carrier: factories['io.flow.v0.models.shipping_address'](),
|
|
7195
|
+
}); },
|
|
7196
|
+
'io.flow.v0.models.label_processing_modification_deleted': function () { return ({
|
|
7197
|
+
discriminator: 'label_processing_modification_deleted',
|
|
7198
|
+
event_id: factories.string(),
|
|
7199
|
+
timestamp: factories.date_time_iso_8601(),
|
|
7200
|
+
organization: factories.string(),
|
|
7201
|
+
id: factories.string(),
|
|
7202
|
+
}); },
|
|
7203
|
+
'io.flow.v0.models.label_processing_modification_upserted': function () { return ({
|
|
7204
|
+
discriminator: 'label_processing_modification_upserted',
|
|
7205
|
+
event_id: factories.string(),
|
|
7206
|
+
timestamp: factories.date_time_iso_8601(),
|
|
7207
|
+
organization: factories.string(),
|
|
7208
|
+
label_processing_modification: factories['io.flow.v0.models.label_processing_modification'](),
|
|
7209
|
+
}); },
|
|
7151
7210
|
'io.flow.v0.models.label_reference': function () { return ({
|
|
7152
7211
|
id: factories.string(),
|
|
7153
7212
|
}); },
|
|
@@ -7553,6 +7612,7 @@ var factories = {
|
|
|
7553
7612
|
'io.flow.v0.models.merchant_deactivated': function () { return ({
|
|
7554
7613
|
discriminator: 'merchant_deactivated',
|
|
7555
7614
|
reason: factories.string(),
|
|
7615
|
+
deactivate_at: factories.date_time_iso_8601(),
|
|
7556
7616
|
}); },
|
|
7557
7617
|
'io.flow.v0.models.merchant_disabled': function () { return ({
|
|
7558
7618
|
discriminator: 'merchant_disabled',
|
|
@@ -8715,6 +8775,7 @@ var factories = {
|
|
|
8715
8775
|
currency: factories.string(),
|
|
8716
8776
|
base_amount: factories.decimal(),
|
|
8717
8777
|
base_currency: factories.string(),
|
|
8778
|
+
reference: factories.string(),
|
|
8718
8779
|
}); },
|
|
8719
8780
|
'io.flow.v0.models.payment_authorization_status': function () { return ({
|
|
8720
8781
|
status: factories['io.flow.v0.enums.authorization_status'](),
|
|
@@ -8726,6 +8787,7 @@ var factories = {
|
|
|
8726
8787
|
currency: factories.string(),
|
|
8727
8788
|
base_amount: factories.decimal(),
|
|
8728
8789
|
base_currency: factories.string(),
|
|
8790
|
+
reference: factories.string(),
|
|
8729
8791
|
created_at: factories.date_time_iso_8601(),
|
|
8730
8792
|
updated_at: factories.date_time_iso_8601(),
|
|
8731
8793
|
status: factories['io.flow.v0.models.payment_capture_status'](),
|
|
@@ -8733,6 +8795,7 @@ var factories = {
|
|
|
8733
8795
|
'io.flow.v0.models.payment_capture_form': function () { return ({
|
|
8734
8796
|
amount: factories.decimal(),
|
|
8735
8797
|
currency: factories.string(),
|
|
8798
|
+
reference: factories.string(),
|
|
8736
8799
|
attributes: objectOf(function () { return factories.string(); }),
|
|
8737
8800
|
}); },
|
|
8738
8801
|
'io.flow.v0.models.payment_capture_option_automatic_immediate': function () { return ({
|
|
@@ -8858,6 +8921,7 @@ var factories = {
|
|
|
8858
8921
|
device_fingerprint_details: factories['io.flow.v0.unions.device_fingerprint_details'](),
|
|
8859
8922
|
cvv: factories.string(),
|
|
8860
8923
|
stored_details_card: factories['io.flow.v0.unions.payment_method_stored_details_card'](),
|
|
8924
|
+
reference: factories.string(),
|
|
8861
8925
|
}); },
|
|
8862
8926
|
'io.flow.v0.models.payment_method_data_authorize_googlepay': function () { return ({
|
|
8863
8927
|
type: 'authorize_googlepay',
|
|
@@ -8886,35 +8950,36 @@ var factories = {
|
|
|
8886
8950
|
}); },
|
|
8887
8951
|
'io.flow.v0.models.payment_method_data_init_afterpay': function () { return ({
|
|
8888
8952
|
type: 'init_afterpay',
|
|
8889
|
-
|
|
8953
|
+
reference: factories.string(),
|
|
8890
8954
|
}); },
|
|
8891
8955
|
'io.flow.v0.models.payment_method_data_init_applepay': function () { return ({
|
|
8892
8956
|
type: 'init_applepay',
|
|
8893
|
-
|
|
8957
|
+
reference: factories.string(),
|
|
8894
8958
|
}); },
|
|
8895
8959
|
'io.flow.v0.models.payment_method_data_init_bancontact': function () { return ({
|
|
8896
8960
|
type: 'init_bancontact',
|
|
8897
|
-
|
|
8961
|
+
reference: factories.string(),
|
|
8898
8962
|
}); },
|
|
8899
8963
|
'io.flow.v0.models.payment_method_data_init_googlepay': function () { return ({
|
|
8900
8964
|
type: 'init_googlepay',
|
|
8901
|
-
|
|
8965
|
+
reference: factories.string(),
|
|
8902
8966
|
}); },
|
|
8903
8967
|
'io.flow.v0.models.payment_method_data_init_ideal': function () { return ({
|
|
8904
8968
|
type: 'init_ideal',
|
|
8905
8969
|
issuer: factories.string(),
|
|
8970
|
+
reference: factories.string(),
|
|
8906
8971
|
}); },
|
|
8907
8972
|
'io.flow.v0.models.payment_method_data_init_klarna': function () { return ({
|
|
8908
8973
|
type: 'init_klarna',
|
|
8909
|
-
|
|
8974
|
+
reference: factories.string(),
|
|
8910
8975
|
}); },
|
|
8911
8976
|
'io.flow.v0.models.payment_method_data_init_paypal': function () { return ({
|
|
8912
8977
|
type: 'init_paypal',
|
|
8913
|
-
|
|
8978
|
+
reference: factories.string(),
|
|
8914
8979
|
}); },
|
|
8915
8980
|
'io.flow.v0.models.payment_method_data_init_sofort': function () { return ({
|
|
8916
8981
|
type: 'init_sofort',
|
|
8917
|
-
|
|
8982
|
+
reference: factories.string(),
|
|
8918
8983
|
}); },
|
|
8919
8984
|
'io.flow.v0.models.payment_method_data_option_logo_svg': function () { return ({
|
|
8920
8985
|
type: 'svg',
|
|
@@ -9090,6 +9155,7 @@ var factories = {
|
|
|
9090
9155
|
currency: factories.string(),
|
|
9091
9156
|
base_amount: factories.decimal(),
|
|
9092
9157
|
base_currency: factories.string(),
|
|
9158
|
+
reference: factories.string(),
|
|
9093
9159
|
created_at: factories.date_time_iso_8601(),
|
|
9094
9160
|
updated_at: factories.date_time_iso_8601(),
|
|
9095
9161
|
status: factories['io.flow.v0.models.payment_refund_status'](),
|
|
@@ -9097,6 +9163,7 @@ var factories = {
|
|
|
9097
9163
|
'io.flow.v0.models.payment_refund_form': function () { return ({
|
|
9098
9164
|
amount: factories.decimal(),
|
|
9099
9165
|
currency: factories.string(),
|
|
9166
|
+
reference: factories.string(),
|
|
9100
9167
|
}); },
|
|
9101
9168
|
'io.flow.v0.models.payment_refund_status': function () { return ({
|
|
9102
9169
|
status: factories['io.flow.v0.enums.refund_status'](),
|
|
@@ -9190,6 +9257,7 @@ var factories = {
|
|
|
9190
9257
|
currency: factories.string(),
|
|
9191
9258
|
base_amount: factories.decimal(),
|
|
9192
9259
|
base_currency: factories.string(),
|
|
9260
|
+
reference: factories.string(),
|
|
9193
9261
|
created_at: factories.date_time_iso_8601(),
|
|
9194
9262
|
updated_at: factories.date_time_iso_8601(),
|
|
9195
9263
|
status: factories['io.flow.v0.models.payment_reversal_status'](),
|
|
@@ -9197,6 +9265,7 @@ var factories = {
|
|
|
9197
9265
|
'io.flow.v0.models.payment_reversal_form': function () { return ({
|
|
9198
9266
|
amount: factories.decimal(),
|
|
9199
9267
|
currency: factories.string(),
|
|
9268
|
+
reference: factories.string(),
|
|
9200
9269
|
}); },
|
|
9201
9270
|
'io.flow.v0.models.payment_reversal_status': function () { return ({
|
|
9202
9271
|
status: factories['io.flow.v0.enums.reversal_status'](),
|
|
@@ -9583,7 +9652,7 @@ var factories = {
|
|
|
9583
9652
|
event_id: factories.string(),
|
|
9584
9653
|
timestamp: factories.date_time_iso_8601(),
|
|
9585
9654
|
organization: factories.string(),
|
|
9586
|
-
|
|
9655
|
+
id: factories.string(),
|
|
9587
9656
|
}); },
|
|
9588
9657
|
'io.flow.v0.models.product_restriction_result_upserted': function () { return ({
|
|
9589
9658
|
discriminator: 'product_restriction_result_upserted',
|
|
@@ -11786,15 +11855,13 @@ var factories = {
|
|
|
11786
11855
|
carrier_id: factories.string(),
|
|
11787
11856
|
carrier_tracking_number: factories.string(),
|
|
11788
11857
|
revenue_share_percentage: factories.decimal(),
|
|
11789
|
-
outbound: factories['io.flow.v0.models.
|
|
11790
|
-
}); },
|
|
11791
|
-
'io.flow.v0.models.transaction_metadata_carrier_charge_outbound': function () { return ({
|
|
11792
|
-
transaction_id: factories.string(),
|
|
11858
|
+
outbound: factories['io.flow.v0.models.transaction_metadata_outbound_transaction'](),
|
|
11793
11859
|
}); },
|
|
11794
11860
|
'io.flow.v0.models.transaction_metadata_channel': function () { return ({
|
|
11795
11861
|
discriminator: 'channel',
|
|
11796
11862
|
method: factories.string(),
|
|
11797
11863
|
card: factories['io.flow.v0.models.transaction_metadata_channel_card_metadata'](),
|
|
11864
|
+
organization_transaction: factories['io.flow.v0.models.transaction_reference'](),
|
|
11798
11865
|
}); },
|
|
11799
11866
|
'io.flow.v0.models.transaction_metadata_channel_card_metadata': function () { return ({
|
|
11800
11867
|
type: factories['io.flow.v0.enums.card_type'](),
|
|
@@ -11804,6 +11871,13 @@ var factories = {
|
|
|
11804
11871
|
iin: factories.string(),
|
|
11805
11872
|
country: factories.string(),
|
|
11806
11873
|
}); },
|
|
11874
|
+
'io.flow.v0.models.transaction_metadata_failed_payout': function () { return ({
|
|
11875
|
+
discriminator: 'failed_payout',
|
|
11876
|
+
failed_payout: factories['io.flow.v0.models.transaction_metadata_failed_payout_reference'](),
|
|
11877
|
+
}); },
|
|
11878
|
+
'io.flow.v0.models.transaction_metadata_failed_payout_reference': function () { return ({
|
|
11879
|
+
id: factories.string(),
|
|
11880
|
+
}); },
|
|
11807
11881
|
'io.flow.v0.models.transaction_metadata_manual': function () { return ({
|
|
11808
11882
|
discriminator: 'manual',
|
|
11809
11883
|
description: factories.string(),
|
|
@@ -11813,6 +11887,14 @@ var factories = {
|
|
|
11813
11887
|
'io.flow.v0.models.transaction_metadata_original_transaction': function () { return ({
|
|
11814
11888
|
id: factories.string(),
|
|
11815
11889
|
}); },
|
|
11890
|
+
'io.flow.v0.models.transaction_metadata_outbound_transaction': function () { return ({
|
|
11891
|
+
transaction_id: factories.string(),
|
|
11892
|
+
}); },
|
|
11893
|
+
'io.flow.v0.models.transaction_metadata_payment_transaction': function () { return ({
|
|
11894
|
+
discriminator: 'payment_transaction',
|
|
11895
|
+
id: factories.string(),
|
|
11896
|
+
key: factories.string(),
|
|
11897
|
+
}); },
|
|
11816
11898
|
'io.flow.v0.models.transaction_metadata_shipping_label': function () { return ({
|
|
11817
11899
|
discriminator: 'shipping_label',
|
|
11818
11900
|
request_method: factories['io.flow.v0.enums.label_request_method'](),
|
|
@@ -11829,6 +11911,20 @@ var factories = {
|
|
|
11829
11911
|
estimate: factories['io.flow.v0.models.transaction_metadata_trueup_data'](),
|
|
11830
11912
|
actual: factories['io.flow.v0.models.transaction_metadata_trueup_data'](),
|
|
11831
11913
|
}); },
|
|
11914
|
+
'io.flow.v0.models.transaction_metadata_trueup_base': function () { return ({
|
|
11915
|
+
discriminator: 'trueup_base',
|
|
11916
|
+
original: factories['io.flow.v0.models.transaction_metadata_original_transaction'](),
|
|
11917
|
+
estimate: factories['io.flow.v0.models.transaction_metadata_trueup_base_data'](),
|
|
11918
|
+
actual: factories['io.flow.v0.models.transaction_metadata_trueup_base_data'](),
|
|
11919
|
+
}); },
|
|
11920
|
+
'io.flow.v0.models.transaction_metadata_trueup_base_data': function () { return ({
|
|
11921
|
+
source: factories['io.flow.v0.enums.trueup_source'](),
|
|
11922
|
+
weights: factories['io.flow.v0.models.trueup_label_weights'](),
|
|
11923
|
+
units: factories['io.flow.v0.models.trueup_label_units'](),
|
|
11924
|
+
base: factories['io.flow.v0.models.trueup_label_base_v2'](),
|
|
11925
|
+
fuel: factories['io.flow.v0.models.trueup_label_fuel'](),
|
|
11926
|
+
total: factories.decimal(),
|
|
11927
|
+
}); },
|
|
11832
11928
|
'io.flow.v0.models.transaction_metadata_trueup_data': function () { return ({
|
|
11833
11929
|
source: factories['io.flow.v0.enums.trueup_source'](),
|
|
11834
11930
|
units: factories['io.flow.v0.models.trueup_label_units'](),
|
|
@@ -11838,6 +11934,16 @@ var factories = {
|
|
|
11838
11934
|
dead: factories['io.flow.v0.models.dead_weight'](),
|
|
11839
11935
|
dimensional: factories['io.flow.v0.models.dimensional_weight'](),
|
|
11840
11936
|
}); },
|
|
11937
|
+
'io.flow.v0.models.transaction_metadata_trueup_surcharge': function () { return ({
|
|
11938
|
+
discriminator: 'trueup_surcharge',
|
|
11939
|
+
original: factories['io.flow.v0.models.transaction_metadata_original_transaction'](),
|
|
11940
|
+
estimate: factories['io.flow.v0.models.transaction_metadata_trueup_surcharge_data'](),
|
|
11941
|
+
actual: factories['io.flow.v0.models.transaction_metadata_trueup_surcharge_data'](),
|
|
11942
|
+
}); },
|
|
11943
|
+
'io.flow.v0.models.transaction_metadata_trueup_surcharge_data': function () { return ({
|
|
11944
|
+
source: factories['io.flow.v0.enums.trueup_source'](),
|
|
11945
|
+
surcharge: factories['io.flow.v0.models.trueup_label_surcharge'](),
|
|
11946
|
+
}); },
|
|
11841
11947
|
'io.flow.v0.models.transaction_network_details_card': function () { return ({
|
|
11842
11948
|
network_transaction_id: factories.string(),
|
|
11843
11949
|
network: factories['io.flow.v0.enums.card_type'](),
|
|
@@ -11869,6 +11975,17 @@ var factories = {
|
|
|
11869
11975
|
amount: factories.decimal(),
|
|
11870
11976
|
weight: factories.decimal(),
|
|
11871
11977
|
}); },
|
|
11978
|
+
'io.flow.v0.models.trueup_label_base_v2': function () { return ({
|
|
11979
|
+
amount: factories.decimal(),
|
|
11980
|
+
}); },
|
|
11981
|
+
'io.flow.v0.models.trueup_label_base_weight': function () { return ({
|
|
11982
|
+
weight: factories.decimal(),
|
|
11983
|
+
}); },
|
|
11984
|
+
'io.flow.v0.models.trueup_label_fuel': function () { return ({
|
|
11985
|
+
amount: factories.decimal(),
|
|
11986
|
+
percentage: factories.decimal(),
|
|
11987
|
+
per_weight_unit: factories.decimal(),
|
|
11988
|
+
}); },
|
|
11872
11989
|
'io.flow.v0.models.trueup_label_surcharge': function () { return ({
|
|
11873
11990
|
amount: factories.decimal(),
|
|
11874
11991
|
type: factories['io.flow.v0.enums.trueup_surcharge_type'](),
|
|
@@ -11879,6 +11996,11 @@ var factories = {
|
|
|
11879
11996
|
weight: factories['io.flow.v0.enums.unit_of_weight'](),
|
|
11880
11997
|
length: factories['io.flow.v0.enums.unit_of_length'](),
|
|
11881
11998
|
}); },
|
|
11999
|
+
'io.flow.v0.models.trueup_label_weights': function () { return ({
|
|
12000
|
+
base: factories['io.flow.v0.models.trueup_label_base_weight'](),
|
|
12001
|
+
dead: factories['io.flow.v0.models.dead_weight'](),
|
|
12002
|
+
dimensional: factories['io.flow.v0.models.dimensional_weight'](),
|
|
12003
|
+
}); },
|
|
11882
12004
|
'io.flow.v0.models.ultimate_beneficiary_owner': function () { return ({
|
|
11883
12005
|
name: factories.string(),
|
|
11884
12006
|
dob: factories.date_time_iso_8601(),
|
|
@@ -11966,10 +12088,6 @@ var factories = {
|
|
|
11966
12088
|
type: factories['io.flow.v0.enums.change_type'](),
|
|
11967
12089
|
virtual_card_capture: factories['io.flow.v0.models.virtual_card_capture'](),
|
|
11968
12090
|
}); },
|
|
11969
|
-
'io.flow.v0.models.virtual_card_form': function () { return ({
|
|
11970
|
-
limit: factories['io.flow.v0.models.money'](),
|
|
11971
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
11972
|
-
}); },
|
|
11973
12091
|
'io.flow.v0.models.virtual_card_reference': function () { return ({
|
|
11974
12092
|
id: factories.string(),
|
|
11975
12093
|
}); },
|
|
@@ -12424,6 +12542,8 @@ var factories = {
|
|
|
12424
12542
|
function () { return factories['io.flow.v0.models.notification_deleted_v2'](); },
|
|
12425
12543
|
function () { return factories['io.flow.v0.models.manifested_label_upserted'](); },
|
|
12426
12544
|
function () { return factories['io.flow.v0.models.manifested_label_deleted'](); },
|
|
12545
|
+
function () { return factories['io.flow.v0.models.label_processing_modification_upserted'](); },
|
|
12546
|
+
function () { return factories['io.flow.v0.models.label_processing_modification_deleted'](); },
|
|
12427
12547
|
function () { return factories['io.flow.v0.models.local_item_upserted'](); },
|
|
12428
12548
|
function () { return factories['io.flow.v0.models.local_item_deleted'](); },
|
|
12429
12549
|
function () { return factories['io.flow.v0.models.merchant_application_upserted'](); },
|
|
@@ -13091,8 +13211,12 @@ var factories = {
|
|
|
13091
13211
|
function () { return factories['io.flow.v0.models.transaction_metadata_shipping_label'](); },
|
|
13092
13212
|
function () { return factories['io.flow.v0.models.transaction_metadata_channel'](); },
|
|
13093
13213
|
function () { return factories['io.flow.v0.models.transaction_metadata_trueup'](); },
|
|
13214
|
+
function () { return factories['io.flow.v0.models.transaction_metadata_trueup_base'](); },
|
|
13215
|
+
function () { return factories['io.flow.v0.models.transaction_metadata_trueup_surcharge'](); },
|
|
13094
13216
|
function () { return factories['io.flow.v0.models.transaction_metadata_carrier_charge'](); },
|
|
13095
13217
|
function () { return factories['io.flow.v0.models.transaction_metadata_manual'](); },
|
|
13218
|
+
function () { return factories['io.flow.v0.models.transaction_metadata_failed_payout'](); },
|
|
13219
|
+
function () { return factories['io.flow.v0.models.transaction_metadata_payment_transaction'](); },
|
|
13096
13220
|
]);
|
|
13097
13221
|
return f();
|
|
13098
13222
|
},
|
|
@@ -13868,6 +13992,9 @@ export var makeLabelDeletedV2 = function () { return factories['io.flow.v0.model
|
|
|
13868
13992
|
export var makeLabelFormatDeleted = function () { return factories['io.flow.v0.models.label_format_deleted'](); };
|
|
13869
13993
|
export var makeLabelFormatUpserted = function () { return factories['io.flow.v0.models.label_format_upserted'](); };
|
|
13870
13994
|
export var makeLabelOrderSummary = function () { return factories['io.flow.v0.models.label_order_summary'](); };
|
|
13995
|
+
export var makeLabelProcessingModification = function () { return factories['io.flow.v0.models.label_processing_modification'](); };
|
|
13996
|
+
export var makeLabelProcessingModificationDeleted = function () { return factories['io.flow.v0.models.label_processing_modification_deleted'](); };
|
|
13997
|
+
export var makeLabelProcessingModificationUpserted = function () { return factories['io.flow.v0.models.label_processing_modification_upserted'](); };
|
|
13871
13998
|
export var makeLabelReference = function () { return factories['io.flow.v0.models.label_reference'](); };
|
|
13872
13999
|
export var makeLabelRequestMethod = function () { return factories['io.flow.v0.enums.label_request_method'](); };
|
|
13873
14000
|
export var makeLabelSurcharge = function () { return factories['io.flow.v0.models.label_surcharge'](); };
|
|
@@ -14773,16 +14900,23 @@ export var makeTransactionDetails = function () { return factories['io.flow.v0.u
|
|
|
14773
14900
|
export var makeTransactionDetailsCard = function () { return factories['io.flow.v0.models.transaction_details_card'](); };
|
|
14774
14901
|
export var makeTransactionMetadata = function () { return factories['io.flow.v0.unions.transaction_metadata'](); };
|
|
14775
14902
|
export var makeTransactionMetadataCarrierCharge = function () { return factories['io.flow.v0.models.transaction_metadata_carrier_charge'](); };
|
|
14776
|
-
export var makeTransactionMetadataCarrierChargeOutbound = function () { return factories['io.flow.v0.models.transaction_metadata_carrier_charge_outbound'](); };
|
|
14777
14903
|
export var makeTransactionMetadataChannel = function () { return factories['io.flow.v0.models.transaction_metadata_channel'](); };
|
|
14778
14904
|
export var makeTransactionMetadataChannelCardMetadata = function () { return factories['io.flow.v0.models.transaction_metadata_channel_card_metadata'](); };
|
|
14779
14905
|
export var makeTransactionMetadataChannelCardMetadataIssuerSummary = function () { return factories['io.flow.v0.models.transaction_metadata_channel_card_metadata_issuer_summary'](); };
|
|
14906
|
+
export var makeTransactionMetadataFailedPayout = function () { return factories['io.flow.v0.models.transaction_metadata_failed_payout'](); };
|
|
14907
|
+
export var makeTransactionMetadataFailedPayoutReference = function () { return factories['io.flow.v0.models.transaction_metadata_failed_payout_reference'](); };
|
|
14780
14908
|
export var makeTransactionMetadataManual = function () { return factories['io.flow.v0.models.transaction_metadata_manual'](); };
|
|
14781
14909
|
export var makeTransactionMetadataOriginalTransaction = function () { return factories['io.flow.v0.models.transaction_metadata_original_transaction'](); };
|
|
14910
|
+
export var makeTransactionMetadataOutboundTransaction = function () { return factories['io.flow.v0.models.transaction_metadata_outbound_transaction'](); };
|
|
14911
|
+
export var makeTransactionMetadataPaymentTransaction = function () { return factories['io.flow.v0.models.transaction_metadata_payment_transaction'](); };
|
|
14782
14912
|
export var makeTransactionMetadataShippingLabel = function () { return factories['io.flow.v0.models.transaction_metadata_shipping_label'](); };
|
|
14783
14913
|
export var makeTransactionMetadataShippingLabelCarrier = function () { return factories['io.flow.v0.models.transaction_metadata_shipping_label_carrier'](); };
|
|
14784
14914
|
export var makeTransactionMetadataTrueup = function () { return factories['io.flow.v0.models.transaction_metadata_trueup'](); };
|
|
14915
|
+
export var makeTransactionMetadataTrueupBase = function () { return factories['io.flow.v0.models.transaction_metadata_trueup_base'](); };
|
|
14916
|
+
export var makeTransactionMetadataTrueupBaseData = function () { return factories['io.flow.v0.models.transaction_metadata_trueup_base_data'](); };
|
|
14785
14917
|
export var makeTransactionMetadataTrueupData = function () { return factories['io.flow.v0.models.transaction_metadata_trueup_data'](); };
|
|
14918
|
+
export var makeTransactionMetadataTrueupSurcharge = function () { return factories['io.flow.v0.models.transaction_metadata_trueup_surcharge'](); };
|
|
14919
|
+
export var makeTransactionMetadataTrueupSurchargeData = function () { return factories['io.flow.v0.models.transaction_metadata_trueup_surcharge_data'](); };
|
|
14786
14920
|
export var makeTransactionNetworkDetailsCard = function () { return factories['io.flow.v0.models.transaction_network_details_card'](); };
|
|
14787
14921
|
export var makeTransactionReference = function () { return factories['io.flow.v0.models.transaction_reference'](); };
|
|
14788
14922
|
export var makeTransactionSource = function () { return factories['io.flow.v0.enums.transaction_source'](); };
|
|
@@ -14790,8 +14924,12 @@ export var makeTransactionUpserted = function () { return factories['io.flow.v0.
|
|
|
14790
14924
|
export var makeTransitEstimate = function () { return factories['io.flow.v0.models.transit_estimate'](); };
|
|
14791
14925
|
export var makeTransitWindow = function () { return factories['io.flow.v0.models.transit_window'](); };
|
|
14792
14926
|
export var makeTrueupLabelBase = function () { return factories['io.flow.v0.models.trueup_label_base'](); };
|
|
14927
|
+
export var makeTrueupLabelBaseV2 = function () { return factories['io.flow.v0.models.trueup_label_base_v2'](); };
|
|
14928
|
+
export var makeTrueupLabelBaseWeight = function () { return factories['io.flow.v0.models.trueup_label_base_weight'](); };
|
|
14929
|
+
export var makeTrueupLabelFuel = function () { return factories['io.flow.v0.models.trueup_label_fuel'](); };
|
|
14793
14930
|
export var makeTrueupLabelSurcharge = function () { return factories['io.flow.v0.models.trueup_label_surcharge'](); };
|
|
14794
14931
|
export var makeTrueupLabelUnits = function () { return factories['io.flow.v0.models.trueup_label_units'](); };
|
|
14932
|
+
export var makeTrueupLabelWeights = function () { return factories['io.flow.v0.models.trueup_label_weights'](); };
|
|
14795
14933
|
export var makeTrueupSource = function () { return factories['io.flow.v0.enums.trueup_source'](); };
|
|
14796
14934
|
export var makeTrueupSurchargeType = function () { return factories['io.flow.v0.enums.trueup_surcharge_type'](); };
|
|
14797
14935
|
export var makeUltimateBeneficiaryOwner = function () { return factories['io.flow.v0.models.ultimate_beneficiary_owner'](); };
|
|
@@ -14817,7 +14955,6 @@ export var makeVirtualCardCapture = function () { return factories['io.flow.v0.m
|
|
|
14817
14955
|
export var makeVirtualCardCaptureDeleted = function () { return factories['io.flow.v0.models.virtual_card_capture_deleted'](); };
|
|
14818
14956
|
export var makeVirtualCardCaptureUpserted = function () { return factories['io.flow.v0.models.virtual_card_capture_upserted'](); };
|
|
14819
14957
|
export var makeVirtualCardCaptureVersion = function () { return factories['io.flow.v0.models.virtual_card_capture_version'](); };
|
|
14820
|
-
export var makeVirtualCardForm = function () { return factories['io.flow.v0.models.virtual_card_form'](); };
|
|
14821
14958
|
export var makeVirtualCardReference = function () { return factories['io.flow.v0.models.virtual_card_reference'](); };
|
|
14822
14959
|
export var makeVirtualCardRefund = function () { return factories['io.flow.v0.models.virtual_card_refund'](); };
|
|
14823
14960
|
export var makeVirtualCardRefundDeleted = function () { return factories['io.flow.v0.models.virtual_card_refund_deleted'](); };
|
package/dist/types/api.d.ts
CHANGED
|
@@ -770,6 +770,9 @@ export declare const makeLabelDeletedV2: () => io.flow.v0.models.LabelDeletedV2;
|
|
|
770
770
|
export declare const makeLabelFormatDeleted: () => io.flow.v0.models.LabelFormatDeleted;
|
|
771
771
|
export declare const makeLabelFormatUpserted: () => io.flow.v0.models.LabelFormatUpserted;
|
|
772
772
|
export declare const makeLabelOrderSummary: () => io.flow.v0.models.LabelOrderSummary;
|
|
773
|
+
export declare const makeLabelProcessingModification: () => io.flow.v0.models.LabelProcessingModification;
|
|
774
|
+
export declare const makeLabelProcessingModificationDeleted: () => io.flow.v0.models.LabelProcessingModificationDeleted;
|
|
775
|
+
export declare const makeLabelProcessingModificationUpserted: () => io.flow.v0.models.LabelProcessingModificationUpserted;
|
|
773
776
|
export declare const makeLabelReference: () => io.flow.v0.models.LabelReference;
|
|
774
777
|
export declare const makeLabelRequestMethod: () => io.flow.v0.enums.LabelRequestMethod;
|
|
775
778
|
export declare const makeLabelSurcharge: () => io.flow.v0.models.LabelSurcharge;
|
|
@@ -1675,16 +1678,23 @@ export declare const makeTransactionDetails: () => io.flow.v0.models.Transaction
|
|
|
1675
1678
|
export declare const makeTransactionDetailsCard: () => io.flow.v0.models.TransactionDetailsCard;
|
|
1676
1679
|
export declare const makeTransactionMetadata: () => io.flow.v0.unions.TransactionMetadata;
|
|
1677
1680
|
export declare const makeTransactionMetadataCarrierCharge: () => io.flow.v0.models.TransactionMetadataCarrierCharge;
|
|
1678
|
-
export declare const makeTransactionMetadataCarrierChargeOutbound: () => io.flow.v0.models.TransactionMetadataCarrierChargeOutbound;
|
|
1679
1681
|
export declare const makeTransactionMetadataChannel: () => io.flow.v0.models.TransactionMetadataChannel;
|
|
1680
1682
|
export declare const makeTransactionMetadataChannelCardMetadata: () => io.flow.v0.models.TransactionMetadataChannelCardMetadata;
|
|
1681
1683
|
export declare const makeTransactionMetadataChannelCardMetadataIssuerSummary: () => io.flow.v0.models.TransactionMetadataChannelCardMetadataIssuerSummary;
|
|
1684
|
+
export declare const makeTransactionMetadataFailedPayout: () => io.flow.v0.models.TransactionMetadataFailedPayout;
|
|
1685
|
+
export declare const makeTransactionMetadataFailedPayoutReference: () => io.flow.v0.models.TransactionMetadataFailedPayoutReference;
|
|
1682
1686
|
export declare const makeTransactionMetadataManual: () => io.flow.v0.models.TransactionMetadataManual;
|
|
1683
1687
|
export declare const makeTransactionMetadataOriginalTransaction: () => io.flow.v0.models.TransactionMetadataOriginalTransaction;
|
|
1688
|
+
export declare const makeTransactionMetadataOutboundTransaction: () => io.flow.v0.models.TransactionMetadataOutboundTransaction;
|
|
1689
|
+
export declare const makeTransactionMetadataPaymentTransaction: () => io.flow.v0.models.TransactionMetadataPaymentTransaction;
|
|
1684
1690
|
export declare const makeTransactionMetadataShippingLabel: () => io.flow.v0.models.TransactionMetadataShippingLabel;
|
|
1685
1691
|
export declare const makeTransactionMetadataShippingLabelCarrier: () => io.flow.v0.models.TransactionMetadataShippingLabelCarrier;
|
|
1686
1692
|
export declare const makeTransactionMetadataTrueup: () => io.flow.v0.models.TransactionMetadataTrueup;
|
|
1693
|
+
export declare const makeTransactionMetadataTrueupBase: () => io.flow.v0.models.TransactionMetadataTrueupBase;
|
|
1694
|
+
export declare const makeTransactionMetadataTrueupBaseData: () => io.flow.v0.models.TransactionMetadataTrueupBaseData;
|
|
1687
1695
|
export declare const makeTransactionMetadataTrueupData: () => io.flow.v0.models.TransactionMetadataTrueupData;
|
|
1696
|
+
export declare const makeTransactionMetadataTrueupSurcharge: () => io.flow.v0.models.TransactionMetadataTrueupSurcharge;
|
|
1697
|
+
export declare const makeTransactionMetadataTrueupSurchargeData: () => io.flow.v0.models.TransactionMetadataTrueupSurchargeData;
|
|
1688
1698
|
export declare const makeTransactionNetworkDetailsCard: () => io.flow.v0.models.TransactionNetworkDetailsCard;
|
|
1689
1699
|
export declare const makeTransactionReference: () => io.flow.v0.models.TransactionReference;
|
|
1690
1700
|
export declare const makeTransactionSource: () => io.flow.v0.enums.TransactionSource;
|
|
@@ -1692,8 +1702,12 @@ export declare const makeTransactionUpserted: () => io.flow.v0.models.Transactio
|
|
|
1692
1702
|
export declare const makeTransitEstimate: () => io.flow.v0.models.TransitEstimate;
|
|
1693
1703
|
export declare const makeTransitWindow: () => io.flow.v0.models.TransitWindow;
|
|
1694
1704
|
export declare const makeTrueupLabelBase: () => io.flow.v0.models.TrueupLabelBase;
|
|
1705
|
+
export declare const makeTrueupLabelBaseV2: () => io.flow.v0.models.TrueupLabelBaseV2;
|
|
1706
|
+
export declare const makeTrueupLabelBaseWeight: () => io.flow.v0.models.TrueupLabelBaseWeight;
|
|
1707
|
+
export declare const makeTrueupLabelFuel: () => io.flow.v0.models.TrueupLabelFuel;
|
|
1695
1708
|
export declare const makeTrueupLabelSurcharge: () => io.flow.v0.models.TrueupLabelSurcharge;
|
|
1696
1709
|
export declare const makeTrueupLabelUnits: () => io.flow.v0.models.TrueupLabelUnits;
|
|
1710
|
+
export declare const makeTrueupLabelWeights: () => io.flow.v0.models.TrueupLabelWeights;
|
|
1697
1711
|
export declare const makeTrueupSource: () => io.flow.v0.enums.TrueupSource;
|
|
1698
1712
|
export declare const makeTrueupSurchargeType: () => io.flow.v0.enums.TrueupSurchargeType;
|
|
1699
1713
|
export declare const makeUltimateBeneficiaryOwner: () => io.flow.v0.models.UltimateBeneficiaryOwner;
|
|
@@ -1719,7 +1733,6 @@ export declare const makeVirtualCardCapture: () => io.flow.v0.models.VirtualCard
|
|
|
1719
1733
|
export declare const makeVirtualCardCaptureDeleted: () => io.flow.v0.models.VirtualCardCaptureDeleted;
|
|
1720
1734
|
export declare const makeVirtualCardCaptureUpserted: () => io.flow.v0.models.VirtualCardCaptureUpserted;
|
|
1721
1735
|
export declare const makeVirtualCardCaptureVersion: () => io.flow.v0.models.VirtualCardCaptureVersion;
|
|
1722
|
-
export declare const makeVirtualCardForm: () => io.flow.v0.models.VirtualCardForm;
|
|
1723
1736
|
export declare const makeVirtualCardReference: () => io.flow.v0.models.VirtualCardReference;
|
|
1724
1737
|
export declare const makeVirtualCardRefund: () => io.flow.v0.models.VirtualCardRefund;
|
|
1725
1738
|
export declare const makeVirtualCardRefundDeleted: () => io.flow.v0.models.VirtualCardRefundDeleted;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/api-factories",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.86",
|
|
4
4
|
"description": "Flow API mock data factories",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"flow",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"@faker-js/faker": "^6.2.0",
|
|
37
37
|
"@flowio/api-types": "*"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "15b5319239e2dc57a7ee0b2171f4f54fc4172c16"
|
|
40
40
|
}
|