@flowio/types 11.21.1 → 11.22.0

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.
@@ -2356,6 +2356,28 @@ declare namespace io.flow.tracking.v0.models {
2356
2356
  }
2357
2357
  }
2358
2358
 
2359
+ declare namespace io.flow.invoice.v0.enums {
2360
+ type PaymentTerm = 'net7' | 'net15' | 'net30';
2361
+ }
2362
+
2363
+ declare namespace io.flow.invoice.v0.models {
2364
+ interface Invoice {
2365
+ readonly id: string;
2366
+ readonly number: string;
2367
+ readonly date: string;
2368
+ readonly terms: io.flow.invoice.v0.enums.PaymentTerm;
2369
+ readonly due_date: string;
2370
+ readonly lines: io.flow.invoice.v0.models.InvoiceLine[];
2371
+ readonly total: io.flow.common.v0.models.Price;
2372
+ }
2373
+
2374
+ interface InvoiceLine {
2375
+ readonly id: string;
2376
+ readonly description: string;
2377
+ readonly value: io.flow.common.v0.models.Price;
2378
+ }
2379
+ }
2380
+
2359
2381
  declare namespace io.flow.token.internal.v0.models {
2360
2382
  interface ChannelTokenForm {
2361
2383
  readonly channel_id: string;
@@ -4044,13 +4066,6 @@ declare namespace io.flow.stripe.v0.enums {
4044
4066
  | 'source.canceled'
4045
4067
  | 'source.chargeable'
4046
4068
  | 'source.failed';
4047
- type KlarnaPaymentMethodCategoryType =
4048
- | 'direct_bank_transfer'
4049
- | 'direct_debit'
4050
- | 'pay_later'
4051
- | 'pay_now'
4052
- | 'pay_over_time';
4053
- type KlarnaProduct = 'payment';
4054
4069
  type NetworkStatus =
4055
4070
  | 'approved_by_network'
4056
4071
  | 'declined_by_network'
@@ -4354,7 +4369,7 @@ declare namespace io.flow.stripe.v0.models {
4354
4369
  }
4355
4370
 
4356
4371
  interface OrderItem {
4357
- readonly object?: string;
4372
+ readonly object: string;
4358
4373
  readonly amount: number;
4359
4374
  readonly currency: string;
4360
4375
  readonly description?: string;
@@ -4596,7 +4611,7 @@ declare namespace io.flow.stripe.v0.models {
4596
4611
 
4597
4612
  interface Shipping {
4598
4613
  readonly address: io.flow.stripe.v0.models.Address;
4599
- readonly name?: string;
4614
+ readonly name: string;
4600
4615
  readonly phone?: string;
4601
4616
  }
4602
4617
 
@@ -4619,7 +4634,6 @@ declare namespace io.flow.stripe.v0.models {
4619
4634
  readonly status: io.flow.stripe.v0.enums.SourceStatus;
4620
4635
  readonly type: io.flow.stripe.v0.enums.SourceType;
4621
4636
  readonly usage: io.flow.stripe.v0.enums.SourceUsageType;
4622
- readonly source_order?: io.flow.stripe.v0.models.SourceOrder;
4623
4637
  }
4624
4638
 
4625
4639
  interface SourceCard {
@@ -4650,50 +4664,12 @@ declare namespace io.flow.stripe.v0.models {
4650
4664
  readonly first_name?: string;
4651
4665
  readonly last_name?: string;
4652
4666
  readonly client_token: string;
4653
- readonly payment_method_categories?: string;
4654
- readonly purchase_country?: string;
4655
- readonly shipping_first_name?: string;
4656
- readonly shipping_last_name?: string;
4657
- readonly locale?: string;
4658
- readonly pay_later_name?: string;
4659
- readonly pay_later_asset_urls_standard?: string;
4660
- readonly pay_later_asset_urls_descriptive?: string;
4661
- readonly pay_now_name?: string;
4662
- readonly pay_now_asset_urls_standard?: string;
4663
- readonly pay_now_asset_urls_descriptive?: string;
4664
- readonly pay_over_time_name?: string;
4665
- readonly pay_over_time_asset_urls_standard?: string;
4666
- readonly pay_over_time_asset_urls_descriptive?: string;
4667
- readonly direct_bank_transfer_name?: string;
4668
- readonly direct_bank_transfer_asset_urls_standard?: string;
4669
- readonly direct_bank_transfer_asset_urls_descriptive?: string;
4670
- readonly direct_debit_name?: string;
4671
- readonly direct_debit_asset_urls_standard?: string;
4672
- readonly direct_debit_asset_urls_descriptive?: string;
4673
4667
  }
4674
4668
 
4675
4669
  interface SourceKlarnaRequest {
4676
4670
  readonly first_name: string;
4677
4671
  readonly last_name: string;
4678
- readonly purchase_country?: string;
4679
- readonly product?: io.flow.stripe.v0.enums.KlarnaProduct;
4680
4672
  readonly attachment?: string;
4681
- readonly shipping_first_name?: string;
4682
- readonly shipping_last_name?: string;
4683
- readonly locale?: string;
4684
- }
4685
-
4686
- interface SourceOrder {
4687
- readonly amount?: number;
4688
- readonly currency?: string;
4689
- readonly email?: string;
4690
- readonly items?: io.flow.stripe.v0.models.OrderItem[];
4691
- readonly shipping?: io.flow.stripe.v0.models.Shipping;
4692
- }
4693
-
4694
- interface SourceOrderRequest {
4695
- readonly items?: io.flow.stripe.v0.models.OrderItemRequest[];
4696
- readonly shipping?: io.flow.stripe.v0.models.Shipping;
4697
4673
  }
4698
4674
 
4699
4675
  interface SourceRequest {
@@ -4711,7 +4687,6 @@ declare namespace io.flow.stripe.v0.models {
4711
4687
  readonly three_d_secure?: io.flow.stripe.v0.models.ThreeDSecure;
4712
4688
  readonly token?: string;
4713
4689
  readonly usage: io.flow.stripe.v0.enums.SourceUsageType;
4714
- readonly source_order?: io.flow.stripe.v0.models.SourceOrderRequest;
4715
4690
  }
4716
4691
 
4717
4692
  interface Stripe3Ds2Fingerprint {
@@ -6065,7 +6040,7 @@ declare namespace io.flow.brickftp.v0.models {
6065
6040
  readonly id: number;
6066
6041
  readonly path: string;
6067
6042
  readonly behavior: io.flow.brickftp.v0.enums.BehaviorType;
6068
- readonly value: any /*object*/;
6043
+ readonly value: string[];
6069
6044
  }
6070
6045
 
6071
6046
  interface BehaviorForm {
@@ -6304,11 +6279,6 @@ declare namespace io.flow.adyen.v0.models {
6304
6279
  readonly currency: string;
6305
6280
  }
6306
6281
 
6307
- interface Applepay {
6308
- readonly type: 'applepay';
6309
- readonly applePayToken: string;
6310
- }
6311
-
6312
6282
  interface Authentication {
6313
6283
  readonly 'threeds2.fingerprintToken'?: string;
6314
6284
  readonly 'threeds2.challengeToken'?: string;
@@ -6336,8 +6306,6 @@ declare namespace io.flow.adyen.v0.models {
6336
6306
  readonly browserInfo?: io.flow.adyen.v0.unions.BrowserInfo;
6337
6307
  readonly threeDS2RequestData?: io.flow.adyen.v0.models.Threeds2RequestData;
6338
6308
  readonly recurringProcessingModel?: io.flow.adyen.v0.enums.RecurringProcessingModel;
6339
- readonly mcc?: string;
6340
- readonly metadata?: any /*object*/;
6341
6309
  }
6342
6310
 
6343
6311
  interface AuthorizeRequest3D {
@@ -6494,14 +6462,6 @@ declare namespace io.flow.adyen.v0.models {
6494
6462
  readonly paymentData?: string;
6495
6463
  }
6496
6464
 
6497
- interface PaymentDetailsV663Ds2Challenge {
6498
- readonly 'threeds2.challengeResult': string;
6499
- }
6500
-
6501
- interface PaymentDetailsV663Ds2Fingerprint {
6502
- readonly 'threeds2.fingerprint': string;
6503
- }
6504
-
6505
6465
  interface PaymentRequest {
6506
6466
  readonly reference: string;
6507
6467
  readonly merchantAccount: string;
@@ -6523,9 +6483,7 @@ declare namespace io.flow.adyen.v0.models {
6523
6483
  readonly browserInfo?: io.flow.adyen.v0.unions.BrowserInfo;
6524
6484
  readonly origin?: string;
6525
6485
  readonly channel?: io.flow.adyen.v0.enums.Channel;
6526
- readonly returnUrl?: string;
6527
- readonly mcc?: string;
6528
- readonly metadata?: any /*object*/;
6486
+ readonly returnURL?: string;
6529
6487
  }
6530
6488
 
6531
6489
  interface PaymentResponse {
@@ -6581,15 +6539,6 @@ declare namespace io.flow.adyen.v0.models {
6581
6539
  readonly cvc?: string;
6582
6540
  }
6583
6541
 
6584
- interface SdkV3OnCompleteData {
6585
- readonly details: any /*object*/;
6586
- readonly payment_data?: string;
6587
- }
6588
-
6589
- interface SdkV3OnCompleteResult {
6590
- readonly data: io.flow.adyen.v0.models.SdkV3OnCompleteData;
6591
- }
6592
-
6593
6542
  interface ThreeDSecureData {
6594
6543
  readonly authenticationResponse?: string;
6595
6544
  readonly cavv?: string;
@@ -6621,9 +6570,7 @@ declare namespace io.flow.adyen.v0.unions {
6621
6570
  type BrowserInfo =
6622
6571
  | io.flow.adyen.v0.models.BrowserInfo3Ds1
6623
6572
  | io.flow.adyen.v0.models.BrowserInfo3Ds2;
6624
- type PaymentMethodData =
6625
- | io.flow.adyen.v0.models.Scheme
6626
- | io.flow.adyen.v0.models.Applepay;
6573
+ type PaymentMethodData = io.flow.adyen.v0.models.Scheme;
6627
6574
  }
6628
6575
 
6629
6576
  declare namespace io.flow.order.management.v0.enums {
@@ -10055,14 +10002,10 @@ declare namespace io.flow.crypto.v0.models {
10055
10002
  readonly publishable_key: string;
10056
10003
  }
10057
10004
 
10058
- interface Error {
10059
- readonly type?: io.flow.crypto.v0.enums.ErrorType;
10060
- readonly code?: string;
10061
- readonly param?: string;
10062
- }
10063
-
10064
10005
  interface ErrorResponse {
10065
- readonly error?: io.flow.crypto.v0.models.Error;
10006
+ readonly type: io.flow.crypto.v0.enums.ErrorType;
10007
+ readonly code: string;
10008
+ readonly param: string;
10066
10009
  }
10067
10010
 
10068
10011
  interface Payment {
@@ -10082,6 +10025,7 @@ declare namespace io.flow.crypto.v0.models {
10082
10025
  readonly recipient: string;
10083
10026
  readonly refunded: boolean;
10084
10027
  readonly status: io.flow.crypto.v0.enums.PaymentStatus;
10028
+ readonly time_window: number;
10085
10029
  }
10086
10030
 
10087
10031
  interface PaymentRequest {
@@ -10661,166 +10605,787 @@ declare namespace io.flow.permission.v0.enums {
10661
10605
  type PermittedHttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
10662
10606
  }
10663
10607
 
10664
- declare namespace io.flow.permission.v0.models {
10665
- interface BehaviorAudit {
10666
- readonly behavior: io.flow.permission.v0.enums.FlowBehavior;
10667
- readonly authentication_techniques: io.flow.permission.v0.enums.AuthenticationTechnique[];
10668
- readonly roles: io.flow.permission.v0.enums.FlowRole[];
10669
- }
10670
-
10671
- interface PermissionAudit {
10672
- readonly routes: io.flow.permission.v0.models.RouteAudit[];
10673
- readonly behaviors: io.flow.permission.v0.models.BehaviorAudit[];
10674
- }
10675
-
10676
- interface PermissionCheck {
10677
- readonly authentication_technique: io.flow.permission.v0.enums.AuthenticationTechnique;
10678
- readonly user?: io.flow.common.v0.unions.ExpandableUser;
10679
- readonly roles: io.flow.permission.v0.enums.FlowRole[];
10680
- readonly behaviors: io.flow.permission.v0.enums.FlowBehavior[];
10681
- readonly routes: io.flow.permission.v0.models.PermittedRoute[];
10608
+ declare namespace io.flow.permission.v0.models {
10609
+ interface BehaviorAudit {
10610
+ readonly behavior: io.flow.permission.v0.enums.FlowBehavior;
10611
+ readonly authentication_techniques: io.flow.permission.v0.enums.AuthenticationTechnique[];
10612
+ readonly roles: io.flow.permission.v0.enums.FlowRole[];
10613
+ }
10614
+
10615
+ interface PermissionAudit {
10616
+ readonly routes: io.flow.permission.v0.models.RouteAudit[];
10617
+ readonly behaviors: io.flow.permission.v0.models.BehaviorAudit[];
10618
+ }
10619
+
10620
+ interface PermissionCheck {
10621
+ readonly authentication_technique: io.flow.permission.v0.enums.AuthenticationTechnique;
10622
+ readonly user?: io.flow.common.v0.unions.ExpandableUser;
10623
+ readonly roles: io.flow.permission.v0.enums.FlowRole[];
10624
+ readonly behaviors: io.flow.permission.v0.enums.FlowBehavior[];
10625
+ readonly routes: io.flow.permission.v0.models.PermittedRoute[];
10626
+ }
10627
+
10628
+ interface PermissionError {
10629
+ readonly code: io.flow.error.v0.enums.GenericErrorCode;
10630
+ readonly messages: string[];
10631
+ readonly granting_roles?: io.flow.permission.v0.enums.FlowRole[];
10632
+ readonly admin_users?: io.flow.common.v0.models.User[];
10633
+ }
10634
+
10635
+ interface PermittedRoute {
10636
+ readonly method: io.flow.permission.v0.enums.PermittedHttpMethod;
10637
+ readonly path: string;
10638
+ }
10639
+
10640
+ interface RouteAudit {
10641
+ readonly method: io.flow.permission.v0.enums.PermittedHttpMethod;
10642
+ readonly path: string;
10643
+ readonly authentication_techniques: io.flow.permission.v0.enums.AuthenticationTechnique[];
10644
+ readonly roles: io.flow.permission.v0.enums.FlowRole[];
10645
+ }
10646
+
10647
+ interface SimplePermissionCheck {
10648
+ readonly behaviors: io.flow.permission.v0.enums.FlowBehavior[];
10649
+ }
10650
+ }
10651
+
10652
+ declare namespace io.flow.query.builder.v0.enums {
10653
+ type AvailableFilterFormat =
10654
+ | 'boolean'
10655
+ | 'date'
10656
+ | 'money'
10657
+ | 'decimal'
10658
+ | 'string'
10659
+ | 'unit_of_length'
10660
+ | 'unit_of_mass';
10661
+ }
10662
+
10663
+ declare namespace io.flow.query.builder.v0.models {
10664
+ interface AvailableFilterStructured {
10665
+ readonly discriminator: 'structured';
10666
+ readonly field: string;
10667
+ readonly operators: string[];
10668
+ readonly format: io.flow.query.builder.v0.enums.AvailableFilterFormat;
10669
+ readonly valid_values?: string[];
10670
+ readonly placeholder?: string;
10671
+ }
10672
+
10673
+ interface AvailableFilterUnstructured {
10674
+ readonly discriminator: 'unstructured';
10675
+ readonly placeholder?: string;
10676
+ }
10677
+
10678
+ interface Query {
10679
+ readonly q: string;
10680
+ readonly filters: io.flow.query.builder.v0.unions.QueryFilter[];
10681
+ }
10682
+
10683
+ interface QueryBuilder {
10684
+ readonly q: string;
10685
+ readonly filters: io.flow.query.builder.v0.unions.QueryFilter[];
10686
+ readonly available: io.flow.query.builder.v0.unions.AvailableFilter[];
10687
+ }
10688
+
10689
+ interface QueryBuilderFilterForm {
10690
+ readonly discriminator: 'filter';
10691
+ readonly filters: io.flow.query.builder.v0.unions.QueryFilterForm[];
10692
+ }
10693
+
10694
+ interface QueryBuilderQueryForm {
10695
+ readonly discriminator: 'query';
10696
+ readonly q: string;
10697
+ }
10698
+
10699
+ interface QueryFilterStructured {
10700
+ readonly discriminator: 'structured';
10701
+ readonly q: string;
10702
+ readonly field: string;
10703
+ readonly operator: string;
10704
+ readonly values: string[];
10705
+ }
10706
+
10707
+ interface QueryFilterStructuredForm {
10708
+ readonly discriminator: 'structured';
10709
+ readonly field: string;
10710
+ readonly operator: string;
10711
+ readonly values: string[];
10712
+ }
10713
+
10714
+ interface QueryFilterUnstructured {
10715
+ readonly discriminator: 'unstructured';
10716
+ readonly q: string;
10717
+ }
10718
+
10719
+ interface QueryFilterUnstructuredForm {
10720
+ readonly discriminator: 'unstructured';
10721
+ readonly q: string;
10722
+ }
10723
+ }
10724
+
10725
+ declare namespace io.flow.query.builder.v0.unions {
10726
+ type AvailableFilter =
10727
+ | io.flow.query.builder.v0.models.AvailableFilterStructured
10728
+ | io.flow.query.builder.v0.models.AvailableFilterUnstructured;
10729
+ type QueryBuilderForm =
10730
+ | io.flow.query.builder.v0.models.QueryBuilderFilterForm
10731
+ | io.flow.query.builder.v0.models.QueryBuilderQueryForm;
10732
+ type QueryFilter =
10733
+ | io.flow.query.builder.v0.models.QueryFilterStructured
10734
+ | io.flow.query.builder.v0.models.QueryFilterUnstructured;
10735
+ type QueryFilterForm =
10736
+ | io.flow.query.builder.v0.models.QueryFilterStructuredForm
10737
+ | io.flow.query.builder.v0.models.QueryFilterUnstructuredForm;
10738
+ }
10739
+
10740
+ declare namespace io.flow.item.v0.models {
10741
+ interface LocalItem {
10742
+ readonly id: string;
10743
+ readonly experience: io.flow.common.v0.models.ExperienceSummary;
10744
+ readonly center?: io.flow.fulfillment.v0.models.CenterSummary;
10745
+ readonly item: io.flow.common.v0.models.CatalogItemReference;
10746
+ readonly pricing: io.flow.item.v0.models.LocalItemPricing;
10747
+ readonly status: io.flow.catalog.v0.enums.SubcatalogItemStatus;
10748
+ readonly attributes?: Record<string, string>;
10749
+ }
10750
+
10751
+ interface LocalItemAttributePricing {
10752
+ readonly pretax_price: io.flow.common.v0.models.PriceWithBase;
10753
+ readonly vat?: io.flow.catalog.v0.models.LocalizedItemVat;
10754
+ readonly duty?: io.flow.catalog.v0.models.LocalizedItemDuty;
10755
+ readonly price: io.flow.catalog.v0.models.LocalizedItemPrice;
10756
+ }
10757
+
10758
+ interface LocalItemPricing {
10759
+ readonly price: io.flow.catalog.v0.models.LocalizedItemPrice;
10760
+ readonly vat?: io.flow.catalog.v0.models.LocalizedItemVat;
10761
+ readonly duty?: io.flow.catalog.v0.models.LocalizedItemDuty;
10762
+ readonly shipping?: io.flow.common.v0.models.Price;
10763
+ readonly attributes: Record<string, io.flow.common.v0.models.PriceWithBase>;
10764
+ readonly price_attributes?: Record<
10765
+ string,
10766
+ io.flow.item.v0.models.LocalItemAttributePricing
10767
+ >;
10768
+ }
10769
+ }
10770
+
10771
+ declare namespace io.flow.billing.internal.v0.enums {
10772
+ type BillingAllocationKey =
10773
+ | 'freight_cost'
10774
+ | 'adjustment'
10775
+ | 'vat_deminimis'
10776
+ | 'duty_deminimis'
10777
+ | 'duties_item_price'
10778
+ | 'duties_freight'
10779
+ | 'duties_insurance'
10780
+ | 'vat_item_price'
10781
+ | 'vat_freight'
10782
+ | 'vat_insurance'
10783
+ | 'vat_duties_item_price'
10784
+ | 'vat_duties_freight'
10785
+ | 'vat_duties_insurance'
10786
+ | 'item_price'
10787
+ | 'item_discount'
10788
+ | 'rounding'
10789
+ | 'insurance'
10790
+ | 'shipping'
10791
+ | 'order_discount'
10792
+ | 'subtotal_percent_sales_margin'
10793
+ | 'subtotal_vat_percent_sales_margin'
10794
+ | 'subtotal_duty_percent_sales_margin'
10795
+ | 'vat_subsidy'
10796
+ | 'duty_subsidy'
10797
+ | 'fuel_surcharge'
10798
+ | 'remote_area_surcharge';
10799
+ type BillingStatementBatchFileKey = 'archive' | 'summary';
10800
+ type BillingStatementReviewStatus = 'approved' | 'pending';
10801
+ type ManualTransactionCategory =
10802
+ | 'cancelled_order_refund'
10803
+ | 'client_accepted_chargeback'
10804
+ | 'fee_reimbursement'
10805
+ | 'partial_refund'
10806
+ | 'platform_fee'
10807
+ | 'shipping_true_up'
10808
+ | 'tax_credit';
10809
+ type PreferredBillingSchedule = 'monthly' | 'bi-monthly';
10810
+ type ProcessingTransactionType =
10811
+ | 'adjustment'
10812
+ | 'capture'
10813
+ | 'refund'
10814
+ | 'fully_subsidized_order'
10815
+ | 'credit_payment';
10816
+ type ResponsibleParty = 'flow' | 'organization';
10817
+ type TransferMethod = 'ach';
10818
+ }
10819
+
10820
+ declare namespace io.flow.billing.internal.v0.models {
10821
+ interface AccountForm {
10822
+ readonly timezone: string;
10823
+ readonly payment_schedule: io.flow.common.v0.unions.RepeatSchedule;
10824
+ readonly payment_conditions?: string;
10825
+ readonly deposit_rule?: io.flow.billing.v0.models.AccountDepositRuleForm;
10826
+ readonly center_key?: string;
10827
+ }
10828
+
10829
+ interface BankPayment {
10830
+ readonly id: string;
10831
+ readonly key: string;
10832
+ readonly account: io.flow.billing.v0.models.AccountReference;
10833
+ readonly reference?: string;
10834
+ readonly sent_on: string;
10835
+ readonly expected_delivery_by: string;
10836
+ readonly total: io.flow.common.v0.models.Price;
10837
+ }
10838
+
10839
+ interface BankPaymentForm {
10840
+ readonly account_id: string;
10841
+ readonly reference?: string;
10842
+ readonly sent_on: string;
10843
+ readonly expected_delivery_by: string;
10844
+ readonly amount: number;
10845
+ readonly currency: string;
10846
+ readonly transfer_transaction_ids: string[];
10847
+ }
10848
+
10849
+ interface BillingAuthorizationReference {
10850
+ readonly id: string;
10851
+ }
10852
+
10853
+ interface BillingInvoiceSummary {
10854
+ readonly id: string;
10855
+ readonly url: string;
10856
+ }
10857
+
10858
+ interface BillingOrderDestination {
10859
+ readonly city?: string;
10860
+ readonly province?: string;
10861
+ readonly postal?: string;
10862
+ readonly country: string;
10863
+ }
10864
+
10865
+ interface BillingOrderSummary {
10866
+ readonly number: string;
10867
+ readonly submitted_at: string;
10868
+ readonly primary_identifier?: string;
10869
+ readonly destination?: io.flow.billing.internal.v0.models.BillingOrderDestination;
10870
+ }
10871
+
10872
+ interface BillingOrganizationProcessingRateForm {
10873
+ readonly query: string;
10874
+ readonly capture: number;
10875
+ readonly refund: number;
10876
+ readonly fraud: number;
10877
+ }
10878
+
10879
+ interface BillingOrganizationProcessingRates {
10880
+ readonly id: string;
10881
+ readonly query: string;
10882
+ readonly capture: number;
10883
+ readonly refund: number;
10884
+ readonly fraud: number;
10885
+ readonly position: number;
10886
+ }
10887
+
10888
+ interface BillingOrganizationProcessingRatesForm {
10889
+ readonly processing_rates: io.flow.billing.internal.v0.models.BillingOrganizationProcessingRateForm[];
10890
+ }
10891
+
10892
+ interface BillingOrganizationSettings {
10893
+ readonly id: string;
10894
+ readonly days_until_posted: number;
10895
+ readonly logistics: io.flow.billing.internal.v0.enums.ResponsibleParty;
10896
+ readonly include_transaction_created_at: boolean;
10897
+ readonly include_order_exchange_rate: boolean;
10898
+ readonly send_statements_to_flow_ftp_server: boolean;
10899
+ readonly invoicing_terms?: io.flow.invoice.v0.enums.PaymentTerm;
10900
+ readonly transfer_method?: io.flow.billing.internal.v0.enums.TransferMethod;
10901
+ readonly b2b_tax_remittance_days?: number;
10902
+ }
10903
+
10904
+ interface BillingStatementBatch {
10905
+ readonly id: string;
10906
+ readonly period: io.flow.common.v0.models.DatetimeRange;
10907
+ }
10908
+
10909
+ interface BillingStatementPendingReview {
10910
+ readonly organization: string;
10911
+ readonly statement: io.flow.billing.v0.models.BillingStatement;
10912
+ }
10913
+
10914
+ interface BillingStatementReview {
10915
+ readonly id: string;
10916
+ readonly billing_statement: io.flow.billing.v0.models.BillingStatementReference;
10917
+ readonly reviewed_by: io.flow.common.v0.models.UserReference;
10918
+ readonly reviewed_at: string;
10919
+ }
10920
+
10921
+ interface BillingStatementReviewForm {
10922
+ readonly reviewed_by_id: string;
10923
+ readonly reviewed_at: string;
10924
+ }
10925
+
10926
+ interface ChannelServiceFee {
10927
+ readonly tiers: io.flow.billing.internal.v0.models.ChannelServiceFeeTier[];
10928
+ }
10929
+
10930
+ interface ChannelServiceFeeTier {
10931
+ readonly minimum_orders: number;
10932
+ readonly amount: number;
10933
+ }
10934
+
10935
+ interface ChannelTransaction {
10936
+ readonly id: string;
10937
+ readonly organization_id: string;
10938
+ readonly processing_transaction_id: string;
10939
+ readonly order_number: string;
10940
+ readonly channel_currency: string;
10941
+ readonly mor_convenience_fee: number;
10942
+ readonly flow_fx_fee_on_mor: number;
10943
+ readonly flow_processing_fee: number;
10944
+ readonly flow_fraud_fee: number;
10945
+ readonly service_fee: number;
10946
+ readonly logistics_fee: number;
10947
+ readonly total: number;
10948
+ }
10949
+
10950
+ interface Components {
10951
+ readonly vat: io.flow.common.v0.models.Price;
10952
+ readonly duty: io.flow.common.v0.models.Price;
10953
+ readonly freight: io.flow.common.v0.models.Price;
10954
+ readonly insurance: io.flow.common.v0.models.Price;
10955
+ }
10956
+
10957
+ interface DisputeTransaction {
10958
+ readonly discriminator: 'dispute_transaction';
10959
+ readonly id: string;
10960
+ readonly type: io.flow.billing.v0.enums.BillingTransactionType;
10961
+ readonly authorization: io.flow.payment.v0.models.AuthorizationReference;
10962
+ readonly posted_at: string;
10963
+ readonly value: io.flow.common.v0.models.Price;
10964
+ readonly description: string;
10965
+ readonly statement?: io.flow.billing.v0.models.BillingStatementReference;
10966
+ readonly created_at: string;
10967
+ }
10968
+
10969
+ interface Fee {
10970
+ readonly value: io.flow.common.v0.models.Price;
10971
+ readonly description?: string;
10972
+ }
10973
+
10974
+ interface Fees {
10975
+ readonly processing: io.flow.billing.internal.v0.models.Fee;
10976
+ readonly rate_lock: io.flow.billing.internal.v0.models.Fee;
10977
+ readonly mor: io.flow.billing.internal.v0.models.Fee;
10978
+ }
10979
+
10980
+ interface FxFee {
10981
+ readonly base: io.flow.common.v0.models.Money;
10982
+ readonly local: io.flow.common.v0.models.Money;
10983
+ }
10984
+
10985
+ interface FxRevenueRecognition {
10986
+ readonly id: string;
10987
+ readonly organization: io.flow.billing.internal.v0.models.FxRevenueRecognitionOrganization;
10988
+ readonly account: io.flow.billing.internal.v0.models.FxRevenueRecognitionAccount;
10989
+ readonly fx: io.flow.billing.internal.v0.models.FxFee;
10990
+ readonly spot_rate: io.flow.billing.internal.v0.models.FxRevenueRecognitionRate;
10991
+ readonly created_at: string;
10992
+ readonly order: io.flow.billing.internal.v0.models.FxRevenueRecognitionOrder;
10993
+ readonly merchant_of_record: io.flow.common.v0.enums.MerchantOfRecord;
10994
+ readonly source: io.flow.billing.internal.v0.models.FxRevenueRecognitionSource;
10995
+ readonly reporting_date?: string;
10996
+ }
10997
+
10998
+ interface FxRevenueRecognitionAccount {
10999
+ readonly value: io.flow.common.v0.models.Money;
11000
+ readonly spot_rate: io.flow.billing.internal.v0.models.FxRevenueRecognitionAccountRate;
11001
+ }
11002
+
11003
+ interface FxRevenueRecognitionAccountRate {
11004
+ readonly value: number;
11005
+ }
11006
+
11007
+ interface FxRevenueRecognitionOrder {
11008
+ readonly number: string;
11009
+ readonly submitted_at: string;
11010
+ }
11011
+
11012
+ interface FxRevenueRecognitionOrganization {
11013
+ readonly id: string;
11014
+ }
11015
+
11016
+ interface FxRevenueRecognitionRate {
11017
+ readonly value: number;
11018
+ readonly margin: number;
11019
+ readonly timestamp: string;
11020
+ }
11021
+
11022
+ interface FxRevenueRecognitionSource {
11023
+ readonly id: string;
11024
+ readonly local: io.flow.common.v0.models.Money;
11025
+ readonly transaction_created_at: string;
11026
+ }
11027
+
11028
+ interface InvoiceTransaction {
11029
+ readonly discriminator: 'invoice_transaction';
11030
+ readonly id: string;
11031
+ readonly type: io.flow.billing.v0.enums.BillingTransactionType;
11032
+ readonly posted_at: string;
11033
+ readonly value: io.flow.common.v0.models.Price;
11034
+ readonly description: string;
11035
+ readonly statement?: io.flow.billing.v0.models.BillingStatementReference;
11036
+ readonly created_at: string;
11037
+ readonly invoice: io.flow.invoice.v0.models.Invoice;
11038
+ }
11039
+
11040
+ interface MainTransaction {
11041
+ readonly id: string;
11042
+ readonly account: io.flow.billing.v0.models.AccountReference;
11043
+ readonly type: io.flow.billing.v0.enums.BillingTransactionType;
11044
+ readonly value: io.flow.common.v0.models.Price;
11045
+ readonly posted_at: string;
11046
+ readonly statement?: io.flow.billing.v0.models.BillingStatementReference;
11047
+ readonly created_at: string;
11048
+ readonly original_at?: string;
11049
+ readonly disposition?: io.flow.billing.internal.v0.enums.BillingStatementReviewStatus;
11050
+ }
11051
+
11052
+ interface ManualTransaction {
11053
+ readonly discriminator: 'manual_transaction';
11054
+ readonly id: string;
11055
+ readonly type: io.flow.billing.v0.enums.BillingTransactionType;
11056
+ readonly posted_at: string;
11057
+ readonly value: io.flow.common.v0.models.Price;
11058
+ readonly description: string;
11059
+ readonly category?: io.flow.billing.internal.v0.enums.ManualTransactionCategory;
11060
+ readonly statement?: io.flow.billing.v0.models.BillingStatementReference;
11061
+ readonly created_at: string;
11062
+ }
11063
+
11064
+ interface ManualTransactionForm {
11065
+ readonly amount: number;
11066
+ readonly description: string;
11067
+ readonly category?: io.flow.billing.internal.v0.enums.ManualTransactionCategory;
11068
+ readonly posted_at?: string;
11069
+ }
11070
+
11071
+ interface PendingBankPayment {
11072
+ readonly organization: string;
11073
+ readonly account: io.flow.billing.v0.models.AccountReference;
11074
+ readonly recommended_reference: string;
11075
+ readonly total: io.flow.common.v0.models.Price;
11076
+ readonly details: io.flow.billing.internal.v0.models.PendingBankPaymentDetail[];
11077
+ }
11078
+
11079
+ interface PendingBankPaymentDetail {
11080
+ readonly transaction: io.flow.billing.internal.v0.models.TransactionReference;
11081
+ readonly statement: io.flow.billing.v0.models.BillingStatementReference;
11082
+ }
11083
+
11084
+ interface PlatformFeeChange {
11085
+ readonly organization_id: string;
11086
+ readonly key: string;
11087
+ readonly platform_fee: io.flow.billing.internal.v0.unions.PlatformFee;
11088
+ readonly starts_at: string;
11089
+ }
11090
+
11091
+ interface PlatformFeeChangeForm {
11092
+ readonly platform_fee: io.flow.billing.internal.v0.unions.PlatformFee;
11093
+ readonly starts_at: string;
11094
+ }
11095
+
11096
+ interface PlatformFeeDisabled {
11097
+ readonly discriminator: 'platform_fee_disabled';
11098
+ readonly attributes?: Record<string, string>;
11099
+ }
11100
+
11101
+ interface PlatformFeeFlat {
11102
+ readonly discriminator: 'platform_fee_flat';
11103
+ readonly amount: number;
11104
+ readonly currency: string;
11105
+ readonly frequency: io.flow.billing.v0.enums.SubscriptionFrequency;
11106
+ }
11107
+
11108
+ interface PlatformFeePause {
11109
+ readonly discriminator: 'platform_fee_pause';
11110
+ readonly attributes?: Record<string, string>;
11111
+ }
11112
+
11113
+ interface PlatformFeePercentage {
11114
+ readonly discriminator: 'platform_fee_percentage';
11115
+ readonly tiers: io.flow.billing.internal.v0.models.PlatformFeePercentageTier[];
11116
+ }
11117
+
11118
+ interface PlatformFeePercentageTier {
11119
+ readonly minimum_amount_base: number;
11120
+ readonly rate: number;
11121
+ }
11122
+
11123
+ interface ProcessingTransaction {
11124
+ readonly discriminator: 'processing_transaction';
11125
+ readonly id: string;
11126
+ readonly type: io.flow.billing.v0.enums.BillingTransactionType;
11127
+ readonly merchant_of_record: io.flow.common.v0.enums.MerchantOfRecord;
11128
+ readonly posted_at: string;
11129
+ readonly value: io.flow.common.v0.models.Price;
11130
+ readonly description: string;
11131
+ readonly statement?: io.flow.billing.v0.models.BillingStatementReference;
11132
+ readonly created_at: string;
11133
+ readonly original_at?: string;
11134
+ readonly reference: string;
11135
+ readonly primary_identifier?: string;
11136
+ readonly payment_method: string;
11137
+ readonly original: io.flow.common.v0.models.PriceWithBase;
11138
+ readonly original_base_at_spot_rate?: io.flow.common.v0.models.Price;
11139
+ readonly fees: io.flow.billing.internal.v0.models.Fees;
11140
+ readonly components?: io.flow.billing.internal.v0.models.Components;
11141
+ readonly withholdings: io.flow.billing.internal.v0.models.Components;
11142
+ readonly parent_transaction_id?: string;
11143
+ readonly order?: io.flow.billing.internal.v0.models.BillingOrderSummary;
11144
+ readonly spot_rate: number;
11145
+ readonly flow_rate: number;
11146
+ readonly organization_rate: number;
11147
+ readonly flow_margin: number;
11148
+ readonly organization_margin: number;
11149
+ readonly revenue_share?: io.flow.common.v0.models.Price;
11150
+ readonly disposition?: io.flow.billing.internal.v0.enums.BillingStatementReviewStatus;
11151
+ }
11152
+
11153
+ interface SubscriptionTransaction {
11154
+ readonly discriminator: 'subscription_transaction';
11155
+ readonly id: string;
11156
+ readonly type: io.flow.billing.v0.enums.BillingTransactionType;
11157
+ readonly posted_at: string;
11158
+ readonly value: io.flow.common.v0.models.Price;
11159
+ readonly description: string;
11160
+ readonly statement?: io.flow.billing.v0.models.BillingStatementReference;
11161
+ readonly created_at: string;
11162
+ readonly period: io.flow.common.v0.models.DatetimeRange;
11163
+ }
11164
+
11165
+ interface TaxRemittanceTransaction {
11166
+ readonly discriminator: 'tax_remittance_transaction';
11167
+ readonly id: string;
11168
+ readonly type: io.flow.billing.v0.enums.BillingTransactionType;
11169
+ readonly posted_at: string;
11170
+ readonly value: io.flow.common.v0.models.Price;
11171
+ readonly description: string;
11172
+ readonly statement?: io.flow.billing.v0.models.BillingStatementReference;
11173
+ readonly created_at: string;
11174
+ readonly order: io.flow.billing.internal.v0.models.BillingOrderSummary;
11175
+ readonly invoice: io.flow.billing.internal.v0.models.BillingInvoiceSummary;
11176
+ }
11177
+
11178
+ interface TransactionReference {
11179
+ readonly id: string;
11180
+ }
11181
+
11182
+ interface TransferTransaction {
11183
+ readonly discriminator: 'transfer_transaction';
11184
+ readonly id: string;
11185
+ readonly type: io.flow.billing.v0.enums.BillingTransactionType;
11186
+ readonly posted_at: string;
11187
+ readonly value: io.flow.common.v0.models.Price;
11188
+ readonly description: string;
11189
+ readonly statement?: io.flow.billing.v0.models.BillingStatementReference;
11190
+ readonly created_at: string;
11191
+ readonly method: io.flow.billing.internal.v0.enums.TransferMethod;
11192
+ }
11193
+
11194
+ interface VirtualCardTransaction {
11195
+ readonly discriminator: 'virtual_card_transaction';
11196
+ readonly id: string;
11197
+ readonly type: io.flow.billing.v0.enums.BillingTransactionType;
11198
+ readonly posted_at: string;
11199
+ readonly value: io.flow.common.v0.models.Price;
11200
+ readonly description: string;
11201
+ readonly statement?: io.flow.billing.v0.models.BillingStatementReference;
11202
+ readonly created_at: string;
11203
+ readonly virtual_card: io.flow.payment.v0.models.VirtualCardReference;
11204
+ readonly authorization: io.flow.payment.v0.models.AuthorizationReference;
11205
+ readonly original: io.flow.common.v0.models.PriceWithBase;
11206
+ readonly processing_fee: io.flow.billing.internal.v0.models.Fee;
11207
+ }
11208
+ }
11209
+
11210
+ declare namespace io.flow.billing.internal.v0.unions {
11211
+ type PlatformFee =
11212
+ | io.flow.billing.internal.v0.models.PlatformFeePause
11213
+ | io.flow.billing.internal.v0.models.PlatformFeeFlat
11214
+ | io.flow.billing.internal.v0.models.PlatformFeePercentage
11215
+ | io.flow.billing.internal.v0.models.PlatformFeeDisabled;
11216
+ type Transaction =
11217
+ | io.flow.billing.internal.v0.models.InvoiceTransaction
11218
+ | io.flow.billing.internal.v0.models.ManualTransaction
11219
+ | io.flow.billing.internal.v0.models.ProcessingTransaction
11220
+ | io.flow.billing.internal.v0.models.SubscriptionTransaction
11221
+ | io.flow.billing.internal.v0.models.TaxRemittanceTransaction
11222
+ | io.flow.billing.internal.v0.models.TransferTransaction
11223
+ | io.flow.billing.internal.v0.models.VirtualCardTransaction
11224
+ | io.flow.billing.internal.v0.models.DisputeTransaction;
11225
+ }
11226
+
11227
+ declare namespace io.flow.billing.v0.enums {
11228
+ type BillingStatementAttachmentKey =
11229
+ | 'invoice'
11230
+ | 'statement'
11231
+ | 'consumer_invoice'
11232
+ | 'credit_memo'
11233
+ | 'transactions'
11234
+ | 'channel_transactions'
11235
+ | 'virtual_card'
11236
+ | 'tax_remittance'
11237
+ | 'manual'
11238
+ | 'orders'
11239
+ | 'all';
11240
+ type BillingTransactionStatus = 'pending' | 'posted';
11241
+ type BillingTransactionType =
11242
+ | 'manual'
11243
+ | 'subscription'
11244
+ | 'invoice'
11245
+ | 'transfer'
11246
+ | 'adjustment'
11247
+ | 'capture'
11248
+ | 'refund'
11249
+ | 'virtual_card_capture'
11250
+ | 'virtual_card_refund'
11251
+ | 'tax_remittance'
11252
+ | 'fully_subsidized_order'
11253
+ | 'credit_payment'
11254
+ | 'dispute';
11255
+ type SubscriptionFrequency = 'yearly' | 'monthly';
11256
+ }
11257
+
11258
+ declare namespace io.flow.billing.v0.models {
11259
+ interface Account {
11260
+ readonly id: string;
11261
+ readonly currency: string;
11262
+ readonly updated_at: string;
11263
+ readonly timezone: io.flow.reference.v0.models.Timezone;
11264
+ readonly payment_schedule: io.flow.common.v0.unions.RepeatSchedule;
11265
+ readonly payment_conditions?: string;
11266
+ readonly deposit_rule?: io.flow.billing.v0.models.AccountDepositRule;
11267
+ readonly center_key?: string;
11268
+ readonly statistics: io.flow.billing.v0.models.AccountStatistics;
11269
+ readonly next_statement: io.flow.billing.v0.models.NextBillingStatement;
11270
+ readonly created_at: string;
10682
11271
  }
10683
11272
 
10684
- interface PermissionError {
10685
- readonly code: io.flow.error.v0.enums.GenericErrorCode;
10686
- readonly messages: string[];
10687
- readonly granting_roles?: io.flow.permission.v0.enums.FlowRole[];
10688
- readonly admin_users?: io.flow.common.v0.models.User[];
11273
+ interface AccountContact {
11274
+ readonly id: string;
11275
+ readonly email: string;
11276
+ readonly first_name?: string;
11277
+ readonly last_name?: string;
11278
+ readonly phone?: string;
10689
11279
  }
10690
11280
 
10691
- interface PermittedRoute {
10692
- readonly method: io.flow.permission.v0.enums.PermittedHttpMethod;
10693
- readonly path: string;
11281
+ interface AccountContactForm {
11282
+ readonly email: string;
11283
+ readonly first_name?: string;
11284
+ readonly last_name?: string;
11285
+ readonly phone?: string;
10694
11286
  }
10695
11287
 
10696
- interface RouteAudit {
10697
- readonly method: io.flow.permission.v0.enums.PermittedHttpMethod;
10698
- readonly path: string;
10699
- readonly authentication_techniques: io.flow.permission.v0.enums.AuthenticationTechnique[];
10700
- readonly roles: io.flow.permission.v0.enums.FlowRole[];
11288
+ interface AccountDepositRule {
11289
+ readonly target: number;
11290
+ readonly rate: number;
10701
11291
  }
10702
11292
 
10703
- interface SimplePermissionCheck {
10704
- readonly behaviors: io.flow.permission.v0.enums.FlowBehavior[];
11293
+ interface AccountDepositRuleForm {
11294
+ readonly target: number;
11295
+ readonly rate: number;
10705
11296
  }
10706
- }
10707
-
10708
- declare namespace io.flow.query.builder.v0.enums {
10709
- type AvailableFilterFormat =
10710
- | 'boolean'
10711
- | 'date'
10712
- | 'money'
10713
- | 'decimal'
10714
- | 'string'
10715
- | 'unit_of_length'
10716
- | 'unit_of_mass';
10717
- }
10718
11297
 
10719
- declare namespace io.flow.query.builder.v0.models {
10720
- interface AvailableFilterStructured {
10721
- readonly discriminator: 'structured';
10722
- readonly field: string;
10723
- readonly operators: string[];
10724
- readonly format: io.flow.query.builder.v0.enums.AvailableFilterFormat;
10725
- readonly valid_values?: string[];
10726
- readonly placeholder?: string;
11298
+ interface AccountReference {
11299
+ readonly id: string;
11300
+ readonly currency: string;
10727
11301
  }
10728
11302
 
10729
- interface AvailableFilterUnstructured {
10730
- readonly discriminator: 'unstructured';
10731
- readonly placeholder?: string;
11303
+ interface AccountStatistics {
11304
+ readonly transfers: io.flow.common.v0.models.Price;
11305
+ readonly balance: io.flow.common.v0.models.Price;
11306
+ readonly pending: io.flow.common.v0.models.Price;
10732
11307
  }
10733
11308
 
10734
- interface Query {
10735
- readonly q: string;
10736
- readonly filters: io.flow.query.builder.v0.unions.QueryFilter[];
11309
+ interface BillingStatement {
11310
+ readonly id: string;
11311
+ readonly account: io.flow.billing.v0.models.AccountReference;
11312
+ readonly period: io.flow.common.v0.models.DatetimeRange;
11313
+ readonly totals: io.flow.billing.v0.models.BillingStatementTotals;
11314
+ readonly attachments: io.flow.billing.v0.models.BillingStatementAttachment[];
10737
11315
  }
10738
11316
 
10739
- interface QueryBuilder {
10740
- readonly q: string;
10741
- readonly filters: io.flow.query.builder.v0.unions.QueryFilter[];
10742
- readonly available: io.flow.query.builder.v0.unions.AvailableFilter[];
11317
+ interface BillingStatementAttachment {
11318
+ readonly key: io.flow.billing.v0.enums.BillingStatementAttachmentKey;
11319
+ readonly name: string;
11320
+ readonly url: string;
10743
11321
  }
10744
11322
 
10745
- interface QueryBuilderFilterForm {
10746
- readonly discriminator: 'filter';
10747
- readonly filters: io.flow.query.builder.v0.unions.QueryFilterForm[];
11323
+ interface BillingStatementReference {
11324
+ readonly id: string;
10748
11325
  }
10749
11326
 
10750
- interface QueryBuilderQueryForm {
10751
- readonly discriminator: 'query';
10752
- readonly q: string;
11327
+ interface BillingStatementTotals {
11328
+ readonly starting_balance: io.flow.common.v0.models.Price;
11329
+ readonly subscription: io.flow.common.v0.models.Price;
11330
+ readonly transfer: io.flow.common.v0.models.Price;
11331
+ readonly invoice: io.flow.common.v0.models.Price;
11332
+ readonly manual: io.flow.common.v0.models.Price;
11333
+ readonly adjustment: io.flow.common.v0.models.Price;
11334
+ readonly capture: io.flow.common.v0.models.Price;
11335
+ readonly refund: io.flow.common.v0.models.Price;
11336
+ readonly virtual_card_capture: io.flow.common.v0.models.Price;
11337
+ readonly virtual_card_refund: io.flow.common.v0.models.Price;
11338
+ readonly tax_remittance: io.flow.common.v0.models.Price;
11339
+ readonly dispute: io.flow.common.v0.models.Price;
11340
+ readonly ending_balance: io.flow.common.v0.models.Price;
10753
11341
  }
10754
11342
 
10755
- interface QueryFilterStructured {
10756
- readonly discriminator: 'structured';
10757
- readonly q: string;
10758
- readonly field: string;
10759
- readonly operator: string;
10760
- readonly values: string[];
11343
+ interface BillingTransaction {
11344
+ readonly id: string;
11345
+ readonly type: io.flow.billing.v0.enums.BillingTransactionType;
11346
+ readonly status: io.flow.billing.v0.enums.BillingTransactionStatus;
11347
+ readonly posted_at?: string;
11348
+ readonly value: io.flow.common.v0.models.Price;
11349
+ readonly description: string;
11350
+ readonly created_at: string;
11351
+ readonly statement?: io.flow.billing.v0.models.BillingStatementReference;
10761
11352
  }
10762
11353
 
10763
- interface QueryFilterStructuredForm {
10764
- readonly discriminator: 'structured';
10765
- readonly field: string;
10766
- readonly operator: string;
10767
- readonly values: string[];
11354
+ interface ChannelAccount {
11355
+ readonly id: string;
11356
+ readonly channel: io.flow.common.v0.models.ChannelReference;
11357
+ readonly account: io.flow.billing.v0.models.SimpleAccountReference;
10768
11358
  }
10769
11359
 
10770
- interface QueryFilterUnstructured {
10771
- readonly discriminator: 'unstructured';
10772
- readonly q: string;
11360
+ interface EmailForm {
11361
+ readonly to: string[];
11362
+ readonly cc?: string[];
11363
+ readonly bcc?: string[];
10773
11364
  }
10774
11365
 
10775
- interface QueryFilterUnstructuredForm {
10776
- readonly discriminator: 'unstructured';
10777
- readonly q: string;
11366
+ interface NextBillingStatement {
11367
+ readonly date: string;
11368
+ readonly amount: io.flow.common.v0.models.Price;
11369
+ readonly conditions?: string;
10778
11370
  }
10779
- }
10780
-
10781
- declare namespace io.flow.query.builder.v0.unions {
10782
- type AvailableFilter =
10783
- | io.flow.query.builder.v0.models.AvailableFilterStructured
10784
- | io.flow.query.builder.v0.models.AvailableFilterUnstructured;
10785
- type QueryBuilderForm =
10786
- | io.flow.query.builder.v0.models.QueryBuilderFilterForm
10787
- | io.flow.query.builder.v0.models.QueryBuilderQueryForm;
10788
- type QueryFilter =
10789
- | io.flow.query.builder.v0.models.QueryFilterStructured
10790
- | io.flow.query.builder.v0.models.QueryFilterUnstructured;
10791
- type QueryFilterForm =
10792
- | io.flow.query.builder.v0.models.QueryFilterStructuredForm
10793
- | io.flow.query.builder.v0.models.QueryFilterUnstructuredForm;
10794
- }
10795
11371
 
10796
- declare namespace io.flow.item.v0.models {
10797
- interface LocalItem {
11372
+ interface OrganizationAccount {
10798
11373
  readonly id: string;
10799
- readonly experience: io.flow.common.v0.models.ExperienceSummary;
10800
- readonly center?: io.flow.fulfillment.v0.models.CenterSummary;
10801
- readonly item: io.flow.common.v0.models.CatalogItemReference;
10802
- readonly pricing: io.flow.item.v0.models.LocalItemPricing;
10803
- readonly status: io.flow.catalog.v0.enums.SubcatalogItemStatus;
10804
- readonly attributes?: Record<string, string>;
11374
+ readonly organization: io.flow.common.v0.models.OrganizationReference;
11375
+ readonly account: io.flow.billing.v0.models.SimpleAccountReference;
10805
11376
  }
10806
11377
 
10807
- interface LocalItemAttributePricing {
10808
- readonly pretax_price: io.flow.common.v0.models.PriceWithBase;
10809
- readonly vat?: io.flow.catalog.v0.models.LocalizedItemVat;
10810
- readonly duty?: io.flow.catalog.v0.models.LocalizedItemDuty;
10811
- readonly price: io.flow.catalog.v0.models.LocalizedItemPrice;
11378
+ interface SimpleAccountReference {
11379
+ readonly id: string;
10812
11380
  }
10813
11381
 
10814
- interface LocalItemPricing {
10815
- readonly price: io.flow.catalog.v0.models.LocalizedItemPrice;
10816
- readonly vat?: io.flow.catalog.v0.models.LocalizedItemVat;
10817
- readonly duty?: io.flow.catalog.v0.models.LocalizedItemDuty;
10818
- readonly shipping?: io.flow.common.v0.models.Price;
10819
- readonly attributes: Record<string, io.flow.common.v0.models.PriceWithBase>;
10820
- readonly price_attributes?: Record<
10821
- string,
10822
- io.flow.item.v0.models.LocalItemAttributePricing
10823
- >;
11382
+ interface Subscription {
11383
+ readonly id: string;
11384
+ readonly organization: string;
11385
+ readonly value: io.flow.common.v0.models.Price;
11386
+ readonly frequency: io.flow.billing.v0.enums.SubscriptionFrequency;
11387
+ readonly starts_at: string;
11388
+ readonly created_at: string;
10824
11389
  }
10825
11390
  }
10826
11391
 
@@ -12481,7 +13046,6 @@ declare namespace io.flow.internal.v0.enums {
12481
13046
  | 'consumer_invoice'
12482
13047
  | 'credit_memo'
12483
13048
  | 'transactions'
12484
- | 'channel_transactions'
12485
13049
  | 'virtual_card'
12486
13050
  | 'tax_remittance'
12487
13051
  | 'manual'
@@ -14710,41 +15274,17 @@ declare namespace io.flow.internal.v0.models {
14710
15274
  readonly metadata: io.flow.internal.v0.models.ShopifyMetadata;
14711
15275
  }
14712
15276
 
14713
- interface ChannelServiceFee {
14714
- readonly tiers: io.flow.internal.v0.models.ChannelServiceFeeTier[];
14715
- }
14716
-
14717
- interface ChannelServiceFeeTier {
14718
- readonly minimum_orders: number;
14719
- readonly amount: number;
14720
- }
14721
-
14722
15277
  interface ChannelTokenForm {
14723
15278
  readonly channel_id: string;
14724
15279
  readonly description?: string;
14725
15280
  }
14726
15281
 
14727
- interface ChannelTransaction {
14728
- readonly id: string;
14729
- readonly organization_id: string;
14730
- readonly processing_transaction_id: string;
14731
- readonly order_number: string;
14732
- readonly channel_currency: string;
14733
- readonly mor_convenience_fee: number;
14734
- readonly flow_fx_fee_on_mor: number;
14735
- readonly flow_processing_fee: number;
14736
- readonly flow_fraud_fee: number;
14737
- readonly service_fee: number;
14738
- readonly logistics_fee: number;
14739
- readonly total: number;
14740
- }
14741
-
14742
15282
  interface ChannelTransactionDeleted {
14743
15283
  readonly discriminator: 'channel_transaction_deleted';
14744
15284
  readonly event_id: string;
14745
15285
  readonly timestamp: string;
14746
15286
  readonly organization: string;
14747
- readonly channel_transaction: io.flow.internal.v0.models.ChannelTransaction;
15287
+ readonly channel_transaction: io.flow.billing.internal.v0.models.ChannelTransaction;
14748
15288
  }
14749
15289
 
14750
15290
  interface ChannelTransactionUpserted {
@@ -14752,7 +15292,7 @@ declare namespace io.flow.internal.v0.models {
14752
15292
  readonly event_id: string;
14753
15293
  readonly timestamp: string;
14754
15294
  readonly organization: string;
14755
- readonly channel_transaction: io.flow.internal.v0.models.ChannelTransaction;
15295
+ readonly channel_transaction: io.flow.billing.internal.v0.models.ChannelTransaction;
14756
15296
  }
14757
15297
 
14758
15298
  interface Chargeback {
@@ -14867,6 +15407,16 @@ declare namespace io.flow.internal.v0.models {
14867
15407
  readonly id: string;
14868
15408
  }
14869
15409
 
15410
+ interface CheckoutAddressCountriesFormData {
15411
+ readonly countries: io.flow.internal.v0.models.CheckoutAddressCountry[];
15412
+ }
15413
+
15414
+ interface CheckoutAddressCountry {
15415
+ readonly name: string;
15416
+ readonly code: string;
15417
+ readonly availability: io.flow.internal.v0.enums.CheckoutAddressType[];
15418
+ }
15419
+
14870
15420
  interface CheckoutAddressPrediction {
14871
15421
  readonly description: string;
14872
15422
  readonly id: string;
@@ -15510,6 +16060,11 @@ declare namespace io.flow.internal.v0.models {
15510
16060
  readonly value: string;
15511
16061
  }
15512
16062
 
16063
+ interface CheckoutInfoAddressCountriesFormData {
16064
+ readonly discriminator: 'checkout_info_address_countries_form_data';
16065
+ readonly data: io.flow.internal.v0.models.CheckoutAddressCountriesFormData;
16066
+ }
16067
+
15513
16068
  interface CheckoutInfoAddressPredictions {
15514
16069
  readonly discriminator: 'checkout_info_address_predictions';
15515
16070
  readonly key: io.flow.internal.v0.models.CheckoutInfoAddressPredictionsKey[];
@@ -20874,6 +21429,16 @@ declare namespace io.flow.internal.v0.models {
20874
21429
  readonly to_service_id: string;
20875
21430
  }
20876
21431
 
21432
+ interface OrderServiceFee {
21433
+ readonly currency: string;
21434
+ readonly tiers: io.flow.internal.v0.models.OrderServiceFeeTier[];
21435
+ }
21436
+
21437
+ interface OrderServiceFeeTier {
21438
+ readonly minimum_orders: number;
21439
+ readonly amount: number;
21440
+ }
21441
+
20877
21442
  interface OrderShipped {
20878
21443
  readonly discriminator: 'order_shipped';
20879
21444
  readonly event_id: string;
@@ -23498,6 +24063,7 @@ declare namespace io.flow.internal.v0.unions {
23498
24063
  type CheckoutInfo =
23499
24064
  | io.flow.internal.v0.models.CheckoutInfoAddressBookContacts
23500
24065
  | io.flow.internal.v0.models.CheckoutInfoAddressConfigurationFormData
24066
+ | io.flow.internal.v0.models.CheckoutInfoAddressCountriesFormData
23501
24067
  | io.flow.internal.v0.models.CheckoutInfoAddressPredictions
23502
24068
  | io.flow.internal.v0.models.CheckoutInfoAnalyticsOrder
23503
24069
  | io.flow.internal.v0.models.CheckoutInfoAnalyticsSession
@@ -24462,10 +25028,7 @@ export type ChannelOrderAcceptanceStatus = io.flow.internal.v0.enums.ChannelOrde
24462
25028
  export type ChannelOrderAcceptanceUpserted = io.flow.internal.v0.models.ChannelOrderAcceptanceUpserted;
24463
25029
  export type ChannelOrganizationShopify = io.flow.internal.v0.models.ChannelOrganizationShopify;
24464
25030
  export type ChannelOrganizationShopifyForm = io.flow.internal.v0.models.ChannelOrganizationShopifyForm;
24465
- export type ChannelServiceFee = io.flow.internal.v0.models.ChannelServiceFee;
24466
- export type ChannelServiceFeeTier = io.flow.internal.v0.models.ChannelServiceFeeTier;
24467
25031
  export type ChannelTokenForm = io.flow.internal.v0.models.ChannelTokenForm;
24468
- export type ChannelTransaction = io.flow.internal.v0.models.ChannelTransaction;
24469
25032
  export type ChannelTransactionDeleted = io.flow.internal.v0.models.ChannelTransactionDeleted;
24470
25033
  export type ChannelTransactionUpserted = io.flow.internal.v0.models.ChannelTransactionUpserted;
24471
25034
  export type Chargeback = io.flow.internal.v0.models.Chargeback;
@@ -24493,6 +25056,8 @@ export type CheckoutAddressBookContact = io.flow.internal.v0.models.CheckoutAddr
24493
25056
  export type CheckoutAddressBookContactReference = io.flow.internal.v0.models.CheckoutAddressBookContactReference;
24494
25057
  export type CheckoutAddressBookContactRemoved = io.flow.internal.v0.models.CheckoutAddressBookContactRemoved;
24495
25058
  export type CheckoutAddressBookEdit = io.flow.internal.v0.unions.CheckoutAddressBookEdit;
25059
+ export type CheckoutAddressCountriesFormData = io.flow.internal.v0.models.CheckoutAddressCountriesFormData;
25060
+ export type CheckoutAddressCountry = io.flow.internal.v0.models.CheckoutAddressCountry;
24496
25061
  export type CheckoutAddressPrediction = io.flow.internal.v0.models.CheckoutAddressPrediction;
24497
25062
  export type CheckoutAddressPredictionMetadata = io.flow.internal.v0.models.CheckoutAddressPredictionMetadata;
24498
25063
  export type CheckoutAddressPredictions = io.flow.internal.v0.models.CheckoutAddressPredictions;
@@ -24654,6 +25219,7 @@ export type CheckoutInfoAddressBookContactsKeyField = io.flow.internal.v0.enums.
24654
25219
  export type CheckoutInfoAddressConfigurationFormData = io.flow.internal.v0.models.CheckoutInfoAddressConfigurationFormData;
24655
25220
  export type CheckoutInfoAddressConfigurationFormDataKey = io.flow.internal.v0.models.CheckoutInfoAddressConfigurationFormDataKey;
24656
25221
  export type CheckoutInfoAddressConfigurationFormDataKeyField = io.flow.internal.v0.enums.CheckoutInfoAddressConfigurationFormDataKeyField;
25222
+ export type CheckoutInfoAddressCountriesFormData = io.flow.internal.v0.models.CheckoutInfoAddressCountriesFormData;
24657
25223
  export type CheckoutInfoAddressPredictions = io.flow.internal.v0.models.CheckoutInfoAddressPredictions;
24658
25224
  export type CheckoutInfoAddressPredictionsKey = io.flow.internal.v0.models.CheckoutInfoAddressPredictionsKey;
24659
25225
  export type CheckoutInfoAddressPredictionsKeyField = io.flow.internal.v0.enums.CheckoutInfoAddressPredictionsKeyField;
@@ -25608,6 +26174,8 @@ export type OrderRevenueRegionDataPoint = io.flow.internal.v0.models.OrderRevenu
25608
26174
  export type OrderRevenueTimelineChart = io.flow.internal.v0.models.OrderRevenueTimelineChart;
25609
26175
  export type OrderRevenueTimelineDataPoint = io.flow.internal.v0.models.OrderRevenueTimelineDataPoint;
25610
26176
  export type OrderServiceChangeCsvForm = io.flow.internal.v0.models.OrderServiceChangeCsvForm;
26177
+ export type OrderServiceFee = io.flow.internal.v0.models.OrderServiceFee;
26178
+ export type OrderServiceFeeTier = io.flow.internal.v0.models.OrderServiceFeeTier;
25611
26179
  export type OrderShipped = io.flow.internal.v0.models.OrderShipped;
25612
26180
  export type OrderSubmissionForm = io.flow.internal.v0.models.OrderSubmissionForm;
25613
26181
  export type OrganizationAccount = io.flow.internal.v0.models.OrganizationAccount;