@flowio/types 11.24.113 → 11.24.115

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.
@@ -1578,6 +1578,14 @@ declare namespace io.flow.payment.v0.enums {
1578
1578
  | 'small'
1579
1579
  | 'fullscreen';
1580
1580
  type TokenType = 'permanent' | 'one_time';
1581
+ type TransferStatus = 'succeeded' | 'canceled';
1582
+ type TransferType =
1583
+ | 'payout_to_merchant'
1584
+ | 'disputed_amount_to_merchant'
1585
+ | 'duties_and_taxes_adjustment_to_merchant'
1586
+ | 'disputed_amount_from_merchant'
1587
+ | 'duties_and_taxes_adjustment_from_merchant'
1588
+ | 'refund_from_merchant';
1581
1589
  }
1582
1590
 
1583
1591
  declare namespace io.flow.payment.v0.models {
@@ -1792,6 +1800,7 @@ declare namespace io.flow.payment.v0.models {
1792
1800
  }
1793
1801
 
1794
1802
  interface CaptureReference {
1803
+ readonly discriminator: 'capture_reference';
1795
1804
  readonly id: string;
1796
1805
  readonly key: string;
1797
1806
  }
@@ -2006,6 +2015,17 @@ declare namespace io.flow.payment.v0.models {
2006
2015
  readonly account_holder_name?: string;
2007
2016
  }
2008
2017
 
2018
+ interface DisputeReference {
2019
+ readonly discriminator: 'dispute_reference';
2020
+ readonly id: string;
2021
+ readonly key: string;
2022
+ }
2023
+
2024
+ interface ExchangedMoney {
2025
+ readonly fx_rate: number;
2026
+ readonly money: io.flow.common.v0.models.Money;
2027
+ }
2028
+
2009
2029
  interface Expiration {
2010
2030
  readonly month: number;
2011
2031
  readonly year: number;
@@ -2359,6 +2379,7 @@ declare namespace io.flow.payment.v0.models {
2359
2379
  }
2360
2380
 
2361
2381
  interface RefundReference {
2382
+ readonly discriminator: 'refund_reference';
2362
2383
  readonly id: string;
2363
2384
  readonly key: string;
2364
2385
  }
@@ -2484,6 +2505,17 @@ declare namespace io.flow.payment.v0.models {
2484
2505
  readonly network?: io.flow.payment.v0.enums.CardType;
2485
2506
  }
2486
2507
 
2508
+ interface Transfer {
2509
+ readonly id: string;
2510
+ readonly type: io.flow.payment.v0.enums.TransferType;
2511
+ readonly money: io.flow.common.v0.models.Money;
2512
+ readonly transferred_money: io.flow.payment.v0.models.ExchangedMoney;
2513
+ readonly status: io.flow.payment.v0.enums.TransferStatus;
2514
+ readonly created_at: string;
2515
+ readonly reference: io.flow.payment.v0.unions.TransferReference;
2516
+ readonly transferred_at: string;
2517
+ }
2518
+
2487
2519
  interface VirtualCard {
2488
2520
  readonly id: string;
2489
2521
  readonly key: string;
@@ -2619,6 +2651,10 @@ declare namespace io.flow.payment.v0.unions {
2619
2651
  io.flow.payment.v0.models.ThreedsTwoChallengeRequest;
2620
2652
  type ThreedsIdentifyAction = io.flow.payment.v0.models.ThreedsTwoMethod;
2621
2653
  type TransactionDetails = io.flow.payment.v0.models.TransactionDetailsCard;
2654
+ type TransferReference =
2655
+ | io.flow.payment.v0.models.CaptureReference
2656
+ | io.flow.payment.v0.models.RefundReference
2657
+ | io.flow.payment.v0.models.DisputeReference;
2622
2658
  }
2623
2659
 
2624
2660
  declare namespace io.flow.field.validation.v0.models {
@@ -2774,17 +2810,52 @@ declare namespace io.flow.stripe.v0.enums {
2774
2810
  type CheckOutcome = 'pass' | 'fail' | 'unavailable' | 'unchecked';
2775
2811
  type CodeVerificationStatus = 'pending' | 'succeeded' | 'failed';
2776
2812
  type ConfirmationMethod = 'automatic' | 'manual';
2777
- type ConnectReportReportingCategory =
2778
- | 'charge'
2779
- | 'refund'
2813
+ type ConnectReportBalanceReportingCategory =
2814
+ | 'anticipation_repayment'
2815
+ | 'climate_order_purchase'
2816
+ | 'climate_order_refund'
2817
+ | 'contribution'
2818
+ | 'currency_conversion'
2819
+ | 'fee'
2820
+ | 'other_adjustment'
2821
+ | 'payment_network_reserve_hold'
2822
+ | 'payment_network_reserve_release'
2823
+ | 'payout'
2824
+ | 'payout_minimum_balance_hold'
2825
+ | 'payout_minimum_balance_release'
2780
2826
  | 'payout_reversal'
2827
+ | 'risk_reserved_funds'
2828
+ | 'stripe_balance_payment_debit'
2829
+ | 'stripe_balance_payment_debit_reversal'
2830
+ | 'topup'
2831
+ | 'topup_reversal'
2832
+ | 'unreconciled_customer_funds';
2833
+ type ConnectReportConnectReportingCategory =
2834
+ | 'advance'
2835
+ | 'advance_funding'
2836
+ | 'connect_collection_transfer'
2837
+ | 'connect_reserved_funds'
2838
+ | 'platform_earning'
2839
+ | 'platform_earning_refund'
2781
2840
  | 'transfer'
2782
2841
  | 'transfer_reversal';
2783
- type ConnectReportShopPlan = 'shopify_plus' | 'standard';
2784
- type ConnectReportTransferType =
2785
- | 'ManagedMarketsRefundDebit'
2786
- | 'ManagedMarketsDutiesAndTaxesAdjustmentDebit'
2787
- | 'ManagedMarketsDisputedAmountDebit';
2842
+ type ConnectReportIssuingReportingCategory =
2843
+ | 'issuing_authorization_hold'
2844
+ | 'issuing_authorization_release'
2845
+ | 'issuing_disbursement'
2846
+ | 'issuing_dispute'
2847
+ | 'issuing_dispute_fraud_liability_debit'
2848
+ | 'issuing_dispute_provisional_credit'
2849
+ | 'issuing_dispute_provisional_credit_reversal'
2850
+ | 'issuing_transaction';
2851
+ type ConnectReportPaymentReportingCategory =
2852
+ | 'charge'
2853
+ | 'charge_failure'
2854
+ | 'dispute'
2855
+ | 'dispute_reversal'
2856
+ | 'partial_capture_reversal'
2857
+ | 'refund'
2858
+ | 'refund_failure';
2788
2859
  type DeclineCode =
2789
2860
  | 'approve_with_id'
2790
2861
  | 'call_issuer'
@@ -3393,46 +3464,6 @@ declare namespace io.flow.stripe.v0.models {
3393
3464
  readonly status: io.flow.stripe.v0.enums.CodeVerificationStatus;
3394
3465
  }
3395
3466
 
3396
- interface ConnectReportRecord {
3397
- readonly created_utc: string;
3398
- readonly charge_id?: string;
3399
- readonly payment_intent_id?: string;
3400
- readonly gross: number;
3401
- readonly fee: number;
3402
- readonly net: number;
3403
- readonly currency: string;
3404
- readonly connected_account: string;
3405
- readonly reporting_category: io.flow.stripe.v0.enums.ConnectReportReportingCategory;
3406
- readonly dispute_reason?: io.flow.stripe.v0.enums.DisputeReason;
3407
- readonly available_on_utc: string;
3408
- readonly automatic_payout_effective_at_utc?: string;
3409
- readonly source_id?: string;
3410
- readonly customer_facing_amount?: number;
3411
- readonly customer_facing_currency?: string;
3412
- readonly payment_method_type?: string;
3413
- readonly card_brand?: string;
3414
- readonly statement_descriptor?: string;
3415
- readonly payment_metadata?: io.flow.stripe.v0.models.ConnectReportRecordPaymentMetadata;
3416
- readonly transfer_metadata?: any /*object*/;
3417
- }
3418
-
3419
- interface ConnectReportRecordPaymentMetadata {
3420
- readonly shop_id?: number;
3421
- readonly shop_plan?: io.flow.stripe.v0.enums.ConnectReportShopPlan;
3422
- readonly checkout_id?: string;
3423
- readonly order_id?: number;
3424
- readonly order_transaction_id?: number;
3425
- readonly transfer_type?: io.flow.stripe.v0.enums.ConnectReportTransferType;
3426
- readonly transfer_exchange_rate?: number;
3427
- readonly charge_total?: number;
3428
- readonly charge_currency?: string;
3429
- readonly charge_exchange_rate?: number;
3430
- readonly duties?: number;
3431
- readonly import_taxes?: number;
3432
- readonly mor_fee?: number;
3433
- readonly fx_fee?: number;
3434
- }
3435
-
3436
3467
  interface Customer {
3437
3468
  readonly id: string;
3438
3469
  readonly object: string;
@@ -4439,6 +4470,25 @@ declare namespace io.flow.stripe.v0.unions {
4439
4470
  | io.flow.stripe.v0.models.Masterpass
4440
4471
  | io.flow.stripe.v0.models.ApplePay
4441
4472
  | io.flow.stripe.v0.models.VisaCheckout;
4473
+
4474
+ type ConnectReportReportingCategory =
4475
+ | {
4476
+ discriminator: 'connect_report_payment_reporting_category';
4477
+ value: io.flow.stripe.v0.enums.ConnectReportPaymentReportingCategory;
4478
+ }
4479
+ | {
4480
+ discriminator: 'connect_report_balance_reporting_category';
4481
+ value: io.flow.stripe.v0.enums.ConnectReportBalanceReportingCategory;
4482
+ }
4483
+ | {
4484
+ discriminator: 'connect_report_issuing_reporting_category';
4485
+ value: io.flow.stripe.v0.enums.ConnectReportIssuingReportingCategory;
4486
+ }
4487
+ | {
4488
+ discriminator: 'connect_report_connect_reporting_category';
4489
+ value: io.flow.stripe.v0.enums.ConnectReportConnectReportingCategory;
4490
+ };
4491
+
4442
4492
  type PaymentMethodData =
4443
4493
  | io.flow.stripe.v0.models.PaymentMethodDataCard
4444
4494
  | io.flow.stripe.v0.models.PaymentMethodDataIdeal
@@ -8369,6 +8419,7 @@ declare namespace io.flow.shopify.markets.v0.enums {
8369
8419
  | 'orders/updated'
8370
8420
  | 'orders/delete'
8371
8421
  | 'orders/edited'
8422
+ | 'orders/risk_assessment_changed'
8372
8423
  | 'products/create'
8373
8424
  | 'products/delete'
8374
8425
  | 'products/update'
@@ -8915,6 +8966,12 @@ declare namespace io.flow.shopify.markets.v0.models {
8915
8966
  readonly total_tax_set?: io.flow.shopify.markets.v0.models.ShopifyOrderMoneySet;
8916
8967
  }
8917
8968
 
8969
+ interface ShopifyOrderRiskAssessmentChanged {
8970
+ readonly order_id: number;
8971
+ readonly risk_level: string;
8972
+ readonly created_at: string;
8973
+ }
8974
+
8918
8975
  interface ShopifyOrderShippingLine {
8919
8976
  readonly code?: string;
8920
8977
  readonly price: string;
@@ -11676,6 +11733,13 @@ declare namespace io.flow.ratecard.v0.models {
11676
11733
  readonly amount: io.flow.common.v0.models.Money;
11677
11734
  }
11678
11735
 
11736
+ interface OverweightPieceSurchargeServiceFee {
11737
+ readonly discriminator: 'overweight_piece_surcharge_service_fee';
11738
+ readonly weight_threshold?: number;
11739
+ readonly weight_unit?: io.flow.common.v0.enums.UnitOfMeasurement;
11740
+ readonly amount: io.flow.common.v0.models.Money;
11741
+ }
11742
+
11679
11743
  interface PeakSurchargeByWeightServiceFee {
11680
11744
  readonly discriminator: 'peak_surcharge_by_weight_service_fee';
11681
11745
  readonly amount: io.flow.common.v0.models.Money;
@@ -11781,6 +11845,8 @@ declare namespace io.flow.ratecard.v0.models {
11781
11845
  readonly discriminator: 'ratecard_estimate_v4';
11782
11846
  readonly hops: io.flow.ratecard.v0.models.HopV2[];
11783
11847
  readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
11848
+ readonly distance_unit_of_measurement?: io.flow.common.v0.enums.UnitOfMeasurement;
11849
+ readonly weight_unit_of_measurement?: io.flow.common.v0.enums.UnitOfMeasurement;
11784
11850
  readonly dimensional_weight?: io.flow.common.v0.models.Measurement;
11785
11851
  readonly gravitational_weight?: io.flow.common.v0.models.Measurement;
11786
11852
  readonly ratecard_id?: string;
@@ -11794,6 +11860,7 @@ declare namespace io.flow.ratecard.v0.models {
11794
11860
  interface RatecardForm {
11795
11861
  readonly direction: io.flow.label.v0.enums.Direction;
11796
11862
  readonly effective_at: string;
11863
+ readonly published_at?: string;
11797
11864
  readonly origination_zones: io.flow.common.v0.models.Zone[];
11798
11865
  readonly service: string;
11799
11866
  readonly number?: string;
@@ -11979,6 +12046,7 @@ declare namespace io.flow.ratecard.v0.unions {
11979
12046
  | io.flow.ratecard.v0.models.PeakSurchargeByWeightServiceFee
11980
12047
  | io.flow.ratecard.v0.models.DutiesTaxesPaidSurchargeServiceFee
11981
12048
  | io.flow.ratecard.v0.models.OversizePieceSurchargeServiceFee
12049
+ | io.flow.ratecard.v0.models.OverweightPieceSurchargeServiceFee
11982
12050
  | io.flow.ratecard.v0.models.RemoteAreaByWeightServiceFee
11983
12051
  | io.flow.ratecard.v0.models.AdditionalHandlingServiceFee
11984
12052
  | io.flow.ratecard.v0.models.LargePackageServiceFee
@@ -13901,6 +13969,7 @@ declare namespace io.flow.billing.v0.enums {
13901
13969
  | 'virtual_card_refund'
13902
13970
  | 'failed_payout'
13903
13971
  | 'tax_refund'
13972
+ | 'duty_refund'
13904
13973
  | 'non_l4l_tax_duty_fx'
13905
13974
  | 'ge_revenue_share';
13906
13975
  type TrueupSource = 'flow' | 'channel' | 'dhl-parcel' | 'dhl' | 'ups';
@@ -16480,7 +16549,7 @@ declare namespace io.flow.internal.v0.enums {
16480
16549
  type ClassificationDecision = 'Accept' | 'Reject';
16481
16550
  type ClassificationErrorCode = 'generic_error';
16482
16551
  type ClassificationPlatform = 'GlobalE' | 'Flow' | 'Borderfree';
16483
- type ClassificationType = 'None' | 'Manual' | 'ML';
16552
+ type ClassificationType = 'None' | 'Manual' | 'ML' | 'System';
16484
16553
  type ClothingAgeClassification =
16485
16554
  | 'None'
16486
16555
  | 'AgeKidsGeneral'
@@ -16489,6 +16558,14 @@ declare namespace io.flow.internal.v0.enums {
16489
16558
  | 'Age13_14';
16490
16559
  type Company = 'globale' | 'flow';
16491
16560
  type ComplianceType = 'weee';
16561
+ type ConnectReportPaymentTransferType =
16562
+ | 'ManagedMarketsRefundDebit'
16563
+ | 'ManagedMarketsDutiesAndTaxesAdjustmentDebit'
16564
+ | 'ManagedMarketsDisputedAmountDebit';
16565
+ type ConnectReportTransferTransferType =
16566
+ | 'ManagedMarketsChargeCredit'
16567
+ | 'ManagedMarketsDisputeWonAmountCredit'
16568
+ | 'ManagedMarketsDutiesAndTaxesAdjustmentCredit';
16492
16569
  type ContentElementType = 'markdown' | 'html' | 'plain_text' | 'href';
16493
16570
  type ContentStatus = 'draft' | 'live' | 'archived';
16494
16571
  type ContentType = 'text' | 'html';
@@ -16538,7 +16615,7 @@ declare namespace io.flow.internal.v0.enums {
16538
16615
  | 'override'
16539
16616
  | 'preferential_rate';
16540
16617
  type DutySimpleExpressionType = 'free' | 'percent' | 'per_uom' | 'flat';
16541
- type DutyTransactionType = 'adjustment' | 'reversal' | 'duty';
16618
+ type DutyTransactionType = 'adjustment' | 'reversal' | 'duty' | 'refund';
16542
16619
  type EmptyAttribute = 'irrelevant';
16543
16620
  type ErpFileType = 'vendor';
16544
16621
  type EventType =
@@ -16769,6 +16846,8 @@ declare namespace io.flow.internal.v0.enums {
16769
16846
  | 'partner_tracking_subscription_deleted'
16770
16847
  | 'spp_tracker_update_request_upserted'
16771
16848
  | 'spp_tracker_update_request_deleted'
16849
+ | 'partner_request_upserted'
16850
+ | 'partner_request_deleted'
16772
16851
  | 'internal_authorization_upserted'
16773
16852
  | 'internal_authorization_deleted'
16774
16853
  | 'afterpay_authorization_upserted'
@@ -16868,6 +16947,8 @@ declare namespace io.flow.internal.v0.enums {
16868
16947
  | 'shopify_order_fulfillments_snapshot_deleted'
16869
16948
  | 'shopify_merchant_plan_upserted'
16870
16949
  | 'shopify_merchant_plan_deleted'
16950
+ | 'shopify_dispute_upserted'
16951
+ | 'shopify_dispute_deleted'
16871
16952
  | 'stripe_authorization_deleted'
16872
16953
  | 'stripe_authorization_upserted'
16873
16954
  | 'stripe_reversal_deleted'
@@ -17020,6 +17101,11 @@ declare namespace io.flow.internal.v0.enums {
17020
17101
  | 'negative_balance_guarantee'
17021
17102
  | 'bank_payment_failure'
17022
17103
  | 'non_fraud_chargeback';
17104
+ type MerchantOfRecord =
17105
+ | 'global_e_united_states'
17106
+ | 'global_e_united_kingdom'
17107
+ | 'global_e_canada'
17108
+ | 'global_e_netherlands';
17023
17109
  type MerchantOverrideStatus = 'in_review' | 'accepted' | 'rejected';
17024
17110
  type MixedBagWeight = '0' | '1' | '2';
17025
17111
  type NatureOfSale =
@@ -17055,7 +17141,6 @@ declare namespace io.flow.internal.v0.enums {
17055
17141
  | 'dtce'
17056
17142
  | 'restrictions'
17057
17143
  | 'organization_status'
17058
- | 'category_constraints'
17059
17144
  | 'miscellaneous';
17060
17145
  type OnboardingAutomationProcessState =
17061
17146
  | 'not_started'
@@ -17122,6 +17207,7 @@ declare namespace io.flow.internal.v0.enums {
17122
17207
  | 'fully_reviewed'
17123
17208
  | 'rejected'
17124
17209
  | 'unscreened';
17210
+ type OrganizationSource = 'shopify' | 'enterprise';
17125
17211
  type OutputStyle = 'flow' | 'shopify_p1';
17126
17212
  type Owner = 'flow' | 'organization';
17127
17213
  type PaymentShortUrlDiscriminator = 'adyen_3ds2';
@@ -23467,9 +23553,13 @@ declare namespace io.flow.internal.v0.models {
23467
23553
  readonly status: io.flow.internal.v0.enums.MerchantOverrideStatus;
23468
23554
  readonly hs6_code: string;
23469
23555
  readonly merchant_hs6_code: string;
23556
+ readonly created_at: string;
23557
+ readonly updated_at: string;
23558
+ readonly updated_by_user_id: string;
23470
23559
  }
23471
23560
 
23472
23561
  interface MerchantOverrideDecisionForm {
23562
+ readonly id: string;
23473
23563
  readonly status: io.flow.internal.v0.enums.MerchantOverrideStatus;
23474
23564
  }
23475
23565
 
@@ -24250,6 +24340,9 @@ declare namespace io.flow.internal.v0.models {
24250
24340
  readonly last_order_submitted_at?: string;
24251
24341
  readonly matching_positive_keywords: string[];
24252
24342
  readonly product_categories: string[];
24343
+ readonly matching_negative_keywords: string[];
24344
+ readonly decisions_user_ids: string[];
24345
+ readonly restriction_rule_ids: string[];
24253
24346
  }
24254
24347
 
24255
24348
  interface OrganizationMetadataDeleted {
@@ -24659,6 +24752,33 @@ declare namespace io.flow.internal.v0.models {
24659
24752
  readonly partner_organization_settings: io.flow.internal.v0.models.PartnerOrganizationSettings;
24660
24753
  }
24661
24754
 
24755
+ interface PartnerRequest {
24756
+ readonly id: string;
24757
+ readonly partner_id: string;
24758
+ readonly organization_id: string;
24759
+ readonly method: string;
24760
+ readonly path: string;
24761
+ readonly request_id: string;
24762
+ readonly parameters?: Record<string, string>;
24763
+ readonly request_body?: any /*object*/;
24764
+ readonly response_body?: any /*object*/;
24765
+ readonly reference_id?: string;
24766
+ }
24767
+
24768
+ interface PartnerRequestDeleted {
24769
+ readonly discriminator: 'partner_request_deleted';
24770
+ readonly event_id: string;
24771
+ readonly timestamp: string;
24772
+ readonly id: string;
24773
+ }
24774
+
24775
+ interface PartnerRequestUpserted {
24776
+ readonly discriminator: 'partner_request_upserted';
24777
+ readonly event_id: string;
24778
+ readonly timestamp: string;
24779
+ readonly partner_request: io.flow.internal.v0.models.PartnerRequest;
24780
+ }
24781
+
24662
24782
  interface PartnerTrackingSubscriptionDeleted {
24663
24783
  readonly discriminator: 'partner_tracking_subscription_deleted';
24664
24784
  readonly event_id: string;
@@ -25872,6 +25992,7 @@ declare namespace io.flow.internal.v0.models {
25872
25992
  readonly id: string;
25873
25993
  readonly processor: string;
25874
25994
  readonly report_file_type: io.flow.internal.v0.enums.ReportFileType;
25995
+ readonly merchant_of_record_identifier: io.flow.internal.v0.enums.MerchantOfRecord;
25875
25996
  readonly file_name: string;
25876
25997
  readonly status: io.flow.internal.v0.enums.ReportFileStatus;
25877
25998
  readonly failure_reason?: string;
@@ -26315,6 +26436,13 @@ declare namespace io.flow.internal.v0.models {
26315
26436
  readonly restriction_organization_status: io.flow.internal.v0.models.RestrictionOrganizationStatus;
26316
26437
  }
26317
26438
 
26439
+ interface RestrictionOrganizationSummary {
26440
+ readonly id: string;
26441
+ readonly name: string;
26442
+ readonly environment: io.flow.common.v0.enums.Environment;
26443
+ readonly source: io.flow.internal.v0.enums.OrganizationSource;
26444
+ }
26445
+
26318
26446
  interface RestrictionPending {
26319
26447
  readonly rule: io.flow.internal.v0.models.RestrictionRuleSummary;
26320
26448
  readonly count: number;
@@ -26831,6 +26959,36 @@ declare namespace io.flow.internal.v0.models {
26831
26959
  readonly code: string;
26832
26960
  }
26833
26961
 
26962
+ interface ShopifyDispute {
26963
+ readonly id: string;
26964
+ readonly organization_id: string;
26965
+ readonly authorization_id: string;
26966
+ readonly amount: number;
26967
+ readonly currency: string;
26968
+ readonly status: string;
26969
+ readonly category: string;
26970
+ readonly attributes?: Record<string, string>;
26971
+ readonly external_reference_id: string;
26972
+ readonly issued_at: string;
26973
+ readonly updated_at: string;
26974
+ }
26975
+
26976
+ interface ShopifyDisputeDeleted {
26977
+ readonly discriminator: 'shopify_dispute_deleted';
26978
+ readonly event_id: string;
26979
+ readonly timestamp: string;
26980
+ readonly organization: string;
26981
+ readonly id: string;
26982
+ }
26983
+
26984
+ interface ShopifyDisputeUpserted {
26985
+ readonly discriminator: 'shopify_dispute_upserted';
26986
+ readonly event_id: string;
26987
+ readonly timestamp: string;
26988
+ readonly organization: string;
26989
+ readonly dispute: io.flow.internal.v0.models.ShopifyDispute;
26990
+ }
26991
+
26834
26992
  interface ShopifyExperienceShortId {
26835
26993
  readonly id: string;
26836
26994
  readonly experience: io.flow.experience.v0.models.ExperienceReference;
@@ -27190,7 +27348,6 @@ declare namespace io.flow.internal.v0.models {
27190
27348
  }
27191
27349
 
27192
27350
  interface ShopifyMerchantPlan {
27193
- readonly id: string;
27194
27351
  readonly authorization: io.flow.payment.v0.models.AuthorizationReference;
27195
27352
  readonly plan: io.flow.internal.v0.enums.ShopifyPlanType;
27196
27353
  }
@@ -27962,7 +28119,7 @@ declare namespace io.flow.internal.v0.models {
27962
28119
  readonly net: number;
27963
28120
  readonly currency: string;
27964
28121
  readonly connected_account: string;
27965
- readonly reporting_category: io.flow.stripe.v0.enums.ConnectReportReportingCategory;
28122
+ readonly reporting_category: io.flow.stripe.v0.unions.ConnectReportReportingCategory;
27966
28123
  readonly dispute_reason?: string;
27967
28124
  readonly available_on_utc: string;
27968
28125
  readonly automatic_payout_effective_at_utc?: string;
@@ -27972,8 +28129,7 @@ declare namespace io.flow.internal.v0.models {
27972
28129
  readonly payment_method_type?: string;
27973
28130
  readonly card_brand?: string;
27974
28131
  readonly statement_descriptor?: string;
27975
- readonly payment_metadata?: io.flow.stripe.v0.models.ConnectReportRecordPaymentMetadata;
27976
- readonly transfer_metadata?: any /*object*/;
28132
+ readonly metadata?: io.flow.internal.v0.unions.StripeConnectReportRecordMetadata;
27977
28133
  }
27978
28134
 
27979
28135
  interface StripeConnectReportRecordDeleted {
@@ -27983,11 +28139,48 @@ declare namespace io.flow.internal.v0.models {
27983
28139
  readonly id: string;
27984
28140
  }
27985
28141
 
28142
+ interface StripeConnectReportRecordPaymentMetadata {
28143
+ readonly discriminator: 'stripe_connect_report_record_payment_metadata';
28144
+ readonly shop_id?: number;
28145
+ readonly shop_plan?: io.flow.internal.v0.enums.ShopifyPlanType;
28146
+ readonly checkout_id?: string;
28147
+ readonly order_id?: number;
28148
+ readonly order_transaction_id?: number;
28149
+ readonly transfer_type?: io.flow.internal.v0.enums.ConnectReportPaymentTransferType;
28150
+ readonly transfer_exchange_rate?: number;
28151
+ readonly charge_total?: number;
28152
+ readonly charge_currency?: string;
28153
+ readonly charge_exchange_rate?: number;
28154
+ readonly refund_exchange_rate?: number;
28155
+ readonly duties?: number;
28156
+ readonly import_taxes?: number;
28157
+ readonly mor_fees?: number;
28158
+ readonly mor_foreign_exchange_fees?: number;
28159
+ }
28160
+
28161
+ interface StripeConnectReportRecordTransferMetadata {
28162
+ readonly discriminator: 'stripe_connect_report_record_transfer_metadata';
28163
+ readonly shop_id?: number;
28164
+ readonly order_id?: number;
28165
+ readonly order_transaction_id?: number;
28166
+ readonly transfer_type?: io.flow.internal.v0.enums.ConnectReportTransferTransferType;
28167
+ readonly charge_total?: number;
28168
+ readonly charge_currency?: string;
28169
+ readonly charge_exchange_rate?: number;
28170
+ readonly duties?: number;
28171
+ readonly import_taxes?: number;
28172
+ readonly mor_fees?: number;
28173
+ readonly mor_foreign_exchange_fees?: number;
28174
+ readonly merchant_account_currency?: string;
28175
+ readonly amount_in_merchant_account_currency?: number;
28176
+ readonly payout_exchange_rate?: number;
28177
+ }
28178
+
27986
28179
  interface StripeConnectReportRecordUpserted {
27987
28180
  readonly discriminator: 'stripe_connect_report_record_upserted';
27988
28181
  readonly event_id: string;
27989
28182
  readonly timestamp: string;
27990
- readonly record: io.flow.stripe.v0.models.ConnectReportRecord;
28183
+ readonly record: io.flow.internal.v0.models.StripeConnectReportRecord;
27991
28184
  }
27992
28185
 
27993
28186
  interface StripeDisputeDeleted {
@@ -29314,6 +29507,8 @@ declare namespace io.flow.internal.v0.unions {
29314
29507
  | io.flow.internal.v0.models.PartnerTrackingSubscriptionDeleted
29315
29508
  | io.flow.internal.v0.models.SppTrackerUpdateRequestUpserted
29316
29509
  | io.flow.internal.v0.models.SppTrackerUpdateRequestDeleted
29510
+ | io.flow.internal.v0.models.PartnerRequestUpserted
29511
+ | io.flow.internal.v0.models.PartnerRequestDeleted
29317
29512
  | io.flow.internal.v0.models.InternalAuthorizationUpserted
29318
29513
  | io.flow.internal.v0.models.InternalAuthorizationDeleted
29319
29514
  | io.flow.internal.v0.models.AfterpayAuthorizationUpserted
@@ -29413,6 +29608,8 @@ declare namespace io.flow.internal.v0.unions {
29413
29608
  | io.flow.internal.v0.models.ShopifyOrderFulfillmentsSnapshotDeleted
29414
29609
  | io.flow.internal.v0.models.ShopifyMerchantPlanUpserted
29415
29610
  | io.flow.internal.v0.models.ShopifyMerchantPlanDeleted
29611
+ | io.flow.internal.v0.models.ShopifyDisputeUpserted
29612
+ | io.flow.internal.v0.models.ShopifyDisputeDeleted
29416
29613
  | io.flow.internal.v0.models.StripeAuthorizationDeleted
29417
29614
  | io.flow.internal.v0.models.StripeAuthorizationUpserted
29418
29615
  | io.flow.internal.v0.models.StripeReversalDeleted
@@ -29608,6 +29805,9 @@ declare namespace io.flow.internal.v0.unions {
29608
29805
  type SpotRateMetadata =
29609
29806
  | io.flow.internal.v0.models.SpotRateMetadataIdentity
29610
29807
  | io.flow.internal.v0.models.SpotRateMetadataRate;
29808
+ type StripeConnectReportRecordMetadata =
29809
+ | io.flow.internal.v0.models.StripeConnectReportRecordPaymentMetadata
29810
+ | io.flow.internal.v0.models.StripeConnectReportRecordTransferMetadata;
29611
29811
  type TariffEligibilityData =
29612
29812
  io.flow.internal.v0.models.RegisteredExporterTariffEligibilityData;
29613
29813
  type TariffEligibilityForm =
@@ -30332,6 +30532,10 @@ export type ComplianceData = io.flow.internal.v0.unions.ComplianceData;
30332
30532
  export type ComplianceForm = io.flow.internal.v0.unions.ComplianceForm;
30333
30533
  export type ComplianceType = io.flow.internal.v0.enums.ComplianceType;
30334
30534
  export type Components = io.flow.internal.v0.models.Components;
30535
+ export type ConnectReportPaymentTransferType =
30536
+ io.flow.internal.v0.enums.ConnectReportPaymentTransferType;
30537
+ export type ConnectReportTransferTransferType =
30538
+ io.flow.internal.v0.enums.ConnectReportTransferTransferType;
30335
30539
  export type ConsoleLabelRequestForm =
30336
30540
  io.flow.internal.v0.models.ConsoleLabelRequestForm;
30337
30541
  export type ConsoleLabelValidationForm =
@@ -31207,6 +31411,7 @@ export type MerchantHubOverride =
31207
31411
  io.flow.internal.v0.models.MerchantHubOverride;
31208
31412
  export type MerchantHubOverrideForm =
31209
31413
  io.flow.internal.v0.models.MerchantHubOverrideForm;
31414
+ export type MerchantOfRecord = io.flow.internal.v0.enums.MerchantOfRecord;
31210
31415
  export type MerchantOfRecordEntitySettings =
31211
31416
  io.flow.internal.v0.models.MerchantOfRecordEntitySettings;
31212
31417
  export type MerchantOfRecordEntitySettingsForm =
@@ -31480,6 +31685,7 @@ export type OrganizationSettings =
31480
31685
  io.flow.internal.v0.models.OrganizationSettings;
31481
31686
  export type OrganizationSettingsForm =
31482
31687
  io.flow.internal.v0.models.OrganizationSettingsForm;
31688
+ export type OrganizationSource = io.flow.internal.v0.enums.OrganizationSource;
31483
31689
  export type OrganizationStatusChange =
31484
31690
  io.flow.internal.v0.models.OrganizationStatusChange;
31485
31691
  export type OrganizationStatusChangeDeleted =
@@ -31555,6 +31761,11 @@ export type PartnerOrganizationSettingsForm =
31555
31761
  io.flow.internal.v0.models.PartnerOrganizationSettingsForm;
31556
31762
  export type PartnerOrganizationSettingsUpserted =
31557
31763
  io.flow.internal.v0.models.PartnerOrganizationSettingsUpserted;
31764
+ export type PartnerRequest = io.flow.internal.v0.models.PartnerRequest;
31765
+ export type PartnerRequestDeleted =
31766
+ io.flow.internal.v0.models.PartnerRequestDeleted;
31767
+ export type PartnerRequestUpserted =
31768
+ io.flow.internal.v0.models.PartnerRequestUpserted;
31558
31769
  export type PartnerTrackingSubscriptionDeleted =
31559
31770
  io.flow.internal.v0.models.PartnerTrackingSubscriptionDeleted;
31560
31771
  export type PartnerTrackingSubscriptionUpserted =
@@ -31968,6 +32179,8 @@ export type RestrictionOrganizationStatusDeleted =
31968
32179
  io.flow.internal.v0.models.RestrictionOrganizationStatusDeleted;
31969
32180
  export type RestrictionOrganizationStatusUpserted =
31970
32181
  io.flow.internal.v0.models.RestrictionOrganizationStatusUpserted;
32182
+ export type RestrictionOrganizationSummary =
32183
+ io.flow.internal.v0.models.RestrictionOrganizationSummary;
31971
32184
  export type RestrictionPending = io.flow.internal.v0.models.RestrictionPending;
31972
32185
  export type RestrictionProduct = io.flow.internal.v0.models.RestrictionProduct;
31973
32186
  export type RestrictionProductDecisionForm =
@@ -32090,6 +32303,11 @@ export type ShopifyCheckInventoryError =
32090
32303
  export type ShopifyCheckInventoryErrorCode =
32091
32304
  io.flow.internal.v0.enums.ShopifyCheckInventoryErrorCode;
32092
32305
  export type ShopifyCodeForm = io.flow.internal.v0.models.ShopifyCodeForm;
32306
+ export type ShopifyDispute = io.flow.internal.v0.models.ShopifyDispute;
32307
+ export type ShopifyDisputeDeleted =
32308
+ io.flow.internal.v0.models.ShopifyDisputeDeleted;
32309
+ export type ShopifyDisputeUpserted =
32310
+ io.flow.internal.v0.models.ShopifyDisputeUpserted;
32093
32311
  export type ShopifyExperienceShortId =
32094
32312
  io.flow.internal.v0.models.ShopifyExperienceShortId;
32095
32313
  export type ShopifyExperienceShortIdDeleted =
@@ -32438,6 +32656,12 @@ export type StripeConnectReportRecord =
32438
32656
  io.flow.internal.v0.models.StripeConnectReportRecord;
32439
32657
  export type StripeConnectReportRecordDeleted =
32440
32658
  io.flow.internal.v0.models.StripeConnectReportRecordDeleted;
32659
+ export type StripeConnectReportRecordMetadata =
32660
+ io.flow.internal.v0.unions.StripeConnectReportRecordMetadata;
32661
+ export type StripeConnectReportRecordPaymentMetadata =
32662
+ io.flow.internal.v0.models.StripeConnectReportRecordPaymentMetadata;
32663
+ export type StripeConnectReportRecordTransferMetadata =
32664
+ io.flow.internal.v0.models.StripeConnectReportRecordTransferMetadata;
32441
32665
  export type StripeConnectReportRecordUpserted =
32442
32666
  io.flow.internal.v0.models.StripeConnectReportRecordUpserted;
32443
32667
  export type StripeDisputeDeleted =