@flowio/api-factories 0.0.49 → 0.0.51
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 +198 -40
- package/dist/esm/api.js +147 -7
- package/dist/types/api.d.ts +18 -0
- package/package.json +2 -2
- package/src/api.ts +163 -7
package/src/api.ts
CHANGED
|
@@ -30,7 +30,7 @@ const factories = {
|
|
|
30
30
|
string: () => faker.datatype.string(),
|
|
31
31
|
unit: () => undefined,
|
|
32
32
|
uuid: () => faker.datatype.uuid(),
|
|
33
|
-
'io.flow.apple.pay.v0.enums.apple_pay_contact_field': (): io.flow.apple.pay.v0.enums.ApplePayContactField => faker.helpers.arrayElement(['email', 'name', 'phone', '
|
|
33
|
+
'io.flow.apple.pay.v0.enums.apple_pay_contact_field': (): io.flow.apple.pay.v0.enums.ApplePayContactField => faker.helpers.arrayElement(['email', 'name', 'phone', 'postal_address', 'phonetic_name']),
|
|
34
34
|
'io.flow.apple.pay.v0.enums.apple_pay_line_item_type': (): io.flow.apple.pay.v0.enums.ApplePayLineItemType => faker.helpers.arrayElement(['final', 'pending']),
|
|
35
35
|
'io.flow.apple.pay.v0.enums.apple_pay_merchant_capability': (): io.flow.apple.pay.v0.enums.ApplePayMerchantCapability => faker.helpers.arrayElement(['supports3DS', 'supportsCredit', 'supportsDebit', 'supportsEMV']),
|
|
36
36
|
'io.flow.apple.pay.v0.enums.apple_pay_shipping_type': (): io.flow.apple.pay.v0.enums.ApplePayShippingType => faker.helpers.arrayElement(['shipping', 'delivery', 'store_pickup', 'service_pickup']),
|
|
@@ -48,7 +48,7 @@ const factories = {
|
|
|
48
48
|
'io.flow.apple.pay.v0.models.apple_pay_line_item': (): io.flow.apple.pay.v0.models.ApplePayLineItem => ({
|
|
49
49
|
label: factories.string(),
|
|
50
50
|
type: factories['io.flow.apple.pay.v0.enums.apple_pay_line_item_type'](),
|
|
51
|
-
amount: factories.
|
|
51
|
+
amount: factories.decimal(),
|
|
52
52
|
}),
|
|
53
53
|
|
|
54
54
|
'io.flow.apple.pay.v0.models.apple_pay_payment_contact': (): io.flow.apple.pay.v0.models.ApplePayPaymentContact => ({
|
|
@@ -107,7 +107,7 @@ const factories = {
|
|
|
107
107
|
'io.flow.apple.pay.v0.models.apple_pay_shipping_method': (): io.flow.apple.pay.v0.models.ApplePayShippingMethod => ({
|
|
108
108
|
label: factories.string(),
|
|
109
109
|
detail: factories.string(),
|
|
110
|
-
amount: factories.
|
|
110
|
+
amount: factories.decimal(),
|
|
111
111
|
identifier: factories.string(),
|
|
112
112
|
}),
|
|
113
113
|
|
|
@@ -2384,6 +2384,7 @@ const factories = {
|
|
|
2384
2384
|
'io.flow.v0.enums.environment': (): io.flow.v0.enums.Environment => faker.helpers.arrayElement(['sandbox', 'production']),
|
|
2385
2385
|
|
|
2386
2386
|
'io.flow.v0.enums.event_type': (): io.flow.v0.enums.EventType => faker.helpers.arrayElement([
|
|
2387
|
+
'test_upserted',
|
|
2387
2388
|
'transaction_upserted',
|
|
2388
2389
|
'organization_transaction_upserted',
|
|
2389
2390
|
'organization_transaction_deleted',
|
|
@@ -2394,6 +2395,10 @@ const factories = {
|
|
|
2394
2395
|
'channel_transaction_deleted_v2',
|
|
2395
2396
|
'channel_statement_upserted',
|
|
2396
2397
|
'channel_statement_deleted',
|
|
2398
|
+
'channel_payout_upserted',
|
|
2399
|
+
'channel_payout_deleted',
|
|
2400
|
+
'organization_payout_upserted',
|
|
2401
|
+
'organization_payout_deleted',
|
|
2397
2402
|
'attribute_upserted',
|
|
2398
2403
|
'attribute_deleted',
|
|
2399
2404
|
'attribute_upserted_v2',
|
|
@@ -2616,6 +2621,7 @@ const factories = {
|
|
|
2616
2621
|
'io.flow.v0.enums.fulfillment_item_quantity_status': (): io.flow.v0.enums.FulfillmentItemQuantityStatus => faker.helpers.arrayElement(['new', 'shipped', 'cancelled']),
|
|
2617
2622
|
'io.flow.v0.enums.fulfillment_method_type': (): io.flow.v0.enums.FulfillmentMethodType => faker.helpers.arrayElement(['fulfillment_method']),
|
|
2618
2623
|
'io.flow.v0.enums.fulfillment_method_value': (): io.flow.v0.enums.FulfillmentMethodValue => faker.helpers.arrayElement(['digital', 'physical']),
|
|
2624
|
+
'io.flow.v0.enums.fulfillment_routing': (): io.flow.v0.enums.FulfillmentRouting => faker.helpers.arrayElement(['fulfilled_from_center', 'fulfillment_service']),
|
|
2619
2625
|
'io.flow.v0.enums.generic_error_code': (): io.flow.v0.enums.GenericErrorCode => faker.helpers.arrayElement(['generic_error', 'client_error', 'server_error']),
|
|
2620
2626
|
'io.flow.v0.enums.goods_supply': (): io.flow.v0.enums.GoodsSupply => faker.helpers.arrayElement(['export', 'intra_community', 'local']),
|
|
2621
2627
|
'io.flow.v0.enums.holiday_calendar': (): io.flow.v0.enums.HolidayCalendar => faker.helpers.arrayElement(['us_bank_holidays', 'jewish_holidays']),
|
|
@@ -2903,6 +2909,21 @@ const factories = {
|
|
|
2903
2909
|
'io.flow.v0.enums.payment_method_data_option_type': (): io.flow.v0.enums.PaymentMethodDataOptionType => faker.helpers.arrayElement(['ideal_issuer_option']),
|
|
2904
2910
|
'io.flow.v0.enums.payment_method_rule_content_key': (): io.flow.v0.enums.PaymentMethodRuleContentKey => faker.helpers.arrayElement(['description']),
|
|
2905
2911
|
'io.flow.v0.enums.payment_method_type': (): io.flow.v0.enums.PaymentMethodType => faker.helpers.arrayElement(['card', 'online', 'offline']),
|
|
2912
|
+
'io.flow.v0.enums.payment_request_review_check_status': (): io.flow.v0.enums.PaymentRequestReviewCheckStatus => faker.helpers.arrayElement(['passed', 'failed']),
|
|
2913
|
+
|
|
2914
|
+
'io.flow.v0.enums.payment_request_review_check_type': (): io.flow.v0.enums.PaymentRequestReviewCheckType => faker.helpers.arrayElement([
|
|
2915
|
+
'restricted_party_screening',
|
|
2916
|
+
'fraud_suspicious_behavior',
|
|
2917
|
+
'fraud_suspicious_past_activity',
|
|
2918
|
+
'fraud_risky_velocity',
|
|
2919
|
+
'fraud_previous_chargebacks',
|
|
2920
|
+
'order_restricted_goods',
|
|
2921
|
+
'order_unsupported_destination',
|
|
2922
|
+
'order_missing_information',
|
|
2923
|
+
'order_domestic',
|
|
2924
|
+
]),
|
|
2925
|
+
|
|
2926
|
+
'io.flow.v0.enums.payment_request_review_status': (): io.flow.v0.enums.PaymentRequestReviewStatus => faker.helpers.arrayElement(['pending', 'approved', 'rejected']),
|
|
2906
2927
|
'io.flow.v0.enums.payment_source_confirmation_action_type': (): io.flow.v0.enums.PaymentSourceConfirmationActionType => faker.helpers.arrayElement(['cvv', 'billing_address', 'number']),
|
|
2907
2928
|
|
|
2908
2929
|
'io.flow.v0.enums.payment_status': (): io.flow.v0.enums.PaymentStatus => faker.helpers.arrayElement([
|
|
@@ -3592,6 +3613,17 @@ const factories = {
|
|
|
3592
3613
|
display_name: factories.string(),
|
|
3593
3614
|
}),
|
|
3594
3615
|
|
|
3616
|
+
'io.flow.v0.models.applepay_sdk_create_result_action_details': (): io.flow.v0.models.ApplepaySdkCreateResultActionDetails => ({
|
|
3617
|
+
discriminator: 'applepay_sdk_create_result_action_details',
|
|
3618
|
+
merchant_identifier: factories.string(),
|
|
3619
|
+
payment_data_request: factories.object(),
|
|
3620
|
+
}),
|
|
3621
|
+
|
|
3622
|
+
'io.flow.v0.models.applepay_sdk_validate_result_action_details': (): io.flow.v0.models.ApplepaySdkValidateResultActionDetails => ({
|
|
3623
|
+
discriminator: 'applepay_sdk_validate_result_action_details',
|
|
3624
|
+
payment_session: factories.object(),
|
|
3625
|
+
}),
|
|
3626
|
+
|
|
3595
3627
|
'io.flow.v0.models.at_cost': (): io.flow.v0.models.AtCost => ({
|
|
3596
3628
|
discriminator: 'at_cost',
|
|
3597
3629
|
ignore: factories.string(),
|
|
@@ -3932,7 +3964,6 @@ const factories = {
|
|
|
3932
3964
|
}),
|
|
3933
3965
|
|
|
3934
3966
|
'io.flow.v0.models.bank_account_form': (): io.flow.v0.models.BankAccountForm => ({
|
|
3935
|
-
last4: factories.string(),
|
|
3936
3967
|
info: factories['io.flow.v0.unions.bank_account_info'](),
|
|
3937
3968
|
}),
|
|
3938
3969
|
|
|
@@ -3946,6 +3977,10 @@ const factories = {
|
|
|
3946
3977
|
id: factories.string(),
|
|
3947
3978
|
}),
|
|
3948
3979
|
|
|
3980
|
+
'io.flow.v0.models.bank_account_summary': (): io.flow.v0.models.BankAccountSummary => ({
|
|
3981
|
+
last4: factories.string(),
|
|
3982
|
+
}),
|
|
3983
|
+
|
|
3949
3984
|
'io.flow.v0.models.behavior_audit': (): io.flow.v0.models.BehaviorAudit => ({
|
|
3950
3985
|
behavior: factories['io.flow.v0.enums.flow_behavior'](),
|
|
3951
3986
|
authentication_techniques: arrayOf(() => factories['io.flow.v0.enums.authentication_technique']()),
|
|
@@ -4511,6 +4546,12 @@ const factories = {
|
|
|
4511
4546
|
channel_id: factories.string(),
|
|
4512
4547
|
}),
|
|
4513
4548
|
|
|
4549
|
+
'io.flow.v0.models.channel_bank_account': (): io.flow.v0.models.ChannelBankAccount => ({
|
|
4550
|
+
id: factories.string(),
|
|
4551
|
+
key: factories.string(),
|
|
4552
|
+
last4: factories.string(),
|
|
4553
|
+
}),
|
|
4554
|
+
|
|
4514
4555
|
'io.flow.v0.models.channel_currency': (): io.flow.v0.models.ChannelCurrency => ({
|
|
4515
4556
|
id: factories.string(),
|
|
4516
4557
|
currency: factories.string(),
|
|
@@ -4532,6 +4573,11 @@ const factories = {
|
|
|
4532
4573
|
channel_currency: factories['io.flow.v0.models.channel_currency'](),
|
|
4533
4574
|
}),
|
|
4534
4575
|
|
|
4576
|
+
'io.flow.v0.models.channel_default_bank_account': (): io.flow.v0.models.ChannelDefaultBankAccount => ({
|
|
4577
|
+
id: factories.string(),
|
|
4578
|
+
bank_account: factories['io.flow.v0.models.bank_account_reference'](),
|
|
4579
|
+
}),
|
|
4580
|
+
|
|
4535
4581
|
'io.flow.v0.models.channel_deleted': (): io.flow.v0.models.ChannelDeleted => ({
|
|
4536
4582
|
discriminator: 'channel_deleted',
|
|
4537
4583
|
event_id: factories.string(),
|
|
@@ -4592,12 +4638,29 @@ const factories = {
|
|
|
4592
4638
|
id: factories.string(),
|
|
4593
4639
|
account: factories['io.flow.v0.models.account_reference'](),
|
|
4594
4640
|
status: factories['io.flow.v0.unions.payout_status'](),
|
|
4641
|
+
bank_account: factories['io.flow.v0.models.bank_account_summary'](),
|
|
4595
4642
|
amount: factories.decimal(),
|
|
4596
4643
|
attachments: arrayOf(() => factories['io.flow.v0.models.payout_attachment']()),
|
|
4597
4644
|
created_at: factories.date_time_iso_8601(),
|
|
4598
4645
|
updated_at: factories.date_time_iso_8601(),
|
|
4599
4646
|
}),
|
|
4600
4647
|
|
|
4648
|
+
'io.flow.v0.models.channel_payout_deleted': (): io.flow.v0.models.ChannelPayoutDeleted => ({
|
|
4649
|
+
discriminator: 'channel_payout_deleted',
|
|
4650
|
+
event_id: factories.string(),
|
|
4651
|
+
timestamp: factories.date_time_iso_8601(),
|
|
4652
|
+
channel_id: factories.string(),
|
|
4653
|
+
id: factories.string(),
|
|
4654
|
+
}),
|
|
4655
|
+
|
|
4656
|
+
'io.flow.v0.models.channel_payout_upserted': (): io.flow.v0.models.ChannelPayoutUpserted => ({
|
|
4657
|
+
discriminator: 'channel_payout_upserted',
|
|
4658
|
+
event_id: factories.string(),
|
|
4659
|
+
timestamp: factories.date_time_iso_8601(),
|
|
4660
|
+
channel_id: factories.string(),
|
|
4661
|
+
payout: factories['io.flow.v0.models.channel_payout'](),
|
|
4662
|
+
}),
|
|
4663
|
+
|
|
4601
4664
|
'io.flow.v0.models.channel_rate': (): io.flow.v0.models.ChannelRate => ({
|
|
4602
4665
|
placeholder: factories.string(),
|
|
4603
4666
|
}),
|
|
@@ -4655,9 +4718,9 @@ const factories = {
|
|
|
4655
4718
|
}),
|
|
4656
4719
|
|
|
4657
4720
|
'io.flow.v0.models.channel_transaction': (): io.flow.v0.models.ChannelTransaction => ({
|
|
4721
|
+
statement: factories['io.flow.v0.models.billing_channel_statement_reference'](),
|
|
4658
4722
|
id: factories.string(),
|
|
4659
4723
|
order: factories['io.flow.v0.models.billing_channel_order_summary'](),
|
|
4660
|
-
statement: factories['io.flow.v0.models.billing_channel_statement_reference'](),
|
|
4661
4724
|
payment_request: factories['io.flow.v0.models.billing_channel_payment_request_reference'](),
|
|
4662
4725
|
currency: factories.string(),
|
|
4663
4726
|
source: factories['io.flow.v0.enums.transaction_source'](),
|
|
@@ -5538,6 +5601,13 @@ const factories = {
|
|
|
5538
5601
|
origin: factories.string(),
|
|
5539
5602
|
accept_language: factories.string(),
|
|
5540
5603
|
ip: factories.string(),
|
|
5604
|
+
time_zone_offset: factories.integer(),
|
|
5605
|
+
date_string: factories.string(),
|
|
5606
|
+
navigator_language: factories.string(),
|
|
5607
|
+
navigator_hardware_concurrency: factories.integer(),
|
|
5608
|
+
cookie_created_at: factories.integer(),
|
|
5609
|
+
session_duration: factories.integer(),
|
|
5610
|
+
fingerprint: factories.string(),
|
|
5541
5611
|
}),
|
|
5542
5612
|
|
|
5543
5613
|
'io.flow.v0.models.device_fingerprint_details_browser': (): io.flow.v0.models.DeviceFingerprintDetailsBrowser => ({
|
|
@@ -8810,6 +8880,7 @@ const factories = {
|
|
|
8810
8880
|
|
|
8811
8881
|
'io.flow.v0.models.organization_bank_account': (): io.flow.v0.models.OrganizationBankAccount => ({
|
|
8812
8882
|
id: factories.string(),
|
|
8883
|
+
key: factories.string(),
|
|
8813
8884
|
last4: factories.string(),
|
|
8814
8885
|
}),
|
|
8815
8886
|
|
|
@@ -8905,12 +8976,29 @@ const factories = {
|
|
|
8905
8976
|
id: factories.string(),
|
|
8906
8977
|
account: factories['io.flow.v0.models.account_reference'](),
|
|
8907
8978
|
status: factories['io.flow.v0.unions.payout_status'](),
|
|
8979
|
+
bank_account: factories['io.flow.v0.models.bank_account_summary'](),
|
|
8908
8980
|
amount: factories.decimal(),
|
|
8909
8981
|
attachments: arrayOf(() => factories['io.flow.v0.models.payout_attachment']()),
|
|
8910
8982
|
created_at: factories.date_time_iso_8601(),
|
|
8911
8983
|
updated_at: factories.date_time_iso_8601(),
|
|
8912
8984
|
}),
|
|
8913
8985
|
|
|
8986
|
+
'io.flow.v0.models.organization_payout_deleted': (): io.flow.v0.models.OrganizationPayoutDeleted => ({
|
|
8987
|
+
discriminator: 'organization_payout_deleted',
|
|
8988
|
+
event_id: factories.string(),
|
|
8989
|
+
timestamp: factories.date_time_iso_8601(),
|
|
8990
|
+
organization: factories.string(),
|
|
8991
|
+
id: factories.string(),
|
|
8992
|
+
}),
|
|
8993
|
+
|
|
8994
|
+
'io.flow.v0.models.organization_payout_upserted': (): io.flow.v0.models.OrganizationPayoutUpserted => ({
|
|
8995
|
+
discriminator: 'organization_payout_upserted',
|
|
8996
|
+
event_id: factories.string(),
|
|
8997
|
+
timestamp: factories.date_time_iso_8601(),
|
|
8998
|
+
organization: factories.string(),
|
|
8999
|
+
payout: factories['io.flow.v0.models.organization_payout'](),
|
|
9000
|
+
}),
|
|
9001
|
+
|
|
8914
9002
|
'io.flow.v0.models.organization_put_form': (): io.flow.v0.models.OrganizationPutForm => ({
|
|
8915
9003
|
name: factories.string(),
|
|
8916
9004
|
environment: factories['io.flow.v0.enums.environment'](),
|
|
@@ -9317,7 +9405,7 @@ const factories = {
|
|
|
9317
9405
|
|
|
9318
9406
|
'io.flow.v0.models.payment_method_data_authorize_applepay_result_failure': (): io.flow.v0.models.PaymentMethodDataAuthorizeApplepayResultFailure => ({
|
|
9319
9407
|
type: 'failure',
|
|
9320
|
-
|
|
9408
|
+
message: factories.string(),
|
|
9321
9409
|
}),
|
|
9322
9410
|
|
|
9323
9411
|
'io.flow.v0.models.payment_method_data_authorize_applepay_result_success': (): io.flow.v0.models.PaymentMethodDataAuthorizeApplepayResultSuccess => ({
|
|
@@ -9629,6 +9717,7 @@ const factories = {
|
|
|
9629
9717
|
payment_information: factories['io.flow.v0.models.payment_information'](),
|
|
9630
9718
|
supported_actions: arrayOf(() => factories['io.flow.v0.enums.payment_action_type']()),
|
|
9631
9719
|
payment_capture_option: factories['io.flow.v0.unions.payment_capture_option'](),
|
|
9720
|
+
review: factories['io.flow.v0.models.payment_request_review'](),
|
|
9632
9721
|
}),
|
|
9633
9722
|
|
|
9634
9723
|
'io.flow.v0.models.payment_request_billing': (): io.flow.v0.models.PaymentRequestBilling => ({
|
|
@@ -9669,6 +9758,16 @@ const factories = {
|
|
|
9669
9758
|
reference: factories.string(),
|
|
9670
9759
|
}),
|
|
9671
9760
|
|
|
9761
|
+
'io.flow.v0.models.payment_request_review': (): io.flow.v0.models.PaymentRequestReview => ({
|
|
9762
|
+
status: factories['io.flow.v0.enums.payment_request_review_status'](),
|
|
9763
|
+
checks: arrayOf(() => factories['io.flow.v0.models.payment_request_review_check']()),
|
|
9764
|
+
}),
|
|
9765
|
+
|
|
9766
|
+
'io.flow.v0.models.payment_request_review_check': (): io.flow.v0.models.PaymentRequestReviewCheck => ({
|
|
9767
|
+
type: factories['io.flow.v0.enums.payment_request_review_check_type'](),
|
|
9768
|
+
status: factories['io.flow.v0.enums.payment_request_review_check_status'](),
|
|
9769
|
+
}),
|
|
9770
|
+
|
|
9672
9771
|
'io.flow.v0.models.payment_request_upserted': (): io.flow.v0.models.PaymentRequestUpserted => ({
|
|
9673
9772
|
discriminator: 'payment_request_upserted',
|
|
9674
9773
|
event_id: factories.string(),
|
|
@@ -9742,6 +9841,23 @@ const factories = {
|
|
|
9742
9841
|
timestamp: factories.date_time_iso_8601(),
|
|
9743
9842
|
}),
|
|
9744
9843
|
|
|
9844
|
+
'io.flow.v0.models.payout_transaction': (): io.flow.v0.models.PayoutTransaction => ({
|
|
9845
|
+
id: factories.string(),
|
|
9846
|
+
order: factories['io.flow.v0.models.billing_channel_order_summary'](),
|
|
9847
|
+
payment_request: factories['io.flow.v0.models.billing_channel_payment_request_reference'](),
|
|
9848
|
+
currency: factories.string(),
|
|
9849
|
+
source: factories['io.flow.v0.enums.transaction_source'](),
|
|
9850
|
+
parent: factories['io.flow.v0.models.parent_transaction_summary'](),
|
|
9851
|
+
gross: factories.decimal(),
|
|
9852
|
+
fees: arrayOf(() => factories['io.flow.v0.models.fee_deduction']()),
|
|
9853
|
+
withholdings: arrayOf(() => factories['io.flow.v0.models.withholding_deduction']()),
|
|
9854
|
+
discounts: arrayOf(() => factories['io.flow.v0.models.billing_discount']()),
|
|
9855
|
+
net: factories.decimal(),
|
|
9856
|
+
identifiers: objectOf(() => factories.string()),
|
|
9857
|
+
created_at: factories.date_time_iso_8601(),
|
|
9858
|
+
updated_at: factories.date_time_iso_8601(),
|
|
9859
|
+
}),
|
|
9860
|
+
|
|
9745
9861
|
'io.flow.v0.models.paypal_authorization_details': (): io.flow.v0.models.PaypalAuthorizationDetails => ({
|
|
9746
9862
|
discriminator: 'paypal_authorization_details',
|
|
9747
9863
|
payment_id: factories.string(),
|
|
@@ -9827,6 +9943,8 @@ const factories = {
|
|
|
9827
9943
|
id: factories.string(),
|
|
9828
9944
|
key: factories.string(),
|
|
9829
9945
|
center: factories['io.flow.v0.models.center_summary'](),
|
|
9946
|
+
fulfillment_routing: factories['io.flow.v0.enums.fulfillment_routing'](),
|
|
9947
|
+
ship_from_country: factories.string(),
|
|
9830
9948
|
items: arrayOf(() => factories['io.flow.v0.models.delivery_item']()),
|
|
9831
9949
|
options: arrayOf(() => factories['io.flow.v0.models.delivery_option']()),
|
|
9832
9950
|
special_services: arrayOf(() => factories['io.flow.v0.enums.physical_delivery_special_serivce']()),
|
|
@@ -11329,6 +11447,7 @@ const factories = {
|
|
|
11329
11447
|
|
|
11330
11448
|
'io.flow.v0.models.shipping_label_document': (): io.flow.v0.models.ShippingLabelDocument => ({
|
|
11331
11449
|
zpl: factories.string(),
|
|
11450
|
+
zpl_url: factories.string(),
|
|
11332
11451
|
pdf: factories.string(),
|
|
11333
11452
|
pdf_data: factories.string(),
|
|
11334
11453
|
png: factories.string(),
|
|
@@ -12216,6 +12335,18 @@ const factories = {
|
|
|
12216
12335
|
email_recipients: arrayOf(() => factories.string()),
|
|
12217
12336
|
}),
|
|
12218
12337
|
|
|
12338
|
+
'io.flow.v0.models.test': (): io.flow.v0.models.Test => ({
|
|
12339
|
+
id: factories.string(),
|
|
12340
|
+
}),
|
|
12341
|
+
|
|
12342
|
+
'io.flow.v0.models.test_upserted': (): io.flow.v0.models.TestUpserted => ({
|
|
12343
|
+
discriminator: 'test_upserted',
|
|
12344
|
+
event_id: factories.string(),
|
|
12345
|
+
timestamp: factories.date_time_iso_8601(),
|
|
12346
|
+
organization: factories.string(),
|
|
12347
|
+
test: factories['io.flow.v0.models.test'](),
|
|
12348
|
+
}),
|
|
12349
|
+
|
|
12219
12350
|
'io.flow.v0.models.third_party_logistics_partner': (): io.flow.v0.models.ThirdPartyLogisticsPartner => ({
|
|
12220
12351
|
warehouse_address: factories['io.flow.v0.models.merchant_onboarding_address'](),
|
|
12221
12352
|
warehouse_url: factories.string(),
|
|
@@ -12543,9 +12674,9 @@ const factories = {
|
|
|
12543
12674
|
}),
|
|
12544
12675
|
|
|
12545
12676
|
'io.flow.v0.models.transaction': (): io.flow.v0.models.Transaction => ({
|
|
12677
|
+
statement: factories['io.flow.v0.models.billing_channel_statement_reference'](),
|
|
12546
12678
|
id: factories.string(),
|
|
12547
12679
|
order: factories['io.flow.v0.models.billing_channel_order_summary'](),
|
|
12548
|
-
statement: factories['io.flow.v0.models.billing_channel_statement_reference'](),
|
|
12549
12680
|
payment_request: factories['io.flow.v0.models.billing_channel_payment_request_reference'](),
|
|
12550
12681
|
currency: factories.string(),
|
|
12551
12682
|
source: factories['io.flow.v0.enums.transaction_source'](),
|
|
@@ -12921,6 +13052,8 @@ const factories = {
|
|
|
12921
13052
|
() => factories['io.flow.v0.models.stripe_authorization_result_action_details'](),
|
|
12922
13053
|
() => factories['io.flow.v0.models.threeds_identify_action_details'](),
|
|
12923
13054
|
() => factories['io.flow.v0.models.threeds_challenge_action_details'](),
|
|
13055
|
+
() => factories['io.flow.v0.models.applepay_sdk_create_result_action_details'](),
|
|
13056
|
+
() => factories['io.flow.v0.models.applepay_sdk_validate_result_action_details'](),
|
|
12924
13057
|
() => factories['io.flow.v0.models.klarna_sdk_authorization_result_action_details'](),
|
|
12925
13058
|
() => factories['io.flow.v0.models.select_issuer_option_action_details'](),
|
|
12926
13059
|
]);
|
|
@@ -13064,6 +13197,7 @@ const factories = {
|
|
|
13064
13197
|
|
|
13065
13198
|
'io.flow.v0.unions.event': (): io.flow.v0.unions.Event => {
|
|
13066
13199
|
const f = faker.helpers.arrayElement([
|
|
13200
|
+
() => factories['io.flow.v0.models.test_upserted'](),
|
|
13067
13201
|
() => factories['io.flow.v0.models.transaction_upserted'](),
|
|
13068
13202
|
() => factories['io.flow.v0.models.organization_transaction_upserted'](),
|
|
13069
13203
|
() => factories['io.flow.v0.models.organization_transaction_deleted'](),
|
|
@@ -13074,6 +13208,10 @@ const factories = {
|
|
|
13074
13208
|
() => factories['io.flow.v0.models.channel_transaction_deleted_v2'](),
|
|
13075
13209
|
() => factories['io.flow.v0.models.channel_statement_upserted'](),
|
|
13076
13210
|
() => factories['io.flow.v0.models.channel_statement_deleted'](),
|
|
13211
|
+
() => factories['io.flow.v0.models.channel_payout_upserted'](),
|
|
13212
|
+
() => factories['io.flow.v0.models.channel_payout_deleted'](),
|
|
13213
|
+
() => factories['io.flow.v0.models.organization_payout_upserted'](),
|
|
13214
|
+
() => factories['io.flow.v0.models.organization_payout_deleted'](),
|
|
13077
13215
|
() => factories['io.flow.v0.models.attribute_upserted'](),
|
|
13078
13216
|
() => factories['io.flow.v0.models.attribute_deleted'](),
|
|
13079
13217
|
() => factories['io.flow.v0.models.attribute_upserted_v2'](),
|
|
@@ -14029,6 +14167,8 @@ export const makeAmountMargin = () => factories['io.flow.v0.models.amount_margin
|
|
|
14029
14167
|
export const makeAmountMarginForm = () => factories['io.flow.v0.models.amount_margin_form']();
|
|
14030
14168
|
export const makeAnalyticsExportType = () => factories['io.flow.v0.models.analytics_export_type']();
|
|
14031
14169
|
export const makeApplePayMerchantValidationPayload = () => factories['io.flow.v0.models.apple_pay_merchant_validation_payload']();
|
|
14170
|
+
export const makeApplepaySdkCreateResultActionDetails = () => factories['io.flow.v0.models.applepay_sdk_create_result_action_details']();
|
|
14171
|
+
export const makeApplepaySdkValidateResultActionDetails = () => factories['io.flow.v0.models.applepay_sdk_validate_result_action_details']();
|
|
14032
14172
|
export const makeAtCost = () => factories['io.flow.v0.models.at_cost']();
|
|
14033
14173
|
export const makeAttachment = () => factories['io.flow.v0.models.attachment']();
|
|
14034
14174
|
export const makeAttribute = () => factories['io.flow.v0.models.attribute']();
|
|
@@ -14095,6 +14235,7 @@ export const makeBankAccountForm = () => factories['io.flow.v0.models.bank_accou
|
|
|
14095
14235
|
export const makeBankAccountInfo = () => factories['io.flow.v0.unions.bank_account_info']();
|
|
14096
14236
|
export const makeBankAccountInfoUsa = () => factories['io.flow.v0.models.bank_account_info_usa']();
|
|
14097
14237
|
export const makeBankAccountReference = () => factories['io.flow.v0.models.bank_account_reference']();
|
|
14238
|
+
export const makeBankAccountSummary = () => factories['io.flow.v0.models.bank_account_summary']();
|
|
14098
14239
|
export const makeBehaviorAudit = () => factories['io.flow.v0.models.behavior_audit']();
|
|
14099
14240
|
export const makeBillingAddress = () => factories['io.flow.v0.models.billing_address']();
|
|
14100
14241
|
export const makeBillingChannelOrderSummary = () => factories['io.flow.v0.models.billing_channel_order_summary']();
|
|
@@ -14183,10 +14324,12 @@ export const makeChangeType = () => factories['io.flow.v0.enums.change_type']();
|
|
|
14183
14324
|
export const makeChannel = () => factories['io.flow.v0.models.channel']();
|
|
14184
14325
|
export const makeChannelAuthorization = () => factories['io.flow.v0.models.channel_authorization']();
|
|
14185
14326
|
export const makeChannelAuthorizationForm = () => factories['io.flow.v0.models.channel_authorization_form']();
|
|
14327
|
+
export const makeChannelBankAccount = () => factories['io.flow.v0.models.channel_bank_account']();
|
|
14186
14328
|
export const makeChannelCurrency = () => factories['io.flow.v0.models.channel_currency']();
|
|
14187
14329
|
export const makeChannelCurrencyCapability = () => factories['io.flow.v0.enums.channel_currency_capability']();
|
|
14188
14330
|
export const makeChannelCurrencyDeleted = () => factories['io.flow.v0.models.channel_currency_deleted']();
|
|
14189
14331
|
export const makeChannelCurrencyUpserted = () => factories['io.flow.v0.models.channel_currency_upserted']();
|
|
14332
|
+
export const makeChannelDefaultBankAccount = () => factories['io.flow.v0.models.channel_default_bank_account']();
|
|
14190
14333
|
export const makeChannelDeleted = () => factories['io.flow.v0.models.channel_deleted']();
|
|
14191
14334
|
export const makeChannelOrganization = () => factories['io.flow.v0.models.channel_organization']();
|
|
14192
14335
|
export const makeChannelOrganizationAuthorization = () => factories['io.flow.v0.models.channel_organization_authorization']();
|
|
@@ -14196,6 +14339,8 @@ export const makeChannelOrganizationForm = () => factories['io.flow.v0.models.ch
|
|
|
14196
14339
|
export const makeChannelOrganizationPutForm = () => factories['io.flow.v0.models.channel_organization_put_form']();
|
|
14197
14340
|
export const makeChannelOrganizationUpserted = () => factories['io.flow.v0.models.channel_organization_upserted']();
|
|
14198
14341
|
export const makeChannelPayout = () => factories['io.flow.v0.models.channel_payout']();
|
|
14342
|
+
export const makeChannelPayoutDeleted = () => factories['io.flow.v0.models.channel_payout_deleted']();
|
|
14343
|
+
export const makeChannelPayoutUpserted = () => factories['io.flow.v0.models.channel_payout_upserted']();
|
|
14199
14344
|
export const makeChannelRate = () => factories['io.flow.v0.models.channel_rate']();
|
|
14200
14345
|
export const makeChannelReference = () => factories['io.flow.v0.models.channel_reference']();
|
|
14201
14346
|
export const makeChannelStatement = () => factories['io.flow.v0.models.channel_statement']();
|
|
@@ -14544,6 +14689,7 @@ export const makeFulfillmentItemQuantityStatus = () => factories['io.flow.v0.enu
|
|
|
14544
14689
|
export const makeFulfillmentLineCancelForm = () => factories['io.flow.v0.models.fulfillment_line_cancel_form']();
|
|
14545
14690
|
export const makeFulfillmentMethodType = () => factories['io.flow.v0.enums.fulfillment_method_type']();
|
|
14546
14691
|
export const makeFulfillmentMethodValue = () => factories['io.flow.v0.enums.fulfillment_method_value']();
|
|
14692
|
+
export const makeFulfillmentRouting = () => factories['io.flow.v0.enums.fulfillment_routing']();
|
|
14547
14693
|
export const makeFullyHarmonizedItemUpserted = () => factories['io.flow.v0.models.fully_harmonized_item_upserted']();
|
|
14548
14694
|
export const makeGatewayAuthenticationData = () => factories['io.flow.v0.unions.gateway_authentication_data']();
|
|
14549
14695
|
export const makeGatewayAuthenticationDataForm = () => factories['io.flow.v0.unions.gateway_authentication_data_form']();
|
|
@@ -14947,6 +15093,8 @@ export const makeOrganizationOnboardingStateDeleted = () => factories['io.flow.v
|
|
|
14947
15093
|
export const makeOrganizationOnboardingStateUpserted = () => factories['io.flow.v0.models.organization_onboarding_state_upserted']();
|
|
14948
15094
|
export const makeOrganizationPaymentMethodTag = () => factories['io.flow.v0.enums.organization_payment_method_tag']();
|
|
14949
15095
|
export const makeOrganizationPayout = () => factories['io.flow.v0.models.organization_payout']();
|
|
15096
|
+
export const makeOrganizationPayoutDeleted = () => factories['io.flow.v0.models.organization_payout_deleted']();
|
|
15097
|
+
export const makeOrganizationPayoutUpserted = () => factories['io.flow.v0.models.organization_payout_upserted']();
|
|
14950
15098
|
export const makeOrganizationPutForm = () => factories['io.flow.v0.models.organization_put_form']();
|
|
14951
15099
|
export const makeOrganizationRatesData = () => factories['io.flow.v0.models.organization_rates_data']();
|
|
14952
15100
|
export const makeOrganizationRatesPublished = () => factories['io.flow.v0.models.organization_rates_published']();
|
|
@@ -15084,6 +15232,11 @@ export const makePaymentRequestBundle = () => factories['io.flow.v0.models.payme
|
|
|
15084
15232
|
export const makePaymentRequestBundleForm = () => factories['io.flow.v0.models.payment_request_bundle_form']();
|
|
15085
15233
|
export const makePaymentRequestForm = () => factories['io.flow.v0.models.payment_request_form']();
|
|
15086
15234
|
export const makePaymentRequestReference = () => factories['io.flow.v0.models.payment_request_reference']();
|
|
15235
|
+
export const makePaymentRequestReview = () => factories['io.flow.v0.models.payment_request_review']();
|
|
15236
|
+
export const makePaymentRequestReviewCheck = () => factories['io.flow.v0.models.payment_request_review_check']();
|
|
15237
|
+
export const makePaymentRequestReviewCheckStatus = () => factories['io.flow.v0.enums.payment_request_review_check_status']();
|
|
15238
|
+
export const makePaymentRequestReviewCheckType = () => factories['io.flow.v0.enums.payment_request_review_check_type']();
|
|
15239
|
+
export const makePaymentRequestReviewStatus = () => factories['io.flow.v0.enums.payment_request_review_status']();
|
|
15087
15240
|
export const makePaymentRequestUpserted = () => factories['io.flow.v0.models.payment_request_upserted']();
|
|
15088
15241
|
export const makePaymentReversal = () => factories['io.flow.v0.models.payment_reversal']();
|
|
15089
15242
|
export const makePaymentReversalForm = () => factories['io.flow.v0.models.payment_reversal_form']();
|
|
@@ -15104,6 +15257,7 @@ export const makePayoutStatusFailed = () => factories['io.flow.v0.models.payout_
|
|
|
15104
15257
|
export const makePayoutStatusFailureCode = () => factories['io.flow.v0.enums.payout_status_failure_code']();
|
|
15105
15258
|
export const makePayoutStatusScheduled = () => factories['io.flow.v0.models.payout_status_scheduled']();
|
|
15106
15259
|
export const makePayoutStatusSent = () => factories['io.flow.v0.models.payout_status_sent']();
|
|
15260
|
+
export const makePayoutTransaction = () => factories['io.flow.v0.models.payout_transaction']();
|
|
15107
15261
|
export const makePaypalAuthorizationDetails = () => factories['io.flow.v0.models.paypal_authorization_details']();
|
|
15108
15262
|
export const makePaypalAuthorizationForm = () => factories['io.flow.v0.models.paypal_authorization_form']();
|
|
15109
15263
|
export const makePeakSurchargeByWeightServiceFee = () => factories['io.flow.v0.models.peak_surcharge_by_weight_service_fee']();
|
|
@@ -15505,6 +15659,8 @@ export const makeTaxSetting = () => factories['io.flow.v0.unions.tax_setting']()
|
|
|
15505
15659
|
export const makeTaxVerificationResult = () => factories['io.flow.v0.enums.tax_verification_result']();
|
|
15506
15660
|
export const makeTaxabilityType = () => factories['io.flow.v0.enums.taxability_type']();
|
|
15507
15661
|
export const makeTaxabilityValue = () => factories['io.flow.v0.enums.taxability_value']();
|
|
15662
|
+
export const makeTest = () => factories['io.flow.v0.models.test']();
|
|
15663
|
+
export const makeTestUpserted = () => factories['io.flow.v0.models.test_upserted']();
|
|
15508
15664
|
export const makeThirdPartyLogisticsPartner = () => factories['io.flow.v0.models.third_party_logistics_partner']();
|
|
15509
15665
|
export const makeThreeDSecure = () => factories['io.flow.v0.models.three_d_secure']();
|
|
15510
15666
|
export const makeThreeDSecureCode = () => factories['io.flow.v0.enums.three_d_secure_code']();
|