@flowio/api-factories 0.0.123 → 0.0.125
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 +154 -80
- package/dist/esm/api.js +110 -42
- package/dist/types/api.d.ts +10 -4
- package/package.json +1 -1
- package/src/api.ts +120 -46
package/dist/esm/api.js
CHANGED
|
@@ -151,6 +151,7 @@ var factories = {
|
|
|
151
151
|
'unsupported_order_edit',
|
|
152
152
|
'order_allocation_duties_mismatch',
|
|
153
153
|
'order_missing',
|
|
154
|
+
'order_cancelled',
|
|
154
155
|
'organization_deactivated',
|
|
155
156
|
]); },
|
|
156
157
|
'io.flow.channel.internal.v0.enums.channel_order_acceptance_status': function () { return faker.helpers.arrayElement(['accepted', 'rejected', 'review', 'edit_review', 'edit_accepted']); },
|
|
@@ -632,6 +633,7 @@ var factories = {
|
|
|
632
633
|
created_at: factories.date_time_iso_8601(),
|
|
633
634
|
status: factories['io.flow.common.v0.enums.organization_status'](),
|
|
634
635
|
type: factories['io.flow.common.v0.enums.organization_type'](),
|
|
636
|
+
channel: factories['io.flow.common.v0.models.channel_reference'](),
|
|
635
637
|
}); },
|
|
636
638
|
'io.flow.common.v0.models.organization_defaults': function () { return ({
|
|
637
639
|
country: factories.string(),
|
|
@@ -643,6 +645,7 @@ var factories = {
|
|
|
643
645
|
'io.flow.common.v0.models.organization_reference': function () { return ({
|
|
644
646
|
discriminator: 'organization_reference',
|
|
645
647
|
id: factories.string(),
|
|
648
|
+
channel: factories['io.flow.common.v0.models.channel_reference'](),
|
|
646
649
|
}); },
|
|
647
650
|
'io.flow.common.v0.models.organization_summary': function () { return ({
|
|
648
651
|
id: factories.string(),
|
|
@@ -3661,6 +3664,7 @@ var factories = {
|
|
|
3661
3664
|
'io.flow.tech.onboarding.playground.v0.enums.bojana_item_type': function () { return faker.helpers.arrayElement(['physical', 'digital']); },
|
|
3662
3665
|
'io.flow.tech.onboarding.playground.v0.enums.chenglin_item_type': function () { return faker.helpers.arrayElement(['physical', 'digital']); },
|
|
3663
3666
|
'io.flow.tech.onboarding.playground.v0.enums.gabriel_item_type': function () { return faker.helpers.arrayElement(['physical', 'digital']); },
|
|
3667
|
+
'io.flow.tech.onboarding.playground.v0.enums.mahesh_item_type': function () { return faker.helpers.arrayElement(['physical', 'digital']); },
|
|
3664
3668
|
'io.flow.tech.onboarding.playground.v0.enums.raveena_item_type': function () { return faker.helpers.arrayElement(['physical', 'digital']); },
|
|
3665
3669
|
'io.flow.tech.onboarding.playground.v0.models.amrutha_item': function () { return ({
|
|
3666
3670
|
id: factories.string(),
|
|
@@ -3722,6 +3726,21 @@ var factories = {
|
|
|
3722
3726
|
type: factories['io.flow.tech.onboarding.playground.v0.enums.gabriel_item_type'](),
|
|
3723
3727
|
added_on: factories.date_iso_8601(),
|
|
3724
3728
|
}); },
|
|
3729
|
+
'io.flow.tech.onboarding.playground.v0.models.mahesh_item': function () { return ({
|
|
3730
|
+
id: factories.string(),
|
|
3731
|
+
number: factories.string(),
|
|
3732
|
+
amount: factories['io.flow.common.v0.models.price'](),
|
|
3733
|
+
description: factories.string(),
|
|
3734
|
+
type: factories['io.flow.tech.onboarding.playground.v0.enums.mahesh_item_type'](),
|
|
3735
|
+
added_on: factories.date_time_iso_8601(),
|
|
3736
|
+
}); },
|
|
3737
|
+
'io.flow.tech.onboarding.playground.v0.models.mahesh_item_form': function () { return ({
|
|
3738
|
+
number: factories.string(),
|
|
3739
|
+
amount: factories['io.flow.common.v0.models.price'](),
|
|
3740
|
+
description: factories.string(),
|
|
3741
|
+
type: factories['io.flow.tech.onboarding.playground.v0.enums.mahesh_item_type'](),
|
|
3742
|
+
added_on: factories.date_time_iso_8601(),
|
|
3743
|
+
}); },
|
|
3725
3744
|
'io.flow.tech.onboarding.playground.v0.models.raveena_item': function () { return ({
|
|
3726
3745
|
id: factories.string(),
|
|
3727
3746
|
number: factories.string(),
|
|
@@ -3863,6 +3882,20 @@ var factories = {
|
|
|
3863
3882
|
'io.flow.v0.enums.consumer_invoice_status': function () { return faker.helpers.arrayElement(['pending', 'available', 'invalid']); },
|
|
3864
3883
|
'io.flow.v0.enums.cost_estimate_source': function () { return faker.helpers.arrayElement(['flow', 'channel']); },
|
|
3865
3884
|
'io.flow.v0.enums.country_picker_source': function () { return faker.helpers.arrayElement(['experience', 'destination']); },
|
|
3885
|
+
'io.flow.v0.enums.cpsc_attribute': function () { return faker.helpers.arrayElement([
|
|
3886
|
+
'certification_id',
|
|
3887
|
+
'citation_codes',
|
|
3888
|
+
'manufactured_date',
|
|
3889
|
+
'manufactured_location',
|
|
3890
|
+
'product_test_date',
|
|
3891
|
+
'test_lab_name',
|
|
3892
|
+
'point_of_contact',
|
|
3893
|
+
'certification_version',
|
|
3894
|
+
'certification_product_id',
|
|
3895
|
+
'certificate_type',
|
|
3896
|
+
'lab_type',
|
|
3897
|
+
'taxonomy_reference',
|
|
3898
|
+
]); },
|
|
3866
3899
|
'io.flow.v0.enums.credit_payment_error_code': function () { return faker.helpers.arrayElement([
|
|
3867
3900
|
'generic_error',
|
|
3868
3901
|
'invalid_order_number',
|
|
@@ -4545,6 +4578,8 @@ var factories = {
|
|
|
4545
4578
|
'io.flow.v0.enums.refund_status': function () { return faker.helpers.arrayElement(['pending', 'succeeded', 'failed', 'canceled']); },
|
|
4546
4579
|
'io.flow.v0.enums.region_type': function () { return faker.helpers.arrayElement(['state', 'province', 'jurisdiction']); },
|
|
4547
4580
|
'io.flow.v0.enums.restricted_review_status': function () { return faker.helpers.arrayElement(['in_review', 'reviewed']); },
|
|
4581
|
+
'io.flow.v0.enums.restriction_decision': function () { return faker.helpers.arrayElement(['accept', 'reject', 'escalate', 'review']); },
|
|
4582
|
+
'io.flow.v0.enums.restriction_decision_reason': function () { return faker.helpers.arrayElement(['manual_dispute']); },
|
|
4548
4583
|
'io.flow.v0.enums.restriction_environment': function () { return faker.helpers.arrayElement(['sandbox', 'production', 'qa']); },
|
|
4549
4584
|
'io.flow.v0.enums.return_item_status': function () { return faker.helpers.arrayElement(['returnable', 'non-returnable']); },
|
|
4550
4585
|
'io.flow.v0.enums.return_policy_state': function () { return faker.helpers.arrayElement(['current', 'deleting', 'updating']); },
|
|
@@ -4628,7 +4663,7 @@ var factories = {
|
|
|
4628
4663
|
'io.flow.v0.enums.shopify_sync_check': function () { return faker.helpers.arrayElement(['localized_variants', 'flow_variant_metafields']); },
|
|
4629
4664
|
'io.flow.v0.enums.sort_direction': function () { return faker.helpers.arrayElement(['ascending', 'descending']); },
|
|
4630
4665
|
'io.flow.v0.enums.statement_attachment_type': function () { return faker.helpers.arrayElement(['csv', 'pdf']); },
|
|
4631
|
-
'io.flow.v0.enums.statement_status_code': function () { return faker.helpers.arrayElement(['scheduled', 'sent', 'failed']); },
|
|
4666
|
+
'io.flow.v0.enums.statement_status_code': function () { return faker.helpers.arrayElement(['scheduled', 'sent', 'failed', 'paid']); },
|
|
4632
4667
|
'io.flow.v0.enums.stored_method_usage_step': function () { return faker.helpers.arrayElement(['initial', 'subsequent']); },
|
|
4633
4668
|
'io.flow.v0.enums.strategy': function () { return faker.helpers.arrayElement(['range', 'from', 'to']); },
|
|
4634
4669
|
'io.flow.v0.enums.subcatalog_item_status': function () { return faker.helpers.arrayElement(['excluded', 'included', 'restricted']); },
|
|
@@ -4788,6 +4823,7 @@ var factories = {
|
|
|
4788
4823
|
'b2b_fee_mor_tax',
|
|
4789
4824
|
'b2b_fee_shipping_tax',
|
|
4790
4825
|
'flat_rate_label',
|
|
4826
|
+
'flat_rate_label_subsidy',
|
|
4791
4827
|
]); },
|
|
4792
4828
|
'io.flow.v0.enums.transfer_status': function () { return faker.helpers.arrayElement(['succeeded', 'canceled']); },
|
|
4793
4829
|
'io.flow.v0.enums.transfer_type': function () { return faker.helpers.arrayElement([
|
|
@@ -5524,6 +5560,39 @@ var factories = {
|
|
|
5524
5560
|
organization: factories.string(),
|
|
5525
5561
|
b2b_credit_memo: factories['io.flow.v0.models.b2b_credit_memo'](),
|
|
5526
5562
|
}); },
|
|
5563
|
+
'io.flow.v0.models.b2b_credit_note': function () { return ({
|
|
5564
|
+
id: factories.string(),
|
|
5565
|
+
number: factories.string(),
|
|
5566
|
+
status: factories['io.flow.v0.enums.consumer_invoice_status'](),
|
|
5567
|
+
date: factories.date_time_iso_8601(),
|
|
5568
|
+
key: factories.string(),
|
|
5569
|
+
debit_note: factories['io.flow.v0.models.b2b_debit_note_reference'](),
|
|
5570
|
+
order: factories['io.flow.v0.models.consumer_invoice_order_summary'](),
|
|
5571
|
+
center: factories['io.flow.v0.models.consumer_invoice_center_reference'](),
|
|
5572
|
+
lines: arrayOf(function () { return factories['io.flow.v0.unions.consumer_invoice_line'](); }),
|
|
5573
|
+
documents: arrayOf(function () { return factories['io.flow.v0.models.consumer_invoice_document'](); }),
|
|
5574
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
5575
|
+
voids_b2b_debit_note: factories.boolean(),
|
|
5576
|
+
}); },
|
|
5577
|
+
'io.flow.v0.models.b2b_debit_note': function () { return ({
|
|
5578
|
+
id: factories.string(),
|
|
5579
|
+
number: factories.string(),
|
|
5580
|
+
buyer: factories['io.flow.v0.models.merchant_of_record_entity'](),
|
|
5581
|
+
seller: factories['io.flow.v0.models.merchant_of_record_entity'](),
|
|
5582
|
+
status: factories['io.flow.v0.enums.consumer_invoice_status'](),
|
|
5583
|
+
date: factories.date_time_iso_8601(),
|
|
5584
|
+
key: factories.string(),
|
|
5585
|
+
order: factories['io.flow.v0.models.consumer_invoice_order_summary'](),
|
|
5586
|
+
center: factories['io.flow.v0.models.consumer_invoice_center_reference'](),
|
|
5587
|
+
lines: arrayOf(function () { return factories['io.flow.v0.unions.consumer_invoice_line'](); }),
|
|
5588
|
+
documents: arrayOf(function () { return factories['io.flow.v0.models.consumer_invoice_document'](); }),
|
|
5589
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
5590
|
+
}); },
|
|
5591
|
+
'io.flow.v0.models.b2b_debit_note_reference': function () { return ({
|
|
5592
|
+
id: factories.string(),
|
|
5593
|
+
key: factories.string(),
|
|
5594
|
+
number: factories.string(),
|
|
5595
|
+
}); },
|
|
5527
5596
|
'io.flow.v0.models.b2b_invoice': function () { return ({
|
|
5528
5597
|
id: factories.string(),
|
|
5529
5598
|
number: factories.string(),
|
|
@@ -5595,17 +5664,6 @@ var factories = {
|
|
|
5595
5664
|
'io.flow.v0.models.bank_account_info_kor': function () { return ({
|
|
5596
5665
|
discriminator: 'kor',
|
|
5597
5666
|
name: factories.string(),
|
|
5598
|
-
address: factories['io.flow.v0.models.address'](),
|
|
5599
|
-
phone: factories.string(),
|
|
5600
|
-
email: factories.string(),
|
|
5601
|
-
bank_account_number: factories.string(),
|
|
5602
|
-
bank_routing_number: factories.string(),
|
|
5603
|
-
bank_name: factories.string(),
|
|
5604
|
-
bank_address: factories['io.flow.v0.models.address'](),
|
|
5605
|
-
}); },
|
|
5606
|
-
'io.flow.v0.models.bank_account_info_kor_v2': function () { return ({
|
|
5607
|
-
discriminator: 'kor_v2',
|
|
5608
|
-
name: factories.string(),
|
|
5609
5667
|
bank_account_number: factories.string(),
|
|
5610
5668
|
bank_routing_number: factories.string(),
|
|
5611
5669
|
bank_name: factories.string(),
|
|
@@ -8750,6 +8808,7 @@ var factories = {
|
|
|
8750
8808
|
'io.flow.v0.models.lane_summary': function () { return ({
|
|
8751
8809
|
id: factories.string(),
|
|
8752
8810
|
ratecard: factories['io.flow.v0.models.ratecard_summary'](),
|
|
8811
|
+
dim_factor: factories.decimal(),
|
|
8753
8812
|
}); },
|
|
8754
8813
|
'io.flow.v0.models.language': function () { return ({
|
|
8755
8814
|
name: factories.string(),
|
|
@@ -9722,6 +9781,10 @@ var factories = {
|
|
|
9722
9781
|
deactivation_requested_at: factories.date_time_iso_8601(),
|
|
9723
9782
|
deactivated_at: factories.date_time_iso_8601(),
|
|
9724
9783
|
}); },
|
|
9784
|
+
'io.flow.v0.models.order_state_rejection_reason_payment_fraud': function () { return ({
|
|
9785
|
+
discriminator: 'order_state_rejection_reason_payment_fraud',
|
|
9786
|
+
payment_request_id: factories.string(),
|
|
9787
|
+
}); },
|
|
9725
9788
|
'io.flow.v0.models.order_state_rejection_reason_restricted_item': function () { return ({
|
|
9726
9789
|
discriminator: 'order_state_rejection_reason_restricted_item',
|
|
9727
9790
|
item_numbers: arrayOf(function () { return factories.string(); }),
|
|
@@ -9821,6 +9884,7 @@ var factories = {
|
|
|
9821
9884
|
created_at: factories.date_time_iso_8601(),
|
|
9822
9885
|
status: factories['io.flow.v0.enums.organization_status'](),
|
|
9823
9886
|
type: factories['io.flow.v0.enums.organization_type'](),
|
|
9887
|
+
channel: factories['io.flow.v0.models.channel_reference'](),
|
|
9824
9888
|
}); },
|
|
9825
9889
|
'io.flow.v0.models.organization_authorization': function () { return ({
|
|
9826
9890
|
role: factories['io.flow.v0.enums.role'](),
|
|
@@ -9960,6 +10024,7 @@ var factories = {
|
|
|
9960
10024
|
'io.flow.v0.models.organization_reference': function () { return ({
|
|
9961
10025
|
discriminator: 'organization_reference',
|
|
9962
10026
|
id: factories.string(),
|
|
10027
|
+
channel: factories['io.flow.v0.models.channel_reference'](),
|
|
9963
10028
|
}); },
|
|
9964
10029
|
'io.flow.v0.models.organization_session': function () { return ({
|
|
9965
10030
|
discriminator: 'organization_session',
|
|
@@ -9998,6 +10063,7 @@ var factories = {
|
|
|
9998
10063
|
province: factories.string(),
|
|
9999
10064
|
self_billing_agreement_effective_at: factories.date_time_iso_8601(),
|
|
10000
10065
|
self_billing_agreement_expires_at: factories.date_time_iso_8601(),
|
|
10066
|
+
legal_name: factories.string(),
|
|
10001
10067
|
}); },
|
|
10002
10068
|
'io.flow.v0.models.organization_token': function () { return ({
|
|
10003
10069
|
discriminator: 'organization_token',
|
|
@@ -10793,6 +10859,10 @@ var factories = {
|
|
|
10793
10859
|
timestamp: factories.date_time_iso_8601(),
|
|
10794
10860
|
reason: factories['io.flow.v0.enums.payout_status_failure_code'](),
|
|
10795
10861
|
}); },
|
|
10862
|
+
'io.flow.v0.models.payout_status_paid': function () { return ({
|
|
10863
|
+
code: 'paid',
|
|
10864
|
+
timestamp: factories.date_time_iso_8601(),
|
|
10865
|
+
}); },
|
|
10796
10866
|
'io.flow.v0.models.payout_status_scheduled': function () { return ({
|
|
10797
10867
|
code: 'scheduled',
|
|
10798
10868
|
placeholder: factories.string(),
|
|
@@ -11390,6 +11460,7 @@ var factories = {
|
|
|
11390
11460
|
glbe_shipping_method_id: factories.string(),
|
|
11391
11461
|
glbe_proposition_name: factories.string(),
|
|
11392
11462
|
channel_revenue_share_percentage: factories.decimal(),
|
|
11463
|
+
channel_id: factories.string(),
|
|
11393
11464
|
}); },
|
|
11394
11465
|
'io.flow.v0.models.ratecard_carrier_summary': function () { return ({
|
|
11395
11466
|
id: factories.string(),
|
|
@@ -11489,6 +11560,7 @@ var factories = {
|
|
|
11489
11560
|
glbe_shipping_method_id: factories.string(),
|
|
11490
11561
|
glbe_proposition_name: factories.string(),
|
|
11491
11562
|
channel_revenue_share_percentage: factories.decimal(),
|
|
11563
|
+
channel_id: factories.string(),
|
|
11492
11564
|
data: factories['io.flow.v0.models.ratecard_data'](),
|
|
11493
11565
|
}); },
|
|
11494
11566
|
'io.flow.v0.models.ratecard_lane': function () { return ({
|
|
@@ -11528,19 +11600,6 @@ var factories = {
|
|
|
11528
11600
|
weight_unit: factories['io.flow.v0.enums.unit_of_measurement'](),
|
|
11529
11601
|
distance_unit: factories['io.flow.v0.enums.unit_of_measurement'](),
|
|
11530
11602
|
}); },
|
|
11531
|
-
'io.flow.v0.models.ratecard_lane_import_form': function () { return ({
|
|
11532
|
-
ratecard_owner: factories['io.flow.v0.enums.ratecard_owner'](),
|
|
11533
|
-
service: factories.string(),
|
|
11534
|
-
currency: factories.string(),
|
|
11535
|
-
delivered_duty: factories['io.flow.v0.enums.delivered_duty'](),
|
|
11536
|
-
origin: factories['io.flow.v0.models.zone'](),
|
|
11537
|
-
destination: factories['io.flow.v0.models.zone'](),
|
|
11538
|
-
shipment_window: factories['io.flow.v0.models.shipment_window'](),
|
|
11539
|
-
dim_factor: factories.decimal(),
|
|
11540
|
-
weight_unit: factories['io.flow.v0.enums.unit_of_measurement'](),
|
|
11541
|
-
distance_unit: factories['io.flow.v0.enums.unit_of_measurement'](),
|
|
11542
|
-
rates: arrayOf(function () { return factories['io.flow.v0.models.ratecard_rate_form'](); }),
|
|
11543
|
-
}); },
|
|
11544
11603
|
'io.flow.v0.models.ratecard_lane_upserted': function () { return ({
|
|
11545
11604
|
discriminator: 'ratecard_lane_upserted',
|
|
11546
11605
|
event_id: factories.string(),
|
|
@@ -11554,13 +11613,7 @@ var factories = {
|
|
|
11554
11613
|
type: factories['io.flow.v0.enums.change_type'](),
|
|
11555
11614
|
ratecard_lane: factories['io.flow.v0.models.ratecard_lane'](),
|
|
11556
11615
|
}); },
|
|
11557
|
-
'io.flow.v0.models.ratecard_lanes_import_request_data': function () { return ({
|
|
11558
|
-
id: factories.string(),
|
|
11559
|
-
source_url: factories.string(),
|
|
11560
|
-
filename: factories.string(),
|
|
11561
|
-
}); },
|
|
11562
11616
|
'io.flow.v0.models.ratecard_rate': function () { return ({
|
|
11563
|
-
id: factories.string(),
|
|
11564
11617
|
amount: factories.double(),
|
|
11565
11618
|
weight: factories.double(),
|
|
11566
11619
|
}); },
|
|
@@ -11568,12 +11621,6 @@ var factories = {
|
|
|
11568
11621
|
amount: factories.double(),
|
|
11569
11622
|
weight: factories.double(),
|
|
11570
11623
|
}); },
|
|
11571
|
-
'io.flow.v0.models.ratecard_rate_version': function () { return ({
|
|
11572
|
-
id: factories.string(),
|
|
11573
|
-
timestamp: factories.date_time_iso_8601(),
|
|
11574
|
-
type: factories['io.flow.v0.enums.change_type'](),
|
|
11575
|
-
ratecard_rate: factories['io.flow.v0.models.ratecard_rate'](),
|
|
11576
|
-
}); },
|
|
11577
11624
|
'io.flow.v0.models.ratecard_reference': function () { return ({
|
|
11578
11625
|
id: factories.string(),
|
|
11579
11626
|
}); },
|
|
@@ -11814,6 +11861,16 @@ var factories = {
|
|
|
11814
11861
|
interval: factories.integer(),
|
|
11815
11862
|
days_of_week: arrayOf(function () { return factories['io.flow.v0.enums.day_of_week'](); }),
|
|
11816
11863
|
}); },
|
|
11864
|
+
'io.flow.v0.models.restriction_decisions_form': function () { return ({
|
|
11865
|
+
organization_id: factories.string(),
|
|
11866
|
+
rule_decisions: arrayOf(function () { return factories['io.flow.v0.models.restriction_rule_decision_form'](); }),
|
|
11867
|
+
}); },
|
|
11868
|
+
'io.flow.v0.models.restriction_rule_decision_form': function () { return ({
|
|
11869
|
+
product_id: factories.string(),
|
|
11870
|
+
reason_code: factories.string(),
|
|
11871
|
+
decision: factories['io.flow.v0.enums.restriction_decision'](),
|
|
11872
|
+
decision_reason: factories['io.flow.v0.enums.restriction_decision_reason'](),
|
|
11873
|
+
}); },
|
|
11817
11874
|
'io.flow.v0.models.return': function () { return ({
|
|
11818
11875
|
id: factories.string(),
|
|
11819
11876
|
key: factories.string(),
|
|
@@ -12078,6 +12135,7 @@ var factories = {
|
|
|
12078
12135
|
price: factories['io.flow.v0.models.money'](),
|
|
12079
12136
|
description: factories.string(),
|
|
12080
12137
|
taxonomy_category: factories['io.flow.v0.models.product_taxonomy_category'](),
|
|
12138
|
+
inferred_taxonomy_category: factories['io.flow.v0.models.product_taxonomy_category'](),
|
|
12081
12139
|
mode: factories['io.flow.v0.enums.sellability_screening_mode'](),
|
|
12082
12140
|
catalog_size: factories.integer(),
|
|
12083
12141
|
relative_ranking: factories.decimal(),
|
|
@@ -12337,6 +12395,7 @@ var factories = {
|
|
|
12337
12395
|
id: factories.string(),
|
|
12338
12396
|
ratecard: factories['io.flow.v0.models.shipping_label_ratecard_summary'](),
|
|
12339
12397
|
weight_break: factories.decimal(),
|
|
12398
|
+
dim_factor: factories.decimal(),
|
|
12340
12399
|
}); },
|
|
12341
12400
|
'io.flow.v0.models.shipping_label_package': function () { return ({
|
|
12342
12401
|
dimensions: factories['io.flow.v0.models.dimension'](),
|
|
@@ -13090,6 +13149,7 @@ var factories = {
|
|
|
13090
13149
|
country: factories.string(),
|
|
13091
13150
|
tax_code: factories.string(),
|
|
13092
13151
|
province: factories.string(),
|
|
13152
|
+
legal_name: factories.string(),
|
|
13093
13153
|
}); },
|
|
13094
13154
|
'io.flow.v0.models.tax_registration_form': function () { return ({
|
|
13095
13155
|
number: factories.string(),
|
|
@@ -13521,6 +13581,7 @@ var factories = {
|
|
|
13521
13581
|
request_method: factories['io.flow.v0.enums.label_request_method'](),
|
|
13522
13582
|
carrier: factories['io.flow.v0.models.transaction_metadata_shipping_label_carrier'](),
|
|
13523
13583
|
revenue_share_percentage: factories.decimal(),
|
|
13584
|
+
actual: factories['io.flow.v0.models.transaction_metadata_trueup_data'](),
|
|
13524
13585
|
}); },
|
|
13525
13586
|
'io.flow.v0.models.transaction_metadata_shipping_label_carrier': function () { return ({
|
|
13526
13587
|
id: factories.string(),
|
|
@@ -13968,7 +14029,6 @@ var factories = {
|
|
|
13968
14029
|
function () { return factories['io.flow.v0.models.bank_account_info_fra'](); },
|
|
13969
14030
|
function () { return factories['io.flow.v0.models.bank_account_info_ita'](); },
|
|
13970
14031
|
function () { return factories['io.flow.v0.models.bank_account_info_kor'](); },
|
|
13971
|
-
function () { return factories['io.flow.v0.models.bank_account_info_kor_v2'](); },
|
|
13972
14032
|
]);
|
|
13973
14033
|
return f();
|
|
13974
14034
|
},
|
|
@@ -14502,6 +14562,7 @@ var factories = {
|
|
|
14502
14562
|
function () { return factories['io.flow.v0.models.order_state_rejection_reason_domestic_order'](); },
|
|
14503
14563
|
function () { return factories['io.flow.v0.models.order_state_rejection_reason_items_empty'](); },
|
|
14504
14564
|
function () { return factories['io.flow.v0.models.order_state_rejection_reason_organization_deactivated'](); },
|
|
14565
|
+
function () { return factories['io.flow.v0.models.order_state_rejection_reason_payment_fraud'](); },
|
|
14505
14566
|
]);
|
|
14506
14567
|
return f();
|
|
14507
14568
|
},
|
|
@@ -14653,6 +14714,7 @@ var factories = {
|
|
|
14653
14714
|
function () { return factories['io.flow.v0.models.payout_status_scheduled'](); },
|
|
14654
14715
|
function () { return factories['io.flow.v0.models.payout_status_sent'](); },
|
|
14655
14716
|
function () { return factories['io.flow.v0.models.payout_status_failed'](); },
|
|
14717
|
+
function () { return factories['io.flow.v0.models.payout_status_paid'](); },
|
|
14656
14718
|
]);
|
|
14657
14719
|
return f();
|
|
14658
14720
|
},
|
|
@@ -15041,6 +15103,9 @@ export var makeAvsCode = function () { return factories['io.flow.v0.enums.avs_co
|
|
|
15041
15103
|
export var makeB2BCreditMemo = function () { return factories['io.flow.v0.models.b2b_credit_memo'](); };
|
|
15042
15104
|
export var makeB2BCreditMemoDeleted = function () { return factories['io.flow.v0.models.b2b_credit_memo_deleted'](); };
|
|
15043
15105
|
export var makeB2BCreditMemoUpserted = function () { return factories['io.flow.v0.models.b2b_credit_memo_upserted'](); };
|
|
15106
|
+
export var makeB2BCreditNote = function () { return factories['io.flow.v0.models.b2b_credit_note'](); };
|
|
15107
|
+
export var makeB2BDebitNote = function () { return factories['io.flow.v0.models.b2b_debit_note'](); };
|
|
15108
|
+
export var makeB2BDebitNoteReference = function () { return factories['io.flow.v0.models.b2b_debit_note_reference'](); };
|
|
15044
15109
|
export var makeB2BInvoice = function () { return factories['io.flow.v0.models.b2b_invoice'](); };
|
|
15045
15110
|
export var makeB2BInvoiceDeleted = function () { return factories['io.flow.v0.models.b2b_invoice_deleted'](); };
|
|
15046
15111
|
export var makeB2BInvoiceReference = function () { return factories['io.flow.v0.models.b2b_invoice_reference'](); };
|
|
@@ -15055,7 +15120,6 @@ export var makeBankAccountInfoFra = function () { return factories['io.flow.v0.m
|
|
|
15055
15120
|
export var makeBankAccountInfoGbr = function () { return factories['io.flow.v0.models.bank_account_info_gbr'](); };
|
|
15056
15121
|
export var makeBankAccountInfoIta = function () { return factories['io.flow.v0.models.bank_account_info_ita'](); };
|
|
15057
15122
|
export var makeBankAccountInfoKor = function () { return factories['io.flow.v0.models.bank_account_info_kor'](); };
|
|
15058
|
-
export var makeBankAccountInfoKorV2 = function () { return factories['io.flow.v0.models.bank_account_info_kor_v2'](); };
|
|
15059
15123
|
export var makeBankAccountInfoUsa = function () { return factories['io.flow.v0.models.bank_account_info_usa'](); };
|
|
15060
15124
|
export var makeBankAccountReference = function () { return factories['io.flow.v0.models.bank_account_reference'](); };
|
|
15061
15125
|
export var makeBankAccountSummary = function () { return factories['io.flow.v0.models.bank_account_summary'](); };
|
|
@@ -15247,6 +15311,7 @@ export var makeCountryPickerSource = function () { return factories['io.flow.v0.
|
|
|
15247
15311
|
export var makeCountryShippingPricing = function () { return factories['io.flow.v0.models.country_shipping_pricing'](); };
|
|
15248
15312
|
export var makeCountryStatus = function () { return factories['io.flow.v0.models.country_status'](); };
|
|
15249
15313
|
export var makeCountryStatusForm = function () { return factories['io.flow.v0.models.country_status_form'](); };
|
|
15314
|
+
export var makeCpscAttribute = function () { return factories['io.flow.v0.enums.cpsc_attribute'](); };
|
|
15250
15315
|
export var makeCreditMemo = function () { return factories['io.flow.v0.models.credit_memo'](); };
|
|
15251
15316
|
export var makeCreditMemoDeleted = function () { return factories['io.flow.v0.models.credit_memo_deleted'](); };
|
|
15252
15317
|
export var makeCreditMemoForm = function () { return factories['io.flow.v0.models.credit_memo_form'](); };
|
|
@@ -15882,6 +15947,7 @@ export var makeOrderStateRejectionReason = function () { return factories['io.fl
|
|
|
15882
15947
|
export var makeOrderStateRejectionReasonDomesticOrder = function () { return factories['io.flow.v0.models.order_state_rejection_reason_domestic_order'](); };
|
|
15883
15948
|
export var makeOrderStateRejectionReasonItemsEmpty = function () { return factories['io.flow.v0.models.order_state_rejection_reason_items_empty'](); };
|
|
15884
15949
|
export var makeOrderStateRejectionReasonOrganizationDeactivated = function () { return factories['io.flow.v0.models.order_state_rejection_reason_organization_deactivated'](); };
|
|
15950
|
+
export var makeOrderStateRejectionReasonPaymentFraud = function () { return factories['io.flow.v0.models.order_state_rejection_reason_payment_fraud'](); };
|
|
15885
15951
|
export var makeOrderStateRejectionReasonRestrictedItem = function () { return factories['io.flow.v0.models.order_state_rejection_reason_restricted_item'](); };
|
|
15886
15952
|
export var makeOrderStateStatus = function () { return factories['io.flow.v0.enums.order_state_status'](); };
|
|
15887
15953
|
export var makeOrderStateUpserted = function () { return factories['io.flow.v0.models.order_state_upserted'](); };
|
|
@@ -16109,6 +16175,7 @@ export var makePayoutReference = function () { return factories['io.flow.v0.mode
|
|
|
16109
16175
|
export var makePayoutStatus = function () { return factories['io.flow.v0.unions.payout_status'](); };
|
|
16110
16176
|
export var makePayoutStatusFailed = function () { return factories['io.flow.v0.models.payout_status_failed'](); };
|
|
16111
16177
|
export var makePayoutStatusFailureCode = function () { return factories['io.flow.v0.enums.payout_status_failure_code'](); };
|
|
16178
|
+
export var makePayoutStatusPaid = function () { return factories['io.flow.v0.models.payout_status_paid'](); };
|
|
16112
16179
|
export var makePayoutStatusScheduled = function () { return factories['io.flow.v0.models.payout_status_scheduled'](); };
|
|
16113
16180
|
export var makePayoutStatusSent = function () { return factories['io.flow.v0.models.payout_status_sent'](); };
|
|
16114
16181
|
export var makePayoutTransaction = function () { return factories['io.flow.v0.models.payout_transaction'](); };
|
|
@@ -16235,14 +16302,11 @@ export var makeRatecardForm = function () { return factories['io.flow.v0.models.
|
|
|
16235
16302
|
export var makeRatecardLane = function () { return factories['io.flow.v0.models.ratecard_lane'](); };
|
|
16236
16303
|
export var makeRatecardLaneDeleted = function () { return factories['io.flow.v0.models.ratecard_lane_deleted'](); };
|
|
16237
16304
|
export var makeRatecardLaneForm = function () { return factories['io.flow.v0.models.ratecard_lane_form'](); };
|
|
16238
|
-
export var makeRatecardLaneImportForm = function () { return factories['io.flow.v0.models.ratecard_lane_import_form'](); };
|
|
16239
16305
|
export var makeRatecardLaneUpserted = function () { return factories['io.flow.v0.models.ratecard_lane_upserted'](); };
|
|
16240
16306
|
export var makeRatecardLaneVersion = function () { return factories['io.flow.v0.models.ratecard_lane_version'](); };
|
|
16241
|
-
export var makeRatecardLanesImportRequestData = function () { return factories['io.flow.v0.models.ratecard_lanes_import_request_data'](); };
|
|
16242
16307
|
export var makeRatecardOwner = function () { return factories['io.flow.v0.enums.ratecard_owner'](); };
|
|
16243
16308
|
export var makeRatecardRate = function () { return factories['io.flow.v0.models.ratecard_rate'](); };
|
|
16244
16309
|
export var makeRatecardRateForm = function () { return factories['io.flow.v0.models.ratecard_rate_form'](); };
|
|
16245
|
-
export var makeRatecardRateVersion = function () { return factories['io.flow.v0.models.ratecard_rate_version'](); };
|
|
16246
16310
|
export var makeRatecardReference = function () { return factories['io.flow.v0.models.ratecard_reference'](); };
|
|
16247
16311
|
export var makeRatecardRegionReference = function () { return factories['io.flow.v0.models.ratecard_region_reference'](); };
|
|
16248
16312
|
export var makeRatecardServiceSummary = function () { return factories['io.flow.v0.models.ratecard_service_summary'](); };
|
|
@@ -16288,7 +16352,11 @@ export var makeRepeatMonthly = function () { return factories['io.flow.v0.models
|
|
|
16288
16352
|
export var makeRepeatSchedule = function () { return factories['io.flow.v0.unions.repeat_schedule'](); };
|
|
16289
16353
|
export var makeRepeatWeekly = function () { return factories['io.flow.v0.models.repeat_weekly'](); };
|
|
16290
16354
|
export var makeRestrictedReviewStatus = function () { return factories['io.flow.v0.enums.restricted_review_status'](); };
|
|
16355
|
+
export var makeRestrictionDecision = function () { return factories['io.flow.v0.enums.restriction_decision'](); };
|
|
16356
|
+
export var makeRestrictionDecisionReason = function () { return factories['io.flow.v0.enums.restriction_decision_reason'](); };
|
|
16357
|
+
export var makeRestrictionDecisionsForm = function () { return factories['io.flow.v0.models.restriction_decisions_form'](); };
|
|
16291
16358
|
export var makeRestrictionEnvironment = function () { return factories['io.flow.v0.enums.restriction_environment'](); };
|
|
16359
|
+
export var makeRestrictionRuleDecisionForm = function () { return factories['io.flow.v0.models.restriction_rule_decision_form'](); };
|
|
16292
16360
|
export var makeReturn = function () { return factories['io.flow.v0.models.return'](); };
|
|
16293
16361
|
export var makeReturnForm = function () { return factories['io.flow.v0.models.return_form'](); };
|
|
16294
16362
|
export var makeReturnItemReference = function () { return factories['io.flow.v0.models.return_item_reference'](); };
|
package/dist/types/api.d.ts
CHANGED
|
@@ -128,6 +128,9 @@ export declare const makeAvsCode: () => io.flow.v0.enums.AvsCode;
|
|
|
128
128
|
export declare const makeB2BCreditMemo: () => io.flow.v0.models.B2BCreditMemo;
|
|
129
129
|
export declare const makeB2BCreditMemoDeleted: () => io.flow.v0.models.B2BCreditMemoDeleted;
|
|
130
130
|
export declare const makeB2BCreditMemoUpserted: () => io.flow.v0.models.B2BCreditMemoUpserted;
|
|
131
|
+
export declare const makeB2BCreditNote: () => io.flow.v0.models.B2BCreditNote;
|
|
132
|
+
export declare const makeB2BDebitNote: () => io.flow.v0.models.B2BDebitNote;
|
|
133
|
+
export declare const makeB2BDebitNoteReference: () => io.flow.v0.models.B2BDebitNoteReference;
|
|
131
134
|
export declare const makeB2BInvoice: () => io.flow.v0.models.B2BInvoice;
|
|
132
135
|
export declare const makeB2BInvoiceDeleted: () => io.flow.v0.models.B2BInvoiceDeleted;
|
|
133
136
|
export declare const makeB2BInvoiceReference: () => io.flow.v0.models.B2BInvoiceReference;
|
|
@@ -142,7 +145,6 @@ export declare const makeBankAccountInfoFra: () => io.flow.v0.models.BankAccount
|
|
|
142
145
|
export declare const makeBankAccountInfoGbr: () => io.flow.v0.models.BankAccountInfoGbr;
|
|
143
146
|
export declare const makeBankAccountInfoIta: () => io.flow.v0.models.BankAccountInfoIta;
|
|
144
147
|
export declare const makeBankAccountInfoKor: () => io.flow.v0.models.BankAccountInfoKor;
|
|
145
|
-
export declare const makeBankAccountInfoKorV2: () => io.flow.v0.models.BankAccountInfoKorV2;
|
|
146
148
|
export declare const makeBankAccountInfoUsa: () => io.flow.v0.models.BankAccountInfoUsa;
|
|
147
149
|
export declare const makeBankAccountReference: () => io.flow.v0.models.BankAccountReference;
|
|
148
150
|
export declare const makeBankAccountSummary: () => io.flow.v0.models.BankAccountSummary;
|
|
@@ -334,6 +336,7 @@ export declare const makeCountryPickerSource: () => io.flow.v0.enums.CountryPick
|
|
|
334
336
|
export declare const makeCountryShippingPricing: () => io.flow.v0.models.CountryShippingPricing;
|
|
335
337
|
export declare const makeCountryStatus: () => io.flow.v0.models.CountryStatus;
|
|
336
338
|
export declare const makeCountryStatusForm: () => io.flow.v0.models.CountryStatusForm;
|
|
339
|
+
export declare const makeCpscAttribute: () => io.flow.v0.enums.CpscAttribute;
|
|
337
340
|
export declare const makeCreditMemo: () => io.flow.v0.models.CreditMemo;
|
|
338
341
|
export declare const makeCreditMemoDeleted: () => io.flow.v0.models.CreditMemoDeleted;
|
|
339
342
|
export declare const makeCreditMemoForm: () => io.flow.v0.models.CreditMemoForm;
|
|
@@ -969,6 +972,7 @@ export declare const makeOrderStateRejectionReason: () => io.flow.v0.unions.Orde
|
|
|
969
972
|
export declare const makeOrderStateRejectionReasonDomesticOrder: () => io.flow.v0.models.OrderStateRejectionReasonDomesticOrder;
|
|
970
973
|
export declare const makeOrderStateRejectionReasonItemsEmpty: () => io.flow.v0.models.OrderStateRejectionReasonItemsEmpty;
|
|
971
974
|
export declare const makeOrderStateRejectionReasonOrganizationDeactivated: () => io.flow.v0.models.OrderStateRejectionReasonOrganizationDeactivated;
|
|
975
|
+
export declare const makeOrderStateRejectionReasonPaymentFraud: () => io.flow.v0.models.OrderStateRejectionReasonPaymentFraud;
|
|
972
976
|
export declare const makeOrderStateRejectionReasonRestrictedItem: () => io.flow.v0.models.OrderStateRejectionReasonRestrictedItem;
|
|
973
977
|
export declare const makeOrderStateStatus: () => io.flow.v0.enums.OrderStateStatus;
|
|
974
978
|
export declare const makeOrderStateUpserted: () => io.flow.v0.models.OrderStateUpserted;
|
|
@@ -1196,6 +1200,7 @@ export declare const makePayoutReference: () => io.flow.v0.models.PayoutReferenc
|
|
|
1196
1200
|
export declare const makePayoutStatus: () => io.flow.v0.unions.PayoutStatus;
|
|
1197
1201
|
export declare const makePayoutStatusFailed: () => io.flow.v0.models.PayoutStatusFailed;
|
|
1198
1202
|
export declare const makePayoutStatusFailureCode: () => io.flow.v0.enums.PayoutStatusFailureCode;
|
|
1203
|
+
export declare const makePayoutStatusPaid: () => io.flow.v0.models.PayoutStatusPaid;
|
|
1199
1204
|
export declare const makePayoutStatusScheduled: () => io.flow.v0.models.PayoutStatusScheduled;
|
|
1200
1205
|
export declare const makePayoutStatusSent: () => io.flow.v0.models.PayoutStatusSent;
|
|
1201
1206
|
export declare const makePayoutTransaction: () => io.flow.v0.models.PayoutTransaction;
|
|
@@ -1322,14 +1327,11 @@ export declare const makeRatecardForm: () => io.flow.v0.models.RatecardForm;
|
|
|
1322
1327
|
export declare const makeRatecardLane: () => io.flow.v0.models.RatecardLane;
|
|
1323
1328
|
export declare const makeRatecardLaneDeleted: () => io.flow.v0.models.RatecardLaneDeleted;
|
|
1324
1329
|
export declare const makeRatecardLaneForm: () => io.flow.v0.models.RatecardLaneForm;
|
|
1325
|
-
export declare const makeRatecardLaneImportForm: () => io.flow.v0.models.RatecardLaneImportForm;
|
|
1326
1330
|
export declare const makeRatecardLaneUpserted: () => io.flow.v0.models.RatecardLaneUpserted;
|
|
1327
1331
|
export declare const makeRatecardLaneVersion: () => io.flow.v0.models.RatecardLaneVersion;
|
|
1328
|
-
export declare const makeRatecardLanesImportRequestData: () => io.flow.v0.models.RatecardLanesImportRequestData;
|
|
1329
1332
|
export declare const makeRatecardOwner: () => io.flow.v0.enums.RatecardOwner;
|
|
1330
1333
|
export declare const makeRatecardRate: () => io.flow.v0.models.RatecardRate;
|
|
1331
1334
|
export declare const makeRatecardRateForm: () => io.flow.v0.models.RatecardRateForm;
|
|
1332
|
-
export declare const makeRatecardRateVersion: () => io.flow.v0.models.RatecardRateVersion;
|
|
1333
1335
|
export declare const makeRatecardReference: () => io.flow.v0.models.RatecardReference;
|
|
1334
1336
|
export declare const makeRatecardRegionReference: () => io.flow.v0.models.RatecardRegionReference;
|
|
1335
1337
|
export declare const makeRatecardServiceSummary: () => io.flow.v0.models.RatecardServiceSummary;
|
|
@@ -1375,7 +1377,11 @@ export declare const makeRepeatMonthly: () => io.flow.v0.models.RepeatMonthly;
|
|
|
1375
1377
|
export declare const makeRepeatSchedule: () => io.flow.v0.unions.RepeatSchedule;
|
|
1376
1378
|
export declare const makeRepeatWeekly: () => io.flow.v0.models.RepeatWeekly;
|
|
1377
1379
|
export declare const makeRestrictedReviewStatus: () => io.flow.v0.enums.RestrictedReviewStatus;
|
|
1380
|
+
export declare const makeRestrictionDecision: () => io.flow.v0.enums.RestrictionDecision;
|
|
1381
|
+
export declare const makeRestrictionDecisionReason: () => "manual_dispute";
|
|
1382
|
+
export declare const makeRestrictionDecisionsForm: () => io.flow.v0.models.RestrictionDecisionsForm;
|
|
1378
1383
|
export declare const makeRestrictionEnvironment: () => io.flow.v0.enums.RestrictionEnvironment;
|
|
1384
|
+
export declare const makeRestrictionRuleDecisionForm: () => io.flow.v0.models.RestrictionRuleDecisionForm;
|
|
1379
1385
|
export declare const makeReturn: () => io.flow.v0.models.Return;
|
|
1380
1386
|
export declare const makeReturnForm: () => io.flow.v0.models.ReturnForm;
|
|
1381
1387
|
export declare const makeReturnItemReference: () => io.flow.v0.models.ReturnItemReference;
|