@flowio/types 11.19.34 → 11.19.35

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.
@@ -3842,11 +3842,6 @@ declare namespace io.flow.label.v0.models {
3842
3842
  readonly origin?: io.flow.fulfillment.v0.models.ShippingAddress;
3843
3843
  readonly shipment_recipient?: io.flow.label.v0.enums.ShipmentRecipient;
3844
3844
  }
3845
- interface FlowShippingLabelRatecardSummary {
3846
- readonly discriminator: 'flow';
3847
- readonly id: string;
3848
- readonly cost: io.flow.common.v0.models.Money;
3849
- }
3850
3845
  interface LabelOrderSummary {
3851
3846
  readonly id: string;
3852
3847
  readonly number: string;
@@ -3862,14 +3857,9 @@ declare namespace io.flow.label.v0.models {
3862
3857
  readonly tracking_numbers: string[];
3863
3858
  readonly service?: string;
3864
3859
  }
3865
- interface OrganizationShippingLabelRatecardSummary {
3866
- readonly discriminator: 'organization';
3867
- readonly id: string;
3868
- readonly cost?: io.flow.common.v0.models.Money;
3869
- }
3870
3860
  interface ShippingLabel {
3871
3861
  readonly id: string;
3872
- readonly ratecard?: io.flow.label.v0.unions.ShippingLabelRatecardSummary;
3862
+ readonly hop?: io.flow.label.v0.models.ShippingLabelHopSummary;
3873
3863
  readonly attributes: Record<string, string>;
3874
3864
  readonly carrier_tracking_number: string;
3875
3865
  readonly carrier_tracking_number_url: string;
@@ -3898,11 +3888,23 @@ declare namespace io.flow.label.v0.models {
3898
3888
  readonly html?: string;
3899
3889
  readonly required: boolean;
3900
3890
  }
3891
+ interface ShippingLabelHopSummary {
3892
+ readonly lane: io.flow.label.v0.models.ShippingLabelLaneSummary;
3893
+ readonly cost: io.flow.common.v0.models.Money;
3894
+ }
3895
+ interface ShippingLabelLaneSummary {
3896
+ readonly id: string;
3897
+ readonly ratecard: io.flow.label.v0.models.ShippingLabelRatecardSummary;
3898
+ }
3901
3899
  interface ShippingLabelPackage {
3902
3900
  readonly dimensions: io.flow.common.v0.models.Dimension;
3903
3901
  readonly items: io.flow.common.v0.models.LineItemForm[];
3904
3902
  readonly reference_number?: string;
3905
3903
  }
3904
+ interface ShippingLabelRatecardSummary {
3905
+ readonly id: string;
3906
+ readonly ratecard_owner: io.flow.fulfillment.v0.enums.RatecardOwner;
3907
+ }
3906
3908
  interface ShippingLabelSummary {
3907
3909
  readonly id: string;
3908
3910
  readonly flow_tracking_number: string;
@@ -3962,7 +3964,6 @@ declare namespace io.flow.label.v0.models {
3962
3964
  }
3963
3965
  declare namespace io.flow.label.v0.unions {
3964
3966
  type ShippingLabelForm = io.flow.label.v0.models.DetailedShippingLabelForm | io.flow.label.v0.models.SummaryShippingLabelForm;
3965
- type ShippingLabelRatecardSummary = io.flow.label.v0.models.FlowShippingLabelRatecardSummary | io.flow.label.v0.models.OrganizationShippingLabelRatecardSummary;
3966
3967
  type ShippingNotificationForm = io.flow.label.v0.models.DetailedShippingNotificationForm | io.flow.label.v0.models.SinglePackageShippingNotificationForm | io.flow.label.v0.models.SummaryShippingNotificationForm;
3967
3968
  }
3968
3969
  declare namespace io.flow.external.paypal.v1.enums {
@@ -4719,6 +4720,8 @@ declare namespace io.flow.adyen.v0.models {
4719
4720
  readonly browserInfo?: io.flow.adyen.v0.unions.BrowserInfo;
4720
4721
  readonly threeDS2RequestData?: io.flow.adyen.v0.models.Threeds2RequestData;
4721
4722
  readonly recurringProcessingModel?: io.flow.adyen.v0.enums.RecurringProcessingModel;
4723
+ readonly mcc?: string;
4724
+ readonly metadata?: any;
4722
4725
  }
4723
4726
  interface AuthorizeRequest3D {
4724
4727
  readonly merchantAccount: string;
@@ -4880,6 +4883,8 @@ declare namespace io.flow.adyen.v0.models {
4880
4883
  readonly origin?: string;
4881
4884
  readonly channel?: io.flow.adyen.v0.enums.Channel;
4882
4885
  readonly returnUrl?: string;
4886
+ readonly mcc?: string;
4887
+ readonly metadata?: any;
4883
4888
  }
4884
4889
  interface PaymentResponse {
4885
4890
  readonly resultCode: io.flow.adyen.v0.enums.ResultCode;
@@ -5832,7 +5837,7 @@ declare namespace io.flow.shopify.markets.v0.enums {
5832
5837
  type ShopifyOrderTransactionStatus = 'pending' | 'failure' | 'success' | 'error';
5833
5838
  type ShopifyOrderValueType = 'string' | 'integer';
5834
5839
  type ShopifyWebhookFormat = 'json' | 'xml';
5835
- type ShopifyWebhookTopic = 'orders/cancelled' | 'orders/create' | 'orders/fulfilled' | 'orders/paid' | 'orders/partially_fulfilled' | 'orders/updated' | 'orders/delete' | 'orders/edited' | 'products/create' | 'products/delete' | 'products/update' | 'refunds/create' | 'fulfillment_events/create' | 'fulfillment_events/delete' | 'themes/create' | 'themes/publish' | 'themes/update';
5840
+ type ShopifyWebhookTopic = 'customers/redact' | 'customers/data_request' | 'orders/cancelled' | 'orders/create' | 'orders/fulfilled' | 'orders/paid' | 'orders/partially_fulfilled' | 'orders/updated' | 'orders/delete' | 'orders/edited' | 'products/create' | 'products/delete' | 'products/update' | 'refunds/create' | 'fulfillment_events/create' | 'fulfillment_events/delete' | 'shop/redact' | 'themes/create' | 'themes/publish' | 'themes/update';
5836
5841
  }
5837
5842
  declare namespace io.flow.shopify.markets.v0.models {
5838
5843
  interface ResponseShopifyTransactions {
@@ -6260,6 +6265,27 @@ declare namespace io.flow.shopify.markets.v0.models {
6260
6265
  readonly kind: string;
6261
6266
  readonly gateway: string;
6262
6267
  }
6268
+ interface ShopifyWebhookCustomersDataRequest {
6269
+ readonly shop_id: number;
6270
+ readonly shop_domain: string;
6271
+ readonly orders_requested: number[];
6272
+ readonly customer: io.flow.shopify.markets.v0.models.ShopifyWebhookCustomersRedactCustomer;
6273
+ readonly data_request: io.flow.shopify.markets.v0.models.ShopifyWebhookCustomersDataRequestId;
6274
+ }
6275
+ interface ShopifyWebhookCustomersDataRequestId {
6276
+ readonly id: number;
6277
+ }
6278
+ interface ShopifyWebhookCustomersRedact {
6279
+ readonly shop_id: number;
6280
+ readonly shop_domain: string;
6281
+ readonly customer: io.flow.shopify.markets.v0.models.ShopifyWebhookCustomersRedactCustomer;
6282
+ readonly orders_to_redact?: number[];
6283
+ }
6284
+ interface ShopifyWebhookCustomersRedactCustomer {
6285
+ readonly id: number;
6286
+ readonly email?: string;
6287
+ readonly phone?: string;
6288
+ }
6263
6289
  interface ShopifyWebhookRequest {
6264
6290
  readonly topic: io.flow.shopify.markets.v0.enums.ShopifyWebhookTopic;
6265
6291
  readonly address: string;
@@ -6283,6 +6309,10 @@ declare namespace io.flow.shopify.markets.v0.models {
6283
6309
  interface ShopifyWebhookResponseWrapper {
6284
6310
  readonly webhook: io.flow.shopify.markets.v0.models.ShopifyWebhookResponse;
6285
6311
  }
6312
+ interface ShopifyWebhookShopRedact {
6313
+ readonly shop_id: number;
6314
+ readonly shop_domain: string;
6315
+ }
6286
6316
  interface ShopifyWebhooksResponseWrapper {
6287
6317
  readonly webhooks: io.flow.shopify.markets.v0.models.ShopifyWebhookResponse[];
6288
6318
  }
@@ -7081,6 +7111,25 @@ declare namespace io.flow.ratecard.v0.models {
7081
7111
  readonly fees: io.flow.ratecard.v0.unions.RatecardFee[];
7082
7112
  readonly total: number;
7083
7113
  }
7114
+ interface HopEstimateV2 {
7115
+ readonly origin_address: io.flow.fulfillment.v0.models.ShippingAddress;
7116
+ readonly destination_address: io.flow.fulfillment.v0.models.ShippingAddress;
7117
+ readonly service: io.flow.ratecard.v0.models.RatecardServiceSummary;
7118
+ readonly shipment_window: io.flow.ratecard.v0.models.ShipmentWindow;
7119
+ readonly currency: string;
7120
+ readonly amount: number;
7121
+ readonly fees: io.flow.ratecard.v0.unions.RatecardFee[];
7122
+ readonly total: number;
7123
+ readonly lane: io.flow.ratecard.v0.models.LaneSummary;
7124
+ }
7125
+ interface HopV2 {
7126
+ readonly hop_number: number;
7127
+ readonly hop_estimate: io.flow.ratecard.v0.models.HopEstimateV2;
7128
+ }
7129
+ interface LaneSummary {
7130
+ readonly id: string;
7131
+ readonly ratecard: io.flow.ratecard.v0.models.RatecardSummary;
7132
+ }
7084
7133
  interface OversizedShipmentRatecardFee {
7085
7134
  readonly discriminator: 'oversized_shipment_ratecard_fee';
7086
7135
  readonly weight_threshold: number;
@@ -7173,6 +7222,14 @@ declare namespace io.flow.ratecard.v0.models {
7173
7222
  readonly line_items?: io.flow.common.v0.models.LineItemForm[];
7174
7223
  readonly ratecard: io.flow.ratecard.v0.models.RatecardSummary;
7175
7224
  }
7225
+ interface RatecardEstimateV4 {
7226
+ readonly discriminator: 'ratecard_estimate_v4';
7227
+ readonly hops: io.flow.ratecard.v0.models.HopV2[];
7228
+ readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
7229
+ readonly dimensional_weight?: io.flow.common.v0.models.Measurement;
7230
+ readonly gravitational_weight?: io.flow.common.v0.models.Measurement;
7231
+ readonly line_items?: io.flow.common.v0.models.LineItemForm[];
7232
+ }
7176
7233
  interface RatecardForm {
7177
7234
  readonly direction: io.flow.label.v0.enums.Direction;
7178
7235
  readonly effective_at: string;
@@ -7290,7 +7347,7 @@ declare namespace io.flow.ratecard.v0.models {
7290
7347
  }
7291
7348
  }
7292
7349
  declare namespace io.flow.ratecard.v0.unions {
7293
- type RatecardEstimate = io.flow.ratecard.v0.models.RatecardEstimateV1 | io.flow.ratecard.v0.models.RatecardEstimateV2 | io.flow.ratecard.v0.models.RatecardEstimateV3;
7350
+ type RatecardEstimate = io.flow.ratecard.v0.models.RatecardEstimateV1 | io.flow.ratecard.v0.models.RatecardEstimateV2 | io.flow.ratecard.v0.models.RatecardEstimateV3 | io.flow.ratecard.v0.models.RatecardEstimateV4;
7294
7351
  type RatecardFee = io.flow.ratecard.v0.models.DdpRatecardFee | io.flow.ratecard.v0.models.FuelSurchargeRatecardFee | io.flow.ratecard.v0.models.OversizedShipmentRatecardFee | io.flow.ratecard.v0.models.ReturnPackageRatecardFee | io.flow.ratecard.v0.models.CrossdockRatecardFee | io.flow.ratecard.v0.models.RemoteAreaRatecardFee | io.flow.ratecard.v0.models.EmergencySituationSurchargeRatecardFee | io.flow.ratecard.v0.models.PeakSurchargeRatecardFee | io.flow.ratecard.v0.models.DutiesTaxesPaidSurchargeRatecardFee;
7295
7352
  type ServiceFee = io.flow.ratecard.v0.models.FuelSurchargeServiceFee | io.flow.ratecard.v0.models.RemoteAreaServiceFee | io.flow.ratecard.v0.models.EmergencySituationSurchargeServiceFee | io.flow.ratecard.v0.models.PeakSurchargeServiceFee | io.flow.ratecard.v0.models.PeakSurchargeByWeightServiceFee | io.flow.ratecard.v0.models.DutiesTaxesPaidSurchargeServiceFee;
7296
7353
  }
@@ -9438,6 +9495,7 @@ declare namespace io.flow.internal.v0.enums {
9438
9495
  type DeliveredDutyOptionMessageType = 'warning' | 'notification';
9439
9496
  type DeminimisAdjustmentType = 'none' | 'duty' | 'vat' | 'vat_and_duty';
9440
9497
  type DiscountRequestOrderEntitlementKey = 'subtotal';
9498
+ type DisputeBillable = 'flow' | 'organization';
9441
9499
  type DisputeCategory = 'friendly_fraud' | 'true_fraud' | 'processing_error';
9442
9500
  type DisputeEvidence = 'proof_of_delivery' | 'proof_of_fulfillment' | 'other';
9443
9501
  type DisputeImportStatus = 'new' | 'processing' | 'completed' | 'failed';
@@ -9494,6 +9552,7 @@ declare namespace io.flow.internal.v0.enums {
9494
9552
  type MarketingGatewayProductStatus = 'approved' | 'not_approved' | 'pending' | 'not_found' | 'excluded';
9495
9553
  type MarketingGatewaySchemaCompatibility = 'google' | 'facebook_primary' | 'facebook_country_override' | 'supplemental';
9496
9554
  type NatureOfSale = 'consumer' | 'to_non_registered_business' | 'to_registered_business' | 'flash_title';
9555
+ type NewRevenueStatementStatus = 'created' | 'transactions_assigned' | 'statement_generated' | 'statement_regenerated';
9497
9556
  type NoLiabilityReasonCode = 'zero_basis' | 'zero_rate_on_goods' | 'zero_rate_on_sale' | 'goods_above_value_threshold' | 'goods_below_value_threshold' | 'order_below_de_minimis_threshold' | 'amount_below_de_minimis_threshold' | 'delivered_unpaid' | 'duty_free_domestic' | 'duty_free_intra_community' | 'duty_free_by_trade_agreement';
9498
9557
  type OrderAction = 'consumer_submit' | 'fraud_review_accept' | 'fraud_review_decline' | 'payment_fully_authorize' | 'payment_fully_capture';
9499
9558
  type OrderAttributeIntent = 'discount_code';
@@ -12875,6 +12934,7 @@ declare namespace io.flow.internal.v0.models {
12875
12934
  readonly reason: string;
12876
12935
  readonly status: io.flow.internal.v0.enums.DisputeStatus;
12877
12936
  readonly liability: io.flow.internal.v0.enums.DisputeLiability;
12937
+ readonly billable: io.flow.internal.v0.enums.DisputeBillable;
12878
12938
  readonly details: io.flow.internal.v0.unions.DisputeDetails;
12879
12939
  readonly issued_at: string;
12880
12940
  readonly expires_at?: string;
@@ -12933,6 +12993,7 @@ declare namespace io.flow.internal.v0.models {
12933
12993
  readonly discriminator: 'dispute_transaction';
12934
12994
  readonly id: string;
12935
12995
  readonly type: io.flow.internal.v0.enums.BillingTransactionType;
12996
+ readonly authorization: io.flow.payment.v0.models.AuthorizationReference;
12936
12997
  readonly posted_at: string;
12937
12998
  readonly value: io.flow.common.v0.models.Price;
12938
12999
  readonly description: string;
@@ -18937,6 +18998,7 @@ export declare type DiscountRequestOrderEntitlementKey = io.flow.internal.v0.enu
18937
18998
  export declare type DiscountRequestOrderForm = io.flow.internal.v0.models.DiscountRequestOrderForm;
18938
18999
  export declare type Dispute = io.flow.internal.v0.models.Dispute;
18939
19000
  export declare type DisputeAuthorizationReference = io.flow.internal.v0.models.DisputeAuthorizationReference;
19001
+ export declare type DisputeBillable = io.flow.internal.v0.enums.DisputeBillable;
18940
19002
  export declare type DisputeCategory = io.flow.internal.v0.enums.DisputeCategory;
18941
19003
  export declare type DisputeDeleted = io.flow.internal.v0.models.DisputeDeleted;
18942
19004
  export declare type DisputeDetails = io.flow.internal.v0.unions.DisputeDetails;
@@ -19404,6 +19466,7 @@ export declare type MarketsOrder = io.flow.internal.v0.models.MarketsOrder;
19404
19466
  export declare type MerchantOfRecordEntitySettings = io.flow.internal.v0.models.MerchantOfRecordEntitySettings;
19405
19467
  export declare type MerchantOfRecordEntitySettingsForm = io.flow.internal.v0.models.MerchantOfRecordEntitySettingsForm;
19406
19468
  export declare type NatureOfSale = io.flow.internal.v0.enums.NatureOfSale;
19469
+ export declare type NewRevenueStatementStatus = io.flow.internal.v0.enums.NewRevenueStatementStatus;
19407
19470
  export declare type NextBillingStatement = io.flow.internal.v0.models.NextBillingStatement;
19408
19471
  export declare type NoCalculatedTaxAmount = io.flow.internal.v0.models.NoCalculatedTaxAmount;
19409
19472
  export declare type NoClassificationForm = io.flow.internal.v0.models.NoClassificationForm;
package/dist/api.d.ts CHANGED
@@ -4812,6 +4812,7 @@ declare namespace io.flow.v0.models {
4812
4812
  readonly item: io.flow.v0.models.LocalizedItemPrice;
4813
4813
  readonly vat?: io.flow.v0.models.LocalizedItemVat;
4814
4814
  readonly duty?: io.flow.v0.models.LocalizedItemDuty;
4815
+ readonly shipping_price?: io.flow.v0.models.Price;
4815
4816
  readonly price_attributes: Record<string, io.flow.v0.models.PriceWithBase>;
4816
4817
  }
4817
4818
  interface ExportVersion {
@@ -4864,11 +4865,6 @@ declare namespace io.flow.v0.models {
4864
4865
  interface FlowItemIndexMetadata {
4865
4866
  readonly status: io.flow.v0.enums.SubcatalogItemStatus;
4866
4867
  }
4867
- interface FlowShippingLabelRatecardSummary {
4868
- readonly discriminator: 'flow';
4869
- readonly id: string;
4870
- readonly cost: io.flow.v0.models.Money;
4871
- }
4872
4868
  interface FraudEmailRule {
4873
4869
  readonly id?: string;
4874
4870
  readonly email: string;
@@ -5163,6 +5159,21 @@ declare namespace io.flow.v0.models {
5163
5159
  readonly fees: io.flow.v0.unions.RatecardFee[];
5164
5160
  readonly total: number;
5165
5161
  }
5162
+ interface HopEstimateV2 {
5163
+ readonly origin_address: io.flow.v0.models.ShippingAddress;
5164
+ readonly destination_address: io.flow.v0.models.ShippingAddress;
5165
+ readonly service: io.flow.v0.models.RatecardServiceSummary;
5166
+ readonly shipment_window: io.flow.v0.models.ShipmentWindow;
5167
+ readonly currency: string;
5168
+ readonly amount: number;
5169
+ readonly fees: io.flow.v0.unions.RatecardFee[];
5170
+ readonly total: number;
5171
+ readonly lane: io.flow.v0.models.LaneSummary;
5172
+ }
5173
+ interface HopV2 {
5174
+ readonly hop_number: number;
5175
+ readonly hop_estimate: io.flow.v0.models.HopEstimateV2;
5176
+ }
5166
5177
  interface Hs10 {
5167
5178
  readonly id: string;
5168
5179
  readonly item: io.flow.v0.models.HarmonizedItemReference;
@@ -5717,6 +5728,10 @@ declare namespace io.flow.v0.models {
5717
5728
  readonly effective_duty: io.flow.v0.models.Duty;
5718
5729
  readonly tax: io.flow.v0.models.Tax;
5719
5730
  }
5731
+ interface LaneSummary {
5732
+ readonly id: string;
5733
+ readonly ratecard: io.flow.v0.models.RatecardSummary;
5734
+ }
5720
5735
  interface Language {
5721
5736
  readonly name: string;
5722
5737
  readonly iso_639_2: string;
@@ -6071,9 +6086,6 @@ declare namespace io.flow.v0.models {
6071
6086
  readonly first?: string;
6072
6087
  readonly last?: string;
6073
6088
  }
6074
- interface NewChannelRate {
6075
- readonly placeholder?: string;
6076
- }
6077
6089
  interface NoInventoryReservationError {
6078
6090
  readonly code: 'no_inventory';
6079
6091
  readonly messages: string[];
@@ -6918,11 +6930,6 @@ declare namespace io.flow.v0.models {
6918
6930
  readonly organization: io.flow.v0.models.OrganizationReference;
6919
6931
  readonly environment: io.flow.v0.enums.Environment;
6920
6932
  }
6921
- interface OrganizationShippingLabelRatecardSummary {
6922
- readonly discriminator: 'organization';
6923
- readonly id: string;
6924
- readonly cost?: io.flow.v0.models.Money;
6925
- }
6926
6933
  interface OrganizationShortId {
6927
6934
  readonly id: string;
6928
6935
  readonly organization: io.flow.v0.models.OrganizationReference;
@@ -7987,6 +7994,14 @@ declare namespace io.flow.v0.models {
7987
7994
  readonly line_items?: io.flow.v0.models.LineItemForm[];
7988
7995
  readonly ratecard: io.flow.v0.models.RatecardSummary;
7989
7996
  }
7997
+ interface RatecardEstimateV4 {
7998
+ readonly discriminator: 'ratecard_estimate_v4';
7999
+ readonly hops: io.flow.v0.models.HopV2[];
8000
+ readonly delivered_duty: io.flow.v0.enums.DeliveredDuty;
8001
+ readonly dimensional_weight?: io.flow.v0.models.Measurement;
8002
+ readonly gravitational_weight?: io.flow.v0.models.Measurement;
8003
+ readonly line_items?: io.flow.v0.models.LineItemForm[];
8004
+ }
7990
8005
  interface RatecardForm {
7991
8006
  readonly direction: io.flow.v0.enums.Direction;
7992
8007
  readonly effective_at: string;
@@ -8754,7 +8769,7 @@ declare namespace io.flow.v0.models {
8754
8769
  }
8755
8770
  interface ShippingLabel {
8756
8771
  readonly id: string;
8757
- readonly ratecard?: io.flow.v0.unions.ShippingLabelRatecardSummary;
8772
+ readonly hop?: io.flow.v0.models.ShippingLabelHopSummary;
8758
8773
  readonly attributes: Record<string, string>;
8759
8774
  readonly carrier_tracking_number: string;
8760
8775
  readonly carrier_tracking_number_url: string;
@@ -8783,11 +8798,23 @@ declare namespace io.flow.v0.models {
8783
8798
  readonly html?: string;
8784
8799
  readonly required: boolean;
8785
8800
  }
8801
+ interface ShippingLabelHopSummary {
8802
+ readonly lane: io.flow.v0.models.ShippingLabelLaneSummary;
8803
+ readonly cost: io.flow.v0.models.Money;
8804
+ }
8805
+ interface ShippingLabelLaneSummary {
8806
+ readonly id: string;
8807
+ readonly ratecard: io.flow.v0.models.ShippingLabelRatecardSummary;
8808
+ }
8786
8809
  interface ShippingLabelPackage {
8787
8810
  readonly dimensions: io.flow.v0.models.Dimension;
8788
8811
  readonly items: io.flow.v0.models.LineItemForm[];
8789
8812
  readonly reference_number?: string;
8790
8813
  }
8814
+ interface ShippingLabelRatecardSummary {
8815
+ readonly id: string;
8816
+ readonly ratecard_owner: io.flow.v0.enums.RatecardOwner;
8817
+ }
8791
8818
  interface ShippingLabelSummary {
8792
8819
  readonly id: string;
8793
8820
  readonly flow_tracking_number: string;
@@ -9877,7 +9904,7 @@ declare namespace io.flow.v0.unions {
9877
9904
  type QueryBuilderForm = io.flow.v0.models.QueryBuilderFilterForm | io.flow.v0.models.QueryBuilderQueryForm;
9878
9905
  type QueryFilter = io.flow.v0.models.QueryFilterStructured | io.flow.v0.models.QueryFilterUnstructured;
9879
9906
  type QueryFilterForm = io.flow.v0.models.QueryFilterStructuredForm | io.flow.v0.models.QueryFilterUnstructuredForm;
9880
- type RatecardEstimate = io.flow.v0.models.RatecardEstimateV1 | io.flow.v0.models.RatecardEstimateV2 | io.flow.v0.models.RatecardEstimateV3;
9907
+ type RatecardEstimate = io.flow.v0.models.RatecardEstimateV1 | io.flow.v0.models.RatecardEstimateV2 | io.flow.v0.models.RatecardEstimateV3 | io.flow.v0.models.RatecardEstimateV4;
9881
9908
  type RatecardFee = io.flow.v0.models.DdpRatecardFee | io.flow.v0.models.FuelSurchargeRatecardFee | io.flow.v0.models.OversizedShipmentRatecardFee | io.flow.v0.models.ReturnPackageRatecardFee | io.flow.v0.models.CrossdockRatecardFee | io.flow.v0.models.RemoteAreaRatecardFee | io.flow.v0.models.EmergencySituationSurchargeRatecardFee | io.flow.v0.models.PeakSurchargeRatecardFee | io.flow.v0.models.DutiesTaxesPaidSurchargeRatecardFee;
9882
9909
  type RepeatSchedule = io.flow.v0.models.RepeatHourly | io.flow.v0.models.RepeatDaily | io.flow.v0.models.RepeatWeekly | io.flow.v0.models.RepeatMonthly;
9883
9910
  type ReservationError = io.flow.v0.models.NoInventoryReservationError | io.flow.v0.models.ExternalApiTimeoutReservationError | io.flow.v0.models.GenericReservationError;
@@ -9887,7 +9914,6 @@ declare namespace io.flow.v0.unions {
9887
9914
  type Session = io.flow.v0.models.OrganizationSession;
9888
9915
  type SessionAuthorization = io.flow.v0.models.OrganizationSessionAuthorization;
9889
9916
  type ShippingLabelForm = io.flow.v0.models.DetailedShippingLabelForm | io.flow.v0.models.SummaryShippingLabelForm;
9890
- type ShippingLabelRatecardSummary = io.flow.v0.models.FlowShippingLabelRatecardSummary | io.flow.v0.models.OrganizationShippingLabelRatecardSummary;
9891
9917
  type ShippingNotificationForm = io.flow.v0.models.DetailedShippingNotificationForm | io.flow.v0.models.SinglePackageShippingNotificationForm | io.flow.v0.models.SummaryShippingNotificationForm;
9892
9918
  type ShopifyCartAddForm = io.flow.v0.models.ShopifyCartAddSingleForm | io.flow.v0.models.ShopifyCartAddMultipleForm;
9893
9919
  type ShopifyEventBucket = io.flow.v0.models.ShopifyItemEventBucket;
@@ -10407,7 +10433,6 @@ export declare type FlowCenterReference = io.flow.v0.models.FlowCenterReference;
10407
10433
  export declare type FlowEntity = io.flow.v0.enums.FlowEntity;
10408
10434
  export declare type FlowItemIndexMetadata = io.flow.v0.models.FlowItemIndexMetadata;
10409
10435
  export declare type FlowRole = io.flow.v0.enums.FlowRole;
10410
- export declare type FlowShippingLabelRatecardSummary = io.flow.v0.models.FlowShippingLabelRatecardSummary;
10411
10436
  export declare type FraudEmailRule = io.flow.v0.models.FraudEmailRule;
10412
10437
  export declare type FraudEmailRuleDecision = io.flow.v0.enums.FraudEmailRuleDecision;
10413
10438
  export declare type FraudEmailRuleForm = io.flow.v0.models.FraudEmailRuleForm;
@@ -10473,6 +10498,8 @@ export declare type Healthcheck = io.flow.v0.models.Healthcheck;
10473
10498
  export declare type HolidayCalendar = io.flow.v0.enums.HolidayCalendar;
10474
10499
  export declare type Hop = io.flow.v0.models.Hop;
10475
10500
  export declare type HopEstimate = io.flow.v0.models.HopEstimate;
10501
+ export declare type HopEstimateV2 = io.flow.v0.models.HopEstimateV2;
10502
+ export declare type HopV2 = io.flow.v0.models.HopV2;
10476
10503
  export declare type Hs10 = io.flow.v0.models.Hs10;
10477
10504
  export declare type Hs10CodeDeleted = io.flow.v0.models.Hs10CodeDeleted;
10478
10505
  export declare type Hs10CodeUpserted = io.flow.v0.models.Hs10CodeUpserted;
@@ -10577,6 +10604,7 @@ export declare type LaneDirection = io.flow.v0.enums.LaneDirection;
10577
10604
  export declare type LaneLandedCost = io.flow.v0.models.LaneLandedCost;
10578
10605
  export declare type LanePreselectPreference = io.flow.v0.enums.LanePreselectPreference;
10579
10606
  export declare type LaneStrategy = io.flow.v0.enums.LaneStrategy;
10607
+ export declare type LaneSummary = io.flow.v0.models.LaneSummary;
10580
10608
  export declare type Language = io.flow.v0.models.Language;
10581
10609
  export declare type LevyComponent = io.flow.v0.enums.LevyComponent;
10582
10610
  export declare type LevyStrategy = io.flow.v0.enums.LevyStrategy;
@@ -10643,7 +10671,6 @@ export declare type MoneyWithBase = io.flow.v0.models.MoneyWithBase;
10643
10671
  export declare type MoneyWithOptionalBase = io.flow.v0.models.MoneyWithOptionalBase;
10644
10672
  export declare type Name = io.flow.v0.models.Name;
10645
10673
  export declare type NameForm = io.flow.v0.models.NameForm;
10646
- export declare type NewChannelRate = io.flow.v0.models.NewChannelRate;
10647
10674
  export declare type NoInventoryReservationError = io.flow.v0.models.NoInventoryReservationError;
10648
10675
  export declare type NoInventoryReservationErrorItem = io.flow.v0.models.NoInventoryReservationErrorItem;
10649
10676
  export declare type NotificationDeletedV2 = io.flow.v0.models.NotificationDeletedV2;
@@ -10800,7 +10827,6 @@ export declare type OrganizationRatesPublished = io.flow.v0.models.OrganizationR
10800
10827
  export declare type OrganizationReference = io.flow.v0.models.OrganizationReference;
10801
10828
  export declare type OrganizationSession = io.flow.v0.models.OrganizationSession;
10802
10829
  export declare type OrganizationSessionAuthorization = io.flow.v0.models.OrganizationSessionAuthorization;
10803
- export declare type OrganizationShippingLabelRatecardSummary = io.flow.v0.models.OrganizationShippingLabelRatecardSummary;
10804
10830
  export declare type OrganizationShortId = io.flow.v0.models.OrganizationShortId;
10805
10831
  export declare type OrganizationShortIdDeleted = io.flow.v0.models.OrganizationShortIdDeleted;
10806
10832
  export declare type OrganizationShortIdUpserted = io.flow.v0.models.OrganizationShortIdUpserted;
@@ -11017,6 +11043,7 @@ export declare type RatecardEstimateSummaryForm = io.flow.v0.models.RatecardEsti
11017
11043
  export declare type RatecardEstimateV1 = io.flow.v0.models.RatecardEstimateV1;
11018
11044
  export declare type RatecardEstimateV2 = io.flow.v0.models.RatecardEstimateV2;
11019
11045
  export declare type RatecardEstimateV3 = io.flow.v0.models.RatecardEstimateV3;
11046
+ export declare type RatecardEstimateV4 = io.flow.v0.models.RatecardEstimateV4;
11020
11047
  export declare type RatecardFee = io.flow.v0.unions.RatecardFee;
11021
11048
  export declare type RatecardForm = io.flow.v0.models.RatecardForm;
11022
11049
  export declare type RatecardLane = io.flow.v0.models.RatecardLane;
@@ -11170,8 +11197,10 @@ export declare type ShippingConfigurationVersion = io.flow.v0.models.ShippingCon
11170
11197
  export declare type ShippingLabel = io.flow.v0.models.ShippingLabel;
11171
11198
  export declare type ShippingLabelDocument = io.flow.v0.models.ShippingLabelDocument;
11172
11199
  export declare type ShippingLabelForm = io.flow.v0.unions.ShippingLabelForm;
11200
+ export declare type ShippingLabelHopSummary = io.flow.v0.models.ShippingLabelHopSummary;
11201
+ export declare type ShippingLabelLaneSummary = io.flow.v0.models.ShippingLabelLaneSummary;
11173
11202
  export declare type ShippingLabelPackage = io.flow.v0.models.ShippingLabelPackage;
11174
- export declare type ShippingLabelRatecardSummary = io.flow.v0.unions.ShippingLabelRatecardSummary;
11203
+ export declare type ShippingLabelRatecardSummary = io.flow.v0.models.ShippingLabelRatecardSummary;
11175
11204
  export declare type ShippingLabelSummary = io.flow.v0.models.ShippingLabelSummary;
11176
11205
  export declare type ShippingLabelVersion = io.flow.v0.models.ShippingLabelVersion;
11177
11206
  export declare type ShippingLane = io.flow.v0.models.ShippingLane;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/types",
3
- "version": "11.19.34",
3
+ "version": "11.19.35",
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": "2278cebee0bf7bd1477f73c4d3ddcaa65e5b9a82"
28
+ "gitHead": "9830eb7bfd95d68aec644fe08f108dc944bf7350"
29
29
  }
@@ -4932,12 +4932,6 @@ declare namespace io.flow.label.v0.models {
4932
4932
  readonly shipment_recipient?: io.flow.label.v0.enums.ShipmentRecipient;
4933
4933
  }
4934
4934
 
4935
- interface FlowShippingLabelRatecardSummary {
4936
- readonly discriminator: 'flow';
4937
- readonly id: string;
4938
- readonly cost: io.flow.common.v0.models.Money;
4939
- }
4940
-
4941
4935
  interface LabelOrderSummary {
4942
4936
  readonly id: string;
4943
4937
  readonly number: string;
@@ -4956,15 +4950,9 @@ declare namespace io.flow.label.v0.models {
4956
4950
  readonly service?: string;
4957
4951
  }
4958
4952
 
4959
- interface OrganizationShippingLabelRatecardSummary {
4960
- readonly discriminator: 'organization';
4961
- readonly id: string;
4962
- readonly cost?: io.flow.common.v0.models.Money;
4963
- }
4964
-
4965
4953
  interface ShippingLabel {
4966
4954
  readonly id: string;
4967
- readonly ratecard?: io.flow.label.v0.unions.ShippingLabelRatecardSummary;
4955
+ readonly hop?: io.flow.label.v0.models.ShippingLabelHopSummary;
4968
4956
  readonly attributes: Record<string, string>;
4969
4957
  readonly carrier_tracking_number: string;
4970
4958
  readonly carrier_tracking_number_url: string;
@@ -4995,12 +4983,27 @@ declare namespace io.flow.label.v0.models {
4995
4983
  readonly required: boolean;
4996
4984
  }
4997
4985
 
4986
+ interface ShippingLabelHopSummary {
4987
+ readonly lane: io.flow.label.v0.models.ShippingLabelLaneSummary;
4988
+ readonly cost: io.flow.common.v0.models.Money;
4989
+ }
4990
+
4991
+ interface ShippingLabelLaneSummary {
4992
+ readonly id: string;
4993
+ readonly ratecard: io.flow.label.v0.models.ShippingLabelRatecardSummary;
4994
+ }
4995
+
4998
4996
  interface ShippingLabelPackage {
4999
4997
  readonly dimensions: io.flow.common.v0.models.Dimension;
5000
4998
  readonly items: io.flow.common.v0.models.LineItemForm[];
5001
4999
  readonly reference_number?: string;
5002
5000
  }
5003
5001
 
5002
+ interface ShippingLabelRatecardSummary {
5003
+ readonly id: string;
5004
+ readonly ratecard_owner: io.flow.fulfillment.v0.enums.RatecardOwner;
5005
+ }
5006
+
5004
5007
  interface ShippingLabelSummary {
5005
5008
  readonly id: string;
5006
5009
  readonly flow_tracking_number: string;
@@ -5069,9 +5072,6 @@ declare namespace io.flow.label.v0.unions {
5069
5072
  type ShippingLabelForm =
5070
5073
  | io.flow.label.v0.models.DetailedShippingLabelForm
5071
5074
  | io.flow.label.v0.models.SummaryShippingLabelForm;
5072
- type ShippingLabelRatecardSummary =
5073
- | io.flow.label.v0.models.FlowShippingLabelRatecardSummary
5074
- | io.flow.label.v0.models.OrganizationShippingLabelRatecardSummary;
5075
5075
  type ShippingNotificationForm =
5076
5076
  | io.flow.label.v0.models.DetailedShippingNotificationForm
5077
5077
  | io.flow.label.v0.models.SinglePackageShippingNotificationForm
@@ -6344,6 +6344,8 @@ declare namespace io.flow.adyen.v0.models {
6344
6344
  readonly browserInfo?: io.flow.adyen.v0.unions.BrowserInfo;
6345
6345
  readonly threeDS2RequestData?: io.flow.adyen.v0.models.Threeds2RequestData;
6346
6346
  readonly recurringProcessingModel?: io.flow.adyen.v0.enums.RecurringProcessingModel;
6347
+ readonly mcc?: string;
6348
+ readonly metadata?: any /*object*/;
6347
6349
  }
6348
6350
 
6349
6351
  interface AuthorizeRequest3D {
@@ -6530,6 +6532,8 @@ declare namespace io.flow.adyen.v0.models {
6530
6532
  readonly origin?: string;
6531
6533
  readonly channel?: io.flow.adyen.v0.enums.Channel;
6532
6534
  readonly returnUrl?: string;
6535
+ readonly mcc?: string;
6536
+ readonly metadata?: any /*object*/;
6533
6537
  }
6534
6538
 
6535
6539
  interface PaymentResponse {
@@ -7774,6 +7778,8 @@ declare namespace io.flow.shopify.markets.v0.enums {
7774
7778
  type ShopifyOrderValueType = 'string' | 'integer';
7775
7779
  type ShopifyWebhookFormat = 'json' | 'xml';
7776
7780
  type ShopifyWebhookTopic =
7781
+ | 'customers/redact'
7782
+ | 'customers/data_request'
7777
7783
  | 'orders/cancelled'
7778
7784
  | 'orders/create'
7779
7785
  | 'orders/fulfilled'
@@ -7788,6 +7794,7 @@ declare namespace io.flow.shopify.markets.v0.enums {
7788
7794
  | 'refunds/create'
7789
7795
  | 'fulfillment_events/create'
7790
7796
  | 'fulfillment_events/delete'
7797
+ | 'shop/redact'
7791
7798
  | 'themes/create'
7792
7799
  | 'themes/publish'
7793
7800
  | 'themes/update';
@@ -8266,6 +8273,31 @@ declare namespace io.flow.shopify.markets.v0.models {
8266
8273
  readonly gateway: string;
8267
8274
  }
8268
8275
 
8276
+ interface ShopifyWebhookCustomersDataRequest {
8277
+ readonly shop_id: number;
8278
+ readonly shop_domain: string;
8279
+ readonly orders_requested: number[];
8280
+ readonly customer: io.flow.shopify.markets.v0.models.ShopifyWebhookCustomersRedactCustomer;
8281
+ readonly data_request: io.flow.shopify.markets.v0.models.ShopifyWebhookCustomersDataRequestId;
8282
+ }
8283
+
8284
+ interface ShopifyWebhookCustomersDataRequestId {
8285
+ readonly id: number;
8286
+ }
8287
+
8288
+ interface ShopifyWebhookCustomersRedact {
8289
+ readonly shop_id: number;
8290
+ readonly shop_domain: string;
8291
+ readonly customer: io.flow.shopify.markets.v0.models.ShopifyWebhookCustomersRedactCustomer;
8292
+ readonly orders_to_redact?: number[];
8293
+ }
8294
+
8295
+ interface ShopifyWebhookCustomersRedactCustomer {
8296
+ readonly id: number;
8297
+ readonly email?: string;
8298
+ readonly phone?: string;
8299
+ }
8300
+
8269
8301
  interface ShopifyWebhookRequest {
8270
8302
  readonly topic: io.flow.shopify.markets.v0.enums.ShopifyWebhookTopic;
8271
8303
  readonly address: string;
@@ -8293,6 +8325,11 @@ declare namespace io.flow.shopify.markets.v0.models {
8293
8325
  readonly webhook: io.flow.shopify.markets.v0.models.ShopifyWebhookResponse;
8294
8326
  }
8295
8327
 
8328
+ interface ShopifyWebhookShopRedact {
8329
+ readonly shop_id: number;
8330
+ readonly shop_domain: string;
8331
+ }
8332
+
8296
8333
  interface ShopifyWebhooksResponseWrapper {
8297
8334
  readonly webhooks: io.flow.shopify.markets.v0.models.ShopifyWebhookResponse[];
8298
8335
  }
@@ -9323,6 +9360,28 @@ declare namespace io.flow.ratecard.v0.models {
9323
9360
  readonly total: number;
9324
9361
  }
9325
9362
 
9363
+ interface HopEstimateV2 {
9364
+ readonly origin_address: io.flow.fulfillment.v0.models.ShippingAddress;
9365
+ readonly destination_address: io.flow.fulfillment.v0.models.ShippingAddress;
9366
+ readonly service: io.flow.ratecard.v0.models.RatecardServiceSummary;
9367
+ readonly shipment_window: io.flow.ratecard.v0.models.ShipmentWindow;
9368
+ readonly currency: string;
9369
+ readonly amount: number;
9370
+ readonly fees: io.flow.ratecard.v0.unions.RatecardFee[];
9371
+ readonly total: number;
9372
+ readonly lane: io.flow.ratecard.v0.models.LaneSummary;
9373
+ }
9374
+
9375
+ interface HopV2 {
9376
+ readonly hop_number: number;
9377
+ readonly hop_estimate: io.flow.ratecard.v0.models.HopEstimateV2;
9378
+ }
9379
+
9380
+ interface LaneSummary {
9381
+ readonly id: string;
9382
+ readonly ratecard: io.flow.ratecard.v0.models.RatecardSummary;
9383
+ }
9384
+
9326
9385
  interface OversizedShipmentRatecardFee {
9327
9386
  readonly discriminator: 'oversized_shipment_ratecard_fee';
9328
9387
  readonly weight_threshold: number;
@@ -9426,6 +9485,15 @@ declare namespace io.flow.ratecard.v0.models {
9426
9485
  readonly ratecard: io.flow.ratecard.v0.models.RatecardSummary;
9427
9486
  }
9428
9487
 
9488
+ interface RatecardEstimateV4 {
9489
+ readonly discriminator: 'ratecard_estimate_v4';
9490
+ readonly hops: io.flow.ratecard.v0.models.HopV2[];
9491
+ readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
9492
+ readonly dimensional_weight?: io.flow.common.v0.models.Measurement;
9493
+ readonly gravitational_weight?: io.flow.common.v0.models.Measurement;
9494
+ readonly line_items?: io.flow.common.v0.models.LineItemForm[];
9495
+ }
9496
+
9429
9497
  interface RatecardForm {
9430
9498
  readonly direction: io.flow.label.v0.enums.Direction;
9431
9499
  readonly effective_at: string;
@@ -9564,7 +9632,8 @@ declare namespace io.flow.ratecard.v0.unions {
9564
9632
  type RatecardEstimate =
9565
9633
  | io.flow.ratecard.v0.models.RatecardEstimateV1
9566
9634
  | io.flow.ratecard.v0.models.RatecardEstimateV2
9567
- | io.flow.ratecard.v0.models.RatecardEstimateV3;
9635
+ | io.flow.ratecard.v0.models.RatecardEstimateV3
9636
+ | io.flow.ratecard.v0.models.RatecardEstimateV4;
9568
9637
  type RatecardFee =
9569
9638
  | io.flow.ratecard.v0.models.DdpRatecardFee
9570
9639
  | io.flow.ratecard.v0.models.FuelSurchargeRatecardFee
@@ -12517,6 +12586,7 @@ declare namespace io.flow.internal.v0.enums {
12517
12586
  type DeliveredDutyOptionMessageType = 'warning' | 'notification';
12518
12587
  type DeminimisAdjustmentType = 'none' | 'duty' | 'vat' | 'vat_and_duty';
12519
12588
  type DiscountRequestOrderEntitlementKey = 'subtotal';
12589
+ type DisputeBillable = 'flow' | 'organization';
12520
12590
  type DisputeCategory = 'friendly_fraud' | 'true_fraud' | 'processing_error';
12521
12591
  type DisputeEvidence = 'proof_of_delivery' | 'proof_of_fulfillment' | 'other';
12522
12592
  type DisputeImportStatus = 'new' | 'processing' | 'completed' | 'failed';
@@ -12884,6 +12954,11 @@ declare namespace io.flow.internal.v0.enums {
12884
12954
  | 'to_non_registered_business'
12885
12955
  | 'to_registered_business'
12886
12956
  | 'flash_title';
12957
+ type NewRevenueStatementStatus =
12958
+ | 'created'
12959
+ | 'transactions_assigned'
12960
+ | 'statement_generated'
12961
+ | 'statement_regenerated';
12887
12962
  type NoLiabilityReasonCode =
12888
12963
  | 'zero_basis'
12889
12964
  | 'zero_rate_on_goods'
@@ -16994,6 +17069,7 @@ declare namespace io.flow.internal.v0.models {
16994
17069
  readonly reason: string;
16995
17070
  readonly status: io.flow.internal.v0.enums.DisputeStatus;
16996
17071
  readonly liability: io.flow.internal.v0.enums.DisputeLiability;
17072
+ readonly billable: io.flow.internal.v0.enums.DisputeBillable;
16997
17073
  readonly details: io.flow.internal.v0.unions.DisputeDetails;
16998
17074
  readonly issued_at: string;
16999
17075
  readonly expires_at?: string;
@@ -17064,6 +17140,7 @@ declare namespace io.flow.internal.v0.models {
17064
17140
  readonly discriminator: 'dispute_transaction';
17065
17141
  readonly id: string;
17066
17142
  readonly type: io.flow.internal.v0.enums.BillingTransactionType;
17143
+ readonly authorization: io.flow.payment.v0.models.AuthorizationReference;
17067
17144
  readonly posted_at: string;
17068
17145
  readonly value: io.flow.common.v0.models.Price;
17069
17146
  readonly description: string;
@@ -24499,6 +24576,7 @@ export type DiscountRequestOrderEntitlementKey = io.flow.internal.v0.enums.Disco
24499
24576
  export type DiscountRequestOrderForm = io.flow.internal.v0.models.DiscountRequestOrderForm;
24500
24577
  export type Dispute = io.flow.internal.v0.models.Dispute;
24501
24578
  export type DisputeAuthorizationReference = io.flow.internal.v0.models.DisputeAuthorizationReference;
24579
+ export type DisputeBillable = io.flow.internal.v0.enums.DisputeBillable;
24502
24580
  export type DisputeCategory = io.flow.internal.v0.enums.DisputeCategory;
24503
24581
  export type DisputeDeleted = io.flow.internal.v0.models.DisputeDeleted;
24504
24582
  export type DisputeDetails = io.flow.internal.v0.unions.DisputeDetails;
@@ -24966,6 +25044,7 @@ export type MarketsOrder = io.flow.internal.v0.models.MarketsOrder;
24966
25044
  export type MerchantOfRecordEntitySettings = io.flow.internal.v0.models.MerchantOfRecordEntitySettings;
24967
25045
  export type MerchantOfRecordEntitySettingsForm = io.flow.internal.v0.models.MerchantOfRecordEntitySettingsForm;
24968
25046
  export type NatureOfSale = io.flow.internal.v0.enums.NatureOfSale;
25047
+ export type NewRevenueStatementStatus = io.flow.internal.v0.enums.NewRevenueStatementStatus;
24969
25048
  export type NextBillingStatement = io.flow.internal.v0.models.NextBillingStatement;
24970
25049
  export type NoCalculatedTaxAmount = io.flow.internal.v0.models.NoCalculatedTaxAmount;
24971
25050
  export type NoClassificationForm = io.flow.internal.v0.models.NoClassificationForm;
package/src/api.ts CHANGED
@@ -6445,6 +6445,7 @@ declare namespace io.flow.v0.models {
6445
6445
  readonly item: io.flow.v0.models.LocalizedItemPrice;
6446
6446
  readonly vat?: io.flow.v0.models.LocalizedItemVat;
6447
6447
  readonly duty?: io.flow.v0.models.LocalizedItemDuty;
6448
+ readonly shipping_price?: io.flow.v0.models.Price;
6448
6449
  readonly price_attributes: Record<string, io.flow.v0.models.PriceWithBase>;
6449
6450
  }
6450
6451
 
@@ -6510,12 +6511,6 @@ declare namespace io.flow.v0.models {
6510
6511
  readonly status: io.flow.v0.enums.SubcatalogItemStatus;
6511
6512
  }
6512
6513
 
6513
- interface FlowShippingLabelRatecardSummary {
6514
- readonly discriminator: 'flow';
6515
- readonly id: string;
6516
- readonly cost: io.flow.v0.models.Money;
6517
- }
6518
-
6519
6514
  interface FraudEmailRule {
6520
6515
  readonly id?: string;
6521
6516
  readonly email: string;
@@ -6862,6 +6857,23 @@ declare namespace io.flow.v0.models {
6862
6857
  readonly total: number;
6863
6858
  }
6864
6859
 
6860
+ interface HopEstimateV2 {
6861
+ readonly origin_address: io.flow.v0.models.ShippingAddress;
6862
+ readonly destination_address: io.flow.v0.models.ShippingAddress;
6863
+ readonly service: io.flow.v0.models.RatecardServiceSummary;
6864
+ readonly shipment_window: io.flow.v0.models.ShipmentWindow;
6865
+ readonly currency: string;
6866
+ readonly amount: number;
6867
+ readonly fees: io.flow.v0.unions.RatecardFee[];
6868
+ readonly total: number;
6869
+ readonly lane: io.flow.v0.models.LaneSummary;
6870
+ }
6871
+
6872
+ interface HopV2 {
6873
+ readonly hop_number: number;
6874
+ readonly hop_estimate: io.flow.v0.models.HopEstimateV2;
6875
+ }
6876
+
6865
6877
  interface Hs10 {
6866
6878
  readonly id: string;
6867
6879
  readonly item: io.flow.v0.models.HarmonizedItemReference;
@@ -7504,6 +7516,11 @@ declare namespace io.flow.v0.models {
7504
7516
  readonly tax: io.flow.v0.models.Tax;
7505
7517
  }
7506
7518
 
7519
+ interface LaneSummary {
7520
+ readonly id: string;
7521
+ readonly ratecard: io.flow.v0.models.RatecardSummary;
7522
+ }
7523
+
7507
7524
  interface Language {
7508
7525
  readonly name: string;
7509
7526
  readonly iso_639_2: string;
@@ -7918,10 +7935,6 @@ declare namespace io.flow.v0.models {
7918
7935
  readonly last?: string;
7919
7936
  }
7920
7937
 
7921
- interface NewChannelRate {
7922
- readonly placeholder?: string;
7923
- }
7924
-
7925
7938
  interface NoInventoryReservationError {
7926
7939
  readonly code: 'no_inventory';
7927
7940
  readonly messages: string[];
@@ -8902,12 +8915,6 @@ declare namespace io.flow.v0.models {
8902
8915
  readonly environment: io.flow.v0.enums.Environment;
8903
8916
  }
8904
8917
 
8905
- interface OrganizationShippingLabelRatecardSummary {
8906
- readonly discriminator: 'organization';
8907
- readonly id: string;
8908
- readonly cost?: io.flow.v0.models.Money;
8909
- }
8910
-
8911
8918
  interface OrganizationShortId {
8912
8919
  readonly id: string;
8913
8920
  readonly organization: io.flow.v0.models.OrganizationReference;
@@ -10152,6 +10159,15 @@ declare namespace io.flow.v0.models {
10152
10159
  readonly ratecard: io.flow.v0.models.RatecardSummary;
10153
10160
  }
10154
10161
 
10162
+ interface RatecardEstimateV4 {
10163
+ readonly discriminator: 'ratecard_estimate_v4';
10164
+ readonly hops: io.flow.v0.models.HopV2[];
10165
+ readonly delivered_duty: io.flow.v0.enums.DeliveredDuty;
10166
+ readonly dimensional_weight?: io.flow.v0.models.Measurement;
10167
+ readonly gravitational_weight?: io.flow.v0.models.Measurement;
10168
+ readonly line_items?: io.flow.v0.models.LineItemForm[];
10169
+ }
10170
+
10155
10171
  interface RatecardForm {
10156
10172
  readonly direction: io.flow.v0.enums.Direction;
10157
10173
  readonly effective_at: string;
@@ -11045,7 +11061,7 @@ declare namespace io.flow.v0.models {
11045
11061
 
11046
11062
  interface ShippingLabel {
11047
11063
  readonly id: string;
11048
- readonly ratecard?: io.flow.v0.unions.ShippingLabelRatecardSummary;
11064
+ readonly hop?: io.flow.v0.models.ShippingLabelHopSummary;
11049
11065
  readonly attributes: Record<string, string>;
11050
11066
  readonly carrier_tracking_number: string;
11051
11067
  readonly carrier_tracking_number_url: string;
@@ -11076,12 +11092,27 @@ declare namespace io.flow.v0.models {
11076
11092
  readonly required: boolean;
11077
11093
  }
11078
11094
 
11095
+ interface ShippingLabelHopSummary {
11096
+ readonly lane: io.flow.v0.models.ShippingLabelLaneSummary;
11097
+ readonly cost: io.flow.v0.models.Money;
11098
+ }
11099
+
11100
+ interface ShippingLabelLaneSummary {
11101
+ readonly id: string;
11102
+ readonly ratecard: io.flow.v0.models.ShippingLabelRatecardSummary;
11103
+ }
11104
+
11079
11105
  interface ShippingLabelPackage {
11080
11106
  readonly dimensions: io.flow.v0.models.Dimension;
11081
11107
  readonly items: io.flow.v0.models.LineItemForm[];
11082
11108
  readonly reference_number?: string;
11083
11109
  }
11084
11110
 
11111
+ interface ShippingLabelRatecardSummary {
11112
+ readonly id: string;
11113
+ readonly ratecard_owner: io.flow.v0.enums.RatecardOwner;
11114
+ }
11115
+
11085
11116
  interface ShippingLabelSummary {
11086
11117
  readonly id: string;
11087
11118
  readonly flow_tracking_number: string;
@@ -12680,7 +12711,8 @@ declare namespace io.flow.v0.unions {
12680
12711
  type RatecardEstimate =
12681
12712
  | io.flow.v0.models.RatecardEstimateV1
12682
12713
  | io.flow.v0.models.RatecardEstimateV2
12683
- | io.flow.v0.models.RatecardEstimateV3;
12714
+ | io.flow.v0.models.RatecardEstimateV3
12715
+ | io.flow.v0.models.RatecardEstimateV4;
12684
12716
  type RatecardFee =
12685
12717
  | io.flow.v0.models.DdpRatecardFee
12686
12718
  | io.flow.v0.models.FuelSurchargeRatecardFee
@@ -12718,9 +12750,6 @@ declare namespace io.flow.v0.unions {
12718
12750
  type ShippingLabelForm =
12719
12751
  | io.flow.v0.models.DetailedShippingLabelForm
12720
12752
  | io.flow.v0.models.SummaryShippingLabelForm;
12721
- type ShippingLabelRatecardSummary =
12722
- | io.flow.v0.models.FlowShippingLabelRatecardSummary
12723
- | io.flow.v0.models.OrganizationShippingLabelRatecardSummary;
12724
12753
  type ShippingNotificationForm =
12725
12754
  | io.flow.v0.models.DetailedShippingNotificationForm
12726
12755
  | io.flow.v0.models.SinglePackageShippingNotificationForm
@@ -13262,7 +13291,6 @@ export type FlowCenterReference = io.flow.v0.models.FlowCenterReference;
13262
13291
  export type FlowEntity = io.flow.v0.enums.FlowEntity;
13263
13292
  export type FlowItemIndexMetadata = io.flow.v0.models.FlowItemIndexMetadata;
13264
13293
  export type FlowRole = io.flow.v0.enums.FlowRole;
13265
- export type FlowShippingLabelRatecardSummary = io.flow.v0.models.FlowShippingLabelRatecardSummary;
13266
13294
  export type FraudEmailRule = io.flow.v0.models.FraudEmailRule;
13267
13295
  export type FraudEmailRuleDecision = io.flow.v0.enums.FraudEmailRuleDecision;
13268
13296
  export type FraudEmailRuleForm = io.flow.v0.models.FraudEmailRuleForm;
@@ -13328,6 +13356,8 @@ export type Healthcheck = io.flow.v0.models.Healthcheck;
13328
13356
  export type HolidayCalendar = io.flow.v0.enums.HolidayCalendar;
13329
13357
  export type Hop = io.flow.v0.models.Hop;
13330
13358
  export type HopEstimate = io.flow.v0.models.HopEstimate;
13359
+ export type HopEstimateV2 = io.flow.v0.models.HopEstimateV2;
13360
+ export type HopV2 = io.flow.v0.models.HopV2;
13331
13361
  export type Hs10 = io.flow.v0.models.Hs10;
13332
13362
  export type Hs10CodeDeleted = io.flow.v0.models.Hs10CodeDeleted;
13333
13363
  export type Hs10CodeUpserted = io.flow.v0.models.Hs10CodeUpserted;
@@ -13432,6 +13462,7 @@ export type LaneDirection = io.flow.v0.enums.LaneDirection;
13432
13462
  export type LaneLandedCost = io.flow.v0.models.LaneLandedCost;
13433
13463
  export type LanePreselectPreference = io.flow.v0.enums.LanePreselectPreference;
13434
13464
  export type LaneStrategy = io.flow.v0.enums.LaneStrategy;
13465
+ export type LaneSummary = io.flow.v0.models.LaneSummary;
13435
13466
  export type Language = io.flow.v0.models.Language;
13436
13467
  export type LevyComponent = io.flow.v0.enums.LevyComponent;
13437
13468
  export type LevyStrategy = io.flow.v0.enums.LevyStrategy;
@@ -13498,7 +13529,6 @@ export type MoneyWithBase = io.flow.v0.models.MoneyWithBase;
13498
13529
  export type MoneyWithOptionalBase = io.flow.v0.models.MoneyWithOptionalBase;
13499
13530
  export type Name = io.flow.v0.models.Name;
13500
13531
  export type NameForm = io.flow.v0.models.NameForm;
13501
- export type NewChannelRate = io.flow.v0.models.NewChannelRate;
13502
13532
  export type NoInventoryReservationError = io.flow.v0.models.NoInventoryReservationError;
13503
13533
  export type NoInventoryReservationErrorItem = io.flow.v0.models.NoInventoryReservationErrorItem;
13504
13534
  export type NotificationDeletedV2 = io.flow.v0.models.NotificationDeletedV2;
@@ -13655,7 +13685,6 @@ export type OrganizationRatesPublished = io.flow.v0.models.OrganizationRatesPubl
13655
13685
  export type OrganizationReference = io.flow.v0.models.OrganizationReference;
13656
13686
  export type OrganizationSession = io.flow.v0.models.OrganizationSession;
13657
13687
  export type OrganizationSessionAuthorization = io.flow.v0.models.OrganizationSessionAuthorization;
13658
- export type OrganizationShippingLabelRatecardSummary = io.flow.v0.models.OrganizationShippingLabelRatecardSummary;
13659
13688
  export type OrganizationShortId = io.flow.v0.models.OrganizationShortId;
13660
13689
  export type OrganizationShortIdDeleted = io.flow.v0.models.OrganizationShortIdDeleted;
13661
13690
  export type OrganizationShortIdUpserted = io.flow.v0.models.OrganizationShortIdUpserted;
@@ -13872,6 +13901,7 @@ export type RatecardEstimateSummaryForm = io.flow.v0.models.RatecardEstimateSumm
13872
13901
  export type RatecardEstimateV1 = io.flow.v0.models.RatecardEstimateV1;
13873
13902
  export type RatecardEstimateV2 = io.flow.v0.models.RatecardEstimateV2;
13874
13903
  export type RatecardEstimateV3 = io.flow.v0.models.RatecardEstimateV3;
13904
+ export type RatecardEstimateV4 = io.flow.v0.models.RatecardEstimateV4;
13875
13905
  export type RatecardFee = io.flow.v0.unions.RatecardFee;
13876
13906
  export type RatecardForm = io.flow.v0.models.RatecardForm;
13877
13907
  export type RatecardLane = io.flow.v0.models.RatecardLane;
@@ -14025,8 +14055,10 @@ export type ShippingConfigurationVersion = io.flow.v0.models.ShippingConfigurati
14025
14055
  export type ShippingLabel = io.flow.v0.models.ShippingLabel;
14026
14056
  export type ShippingLabelDocument = io.flow.v0.models.ShippingLabelDocument;
14027
14057
  export type ShippingLabelForm = io.flow.v0.unions.ShippingLabelForm;
14058
+ export type ShippingLabelHopSummary = io.flow.v0.models.ShippingLabelHopSummary;
14059
+ export type ShippingLabelLaneSummary = io.flow.v0.models.ShippingLabelLaneSummary;
14028
14060
  export type ShippingLabelPackage = io.flow.v0.models.ShippingLabelPackage;
14029
- export type ShippingLabelRatecardSummary = io.flow.v0.unions.ShippingLabelRatecardSummary;
14061
+ export type ShippingLabelRatecardSummary = io.flow.v0.models.ShippingLabelRatecardSummary;
14030
14062
  export type ShippingLabelSummary = io.flow.v0.models.ShippingLabelSummary;
14031
14063
  export type ShippingLabelVersion = io.flow.v0.models.ShippingLabelVersion;
14032
14064
  export type ShippingLane = io.flow.v0.models.ShippingLane;