@flowio/types 11.24.3 → 11.24.5

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.
package/src/api.ts CHANGED
@@ -2708,71 +2708,6 @@ declare namespace io.flow.error.v0.models {
2708
2708
  }
2709
2709
  }
2710
2710
 
2711
- declare namespace io.flow.permission.v0.enums {
2712
- type AuthenticationTechnique =
2713
- | 'anonymous'
2714
- | 'session'
2715
- | 'token'
2716
- | 'partner_token'
2717
- | 'user';
2718
- type FlowBehavior = 'view_consumer_data';
2719
- type FlowRole =
2720
- | 'organization_admin'
2721
- | 'organization_merchant'
2722
- | 'organization_customer_service'
2723
- | 'organization_fulfillment'
2724
- | 'organization_marketing'
2725
- | 'organization_finance'
2726
- | 'flow_operations'
2727
- | 'channel_admin'
2728
- | 'channel_organization_admin';
2729
- type PermittedHttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
2730
- }
2731
-
2732
- declare namespace io.flow.permission.v0.models {
2733
- interface BehaviorAudit {
2734
- readonly behavior: io.flow.permission.v0.enums.FlowBehavior;
2735
- readonly authentication_techniques: io.flow.permission.v0.enums.AuthenticationTechnique[];
2736
- readonly roles: io.flow.permission.v0.enums.FlowRole[];
2737
- }
2738
-
2739
- interface PermissionAudit {
2740
- readonly routes: io.flow.permission.v0.models.RouteAudit[];
2741
- readonly behaviors: io.flow.permission.v0.models.BehaviorAudit[];
2742
- }
2743
-
2744
- interface PermissionCheck {
2745
- readonly authentication_technique: io.flow.permission.v0.enums.AuthenticationTechnique;
2746
- readonly user?: io.flow.common.v0.unions.ExpandableUser;
2747
- readonly roles: io.flow.permission.v0.enums.FlowRole[];
2748
- readonly behaviors: io.flow.permission.v0.enums.FlowBehavior[];
2749
- readonly routes: io.flow.permission.v0.models.PermittedRoute[];
2750
- }
2751
-
2752
- interface PermissionError {
2753
- readonly code: io.flow.error.v0.enums.GenericErrorCode;
2754
- readonly messages: string[];
2755
- readonly granting_roles?: io.flow.permission.v0.enums.FlowRole[];
2756
- readonly admin_users?: io.flow.common.v0.models.User[];
2757
- }
2758
-
2759
- interface PermittedRoute {
2760
- readonly method: io.flow.permission.v0.enums.PermittedHttpMethod;
2761
- readonly path: string;
2762
- }
2763
-
2764
- interface RouteAudit {
2765
- readonly method: io.flow.permission.v0.enums.PermittedHttpMethod;
2766
- readonly path: string;
2767
- readonly authentication_techniques: io.flow.permission.v0.enums.AuthenticationTechnique[];
2768
- readonly roles: io.flow.permission.v0.enums.FlowRole[];
2769
- }
2770
-
2771
- interface SimplePermissionCheck {
2772
- readonly behaviors: io.flow.permission.v0.enums.FlowBehavior[];
2773
- }
2774
- }
2775
-
2776
2711
  declare namespace io.flow.token.internal.v0.models {
2777
2712
  interface ChannelTokenForm {
2778
2713
  readonly channel_id: string;
@@ -3540,7 +3475,12 @@ declare namespace io.flow.v0.enums {
3540
3475
  | 'sofort'
3541
3476
  | 'afterpay'
3542
3477
  | 'bancontact';
3543
- type PayoutStatus = 'scheduled' | 'paid' | 'not_necessary';
3478
+ type PayoutStatusCode =
3479
+ | 'scheduled'
3480
+ | 'sent'
3481
+ | 'cancelled'
3482
+ | 'not_necessary'
3483
+ | 'failed';
3544
3484
  type PermittedHttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
3545
3485
  type PhysicalDeliverySpecialSerivce =
3546
3486
  | 'cold_storage'
@@ -3723,6 +3663,12 @@ declare namespace io.flow.v0.enums {
3723
3663
  | 'expired';
3724
3664
  type TradeAgreementName = 'USMCA' | 'T-MEC' | 'CUSMA' | 'TCA';
3725
3665
  type TradeAgreementStatus = 'supported' | 'not_supported';
3666
+ type TransactionSource =
3667
+ | 'capture'
3668
+ | 'refund'
3669
+ | 'dispute'
3670
+ | 'adjustment'
3671
+ | 'shipping_label';
3726
3672
  type UnitOfMeasurement =
3727
3673
  | 'millimeter'
3728
3674
  | 'centimeter'
@@ -5143,6 +5089,23 @@ declare namespace io.flow.v0.models {
5143
5089
  readonly channel: io.flow.channel.internal.v0.models.Channel;
5144
5090
  }
5145
5091
 
5092
+ interface ChannelViesRegistration {
5093
+ readonly id: string;
5094
+ readonly key: string;
5095
+ readonly number: string;
5096
+ readonly timestamp: string;
5097
+ readonly result: io.flow.v0.enums.TaxVerificationResult;
5098
+ readonly result_reason?: string;
5099
+ readonly name?: string;
5100
+ readonly address?: string;
5101
+ readonly company_name?: string;
5102
+ }
5103
+
5104
+ interface ChannelViesRegistrationForm {
5105
+ readonly number: string;
5106
+ readonly company_name?: string;
5107
+ }
5108
+
5146
5109
  interface CheckoutAttribute {
5147
5110
  readonly id: string;
5148
5111
  readonly experience: io.flow.v0.models.ExperienceReference;
@@ -6834,6 +6797,15 @@ declare namespace io.flow.v0.models {
6834
6797
  readonly password?: string;
6835
6798
  }
6836
6799
 
6800
+ interface FuelSurchargeAmountByWeightServiceFee {
6801
+ readonly discriminator: 'fuel_surcharge_amount_by_weight_service_fee';
6802
+ readonly amount: io.flow.v0.models.Money;
6803
+ readonly weight: io.flow.v0.models.FeeWeight;
6804
+ readonly regions?: string[];
6805
+ readonly starts_at?: string;
6806
+ readonly ends_at?: string;
6807
+ }
6808
+
6837
6809
  interface FuelSurchargeRatecardFee {
6838
6810
  readonly discriminator: 'fuel_surcharge_ratecard_fee';
6839
6811
  readonly amount: io.flow.v0.models.Money;
@@ -9902,8 +9874,14 @@ declare namespace io.flow.v0.models {
9902
9874
  }
9903
9875
 
9904
9876
  interface Payout {
9905
- readonly amount: number;
9906
- readonly sent_on: string;
9877
+ readonly status: io.flow.v0.models.PayoutStatus;
9878
+ readonly amount?: number;
9879
+ readonly sent_on?: string;
9880
+ }
9881
+
9882
+ interface PayoutStatus {
9883
+ readonly code: io.flow.v0.enums.PayoutStatusCode;
9884
+ readonly reason?: string;
9907
9885
  }
9908
9886
 
9909
9887
  interface PaypalAuthorizationDetails {
@@ -9966,13 +9944,6 @@ declare namespace io.flow.v0.models {
9966
9944
  readonly routes: io.flow.v0.models.PermittedRoute[];
9967
9945
  }
9968
9946
 
9969
- interface PermissionError {
9970
- readonly code: io.flow.v0.enums.GenericErrorCode;
9971
- readonly messages: string[];
9972
- readonly granting_roles?: io.flow.v0.enums.FlowRole[];
9973
- readonly admin_users?: io.flow.v0.models.User[];
9974
- }
9975
-
9976
9947
  interface PermittedRoute {
9977
9948
  readonly method: io.flow.v0.enums.PermittedHttpMethod;
9978
9949
  readonly path: string;
@@ -11750,6 +11721,7 @@ declare namespace io.flow.v0.models {
11750
11721
  }
11751
11722
 
11752
11723
  interface ShopifyMerchantApplication {
11724
+ readonly discriminator: 'shopify_merchant_application';
11753
11725
  readonly id: string;
11754
11726
  readonly company?: io.flow.v0.models.MerchantInfo;
11755
11727
  readonly indirect_tax_number?: string;
@@ -11775,6 +11747,7 @@ declare namespace io.flow.v0.models {
11775
11747
  }
11776
11748
 
11777
11749
  interface ShopifyMerchantApplicationForm {
11750
+ readonly discriminator: 'shopify_merchant_application_form';
11778
11751
  readonly company?: io.flow.v0.models.MerchantInfo;
11779
11752
  readonly indirect_tax_number?: string;
11780
11753
  readonly parent_company?: io.flow.v0.models.MerchantInfo;
@@ -11923,15 +11896,10 @@ declare namespace io.flow.v0.models {
11923
11896
  interface Statement {
11924
11897
  readonly id: string;
11925
11898
  readonly account: io.flow.v0.models.AccountReference;
11926
- readonly payout: io.flow.v0.models.StatementPayout;
11899
+ readonly payouts: io.flow.v0.models.Payout[];
11927
11900
  readonly attachments: io.flow.v0.models.Attachment[];
11928
11901
  }
11929
11902
 
11930
- interface StatementPayout {
11931
- readonly status: io.flow.v0.enums.PayoutStatus;
11932
- readonly payout?: io.flow.v0.models.Payout;
11933
- }
11934
-
11935
11903
  interface StreetAddress {
11936
11904
  readonly streets?: string[];
11937
11905
  readonly city?: string;
@@ -12592,11 +12560,12 @@ declare namespace io.flow.v0.models {
12592
12560
 
12593
12561
  interface Transaction {
12594
12562
  readonly id: string;
12563
+ readonly shopify_transaction_id: string;
12595
12564
  readonly order: io.flow.v0.models.BillingChannelOrderReference;
12596
12565
  readonly statement?: io.flow.v0.models.BillingChannelStatementReference;
12597
12566
  readonly payment_request?: io.flow.v0.models.BillingChannelPaymentRequestReference;
12598
12567
  readonly currency: string;
12599
- readonly source: io.flow.v0.unions.TransactionSource;
12568
+ readonly source: io.flow.v0.enums.TransactionSource;
12600
12569
  readonly gross: number;
12601
12570
  readonly fees: io.flow.v0.models.Deduction[];
12602
12571
  readonly withholdings: io.flow.v0.models.Deduction[];
@@ -12604,31 +12573,6 @@ declare namespace io.flow.v0.models {
12604
12573
  readonly created_at: string;
12605
12574
  }
12606
12575
 
12607
- interface TransactionSourceAdjustment {
12608
- readonly discriminator: 'transaction_source_adjustment';
12609
- readonly id: string;
12610
- }
12611
-
12612
- interface TransactionSourceCapture {
12613
- readonly discriminator: 'transaction_source_capture';
12614
- readonly id: string;
12615
- }
12616
-
12617
- interface TransactionSourceDispute {
12618
- readonly discriminator: 'transaction_source_dispute';
12619
- readonly id: string;
12620
- }
12621
-
12622
- interface TransactionSourceRefund {
12623
- readonly discriminator: 'transaction_source_refund';
12624
- readonly id: string;
12625
- }
12626
-
12627
- interface TransactionSourceShippingLabel {
12628
- readonly discriminator: 'transaction_source_shipping_label';
12629
- readonly id: string;
12630
- }
12631
-
12632
12576
  interface TransitEstimate {
12633
12577
  readonly origin: io.flow.v0.enums.DeliveryWindowLocation;
12634
12578
  readonly destination: io.flow.v0.enums.DeliveryWindowLocation;
@@ -13195,6 +13139,9 @@ declare namespace io.flow.v0.unions {
13195
13139
  | io.flow.v0.models.LocalizedItemVat
13196
13140
  | io.flow.v0.models.LocalizedItemDuty
13197
13141
  | io.flow.v0.models.LocalizedTotal;
13142
+ type MerchantApplication = io.flow.v0.models.ShopifyMerchantApplication;
13143
+ type MerchantApplicationForm =
13144
+ io.flow.v0.models.ShopifyMerchantApplicationForm;
13198
13145
  type OnlineAuthorizationDetails =
13199
13146
  | io.flow.v0.models.CryptopayAuthorizationDetails
13200
13147
  | io.flow.v0.models.PaypalAuthorizationDetails
@@ -13326,6 +13273,7 @@ declare namespace io.flow.v0.unions {
13326
13273
  | io.flow.v0.models.AdyenV3ChallengeToken;
13327
13274
  type ServiceFee =
13328
13275
  | io.flow.v0.models.FuelSurchargeServiceFee
13276
+ | io.flow.v0.models.FuelSurchargeAmountByWeightServiceFee
13329
13277
  | io.flow.v0.models.RemoteAreaServiceFee
13330
13278
  | io.flow.v0.models.EmergencySituationSurchargeServiceFee
13331
13279
  | io.flow.v0.models.PeakSurchargeServiceFee
@@ -13371,12 +13319,6 @@ declare namespace io.flow.v0.unions {
13371
13319
  | io.flow.v0.models.OrganizationTokenReference
13372
13320
  | io.flow.v0.models.OrganizationTokenV2Reference
13373
13321
  | io.flow.v0.models.PartnerTokenReference;
13374
- type TransactionSource =
13375
- | io.flow.v0.models.TransactionSourceCapture
13376
- | io.flow.v0.models.TransactionSourceRefund
13377
- | io.flow.v0.models.TransactionSourceDispute
13378
- | io.flow.v0.models.TransactionSourceAdjustment
13379
- | io.flow.v0.models.TransactionSourceShippingLabel;
13380
13322
  }
13381
13323
 
13382
13324
  export type AbandonedOrderEmailSettings =
@@ -13670,6 +13612,9 @@ export type ChannelToken = io.flow.v0.models.ChannelToken;
13670
13612
  export type ChannelTokenForm = io.flow.v0.models.ChannelTokenForm;
13671
13613
  export type ChannelTokenReference = io.flow.v0.models.ChannelTokenReference;
13672
13614
  export type ChannelUpserted = io.flow.v0.models.ChannelUpserted;
13615
+ export type ChannelViesRegistration = io.flow.v0.models.ChannelViesRegistration;
13616
+ export type ChannelViesRegistrationForm =
13617
+ io.flow.v0.models.ChannelViesRegistrationForm;
13673
13618
  export type CheckoutAttribute = io.flow.v0.models.CheckoutAttribute;
13674
13619
  export type CheckoutAttributeForm = io.flow.v0.models.CheckoutAttributeForm;
13675
13620
  export type CheckoutItemContent = io.flow.v0.models.CheckoutItemContent;
@@ -14074,6 +14019,8 @@ export type FtpOrganizationSettingsForm =
14074
14019
  io.flow.v0.models.FtpOrganizationSettingsForm;
14075
14020
  export type FtpServer = io.flow.v0.models.FtpServer;
14076
14021
  export type FtpUser = io.flow.v0.models.FtpUser;
14022
+ export type FuelSurchargeAmountByWeightServiceFee =
14023
+ io.flow.v0.models.FuelSurchargeAmountByWeightServiceFee;
14077
14024
  export type FuelSurchargeRatecardFee =
14078
14025
  io.flow.v0.models.FuelSurchargeRatecardFee;
14079
14026
  export type FuelSurchargeServiceFee = io.flow.v0.models.FuelSurchargeServiceFee;
@@ -14313,6 +14260,8 @@ export type MembershipForm = io.flow.v0.models.MembershipForm;
14313
14260
  export type MembershipPutForm = io.flow.v0.models.MembershipPutForm;
14314
14261
  export type MembershipUpsertedV2 = io.flow.v0.models.MembershipUpsertedV2;
14315
14262
  export type MembershipVersion = io.flow.v0.models.MembershipVersion;
14263
+ export type MerchantApplication = io.flow.v0.unions.MerchantApplication;
14264
+ export type MerchantApplicationForm = io.flow.v0.unions.MerchantApplicationForm;
14316
14265
  export type MerchantGiftCardBalance = io.flow.v0.models.MerchantGiftCardBalance;
14317
14266
  export type MerchantGiftCardBalanceForm =
14318
14267
  io.flow.v0.models.MerchantGiftCardBalanceForm;
@@ -14740,7 +14689,8 @@ export type PaymentType = io.flow.v0.enums.PaymentType;
14740
14689
  export type PaymentUpserted = io.flow.v0.models.PaymentUpserted;
14741
14690
  export type PaymentVersion = io.flow.v0.models.PaymentVersion;
14742
14691
  export type Payout = io.flow.v0.models.Payout;
14743
- export type PayoutStatus = io.flow.v0.enums.PayoutStatus;
14692
+ export type PayoutStatus = io.flow.v0.models.PayoutStatus;
14693
+ export type PayoutStatusCode = io.flow.v0.enums.PayoutStatusCode;
14744
14694
  export type PaypalAuthorizationDetails =
14745
14695
  io.flow.v0.models.PaypalAuthorizationDetails;
14746
14696
  export type PaypalAuthorizationForm = io.flow.v0.models.PaypalAuthorizationForm;
@@ -14752,7 +14702,6 @@ export type PeakSurchargeServiceFee = io.flow.v0.models.PeakSurchargeServiceFee;
14752
14702
  export type PercentMargin = io.flow.v0.models.PercentMargin;
14753
14703
  export type PermissionAudit = io.flow.v0.models.PermissionAudit;
14754
14704
  export type PermissionCheck = io.flow.v0.models.PermissionCheck;
14755
- export type PermissionError = io.flow.v0.models.PermissionError;
14756
14705
  export type PermittedHttpMethod = io.flow.v0.enums.PermittedHttpMethod;
14757
14706
  export type PermittedRoute = io.flow.v0.models.PermittedRoute;
14758
14707
  export type PfsInventoryCheckResponse =
@@ -15139,7 +15088,6 @@ export type SolidusVariantExportType =
15139
15088
  io.flow.v0.models.SolidusVariantExportType;
15140
15089
  export type SortDirection = io.flow.v0.enums.SortDirection;
15141
15090
  export type Statement = io.flow.v0.models.Statement;
15142
- export type StatementPayout = io.flow.v0.models.StatementPayout;
15143
15091
  export type Strategy = io.flow.v0.enums.Strategy;
15144
15092
  export type StreetAddress = io.flow.v0.models.StreetAddress;
15145
15093
  export type StripeAuthenticationData =
@@ -15281,16 +15229,7 @@ export type TradeAgreementDuty = io.flow.v0.models.TradeAgreementDuty;
15281
15229
  export type TradeAgreementName = io.flow.v0.enums.TradeAgreementName;
15282
15230
  export type TradeAgreementStatus = io.flow.v0.enums.TradeAgreementStatus;
15283
15231
  export type Transaction = io.flow.v0.models.Transaction;
15284
- export type TransactionSource = io.flow.v0.unions.TransactionSource;
15285
- export type TransactionSourceAdjustment =
15286
- io.flow.v0.models.TransactionSourceAdjustment;
15287
- export type TransactionSourceCapture =
15288
- io.flow.v0.models.TransactionSourceCapture;
15289
- export type TransactionSourceDispute =
15290
- io.flow.v0.models.TransactionSourceDispute;
15291
- export type TransactionSourceRefund = io.flow.v0.models.TransactionSourceRefund;
15292
- export type TransactionSourceShippingLabel =
15293
- io.flow.v0.models.TransactionSourceShippingLabel;
15232
+ export type TransactionSource = io.flow.v0.enums.TransactionSource;
15294
15233
  export type TransitEstimate = io.flow.v0.models.TransitEstimate;
15295
15234
  export type TransitWindow = io.flow.v0.models.TransitWindow;
15296
15235
  export type UnharmonizedItemExportType =