@flowio/types 11.24.5 → 11.24.6

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,7 @@ 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 = 'mor' | 'fx';
3183
3183
  type FlowBehavior = 'view_consumer_data';
3184
3184
  type FlowEntity = 'flow-usa' | 'flow-irl' | 'flow-can';
3185
3185
  type FlowRole =
@@ -3479,8 +3479,8 @@ declare namespace io.flow.v0.enums {
3479
3479
  | 'scheduled'
3480
3480
  | 'sent'
3481
3481
  | 'cancelled'
3482
- | 'not_necessary'
3483
- | 'failed';
3482
+ | 'failed'
3483
+ | 'succeeded';
3484
3484
  type PermittedHttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
3485
3485
  type PhysicalDeliverySpecialSerivce =
3486
3486
  | 'cold_storage'
@@ -3688,6 +3688,7 @@ declare namespace io.flow.v0.enums {
3688
3688
  type ValueAddedService = 'Hazardous Material';
3689
3689
  type Visibility = 'public' | 'private';
3690
3690
  type WebhookStatus = 'pending' | 'success' | 'failure';
3691
+ type WithholdingDeductionType = 'tax' | 'duty';
3691
3692
  type ZeroAmountIndicator = 'zero' | 'free';
3692
3693
  type ZeroLevyReasonCode =
3693
3694
  | 'zero_basis'
@@ -5733,12 +5734,6 @@ declare namespace io.flow.v0.models {
5733
5734
  readonly amount: number;
5734
5735
  }
5735
5736
 
5736
- interface Deduction {
5737
- readonly type: io.flow.v0.enums.DeductionType;
5738
- readonly amount: number;
5739
- readonly description: string;
5740
- }
5741
-
5742
5737
  interface DeliveredDutySetting {
5743
5738
  readonly default: io.flow.v0.enums.DeliveredDuty;
5744
5739
  readonly available: io.flow.v0.enums.DeliveredDuty[];
@@ -6640,6 +6635,12 @@ declare namespace io.flow.v0.models {
6640
6635
  readonly messages: string[];
6641
6636
  }
6642
6637
 
6638
+ interface FeeDeduction {
6639
+ readonly type: io.flow.v0.enums.FeeDeductionType;
6640
+ readonly amount: number;
6641
+ readonly description: string;
6642
+ }
6643
+
6643
6644
  interface FeeWeight {
6644
6645
  readonly weight: number;
6645
6646
  readonly unit: io.flow.v0.enums.UnitOfMeasurement;
@@ -9875,8 +9876,8 @@ declare namespace io.flow.v0.models {
9875
9876
 
9876
9877
  interface Payout {
9877
9878
  readonly status: io.flow.v0.models.PayoutStatus;
9878
- readonly amount?: number;
9879
- readonly sent_on?: string;
9879
+ readonly amount: number;
9880
+ readonly sent_on: string;
9880
9881
  }
9881
9882
 
9882
9883
  interface PayoutStatus {
@@ -11896,7 +11897,7 @@ declare namespace io.flow.v0.models {
11896
11897
  interface Statement {
11897
11898
  readonly id: string;
11898
11899
  readonly account: io.flow.v0.models.AccountReference;
11899
- readonly payouts: io.flow.v0.models.Payout[];
11900
+ readonly payout?: io.flow.v0.models.Payout;
11900
11901
  readonly attachments: io.flow.v0.models.Attachment[];
11901
11902
  }
11902
11903
 
@@ -12567,8 +12568,8 @@ declare namespace io.flow.v0.models {
12567
12568
  readonly currency: string;
12568
12569
  readonly source: io.flow.v0.enums.TransactionSource;
12569
12570
  readonly gross: number;
12570
- readonly fees: io.flow.v0.models.Deduction[];
12571
- readonly withholdings: io.flow.v0.models.Deduction[];
12571
+ readonly fees: io.flow.v0.models.FeeDeduction[];
12572
+ readonly withholdings: io.flow.v0.models.WithholdingDeduction[];
12572
12573
  readonly net: number;
12573
12574
  readonly created_at: string;
12574
12575
  }
@@ -12791,6 +12792,12 @@ declare namespace io.flow.v0.models {
12791
12792
  readonly sleep_ms: number;
12792
12793
  }
12793
12794
 
12795
+ interface WithholdingDeduction {
12796
+ readonly type: io.flow.v0.enums.WithholdingDeductionType;
12797
+ readonly amount: number;
12798
+ readonly description: string;
12799
+ }
12800
+
12794
12801
  interface Zone {
12795
12802
  readonly postals?: string[];
12796
12803
  readonly provinces?: string[];
@@ -13746,8 +13753,6 @@ export type DatetimeRange = io.flow.v0.models.DatetimeRange;
13746
13753
  export type DatetimeWithTimezone = io.flow.v0.models.DatetimeWithTimezone;
13747
13754
  export type DayOfWeek = io.flow.v0.enums.DayOfWeek;
13748
13755
  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
13756
  export type DeliveredDuty = io.flow.v0.enums.DeliveredDuty;
13752
13757
  export type DeliveredDutyDisplayType =
13753
13758
  io.flow.v0.enums.DeliveredDutyDisplayType;
@@ -13978,6 +13983,8 @@ export type ExportVersion = io.flow.v0.models.ExportVersion;
13978
13983
  export type ExporterOfRecord = io.flow.v0.enums.ExporterOfRecord;
13979
13984
  export type ExternalApiTimeoutReservationError =
13980
13985
  io.flow.v0.models.ExternalApiTimeoutReservationError;
13986
+ export type FeeDeduction = io.flow.v0.models.FeeDeduction;
13987
+ export type FeeDeductionType = io.flow.v0.enums.FeeDeductionType;
13981
13988
  export type FeeWeight = io.flow.v0.models.FeeWeight;
13982
13989
  export type FieldValidationMax = io.flow.v0.models.FieldValidationMax;
13983
13990
  export type FieldValidationMin = io.flow.v0.models.FieldValidationMin;
@@ -15276,6 +15283,9 @@ export type WebhookRequestReference = io.flow.v0.models.WebhookRequestReference;
15276
15283
  export type WebhookResponse = io.flow.v0.models.WebhookResponse;
15277
15284
  export type WebhookSettings = io.flow.v0.models.WebhookSettings;
15278
15285
  export type WebhookStatus = io.flow.v0.enums.WebhookStatus;
15286
+ export type WithholdingDeduction = io.flow.v0.models.WithholdingDeduction;
15287
+ export type WithholdingDeductionType =
15288
+ io.flow.v0.enums.WithholdingDeductionType;
15279
15289
  export type ZeroAmountIndicator = io.flow.v0.enums.ZeroAmountIndicator;
15280
15290
  export type ZeroLevyReasonCode = io.flow.v0.enums.ZeroLevyReasonCode;
15281
15291
  export type Zone = io.flow.v0.models.Zone;