@flowio/types 11.22.0 → 11.22.1

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,28 +2356,6 @@ 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
-
2381
2359
  declare namespace io.flow.token.internal.v0.models {
2382
2360
  interface ChannelTokenForm {
2383
2361
  readonly channel_id: string;
@@ -3459,6 +3437,19 @@ declare namespace io.flow.payment.v0.models {
3459
3437
  readonly country?: string;
3460
3438
  }
3461
3439
 
3440
+ interface KlarnaPaymentMethodCategory {
3441
+ readonly id: string;
3442
+ readonly name?: string;
3443
+ readonly standard_asset_url?: string;
3444
+ readonly descriptive_asset_url?: string;
3445
+ }
3446
+
3447
+ interface KlarnaSdkAuthorizationResultActionDetails {
3448
+ readonly discriminator: 'klarna_sdk_authorization_result_action_details';
3449
+ readonly client_token: string;
3450
+ readonly payment_method_categories: io.flow.payment.v0.models.KlarnaPaymentMethodCategory[];
3451
+ }
3452
+
3462
3453
  interface MerchantOfRecordAuthorizationForm {
3463
3454
  readonly discriminator: 'merchant_of_record_authorization_form';
3464
3455
  readonly token: string;
@@ -3898,7 +3889,8 @@ declare namespace io.flow.payment.v0.unions {
3898
3889
  | io.flow.payment.v0.models.AdyenNativeActionDetails
3899
3890
  | io.flow.payment.v0.models.StripeAuthorizationResultActionDetails
3900
3891
  | io.flow.payment.v0.models.ThreedsIdentifyActionDetails
3901
- | io.flow.payment.v0.models.ThreedsChallengeActionDetails;
3892
+ | io.flow.payment.v0.models.ThreedsChallengeActionDetails
3893
+ | io.flow.payment.v0.models.KlarnaSdkAuthorizationResultActionDetails;
3902
3894
  type BrowserActionConfiguration = io.flow.payment.v0.models.CardBrowserActionConfiguration;
3903
3895
  type ConfirmationDetails = io.flow.payment.v0.models.DirectDebit;
3904
3896
  type ExpandableCard =
@@ -4066,6 +4058,13 @@ declare namespace io.flow.stripe.v0.enums {
4066
4058
  | 'source.canceled'
4067
4059
  | 'source.chargeable'
4068
4060
  | 'source.failed';
4061
+ type KlarnaPaymentMethodCategoryType =
4062
+ | 'direct_bank_transfer'
4063
+ | 'direct_debit'
4064
+ | 'pay_later'
4065
+ | 'pay_now'
4066
+ | 'pay_over_time';
4067
+ type KlarnaProduct = 'payment';
4069
4068
  type NetworkStatus =
4070
4069
  | 'approved_by_network'
4071
4070
  | 'declined_by_network'
@@ -4369,7 +4368,7 @@ declare namespace io.flow.stripe.v0.models {
4369
4368
  }
4370
4369
 
4371
4370
  interface OrderItem {
4372
- readonly object: string;
4371
+ readonly object?: string;
4373
4372
  readonly amount: number;
4374
4373
  readonly currency: string;
4375
4374
  readonly description?: string;
@@ -4611,7 +4610,7 @@ declare namespace io.flow.stripe.v0.models {
4611
4610
 
4612
4611
  interface Shipping {
4613
4612
  readonly address: io.flow.stripe.v0.models.Address;
4614
- readonly name: string;
4613
+ readonly name?: string;
4615
4614
  readonly phone?: string;
4616
4615
  }
4617
4616
 
@@ -4634,6 +4633,7 @@ declare namespace io.flow.stripe.v0.models {
4634
4633
  readonly status: io.flow.stripe.v0.enums.SourceStatus;
4635
4634
  readonly type: io.flow.stripe.v0.enums.SourceType;
4636
4635
  readonly usage: io.flow.stripe.v0.enums.SourceUsageType;
4636
+ readonly source_order?: io.flow.stripe.v0.models.SourceOrder;
4637
4637
  }
4638
4638
 
4639
4639
  interface SourceCard {
@@ -4664,12 +4664,50 @@ declare namespace io.flow.stripe.v0.models {
4664
4664
  readonly first_name?: string;
4665
4665
  readonly last_name?: string;
4666
4666
  readonly client_token: string;
4667
+ readonly payment_method_categories?: string;
4668
+ readonly purchase_country?: string;
4669
+ readonly shipping_first_name?: string;
4670
+ readonly shipping_last_name?: string;
4671
+ readonly locale?: string;
4672
+ readonly pay_later_name?: string;
4673
+ readonly pay_later_asset_urls_standard?: string;
4674
+ readonly pay_later_asset_urls_descriptive?: string;
4675
+ readonly pay_now_name?: string;
4676
+ readonly pay_now_asset_urls_standard?: string;
4677
+ readonly pay_now_asset_urls_descriptive?: string;
4678
+ readonly pay_over_time_name?: string;
4679
+ readonly pay_over_time_asset_urls_standard?: string;
4680
+ readonly pay_over_time_asset_urls_descriptive?: string;
4681
+ readonly direct_bank_transfer_name?: string;
4682
+ readonly direct_bank_transfer_asset_urls_standard?: string;
4683
+ readonly direct_bank_transfer_asset_urls_descriptive?: string;
4684
+ readonly direct_debit_name?: string;
4685
+ readonly direct_debit_asset_urls_standard?: string;
4686
+ readonly direct_debit_asset_urls_descriptive?: string;
4667
4687
  }
4668
4688
 
4669
4689
  interface SourceKlarnaRequest {
4670
4690
  readonly first_name: string;
4671
4691
  readonly last_name: string;
4692
+ readonly purchase_country?: string;
4693
+ readonly product?: io.flow.stripe.v0.enums.KlarnaProduct;
4672
4694
  readonly attachment?: string;
4695
+ readonly shipping_first_name?: string;
4696
+ readonly shipping_last_name?: string;
4697
+ readonly locale?: string;
4698
+ }
4699
+
4700
+ interface SourceOrder {
4701
+ readonly amount?: number;
4702
+ readonly currency?: string;
4703
+ readonly email?: string;
4704
+ readonly items?: io.flow.stripe.v0.models.OrderItem[];
4705
+ readonly shipping?: io.flow.stripe.v0.models.Shipping;
4706
+ }
4707
+
4708
+ interface SourceOrderRequest {
4709
+ readonly items?: io.flow.stripe.v0.models.OrderItemRequest[];
4710
+ readonly shipping?: io.flow.stripe.v0.models.Shipping;
4673
4711
  }
4674
4712
 
4675
4713
  interface SourceRequest {
@@ -4687,6 +4725,7 @@ declare namespace io.flow.stripe.v0.models {
4687
4725
  readonly three_d_secure?: io.flow.stripe.v0.models.ThreeDSecure;
4688
4726
  readonly token?: string;
4689
4727
  readonly usage: io.flow.stripe.v0.enums.SourceUsageType;
4728
+ readonly source_order?: io.flow.stripe.v0.models.SourceOrderRequest;
4690
4729
  }
4691
4730
 
4692
4731
  interface Stripe3Ds2Fingerprint {
@@ -6040,7 +6079,7 @@ declare namespace io.flow.brickftp.v0.models {
6040
6079
  readonly id: number;
6041
6080
  readonly path: string;
6042
6081
  readonly behavior: io.flow.brickftp.v0.enums.BehaviorType;
6043
- readonly value: string[];
6082
+ readonly value: any /*object*/;
6044
6083
  }
6045
6084
 
6046
6085
  interface BehaviorForm {
@@ -6279,6 +6318,11 @@ declare namespace io.flow.adyen.v0.models {
6279
6318
  readonly currency: string;
6280
6319
  }
6281
6320
 
6321
+ interface Applepay {
6322
+ readonly type: 'applepay';
6323
+ readonly applePayToken: string;
6324
+ }
6325
+
6282
6326
  interface Authentication {
6283
6327
  readonly 'threeds2.fingerprintToken'?: string;
6284
6328
  readonly 'threeds2.challengeToken'?: string;
@@ -6306,6 +6350,8 @@ declare namespace io.flow.adyen.v0.models {
6306
6350
  readonly browserInfo?: io.flow.adyen.v0.unions.BrowserInfo;
6307
6351
  readonly threeDS2RequestData?: io.flow.adyen.v0.models.Threeds2RequestData;
6308
6352
  readonly recurringProcessingModel?: io.flow.adyen.v0.enums.RecurringProcessingModel;
6353
+ readonly mcc?: string;
6354
+ readonly metadata?: any /*object*/;
6309
6355
  }
6310
6356
 
6311
6357
  interface AuthorizeRequest3D {
@@ -6462,6 +6508,14 @@ declare namespace io.flow.adyen.v0.models {
6462
6508
  readonly paymentData?: string;
6463
6509
  }
6464
6510
 
6511
+ interface PaymentDetailsV663Ds2Challenge {
6512
+ readonly 'threeds2.challengeResult': string;
6513
+ }
6514
+
6515
+ interface PaymentDetailsV663Ds2Fingerprint {
6516
+ readonly 'threeds2.fingerprint': string;
6517
+ }
6518
+
6465
6519
  interface PaymentRequest {
6466
6520
  readonly reference: string;
6467
6521
  readonly merchantAccount: string;
@@ -6483,7 +6537,9 @@ declare namespace io.flow.adyen.v0.models {
6483
6537
  readonly browserInfo?: io.flow.adyen.v0.unions.BrowserInfo;
6484
6538
  readonly origin?: string;
6485
6539
  readonly channel?: io.flow.adyen.v0.enums.Channel;
6486
- readonly returnURL?: string;
6540
+ readonly returnUrl?: string;
6541
+ readonly mcc?: string;
6542
+ readonly metadata?: any /*object*/;
6487
6543
  }
6488
6544
 
6489
6545
  interface PaymentResponse {
@@ -6539,6 +6595,15 @@ declare namespace io.flow.adyen.v0.models {
6539
6595
  readonly cvc?: string;
6540
6596
  }
6541
6597
 
6598
+ interface SdkV3OnCompleteData {
6599
+ readonly details: any /*object*/;
6600
+ readonly payment_data?: string;
6601
+ }
6602
+
6603
+ interface SdkV3OnCompleteResult {
6604
+ readonly data: io.flow.adyen.v0.models.SdkV3OnCompleteData;
6605
+ }
6606
+
6542
6607
  interface ThreeDSecureData {
6543
6608
  readonly authenticationResponse?: string;
6544
6609
  readonly cavv?: string;
@@ -6570,7 +6635,9 @@ declare namespace io.flow.adyen.v0.unions {
6570
6635
  type BrowserInfo =
6571
6636
  | io.flow.adyen.v0.models.BrowserInfo3Ds1
6572
6637
  | io.flow.adyen.v0.models.BrowserInfo3Ds2;
6573
- type PaymentMethodData = io.flow.adyen.v0.models.Scheme;
6638
+ type PaymentMethodData =
6639
+ | io.flow.adyen.v0.models.Scheme
6640
+ | io.flow.adyen.v0.models.Applepay;
6574
6641
  }
6575
6642
 
6576
6643
  declare namespace io.flow.order.management.v0.enums {
@@ -10002,10 +10069,14 @@ declare namespace io.flow.crypto.v0.models {
10002
10069
  readonly publishable_key: string;
10003
10070
  }
10004
10071
 
10072
+ interface Error {
10073
+ readonly type?: io.flow.crypto.v0.enums.ErrorType;
10074
+ readonly code?: string;
10075
+ readonly param?: string;
10076
+ }
10077
+
10005
10078
  interface ErrorResponse {
10006
- readonly type: io.flow.crypto.v0.enums.ErrorType;
10007
- readonly code: string;
10008
- readonly param: string;
10079
+ readonly error?: io.flow.crypto.v0.models.Error;
10009
10080
  }
10010
10081
 
10011
10082
  interface Payment {
@@ -10025,7 +10096,6 @@ declare namespace io.flow.crypto.v0.models {
10025
10096
  readonly recipient: string;
10026
10097
  readonly refunded: boolean;
10027
10098
  readonly status: io.flow.crypto.v0.enums.PaymentStatus;
10028
- readonly time_window: number;
10029
10099
  }
10030
10100
 
10031
10101
  interface PaymentRequest {
@@ -10768,742 +10838,121 @@ declare namespace io.flow.item.v0.models {
10768
10838
  }
10769
10839
  }
10770
10840
 
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';
10841
+ declare namespace io.flow.harmonization.v0.enums {
10842
+ type TaxApplicability = 'none' | 'all';
10843
+ type TaxVerificationResult = 'valid' | 'invalid' | 'unable_to_validate';
10818
10844
  }
10819
10845
 
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 {
10846
+ declare namespace io.flow.harmonization.v0.models {
10847
+ interface DetailedTaxRegistration {
10830
10848
  readonly id: string;
10831
10849
  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[];
10850
+ readonly consumer_company_name?: string;
10851
+ readonly number: string;
10852
+ readonly country: string;
10853
+ readonly success: boolean;
10854
+ readonly timestamp: string;
10855
+ readonly vies_result: io.flow.harmonization.v0.enums.TaxVerificationResult;
10856
+ readonly vies_result_reason?: string;
10857
+ readonly vies_company_name?: string;
10858
+ readonly vies_company_address?: string;
10859
+ readonly company_name_match_result: io.flow.harmonization.v0.enums.TaxVerificationResult;
10860
+ readonly company_name_match_result_reason?: string;
10847
10861
  }
10848
10862
 
10849
- interface BillingAuthorizationReference {
10863
+ interface HarmonizedCategoryReference {
10850
10864
  readonly id: string;
10851
10865
  }
10852
10866
 
10853
- interface BillingInvoiceSummary {
10867
+ interface HarmonizedItem {
10854
10868
  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;
10869
+ readonly number: string;
10870
+ readonly name: string;
10871
+ readonly categories: string[];
10872
+ readonly attributes: Record<string, string>;
10873
+ readonly description?: string;
10863
10874
  }
10864
10875
 
10865
- interface BillingOrderSummary {
10876
+ interface HarmonizedItemForm {
10877
+ readonly name: string;
10866
10878
  readonly number: string;
10867
- readonly submitted_at: string;
10868
- readonly primary_identifier?: string;
10869
- readonly destination?: io.flow.billing.internal.v0.models.BillingOrderDestination;
10879
+ readonly currency: string;
10880
+ readonly price: number;
10881
+ readonly categories?: string[];
10882
+ readonly description?: string;
10883
+ readonly attributes?: Record<string, string>;
10870
10884
  }
10871
10885
 
10872
- interface BillingOrganizationProcessingRateForm {
10873
- readonly query: string;
10874
- readonly capture: number;
10875
- readonly refund: number;
10876
- readonly fraud: number;
10886
+ interface HarmonizedItemPutForm {
10887
+ readonly name: string;
10888
+ readonly currency: string;
10889
+ readonly price: number;
10890
+ readonly categories?: string[];
10891
+ readonly description?: string;
10892
+ readonly attributes?: Record<string, string>;
10877
10893
  }
10878
10894
 
10879
- interface BillingOrganizationProcessingRates {
10895
+ interface HarmonizedItemReference {
10880
10896
  readonly id: string;
10881
- readonly query: string;
10882
- readonly capture: number;
10883
- readonly refund: number;
10884
- readonly fraud: number;
10885
- readonly position: number;
10897
+ readonly number: string;
10898
+ readonly description?: string;
10886
10899
  }
10887
10900
 
10888
- interface BillingOrganizationProcessingRatesForm {
10889
- readonly processing_rates: io.flow.billing.internal.v0.models.BillingOrganizationProcessingRateForm[];
10901
+ interface HarmonizedLandedCost {
10902
+ readonly address: io.flow.common.v0.models.Address;
10903
+ readonly items: io.flow.harmonization.v0.models.HarmonizedLandedCostItem[];
10904
+ readonly tax_registration?: io.flow.harmonization.v0.models.TaxRegistration;
10890
10905
  }
10891
10906
 
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;
10907
+ interface HarmonizedLandedCostForm {
10908
+ readonly address: io.flow.common.v0.models.Address;
10909
+ readonly item_numbers: string[];
10910
+ readonly source_address?: io.flow.common.v0.models.Address;
10911
+ readonly order_number?: string;
10912
+ readonly line_items?: io.flow.common.v0.models.LineItem[];
10913
+ readonly tax_registration_id?: string;
10914
+ readonly billing_address?: io.flow.common.v0.models.BillingAddress;
10902
10915
  }
10903
10916
 
10904
- interface BillingStatementBatch {
10905
- readonly id: string;
10906
- readonly period: io.flow.common.v0.models.DatetimeRange;
10917
+ interface HarmonizedLandedCostItem {
10918
+ readonly item: io.flow.harmonization.v0.models.HarmonizedItemReference;
10919
+ readonly duty: io.flow.price.v0.models.Duty;
10920
+ readonly tax: io.flow.price.v0.models.Tax;
10921
+ readonly tax_applicability?: io.flow.harmonization.v0.enums.TaxApplicability;
10922
+ readonly origin?: string;
10923
+ readonly hs_code?: string;
10924
+ readonly tariff_code?: string;
10925
+ readonly customs_description?: string;
10926
+ readonly source_address?: io.flow.common.v0.models.Address;
10907
10927
  }
10908
10928
 
10909
- interface BillingStatementPendingReview {
10910
- readonly organization: string;
10911
- readonly statement: io.flow.billing.v0.models.BillingStatement;
10929
+ interface Hs10 {
10930
+ readonly id: string;
10931
+ readonly item: io.flow.harmonization.v0.models.HarmonizedItemReference;
10932
+ readonly origin: string;
10933
+ readonly destination: string;
10934
+ readonly code: string;
10912
10935
  }
10913
10936
 
10914
- interface BillingStatementReview {
10937
+ interface Hs10Version {
10915
10938
  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;
10939
+ readonly timestamp: string;
10940
+ readonly type: io.flow.common.v0.enums.ChangeType;
10941
+ readonly hs10: io.flow.harmonization.v0.models.Hs10;
10919
10942
  }
10920
10943
 
10921
- interface BillingStatementReviewForm {
10922
- readonly reviewed_by_id: string;
10923
- readonly reviewed_at: string;
10944
+ interface Hs6 {
10945
+ readonly id: string;
10946
+ readonly item: io.flow.harmonization.v0.models.HarmonizedItemReference;
10947
+ readonly code: string;
10924
10948
  }
10925
10949
 
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;
11271
- }
11272
-
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;
11279
- }
11280
-
11281
- interface AccountContactForm {
11282
- readonly email: string;
11283
- readonly first_name?: string;
11284
- readonly last_name?: string;
11285
- readonly phone?: string;
11286
- }
11287
-
11288
- interface AccountDepositRule {
11289
- readonly target: number;
11290
- readonly rate: number;
11291
- }
11292
-
11293
- interface AccountDepositRuleForm {
11294
- readonly target: number;
11295
- readonly rate: number;
11296
- }
11297
-
11298
- interface AccountReference {
11299
- readonly id: string;
11300
- readonly currency: string;
11301
- }
11302
-
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;
11307
- }
11308
-
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[];
11315
- }
11316
-
11317
- interface BillingStatementAttachment {
11318
- readonly key: io.flow.billing.v0.enums.BillingStatementAttachmentKey;
11319
- readonly name: string;
11320
- readonly url: string;
11321
- }
11322
-
11323
- interface BillingStatementReference {
11324
- readonly id: string;
11325
- }
11326
-
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;
11341
- }
11342
-
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;
11352
- }
11353
-
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;
11358
- }
11359
-
11360
- interface EmailForm {
11361
- readonly to: string[];
11362
- readonly cc?: string[];
11363
- readonly bcc?: string[];
11364
- }
11365
-
11366
- interface NextBillingStatement {
11367
- readonly date: string;
11368
- readonly amount: io.flow.common.v0.models.Price;
11369
- readonly conditions?: string;
11370
- }
11371
-
11372
- interface OrganizationAccount {
11373
- readonly id: string;
11374
- readonly organization: io.flow.common.v0.models.OrganizationReference;
11375
- readonly account: io.flow.billing.v0.models.SimpleAccountReference;
11376
- }
11377
-
11378
- interface SimpleAccountReference {
11379
- readonly id: string;
11380
- }
11381
-
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;
11389
- }
11390
- }
11391
-
11392
- declare namespace io.flow.harmonization.v0.enums {
11393
- type TaxApplicability = 'none' | 'all';
11394
- type TaxVerificationResult = 'valid' | 'invalid' | 'unable_to_validate';
11395
- }
11396
-
11397
- declare namespace io.flow.harmonization.v0.models {
11398
- interface DetailedTaxRegistration {
11399
- readonly id: string;
11400
- readonly key: string;
11401
- readonly consumer_company_name?: string;
11402
- readonly number: string;
11403
- readonly country: string;
11404
- readonly success: boolean;
11405
- readonly timestamp: string;
11406
- readonly vies_result: io.flow.harmonization.v0.enums.TaxVerificationResult;
11407
- readonly vies_result_reason?: string;
11408
- readonly vies_company_name?: string;
11409
- readonly vies_company_address?: string;
11410
- readonly company_name_match_result: io.flow.harmonization.v0.enums.TaxVerificationResult;
11411
- readonly company_name_match_result_reason?: string;
11412
- }
11413
-
11414
- interface HarmonizedCategoryReference {
11415
- readonly id: string;
11416
- }
11417
-
11418
- interface HarmonizedItem {
11419
- readonly id: string;
11420
- readonly number: string;
11421
- readonly name: string;
11422
- readonly categories: string[];
11423
- readonly attributes: Record<string, string>;
11424
- readonly description?: string;
11425
- }
11426
-
11427
- interface HarmonizedItemForm {
11428
- readonly name: string;
11429
- readonly number: string;
11430
- readonly currency: string;
11431
- readonly price: number;
11432
- readonly categories?: string[];
11433
- readonly description?: string;
11434
- readonly attributes?: Record<string, string>;
11435
- }
11436
-
11437
- interface HarmonizedItemPutForm {
11438
- readonly name: string;
11439
- readonly currency: string;
11440
- readonly price: number;
11441
- readonly categories?: string[];
11442
- readonly description?: string;
11443
- readonly attributes?: Record<string, string>;
11444
- }
11445
-
11446
- interface HarmonizedItemReference {
11447
- readonly id: string;
11448
- readonly number: string;
11449
- readonly description?: string;
11450
- }
11451
-
11452
- interface HarmonizedLandedCost {
11453
- readonly address: io.flow.common.v0.models.Address;
11454
- readonly items: io.flow.harmonization.v0.models.HarmonizedLandedCostItem[];
11455
- readonly tax_registration?: io.flow.harmonization.v0.models.TaxRegistration;
11456
- }
11457
-
11458
- interface HarmonizedLandedCostForm {
11459
- readonly address: io.flow.common.v0.models.Address;
11460
- readonly item_numbers: string[];
11461
- readonly source_address?: io.flow.common.v0.models.Address;
11462
- readonly order_number?: string;
11463
- readonly line_items?: io.flow.common.v0.models.LineItem[];
11464
- readonly tax_registration_id?: string;
11465
- readonly billing_address?: io.flow.common.v0.models.BillingAddress;
11466
- }
11467
-
11468
- interface HarmonizedLandedCostItem {
11469
- readonly item: io.flow.harmonization.v0.models.HarmonizedItemReference;
11470
- readonly duty: io.flow.price.v0.models.Duty;
11471
- readonly tax: io.flow.price.v0.models.Tax;
11472
- readonly tax_applicability?: io.flow.harmonization.v0.enums.TaxApplicability;
11473
- readonly origin?: string;
11474
- readonly hs_code?: string;
11475
- readonly tariff_code?: string;
11476
- readonly customs_description?: string;
11477
- readonly source_address?: io.flow.common.v0.models.Address;
11478
- }
11479
-
11480
- interface Hs10 {
11481
- readonly id: string;
11482
- readonly item: io.flow.harmonization.v0.models.HarmonizedItemReference;
11483
- readonly origin: string;
11484
- readonly destination: string;
11485
- readonly code: string;
11486
- }
11487
-
11488
- interface Hs10Version {
11489
- readonly id: string;
11490
- readonly timestamp: string;
11491
- readonly type: io.flow.common.v0.enums.ChangeType;
11492
- readonly hs10: io.flow.harmonization.v0.models.Hs10;
11493
- }
11494
-
11495
- interface Hs6 {
11496
- readonly id: string;
11497
- readonly item: io.flow.harmonization.v0.models.HarmonizedItemReference;
11498
- readonly code: string;
11499
- }
11500
-
11501
- interface LaneLandedCost {
11502
- readonly origin: string;
11503
- readonly destination: string;
11504
- readonly tariff_code: string;
11505
- readonly effective_duty: io.flow.price.v0.models.Duty;
11506
- readonly tax: io.flow.price.v0.models.Tax;
10950
+ interface LaneLandedCost {
10951
+ readonly origin: string;
10952
+ readonly destination: string;
10953
+ readonly tariff_code: string;
10954
+ readonly effective_duty: io.flow.price.v0.models.Duty;
10955
+ readonly tax: io.flow.price.v0.models.Tax;
11507
10956
  }
11508
10957
 
11509
10958
  interface TaxRegistration {
@@ -13076,6 +12525,7 @@ declare namespace io.flow.internal.v0.enums {
13076
12525
  | 'purchase';
13077
12526
  type BlazeCheckoutStep = 'customer_info' | 'delivery' | 'payment';
13078
12527
  type BrowserBundleErrorCode = 'generic_error' | 'country_invalid';
12528
+ type CalculatorEngine = 'flow_rate_and_rule' | 'dtce';
13079
12529
  type CarrierLabelGenerationMethod = 'direct' | 'easypost';
13080
12530
  type CatalogImportType =
13081
12531
  | 'catalog_items'
@@ -13443,8 +12893,6 @@ declare namespace io.flow.internal.v0.enums {
13443
12893
  | 'billing_statement_deleted'
13444
12894
  | 'tax_remittance_transaction_upserted'
13445
12895
  | 'tax_remittance_transaction_deleted'
13446
- | 'channel_transaction_upserted'
13447
- | 'channel_transaction_deleted'
13448
12896
  | 'channel_account_upserted'
13449
12897
  | 'channel_account_deleted'
13450
12898
  | 'organization_account_upserted'
@@ -13527,6 +12975,10 @@ declare namespace io.flow.internal.v0.enums {
13527
12975
  | 'feature_deleted'
13528
12976
  | 'organization_boolean_value_upserted'
13529
12977
  | 'organization_boolean_value_deleted'
12978
+ | 'account_settings_upserted'
12979
+ | 'account_settings_deleted'
12980
+ | 'account_processing_rates_upserted'
12981
+ | 'account_processing_rates_deleted'
13530
12982
  | 'billing_organization_processing_rates_upserted'
13531
12983
  | 'billing_organization_processing_rates_deleted'
13532
12984
  | 'billing_organization_settings_upserted'
@@ -14011,11 +13463,73 @@ declare namespace io.flow.internal.v0.models {
14011
13463
  readonly transaction_created_before?: string;
14012
13464
  }
14013
13465
 
13466
+ interface AccountProcessingRateForm {
13467
+ readonly query: string;
13468
+ readonly capture: number;
13469
+ readonly refund: number;
13470
+ readonly fraud: number;
13471
+ }
13472
+
13473
+ interface AccountProcessingRates {
13474
+ readonly id: string;
13475
+ readonly query: string;
13476
+ readonly capture: number;
13477
+ readonly refund: number;
13478
+ readonly fraud: number;
13479
+ readonly position: number;
13480
+ }
13481
+
13482
+ interface AccountProcessingRatesDeleted {
13483
+ readonly discriminator: 'account_processing_rates_deleted';
13484
+ readonly event_id: string;
13485
+ readonly timestamp: string;
13486
+ readonly id: string;
13487
+ }
13488
+
13489
+ interface AccountProcessingRatesForm {
13490
+ readonly processing_rates: io.flow.internal.v0.models.AccountProcessingRateForm[];
13491
+ }
13492
+
13493
+ interface AccountProcessingRatesUpserted {
13494
+ readonly discriminator: 'account_processing_rates_upserted';
13495
+ readonly event_id: string;
13496
+ readonly timestamp: string;
13497
+ readonly rates: io.flow.internal.v0.models.AccountProcessingRates;
13498
+ }
13499
+
14014
13500
  interface AccountReference {
14015
13501
  readonly id: string;
14016
13502
  readonly currency: string;
14017
13503
  }
14018
13504
 
13505
+ interface AccountSettings {
13506
+ readonly id: string;
13507
+ readonly days_until_posted: number;
13508
+ readonly logistics: io.flow.internal.v0.enums.ResponsibleParty;
13509
+ readonly include_transaction_created_at: boolean;
13510
+ readonly include_order_exchange_rate: boolean;
13511
+ readonly send_statements_to_flow_ftp_server: boolean;
13512
+ readonly invoicing_terms?: io.flow.internal.v0.enums.PaymentTerm;
13513
+ readonly transfer_method?: io.flow.internal.v0.enums.TransferMethod;
13514
+ readonly b2b_tax_remittance_days?: number;
13515
+ readonly merchant_of_record_fee?: number;
13516
+ readonly order_service_fee?: io.flow.internal.v0.models.OrderServiceFee;
13517
+ }
13518
+
13519
+ interface AccountSettingsDeleted {
13520
+ readonly discriminator: 'account_settings_deleted';
13521
+ readonly event_id: string;
13522
+ readonly timestamp: string;
13523
+ readonly id: string;
13524
+ }
13525
+
13526
+ interface AccountSettingsUpserted {
13527
+ readonly discriminator: 'account_settings_upserted';
13528
+ readonly event_id: string;
13529
+ readonly timestamp: string;
13530
+ readonly settings: io.flow.internal.v0.models.AccountSettings;
13531
+ }
13532
+
14019
13533
  interface AccountStatistics {
14020
13534
  readonly transfers: io.flow.common.v0.models.Price;
14021
13535
  readonly balance: io.flow.common.v0.models.Price;
@@ -14635,13 +14149,6 @@ declare namespace io.flow.internal.v0.models {
14635
14149
  readonly destination?: io.flow.internal.v0.models.BillingOrderDestination;
14636
14150
  }
14637
14151
 
14638
- interface BillingOrganizationProcessingRateForm {
14639
- readonly query: string;
14640
- readonly capture: number;
14641
- readonly refund: number;
14642
- readonly fraud: number;
14643
- }
14644
-
14645
14152
  interface BillingOrganizationProcessingRates {
14646
14153
  readonly id: string;
14647
14154
  readonly query: string;
@@ -14659,10 +14166,6 @@ declare namespace io.flow.internal.v0.models {
14659
14166
  readonly id: string;
14660
14167
  }
14661
14168
 
14662
- interface BillingOrganizationProcessingRatesForm {
14663
- readonly processing_rates: io.flow.internal.v0.models.BillingOrganizationProcessingRateForm[];
14664
- }
14665
-
14666
14169
  interface BillingOrganizationProcessingRatesUpserted {
14667
14170
  readonly discriminator: 'billing_organization_processing_rates_upserted';
14668
14171
  readonly event_id: string;
@@ -15279,22 +14782,6 @@ declare namespace io.flow.internal.v0.models {
15279
14782
  readonly description?: string;
15280
14783
  }
15281
14784
 
15282
- interface ChannelTransactionDeleted {
15283
- readonly discriminator: 'channel_transaction_deleted';
15284
- readonly event_id: string;
15285
- readonly timestamp: string;
15286
- readonly organization: string;
15287
- readonly channel_transaction: io.flow.billing.internal.v0.models.ChannelTransaction;
15288
- }
15289
-
15290
- interface ChannelTransactionUpserted {
15291
- readonly discriminator: 'channel_transaction_upserted';
15292
- readonly event_id: string;
15293
- readonly timestamp: string;
15294
- readonly organization: string;
15295
- readonly channel_transaction: io.flow.billing.internal.v0.models.ChannelTransaction;
15296
- }
15297
-
15298
14785
  interface Chargeback {
15299
14786
  readonly id: string;
15300
14787
  readonly key: string;
@@ -24380,8 +23867,6 @@ declare namespace io.flow.internal.v0.unions {
24380
23867
  | io.flow.internal.v0.models.BillingStatementDeleted
24381
23868
  | io.flow.internal.v0.models.TaxRemittanceTransactionUpserted
24382
23869
  | io.flow.internal.v0.models.TaxRemittanceTransactionDeleted
24383
- | io.flow.internal.v0.models.ChannelTransactionUpserted
24384
- | io.flow.internal.v0.models.ChannelTransactionDeleted
24385
23870
  | io.flow.internal.v0.models.ChannelAccountUpserted
24386
23871
  | io.flow.internal.v0.models.ChannelAccountDeleted
24387
23872
  | io.flow.internal.v0.models.OrganizationAccountUpserted
@@ -24464,6 +23949,10 @@ declare namespace io.flow.internal.v0.unions {
24464
23949
  | io.flow.internal.v0.models.FeatureDeleted
24465
23950
  | io.flow.internal.v0.models.OrganizationBooleanValueUpserted
24466
23951
  | io.flow.internal.v0.models.OrganizationBooleanValueDeleted
23952
+ | io.flow.internal.v0.models.AccountSettingsUpserted
23953
+ | io.flow.internal.v0.models.AccountSettingsDeleted
23954
+ | io.flow.internal.v0.models.AccountProcessingRatesUpserted
23955
+ | io.flow.internal.v0.models.AccountProcessingRatesDeleted
24467
23956
  | io.flow.internal.v0.models.BillingOrganizationProcessingRatesUpserted
24468
23957
  | io.flow.internal.v0.models.BillingOrganizationProcessingRatesDeleted
24469
23958
  | io.flow.internal.v0.models.BillingOrganizationSettingsUpserted
@@ -24827,7 +24316,15 @@ export type AccountDepositRule = io.flow.internal.v0.models.AccountDepositRule;
24827
24316
  export type AccountDepositRuleForm = io.flow.internal.v0.models.AccountDepositRuleForm;
24828
24317
  export type AccountForm = io.flow.internal.v0.models.AccountForm;
24829
24318
  export type AccountOrdersExportRequest = io.flow.internal.v0.models.AccountOrdersExportRequest;
24319
+ export type AccountProcessingRateForm = io.flow.internal.v0.models.AccountProcessingRateForm;
24320
+ export type AccountProcessingRates = io.flow.internal.v0.models.AccountProcessingRates;
24321
+ export type AccountProcessingRatesDeleted = io.flow.internal.v0.models.AccountProcessingRatesDeleted;
24322
+ export type AccountProcessingRatesForm = io.flow.internal.v0.models.AccountProcessingRatesForm;
24323
+ export type AccountProcessingRatesUpserted = io.flow.internal.v0.models.AccountProcessingRatesUpserted;
24830
24324
  export type AccountReference = io.flow.internal.v0.models.AccountReference;
24325
+ export type AccountSettings = io.flow.internal.v0.models.AccountSettings;
24326
+ export type AccountSettingsDeleted = io.flow.internal.v0.models.AccountSettingsDeleted;
24327
+ export type AccountSettingsUpserted = io.flow.internal.v0.models.AccountSettingsUpserted;
24831
24328
  export type AccountStatistics = io.flow.internal.v0.models.AccountStatistics;
24832
24329
  export type AccountTransactionsExportRequest = io.flow.internal.v0.models.AccountTransactionsExportRequest;
24833
24330
  export type AccountUpserted = io.flow.internal.v0.models.AccountUpserted;
@@ -24915,10 +24412,8 @@ export type BillingAuthorizationReference = io.flow.internal.v0.models.BillingAu
24915
24412
  export type BillingInvoiceSummary = io.flow.internal.v0.models.BillingInvoiceSummary;
24916
24413
  export type BillingOrderDestination = io.flow.internal.v0.models.BillingOrderDestination;
24917
24414
  export type BillingOrderSummary = io.flow.internal.v0.models.BillingOrderSummary;
24918
- export type BillingOrganizationProcessingRateForm = io.flow.internal.v0.models.BillingOrganizationProcessingRateForm;
24919
24415
  export type BillingOrganizationProcessingRates = io.flow.internal.v0.models.BillingOrganizationProcessingRates;
24920
24416
  export type BillingOrganizationProcessingRatesDeleted = io.flow.internal.v0.models.BillingOrganizationProcessingRatesDeleted;
24921
- export type BillingOrganizationProcessingRatesForm = io.flow.internal.v0.models.BillingOrganizationProcessingRatesForm;
24922
24417
  export type BillingOrganizationProcessingRatesUpserted = io.flow.internal.v0.models.BillingOrganizationProcessingRatesUpserted;
24923
24418
  export type BillingOrganizationSettings = io.flow.internal.v0.models.BillingOrganizationSettings;
24924
24419
  export type BillingOrganizationSettingsDeleted = io.flow.internal.v0.models.BillingOrganizationSettingsDeleted;
@@ -24990,6 +24485,7 @@ export type BrowserBundlePaymentMethod = io.flow.internal.v0.models.BrowserBundl
24990
24485
  export type BrowserBundlePaymentMethodForm = io.flow.internal.v0.models.BrowserBundlePaymentMethodForm;
24991
24486
  export type BrowserBundlePaymentMethods = io.flow.internal.v0.models.BrowserBundlePaymentMethods;
24992
24487
  export type CalculatedTaxAmount = io.flow.internal.v0.models.CalculatedTaxAmount;
24488
+ export type CalculatorEngine = io.flow.internal.v0.enums.CalculatorEngine;
24993
24489
  export type CarrierAccount = io.flow.internal.v0.models.CarrierAccount;
24994
24490
  export type CarrierAccountForm = io.flow.internal.v0.models.CarrierAccountForm;
24995
24491
  export type CarrierAccountUpserted = io.flow.internal.v0.models.CarrierAccountUpserted;
@@ -25029,8 +24525,6 @@ export type ChannelOrderAcceptanceUpserted = io.flow.internal.v0.models.ChannelO
25029
24525
  export type ChannelOrganizationShopify = io.flow.internal.v0.models.ChannelOrganizationShopify;
25030
24526
  export type ChannelOrganizationShopifyForm = io.flow.internal.v0.models.ChannelOrganizationShopifyForm;
25031
24527
  export type ChannelTokenForm = io.flow.internal.v0.models.ChannelTokenForm;
25032
- export type ChannelTransactionDeleted = io.flow.internal.v0.models.ChannelTransactionDeleted;
25033
- export type ChannelTransactionUpserted = io.flow.internal.v0.models.ChannelTransactionUpserted;
25034
24528
  export type Chargeback = io.flow.internal.v0.models.Chargeback;
25035
24529
  export type ChargebackDeleted = io.flow.internal.v0.models.ChargebackDeleted;
25036
24530
  export type ChargebackPaymentStatus = io.flow.internal.v0.enums.ChargebackPaymentStatus;