@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/dist/api.d.ts CHANGED
@@ -2223,7 +2223,6 @@ declare namespace io.flow.v0.enums {
2223
2223
  type CustomerAddressType = 'billing' | 'invoice' | 'shipping';
2224
2224
  type CvvCode = 'match' | 'suspicious' | 'unsupported' | 'no_match';
2225
2225
  type DayOfWeek = 'sunday' | 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday';
2226
- type DeductionType = 'mor' | 'fx' | 'tax' | 'duty';
2227
2226
  type DeliveredDuty = 'paid' | 'unpaid';
2228
2227
  type DeliveredDutyDisplayType = 'all' | 'single';
2229
2228
  type DeliveryOptionCostDetailComponentKey = 'ratecard_base_cost' | 'ratecard_ddp_fee' | 'ratecard_fuel_surcharge' | 'ratecard_oversized_shipment_fee' | 'ratecard_rural_shipment_fee' | 'ratecard_emergency_situation_surcharge_fee' | 'ratecard_peak_surcharge_fee' | 'ratecard_duties_taxes_paid_surcharge_fee' | 'center_commercial_invoice_fee' | 'center_inbound_carton_fee' | 'center_outbound_carton_fee';
@@ -2248,6 +2247,7 @@ declare namespace io.flow.v0.enums {
2248
2247
  type ExperienceStatus = 'draft' | 'active' | 'archiving' | 'archived';
2249
2248
  type ExportStatus = 'created' | 'processing' | 'completed' | 'failed';
2250
2249
  type ExporterOfRecord = 'flow' | 'organization';
2250
+ type FeeDeductionType = 'mor' | 'fx' | 'processing' | 'rate_lock' | 'duty_guarantee' | 'revenue_share';
2251
2251
  type FlowBehavior = 'view_consumer_data';
2252
2252
  type FlowEntity = 'flow-usa' | 'flow-irl' | 'flow-can';
2253
2253
  type FlowRole = 'organization_admin' | 'organization_merchant' | 'organization_customer_service' | 'organization_fulfillment' | 'organization_marketing' | 'organization_finance' | 'flow_operations' | 'channel_admin' | 'channel_organization_admin';
@@ -2312,7 +2312,7 @@ declare namespace io.flow.v0.enums {
2312
2312
  type PaymentSourceConfirmationActionType = 'cvv' | 'billing_address' | 'number';
2313
2313
  type PaymentStatus = 'requires_payment_method' | 'requires_action' | 'processing' | 'cancelled' | 'expired' | 'authorized' | 'reversed' | 'captured' | 'refunded' | 'in_dispute' | 'charged_back';
2314
2314
  type PaymentType = 'card' | 'klarna' | 'googlepay' | 'paypal' | 'applepay' | 'ideal' | 'sofort' | 'afterpay' | 'bancontact';
2315
- type PayoutStatusCode = 'scheduled' | 'sent' | 'cancelled' | 'not_necessary' | 'failed';
2315
+ type PayoutStatusCode = 'scheduled' | 'sent' | 'cancelled' | 'failed' | 'succeeded';
2316
2316
  type PermittedHttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
2317
2317
  type PhysicalDeliverySpecialSerivce = 'cold_storage' | 'hazardous' | 'perishable';
2318
2318
  type PostalType = 'eircode' | 'pin' | 'postal' | 'zip';
@@ -2377,6 +2377,7 @@ declare namespace io.flow.v0.enums {
2377
2377
  type ValueAddedService = 'Hazardous Material';
2378
2378
  type Visibility = 'public' | 'private';
2379
2379
  type WebhookStatus = 'pending' | 'success' | 'failure';
2380
+ type WithholdingDeductionType = 'tax' | 'duty' | 'freight' | 'insurance';
2380
2381
  type ZeroAmountIndicator = 'zero' | 'free';
2381
2382
  type ZeroLevyReasonCode = 'zero_basis' | 'zero_rate_on_goods' | 'value_rounds_to_zero' | 'order_below_de_minimis_threshold' | 'amount_below_de_minimis_threshold' | 'delivered_unpaid' | 'duty_free_domestic' | 'duty_free_intra_community' | 'duty_free_reimport' | 'duty_free_by_trade_agreement';
2382
2383
  }
@@ -4132,11 +4133,6 @@ declare namespace io.flow.v0.models {
4132
4133
  readonly discriminator: 'ddp_ratecard_fee';
4133
4134
  readonly amount: number;
4134
4135
  }
4135
- interface Deduction {
4136
- readonly type: io.flow.v0.enums.DeductionType;
4137
- readonly amount: number;
4138
- readonly description: string;
4139
- }
4140
4136
  interface DeliveredDutySetting {
4141
4137
  readonly default: io.flow.v0.enums.DeliveredDuty;
4142
4138
  readonly available: io.flow.v0.enums.DeliveredDuty[];
@@ -4910,6 +4906,11 @@ declare namespace io.flow.v0.models {
4910
4906
  readonly code: 'external_api_timeout';
4911
4907
  readonly messages: string[];
4912
4908
  }
4909
+ interface FeeDeduction {
4910
+ readonly type: io.flow.v0.enums.FeeDeductionType;
4911
+ readonly amount: number;
4912
+ readonly description?: string;
4913
+ }
4913
4914
  interface FeeWeight {
4914
4915
  readonly weight: number;
4915
4916
  readonly unit: io.flow.v0.enums.UnitOfMeasurement;
@@ -7677,8 +7678,8 @@ declare namespace io.flow.v0.models {
7677
7678
  }
7678
7679
  interface Payout {
7679
7680
  readonly status: io.flow.v0.models.PayoutStatus;
7680
- readonly amount?: number;
7681
- readonly sent_on?: string;
7681
+ readonly amount: number;
7682
+ readonly sent_on: string;
7682
7683
  }
7683
7684
  interface PayoutStatus {
7684
7685
  readonly code: io.flow.v0.enums.PayoutStatusCode;
@@ -9423,7 +9424,7 @@ declare namespace io.flow.v0.models {
9423
9424
  interface Statement {
9424
9425
  readonly id: string;
9425
9426
  readonly account: io.flow.v0.models.AccountReference;
9426
- readonly payouts: io.flow.v0.models.Payout[];
9427
+ readonly payout?: io.flow.v0.models.Payout;
9427
9428
  readonly attachments: io.flow.v0.models.Attachment[];
9428
9429
  }
9429
9430
  interface StreetAddress {
@@ -10003,8 +10004,8 @@ declare namespace io.flow.v0.models {
10003
10004
  readonly currency: string;
10004
10005
  readonly source: io.flow.v0.enums.TransactionSource;
10005
10006
  readonly gross: number;
10006
- readonly fees: io.flow.v0.models.Deduction[];
10007
- readonly withholdings: io.flow.v0.models.Deduction[];
10007
+ readonly fees: io.flow.v0.models.FeeDeduction[];
10008
+ readonly withholdings: io.flow.v0.models.WithholdingDeduction[];
10008
10009
  readonly net: number;
10009
10010
  readonly created_at: string;
10010
10011
  }
@@ -10196,6 +10197,11 @@ declare namespace io.flow.v0.models {
10196
10197
  readonly retry_sleep_ms: number;
10197
10198
  readonly sleep_ms: number;
10198
10199
  }
10200
+ interface WithholdingDeduction {
10201
+ readonly type: io.flow.v0.enums.WithholdingDeductionType;
10202
+ readonly amount: number;
10203
+ readonly description?: string;
10204
+ }
10199
10205
  interface Zone {
10200
10206
  readonly postals?: string[];
10201
10207
  readonly provinces?: string[];
@@ -10636,8 +10642,6 @@ export declare type DatetimeRange = io.flow.v0.models.DatetimeRange;
10636
10642
  export declare type DatetimeWithTimezone = io.flow.v0.models.DatetimeWithTimezone;
10637
10643
  export declare type DayOfWeek = io.flow.v0.enums.DayOfWeek;
10638
10644
  export declare type DdpRatecardFee = io.flow.v0.models.DdpRatecardFee;
10639
- export declare type Deduction = io.flow.v0.models.Deduction;
10640
- export declare type DeductionType = io.flow.v0.enums.DeductionType;
10641
10645
  export declare type DeliveredDuty = io.flow.v0.enums.DeliveredDuty;
10642
10646
  export declare type DeliveredDutyDisplayType = io.flow.v0.enums.DeliveredDutyDisplayType;
10643
10647
  export declare type DeliveredDutySetting = io.flow.v0.models.DeliveredDutySetting;
@@ -10809,6 +10813,8 @@ export declare type ExportType = io.flow.v0.unions.ExportType;
10809
10813
  export declare type ExportVersion = io.flow.v0.models.ExportVersion;
10810
10814
  export declare type ExporterOfRecord = io.flow.v0.enums.ExporterOfRecord;
10811
10815
  export declare type ExternalApiTimeoutReservationError = io.flow.v0.models.ExternalApiTimeoutReservationError;
10816
+ export declare type FeeDeduction = io.flow.v0.models.FeeDeduction;
10817
+ export declare type FeeDeductionType = io.flow.v0.enums.FeeDeductionType;
10812
10818
  export declare type FeeWeight = io.flow.v0.models.FeeWeight;
10813
10819
  export declare type FieldValidationMax = io.flow.v0.models.FieldValidationMax;
10814
10820
  export declare type FieldValidationMin = io.flow.v0.models.FieldValidationMin;
@@ -11850,6 +11856,8 @@ export declare type WebhookRequestReference = io.flow.v0.models.WebhookRequestRe
11850
11856
  export declare type WebhookResponse = io.flow.v0.models.WebhookResponse;
11851
11857
  export declare type WebhookSettings = io.flow.v0.models.WebhookSettings;
11852
11858
  export declare type WebhookStatus = io.flow.v0.enums.WebhookStatus;
11859
+ export declare type WithholdingDeduction = io.flow.v0.models.WithholdingDeduction;
11860
+ export declare type WithholdingDeductionType = io.flow.v0.enums.WithholdingDeductionType;
11853
11861
  export declare type ZeroAmountIndicator = io.flow.v0.enums.ZeroAmountIndicator;
11854
11862
  export declare type ZeroLevyReasonCode = io.flow.v0.enums.ZeroLevyReasonCode;
11855
11863
  export declare type Zone = io.flow.v0.models.Zone;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/types",
3
- "version": "11.24.5",
3
+ "version": "11.24.7",
4
4
  "description": "TypeScript type definitions for custom types found in Flow API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,5 +25,5 @@
25
25
  "maintainers": [
26
26
  "Christian Muñoz <christian.munoz@flow.io>"
27
27
  ],
28
- "gitHead": "fd6cd7b13d84f3237b236a265153ac81ed13f91e"
28
+ "gitHead": "08dbb863b30de4a9e729a484030de6d634c196cf"
29
29
  }