@flowio/types 11.24.5 → 11.24.6

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.
@@ -11052,176 +11052,6 @@ declare namespace io.flow.item.v0.models {
11052
11052
  }
11053
11053
  }
11054
11054
 
11055
- declare namespace io.flow.billing.v0.enums {
11056
- type BillingStatementAttachmentKey =
11057
- | 'invoice'
11058
- | 'statement'
11059
- | 'consumer_invoice'
11060
- | 'credit_memo'
11061
- | 'transactions'
11062
- | 'virtual_card'
11063
- | 'tax_remittance'
11064
- | 'manual'
11065
- | 'orders'
11066
- | 'all';
11067
- type BillingTransactionStatus = 'pending' | 'posted';
11068
- type BillingTransactionType =
11069
- | 'manual'
11070
- | 'subscription'
11071
- | 'invoice'
11072
- | 'transfer'
11073
- | 'transfer_fee'
11074
- | 'adjustment'
11075
- | 'capture'
11076
- | 'refund'
11077
- | 'virtual_card_capture'
11078
- | 'virtual_card_refund'
11079
- | 'tax_remittance'
11080
- | 'fully_subsidized_order'
11081
- | 'credit_payment'
11082
- | 'dispute'
11083
- | 'channel'
11084
- | 'label';
11085
- type SubscriptionFrequency = 'yearly' | 'monthly';
11086
- }
11087
-
11088
- declare namespace io.flow.billing.v0.models {
11089
- interface Account {
11090
- readonly id: string;
11091
- readonly currency: string;
11092
- readonly updated_at: string;
11093
- readonly timezone: io.flow.reference.v0.models.Timezone;
11094
- readonly payment_schedule: io.flow.common.v0.unions.RepeatSchedule;
11095
- readonly payment_conditions?: string;
11096
- readonly deposit_rule?: io.flow.billing.v0.models.AccountDepositRule;
11097
- readonly center_key?: string;
11098
- readonly statistics: io.flow.billing.v0.models.AccountStatistics;
11099
- readonly next_statement: io.flow.billing.v0.models.NextBillingStatement;
11100
- readonly created_at: string;
11101
- }
11102
-
11103
- interface AccountContact {
11104
- readonly id: string;
11105
- readonly email: string;
11106
- readonly first_name?: string;
11107
- readonly last_name?: string;
11108
- readonly phone?: string;
11109
- }
11110
-
11111
- interface AccountContactForm {
11112
- readonly email: string;
11113
- readonly first_name?: string;
11114
- readonly last_name?: string;
11115
- readonly phone?: string;
11116
- }
11117
-
11118
- interface AccountDepositRule {
11119
- readonly target: number;
11120
- readonly rate: number;
11121
- }
11122
-
11123
- interface AccountDepositRuleForm {
11124
- readonly target: number;
11125
- readonly rate: number;
11126
- }
11127
-
11128
- interface AccountReference {
11129
- readonly id: string;
11130
- readonly currency: string;
11131
- }
11132
-
11133
- interface AccountStatistics {
11134
- readonly transfers: io.flow.common.v0.models.Price;
11135
- readonly balance: io.flow.common.v0.models.Price;
11136
- readonly pending: io.flow.common.v0.models.Price;
11137
- }
11138
-
11139
- interface BillingStatement {
11140
- readonly id: string;
11141
- readonly account: io.flow.billing.v0.models.AccountReference;
11142
- readonly period: io.flow.common.v0.models.DatetimeRange;
11143
- readonly totals: io.flow.billing.v0.models.BillingStatementTotals;
11144
- readonly attachments: io.flow.billing.v0.models.BillingStatementAttachment[];
11145
- }
11146
-
11147
- interface BillingStatementAttachment {
11148
- readonly key: io.flow.billing.v0.enums.BillingStatementAttachmentKey;
11149
- readonly name: string;
11150
- readonly url: string;
11151
- }
11152
-
11153
- interface BillingStatementReference {
11154
- readonly id: string;
11155
- }
11156
-
11157
- interface BillingStatementTotals {
11158
- readonly starting_balance: io.flow.common.v0.models.Price;
11159
- readonly subscription: io.flow.common.v0.models.Price;
11160
- readonly transfer: io.flow.common.v0.models.Price;
11161
- readonly transfer_fee: io.flow.common.v0.models.Price;
11162
- readonly invoice: io.flow.common.v0.models.Price;
11163
- readonly manual: io.flow.common.v0.models.Price;
11164
- readonly adjustment: io.flow.common.v0.models.Price;
11165
- readonly capture: io.flow.common.v0.models.Price;
11166
- readonly refund: io.flow.common.v0.models.Price;
11167
- readonly virtual_card_capture: io.flow.common.v0.models.Price;
11168
- readonly virtual_card_refund: io.flow.common.v0.models.Price;
11169
- readonly tax_remittance: io.flow.common.v0.models.Price;
11170
- readonly dispute: io.flow.common.v0.models.Price;
11171
- readonly channel: io.flow.common.v0.models.Price;
11172
- readonly label: io.flow.common.v0.models.Price;
11173
- readonly ending_balance: io.flow.common.v0.models.Price;
11174
- }
11175
-
11176
- interface BillingTransaction {
11177
- readonly id: string;
11178
- readonly type: io.flow.billing.v0.enums.BillingTransactionType;
11179
- readonly status: io.flow.billing.v0.enums.BillingTransactionStatus;
11180
- readonly posted_at?: string;
11181
- readonly value: io.flow.common.v0.models.Price;
11182
- readonly description: string;
11183
- readonly created_at: string;
11184
- readonly statement?: io.flow.billing.v0.models.BillingStatementReference;
11185
- }
11186
-
11187
- interface ChannelAccount {
11188
- readonly id: string;
11189
- readonly channel: io.flow.common.v0.models.ChannelReference;
11190
- readonly account: io.flow.billing.v0.models.SimpleAccountReference;
11191
- }
11192
-
11193
- interface EmailForm {
11194
- readonly to: string[];
11195
- readonly cc?: string[];
11196
- readonly bcc?: string[];
11197
- }
11198
-
11199
- interface NextBillingStatement {
11200
- readonly date: string;
11201
- readonly amount: io.flow.common.v0.models.Price;
11202
- readonly conditions?: string;
11203
- }
11204
-
11205
- interface OrganizationAccount {
11206
- readonly id: string;
11207
- readonly organization: io.flow.common.v0.models.OrganizationReference;
11208
- readonly account: io.flow.billing.v0.models.SimpleAccountReference;
11209
- }
11210
-
11211
- interface SimpleAccountReference {
11212
- readonly id: string;
11213
- }
11214
-
11215
- interface Subscription {
11216
- readonly id: string;
11217
- readonly organization: string;
11218
- readonly value: io.flow.common.v0.models.Price;
11219
- readonly frequency: io.flow.billing.v0.enums.SubscriptionFrequency;
11220
- readonly starts_at: string;
11221
- readonly created_at: string;
11222
- }
11223
- }
11224
-
11225
11055
  declare namespace io.flow.harmonization.v0.enums {
11226
11056
  type TaxApplicability = 'none' | 'all';
11227
11057
  type TaxVerificationResult = 'valid' | 'invalid' | 'unable_to_validate';
@@ -12873,13 +12703,15 @@ declare namespace io.flow.internal.v0.enums {
12873
12703
  | 'all';
12874
12704
  type BillingStatementBatchFileKey = 'archive' | 'summary';
12875
12705
  type BillingStatementReviewStatus = 'approved' | 'pending';
12876
- type BillingTransactionStatus = 'pending' | 'posted';
12706
+ type BillingTransactionStatus =
12707
+ | 'pending'
12708
+ | 'pending_fulfillment_proof'
12709
+ | 'posted';
12877
12710
  type BillingTransactionType =
12878
12711
  | 'manual'
12879
12712
  | 'subscription'
12880
12713
  | 'invoice'
12881
12714
  | 'transfer'
12882
- | 'transfer_fee'
12883
12715
  | 'adjustment'
12884
12716
  | 'capture'
12885
12717
  | 'refund'
@@ -13285,8 +13117,6 @@ declare namespace io.flow.internal.v0.enums {
13285
13117
  | 'transfer_transaction_deleted'
13286
13118
  | 'transfer_transaction_upserted_v2'
13287
13119
  | 'transfer_transaction_deleted_v2'
13288
- | 'transfer_fee_transaction_upserted'
13289
- | 'transfer_fee_transaction_deleted'
13290
13120
  | 'processing_transaction_upserted'
13291
13121
  | 'processing_transaction_deleted'
13292
13122
  | 'bank_payment_upserted'
@@ -13446,6 +13276,8 @@ declare namespace io.flow.internal.v0.enums {
13446
13276
  | 'payment_processor_merchant_deleted'
13447
13277
  | 'virtual_card_provider_upserted'
13448
13278
  | 'virtual_card_provider_deleted'
13279
+ | 'authorization_bundle_upserted'
13280
+ | 'authorization_bundle_deleted'
13449
13281
  | 'paypal_payment_deleted'
13450
13282
  | 'paypal_payment_upserted'
13451
13283
  | 'paypal_execution_deleted'
@@ -13550,6 +13382,7 @@ declare namespace io.flow.internal.v0.enums {
13550
13382
  | 'low_value_goods_tax'
13551
13383
  | 'high_value_goods_tax'
13552
13384
  | 'duties';
13385
+ type MainTransactionStatus = 'scheduled' | 'pending_fulfillment_proof';
13553
13386
  type ManualReviewRuleStatus = 'active' | 'archived';
13554
13387
  type ManualTransactionCategory =
13555
13388
  | 'cancelled_order_refund'
@@ -13611,6 +13444,29 @@ declare namespace io.flow.internal.v0.enums {
13611
13444
  | 'facebook_primary'
13612
13445
  | 'facebook_country_override'
13613
13446
  | 'supplemental';
13447
+ type MerchantOnboardingProcessKey = 'shopify_merchant_onboarding_v1';
13448
+ type MerchantOnboardingProcessState =
13449
+ | 'created'
13450
+ | 'active'
13451
+ | 'completed'
13452
+ | 'terminated';
13453
+ type MerchantOnboardingTaskKey =
13454
+ | 'channel_organization_created'
13455
+ | 'invite_organization_members'
13456
+ | 'synchronize_product_catalog'
13457
+ | 'classify_product_catalog'
13458
+ | 'synchronize_fulfillment_centers'
13459
+ | 'verify_gateway_setup'
13460
+ | 'application_form_submitted'
13461
+ | 'perform_fulfillment_configuration'
13462
+ | 'perform_kyc_review'
13463
+ | 'notify_kyc_review_failed'
13464
+ | 'notify_onboarding_completed';
13465
+ type MerchantOnboardingTaskState =
13466
+ | 'created'
13467
+ | 'in_progress'
13468
+ | 'completed'
13469
+ | 'terminated';
13614
13470
  type NatureOfSale =
13615
13471
  | 'consumer'
13616
13472
  | 'to_non_registered_business'
@@ -13686,7 +13542,6 @@ declare namespace io.flow.internal.v0.enums {
13686
13542
  | 'fiserv'
13687
13543
  | 'crypto';
13688
13544
  type ProcessorEntityStatus = 'active' | 'draft' | 'archived';
13689
- type ProductRestrictionDecision = 'accept_restriction' | 'reject_restriction';
13690
13545
  type ProductRestrictionStatus =
13691
13546
  | 'pending'
13692
13547
  | 'in_review'
@@ -13712,6 +13567,7 @@ declare namespace io.flow.internal.v0.enums {
13712
13567
  | 'paid_on_delivery';
13713
13568
  type ResponsibleParty = 'flow' | 'organization';
13714
13569
  type RestrictionAction = 'prohibited' | 'restricted';
13570
+ type RestrictionDecision = 'accept' | 'reject';
13715
13571
  type RiskCheck = 'three_d_secure';
13716
13572
  type RiskEvaluation =
13717
13573
  | 'Pending'
@@ -13784,6 +13640,7 @@ declare namespace io.flow.internal.v0.enums {
13784
13640
  | 'statement_generated'
13785
13641
  | 'statement_regenerated'
13786
13642
  | 'failed';
13643
+ type StatementTransferTransactionLocation = 'transactions_file' | 'summary';
13787
13644
  type StatisticType =
13788
13645
  | 'time-to-classify'
13789
13646
  | 'time-to-classify-aggregated'
@@ -13797,6 +13654,7 @@ declare namespace io.flow.internal.v0.enums {
13797
13654
  type TaxParty = 'consumer' | 'organization' | 'flow' | 'carrier';
13798
13655
  type TimeseriesType = 'daily' | 'weekly' | 'monthly' | 'yearly';
13799
13656
  type TrackingIntegrationType = 'api' | 'bulk' | 'aftership';
13657
+ type TransactionPostingMethod = 'time' | 'fulfillment_proof';
13800
13658
  type TransferMethod = 'ach';
13801
13659
  type UnclassifiedProductStatus =
13802
13660
  | 'ignored'
@@ -13853,7 +13711,7 @@ declare namespace io.flow.internal.v0.models {
13853
13711
  readonly discriminator: 'account_contact_upserted';
13854
13712
  readonly event_id: string;
13855
13713
  readonly timestamp: string;
13856
- readonly account_contact: io.flow.billing.v0.models.AccountContact;
13714
+ readonly account_contact: io.flow.internal.v0.models.AccountContact;
13857
13715
  }
13858
13716
 
13859
13717
  interface AccountDeletedV2 {
@@ -13889,8 +13747,8 @@ declare namespace io.flow.internal.v0.models {
13889
13747
  readonly export_id: string;
13890
13748
  readonly account_id?: string;
13891
13749
  readonly statement_id?: string;
13892
- readonly transaction_type?: io.flow.billing.v0.enums.BillingTransactionType;
13893
- readonly transaction_status?: io.flow.billing.v0.enums.BillingTransactionStatus;
13750
+ readonly transaction_type?: io.flow.internal.v0.enums.BillingTransactionType;
13751
+ readonly transaction_status?: io.flow.internal.v0.enums.BillingTransactionStatus;
13894
13752
  readonly transaction_posted_from?: string;
13895
13753
  readonly transaction_posted_to?: string;
13896
13754
  readonly transaction_posted_on_or_after?: string;
@@ -13956,10 +13814,12 @@ declare namespace io.flow.internal.v0.models {
13956
13814
  readonly b2b_tax_remittance_days?: number;
13957
13815
  readonly merchant_of_record_fee?: number;
13958
13816
  readonly duty_guarantee_fee?: number;
13959
- readonly transfer_fee?: io.flow.common.v0.models.Money;
13817
+ readonly transfer_fee?: number;
13960
13818
  readonly order_service_fee?: io.flow.internal.v0.models.TieredFee;
13961
13819
  readonly label_fee?: io.flow.internal.v0.models.TieredFee;
13962
13820
  readonly charge_label_cost_directly: boolean;
13821
+ readonly transaction_posting_method?: io.flow.internal.v0.enums.TransactionPostingMethod;
13822
+ readonly statement_transfer_transaction_location?: io.flow.internal.v0.enums.StatementTransferTransactionLocation;
13963
13823
  }
13964
13824
 
13965
13825
  interface AccountSettingsDeleted {
@@ -13995,7 +13855,7 @@ declare namespace io.flow.internal.v0.models {
13995
13855
  readonly export_id: string;
13996
13856
  readonly account_id?: string;
13997
13857
  readonly statement_id?: string;
13998
- readonly status?: io.flow.billing.v0.enums.BillingTransactionStatus;
13858
+ readonly status?: io.flow.internal.v0.enums.BillingTransactionStatus;
13999
13859
  readonly posted_from?: string;
14000
13860
  readonly posted_to?: string;
14001
13861
  readonly posted_on_or_after?: string;
@@ -14015,14 +13875,14 @@ declare namespace io.flow.internal.v0.models {
14015
13875
  readonly event_id: string;
14016
13876
  readonly timestamp: string;
14017
13877
  readonly organization: string;
14018
- readonly account: io.flow.billing.v0.models.Account;
13878
+ readonly account: io.flow.internal.v0.models.Account;
14019
13879
  }
14020
13880
 
14021
13881
  interface AccountUpsertedV2 {
14022
13882
  readonly discriminator: 'account_upserted_v2';
14023
13883
  readonly event_id: string;
14024
13884
  readonly timestamp: string;
14025
- readonly account: io.flow.billing.v0.models.Account;
13885
+ readonly account: io.flow.internal.v0.models.Account;
14026
13886
  }
14027
13887
 
14028
13888
  interface ActionQuantity {
@@ -14462,10 +14322,11 @@ declare namespace io.flow.internal.v0.models {
14462
14322
  readonly organization_id: string;
14463
14323
  readonly authorization_reference: io.flow.payment.v0.models.AuthorizationReference;
14464
14324
  readonly payment_request_reference: io.flow.payment.gateway.v0.models.PaymentRequestReference;
14465
- readonly billing: io.flow.payment.request.bundle.v0.models.PaymentRequestBilling;
14325
+ readonly billing?: io.flow.payment.request.bundle.v0.models.PaymentRequestBilling;
14466
14326
  }
14467
14327
 
14468
14328
  interface AuthorizationBundleDeleted {
14329
+ readonly discriminator: 'authorization_bundle_deleted';
14469
14330
  readonly event_id: string;
14470
14331
  readonly timestamp: string;
14471
14332
  readonly organization: string;
@@ -14473,6 +14334,7 @@ declare namespace io.flow.internal.v0.models {
14473
14334
  }
14474
14335
 
14475
14336
  interface AuthorizationBundleUpserted {
14337
+ readonly discriminator: 'authorization_bundle_upserted';
14476
14338
  readonly event_id: string;
14477
14339
  readonly timestamp: string;
14478
14340
  readonly organization: string;
@@ -14764,7 +14626,6 @@ declare namespace io.flow.internal.v0.models {
14764
14626
  readonly starting_balance: io.flow.common.v0.models.Price;
14765
14627
  readonly subscription: io.flow.common.v0.models.Price;
14766
14628
  readonly transfer: io.flow.common.v0.models.Price;
14767
- readonly transfer_fee: io.flow.common.v0.models.Price;
14768
14629
  readonly invoice: io.flow.common.v0.models.Price;
14769
14630
  readonly manual: io.flow.common.v0.models.Price;
14770
14631
  readonly adjustment: io.flow.common.v0.models.Price;
@@ -14784,7 +14645,7 @@ declare namespace io.flow.internal.v0.models {
14784
14645
  readonly discriminator: 'billing_statement_upserted';
14785
14646
  readonly event_id: string;
14786
14647
  readonly timestamp: string;
14787
- readonly statement: io.flow.billing.v0.models.BillingStatement;
14648
+ readonly statement: io.flow.internal.v0.models.BillingStatement;
14788
14649
  }
14789
14650
 
14790
14651
  interface BillingTransaction {
@@ -15200,7 +15061,7 @@ declare namespace io.flow.internal.v0.models {
15200
15061
  readonly discriminator: 'channel_account_upserted';
15201
15062
  readonly event_id: string;
15202
15063
  readonly timestamp: string;
15203
- readonly channel_account: io.flow.billing.v0.models.ChannelAccount;
15064
+ readonly channel_account: io.flow.internal.v0.models.ChannelAccount;
15204
15065
  }
15205
15066
 
15206
15067
  interface ChannelCurrency {
@@ -15344,7 +15205,8 @@ declare namespace io.flow.internal.v0.models {
15344
15205
  readonly id: string;
15345
15206
  readonly type: io.flow.internal.v0.enums.BillingTransactionType;
15346
15207
  readonly transaction: io.flow.internal.v0.models.TransactionReference;
15347
- readonly posted_at: string;
15208
+ readonly status: io.flow.internal.v0.enums.BillingTransactionStatus;
15209
+ readonly posted_at?: string;
15348
15210
  readonly value: io.flow.common.v0.models.Price;
15349
15211
  readonly description: string;
15350
15212
  readonly statement?: io.flow.internal.v0.models.BillingStatementReference;
@@ -18160,7 +18022,8 @@ declare namespace io.flow.internal.v0.models {
18160
18022
  readonly id: string;
18161
18023
  readonly type: io.flow.internal.v0.enums.BillingTransactionType;
18162
18024
  readonly authorization: io.flow.payment.v0.models.AuthorizationReference;
18163
- readonly posted_at: string;
18025
+ readonly status: io.flow.internal.v0.enums.BillingTransactionStatus;
18026
+ readonly posted_at?: string;
18164
18027
  readonly value: io.flow.common.v0.models.Price;
18165
18028
  readonly description: string;
18166
18029
  readonly statement?: io.flow.internal.v0.models.BillingStatementReference;
@@ -18816,6 +18679,7 @@ declare namespace io.flow.internal.v0.models {
18816
18679
  readonly mor?: io.flow.internal.v0.models.Fee;
18817
18680
  readonly fx?: io.flow.internal.v0.models.Fee;
18818
18681
  readonly duty_guarantee?: io.flow.internal.v0.models.Fee;
18682
+ readonly transfer?: io.flow.internal.v0.models.Fee;
18819
18683
  }
18820
18684
 
18821
18685
  interface FinancialMerchantCategory {
@@ -20265,7 +20129,8 @@ declare namespace io.flow.internal.v0.models {
20265
20129
  readonly discriminator: 'invoice_transaction';
20266
20130
  readonly id: string;
20267
20131
  readonly type: io.flow.internal.v0.enums.BillingTransactionType;
20268
- readonly posted_at: string;
20132
+ readonly status: io.flow.internal.v0.enums.BillingTransactionStatus;
20133
+ readonly posted_at?: string;
20269
20134
  readonly value: io.flow.common.v0.models.Price;
20270
20135
  readonly description: string;
20271
20136
  readonly statement?: io.flow.internal.v0.models.BillingStatementReference;
@@ -20664,7 +20529,9 @@ declare namespace io.flow.internal.v0.models {
20664
20529
  readonly id: string;
20665
20530
  readonly type: io.flow.internal.v0.enums.BillingTransactionType;
20666
20531
  readonly label: io.flow.internal.v0.models.BillingLabelSummary;
20667
- readonly posted_at: string;
20532
+ readonly order?: io.flow.internal.v0.models.BillingOrderTransactionOrderReference;
20533
+ readonly status: io.flow.internal.v0.enums.BillingTransactionStatus;
20534
+ readonly posted_at?: string;
20668
20535
  readonly value: io.flow.common.v0.models.Price;
20669
20536
  readonly description: string;
20670
20537
  readonly statement?: io.flow.internal.v0.models.BillingStatementReference;
@@ -20998,7 +20865,8 @@ declare namespace io.flow.internal.v0.models {
20998
20865
  readonly account: io.flow.internal.v0.models.AccountReference;
20999
20866
  readonly type: io.flow.internal.v0.enums.BillingTransactionType;
21000
20867
  readonly value: io.flow.common.v0.models.Price;
21001
- readonly posted_at: string;
20868
+ readonly status: io.flow.internal.v0.enums.BillingTransactionStatus;
20869
+ readonly posted_at?: string;
21002
20870
  readonly statement?: io.flow.internal.v0.models.BillingStatementReference;
21003
20871
  readonly created_at: string;
21004
20872
  readonly original_at?: string;
@@ -21052,7 +20920,8 @@ declare namespace io.flow.internal.v0.models {
21052
20920
  readonly discriminator: 'manual_transaction';
21053
20921
  readonly id: string;
21054
20922
  readonly type: io.flow.internal.v0.enums.BillingTransactionType;
21055
- readonly posted_at: string;
20923
+ readonly status: io.flow.internal.v0.enums.BillingTransactionStatus;
20924
+ readonly posted_at?: string;
21056
20925
  readonly value: io.flow.common.v0.models.Price;
21057
20926
  readonly description: string;
21058
20927
  readonly category?: io.flow.internal.v0.enums.ManualTransactionCategory;
@@ -21615,7 +21484,8 @@ declare namespace io.flow.internal.v0.models {
21615
21484
  readonly id: string;
21616
21485
  readonly type: io.flow.internal.v0.enums.BillingTransactionType;
21617
21486
  readonly order: io.flow.internal.v0.models.BillingOrderTransactionOrderReference;
21618
- readonly posted_at: string;
21487
+ readonly status: io.flow.internal.v0.enums.BillingTransactionStatus;
21488
+ readonly posted_at?: string;
21619
21489
  readonly value: io.flow.common.v0.models.Price;
21620
21490
  readonly description: string;
21621
21491
  readonly statement?: io.flow.internal.v0.models.BillingStatementReference;
@@ -21639,7 +21509,7 @@ declare namespace io.flow.internal.v0.models {
21639
21509
  readonly discriminator: 'organization_account_upserted';
21640
21510
  readonly event_id: string;
21641
21511
  readonly timestamp: string;
21642
- readonly organization_account: io.flow.billing.v0.models.OrganizationAccount;
21512
+ readonly organization_account: io.flow.internal.v0.models.OrganizationAccount;
21643
21513
  }
21644
21514
 
21645
21515
  interface OrganizationBooleanValue {
@@ -21741,6 +21611,13 @@ declare namespace io.flow.internal.v0.models {
21741
21611
  readonly organization_payment_setting: io.flow.internal.v0.models.OrganizationPaymentSetting;
21742
21612
  }
21743
21613
 
21614
+ interface OrganizationRestrictionSummary {
21615
+ readonly organization: io.flow.common.v0.models.OrganizationSummary;
21616
+ readonly date: string;
21617
+ readonly pending: io.flow.internal.v0.models.RestrictionPending[];
21618
+ readonly total: number;
21619
+ }
21620
+
21744
21621
  interface OrganizationSettings {
21745
21622
  readonly default_currency_format_symbol: io.flow.common.v0.enums.CurrencySymbolFormat;
21746
21623
  readonly default_currency_label_formatters: io.flow.common.v0.enums.CurrencyLabelFormatter[];
@@ -22238,7 +22115,8 @@ declare namespace io.flow.internal.v0.models {
22238
22115
  readonly type: io.flow.internal.v0.enums.BillingTransactionType;
22239
22116
  readonly merchant_of_record: io.flow.common.v0.enums.MerchantOfRecord;
22240
22117
  readonly logistics_responsibility: io.flow.internal.v0.enums.ResponsibleParty[];
22241
- readonly posted_at: string;
22118
+ readonly status: io.flow.internal.v0.enums.BillingTransactionStatus;
22119
+ readonly posted_at?: string;
22242
22120
  readonly value: io.flow.common.v0.models.Price;
22243
22121
  readonly description: string;
22244
22122
  readonly statement?: io.flow.internal.v0.models.BillingStatementReference;
@@ -22370,14 +22248,19 @@ declare namespace io.flow.internal.v0.models {
22370
22248
  readonly id: string;
22371
22249
  readonly organization_id: string;
22372
22250
  readonly product_id: string;
22251
+ readonly restriction_decisions: io.flow.internal.v0.models.ProductRestrictionDecision[];
22252
+ }
22253
+
22254
+ interface ProductRestrictionDecision {
22255
+ readonly rule_id: string;
22373
22256
  readonly status: io.flow.internal.v0.enums.ProductRestrictionStatus;
22374
- readonly restrictions: io.flow.internal.v0.models.Restriction[];
22257
+ readonly matching_positive_keywords: string[];
22258
+ readonly matching_negative_keywords: string[];
22375
22259
  }
22376
22260
 
22377
22261
  interface ProductRestrictionDecisionForm {
22378
- readonly product_id: string;
22379
22262
  readonly rule_id: string;
22380
- readonly decision: io.flow.internal.v0.enums.ProductRestrictionDecision;
22263
+ readonly decision: io.flow.internal.v0.enums.RestrictionDecision;
22381
22264
  }
22382
22265
 
22383
22266
  interface ProductRestrictionDeleted {
@@ -22769,11 +22652,60 @@ declare namespace io.flow.internal.v0.models {
22769
22652
  readonly select_mismatching_item_types: boolean;
22770
22653
  }
22771
22654
 
22772
- interface Restriction {
22655
+ interface RestrictionItem {
22656
+ readonly organization_id: string;
22657
+ readonly product: io.flow.internal.v0.models.RestrictionProduct;
22658
+ }
22659
+
22660
+ interface RestrictionKeywords {
22661
+ readonly positive_keywords: string[];
22662
+ readonly negative_keywords: string[];
22663
+ }
22664
+
22665
+ interface RestrictionPending {
22666
+ readonly rule: io.flow.internal.v0.models.RestrictionRuleSummary;
22667
+ readonly count: number;
22668
+ }
22669
+
22670
+ interface RestrictionProduct {
22671
+ readonly id: string;
22773
22672
  readonly name: string;
22774
- readonly rule_id: string;
22673
+ readonly description: string;
22674
+ readonly images: string[];
22675
+ readonly categories: string[];
22676
+ readonly updated_at: string;
22677
+ readonly restrictions: io.flow.internal.v0.models.RestrictionReview[];
22678
+ }
22679
+
22680
+ interface RestrictionReview {
22681
+ readonly rule: io.flow.internal.v0.models.RestrictionRuleSummary;
22682
+ readonly keywords: io.flow.internal.v0.models.RestrictionKeywords;
22683
+ readonly date?: string;
22684
+ }
22685
+
22686
+ interface RestrictionRule {
22687
+ readonly id: string;
22688
+ readonly name: string;
22689
+ readonly description: string;
22775
22690
  readonly action: io.flow.internal.v0.enums.RestrictionAction;
22776
- readonly regions: io.flow.reference.v0.models.Region[];
22691
+ readonly regions: string[];
22692
+ readonly positive_keywords: string[];
22693
+ readonly negative_keywords: string[];
22694
+ }
22695
+
22696
+ interface RestrictionRuleForm {
22697
+ readonly name: string;
22698
+ readonly description: string;
22699
+ readonly action: io.flow.internal.v0.enums.RestrictionAction;
22700
+ readonly regions: string[];
22701
+ readonly positive_keywords: string[];
22702
+ readonly negative_keywords: string[];
22703
+ }
22704
+
22705
+ interface RestrictionRuleSummary {
22706
+ readonly id: string;
22707
+ readonly name: string;
22708
+ readonly description: string;
22777
22709
  }
22778
22710
 
22779
22711
  interface ResyncByDestinations {
@@ -23106,6 +23038,7 @@ declare namespace io.flow.internal.v0.models {
23106
23038
 
23107
23039
  interface ShopifyMarketsShop {
23108
23040
  readonly id: string;
23041
+ readonly channel: io.flow.common.v0.models.ChannelReference;
23109
23042
  readonly domain: string;
23110
23043
  readonly myshopify_domain: string;
23111
23044
  readonly organization_id: string;
@@ -23129,6 +23062,7 @@ declare namespace io.flow.internal.v0.models {
23129
23062
 
23130
23063
  interface ShopifyMarketsShopSummary {
23131
23064
  readonly organization: io.flow.common.v0.models.OrganizationSummary;
23065
+ readonly channel: io.flow.common.v0.models.ChannelReference;
23132
23066
  }
23133
23067
 
23134
23068
  interface ShopifyMarketsSubsidiaryCompany {
@@ -23667,7 +23601,8 @@ declare namespace io.flow.internal.v0.models {
23667
23601
  readonly discriminator: 'subscription_transaction';
23668
23602
  readonly id: string;
23669
23603
  readonly type: io.flow.internal.v0.enums.BillingTransactionType;
23670
- readonly posted_at: string;
23604
+ readonly status: io.flow.internal.v0.enums.BillingTransactionStatus;
23605
+ readonly posted_at?: string;
23671
23606
  readonly value: io.flow.common.v0.models.Price;
23672
23607
  readonly description: string;
23673
23608
  readonly statement?: io.flow.internal.v0.models.BillingStatementReference;
@@ -23813,7 +23748,8 @@ declare namespace io.flow.internal.v0.models {
23813
23748
  readonly discriminator: 'tax_remittance_transaction';
23814
23749
  readonly id: string;
23815
23750
  readonly type: io.flow.internal.v0.enums.BillingTransactionType;
23816
- readonly posted_at: string;
23751
+ readonly status: io.flow.internal.v0.enums.BillingTransactionStatus;
23752
+ readonly posted_at?: string;
23817
23753
  readonly value: io.flow.common.v0.models.Price;
23818
23754
  readonly description: string;
23819
23755
  readonly statement?: io.flow.internal.v0.models.BillingStatementReference;
@@ -24025,36 +23961,12 @@ declare namespace io.flow.internal.v0.models {
24025
23961
  readonly id: string;
24026
23962
  }
24027
23963
 
24028
- interface TransferFeeTransaction {
24029
- readonly discriminator: 'transfer_fee_transaction';
24030
- readonly id: string;
24031
- readonly type: io.flow.internal.v0.enums.BillingTransactionType;
24032
- readonly posted_at: string;
24033
- readonly value: io.flow.common.v0.models.Price;
24034
- readonly description: string;
24035
- readonly statement?: io.flow.internal.v0.models.BillingStatementReference;
24036
- readonly created_at: string;
24037
- }
24038
-
24039
- interface TransferFeeTransactionDeleted {
24040
- readonly discriminator: 'transfer_fee_transaction_deleted';
24041
- readonly event_id: string;
24042
- readonly timestamp: string;
24043
- readonly id: string;
24044
- }
24045
-
24046
- interface TransferFeeTransactionUpserted {
24047
- readonly discriminator: 'transfer_fee_transaction_upserted';
24048
- readonly event_id: string;
24049
- readonly timestamp: string;
24050
- readonly transfer_fee_transaction: io.flow.internal.v0.models.TransferFeeTransaction;
24051
- }
24052
-
24053
23964
  interface TransferTransaction {
24054
23965
  readonly discriminator: 'transfer_transaction';
24055
23966
  readonly id: string;
24056
23967
  readonly type: io.flow.internal.v0.enums.BillingTransactionType;
24057
- readonly posted_at: string;
23968
+ readonly status: io.flow.internal.v0.enums.BillingTransactionStatus;
23969
+ readonly posted_at?: string;
24058
23970
  readonly value: io.flow.common.v0.models.Price;
24059
23971
  readonly description: string;
24060
23972
  readonly statement?: io.flow.internal.v0.models.BillingStatementReference;
@@ -24306,7 +24218,8 @@ declare namespace io.flow.internal.v0.models {
24306
24218
  readonly discriminator: 'virtual_card_transaction';
24307
24219
  readonly id: string;
24308
24220
  readonly type: io.flow.internal.v0.enums.BillingTransactionType;
24309
- readonly posted_at: string;
24221
+ readonly status: io.flow.internal.v0.enums.BillingTransactionStatus;
24222
+ readonly posted_at?: string;
24310
24223
  readonly value: io.flow.common.v0.models.Price;
24311
24224
  readonly description: string;
24312
24225
  readonly statement?: io.flow.internal.v0.models.BillingStatementReference;
@@ -24807,8 +24720,6 @@ declare namespace io.flow.internal.v0.unions {
24807
24720
  | io.flow.internal.v0.models.TransferTransactionDeleted
24808
24721
  | io.flow.internal.v0.models.TransferTransactionUpsertedV2
24809
24722
  | io.flow.internal.v0.models.TransferTransactionDeletedV2
24810
- | io.flow.internal.v0.models.TransferFeeTransactionUpserted
24811
- | io.flow.internal.v0.models.TransferFeeTransactionDeleted
24812
24723
  | io.flow.internal.v0.models.ProcessingTransactionUpserted
24813
24724
  | io.flow.internal.v0.models.ProcessingTransactionDeleted
24814
24725
  | io.flow.internal.v0.models.BankPaymentUpserted
@@ -24968,6 +24879,8 @@ declare namespace io.flow.internal.v0.unions {
24968
24879
  | io.flow.internal.v0.models.PaymentProcessorMerchantDeleted
24969
24880
  | io.flow.internal.v0.models.VirtualCardProviderUpserted
24970
24881
  | io.flow.internal.v0.models.VirtualCardProviderDeleted
24882
+ | io.flow.internal.v0.models.AuthorizationBundleUpserted
24883
+ | io.flow.internal.v0.models.AuthorizationBundleDeleted
24971
24884
  | io.flow.internal.v0.models.PaypalPaymentDeleted
24972
24885
  | io.flow.internal.v0.models.PaypalPaymentUpserted
24973
24886
  | io.flow.internal.v0.models.PaypalExecutionDeleted
@@ -25240,7 +25153,6 @@ declare namespace io.flow.internal.v0.unions {
25240
25153
  | io.flow.internal.v0.models.ProcessingTransaction
25241
25154
  | io.flow.internal.v0.models.SubscriptionTransaction
25242
25155
  | io.flow.internal.v0.models.TaxRemittanceTransaction
25243
- | io.flow.internal.v0.models.TransferFeeTransaction
25244
25156
  | io.flow.internal.v0.models.TransferTransaction
25245
25157
  | io.flow.internal.v0.models.VirtualCardTransaction
25246
25158
  | io.flow.internal.v0.models.DisputeTransaction
@@ -27521,6 +27433,8 @@ export type MainTransactionDeleted =
27521
27433
  io.flow.internal.v0.models.MainTransactionDeleted;
27522
27434
  export type MainTransactionDeletedV2 =
27523
27435
  io.flow.internal.v0.models.MainTransactionDeletedV2;
27436
+ export type MainTransactionStatus =
27437
+ io.flow.internal.v0.enums.MainTransactionStatus;
27524
27438
  export type MainTransactionUpserted =
27525
27439
  io.flow.internal.v0.models.MainTransactionUpserted;
27526
27440
  export type MainTransactionUpsertedV2 =
@@ -27644,6 +27558,14 @@ export type MerchantOfRecordEntitySettings =
27644
27558
  io.flow.internal.v0.models.MerchantOfRecordEntitySettings;
27645
27559
  export type MerchantOfRecordEntitySettingsForm =
27646
27560
  io.flow.internal.v0.models.MerchantOfRecordEntitySettingsForm;
27561
+ export type MerchantOnboardingProcessKey =
27562
+ io.flow.internal.v0.enums.MerchantOnboardingProcessKey;
27563
+ export type MerchantOnboardingProcessState =
27564
+ io.flow.internal.v0.enums.MerchantOnboardingProcessState;
27565
+ export type MerchantOnboardingTaskKey =
27566
+ io.flow.internal.v0.enums.MerchantOnboardingTaskKey;
27567
+ export type MerchantOnboardingTaskState =
27568
+ io.flow.internal.v0.enums.MerchantOnboardingTaskState;
27647
27569
  export type NatureOfSale = io.flow.internal.v0.enums.NatureOfSale;
27648
27570
  export type NextBillingStatement =
27649
27571
  io.flow.internal.v0.models.NextBillingStatement;
@@ -27749,6 +27671,8 @@ export type OrganizationPaymentSettingVersion =
27749
27671
  io.flow.internal.v0.models.OrganizationPaymentSettingVersion;
27750
27672
  export type OrganizationPaymentStatus =
27751
27673
  io.flow.internal.v0.enums.OrganizationPaymentStatus;
27674
+ export type OrganizationRestrictionSummary =
27675
+ io.flow.internal.v0.models.OrganizationRestrictionSummary;
27752
27676
  export type OrganizationSettings =
27753
27677
  io.flow.internal.v0.models.OrganizationSettings;
27754
27678
  export type OrganizationSettingsForm =
@@ -27920,7 +27844,7 @@ export type ProductListSettingsForm =
27920
27844
  io.flow.internal.v0.models.ProductListSettingsForm;
27921
27845
  export type ProductRestriction = io.flow.internal.v0.models.ProductRestriction;
27922
27846
  export type ProductRestrictionDecision =
27923
- io.flow.internal.v0.enums.ProductRestrictionDecision;
27847
+ io.flow.internal.v0.models.ProductRestrictionDecision;
27924
27848
  export type ProductRestrictionDecisionForm =
27925
27849
  io.flow.internal.v0.models.ProductRestrictionDecisionForm;
27926
27850
  export type ProductRestrictionDeleted =
@@ -28020,8 +27944,19 @@ export type ReportInterval = io.flow.internal.v0.enums.ReportInterval;
28020
27944
  export type ReportingScheme = io.flow.internal.v0.enums.ReportingScheme;
28021
27945
  export type RequeueRequestForm = io.flow.internal.v0.models.RequeueRequestForm;
28022
27946
  export type ResponsibleParty = io.flow.internal.v0.enums.ResponsibleParty;
28023
- export type Restriction = io.flow.internal.v0.models.Restriction;
28024
27947
  export type RestrictionAction = io.flow.internal.v0.enums.RestrictionAction;
27948
+ export type RestrictionDecision = io.flow.internal.v0.enums.RestrictionDecision;
27949
+ export type RestrictionItem = io.flow.internal.v0.models.RestrictionItem;
27950
+ export type RestrictionKeywords =
27951
+ io.flow.internal.v0.models.RestrictionKeywords;
27952
+ export type RestrictionPending = io.flow.internal.v0.models.RestrictionPending;
27953
+ export type RestrictionProduct = io.flow.internal.v0.models.RestrictionProduct;
27954
+ export type RestrictionReview = io.flow.internal.v0.models.RestrictionReview;
27955
+ export type RestrictionRule = io.flow.internal.v0.models.RestrictionRule;
27956
+ export type RestrictionRuleForm =
27957
+ io.flow.internal.v0.models.RestrictionRuleForm;
27958
+ export type RestrictionRuleSummary =
27959
+ io.flow.internal.v0.models.RestrictionRuleSummary;
28025
27960
  export type ResyncByDestinations =
28026
27961
  io.flow.internal.v0.models.ResyncByDestinations;
28027
27962
  export type ResyncByHs6Destinations =
@@ -28228,6 +28163,8 @@ export type SpotRateMetadataRate =
28228
28163
  export type SpotRateUpserted = io.flow.internal.v0.models.SpotRateUpserted;
28229
28164
  export type SpotRateVersion = io.flow.internal.v0.models.SpotRateVersion;
28230
28165
  export type StatementStatus = io.flow.internal.v0.enums.StatementStatus;
28166
+ export type StatementTransferTransactionLocation =
28167
+ io.flow.internal.v0.enums.StatementTransferTransactionLocation;
28231
28168
  export type StatisticType = io.flow.internal.v0.enums.StatisticType;
28232
28169
  export type Status = io.flow.internal.v0.enums.Status;
28233
28170
  export type StoreConnection = io.flow.internal.v0.models.StoreConnection;
@@ -28375,15 +28312,11 @@ export type TrackingResponseUpserted =
28375
28312
  io.flow.internal.v0.models.TrackingResponseUpserted;
28376
28313
  export type TrackingUpserted = io.flow.internal.v0.models.TrackingUpserted;
28377
28314
  export type Transaction = io.flow.internal.v0.unions.Transaction;
28315
+ export type TransactionPostingMethod =
28316
+ io.flow.internal.v0.enums.TransactionPostingMethod;
28378
28317
  export type TransactionReference =
28379
28318
  io.flow.internal.v0.models.TransactionReference;
28380
28319
  export type TransactionSummary = io.flow.internal.v0.unions.TransactionSummary;
28381
- export type TransferFeeTransaction =
28382
- io.flow.internal.v0.models.TransferFeeTransaction;
28383
- export type TransferFeeTransactionDeleted =
28384
- io.flow.internal.v0.models.TransferFeeTransactionDeleted;
28385
- export type TransferFeeTransactionUpserted =
28386
- io.flow.internal.v0.models.TransferFeeTransactionUpserted;
28387
28320
  export type TransferMethod = io.flow.internal.v0.enums.TransferMethod;
28388
28321
  export type TransferTransaction =
28389
28322
  io.flow.internal.v0.models.TransferTransaction;