@flowio/types 11.24.5 → 11.24.7

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'
@@ -13499,6 +13331,7 @@ declare namespace io.flow.internal.v0.enums {
13499
13331
  type FeatureScope = 'global' | 'organization';
13500
13332
  type FeatureStatus = 'draft' | 'active' | 'archived';
13501
13333
  type FeatureType = 'boolean' | 'decimal' | 'string';
13334
+ type FeesSource = 'settings' | 'authorization_bundle';
13502
13335
  type FinancialReportingResponsibleParty = 'flow' | 'organization';
13503
13336
  type FlowApp = 'console';
13504
13337
  type Format = 'text' | 'phone' | 'email';
@@ -13550,6 +13383,7 @@ declare namespace io.flow.internal.v0.enums {
13550
13383
  | 'low_value_goods_tax'
13551
13384
  | 'high_value_goods_tax'
13552
13385
  | 'duties';
13386
+ type MainTransactionStatus = 'scheduled' | 'pending_fulfillment_proof';
13553
13387
  type ManualReviewRuleStatus = 'active' | 'archived';
13554
13388
  type ManualTransactionCategory =
13555
13389
  | 'cancelled_order_refund'
@@ -13611,6 +13445,29 @@ declare namespace io.flow.internal.v0.enums {
13611
13445
  | 'facebook_primary'
13612
13446
  | 'facebook_country_override'
13613
13447
  | 'supplemental';
13448
+ type MerchantOnboardingProcessKey = 'shopify_merchant_onboarding_v1';
13449
+ type MerchantOnboardingProcessState =
13450
+ | 'created'
13451
+ | 'active'
13452
+ | 'completed'
13453
+ | 'terminated';
13454
+ type MerchantOnboardingTaskKey =
13455
+ | 'channel_organization_created'
13456
+ | 'invite_organization_members'
13457
+ | 'synchronize_product_catalog'
13458
+ | 'classify_product_catalog'
13459
+ | 'synchronize_fulfillment_centers'
13460
+ | 'verify_gateway_setup'
13461
+ | 'application_form_submitted'
13462
+ | 'perform_fulfillment_configuration'
13463
+ | 'perform_kyc_review'
13464
+ | 'notify_kyc_review_failed'
13465
+ | 'notify_onboarding_completed';
13466
+ type MerchantOnboardingTaskState =
13467
+ | 'created'
13468
+ | 'in_progress'
13469
+ | 'completed'
13470
+ | 'terminated';
13614
13471
  type NatureOfSale =
13615
13472
  | 'consumer'
13616
13473
  | 'to_non_registered_business'
@@ -13686,7 +13543,6 @@ declare namespace io.flow.internal.v0.enums {
13686
13543
  | 'fiserv'
13687
13544
  | 'crypto';
13688
13545
  type ProcessorEntityStatus = 'active' | 'draft' | 'archived';
13689
- type ProductRestrictionDecision = 'accept_restriction' | 'reject_restriction';
13690
13546
  type ProductRestrictionStatus =
13691
13547
  | 'pending'
13692
13548
  | 'in_review'
@@ -13712,6 +13568,7 @@ declare namespace io.flow.internal.v0.enums {
13712
13568
  | 'paid_on_delivery';
13713
13569
  type ResponsibleParty = 'flow' | 'organization';
13714
13570
  type RestrictionAction = 'prohibited' | 'restricted';
13571
+ type RestrictionDecision = 'accept' | 'reject';
13715
13572
  type RiskCheck = 'three_d_secure';
13716
13573
  type RiskEvaluation =
13717
13574
  | 'Pending'
@@ -13784,6 +13641,7 @@ declare namespace io.flow.internal.v0.enums {
13784
13641
  | 'statement_generated'
13785
13642
  | 'statement_regenerated'
13786
13643
  | 'failed';
13644
+ type StatementTransferTransactionLocation = 'transactions_file' | 'summary';
13787
13645
  type StatisticType =
13788
13646
  | 'time-to-classify'
13789
13647
  | 'time-to-classify-aggregated'
@@ -13797,6 +13655,7 @@ declare namespace io.flow.internal.v0.enums {
13797
13655
  type TaxParty = 'consumer' | 'organization' | 'flow' | 'carrier';
13798
13656
  type TimeseriesType = 'daily' | 'weekly' | 'monthly' | 'yearly';
13799
13657
  type TrackingIntegrationType = 'api' | 'bulk' | 'aftership';
13658
+ type TransactionPostingMethod = 'time' | 'fulfillment_proof';
13800
13659
  type TransferMethod = 'ach';
13801
13660
  type UnclassifiedProductStatus =
13802
13661
  | 'ignored'
@@ -13853,7 +13712,7 @@ declare namespace io.flow.internal.v0.models {
13853
13712
  readonly discriminator: 'account_contact_upserted';
13854
13713
  readonly event_id: string;
13855
13714
  readonly timestamp: string;
13856
- readonly account_contact: io.flow.billing.v0.models.AccountContact;
13715
+ readonly account_contact: io.flow.internal.v0.models.AccountContact;
13857
13716
  }
13858
13717
 
13859
13718
  interface AccountDeletedV2 {
@@ -13889,8 +13748,8 @@ declare namespace io.flow.internal.v0.models {
13889
13748
  readonly export_id: string;
13890
13749
  readonly account_id?: string;
13891
13750
  readonly statement_id?: string;
13892
- readonly transaction_type?: io.flow.billing.v0.enums.BillingTransactionType;
13893
- readonly transaction_status?: io.flow.billing.v0.enums.BillingTransactionStatus;
13751
+ readonly transaction_type?: io.flow.internal.v0.enums.BillingTransactionType;
13752
+ readonly transaction_status?: io.flow.internal.v0.enums.BillingTransactionStatus;
13894
13753
  readonly transaction_posted_from?: string;
13895
13754
  readonly transaction_posted_to?: string;
13896
13755
  readonly transaction_posted_on_or_after?: string;
@@ -13956,10 +13815,13 @@ declare namespace io.flow.internal.v0.models {
13956
13815
  readonly b2b_tax_remittance_days?: number;
13957
13816
  readonly merchant_of_record_fee?: number;
13958
13817
  readonly duty_guarantee_fee?: number;
13959
- readonly transfer_fee?: io.flow.common.v0.models.Money;
13818
+ readonly transfer_fee?: number;
13960
13819
  readonly order_service_fee?: io.flow.internal.v0.models.TieredFee;
13961
13820
  readonly label_fee?: io.flow.internal.v0.models.TieredFee;
13962
13821
  readonly charge_label_cost_directly: boolean;
13822
+ readonly transaction_posting_method?: io.flow.internal.v0.enums.TransactionPostingMethod;
13823
+ readonly statement_transfer_transaction_location?: io.flow.internal.v0.enums.StatementTransferTransactionLocation;
13824
+ readonly fees_source?: io.flow.internal.v0.enums.FeesSource;
13963
13825
  }
13964
13826
 
13965
13827
  interface AccountSettingsDeleted {
@@ -13995,7 +13857,7 @@ declare namespace io.flow.internal.v0.models {
13995
13857
  readonly export_id: string;
13996
13858
  readonly account_id?: string;
13997
13859
  readonly statement_id?: string;
13998
- readonly status?: io.flow.billing.v0.enums.BillingTransactionStatus;
13860
+ readonly status?: io.flow.internal.v0.enums.BillingTransactionStatus;
13999
13861
  readonly posted_from?: string;
14000
13862
  readonly posted_to?: string;
14001
13863
  readonly posted_on_or_after?: string;
@@ -14015,14 +13877,14 @@ declare namespace io.flow.internal.v0.models {
14015
13877
  readonly event_id: string;
14016
13878
  readonly timestamp: string;
14017
13879
  readonly organization: string;
14018
- readonly account: io.flow.billing.v0.models.Account;
13880
+ readonly account: io.flow.internal.v0.models.Account;
14019
13881
  }
14020
13882
 
14021
13883
  interface AccountUpsertedV2 {
14022
13884
  readonly discriminator: 'account_upserted_v2';
14023
13885
  readonly event_id: string;
14024
13886
  readonly timestamp: string;
14025
- readonly account: io.flow.billing.v0.models.Account;
13887
+ readonly account: io.flow.internal.v0.models.Account;
14026
13888
  }
14027
13889
 
14028
13890
  interface ActionQuantity {
@@ -14462,10 +14324,11 @@ declare namespace io.flow.internal.v0.models {
14462
14324
  readonly organization_id: string;
14463
14325
  readonly authorization_reference: io.flow.payment.v0.models.AuthorizationReference;
14464
14326
  readonly payment_request_reference: io.flow.payment.gateway.v0.models.PaymentRequestReference;
14465
- readonly billing: io.flow.payment.request.bundle.v0.models.PaymentRequestBilling;
14327
+ readonly billing?: io.flow.payment.request.bundle.v0.models.PaymentRequestBilling;
14466
14328
  }
14467
14329
 
14468
14330
  interface AuthorizationBundleDeleted {
14331
+ readonly discriminator: 'authorization_bundle_deleted';
14469
14332
  readonly event_id: string;
14470
14333
  readonly timestamp: string;
14471
14334
  readonly organization: string;
@@ -14473,6 +14336,7 @@ declare namespace io.flow.internal.v0.models {
14473
14336
  }
14474
14337
 
14475
14338
  interface AuthorizationBundleUpserted {
14339
+ readonly discriminator: 'authorization_bundle_upserted';
14476
14340
  readonly event_id: string;
14477
14341
  readonly timestamp: string;
14478
14342
  readonly organization: string;
@@ -14764,7 +14628,6 @@ declare namespace io.flow.internal.v0.models {
14764
14628
  readonly starting_balance: io.flow.common.v0.models.Price;
14765
14629
  readonly subscription: io.flow.common.v0.models.Price;
14766
14630
  readonly transfer: io.flow.common.v0.models.Price;
14767
- readonly transfer_fee: io.flow.common.v0.models.Price;
14768
14631
  readonly invoice: io.flow.common.v0.models.Price;
14769
14632
  readonly manual: io.flow.common.v0.models.Price;
14770
14633
  readonly adjustment: io.flow.common.v0.models.Price;
@@ -14784,7 +14647,7 @@ declare namespace io.flow.internal.v0.models {
14784
14647
  readonly discriminator: 'billing_statement_upserted';
14785
14648
  readonly event_id: string;
14786
14649
  readonly timestamp: string;
14787
- readonly statement: io.flow.billing.v0.models.BillingStatement;
14650
+ readonly statement: io.flow.internal.v0.models.BillingStatement;
14788
14651
  }
14789
14652
 
14790
14653
  interface BillingTransaction {
@@ -15200,7 +15063,7 @@ declare namespace io.flow.internal.v0.models {
15200
15063
  readonly discriminator: 'channel_account_upserted';
15201
15064
  readonly event_id: string;
15202
15065
  readonly timestamp: string;
15203
- readonly channel_account: io.flow.billing.v0.models.ChannelAccount;
15066
+ readonly channel_account: io.flow.internal.v0.models.ChannelAccount;
15204
15067
  }
15205
15068
 
15206
15069
  interface ChannelCurrency {
@@ -15344,7 +15207,8 @@ declare namespace io.flow.internal.v0.models {
15344
15207
  readonly id: string;
15345
15208
  readonly type: io.flow.internal.v0.enums.BillingTransactionType;
15346
15209
  readonly transaction: io.flow.internal.v0.models.TransactionReference;
15347
- readonly posted_at: string;
15210
+ readonly status: io.flow.internal.v0.enums.BillingTransactionStatus;
15211
+ readonly posted_at?: string;
15348
15212
  readonly value: io.flow.common.v0.models.Price;
15349
15213
  readonly description: string;
15350
15214
  readonly statement?: io.flow.internal.v0.models.BillingStatementReference;
@@ -18160,7 +18024,8 @@ declare namespace io.flow.internal.v0.models {
18160
18024
  readonly id: string;
18161
18025
  readonly type: io.flow.internal.v0.enums.BillingTransactionType;
18162
18026
  readonly authorization: io.flow.payment.v0.models.AuthorizationReference;
18163
- readonly posted_at: string;
18027
+ readonly status: io.flow.internal.v0.enums.BillingTransactionStatus;
18028
+ readonly posted_at?: string;
18164
18029
  readonly value: io.flow.common.v0.models.Price;
18165
18030
  readonly description: string;
18166
18031
  readonly statement?: io.flow.internal.v0.models.BillingStatementReference;
@@ -18816,6 +18681,7 @@ declare namespace io.flow.internal.v0.models {
18816
18681
  readonly mor?: io.flow.internal.v0.models.Fee;
18817
18682
  readonly fx?: io.flow.internal.v0.models.Fee;
18818
18683
  readonly duty_guarantee?: io.flow.internal.v0.models.Fee;
18684
+ readonly transfer?: io.flow.internal.v0.models.Fee;
18819
18685
  }
18820
18686
 
18821
18687
  interface FinancialMerchantCategory {
@@ -20265,7 +20131,8 @@ declare namespace io.flow.internal.v0.models {
20265
20131
  readonly discriminator: 'invoice_transaction';
20266
20132
  readonly id: string;
20267
20133
  readonly type: io.flow.internal.v0.enums.BillingTransactionType;
20268
- readonly posted_at: string;
20134
+ readonly status: io.flow.internal.v0.enums.BillingTransactionStatus;
20135
+ readonly posted_at?: string;
20269
20136
  readonly value: io.flow.common.v0.models.Price;
20270
20137
  readonly description: string;
20271
20138
  readonly statement?: io.flow.internal.v0.models.BillingStatementReference;
@@ -20664,7 +20531,9 @@ declare namespace io.flow.internal.v0.models {
20664
20531
  readonly id: string;
20665
20532
  readonly type: io.flow.internal.v0.enums.BillingTransactionType;
20666
20533
  readonly label: io.flow.internal.v0.models.BillingLabelSummary;
20667
- readonly posted_at: string;
20534
+ readonly order?: io.flow.internal.v0.models.BillingOrderTransactionOrderReference;
20535
+ readonly status: io.flow.internal.v0.enums.BillingTransactionStatus;
20536
+ readonly posted_at?: string;
20668
20537
  readonly value: io.flow.common.v0.models.Price;
20669
20538
  readonly description: string;
20670
20539
  readonly statement?: io.flow.internal.v0.models.BillingStatementReference;
@@ -20998,7 +20867,8 @@ declare namespace io.flow.internal.v0.models {
20998
20867
  readonly account: io.flow.internal.v0.models.AccountReference;
20999
20868
  readonly type: io.flow.internal.v0.enums.BillingTransactionType;
21000
20869
  readonly value: io.flow.common.v0.models.Price;
21001
- readonly posted_at: string;
20870
+ readonly status: io.flow.internal.v0.enums.BillingTransactionStatus;
20871
+ readonly posted_at?: string;
21002
20872
  readonly statement?: io.flow.internal.v0.models.BillingStatementReference;
21003
20873
  readonly created_at: string;
21004
20874
  readonly original_at?: string;
@@ -21052,7 +20922,8 @@ declare namespace io.flow.internal.v0.models {
21052
20922
  readonly discriminator: 'manual_transaction';
21053
20923
  readonly id: string;
21054
20924
  readonly type: io.flow.internal.v0.enums.BillingTransactionType;
21055
- readonly posted_at: string;
20925
+ readonly status: io.flow.internal.v0.enums.BillingTransactionStatus;
20926
+ readonly posted_at?: string;
21056
20927
  readonly value: io.flow.common.v0.models.Price;
21057
20928
  readonly description: string;
21058
20929
  readonly category?: io.flow.internal.v0.enums.ManualTransactionCategory;
@@ -21615,7 +21486,8 @@ declare namespace io.flow.internal.v0.models {
21615
21486
  readonly id: string;
21616
21487
  readonly type: io.flow.internal.v0.enums.BillingTransactionType;
21617
21488
  readonly order: io.flow.internal.v0.models.BillingOrderTransactionOrderReference;
21618
- readonly posted_at: string;
21489
+ readonly status: io.flow.internal.v0.enums.BillingTransactionStatus;
21490
+ readonly posted_at?: string;
21619
21491
  readonly value: io.flow.common.v0.models.Price;
21620
21492
  readonly description: string;
21621
21493
  readonly statement?: io.flow.internal.v0.models.BillingStatementReference;
@@ -21639,7 +21511,7 @@ declare namespace io.flow.internal.v0.models {
21639
21511
  readonly discriminator: 'organization_account_upserted';
21640
21512
  readonly event_id: string;
21641
21513
  readonly timestamp: string;
21642
- readonly organization_account: io.flow.billing.v0.models.OrganizationAccount;
21514
+ readonly organization_account: io.flow.internal.v0.models.OrganizationAccount;
21643
21515
  }
21644
21516
 
21645
21517
  interface OrganizationBooleanValue {
@@ -21741,6 +21613,13 @@ declare namespace io.flow.internal.v0.models {
21741
21613
  readonly organization_payment_setting: io.flow.internal.v0.models.OrganizationPaymentSetting;
21742
21614
  }
21743
21615
 
21616
+ interface OrganizationRestrictionSummary {
21617
+ readonly organization: io.flow.common.v0.models.OrganizationSummary;
21618
+ readonly earliest_date: string;
21619
+ readonly pending: io.flow.internal.v0.models.RestrictionPending[];
21620
+ readonly total: number;
21621
+ }
21622
+
21744
21623
  interface OrganizationSettings {
21745
21624
  readonly default_currency_format_symbol: io.flow.common.v0.enums.CurrencySymbolFormat;
21746
21625
  readonly default_currency_label_formatters: io.flow.common.v0.enums.CurrencyLabelFormatter[];
@@ -22238,7 +22117,8 @@ declare namespace io.flow.internal.v0.models {
22238
22117
  readonly type: io.flow.internal.v0.enums.BillingTransactionType;
22239
22118
  readonly merchant_of_record: io.flow.common.v0.enums.MerchantOfRecord;
22240
22119
  readonly logistics_responsibility: io.flow.internal.v0.enums.ResponsibleParty[];
22241
- readonly posted_at: string;
22120
+ readonly status: io.flow.internal.v0.enums.BillingTransactionStatus;
22121
+ readonly posted_at?: string;
22242
22122
  readonly value: io.flow.common.v0.models.Price;
22243
22123
  readonly description: string;
22244
22124
  readonly statement?: io.flow.internal.v0.models.BillingStatementReference;
@@ -22370,14 +22250,19 @@ declare namespace io.flow.internal.v0.models {
22370
22250
  readonly id: string;
22371
22251
  readonly organization_id: string;
22372
22252
  readonly product_id: string;
22253
+ readonly restriction_decisions: io.flow.internal.v0.models.ProductRestrictionDecision[];
22254
+ }
22255
+
22256
+ interface ProductRestrictionDecision {
22257
+ readonly rule_id: string;
22373
22258
  readonly status: io.flow.internal.v0.enums.ProductRestrictionStatus;
22374
- readonly restrictions: io.flow.internal.v0.models.Restriction[];
22259
+ readonly matching_positive_keywords: string[];
22260
+ readonly matching_negative_keywords: string[];
22375
22261
  }
22376
22262
 
22377
22263
  interface ProductRestrictionDecisionForm {
22378
- readonly product_id: string;
22379
22264
  readonly rule_id: string;
22380
- readonly decision: io.flow.internal.v0.enums.ProductRestrictionDecision;
22265
+ readonly decision: io.flow.internal.v0.enums.RestrictionDecision;
22381
22266
  }
22382
22267
 
22383
22268
  interface ProductRestrictionDeleted {
@@ -22724,17 +22609,6 @@ declare namespace io.flow.internal.v0.models {
22724
22609
  readonly orders_since_submitted_at?: string;
22725
22610
  }
22726
22611
 
22727
- interface RedactedSecret {
22728
- readonly id: string;
22729
- readonly key: string;
22730
- readonly created_at: string;
22731
- }
22732
-
22733
- interface RedactedSecretConfig {
22734
- readonly secrets: io.flow.internal.v0.models.RedactedSecret[];
22735
- readonly preferred_secret_id: string;
22736
- }
22737
-
22738
22612
  interface Redirect {
22739
22613
  readonly id: string;
22740
22614
  readonly post_payment_redirect_urls: io.flow.payment.v0.models.PostPaymentRedirectUrls;
@@ -22769,11 +22643,69 @@ declare namespace io.flow.internal.v0.models {
22769
22643
  readonly select_mismatching_item_types: boolean;
22770
22644
  }
22771
22645
 
22772
- interface Restriction {
22646
+ interface RestrictionItem {
22647
+ readonly id: string;
22648
+ readonly organization_id: string;
22773
22649
  readonly name: string;
22774
- readonly rule_id: string;
22650
+ readonly thumbnail: io.flow.catalog.v0.models.Image;
22651
+ readonly keywords: io.flow.internal.v0.models.RestrictionKeywords;
22652
+ readonly rule: io.flow.internal.v0.models.RestrictionRuleSummary;
22653
+ readonly status: io.flow.internal.v0.enums.ProductRestrictionStatus;
22654
+ readonly updated_at: string;
22655
+ }
22656
+
22657
+ interface RestrictionKeywords {
22658
+ readonly positive_keywords: string[];
22659
+ readonly negative_keywords: string[];
22660
+ }
22661
+
22662
+ interface RestrictionPending {
22663
+ readonly rule: io.flow.internal.v0.models.RestrictionRuleSummary;
22664
+ readonly count: number;
22665
+ }
22666
+
22667
+ interface RestrictionProduct {
22668
+ readonly id: string;
22669
+ readonly organization_id: string;
22670
+ readonly name: string;
22671
+ readonly description: string;
22672
+ readonly images: io.flow.catalog.v0.models.Image[];
22673
+ readonly thumbnails: io.flow.catalog.v0.models.Image[];
22674
+ readonly categories: string[];
22675
+ readonly updated_at: string;
22676
+ readonly restrictions: io.flow.internal.v0.models.RestrictionReview[];
22677
+ }
22678
+
22679
+ interface RestrictionReview {
22680
+ readonly rule: io.flow.internal.v0.models.RestrictionRuleSummary;
22681
+ readonly status: io.flow.internal.v0.enums.ProductRestrictionStatus;
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 {
@@ -22920,17 +22852,6 @@ declare namespace io.flow.internal.v0.models {
22920
22852
  readonly label: io.flow.internal.v0.models.LabelSummary;
22921
22853
  }
22922
22854
 
22923
- interface Secret {
22924
- readonly id: string;
22925
- readonly key: string;
22926
- readonly created_at: string;
22927
- }
22928
-
22929
- interface SecretConfig {
22930
- readonly secrets: io.flow.internal.v0.models.Secret[];
22931
- readonly preferred_secret_id: string;
22932
- }
22933
-
22934
22855
  interface SessionCountries {
22935
22856
  readonly countries: io.flow.internal.v0.models.SessionCountry[];
22936
22857
  }
@@ -23106,6 +23027,7 @@ declare namespace io.flow.internal.v0.models {
23106
23027
 
23107
23028
  interface ShopifyMarketsShop {
23108
23029
  readonly id: string;
23030
+ readonly channel: io.flow.common.v0.models.ChannelReference;
23109
23031
  readonly domain: string;
23110
23032
  readonly myshopify_domain: string;
23111
23033
  readonly organization_id: string;
@@ -23129,6 +23051,7 @@ declare namespace io.flow.internal.v0.models {
23129
23051
 
23130
23052
  interface ShopifyMarketsShopSummary {
23131
23053
  readonly organization: io.flow.common.v0.models.OrganizationSummary;
23054
+ readonly channel: io.flow.common.v0.models.ChannelReference;
23132
23055
  }
23133
23056
 
23134
23057
  interface ShopifyMarketsSubsidiaryCompany {
@@ -23667,7 +23590,8 @@ declare namespace io.flow.internal.v0.models {
23667
23590
  readonly discriminator: 'subscription_transaction';
23668
23591
  readonly id: string;
23669
23592
  readonly type: io.flow.internal.v0.enums.BillingTransactionType;
23670
- readonly posted_at: string;
23593
+ readonly status: io.flow.internal.v0.enums.BillingTransactionStatus;
23594
+ readonly posted_at?: string;
23671
23595
  readonly value: io.flow.common.v0.models.Price;
23672
23596
  readonly description: string;
23673
23597
  readonly statement?: io.flow.internal.v0.models.BillingStatementReference;
@@ -23813,7 +23737,8 @@ declare namespace io.flow.internal.v0.models {
23813
23737
  readonly discriminator: 'tax_remittance_transaction';
23814
23738
  readonly id: string;
23815
23739
  readonly type: io.flow.internal.v0.enums.BillingTransactionType;
23816
- readonly posted_at: string;
23740
+ readonly status: io.flow.internal.v0.enums.BillingTransactionStatus;
23741
+ readonly posted_at?: string;
23817
23742
  readonly value: io.flow.common.v0.models.Price;
23818
23743
  readonly description: string;
23819
23744
  readonly statement?: io.flow.internal.v0.models.BillingStatementReference;
@@ -24025,36 +23950,12 @@ declare namespace io.flow.internal.v0.models {
24025
23950
  readonly id: string;
24026
23951
  }
24027
23952
 
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
23953
  interface TransferTransaction {
24054
23954
  readonly discriminator: 'transfer_transaction';
24055
23955
  readonly id: string;
24056
23956
  readonly type: io.flow.internal.v0.enums.BillingTransactionType;
24057
- readonly posted_at: string;
23957
+ readonly status: io.flow.internal.v0.enums.BillingTransactionStatus;
23958
+ readonly posted_at?: string;
24058
23959
  readonly value: io.flow.common.v0.models.Price;
24059
23960
  readonly description: string;
24060
23961
  readonly statement?: io.flow.internal.v0.models.BillingStatementReference;
@@ -24306,7 +24207,8 @@ declare namespace io.flow.internal.v0.models {
24306
24207
  readonly discriminator: 'virtual_card_transaction';
24307
24208
  readonly id: string;
24308
24209
  readonly type: io.flow.internal.v0.enums.BillingTransactionType;
24309
- readonly posted_at: string;
24210
+ readonly status: io.flow.internal.v0.enums.BillingTransactionStatus;
24211
+ readonly posted_at?: string;
24310
24212
  readonly value: io.flow.common.v0.models.Price;
24311
24213
  readonly description: string;
24312
24214
  readonly statement?: io.flow.internal.v0.models.BillingStatementReference;
@@ -24807,8 +24709,6 @@ declare namespace io.flow.internal.v0.unions {
24807
24709
  | io.flow.internal.v0.models.TransferTransactionDeleted
24808
24710
  | io.flow.internal.v0.models.TransferTransactionUpsertedV2
24809
24711
  | io.flow.internal.v0.models.TransferTransactionDeletedV2
24810
- | io.flow.internal.v0.models.TransferFeeTransactionUpserted
24811
- | io.flow.internal.v0.models.TransferFeeTransactionDeleted
24812
24712
  | io.flow.internal.v0.models.ProcessingTransactionUpserted
24813
24713
  | io.flow.internal.v0.models.ProcessingTransactionDeleted
24814
24714
  | io.flow.internal.v0.models.BankPaymentUpserted
@@ -24968,6 +24868,8 @@ declare namespace io.flow.internal.v0.unions {
24968
24868
  | io.flow.internal.v0.models.PaymentProcessorMerchantDeleted
24969
24869
  | io.flow.internal.v0.models.VirtualCardProviderUpserted
24970
24870
  | io.flow.internal.v0.models.VirtualCardProviderDeleted
24871
+ | io.flow.internal.v0.models.AuthorizationBundleUpserted
24872
+ | io.flow.internal.v0.models.AuthorizationBundleDeleted
24971
24873
  | io.flow.internal.v0.models.PaypalPaymentDeleted
24972
24874
  | io.flow.internal.v0.models.PaypalPaymentUpserted
24973
24875
  | io.flow.internal.v0.models.PaypalExecutionDeleted
@@ -25240,7 +25142,6 @@ declare namespace io.flow.internal.v0.unions {
25240
25142
  | io.flow.internal.v0.models.ProcessingTransaction
25241
25143
  | io.flow.internal.v0.models.SubscriptionTransaction
25242
25144
  | io.flow.internal.v0.models.TaxRemittanceTransaction
25243
- | io.flow.internal.v0.models.TransferFeeTransaction
25244
25145
  | io.flow.internal.v0.models.TransferTransaction
25245
25146
  | io.flow.internal.v0.models.VirtualCardTransaction
25246
25147
  | io.flow.internal.v0.models.DisputeTransaction
@@ -27059,6 +26960,7 @@ export type FeedDeleted = io.flow.internal.v0.models.FeedDeleted;
27059
26960
  export type FeedUpserted = io.flow.internal.v0.models.FeedUpserted;
27060
26961
  export type FeedsExport = io.flow.internal.v0.models.FeedsExport;
27061
26962
  export type Fees = io.flow.internal.v0.models.Fees;
26963
+ export type FeesSource = io.flow.internal.v0.enums.FeesSource;
27062
26964
  export type FinancialMerchantCategory =
27063
26965
  io.flow.internal.v0.models.FinancialMerchantCategory;
27064
26966
  export type FinancialReportingResponsibleParty =
@@ -27521,6 +27423,8 @@ export type MainTransactionDeleted =
27521
27423
  io.flow.internal.v0.models.MainTransactionDeleted;
27522
27424
  export type MainTransactionDeletedV2 =
27523
27425
  io.flow.internal.v0.models.MainTransactionDeletedV2;
27426
+ export type MainTransactionStatus =
27427
+ io.flow.internal.v0.enums.MainTransactionStatus;
27524
27428
  export type MainTransactionUpserted =
27525
27429
  io.flow.internal.v0.models.MainTransactionUpserted;
27526
27430
  export type MainTransactionUpsertedV2 =
@@ -27644,6 +27548,14 @@ export type MerchantOfRecordEntitySettings =
27644
27548
  io.flow.internal.v0.models.MerchantOfRecordEntitySettings;
27645
27549
  export type MerchantOfRecordEntitySettingsForm =
27646
27550
  io.flow.internal.v0.models.MerchantOfRecordEntitySettingsForm;
27551
+ export type MerchantOnboardingProcessKey =
27552
+ io.flow.internal.v0.enums.MerchantOnboardingProcessKey;
27553
+ export type MerchantOnboardingProcessState =
27554
+ io.flow.internal.v0.enums.MerchantOnboardingProcessState;
27555
+ export type MerchantOnboardingTaskKey =
27556
+ io.flow.internal.v0.enums.MerchantOnboardingTaskKey;
27557
+ export type MerchantOnboardingTaskState =
27558
+ io.flow.internal.v0.enums.MerchantOnboardingTaskState;
27647
27559
  export type NatureOfSale = io.flow.internal.v0.enums.NatureOfSale;
27648
27560
  export type NextBillingStatement =
27649
27561
  io.flow.internal.v0.models.NextBillingStatement;
@@ -27749,6 +27661,8 @@ export type OrganizationPaymentSettingVersion =
27749
27661
  io.flow.internal.v0.models.OrganizationPaymentSettingVersion;
27750
27662
  export type OrganizationPaymentStatus =
27751
27663
  io.flow.internal.v0.enums.OrganizationPaymentStatus;
27664
+ export type OrganizationRestrictionSummary =
27665
+ io.flow.internal.v0.models.OrganizationRestrictionSummary;
27752
27666
  export type OrganizationSettings =
27753
27667
  io.flow.internal.v0.models.OrganizationSettings;
27754
27668
  export type OrganizationSettingsForm =
@@ -27920,7 +27834,7 @@ export type ProductListSettingsForm =
27920
27834
  io.flow.internal.v0.models.ProductListSettingsForm;
27921
27835
  export type ProductRestriction = io.flow.internal.v0.models.ProductRestriction;
27922
27836
  export type ProductRestrictionDecision =
27923
- io.flow.internal.v0.enums.ProductRestrictionDecision;
27837
+ io.flow.internal.v0.models.ProductRestrictionDecision;
27924
27838
  export type ProductRestrictionDecisionForm =
27925
27839
  io.flow.internal.v0.models.ProductRestrictionDecisionForm;
27926
27840
  export type ProductRestrictionDeleted =
@@ -28005,9 +27919,6 @@ export type ReboundConfigurationForm =
28005
27919
  io.flow.internal.v0.models.ReboundConfigurationForm;
28006
27920
  export type ReboundConfigurationStatus =
28007
27921
  io.flow.internal.v0.enums.ReboundConfigurationStatus;
28008
- export type RedactedSecret = io.flow.internal.v0.models.RedactedSecret;
28009
- export type RedactedSecretConfig =
28010
- io.flow.internal.v0.models.RedactedSecretConfig;
28011
27922
  export type Redirect = io.flow.internal.v0.models.Redirect;
28012
27923
  export type RedirectActionCompleted =
28013
27924
  io.flow.internal.v0.models.RedirectActionCompleted;
@@ -28020,8 +27931,19 @@ export type ReportInterval = io.flow.internal.v0.enums.ReportInterval;
28020
27931
  export type ReportingScheme = io.flow.internal.v0.enums.ReportingScheme;
28021
27932
  export type RequeueRequestForm = io.flow.internal.v0.models.RequeueRequestForm;
28022
27933
  export type ResponsibleParty = io.flow.internal.v0.enums.ResponsibleParty;
28023
- export type Restriction = io.flow.internal.v0.models.Restriction;
28024
27934
  export type RestrictionAction = io.flow.internal.v0.enums.RestrictionAction;
27935
+ export type RestrictionDecision = io.flow.internal.v0.enums.RestrictionDecision;
27936
+ export type RestrictionItem = io.flow.internal.v0.models.RestrictionItem;
27937
+ export type RestrictionKeywords =
27938
+ io.flow.internal.v0.models.RestrictionKeywords;
27939
+ export type RestrictionPending = io.flow.internal.v0.models.RestrictionPending;
27940
+ export type RestrictionProduct = io.flow.internal.v0.models.RestrictionProduct;
27941
+ export type RestrictionReview = io.flow.internal.v0.models.RestrictionReview;
27942
+ export type RestrictionRule = io.flow.internal.v0.models.RestrictionRule;
27943
+ export type RestrictionRuleForm =
27944
+ io.flow.internal.v0.models.RestrictionRuleForm;
27945
+ export type RestrictionRuleSummary =
27946
+ io.flow.internal.v0.models.RestrictionRuleSummary;
28025
27947
  export type ResyncByDestinations =
28026
27948
  io.flow.internal.v0.models.ResyncByDestinations;
28027
27949
  export type ResyncByHs6Destinations =
@@ -28061,8 +27983,6 @@ export type SearchProviderExport =
28061
27983
  io.flow.internal.v0.models.SearchProviderExport;
28062
27984
  export type SearchTrackingSummary =
28063
27985
  io.flow.internal.v0.models.SearchTrackingSummary;
28064
- export type Secret = io.flow.internal.v0.models.Secret;
28065
- export type SecretConfig = io.flow.internal.v0.models.SecretConfig;
28066
27986
  export type SerialReservationError =
28067
27987
  io.flow.internal.v0.enums.SerialReservationError;
28068
27988
  export type ServiceName = io.flow.internal.v0.enums.ServiceName;
@@ -28228,6 +28148,8 @@ export type SpotRateMetadataRate =
28228
28148
  export type SpotRateUpserted = io.flow.internal.v0.models.SpotRateUpserted;
28229
28149
  export type SpotRateVersion = io.flow.internal.v0.models.SpotRateVersion;
28230
28150
  export type StatementStatus = io.flow.internal.v0.enums.StatementStatus;
28151
+ export type StatementTransferTransactionLocation =
28152
+ io.flow.internal.v0.enums.StatementTransferTransactionLocation;
28231
28153
  export type StatisticType = io.flow.internal.v0.enums.StatisticType;
28232
28154
  export type Status = io.flow.internal.v0.enums.Status;
28233
28155
  export type StoreConnection = io.flow.internal.v0.models.StoreConnection;
@@ -28375,15 +28297,11 @@ export type TrackingResponseUpserted =
28375
28297
  io.flow.internal.v0.models.TrackingResponseUpserted;
28376
28298
  export type TrackingUpserted = io.flow.internal.v0.models.TrackingUpserted;
28377
28299
  export type Transaction = io.flow.internal.v0.unions.Transaction;
28300
+ export type TransactionPostingMethod =
28301
+ io.flow.internal.v0.enums.TransactionPostingMethod;
28378
28302
  export type TransactionReference =
28379
28303
  io.flow.internal.v0.models.TransactionReference;
28380
28304
  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
28305
  export type TransferMethod = io.flow.internal.v0.enums.TransferMethod;
28388
28306
  export type TransferTransaction =
28389
28307
  io.flow.internal.v0.models.TransferTransaction;