@flowio/types 11.24.5 → 11.24.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/api.ts CHANGED
@@ -2957,7 +2957,6 @@ declare namespace io.flow.v0.enums {
2957
2957
  | 'thursday'
2958
2958
  | 'friday'
2959
2959
  | 'saturday';
2960
- type DeductionType = 'mor' | 'fx' | 'tax' | 'duty';
2961
2960
  type DeliveredDuty = 'paid' | 'unpaid';
2962
2961
  type DeliveredDutyDisplayType = 'all' | 'single';
2963
2962
  type DeliveryOptionCostDetailComponentKey =
@@ -3180,6 +3179,13 @@ declare namespace io.flow.v0.enums {
3180
3179
  type ExperienceStatus = 'draft' | 'active' | 'archiving' | 'archived';
3181
3180
  type ExportStatus = 'created' | 'processing' | 'completed' | 'failed';
3182
3181
  type ExporterOfRecord = 'flow' | 'organization';
3182
+ type FeeDeductionType =
3183
+ | 'mor'
3184
+ | 'fx'
3185
+ | 'processing'
3186
+ | 'rate_lock'
3187
+ | 'duty_guarantee'
3188
+ | 'revenue_share';
3183
3189
  type FlowBehavior = 'view_consumer_data';
3184
3190
  type FlowEntity = 'flow-usa' | 'flow-irl' | 'flow-can';
3185
3191
  type FlowRole =
@@ -3479,8 +3485,8 @@ declare namespace io.flow.v0.enums {
3479
3485
  | 'scheduled'
3480
3486
  | 'sent'
3481
3487
  | 'cancelled'
3482
- | 'not_necessary'
3483
- | 'failed';
3488
+ | 'failed'
3489
+ | 'succeeded';
3484
3490
  type PermittedHttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
3485
3491
  type PhysicalDeliverySpecialSerivce =
3486
3492
  | 'cold_storage'
@@ -3688,6 +3694,7 @@ declare namespace io.flow.v0.enums {
3688
3694
  type ValueAddedService = 'Hazardous Material';
3689
3695
  type Visibility = 'public' | 'private';
3690
3696
  type WebhookStatus = 'pending' | 'success' | 'failure';
3697
+ type WithholdingDeductionType = 'tax' | 'duty' | 'freight' | 'insurance';
3691
3698
  type ZeroAmountIndicator = 'zero' | 'free';
3692
3699
  type ZeroLevyReasonCode =
3693
3700
  | 'zero_basis'
@@ -5733,12 +5740,6 @@ declare namespace io.flow.v0.models {
5733
5740
  readonly amount: number;
5734
5741
  }
5735
5742
 
5736
- interface Deduction {
5737
- readonly type: io.flow.v0.enums.DeductionType;
5738
- readonly amount: number;
5739
- readonly description: string;
5740
- }
5741
-
5742
5743
  interface DeliveredDutySetting {
5743
5744
  readonly default: io.flow.v0.enums.DeliveredDuty;
5744
5745
  readonly available: io.flow.v0.enums.DeliveredDuty[];
@@ -6640,6 +6641,12 @@ declare namespace io.flow.v0.models {
6640
6641
  readonly messages: string[];
6641
6642
  }
6642
6643
 
6644
+ interface FeeDeduction {
6645
+ readonly type: io.flow.v0.enums.FeeDeductionType;
6646
+ readonly amount: number;
6647
+ readonly description?: string;
6648
+ }
6649
+
6643
6650
  interface FeeWeight {
6644
6651
  readonly weight: number;
6645
6652
  readonly unit: io.flow.v0.enums.UnitOfMeasurement;
@@ -9875,8 +9882,8 @@ declare namespace io.flow.v0.models {
9875
9882
 
9876
9883
  interface Payout {
9877
9884
  readonly status: io.flow.v0.models.PayoutStatus;
9878
- readonly amount?: number;
9879
- readonly sent_on?: string;
9885
+ readonly amount: number;
9886
+ readonly sent_on: string;
9880
9887
  }
9881
9888
 
9882
9889
  interface PayoutStatus {
@@ -11896,7 +11903,7 @@ declare namespace io.flow.v0.models {
11896
11903
  interface Statement {
11897
11904
  readonly id: string;
11898
11905
  readonly account: io.flow.v0.models.AccountReference;
11899
- readonly payouts: io.flow.v0.models.Payout[];
11906
+ readonly payout?: io.flow.v0.models.Payout;
11900
11907
  readonly attachments: io.flow.v0.models.Attachment[];
11901
11908
  }
11902
11909
 
@@ -12567,8 +12574,8 @@ declare namespace io.flow.v0.models {
12567
12574
  readonly currency: string;
12568
12575
  readonly source: io.flow.v0.enums.TransactionSource;
12569
12576
  readonly gross: number;
12570
- readonly fees: io.flow.v0.models.Deduction[];
12571
- readonly withholdings: io.flow.v0.models.Deduction[];
12577
+ readonly fees: io.flow.v0.models.FeeDeduction[];
12578
+ readonly withholdings: io.flow.v0.models.WithholdingDeduction[];
12572
12579
  readonly net: number;
12573
12580
  readonly created_at: string;
12574
12581
  }
@@ -12791,6 +12798,12 @@ declare namespace io.flow.v0.models {
12791
12798
  readonly sleep_ms: number;
12792
12799
  }
12793
12800
 
12801
+ interface WithholdingDeduction {
12802
+ readonly type: io.flow.v0.enums.WithholdingDeductionType;
12803
+ readonly amount: number;
12804
+ readonly description?: string;
12805
+ }
12806
+
12794
12807
  interface Zone {
12795
12808
  readonly postals?: string[];
12796
12809
  readonly provinces?: string[];
@@ -13746,8 +13759,6 @@ export type DatetimeRange = io.flow.v0.models.DatetimeRange;
13746
13759
  export type DatetimeWithTimezone = io.flow.v0.models.DatetimeWithTimezone;
13747
13760
  export type DayOfWeek = io.flow.v0.enums.DayOfWeek;
13748
13761
  export type DdpRatecardFee = io.flow.v0.models.DdpRatecardFee;
13749
- export type Deduction = io.flow.v0.models.Deduction;
13750
- export type DeductionType = io.flow.v0.enums.DeductionType;
13751
13762
  export type DeliveredDuty = io.flow.v0.enums.DeliveredDuty;
13752
13763
  export type DeliveredDutyDisplayType =
13753
13764
  io.flow.v0.enums.DeliveredDutyDisplayType;
@@ -13978,6 +13989,8 @@ export type ExportVersion = io.flow.v0.models.ExportVersion;
13978
13989
  export type ExporterOfRecord = io.flow.v0.enums.ExporterOfRecord;
13979
13990
  export type ExternalApiTimeoutReservationError =
13980
13991
  io.flow.v0.models.ExternalApiTimeoutReservationError;
13992
+ export type FeeDeduction = io.flow.v0.models.FeeDeduction;
13993
+ export type FeeDeductionType = io.flow.v0.enums.FeeDeductionType;
13981
13994
  export type FeeWeight = io.flow.v0.models.FeeWeight;
13982
13995
  export type FieldValidationMax = io.flow.v0.models.FieldValidationMax;
13983
13996
  export type FieldValidationMin = io.flow.v0.models.FieldValidationMin;
@@ -15276,6 +15289,9 @@ export type WebhookRequestReference = io.flow.v0.models.WebhookRequestReference;
15276
15289
  export type WebhookResponse = io.flow.v0.models.WebhookResponse;
15277
15290
  export type WebhookSettings = io.flow.v0.models.WebhookSettings;
15278
15291
  export type WebhookStatus = io.flow.v0.enums.WebhookStatus;
15292
+ export type WithholdingDeduction = io.flow.v0.models.WithholdingDeduction;
15293
+ export type WithholdingDeductionType =
15294
+ io.flow.v0.enums.WithholdingDeductionType;
15279
15295
  export type ZeroAmountIndicator = io.flow.v0.enums.ZeroAmountIndicator;
15280
15296
  export type ZeroLevyReasonCode = io.flow.v0.enums.ZeroLevyReasonCode;
15281
15297
  export type Zone = io.flow.v0.models.Zone;