@flowio/types 8.0.6 → 9.0.0

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.
@@ -1,944 +1,651 @@
1
- declare namespace io.flow.ratecard.v0.models {
2
- interface CrossdockRatecardFee {
3
- readonly discriminator: 'crossdock_ratecard_fee';
4
- readonly amount: io.flow.common.v0.models.Money;
1
+ declare namespace io.flow.bundle.checkout.v0.enums {
2
+ type CheckoutErrorCode =
3
+ | 'generic_error'
4
+ | 'order_identifier_invalid'
5
+ | 'url_invalid'
6
+ | 'organization_invalid'
7
+ | 'session_invalid'
8
+ | 'session_missing'
9
+ | 'session_organization_invalid'
10
+ | 'country_invalid'
11
+ | 'currency_invalid'
12
+ | 'language_invalid'
13
+ | 'checkout_invalid';
14
+ type CheckoutRedirectMethod = 'get' | 'post';
15
+ }
16
+
17
+ declare namespace io.flow.bundle.checkout.v0.models {
18
+ interface Checkout {
19
+ readonly id: string;
20
+ readonly organization: io.flow.common.v0.models.OrganizationSummary;
21
+ readonly builder: io.flow.experience.v0.models.OrderBuilder;
22
+ readonly platform: io.flow.bundle.checkout.v0.models.CheckoutPlatformData;
23
+ readonly content: io.flow.bundle.checkout.v0.models.CheckoutContent;
24
+ readonly destinations: io.flow.reference.v0.models.Country[];
25
+ readonly optins: io.flow.optin.internal.v0.models.OptinPrompt[];
26
+ readonly addresses: io.flow.experience.v0.models.AddressConfiguration[];
27
+ readonly features: io.flow.feature.v0.models.FeatureValueResult;
28
+ readonly configuration: io.flow.checkout.configuration.v0.models.CheckoutConfiguration;
29
+ readonly cart?: io.flow.shopify.v0.models.ShopifyCart;
30
+ readonly customer?: io.flow.customer.v0.models.Customer;
31
+ readonly address_book?: io.flow.customer.v0.models.CustomerAddressBook;
32
+ readonly gift_card_program?: io.flow.experience.internal.v0.models.GiftCardProgram;
33
+ readonly loyalty_program?: io.flow.experience.internal.v0.models.LoyaltyProgram;
34
+ readonly payment: io.flow.bundle.checkout.v0.models.CheckoutPayment;
35
+ readonly customer_bundle?: io.flow.customer.v0.models.CustomerBundle;
5
36
  }
6
37
 
7
- interface DdpRatecardFee {
8
- readonly discriminator: 'ddp_ratecard_fee';
9
- readonly amount: number;
38
+ interface CheckoutBundle {
39
+ readonly cart?: io.flow.shopify.v0.models.ShopifyCart;
40
+ readonly order: io.flow.experience.v0.models.Order;
41
+ readonly order_errors?: io.flow.experience.v0.models.OrderError[];
42
+ readonly checkout?: io.flow.content.internal.v0.models.CheckoutContentSummary;
43
+ readonly optins: io.flow.optin.internal.v0.models.OptinPrompt[];
44
+ readonly destinations: io.flow.reference.v0.models.Country[];
45
+ readonly features: io.flow.feature.v0.models.FeatureValueResult;
46
+ readonly provinces: io.flow.reference.v0.models.Province[];
47
+ readonly checkout_items: io.flow.experience.v0.models.CheckoutItemContent[];
48
+ readonly metadata?: io.flow.bundle.checkout.v0.models.CheckoutBundleMetadata;
49
+ readonly configuration?: io.flow.checkout.configuration.v0.models.CheckoutConfiguration;
50
+ readonly address_configurations?: io.flow.experience.v0.models.AddressConfiguration[];
51
+ readonly customer?: io.flow.customer.v0.models.Customer;
52
+ readonly address_book?: io.flow.customer.v0.models.CustomerAddressBook;
53
+ readonly payment_sources?: io.flow.payment.v0.unions.PaymentSource[];
54
+ readonly customer_bundle?: io.flow.customer.v0.models.CustomerBundle;
10
55
  }
11
56
 
12
- interface DimensionEstimate {
13
- readonly id: string;
14
- readonly q: string;
15
- readonly dimensions: io.flow.ratecard.v0.models.EstimatedDimensions;
16
- readonly position: number;
57
+ interface CheckoutBundleMetadata {
58
+ readonly organization: io.flow.common.v0.models.OrganizationSummary;
17
59
  }
18
60
 
19
- interface DimensionEstimateForm {
20
- readonly q: string;
21
- readonly dimensions: io.flow.ratecard.v0.models.EstimatedDimensions;
22
- readonly position?: number;
61
+ interface CheckoutContent {
62
+ readonly global?: io.flow.content.internal.v0.models.CheckoutContentSummary;
63
+ readonly items: io.flow.experience.v0.models.CheckoutItemContent[];
23
64
  }
24
65
 
25
- interface DimensionEstimateVersion {
26
- readonly id: string;
27
- readonly timestamp: string;
28
- readonly type: io.flow.common.v0.enums.ChangeType;
29
- readonly dimension_estimate: io.flow.ratecard.v0.models.DimensionEstimate;
66
+ interface CheckoutError {
67
+ readonly code: io.flow.bundle.checkout.v0.enums.CheckoutErrorCode;
68
+ readonly messages: string[];
69
+ readonly organization?: io.flow.common.v0.models.OrganizationReference;
70
+ readonly redirect?: io.flow.bundle.checkout.v0.models.CheckoutRedirect;
30
71
  }
31
72
 
32
- interface EstimatedDimensions {
33
- readonly depth: io.flow.common.v0.models.Measurement;
34
- readonly length: io.flow.common.v0.models.Measurement;
35
- readonly weight: io.flow.common.v0.models.Measurement;
36
- readonly width: io.flow.common.v0.models.Measurement;
73
+ interface CheckoutFinalizeOrderForm {
74
+ readonly expected_order_summary: io.flow.bundle.checkout.v0.models.ExpectedOrderSummary;
75
+ readonly order_put_form: io.flow.experience.v0.models.OrderPutForm;
37
76
  }
38
77
 
39
- interface FuelSurchargeRatecardFee {
40
- readonly discriminator: 'fuel_surcharge_ratecard_fee';
41
- readonly amount: io.flow.common.v0.models.Money;
78
+ interface CheckoutOrderForm {
79
+ readonly discriminator: 'order';
80
+ readonly organization: string;
81
+ readonly order: io.flow.experience.v0.models.OrderForm;
82
+ readonly customer?: io.flow.customer.v0.models.CustomerForm;
83
+ readonly address_book?: io.flow.customer.v0.models.CustomerAddressBookForm;
84
+ readonly payment_sources?: io.flow.payment.v0.unions.PaymentSourceForm[];
85
+ readonly urls?: io.flow.checkout.v0.models.CheckoutUrlsForm;
86
+ readonly identifiers?: io.flow.experience.v0.models.OrderSubmissionIdentifierForm[];
87
+ readonly feature_keys?: string[];
88
+ readonly order_parameters?: io.flow.bundle.checkout.v0.models.OrderParameters;
42
89
  }
43
90
 
44
- interface FuelSurchargeServiceFee {
45
- readonly discriminator: 'fuel_surcharge_service_fee';
46
- readonly percent: number;
91
+ interface CheckoutOrderNumberForm {
92
+ readonly discriminator: 'order_number';
93
+ readonly organization: string;
94
+ readonly order_number: string;
95
+ readonly customer?: io.flow.customer.v0.models.CustomerForm;
96
+ readonly address_book?: io.flow.customer.v0.models.CustomerAddressBookForm;
97
+ readonly payment_sources?: io.flow.payment.v0.unions.PaymentSourceForm[];
98
+ readonly urls?: io.flow.checkout.v0.models.CheckoutUrlsForm;
99
+ readonly identifiers?: io.flow.experience.v0.models.OrderSubmissionIdentifierForm[];
100
+ readonly feature_keys?: string[];
101
+ readonly order_parameters?: io.flow.bundle.checkout.v0.models.OrderParameters;
47
102
  }
48
103
 
49
- interface Hop {
50
- readonly hop_number: number;
51
- readonly hop_estimate: io.flow.ratecard.v0.models.HopEstimate;
104
+ interface CheckoutOrderSummary {
105
+ readonly lines: io.flow.bundle.checkout.v0.models.CheckoutOrderSummaryLine[];
52
106
  }
53
107
 
54
- interface HopEstimate {
55
- readonly origin_address: io.flow.fulfillment.v0.models.ShippingAddress;
56
- readonly destination_address: io.flow.fulfillment.v0.models.ShippingAddress;
57
- readonly service: io.flow.ratecard.v0.models.RatecardServiceSummary;
58
- readonly shipment_window: io.flow.ratecard.v0.models.ShipmentWindow;
59
- readonly currency: string;
60
- readonly amount: number;
61
- readonly fees: io.flow.ratecard.v0.unions.RatecardFee[];
62
- readonly total: number;
108
+ interface CheckoutOrderSummaryLine {
109
+ readonly item: io.flow.common.v0.models.ItemReference;
110
+ readonly quantity: number;
63
111
  }
64
112
 
65
- interface OversizedShipmentRatecardFee {
66
- readonly discriminator: 'oversized_shipment_ratecard_fee';
67
- readonly weight_threshold: number;
68
- readonly weight_unit: io.flow.common.v0.enums.UnitOfMeasurement;
69
- readonly margin?: number;
70
- readonly amount?: number;
113
+ interface CheckoutPayment {
114
+ readonly authorizations: io.flow.payment.v0.unions.Authorization[];
115
+ readonly sources: io.flow.payment.v0.unions.PaymentSource[];
116
+ readonly public_key: io.flow.payment.v0.models.PublicKey;
117
+ readonly method_types: io.flow.reference.v0.enums.PaymentMethodType[];
118
+ readonly method_rules: io.flow.experience.v0.models.PaymentMethodRule[];
119
+ readonly authorization_parameters: io.flow.payment.internal.v0.models.AuthorizationParameters[];
71
120
  }
72
121
 
73
- interface Ratecard {
74
- readonly id: string;
75
- readonly number: string;
76
- readonly direction: io.flow.label.v0.enums.Direction;
77
- readonly effective_at: string;
78
- readonly origination_zones: io.flow.common.v0.models.Zone[];
79
- readonly service: io.flow.ratecard.v0.models.RatecardServiceSummary;
80
- readonly published_at?: string;
81
- readonly ratecard_owner: io.flow.fulfillment.v0.enums.RatecardOwner;
122
+ interface CheckoutPlatformData {
123
+ readonly order_number?: string;
82
124
  }
83
125
 
84
- interface RatecardCarrierSummary {
85
- readonly id: string;
86
- readonly name: string;
126
+ interface CheckoutRedirect {
127
+ readonly method: io.flow.bundle.checkout.v0.enums.CheckoutRedirectMethod;
128
+ readonly url: string;
129
+ readonly body?: string;
87
130
  }
88
131
 
89
- interface RatecardEstimateFormV1 {
90
- readonly discriminator: 'ratecard_estimate_form_v1';
91
- readonly origin?: string;
92
- readonly destination?: string;
93
- readonly weight_unit?: io.flow.common.v0.enums.UnitOfMeasurement;
94
- readonly distance_unit?: io.flow.common.v0.enums.UnitOfMeasurement;
95
- readonly service?: string;
96
- readonly weight?: number;
97
- readonly length?: number;
98
- readonly width?: number;
99
- readonly depth?: number;
100
- readonly delivered_duty?: io.flow.common.v0.enums.DeliveredDuty;
101
- readonly line_items?: io.flow.common.v0.models.LineItemForm[];
132
+ interface CheckoutReferenceForm {
133
+ readonly order_number: string;
134
+ readonly order_form: io.flow.experience.v0.models.OrderPutForm;
135
+ readonly order_geo: io.flow.experience.v0.models.OrderGeo;
136
+ readonly session_id: string;
137
+ readonly urls?: io.flow.checkout.v0.models.CheckoutUrlsForm;
138
+ readonly identifiers?: io.flow.experience.v0.models.OrderSubmissionIdentifierForm[];
102
139
  }
103
140
 
104
- interface RatecardEstimateFormV2 {
105
- readonly discriminator: 'ratecard_estimate_form_v2';
106
- readonly origin_address: io.flow.common.v0.models.Address;
107
- readonly destination_address: io.flow.common.v0.models.Address;
108
- readonly weight_unit?: io.flow.common.v0.enums.UnitOfMeasurement;
109
- readonly distance_unit?: io.flow.common.v0.enums.UnitOfMeasurement;
110
- readonly service?: string;
111
- readonly weight?: number;
112
- readonly length?: number;
113
- readonly width?: number;
114
- readonly depth?: number;
115
- readonly delivered_duty?: io.flow.common.v0.enums.DeliveredDuty;
116
- readonly line_items?: io.flow.common.v0.models.LineItemForm[];
117
- readonly center_id?: string;
141
+ interface CheckoutSourceOrderForm {
142
+ readonly source_order_number: string;
143
+ readonly feature_q?: string;
118
144
  }
119
145
 
120
- interface RatecardEstimateSummaryForm {
121
- readonly origin?: string;
122
- readonly destination?: string;
123
- readonly service?: string;
124
- readonly center_key?: string;
146
+ interface CheckoutSubmission {
147
+ readonly builder: io.flow.experience.v0.models.OrderBuilder;
148
+ readonly action?: io.flow.payment.v0.unions.AuthorizationResultAction;
125
149
  }
126
150
 
127
- interface RatecardEstimateV1 {
128
- readonly discriminator: 'ratecard_estimate_v1';
129
- readonly service: io.flow.ratecard.v0.models.RatecardServiceSummary;
130
- readonly shipment_window: io.flow.ratecard.v0.models.ShipmentWindow;
131
- readonly currency: string;
132
- readonly amount: number;
133
- readonly fees: io.flow.ratecard.v0.unions.RatecardFee[];
134
- readonly total: number;
135
- readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
136
- readonly dimensional_weight?: io.flow.common.v0.models.Measurement;
137
- readonly gravitational_weight?: io.flow.common.v0.models.Measurement;
138
- readonly line_items?: io.flow.common.v0.models.LineItemForm[];
151
+ interface CheckoutSubmissionForm {
152
+ readonly authorization_form?: io.flow.payment.v0.unions.AuthorizationForm;
153
+ readonly expected_order_summary?: io.flow.bundle.checkout.v0.models.ExpectedOrderSummary;
154
+ readonly feature_keys?: string[];
139
155
  }
140
156
 
141
- interface RatecardEstimateV2 {
142
- readonly discriminator: 'ratecard_estimate_v2';
143
- readonly hops: io.flow.ratecard.v0.models.Hop[];
144
- readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
145
- readonly dimensional_weight?: io.flow.common.v0.models.Measurement;
146
- readonly gravitational_weight?: io.flow.common.v0.models.Measurement;
147
- readonly line_items?: io.flow.common.v0.models.LineItemForm[];
148
- readonly ratecard_owner?: io.flow.fulfillment.v0.enums.RatecardOwner;
157
+ interface CheckoutSubmitOrderBundle {
158
+ readonly discriminator: 'checkout_submit_order_bundle';
159
+ readonly order?: io.flow.experience.v0.models.Order;
160
+ readonly redirect?: io.flow.payment.v0.unions.AuthorizationResultAction;
161
+ readonly errors?: io.flow.experience.v0.models.OrderError[];
149
162
  }
150
163
 
151
- interface RatecardForm {
152
- readonly direction: io.flow.label.v0.enums.Direction;
153
- readonly effective_at: string;
154
- readonly origination_zones: io.flow.common.v0.models.Zone[];
155
- readonly service: string;
156
- readonly number?: string;
157
- readonly ratecard_owner?: io.flow.fulfillment.v0.enums.RatecardOwner;
164
+ interface CheckoutSubmitOrderForm {
165
+ readonly discriminator: 'checkout_submit_order_form';
166
+ readonly authorization_form?: io.flow.payment.v0.unions.AuthorizationForm;
167
+ readonly expected_order_summary?: io.flow.bundle.checkout.v0.models.ExpectedOrderSummary;
158
168
  }
159
169
 
160
- interface RatecardLane {
161
- readonly id: string;
162
- readonly ratecard: io.flow.ratecard.v0.models.RatecardReference;
163
- readonly currency: string;
164
- readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
165
- readonly shipment_window: io.flow.ratecard.v0.models.ShipmentWindow;
166
- readonly destination: io.flow.common.v0.models.Zone;
167
- readonly dim_factor: number;
168
- readonly fees: io.flow.ratecard.v0.unions.RatecardFee[];
169
- readonly origin: io.flow.common.v0.models.Zone;
170
- readonly service: io.flow.ratecard.v0.models.RatecardServiceSummary;
171
- readonly rates: io.flow.ratecard.v0.models.RatecardRate[];
172
- readonly rounding: io.flow.common.v0.models.Rounding;
173
- readonly weight_unit: io.flow.common.v0.enums.UnitOfMeasurement;
174
- readonly distance_unit: io.flow.common.v0.enums.UnitOfMeasurement;
170
+ interface ExpectedOrderSummary {
171
+ readonly total?: io.flow.common.v0.models.Money;
175
172
  }
176
173
 
177
- interface RatecardLaneForm {
178
- readonly ratecard_id: string;
179
- readonly currency: string;
180
- readonly destination: io.flow.common.v0.models.Zone;
181
- readonly shipment_window: io.flow.ratecard.v0.models.ShipmentWindow;
182
- readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
183
- readonly dim_factor: number;
184
- readonly fees: io.flow.ratecard.v0.unions.RatecardFee[];
185
- readonly origin: io.flow.common.v0.models.Zone;
186
- readonly rounding: io.flow.common.v0.models.Rounding;
187
- readonly rates: io.flow.ratecard.v0.models.RatecardRateForm[];
188
- readonly weight_unit: io.flow.common.v0.enums.UnitOfMeasurement;
189
- readonly distance_unit: io.flow.common.v0.enums.UnitOfMeasurement;
174
+ interface InvalidCheckoutData {
175
+ readonly order: io.flow.experience.v0.models.OrderPutForm;
190
176
  }
191
177
 
192
- interface RatecardLaneImportForm {
193
- readonly ratecard_owner: io.flow.fulfillment.v0.enums.RatecardOwner;
194
- readonly service: string;
195
- readonly currency: string;
196
- readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
197
- readonly origin: io.flow.common.v0.models.Zone;
198
- readonly destination: io.flow.common.v0.models.Zone;
199
- readonly shipment_window: io.flow.ratecard.v0.models.ShipmentWindow;
200
- readonly dim_factor: number;
201
- readonly weight_unit: io.flow.common.v0.enums.UnitOfMeasurement;
202
- readonly distance_unit: io.flow.common.v0.enums.UnitOfMeasurement;
203
- readonly rates: io.flow.ratecard.v0.models.RatecardRateForm[];
178
+ interface OrderParameters {
179
+ readonly experience?: string;
180
+ readonly country?: string;
181
+ readonly ip?: string;
182
+ readonly currency?: string;
183
+ readonly language?: string;
204
184
  }
185
+ }
205
186
 
206
- interface RatecardLaneVersion {
207
- readonly id: string;
208
- readonly timestamp: string;
209
- readonly type: io.flow.common.v0.enums.ChangeType;
210
- readonly ratecard_lane: io.flow.ratecard.v0.models.RatecardLane;
211
- }
187
+ declare namespace io.flow.bundle.checkout.v0.unions {
188
+ type CheckoutForm =
189
+ | io.flow.bundle.checkout.v0.models.CheckoutOrderForm
190
+ | io.flow.bundle.checkout.v0.models.CheckoutOrderNumberForm;
191
+ type CheckoutSubmitOrderBundles = io.flow.bundle.checkout.v0.models.CheckoutSubmitOrderBundle;
192
+ type CheckoutSubmitOrderForms = io.flow.bundle.checkout.v0.models.CheckoutSubmitOrderForm;
193
+ }
212
194
 
213
- interface RatecardLanesImportRequestData {
195
+ declare namespace io.flow.tracking.v0.enums {
196
+ type TrackingStatus =
197
+ | 'label_created'
198
+ | 'pending'
199
+ | 'info_received'
200
+ | 'picked_up'
201
+ | 'in_transit'
202
+ | 'out_for_delivery'
203
+ | 'attempt_fail'
204
+ | 'delivered'
205
+ | 'exception'
206
+ | 'returned'
207
+ | 'expired';
208
+ }
209
+
210
+ declare namespace io.flow.tracking.v0.models {
211
+ interface Tracking {
214
212
  readonly id: string;
215
- readonly source_url: string;
216
- readonly filename?: string;
213
+ readonly labels: io.flow.tracking.v0.models.TrackingLabel[];
214
+ readonly status: io.flow.tracking.v0.enums.TrackingStatus;
215
+ readonly attributes: Record<string, string>;
216
+ readonly url: string;
217
+ readonly window?: io.flow.common.v0.models.DatetimeRange;
218
+ readonly order_number?: string;
217
219
  }
218
220
 
219
- interface RatecardRate {
221
+ interface TrackingEvent {
220
222
  readonly id: string;
221
- readonly amount: number;
222
- readonly weight: number;
223
+ readonly address: io.flow.common.v0.models.Address;
224
+ readonly status: io.flow.tracking.v0.enums.TrackingStatus;
225
+ readonly timestamp: string;
226
+ readonly description?: string;
223
227
  }
224
228
 
225
- interface RatecardRateForm {
226
- readonly amount: number;
227
- readonly weight: number;
229
+ interface TrackingEventForm {
230
+ readonly tracking_label_id: string;
231
+ readonly timestamp: string;
232
+ readonly status: io.flow.tracking.v0.enums.TrackingStatus;
233
+ readonly description?: string;
234
+ readonly address?: string;
228
235
  }
229
236
 
230
- interface RatecardRateVersion {
237
+ interface TrackingEventSummary {
231
238
  readonly id: string;
239
+ readonly status: io.flow.tracking.v0.enums.TrackingStatus;
232
240
  readonly timestamp: string;
233
- readonly type: io.flow.common.v0.enums.ChangeType;
234
- readonly ratecard_rate: io.flow.ratecard.v0.models.RatecardRate;
235
241
  }
236
242
 
237
- interface RatecardReference {
243
+ interface TrackingEventVersion {
238
244
  readonly id: string;
245
+ readonly timestamp: string;
246
+ readonly type: io.flow.common.v0.enums.ChangeType;
247
+ readonly tracking_event: io.flow.tracking.v0.models.TrackingEventSummary;
239
248
  }
240
249
 
241
- interface RatecardServiceSummary {
242
- readonly id: string;
243
- readonly name: string;
244
- readonly carrier: io.flow.ratecard.v0.models.RatecardCarrierSummary;
250
+ interface TrackingForm {
251
+ readonly status?: io.flow.tracking.v0.enums.TrackingStatus;
252
+ readonly order_number?: string;
253
+ readonly attributes?: Record<string, string>;
254
+ readonly window?: io.flow.common.v0.models.DatetimeRange;
245
255
  }
246
256
 
247
- interface RatecardVersion {
257
+ interface TrackingLabel {
248
258
  readonly id: string;
259
+ readonly carrier: string;
260
+ readonly carrier_tracking_number: string;
261
+ readonly events: io.flow.tracking.v0.models.TrackingEvent[];
262
+ readonly status: io.flow.tracking.v0.enums.TrackingStatus;
249
263
  readonly timestamp: string;
250
- readonly type: io.flow.common.v0.enums.ChangeType;
251
- readonly ratecard: io.flow.ratecard.v0.models.Ratecard;
264
+ readonly delivery_estimate?: string;
265
+ readonly description?: string;
252
266
  }
253
267
 
254
- interface RemoteAreaRatecardFee {
255
- readonly discriminator: 'remote_area_ratecard_fee';
256
- readonly amount: io.flow.common.v0.models.Money;
268
+ interface TrackingLabelForm {
269
+ readonly tracking_id: string;
270
+ readonly status: io.flow.tracking.v0.enums.TrackingStatus;
271
+ readonly carrier: string;
272
+ readonly carrier_tracking_number: string;
273
+ readonly delivery_estimate?: string;
274
+ readonly description?: string;
275
+ readonly timestamp?: string;
276
+ readonly parent_id?: string;
257
277
  }
258
278
 
259
- interface RemoteAreaServiceFee {
260
- readonly discriminator: 'remote_area_service_fee';
261
- readonly amount: io.flow.common.v0.models.Money;
279
+ interface TrackingLabelSummary {
280
+ readonly id: string;
281
+ readonly tracking: io.flow.tracking.v0.models.TrackingSummary;
282
+ readonly status: io.flow.tracking.v0.enums.TrackingStatus;
283
+ readonly carrier: string;
284
+ readonly tracking_number: string;
262
285
  }
263
286
 
264
- interface ReturnPackageRatecardFee {
265
- readonly discriminator: 'return_package_ratecard_fee';
266
- readonly amount: number;
287
+ interface TrackingLabelVersion {
288
+ readonly id: string;
289
+ readonly timestamp: string;
290
+ readonly type: io.flow.common.v0.enums.ChangeType;
291
+ readonly tracking_label: io.flow.tracking.v0.models.TrackingLabelSummary;
267
292
  }
268
293
 
269
- interface ShipmentWindow {
270
- readonly from: number;
271
- readonly to: number;
294
+ interface TrackingSummary {
295
+ readonly id: string;
296
+ readonly status: io.flow.tracking.v0.enums.TrackingStatus;
297
+ readonly order_number?: string;
272
298
  }
273
- }
274
299
 
275
- declare namespace io.flow.ratecard.v0.unions {
276
- type RatecardEstimate =
277
- | io.flow.ratecard.v0.models.RatecardEstimateV1
278
- | io.flow.ratecard.v0.models.RatecardEstimateV2;
279
- type RatecardEstimateForm =
280
- | io.flow.ratecard.v0.models.RatecardEstimateFormV1
281
- | io.flow.ratecard.v0.models.RatecardEstimateFormV2;
282
- type RatecardFee =
283
- | io.flow.ratecard.v0.models.DdpRatecardFee
284
- | io.flow.ratecard.v0.models.FuelSurchargeRatecardFee
285
- | io.flow.ratecard.v0.models.OversizedShipmentRatecardFee
286
- | io.flow.ratecard.v0.models.ReturnPackageRatecardFee
287
- | io.flow.ratecard.v0.models.CrossdockRatecardFee
288
- | io.flow.ratecard.v0.models.RemoteAreaRatecardFee;
289
- type ServiceFee =
290
- | io.flow.ratecard.v0.models.FuelSurchargeServiceFee
291
- | io.flow.ratecard.v0.models.RemoteAreaServiceFee;
300
+ interface TrackingVersion {
301
+ readonly id: string;
302
+ readonly timestamp: string;
303
+ readonly type: io.flow.common.v0.enums.ChangeType;
304
+ readonly tracking: io.flow.tracking.v0.models.TrackingSummary;
305
+ }
292
306
  }
293
307
 
294
- declare namespace io.flow.bundle.checkout.v0.enums {
295
- type CheckoutErrorCode =
308
+ declare namespace io.flow.experience.v0.enums {
309
+ type CreditPaymentErrorCode =
296
310
  | 'generic_error'
297
- | 'order_identifier_invalid'
298
- | 'url_invalid'
299
- | 'organization_invalid'
300
- | 'session_invalid'
301
- | 'session_missing'
302
- | 'session_organization_invalid'
303
- | 'country_invalid'
304
- | 'currency_invalid'
305
- | 'language_invalid'
306
- | 'checkout_invalid';
307
- type CheckoutRedirectMethod = 'get' | 'post';
311
+ | 'invalid_order_number'
312
+ | 'invalid_currency'
313
+ | 'invalid_description'
314
+ | 'duplicate'
315
+ | 'amount_must_be_positive'
316
+ | 'amount_exceeds_balance'
317
+ | 'insufficient_amount';
318
+ type DeliveredDutyDisplayType = 'all' | 'single';
319
+ type ExperienceCloneStatus = 'pending' | 'updating' | 'completed' | 'failed';
320
+ type ExperiencePaymentMethodTag = 'display';
321
+ type ExperienceStatus = 'draft' | 'active' | 'archiving' | 'archived';
322
+ type OrderErrorCode =
323
+ | 'generic_error'
324
+ | 'order_item_not_available'
325
+ | 'order_identifier_error'
326
+ | 'authorization_invalid'
327
+ | 'domestic_shipping_unavailable'
328
+ | 'shipping_unavailable'
329
+ | 'value_threshold_exceeded'
330
+ | 'invalid_currency'
331
+ | 'invalid_country'
332
+ | 'invalid_region'
333
+ | 'invalid_language'
334
+ | 'item_out_of_stock'
335
+ | 'gift_card_not_accepted'
336
+ | 'total_changed';
337
+ type OrderPaymentType =
338
+ | 'card'
339
+ | 'online'
340
+ | 'credit'
341
+ | 'installment_plan'
342
+ | 'cash_on_delivery';
343
+ type OrderStatus = 'open' | 'submitted';
344
+ type OrderStorage = 'do_not_persist' | 'persist';
345
+ type OrganizationPaymentMethodTag = 'deny';
346
+ type PaymentMethodRuleContentKey = 'description';
347
+ type PriceFacetBoundary = 'min' | 'max';
348
+ type PromotionTriggerType = 'automatic' | 'order_subtotal';
308
349
  }
309
350
 
310
- declare namespace io.flow.bundle.checkout.v0.models {
311
- interface Checkout {
312
- readonly id: string;
313
- readonly organization: io.flow.common.v0.models.OrganizationSummary;
314
- readonly builder: io.flow.experience.v0.models.OrderBuilder;
315
- readonly platform: io.flow.bundle.checkout.v0.models.CheckoutPlatformData;
316
- readonly content: io.flow.bundle.checkout.v0.models.CheckoutContent;
317
- readonly destinations: io.flow.reference.v0.models.Country[];
318
- readonly optins: io.flow.optin.internal.v0.models.OptinPrompt[];
319
- readonly addresses: io.flow.experience.v0.models.AddressConfiguration[];
320
- readonly features: io.flow.feature.v0.models.FeatureValueResult;
321
- readonly configuration: unknown /*io.flow.checkout.configuration.v0.models.checkout_configuration*/;
322
- readonly cart?: io.flow.shopify.v0.models.ShopifyCart;
323
- readonly customer?: io.flow.customer.v0.models.Customer;
324
- readonly address_book?: io.flow.customer.v0.models.CustomerAddressBook;
325
- readonly gift_card_program?: io.flow.experience.internal.v0.models.GiftCardProgram;
326
- readonly loyalty_program?: io.flow.experience.internal.v0.models.LoyaltyProgram;
327
- readonly payment: io.flow.bundle.checkout.v0.models.CheckoutPayment;
328
- readonly customer_bundle?: io.flow.customer.v0.models.CustomerBundle;
351
+ declare namespace io.flow.experience.v0.models {
352
+ interface AddressConfiguration {
353
+ readonly country: string;
354
+ readonly field_validation: io.flow.experience.v0.models.AddressFieldValidation;
355
+ readonly provinces: io.flow.experience.v0.models.AddressConfigurationProvince[];
329
356
  }
330
357
 
331
- interface CheckoutBundle {
332
- readonly cart?: io.flow.shopify.v0.models.ShopifyCart;
333
- readonly order: io.flow.experience.v0.models.Order;
334
- readonly order_errors?: io.flow.experience.v0.models.OrderError[];
335
- readonly checkout?: io.flow.content.internal.v0.models.CheckoutContentSummary;
336
- readonly optins: io.flow.optin.internal.v0.models.OptinPrompt[];
337
- readonly destinations: io.flow.reference.v0.models.Country[];
338
- readonly features: io.flow.feature.v0.models.FeatureValueResult;
339
- readonly provinces: io.flow.reference.v0.models.Province[];
340
- readonly checkout_items: io.flow.experience.v0.models.CheckoutItemContent[];
341
- readonly metadata?: io.flow.bundle.checkout.v0.models.CheckoutBundleMetadata;
342
- readonly configuration?: unknown /*io.flow.checkout.configuration.v0.models.checkout_configuration*/;
343
- readonly address_configurations?: io.flow.experience.v0.models.AddressConfiguration[];
344
- readonly customer?: io.flow.customer.v0.models.Customer;
345
- readonly address_book?: io.flow.customer.v0.models.CustomerAddressBook;
346
- readonly payment_sources?: io.flow.payment.v0.unions.PaymentSource[];
347
- readonly customer_bundle?: io.flow.customer.v0.models.CustomerBundle;
358
+ interface AddressConfigurationProvince {
359
+ readonly value: string;
360
+ readonly name: string;
361
+ readonly translations?: io.flow.experience.v0.models.AddressConfigurationProvinceTranslation[];
348
362
  }
349
363
 
350
- interface CheckoutBundleMetadata {
351
- readonly organization: io.flow.common.v0.models.OrganizationSummary;
364
+ interface AddressConfigurationProvinceTranslation {
365
+ readonly locale: io.flow.experience.v0.models.AddressConfigurationProvinceTranslationLocale;
366
+ readonly name: string;
352
367
  }
353
368
 
354
- interface CheckoutContent {
355
- readonly global?: io.flow.content.internal.v0.models.CheckoutContentSummary;
356
- readonly items: io.flow.experience.v0.models.CheckoutItemContent[];
369
+ interface AddressConfigurationProvinceTranslationLocale {
370
+ readonly id: string;
371
+ readonly name: string;
372
+ readonly language: string;
357
373
  }
358
374
 
359
- interface CheckoutError {
360
- readonly code: io.flow.bundle.checkout.v0.enums.CheckoutErrorCode;
361
- readonly messages: string[];
362
- readonly organization?: io.flow.common.v0.models.OrganizationReference;
363
- readonly redirect?: io.flow.bundle.checkout.v0.models.CheckoutRedirect;
375
+ interface AddressFieldValidation {
376
+ readonly first_name: io.flow.field.validation.v0.unions.FieldValidationRule[];
377
+ readonly last_name: io.flow.field.validation.v0.unions.FieldValidationRule[];
378
+ readonly street_1: io.flow.field.validation.v0.unions.FieldValidationRule[];
379
+ readonly street_2: io.flow.field.validation.v0.unions.FieldValidationRule[];
380
+ readonly city: io.flow.field.validation.v0.unions.FieldValidationRule[];
381
+ readonly province: io.flow.field.validation.v0.unions.FieldValidationRule[];
382
+ readonly postal: io.flow.field.validation.v0.unions.FieldValidationRule[];
383
+ readonly phone: io.flow.field.validation.v0.unions.FieldValidationRule[];
364
384
  }
365
385
 
366
- interface CheckoutFinalizeOrderForm {
367
- readonly expected_order_summary: io.flow.bundle.checkout.v0.models.ExpectedOrderSummary;
368
- readonly order_put_form: io.flow.experience.v0.models.OrderPutForm;
386
+ interface Allocation {
387
+ readonly order: io.flow.experience.v0.models.AllocationOrderSummary;
388
+ readonly details: io.flow.experience.v0.unions.AllocationDetail[];
369
389
  }
370
390
 
371
- interface CheckoutOrderForm {
372
- readonly discriminator: 'order';
373
- readonly organization: string;
374
- readonly order: io.flow.experience.v0.models.OrderForm;
375
- readonly customer?: io.flow.customer.v0.models.CustomerForm;
376
- readonly address_book?: io.flow.customer.v0.models.CustomerAddressBookForm;
377
- readonly payment_sources?: io.flow.payment.v0.unions.PaymentSourceForm[];
378
- readonly urls?: io.flow.checkout.v0.models.CheckoutUrlsForm;
379
- readonly identifiers?: io.flow.experience.v0.models.OrderSubmissionIdentifierForm[];
380
- readonly feature_keys?: string[];
381
- readonly order_parameters?: io.flow.bundle.checkout.v0.models.OrderParameters;
391
+ interface AllocationDetailComponent {
392
+ readonly discriminator: 'allocation_detail_component';
393
+ readonly key: io.flow.order.price.v0.enums.OrderPriceDetailComponentKey;
394
+ readonly total: io.flow.common.v0.models.PriceWithBase;
395
+ readonly price?: io.flow.common.v0.models.PriceWithBase;
382
396
  }
383
397
 
384
- interface CheckoutOrderNumberForm {
385
- readonly discriminator: 'order_number';
386
- readonly organization: string;
387
- readonly order_number: string;
388
- readonly customer?: io.flow.customer.v0.models.CustomerForm;
389
- readonly address_book?: io.flow.customer.v0.models.CustomerAddressBookForm;
390
- readonly payment_sources?: io.flow.payment.v0.unions.PaymentSourceForm[];
391
- readonly urls?: io.flow.checkout.v0.models.CheckoutUrlsForm;
392
- readonly identifiers?: io.flow.experience.v0.models.OrderSubmissionIdentifierForm[];
393
- readonly feature_keys?: string[];
394
- readonly order_parameters?: io.flow.bundle.checkout.v0.models.OrderParameters;
398
+ interface AllocationLevyComponent {
399
+ readonly discriminator: 'allocation_levy_component';
400
+ readonly key: io.flow.order.price.v0.enums.OrderPriceDetailComponentKey;
401
+ readonly total: io.flow.common.v0.models.PriceWithBase;
402
+ readonly rate: number;
403
+ readonly name: string;
404
+ readonly price?: io.flow.common.v0.models.PriceWithBase;
405
+ readonly accuracy?: io.flow.price.v0.enums.PriceAccuracy;
406
+ readonly basis?: io.flow.common.v0.models.MoneyWithBase;
395
407
  }
396
408
 
397
- interface CheckoutOrderSummary {
398
- readonly lines: io.flow.bundle.checkout.v0.models.CheckoutOrderSummaryLine[];
409
+ interface AllocationLineDetail {
410
+ readonly discriminator: 'allocation_line_detail';
411
+ readonly number: string;
412
+ readonly quantity: number;
413
+ readonly key: io.flow.order.price.v0.enums.OrderPriceDetailKey;
414
+ readonly price: io.flow.common.v0.models.PriceWithBase;
415
+ readonly total: io.flow.common.v0.models.PriceWithBase;
416
+ readonly included: io.flow.experience.v0.unions.AllocationComponent[];
417
+ readonly not_included: io.flow.experience.v0.unions.AllocationComponent[];
399
418
  }
400
419
 
401
- interface CheckoutOrderSummaryLine {
402
- readonly item: io.flow.common.v0.models.ItemReference;
403
- readonly quantity: number;
420
+ interface AllocationOrderDetail {
421
+ readonly discriminator: 'allocation_order_detail';
422
+ readonly key: io.flow.order.price.v0.enums.OrderPriceDetailKey;
423
+ readonly total: io.flow.common.v0.models.PriceWithBase;
424
+ readonly included: io.flow.experience.v0.unions.AllocationComponent[];
425
+ readonly not_included: io.flow.experience.v0.unions.AllocationComponent[];
404
426
  }
405
427
 
406
- interface CheckoutPayment {
407
- readonly authorizations: io.flow.payment.v0.unions.Authorization[];
408
- readonly sources: io.flow.payment.v0.unions.PaymentSource[];
409
- readonly public_key: io.flow.payment.v0.models.PublicKey;
410
- readonly method_types: io.flow.reference.v0.enums.PaymentMethodType[];
411
- readonly method_rules: io.flow.experience.v0.models.PaymentMethodRule[];
412
- readonly authorization_parameters: io.flow.payment.internal.v0.models.AuthorizationParameters[];
428
+ interface AllocationOrderSummary {
429
+ readonly id: string;
430
+ readonly number: string;
431
+ readonly submitted_at?: string;
413
432
  }
414
433
 
415
- interface CheckoutPlatformData {
416
- readonly order_number?: string;
434
+ interface AllocationV2 {
435
+ readonly id: string;
436
+ readonly order: io.flow.experience.v0.models.AllocationOrderSummary;
437
+ readonly details: io.flow.experience.v0.unions.AllocationDetail[];
438
+ readonly total: io.flow.catalog.v0.models.LocalizedTotal;
417
439
  }
418
440
 
419
- interface CheckoutRedirect {
420
- readonly method: io.flow.bundle.checkout.v0.enums.CheckoutRedirectMethod;
421
- readonly url: string;
422
- readonly body?: string;
441
+ interface AvailablePromotion {
442
+ readonly id: string;
443
+ readonly shipping_configuration: io.flow.fulfillment.v0.models.ShippingConfigurationReference;
444
+ readonly region: io.flow.experience.v0.models.RegionReference;
445
+ readonly promotions: io.flow.experience.v0.unions.Promotion[];
423
446
  }
424
447
 
425
- interface CheckoutReferenceForm {
426
- readonly order_number: string;
427
- readonly order_form: io.flow.experience.v0.models.OrderPutForm;
428
- readonly order_geo: io.flow.experience.v0.models.OrderGeo;
429
- readonly session_id: string;
430
- readonly urls?: io.flow.checkout.v0.models.CheckoutUrlsForm;
431
- readonly identifiers?: io.flow.experience.v0.models.OrderSubmissionIdentifierForm[];
448
+ interface CheckoutAttribute {
449
+ readonly id: string;
450
+ readonly experience: io.flow.experience.v0.models.ExperienceReference;
451
+ readonly key: string;
452
+ readonly name: string;
453
+ readonly attribute_keys: string[];
454
+ readonly position: number;
432
455
  }
433
456
 
434
- interface CheckoutSourceOrderForm {
435
- readonly source_order_number: string;
436
- readonly feature_q?: string;
457
+ interface CheckoutAttributeForm {
458
+ readonly key: string;
459
+ readonly name?: string;
460
+ readonly experience_key: string;
461
+ readonly attribute_keys: string[];
462
+ readonly position?: number;
437
463
  }
438
464
 
439
- interface CheckoutSubmission {
440
- readonly builder: io.flow.experience.v0.models.OrderBuilder;
441
- readonly action?: io.flow.payment.v0.unions.AuthorizationResultAction;
465
+ interface CheckoutItemContent {
466
+ readonly item: io.flow.catalog.v0.models.Item;
467
+ readonly name: string;
468
+ readonly description?: string;
469
+ readonly attributes: io.flow.experience.v0.models.CheckoutItemContentAttribute[];
470
+ readonly image?: io.flow.catalog.v0.models.Image;
442
471
  }
443
472
 
444
- interface CheckoutSubmissionForm {
445
- readonly authorization_form?: io.flow.payment.v0.unions.AuthorizationForm;
446
- readonly expected_order_summary?: io.flow.bundle.checkout.v0.models.ExpectedOrderSummary;
447
- readonly feature_keys?: string[];
473
+ interface CheckoutItemContentAttribute {
474
+ readonly key: string;
475
+ readonly name: string;
476
+ readonly value: string;
448
477
  }
449
478
 
450
- interface CheckoutSubmitOrderBundle {
451
- readonly discriminator: 'checkout_submit_order_bundle';
452
- readonly order?: io.flow.experience.v0.models.Order;
453
- readonly redirect?: io.flow.payment.v0.unions.AuthorizationResultAction;
454
- readonly errors?: io.flow.experience.v0.models.OrderError[];
479
+ interface CheckoutSettings {
480
+ readonly configuration: io.flow.experience.v0.models.ExperienceConfigurationReference;
455
481
  }
456
482
 
457
- interface CheckoutSubmitOrderForm {
458
- readonly discriminator: 'checkout_submit_order_form';
459
- readonly authorization_form?: io.flow.payment.v0.unions.AuthorizationForm;
460
- readonly expected_order_summary?: io.flow.bundle.checkout.v0.models.ExpectedOrderSummary;
483
+ interface CreditPayment {
484
+ readonly id: string;
485
+ readonly order: io.flow.experience.v0.unions.ExpandableOrder;
486
+ readonly key: string;
487
+ readonly description: string;
488
+ readonly value: io.flow.common.v0.models.PriceWithBase;
489
+ readonly original: io.flow.experience.v0.models.OriginalPrices;
490
+ readonly attributes: Record<string, string>;
461
491
  }
462
492
 
463
- interface ExpectedOrderSummary {
464
- readonly total?: io.flow.common.v0.models.Money;
493
+ interface CreditPaymentError {
494
+ readonly code: io.flow.experience.v0.enums.CreditPaymentErrorCode;
495
+ readonly messages: string[];
496
+ readonly codes: io.flow.experience.v0.enums.CreditPaymentErrorCode[];
465
497
  }
466
498
 
467
- interface InvalidCheckoutData {
468
- readonly order: io.flow.experience.v0.models.OrderPutForm;
499
+ interface CreditPaymentForm {
500
+ readonly order_number: string;
501
+ readonly description: string;
502
+ readonly amount: number;
503
+ readonly max: number;
504
+ readonly currency: string;
505
+ readonly attributes?: Record<string, string>;
469
506
  }
470
507
 
471
- interface OrderParameters {
472
- readonly experience?: string;
473
- readonly country?: string;
474
- readonly ip?: string;
475
- readonly currency?: string;
476
- readonly language?: string;
508
+ interface CreditPaymentVersion {
509
+ readonly id: string;
510
+ readonly timestamp: string;
511
+ readonly type: io.flow.common.v0.enums.ChangeType;
512
+ readonly credit_payment: io.flow.experience.v0.models.CreditPayment;
477
513
  }
478
- }
479
514
 
480
- declare namespace io.flow.bundle.checkout.v0.unions {
481
- type CheckoutForm =
482
- | io.flow.bundle.checkout.v0.models.CheckoutOrderForm
483
- | io.flow.bundle.checkout.v0.models.CheckoutOrderNumberForm;
484
- type CheckoutSubmitOrderBundles = io.flow.bundle.checkout.v0.models.CheckoutSubmitOrderBundle;
485
- type CheckoutSubmitOrderForms = io.flow.bundle.checkout.v0.models.CheckoutSubmitOrderForm;
486
- }
515
+ interface DeliveredDutySetting {
516
+ readonly default: io.flow.common.v0.enums.DeliveredDuty;
517
+ readonly available: io.flow.common.v0.enums.DeliveredDuty[];
518
+ readonly display?: io.flow.experience.v0.enums.DeliveredDutyDisplayType;
519
+ }
487
520
 
488
- declare namespace io.flow.tracking.v0.enums {
489
- type TrackingStatus =
490
- | 'label_created'
491
- | 'pending'
492
- | 'info_received'
493
- | 'picked_up'
494
- | 'in_transit'
495
- | 'out_for_delivery'
496
- | 'attempt_fail'
497
- | 'delivered'
498
- | 'exception'
499
- | 'returned'
500
- | 'expired';
501
- }
502
-
503
- declare namespace io.flow.tracking.v0.models {
504
- interface Tracking {
505
- readonly id: string;
506
- readonly labels: io.flow.tracking.v0.models.TrackingLabel[];
507
- readonly status: io.flow.tracking.v0.enums.TrackingStatus;
508
- readonly attributes: Record<string, string>;
509
- readonly url: string;
510
- readonly window?: io.flow.common.v0.models.DatetimeRange;
511
- readonly order_number?: string;
512
- }
513
-
514
- interface TrackingEvent {
521
+ interface Discount {
522
+ readonly discriminator: 'discount';
515
523
  readonly id: string;
516
- readonly address: io.flow.common.v0.models.Address;
517
- readonly status: io.flow.tracking.v0.enums.TrackingStatus;
518
- readonly timestamp: string;
519
- readonly description?: string;
520
- }
521
-
522
- interface TrackingEventForm {
523
- readonly tracking_label_id: string;
524
- readonly timestamp: string;
525
- readonly status: io.flow.tracking.v0.enums.TrackingStatus;
526
- readonly description?: string;
527
- readonly address?: string;
524
+ readonly code?: string;
525
+ readonly label: string;
526
+ readonly price: io.flow.common.v0.models.PriceWithBase;
527
+ readonly attributes?: Record<string, string>;
528
528
  }
529
529
 
530
- interface TrackingEventSummary {
530
+ interface Experience {
531
+ readonly discriminator: 'experience';
531
532
  readonly id: string;
532
- readonly status: io.flow.tracking.v0.enums.TrackingStatus;
533
- readonly timestamp: string;
533
+ readonly key: string;
534
+ readonly name: string;
535
+ readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
536
+ readonly region: io.flow.experience.v0.models.RegionReference;
537
+ readonly country: string;
538
+ readonly currency: string;
539
+ readonly language: string;
540
+ readonly measurement_system: io.flow.common.v0.enums.MeasurementSystem;
541
+ readonly subcatalog: io.flow.catalog.v0.models.SubcatalogReference;
542
+ readonly position: number;
543
+ readonly settings: io.flow.experience.v0.models.ExperienceSettings;
544
+ readonly status?: io.flow.experience.v0.enums.ExperienceStatus;
534
545
  }
535
546
 
536
- interface TrackingEventVersion {
547
+ interface ExperienceCheckoutSettings {
537
548
  readonly id: string;
538
- readonly timestamp: string;
539
- readonly type: io.flow.common.v0.enums.ChangeType;
540
- readonly tracking_event: io.flow.tracking.v0.models.TrackingEventSummary;
549
+ readonly experience: io.flow.experience.v0.models.ExperienceOverview;
550
+ readonly checkout_configuration: io.flow.experience.v0.models.ExperienceConfigurationReference;
541
551
  }
542
552
 
543
- interface TrackingForm {
544
- readonly status?: io.flow.tracking.v0.enums.TrackingStatus;
545
- readonly order_number?: string;
546
- readonly attributes?: Record<string, string>;
547
- readonly window?: io.flow.common.v0.models.DatetimeRange;
553
+ interface ExperienceCheckoutSettingsForm {
554
+ readonly checkout_configuration_id: string;
548
555
  }
549
556
 
550
- interface TrackingLabel {
557
+ interface ExperienceClone {
551
558
  readonly id: string;
552
- readonly carrier: string;
553
- readonly carrier_tracking_number: string;
554
- readonly events: io.flow.tracking.v0.models.TrackingEvent[];
555
- readonly status: io.flow.tracking.v0.enums.TrackingStatus;
556
- readonly timestamp: string;
557
- readonly delivery_estimate?: string;
558
- readonly description?: string;
559
- }
560
-
561
- interface TrackingLabelForm {
562
- readonly tracking_id: string;
563
- readonly status: io.flow.tracking.v0.enums.TrackingStatus;
564
- readonly carrier: string;
565
- readonly carrier_tracking_number: string;
566
- readonly delivery_estimate?: string;
567
- readonly description?: string;
568
- readonly timestamp?: string;
569
- readonly parent_id?: string;
559
+ readonly source_experience: io.flow.experience.v0.models.ExperienceReference;
560
+ readonly cloned_experience?: io.flow.experience.v0.models.ExperienceReference;
561
+ readonly status: io.flow.experience.v0.enums.ExperienceCloneStatus;
570
562
  }
571
563
 
572
- interface TrackingLabelSummary {
573
- readonly id: string;
574
- readonly tracking: io.flow.tracking.v0.models.TrackingSummary;
575
- readonly status: io.flow.tracking.v0.enums.TrackingStatus;
576
- readonly carrier: string;
577
- readonly tracking_number: string;
564
+ interface ExperienceCloneForm {
565
+ readonly name?: string;
578
566
  }
579
567
 
580
- interface TrackingLabelVersion {
568
+ interface ExperienceConfigurationReference {
581
569
  readonly id: string;
582
- readonly timestamp: string;
583
- readonly type: io.flow.common.v0.enums.ChangeType;
584
- readonly tracking_label: io.flow.tracking.v0.models.TrackingLabelSummary;
585
570
  }
586
571
 
587
- interface TrackingSummary {
588
- readonly id: string;
589
- readonly status: io.flow.tracking.v0.enums.TrackingStatus;
590
- readonly order_number?: string;
572
+ interface ExperienceCurrencyFormat {
573
+ readonly symbol: io.flow.common.v0.enums.CurrencySymbolFormat;
574
+ readonly label_formatters: io.flow.common.v0.enums.CurrencyLabelFormatter[];
591
575
  }
592
576
 
593
- interface TrackingVersion {
594
- readonly id: string;
595
- readonly timestamp: string;
596
- readonly type: io.flow.common.v0.enums.ChangeType;
597
- readonly tracking: io.flow.tracking.v0.models.TrackingSummary;
577
+ interface ExperienceCurrencyFormatForm {
578
+ readonly symbol: io.flow.common.v0.enums.CurrencySymbolFormat;
579
+ readonly label_formatters: io.flow.common.v0.enums.CurrencyLabelFormatter[];
598
580
  }
599
- }
600
-
601
- declare namespace io.flow.experience.v0.enums {
602
- type CreditPaymentErrorCode =
603
- | 'generic_error'
604
- | 'invalid_order_number'
605
- | 'invalid_currency'
606
- | 'invalid_description'
607
- | 'duplicate'
608
- | 'amount_must_be_positive'
609
- | 'amount_exceeds_balance'
610
- | 'insufficient_amount';
611
- type DeliveredDutyDisplayType = 'all' | 'single';
612
- type ExperienceCloneStatus = 'pending' | 'updating' | 'completed' | 'failed';
613
- type ExperiencePaymentMethodTag = 'display';
614
- type ExperienceStatus = 'draft' | 'active' | 'archiving' | 'archived';
615
- type OrderErrorCode =
616
- | 'generic_error'
617
- | 'order_item_not_available'
618
- | 'order_identifier_error'
619
- | 'authorization_invalid'
620
- | 'domestic_shipping_unavailable'
621
- | 'shipping_unavailable'
622
- | 'value_threshold_exceeded'
623
- | 'invalid_currency'
624
- | 'invalid_country'
625
- | 'invalid_region'
626
- | 'invalid_language'
627
- | 'item_out_of_stock'
628
- | 'gift_card_not_accepted'
629
- | 'total_changed';
630
- type OrderPaymentType =
631
- | 'card'
632
- | 'online'
633
- | 'credit'
634
- | 'installment_plan'
635
- | 'cash_on_delivery';
636
- type OrderStatus = 'open' | 'submitted';
637
- type OrderStorage = 'do_not_persist' | 'persist';
638
- type OrganizationPaymentMethodTag = 'deny';
639
- type PaymentMethodRuleContentKey = 'description';
640
- type PriceFacetBoundary = 'min' | 'max';
641
- type PromotionTriggerType = 'automatic' | 'order_subtotal';
642
- }
643
581
 
644
- declare namespace io.flow.experience.v0.models {
645
- interface AddressConfiguration {
582
+ interface ExperienceDefaults {
583
+ readonly key: string;
584
+ readonly name: string;
585
+ readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
646
586
  readonly country: string;
647
- readonly field_validation: io.flow.experience.v0.models.AddressFieldValidation;
648
- readonly provinces: io.flow.experience.v0.models.AddressConfigurationProvince[];
587
+ readonly currency: string;
588
+ readonly language: string;
589
+ readonly measurement_system: io.flow.common.v0.enums.MeasurementSystem;
649
590
  }
650
591
 
651
- interface AddressConfigurationProvince {
652
- readonly value: string;
592
+ interface ExperienceForm {
593
+ readonly region_id: string;
653
594
  readonly name: string;
654
- readonly translations?: io.flow.experience.v0.models.AddressConfigurationProvinceTranslation[];
595
+ readonly delivered_duty?: io.flow.common.v0.enums.DeliveredDuty;
596
+ readonly country?: string;
597
+ readonly currency?: string;
598
+ readonly language?: string;
599
+ readonly key?: string;
600
+ readonly measurement_system?: io.flow.common.v0.enums.MeasurementSystem;
601
+ readonly subcatalog_id?: string;
655
602
  }
656
603
 
657
- interface AddressConfigurationProvinceTranslation {
658
- readonly locale: io.flow.experience.v0.models.AddressConfigurationProvinceTranslationLocale;
604
+ interface ExperienceGeo {
605
+ readonly key: string;
659
606
  readonly name: string;
607
+ readonly region: io.flow.experience.v0.models.RegionReference;
608
+ readonly country: string;
609
+ readonly currency: string;
610
+ readonly language: string;
611
+ readonly measurement_system: io.flow.common.v0.enums.MeasurementSystem;
660
612
  }
661
613
 
662
- interface AddressConfigurationProvinceTranslationLocale {
614
+ interface ExperienceLogisticsSettings {
663
615
  readonly id: string;
664
- readonly name: string;
665
- readonly language: string;
616
+ readonly experience: io.flow.experience.v0.models.ExperienceOverview;
617
+ readonly shipping_configuration: io.flow.fulfillment.v0.models.ShippingConfigurationReference;
666
618
  }
667
619
 
668
- interface AddressFieldValidation {
669
- readonly first_name: io.flow.field.validation.v0.unions.FieldValidationRule[];
670
- readonly last_name: io.flow.field.validation.v0.unions.FieldValidationRule[];
671
- readonly street_1: io.flow.field.validation.v0.unions.FieldValidationRule[];
672
- readonly street_2: io.flow.field.validation.v0.unions.FieldValidationRule[];
673
- readonly city: io.flow.field.validation.v0.unions.FieldValidationRule[];
674
- readonly province: io.flow.field.validation.v0.unions.FieldValidationRule[];
675
- readonly postal: io.flow.field.validation.v0.unions.FieldValidationRule[];
676
- readonly phone: io.flow.field.validation.v0.unions.FieldValidationRule[];
620
+ interface ExperienceLogisticsSettingsPutForm {
621
+ readonly shipping_configuration_key: string;
677
622
  }
678
623
 
679
- interface Allocation {
680
- readonly order: io.flow.experience.v0.models.AllocationOrderSummary;
681
- readonly details: io.flow.experience.v0.unions.AllocationDetail[];
624
+ interface ExperienceLogisticsSummary {
625
+ readonly outbound?: io.flow.experience.v0.models.ExperienceLogisticsTierSummary;
626
+ readonly return?: io.flow.experience.v0.models.ExperienceLogisticsTierSummary;
682
627
  }
683
628
 
684
- interface AllocationDetailComponent {
685
- readonly discriminator: 'allocation_detail_component';
686
- readonly key: io.flow.order.price.v0.enums.OrderPriceDetailComponentKey;
687
- readonly total: io.flow.common.v0.models.PriceWithBase;
688
- readonly price?: io.flow.common.v0.models.PriceWithBase;
629
+ interface ExperienceLogisticsTierSummary {
630
+ readonly prices: io.flow.experience.v0.models.ExperienceLogisticsTierSummaryPrices;
689
631
  }
690
632
 
691
- interface AllocationLevyComponent {
692
- readonly discriminator: 'allocation_levy_component';
693
- readonly key: io.flow.order.price.v0.enums.OrderPriceDetailComponentKey;
694
- readonly total: io.flow.common.v0.models.PriceWithBase;
695
- readonly rate: number;
696
- readonly name: string;
697
- readonly price?: io.flow.common.v0.models.PriceWithBase;
698
- readonly accuracy?: io.flow.price.v0.enums.PriceAccuracy;
699
- readonly basis?: io.flow.common.v0.models.MoneyWithBase;
633
+ interface ExperienceLogisticsTierSummaryPrices {
634
+ readonly minimum: io.flow.common.v0.models.Price;
700
635
  }
701
636
 
702
- interface AllocationLineDetail {
703
- readonly discriminator: 'allocation_line_detail';
704
- readonly number: string;
705
- readonly quantity: number;
706
- readonly key: io.flow.order.price.v0.enums.OrderPriceDetailKey;
707
- readonly price: io.flow.common.v0.models.PriceWithBase;
708
- readonly total: io.flow.common.v0.models.PriceWithBase;
709
- readonly included: io.flow.experience.v0.unions.AllocationComponent[];
710
- readonly not_included: io.flow.experience.v0.unions.AllocationComponent[];
637
+ interface ExperienceOverview {
638
+ readonly id: string;
639
+ readonly key: string;
711
640
  }
712
641
 
713
- interface AllocationOrderDetail {
714
- readonly discriminator: 'allocation_order_detail';
715
- readonly key: io.flow.order.price.v0.enums.OrderPriceDetailKey;
716
- readonly total: io.flow.common.v0.models.PriceWithBase;
717
- readonly included: io.flow.experience.v0.unions.AllocationComponent[];
718
- readonly not_included: io.flow.experience.v0.unions.AllocationComponent[];
642
+ interface ExperiencePaymentMethodRuleForm {
643
+ readonly payment_method_id: string;
644
+ readonly tags: io.flow.experience.v0.enums.ExperiencePaymentMethodTag[];
645
+ readonly q?: string;
719
646
  }
720
647
 
721
- interface AllocationOrderSummary {
722
- readonly id: string;
723
- readonly number: string;
724
- readonly submitted_at?: string;
725
- }
726
-
727
- interface AllocationV2 {
728
- readonly id: string;
729
- readonly order: io.flow.experience.v0.models.AllocationOrderSummary;
730
- readonly details: io.flow.experience.v0.unions.AllocationDetail[];
731
- readonly total: io.flow.catalog.v0.models.LocalizedTotal;
732
- }
733
-
734
- interface AvailablePromotion {
735
- readonly id: string;
736
- readonly shipping_configuration: io.flow.fulfillment.v0.models.ShippingConfigurationReference;
737
- readonly region: io.flow.experience.v0.models.RegionReference;
738
- readonly promotions: io.flow.experience.v0.unions.Promotion[];
739
- }
740
-
741
- interface CheckoutAttribute {
742
- readonly id: string;
743
- readonly experience: io.flow.experience.v0.models.ExperienceReference;
744
- readonly key: string;
745
- readonly name: string;
746
- readonly attribute_keys: string[];
747
- readonly position: number;
748
- }
749
-
750
- interface CheckoutAttributeForm {
751
- readonly key: string;
752
- readonly name?: string;
753
- readonly experience_key: string;
754
- readonly attribute_keys: string[];
755
- readonly position?: number;
756
- }
757
-
758
- interface CheckoutItemContent {
759
- readonly item: io.flow.catalog.v0.models.Item;
760
- readonly name: string;
761
- readonly description?: string;
762
- readonly attributes: io.flow.experience.v0.models.CheckoutItemContentAttribute[];
763
- readonly image?: io.flow.catalog.v0.models.Image;
764
- }
765
-
766
- interface CheckoutItemContentAttribute {
767
- readonly key: string;
768
- readonly name: string;
769
- readonly value: string;
770
- }
771
-
772
- interface CheckoutSettings {
773
- readonly configuration: io.flow.experience.v0.models.ExperienceConfigurationReference;
774
- }
775
-
776
- interface CreditPayment {
777
- readonly id: string;
778
- readonly order: io.flow.experience.v0.unions.ExpandableOrder;
779
- readonly key: string;
780
- readonly description: string;
781
- readonly value: io.flow.common.v0.models.PriceWithBase;
782
- readonly original: io.flow.experience.v0.models.OriginalPrices;
783
- readonly attributes: Record<string, string>;
784
- }
785
-
786
- interface CreditPaymentError {
787
- readonly code: io.flow.experience.v0.enums.CreditPaymentErrorCode;
788
- readonly messages: string[];
789
- readonly codes: io.flow.experience.v0.enums.CreditPaymentErrorCode[];
790
- }
791
-
792
- interface CreditPaymentForm {
793
- readonly order_number: string;
794
- readonly description: string;
795
- readonly amount: number;
796
- readonly max: number;
797
- readonly currency: string;
798
- readonly attributes?: Record<string, string>;
799
- }
800
-
801
- interface CreditPaymentVersion {
802
- readonly id: string;
803
- readonly timestamp: string;
804
- readonly type: io.flow.common.v0.enums.ChangeType;
805
- readonly credit_payment: io.flow.experience.v0.models.CreditPayment;
806
- }
807
-
808
- interface DeliveredDutySetting {
809
- readonly default: io.flow.common.v0.enums.DeliveredDuty;
810
- readonly available: io.flow.common.v0.enums.DeliveredDuty[];
811
- readonly display?: io.flow.experience.v0.enums.DeliveredDutyDisplayType;
812
- }
813
-
814
- interface Discount {
815
- readonly discriminator: 'discount';
816
- readonly id: string;
817
- readonly code?: string;
818
- readonly label: string;
819
- readonly price: io.flow.common.v0.models.PriceWithBase;
820
- readonly attributes?: Record<string, string>;
821
- }
822
-
823
- interface Experience {
824
- readonly discriminator: 'experience';
825
- readonly id: string;
826
- readonly key: string;
827
- readonly name: string;
828
- readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
829
- readonly region: io.flow.experience.v0.models.RegionReference;
830
- readonly country: string;
831
- readonly currency: string;
832
- readonly language: string;
833
- readonly measurement_system: io.flow.common.v0.enums.MeasurementSystem;
834
- readonly subcatalog: io.flow.catalog.v0.models.SubcatalogReference;
835
- readonly position: number;
836
- readonly settings: io.flow.experience.v0.models.ExperienceSettings;
837
- readonly status?: io.flow.experience.v0.enums.ExperienceStatus;
838
- }
839
-
840
- interface ExperienceCheckoutSettings {
841
- readonly id: string;
842
- readonly experience: io.flow.experience.v0.models.ExperienceOverview;
843
- readonly checkout_configuration: io.flow.experience.v0.models.ExperienceConfigurationReference;
844
- }
845
-
846
- interface ExperienceCheckoutSettingsForm {
847
- readonly checkout_configuration_id: string;
848
- }
849
-
850
- interface ExperienceClone {
851
- readonly id: string;
852
- readonly source_experience: io.flow.experience.v0.models.ExperienceReference;
853
- readonly cloned_experience?: io.flow.experience.v0.models.ExperienceReference;
854
- readonly status: io.flow.experience.v0.enums.ExperienceCloneStatus;
855
- }
856
-
857
- interface ExperienceCloneForm {
858
- readonly name?: string;
859
- }
860
-
861
- interface ExperienceConfigurationReference {
862
- readonly id: string;
863
- }
864
-
865
- interface ExperienceCurrencyFormat {
866
- readonly symbol: io.flow.common.v0.enums.CurrencySymbolFormat;
867
- readonly label_formatters: io.flow.common.v0.enums.CurrencyLabelFormatter[];
868
- }
869
-
870
- interface ExperienceCurrencyFormatForm {
871
- readonly symbol: io.flow.common.v0.enums.CurrencySymbolFormat;
872
- readonly label_formatters: io.flow.common.v0.enums.CurrencyLabelFormatter[];
873
- }
874
-
875
- interface ExperienceDefaults {
876
- readonly key: string;
877
- readonly name: string;
878
- readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
879
- readonly country: string;
880
- readonly currency: string;
881
- readonly language: string;
882
- readonly measurement_system: io.flow.common.v0.enums.MeasurementSystem;
883
- }
884
-
885
- interface ExperienceForm {
886
- readonly region_id: string;
887
- readonly name: string;
888
- readonly delivered_duty?: io.flow.common.v0.enums.DeliveredDuty;
889
- readonly country?: string;
890
- readonly currency?: string;
891
- readonly language?: string;
892
- readonly key?: string;
893
- readonly measurement_system?: io.flow.common.v0.enums.MeasurementSystem;
894
- readonly subcatalog_id?: string;
895
- }
896
-
897
- interface ExperienceGeo {
898
- readonly key: string;
899
- readonly name: string;
900
- readonly region: io.flow.experience.v0.models.RegionReference;
901
- readonly country: string;
902
- readonly currency: string;
903
- readonly language: string;
904
- readonly measurement_system: io.flow.common.v0.enums.MeasurementSystem;
905
- }
906
-
907
- interface ExperienceLogisticsSettings {
908
- readonly id: string;
909
- readonly experience: io.flow.experience.v0.models.ExperienceOverview;
910
- readonly shipping_configuration: io.flow.fulfillment.v0.models.ShippingConfigurationReference;
911
- }
912
-
913
- interface ExperienceLogisticsSettingsPutForm {
914
- readonly shipping_configuration_key: string;
915
- }
916
-
917
- interface ExperienceLogisticsSummary {
918
- readonly outbound?: io.flow.experience.v0.models.ExperienceLogisticsTierSummary;
919
- readonly return?: io.flow.experience.v0.models.ExperienceLogisticsTierSummary;
920
- }
921
-
922
- interface ExperienceLogisticsTierSummary {
923
- readonly prices: io.flow.experience.v0.models.ExperienceLogisticsTierSummaryPrices;
924
- }
925
-
926
- interface ExperienceLogisticsTierSummaryPrices {
927
- readonly minimum: io.flow.common.v0.models.Price;
928
- }
929
-
930
- interface ExperienceOverview {
931
- readonly id: string;
932
- readonly key: string;
933
- }
934
-
935
- interface ExperiencePaymentMethodRuleForm {
936
- readonly payment_method_id: string;
937
- readonly tags: io.flow.experience.v0.enums.ExperiencePaymentMethodTag[];
938
- readonly q?: string;
939
- }
940
-
941
- interface ExperiencePriceBookMapping {
648
+ interface ExperiencePriceBookMapping {
942
649
  readonly id: string;
943
650
  readonly experience: io.flow.experience.v0.models.ExperienceReference;
944
651
  readonly price_book: io.flow.price.v0.models.PriceBookReference;
@@ -1705,778 +1412,783 @@ declare namespace io.flow.item.v0.models {
1705
1412
  }
1706
1413
  }
1707
1414
 
1708
- declare namespace io.flow.flexe.v0.enums {
1709
- type FlexeAttachmentType =
1710
- | 'shipping_label'
1711
- | 'packing_slip'
1712
- | 'packing_slip_letter';
1713
- type FlexeNotification = 'receipt' | 'shipment';
1714
- type FlexeShipmentType =
1715
- | 'fulfillment_order'
1716
- | 'retail_fulfillment_order'
1717
- | 'carton_pick_delivery'
1718
- | 'delivery'
1719
- | 'container_delivery';
1720
- type FlexeStatus = 'in_transit' | 'completed';
1415
+ declare namespace io.flow.harmonization.internal.event.v0.enums {
1416
+ type SuggestionAction = 'accept' | 'validate' | 'review';
1721
1417
  }
1722
1418
 
1723
- declare namespace io.flow.flexe.v0.models {
1724
- interface BillOfLading {
1725
- readonly type: string;
1726
- readonly gs1us?: io.flow.flexe.v0.models.Gs1Us;
1727
- }
1728
-
1729
- interface BillTo {
1730
- readonly name: string;
1731
- readonly address_1: string;
1732
- readonly locality: string;
1733
- readonly region: string;
1734
- readonly postal_code: string;
1735
- readonly country: string;
1736
- readonly address_2?: string;
1737
- readonly address_3?: string;
1419
+ declare namespace io.flow.harmonization.internal.event.v0.models {
1420
+ interface AllItemsExport {
1421
+ readonly discriminator: 'all_items_export';
1422
+ readonly event_id: string;
1423
+ readonly timestamp: string;
1424
+ readonly organization: string;
1425
+ readonly export_id: string;
1738
1426
  }
1739
1427
 
1740
- interface CartonPickDeliveryDetails {
1741
- readonly shipment_uuid?: string;
1742
- readonly carrier?: string;
1743
- readonly carrier_id?: string;
1428
+ interface BatchRateRefillRequest {
1429
+ readonly discriminator: 'batch_rate_refill_request';
1430
+ readonly requests: io.flow.harmonization.internal.event.v0.models.RateRefillRequest[];
1744
1431
  }
1745
1432
 
1746
- interface ContainerDeliveryDetails {
1747
- readonly purchase_order: string;
1748
- readonly container_number?: string;
1749
- readonly seal_number?: string;
1750
- readonly vendor?: string;
1751
- readonly expected_inventory: io.flow.flexe.v0.models.InventoryDetails[];
1752
- readonly received_inventory: io.flow.flexe.v0.models.InventoryDetails[];
1753
- readonly damaged_inventory: io.flow.flexe.v0.models.InventoryDetails[];
1754
- readonly quantities_by_inventory: Record<
1755
- string,
1756
- io.flow.flexe.v0.models.QuantityByInventory
1757
- >;
1433
+ interface BlacklistedItemCreated {
1434
+ readonly discriminator: 'blacklisted_item_created';
1435
+ readonly event_id: string;
1436
+ readonly timestamp: string;
1437
+ readonly organization: string;
1438
+ readonly blacklisted_item: io.flow.harmonization.internal.v0.models.BlacklistedItem;
1758
1439
  }
1759
1440
 
1760
- interface DeliveryDetails {
1761
- readonly shipment_uuid?: string;
1762
- readonly trailer_number?: string;
1763
- readonly pallets: io.flow.flexe.v0.models.Pallet[];
1764
- readonly quantities_by_inventory: Record<
1765
- string,
1766
- io.flow.flexe.v0.models.QuantityByInventory
1767
- >;
1441
+ interface BlacklistedItemDeleted {
1442
+ readonly discriminator: 'blacklisted_item_deleted';
1443
+ readonly event_id: string;
1444
+ readonly timestamp: string;
1445
+ readonly organization: string;
1446
+ readonly id: string;
1768
1447
  }
1769
1448
 
1770
- interface Error {
1771
- readonly url: string;
1772
- readonly client_request_id: string;
1773
- readonly generated_at: string;
1774
- readonly error: string;
1449
+ interface BlacklistedItemUpdated {
1450
+ readonly discriminator: 'blacklisted_item_updated';
1451
+ readonly event_id: string;
1452
+ readonly timestamp: string;
1453
+ readonly organization: string;
1454
+ readonly blacklisted_item: io.flow.harmonization.internal.v0.models.BlacklistedItem;
1775
1455
  }
1776
1456
 
1777
- interface FlexeAttachment {
1778
- readonly type: io.flow.flexe.v0.enums.FlexeAttachmentType;
1779
- readonly display_name: string;
1780
- readonly url: string;
1457
+ interface CustomsDescriptionImport {
1458
+ readonly discriminator: 'customs_description_import';
1459
+ readonly event_id: string;
1460
+ readonly timestamp: string;
1461
+ readonly organization: string;
1462
+ readonly import_id: string;
1463
+ readonly source_url: string;
1464
+ readonly filename?: string;
1781
1465
  }
1782
1466
 
1783
- interface FlexeEcommerceFulfillment {
1784
- readonly url: string;
1785
- readonly client_request_id: string;
1786
- readonly generated_at: string;
1787
- readonly data: io.flow.flexe.v0.models.FlexeEcommerceFulfillmentData;
1788
- readonly errors: io.flow.flexe.v0.models.FlexeEcommerceFulfillmentErrors[];
1467
+ interface CustomsDescriptionSugestion {
1468
+ readonly value: number;
1469
+ readonly customs_description: string;
1470
+ readonly action?: io.flow.harmonization.internal.event.v0.enums.SuggestionAction;
1789
1471
  }
1790
1472
 
1791
- interface FlexeEcommerceFulfillmentData {
1792
- readonly import_id: string;
1793
- readonly succeeded_uuids: string[];
1794
- readonly failed_uuids: string[];
1795
- readonly errors: string[];
1473
+ interface CustomsDescriptionSugestionCreated {
1474
+ readonly discriminator: 'customs_description_sugestion_created';
1475
+ readonly event_id: string;
1476
+ readonly timestamp: string;
1477
+ readonly organization: string;
1478
+ readonly item_id: string;
1479
+ readonly suggestions: io.flow.harmonization.internal.event.v0.models.CustomsDescriptionSugestion[];
1480
+ readonly model_id: string;
1796
1481
  }
1797
1482
 
1798
- interface FlexeEcommerceFulfillmentErrors {
1799
- readonly status: string;
1800
- readonly title: string;
1801
- readonly detail: string;
1802
- readonly source?: string;
1483
+ interface CustomsDescriptionTariffsImport {
1484
+ readonly discriminator: 'customs_description_tariffs_import';
1485
+ readonly event_id: string;
1486
+ readonly timestamp: string;
1487
+ readonly organization: string;
1488
+ readonly import_id: string;
1489
+ readonly source_url: string;
1490
+ readonly filename?: string;
1803
1491
  }
1804
1492
 
1805
- interface FlexeEcommerceFulfillmentForm {
1806
- readonly reservation_id: number;
1807
- readonly client_request_id: string;
1808
- readonly request: io.flow.flexe.v0.models.Orders;
1493
+ interface DutiedItemsExport {
1494
+ readonly discriminator: 'dutied_items_export';
1495
+ readonly event_id: string;
1496
+ readonly timestamp: string;
1497
+ readonly organization: string;
1498
+ readonly export_id: string;
1499
+ readonly origin?: string;
1500
+ readonly destination: string;
1501
+ readonly item_numbers?: string[];
1809
1502
  }
1810
1503
 
1811
- interface FlexeInventoryData {
1812
- readonly sku: string;
1813
- readonly quantity: string;
1814
- readonly unit: string;
1504
+ interface HarmonizationCodesImport {
1505
+ readonly discriminator: 'harmonization_codes_import';
1506
+ readonly event_id: string;
1507
+ readonly timestamp: string;
1508
+ readonly organization: string;
1509
+ readonly import_id: string;
1510
+ readonly source_url: string;
1511
+ readonly filename?: string;
1815
1512
  }
1816
1513
 
1817
- interface FlexeRetailAttachment {
1818
- readonly display_name: string;
1819
- readonly url: string;
1514
+ interface HarmonizationPhraseSuggestionRequestImport {
1515
+ readonly discriminator: 'harmonization_phrase_suggestion_request_import';
1516
+ readonly event_id: string;
1517
+ readonly timestamp: string;
1518
+ readonly organization: string;
1519
+ readonly import_id: string;
1520
+ readonly source_url: string;
1521
+ readonly filename?: string;
1820
1522
  }
1821
1523
 
1822
- interface FlexeRetailFulfillment {
1823
- readonly url: string;
1824
- readonly client_request_id: string;
1825
- readonly generated_at: string;
1826
- readonly data: io.flow.flexe.v0.models.FlexeRetailFulfillmentData;
1827
- readonly errors?: io.flow.flexe.v0.models.FlexeRetailFulfillmentErrors[];
1524
+ interface HarmonizeFullyRequest {
1525
+ readonly discriminator: 'harmonize_fully_request';
1526
+ readonly event_id: string;
1527
+ readonly timestamp: string;
1528
+ readonly item_id: string;
1828
1529
  }
1829
1530
 
1830
- interface FlexeRetailFulfillmentData {
1831
- readonly id: string;
1832
- readonly purchase_order_uuid: string;
1833
- readonly status: string;
1531
+ interface HarmonizeFullyWithRate {
1532
+ readonly discriminator: 'harmonize_fully_with_rate';
1533
+ readonly event_id: string;
1534
+ readonly timestamp: string;
1535
+ readonly duty_rate: io.flow.duty.internal.v0.models.DutyRate;
1834
1536
  }
1835
1537
 
1836
- interface FlexeRetailFulfillmentErrors {
1837
- readonly type: string;
1838
- readonly message: string;
1538
+ interface HarmonizedItemsHs6Export {
1539
+ readonly discriminator: 'harmonized_items_hs6_export';
1540
+ readonly event_id: string;
1541
+ readonly timestamp: string;
1542
+ readonly organization: string;
1543
+ readonly export_id: string;
1839
1544
  }
1840
1545
 
1841
- interface FlexeRetailFulfillmentForm {
1842
- readonly reservation_id: number;
1843
- readonly client_request_id?: string;
1844
- readonly request: io.flow.flexe.v0.models.RetailOrder;
1546
+ interface ItemClassificationCreated {
1547
+ readonly discriminator: 'item_classification_created';
1548
+ readonly event_id: string;
1549
+ readonly timestamp: string;
1550
+ readonly organization: string;
1551
+ readonly item_number: string;
1552
+ readonly model_id: string;
1553
+ readonly labels_prediction: io.flow.harmonization.internal.event.v0.models.LabelsPrediction;
1554
+ readonly action: io.flow.harmonization.internal.event.v0.enums.SuggestionAction;
1845
1555
  }
1846
1556
 
1847
- interface FulfillmentOrderDetails {
1848
- readonly shipment_uuid: string;
1849
- readonly carrier?: string;
1850
- readonly carrier_id?: string;
1557
+ interface ItemHarmonized {
1558
+ readonly discriminator: 'item_harmonized';
1559
+ readonly event_id: string;
1560
+ readonly timestamp: string;
1561
+ readonly organization: string;
1562
+ readonly item_number: string;
1563
+ readonly product_id: string;
1564
+ readonly customs_description: string;
1565
+ readonly countries_of_origin: string[];
1566
+ readonly hs_6: string;
1567
+ readonly tariffs: Record<
1568
+ string,
1569
+ io.flow.harmonization.internal.v0.models.TariffCodeDuty
1570
+ >;
1851
1571
  }
1852
1572
 
1853
- interface Gs1Us {
1854
- readonly number: string;
1855
- readonly ship_to?: io.flow.flexe.v0.models.Gs1UsShipTo;
1856
- readonly bill_to?: io.flow.flexe.v0.models.BillTo;
1573
+ interface LabelsPrediction {
1574
+ readonly main_material: Record<string, number>;
1575
+ readonly gender: Record<string, number>;
1576
+ readonly construction: Record<string, number>;
1577
+ readonly product_type: Record<string, number>;
1857
1578
  }
1858
1579
 
1859
- interface Gs1UsShipTo {
1860
- readonly cid_number?: string;
1861
- readonly location_number?: string;
1862
- readonly free_on_board?: boolean;
1580
+ interface LandedCostExport {
1581
+ readonly discriminator: 'landed_cost_export';
1582
+ readonly event_id: string;
1583
+ readonly timestamp: string;
1584
+ readonly organization: string;
1585
+ readonly export_id: string;
1586
+ readonly items: io.flow.harmonization.internal.event.v0.models.LandedCostItem[];
1863
1587
  }
1864
1588
 
1865
- interface Inventory {
1866
- readonly url: string;
1867
- readonly client_request_id: string;
1868
- readonly generated_at: string;
1869
- readonly data: Record<string, io.flow.flexe.v0.models.InventoryDetails>;
1589
+ interface LandedCostItem {
1590
+ readonly number: string;
1591
+ readonly origin: string;
1592
+ readonly destination: string;
1870
1593
  }
1871
1594
 
1872
- interface InventoryCount {
1873
- readonly amount: number;
1874
- readonly unit: string;
1595
+ interface PhraseClassified {
1596
+ readonly event_id: string;
1597
+ readonly timestamp: string;
1598
+ readonly phrase_id: string;
1875
1599
  }
1876
1600
 
1877
- interface InventoryData {
1878
- readonly pallet: io.flow.flexe.v0.models.InventoryCount;
1879
- readonly carton?: io.flow.flexe.v0.models.InventoryCount;
1880
- readonly each?: io.flow.flexe.v0.models.InventoryCount;
1601
+ interface PhrasePropagated {
1602
+ readonly event_id: string;
1603
+ readonly timestamp: string;
1604
+ readonly phrase_id: string;
1881
1605
  }
1882
1606
 
1883
- interface InventoryDetails {
1884
- readonly key: Record<string, io.flow.flexe.v0.models.Sku>;
1607
+ interface RateRefillRequest {
1608
+ readonly discriminator: 'rate_refill_request';
1609
+ readonly phrase_id: string;
1610
+ readonly hs6_code: string;
1611
+ readonly destinations: io.flow.reference.v0.models.Country[];
1612
+ readonly origin: io.flow.reference.v0.models.Country;
1613
+ readonly organization_id?: string;
1885
1614
  }
1886
1615
 
1887
- interface LadingQuantity {
1888
- readonly num_pallets: number;
1616
+ interface UnharmonizedItemsExport {
1617
+ readonly discriminator: 'unharmonized_items_export';
1618
+ readonly event_id: string;
1619
+ readonly timestamp: string;
1620
+ readonly organization: string;
1621
+ readonly export_id: string;
1889
1622
  }
1623
+ }
1890
1624
 
1891
- interface Order {
1892
- readonly shipment_uuid: string;
1893
- readonly purchase_order: string;
1894
- readonly carrier: string;
1895
- readonly service_type: string;
1896
- readonly carrier_assigned_id: string;
1897
- readonly name: string;
1898
- readonly address_1: string;
1899
- readonly address_2?: string;
1900
- readonly address_3?: string;
1901
- readonly city: string;
1902
- readonly state: string;
1903
- readonly postal_code: string;
1904
- readonly phone?: string;
1905
- readonly instructions?: string;
1906
- readonly inventory_data: io.flow.flexe.v0.models.FlexeInventoryData[];
1907
- readonly attachments: io.flow.flexe.v0.models.FlexeAttachment[];
1908
- }
1625
+ declare namespace io.flow.harmonization.internal.event.v0.unions {
1626
+ type CustomsDescriptions =
1627
+ | io.flow.harmonization.internal.event.v0.models.CustomsDescriptionImport
1628
+ | io.flow.harmonization.internal.event.v0.models.CustomsDescriptionTariffsImport;
1629
+ type HarmonizationEvent =
1630
+ | io.flow.harmonization.internal.event.v0.models.BlacklistedItemCreated
1631
+ | io.flow.harmonization.internal.event.v0.models.BlacklistedItemUpdated
1632
+ | io.flow.harmonization.internal.event.v0.models.BlacklistedItemDeleted;
1633
+ type HarmonizationExportRequest =
1634
+ | io.flow.harmonization.internal.event.v0.models.AllItemsExport
1635
+ | io.flow.harmonization.internal.event.v0.models.HarmonizedItemsHs6Export
1636
+ | io.flow.harmonization.internal.event.v0.models.UnharmonizedItemsExport
1637
+ | io.flow.harmonization.internal.event.v0.models.DutiedItemsExport
1638
+ | io.flow.harmonization.internal.event.v0.models.LandedCostExport;
1639
+ type HarmonizationImportPhraseSuggestionRequest = io.flow.harmonization.internal.event.v0.models.HarmonizationPhraseSuggestionRequestImport;
1640
+ type HarmonizationImportRequest = io.flow.harmonization.internal.event.v0.models.HarmonizationCodesImport;
1641
+ type HarmonizationSugestionEvent =
1642
+ | io.flow.harmonization.internal.event.v0.models.CustomsDescriptionSugestionCreated
1643
+ | io.flow.harmonization.internal.event.v0.models.ItemClassificationCreated;
1644
+ type HarmonizeFully =
1645
+ | io.flow.harmonization.internal.event.v0.models.HarmonizeFullyWithRate
1646
+ | io.flow.harmonization.internal.event.v0.models.ItemHarmonized
1647
+ | io.flow.harmonization.internal.event.v0.models.HarmonizeFullyRequest;
1648
+ type RefillActorRequest =
1649
+ | io.flow.harmonization.internal.event.v0.models.BatchRateRefillRequest
1650
+ | io.flow.harmonization.internal.event.v0.models.RateRefillRequest;
1651
+ }
1909
1652
 
1910
- interface Orders {
1911
- readonly orders: io.flow.flexe.v0.models.Order[];
1912
- }
1653
+ declare namespace io.flow.inventory.v0.enums {
1654
+ type Aggregate = 'maximum' | 'minimum';
1655
+ type InventoryStatus = 'has_inventory' | 'no_inventory';
1656
+ type SerialStatus = 'available' | 'reserved' | 'sold';
1657
+ type UpdateType = 'change' | 'set';
1658
+ }
1913
1659
 
1914
- interface Pallet {
1915
- readonly pallet_id: string;
1916
- readonly sku: string;
1917
- readonly quantity: number;
1918
- readonly packaging: string;
1660
+ declare namespace io.flow.inventory.v0.models {
1661
+ interface ExternalApiTimeoutReservationError {
1662
+ readonly code: 'external_api_timeout';
1663
+ readonly messages: string[];
1919
1664
  }
1920
1665
 
1921
- interface PurchaseOrder {
1922
- readonly retail_fulfillment_order_id: string;
1923
- readonly bill_of_lading_number: string;
1924
- readonly purchase_order_uuid: string;
1925
- readonly pickup_window_start: string;
1926
- readonly pickup_window_end: string;
1927
- readonly tags: string[];
1666
+ interface GenericReservationError {
1667
+ readonly code: 'generic_reservation_error';
1668
+ readonly messages: string[];
1928
1669
  }
1929
1670
 
1930
- interface QuantityByInventory {
1931
- readonly received: io.flow.flexe.v0.models.InventoryData;
1932
- readonly expected?: io.flow.flexe.v0.models.InventoryData;
1933
- readonly damaged?: io.flow.flexe.v0.models.InventoryData;
1671
+ interface InventoryBackorder {
1672
+ readonly discriminator: 'inventory_backorder';
1673
+ readonly quantity: number;
1934
1674
  }
1935
1675
 
1936
- interface ReceiptNotification {
1937
- readonly shipment_id: string;
1938
- readonly shipment_type: io.flow.flexe.v0.enums.FlexeShipmentType;
1939
- readonly reservation_id: string;
1940
- readonly status: io.flow.flexe.v0.enums.FlexeStatus;
1941
- readonly delivery_details?: io.flow.flexe.v0.models.DeliveryDetails;
1942
- readonly container_delivery_details?: io.flow.flexe.v0.models.ContainerDeliveryDetails;
1676
+ interface InventoryCenterReference {
1677
+ readonly key: string;
1943
1678
  }
1944
1679
 
1945
- interface RetailFulfillmentOrderDetails {
1946
- readonly master_bill_of_lading_number: string;
1947
- readonly scac: string;
1948
- readonly pro_number: string;
1949
- readonly purchase_orders: io.flow.flexe.v0.models.PurchaseOrder[];
1950
- readonly lading_quantity: io.flow.flexe.v0.models.LadingQuantity;
1680
+ interface InventoryCheckResponse {
1681
+ readonly items: io.flow.inventory.v0.models.InventoryCheckResponseItem[];
1951
1682
  }
1952
1683
 
1953
- interface RetailInventoryData {
1954
- readonly sku: string;
1684
+ interface InventoryCheckResponseItem {
1685
+ readonly number: string;
1955
1686
  readonly quantity: number;
1956
- readonly unit: string;
1957
- readonly attachments?: io.flow.flexe.v0.models.FlexeRetailAttachment[];
1687
+ readonly inventory_status: io.flow.inventory.v0.enums.InventoryStatus;
1958
1688
  }
1959
1689
 
1960
- interface RetailOrder {
1961
- readonly order: io.flow.flexe.v0.models.RetailOrderData;
1690
+ interface InventoryExperienceReference {
1691
+ readonly key: string;
1962
1692
  }
1963
1693
 
1964
- interface RetailOrderData {
1965
- readonly purchase_order_uuid: string;
1966
- readonly bill_of_lading: io.flow.flexe.v0.models.BillOfLading;
1967
- readonly inventory_data: io.flow.flexe.v0.models.RetailInventoryData[];
1968
- readonly ship_within: io.flow.flexe.v0.models.ShipWithin;
1969
- readonly ship_to: io.flow.flexe.v0.models.ShipTo;
1970
- readonly build_by?: string;
1971
- readonly instrunctions?: string;
1972
- readonly routing_details_id?: string;
1973
- readonly destination_type?: string;
1694
+ interface InventoryItemReference {
1695
+ readonly number: string;
1974
1696
  }
1975
1697
 
1976
- interface ShipTo {
1977
- readonly name: string;
1978
- readonly address_1: string;
1979
- readonly locality: string;
1980
- readonly region: string;
1981
- readonly postal_code: string;
1982
- readonly country: string;
1983
- readonly address_2?: string;
1984
- readonly address_3?: string;
1698
+ interface InventoryRequest {
1699
+ readonly items: io.flow.inventory.v0.models.InventoryRequestItem[];
1985
1700
  }
1986
1701
 
1987
- interface ShipWithin {
1988
- readonly start: string;
1989
- readonly end: string;
1702
+ interface InventoryRequestItem {
1703
+ readonly number: string;
1704
+ readonly quantity: number;
1990
1705
  }
1991
1706
 
1992
- interface ShipmentDeliveryDetails {
1993
- readonly shipment_uuid?: string;
1707
+ interface InventoryRule {
1708
+ readonly id: string;
1709
+ readonly position: number;
1710
+ readonly query: string;
1711
+ readonly strategy: io.flow.inventory.v0.unions.InventoryStrategy;
1994
1712
  }
1995
1713
 
1996
- interface ShipmentNotification {
1997
- readonly shipment_id: string;
1998
- readonly shipment_type: io.flow.flexe.v0.enums.FlexeShipmentType;
1999
- readonly reservation_id: string;
2000
- readonly status: io.flow.flexe.v0.enums.FlexeStatus;
2001
- readonly fulfillment_order_details?: io.flow.flexe.v0.models.FulfillmentOrderDetails;
2002
- readonly retail_fulfillment_order_details?: io.flow.flexe.v0.models.RetailFulfillmentOrderDetails;
2003
- readonly delivery_details?: io.flow.flexe.v0.models.ShipmentDeliveryDetails;
2004
- readonly carton_pick_delivery_details?: io.flow.flexe.v0.models.CartonPickDeliveryDetails;
1714
+ interface InventoryRuleForm {
1715
+ readonly position: number;
1716
+ readonly query: string;
1717
+ readonly strategy: io.flow.inventory.v0.unions.InventoryStrategy;
2005
1718
  }
2006
1719
 
2007
- interface Sku {
2008
- readonly sku: string;
2009
- readonly description: string;
2010
- readonly summary: Record<string, io.flow.flexe.v0.models.SkuSummary>;
1720
+ interface InventoryRuleVersion {
1721
+ readonly id: string;
1722
+ readonly timestamp: string;
1723
+ readonly type: io.flow.common.v0.enums.ChangeType;
1724
+ readonly inventory_rule: io.flow.inventory.v0.models.InventoryRule;
2011
1725
  }
2012
1726
 
2013
- interface SkuSummary {
2014
- readonly key: string;
1727
+ interface InventorySnapshot {
1728
+ readonly id: string;
1729
+ readonly available: number;
1730
+ readonly center: io.flow.inventory.v0.models.InventoryCenterReference;
1731
+ readonly item: io.flow.inventory.v0.models.InventoryItemReference;
2015
1732
  readonly quantity: number;
2016
- readonly unit: string;
2017
1733
  }
2018
- }
2019
-
2020
- declare namespace io.flow.harmonization.internal.event.v0.enums {
2021
- type SuggestionAction = 'accept' | 'validate' | 'review';
2022
- }
2023
1734
 
2024
- declare namespace io.flow.harmonization.internal.event.v0.models {
2025
- interface AllItemsExport {
2026
- readonly discriminator: 'all_items_export';
2027
- readonly event_id: string;
1735
+ interface InventorySnapshotVersion {
1736
+ readonly id: string;
2028
1737
  readonly timestamp: string;
2029
- readonly organization: string;
2030
- readonly export_id: string;
1738
+ readonly type: io.flow.common.v0.enums.ChangeType;
1739
+ readonly inventory_snapshot: io.flow.inventory.v0.models.InventorySnapshot;
2031
1740
  }
2032
1741
 
2033
- interface BatchRateRefillRequest {
2034
- readonly discriminator: 'batch_rate_refill_request';
2035
- readonly requests: io.flow.harmonization.internal.event.v0.models.RateRefillRequest[];
1742
+ interface InventoryStock {
1743
+ readonly discriminator: 'inventory_stock';
1744
+ readonly quantity: number;
2036
1745
  }
2037
1746
 
2038
- interface BlacklistedItemCreated {
2039
- readonly discriminator: 'blacklisted_item_created';
2040
- readonly event_id: string;
2041
- readonly timestamp: string;
2042
- readonly organization: string;
2043
- readonly blacklisted_item: io.flow.harmonization.internal.v0.models.BlacklistedItem;
1747
+ interface InventoryUnlimited {
1748
+ readonly discriminator: 'inventory_unlimited';
1749
+ readonly quantity: string;
2044
1750
  }
2045
1751
 
2046
- interface BlacklistedItemDeleted {
2047
- readonly discriminator: 'blacklisted_item_deleted';
2048
- readonly event_id: string;
2049
- readonly timestamp: string;
2050
- readonly organization: string;
1752
+ interface InventoryUpdate {
2051
1753
  readonly id: string;
1754
+ readonly idempotency_key: string;
1755
+ readonly center: io.flow.inventory.v0.models.InventoryCenterReference;
1756
+ readonly item: io.flow.inventory.v0.models.InventoryItemReference;
1757
+ readonly notes: any /*object*/;
1758
+ readonly quantity: number;
1759
+ readonly type: io.flow.inventory.v0.enums.UpdateType;
2052
1760
  }
2053
1761
 
2054
- interface BlacklistedItemUpdated {
2055
- readonly discriminator: 'blacklisted_item_updated';
2056
- readonly event_id: string;
2057
- readonly timestamp: string;
2058
- readonly organization: string;
2059
- readonly blacklisted_item: io.flow.harmonization.internal.v0.models.BlacklistedItem;
1762
+ interface InventoryUpdateForm {
1763
+ readonly center: string;
1764
+ readonly idempotency_key: string;
1765
+ readonly item_number: string;
1766
+ readonly quantity: number;
1767
+ readonly type: io.flow.inventory.v0.enums.UpdateType;
1768
+ readonly notes?: any /*object*/;
2060
1769
  }
2061
1770
 
2062
- interface CustomsDescriptionImport {
2063
- readonly discriminator: 'customs_description_import';
2064
- readonly event_id: string;
1771
+ interface InventoryUpdateVersion {
1772
+ readonly id: string;
2065
1773
  readonly timestamp: string;
2066
- readonly organization: string;
2067
- readonly import_id: string;
2068
- readonly source_url: string;
2069
- readonly filename?: string;
1774
+ readonly type: io.flow.common.v0.enums.ChangeType;
1775
+ readonly inventory_update: io.flow.inventory.v0.models.InventoryUpdate;
2070
1776
  }
2071
1777
 
2072
- interface CustomsDescriptionSugestion {
2073
- readonly value: number;
2074
- readonly customs_description: string;
2075
- readonly action?: io.flow.harmonization.internal.event.v0.enums.SuggestionAction;
1778
+ interface NoInventoryReservationError {
1779
+ readonly code: 'no_inventory';
1780
+ readonly messages: string[];
1781
+ readonly items: io.flow.inventory.v0.models.NoInventoryReservationErrorItem[];
2076
1782
  }
2077
1783
 
2078
- interface CustomsDescriptionSugestionCreated {
2079
- readonly discriminator: 'customs_description_sugestion_created';
2080
- readonly event_id: string;
2081
- readonly timestamp: string;
2082
- readonly organization: string;
2083
- readonly item_id: string;
2084
- readonly suggestions: io.flow.harmonization.internal.event.v0.models.CustomsDescriptionSugestion[];
2085
- readonly model_id: string;
2086
- }
2087
-
2088
- interface CustomsDescriptionTariffsImport {
2089
- readonly discriminator: 'customs_description_tariffs_import';
2090
- readonly event_id: string;
2091
- readonly timestamp: string;
2092
- readonly organization: string;
2093
- readonly import_id: string;
2094
- readonly source_url: string;
2095
- readonly filename?: string;
2096
- }
2097
-
2098
- interface DutiedItemsExport {
2099
- readonly discriminator: 'dutied_items_export';
2100
- readonly event_id: string;
2101
- readonly timestamp: string;
2102
- readonly organization: string;
2103
- readonly export_id: string;
2104
- readonly origin?: string;
2105
- readonly destination: string;
2106
- readonly item_numbers?: string[];
1784
+ interface NoInventoryReservationErrorItem {
1785
+ readonly number: string;
1786
+ readonly requested_quantity: number;
1787
+ readonly available_quantity: number;
2107
1788
  }
2108
1789
 
2109
- interface HarmonizationCodesImport {
2110
- readonly discriminator: 'harmonization_codes_import';
2111
- readonly event_id: string;
2112
- readonly timestamp: string;
2113
- readonly organization: string;
2114
- readonly import_id: string;
2115
- readonly source_url: string;
2116
- readonly filename?: string;
1790
+ interface PfsInventoryCheckResponse {
1791
+ readonly items: Record<
1792
+ string,
1793
+ io.flow.inventory.v0.models.PfsInventoryCheckResponseItem
1794
+ >;
2117
1795
  }
2118
1796
 
2119
- interface HarmonizationPhraseSuggestionRequestImport {
2120
- readonly discriminator: 'harmonization_phrase_suggestion_request_import';
2121
- readonly event_id: string;
2122
- readonly timestamp: string;
2123
- readonly organization: string;
2124
- readonly import_id: string;
2125
- readonly source_url: string;
2126
- readonly filename?: string;
1797
+ interface PfsInventoryCheckResponseItem {
1798
+ readonly number: string;
1799
+ readonly ats: number;
1800
+ readonly in_stock: boolean;
2127
1801
  }
2128
1802
 
2129
- interface HarmonizeFullyRequest {
2130
- readonly discriminator: 'harmonize_fully_request';
2131
- readonly event_id: string;
2132
- readonly timestamp: string;
2133
- readonly item_id: string;
1803
+ interface PfsInventoryStatus {
1804
+ readonly status: string;
2134
1805
  }
2135
1806
 
2136
- interface HarmonizeFullyWithRate {
2137
- readonly discriminator: 'harmonize_fully_with_rate';
2138
- readonly event_id: string;
2139
- readonly timestamp: string;
2140
- readonly duty_rate: io.flow.duty.internal.v0.models.DutyRate;
1807
+ interface Reservation {
1808
+ readonly id: string;
1809
+ readonly key: string;
1810
+ readonly order?: io.flow.inventory.v0.models.ReservationOrderReference;
1811
+ readonly items: io.flow.inventory.v0.models.ReservationItem[];
1812
+ readonly reserved_until?: string;
2141
1813
  }
2142
1814
 
2143
- interface HarmonizedItemsHs6Export {
2144
- readonly discriminator: 'harmonized_items_hs6_export';
2145
- readonly event_id: string;
2146
- readonly timestamp: string;
2147
- readonly organization: string;
2148
- readonly export_id: string;
1815
+ interface ReservationForm {
1816
+ readonly order_number?: string;
1817
+ readonly items: io.flow.inventory.v0.models.ReservationItemForm[];
2149
1818
  }
2150
1819
 
2151
- interface ItemClassificationCreated {
2152
- readonly discriminator: 'item_classification_created';
2153
- readonly event_id: string;
2154
- readonly timestamp: string;
2155
- readonly organization: string;
2156
- readonly item_number: string;
2157
- readonly model_id: string;
2158
- readonly labels_prediction: io.flow.harmonization.internal.event.v0.models.LabelsPrediction;
2159
- readonly action: io.flow.harmonization.internal.event.v0.enums.SuggestionAction;
1820
+ interface ReservationItem {
1821
+ readonly item: io.flow.inventory.v0.models.ReservationItemReference;
1822
+ readonly quantity: number;
2160
1823
  }
2161
1824
 
2162
- interface ItemHarmonized {
2163
- readonly discriminator: 'item_harmonized';
2164
- readonly event_id: string;
2165
- readonly timestamp: string;
2166
- readonly organization: string;
1825
+ interface ReservationItemForm {
2167
1826
  readonly item_number: string;
2168
- readonly product_id: string;
2169
- readonly customs_description: string;
2170
- readonly countries_of_origin: string[];
2171
- readonly hs_6: string;
2172
- readonly tariffs: Record<
2173
- string,
2174
- io.flow.harmonization.internal.v0.models.TariffCodeDuty
2175
- >;
2176
- }
2177
-
2178
- interface LabelsPrediction {
2179
- readonly main_material: Record<string, number>;
2180
- readonly gender: Record<string, number>;
2181
- readonly construction: Record<string, number>;
2182
- readonly product_type: Record<string, number>;
2183
- }
2184
-
2185
- interface LandedCostExport {
2186
- readonly discriminator: 'landed_cost_export';
2187
- readonly event_id: string;
2188
- readonly timestamp: string;
2189
- readonly organization: string;
2190
- readonly export_id: string;
2191
- readonly items: io.flow.harmonization.internal.event.v0.models.LandedCostItem[];
1827
+ readonly quantity: number;
2192
1828
  }
2193
1829
 
2194
- interface LandedCostItem {
1830
+ interface ReservationItemReference {
2195
1831
  readonly number: string;
2196
- readonly origin: string;
2197
- readonly destination: string;
2198
1832
  }
2199
1833
 
2200
- interface PhraseClassified {
2201
- readonly event_id: string;
2202
- readonly timestamp: string;
2203
- readonly phrase_id: string;
1834
+ interface ReservationOrderReference {
1835
+ readonly number: string;
2204
1836
  }
2205
1837
 
2206
- interface PhrasePropagated {
2207
- readonly event_id: string;
2208
- readonly timestamp: string;
2209
- readonly phrase_id: string;
1838
+ interface Serial {
1839
+ readonly id: string;
1840
+ readonly number: string;
1841
+ readonly item_number: string;
1842
+ readonly item_price: io.flow.common.v0.models.Price;
1843
+ readonly status: io.flow.inventory.v0.enums.SerialStatus;
1844
+ readonly center: io.flow.fulfillment.v0.models.CenterReference;
1845
+ readonly attributes: Record<string, string>;
2210
1846
  }
2211
1847
 
2212
- interface RateRefillRequest {
2213
- readonly discriminator: 'rate_refill_request';
2214
- readonly phrase_id: string;
2215
- readonly hs6_code: string;
2216
- readonly destinations: io.flow.reference.v0.models.Country[];
2217
- readonly origin: io.flow.reference.v0.models.Country;
2218
- readonly organization_id?: string;
1848
+ interface SerialForm {
1849
+ readonly number: string;
1850
+ readonly item_number: string;
1851
+ readonly item_price: number;
1852
+ readonly item_currency: string;
1853
+ readonly status: io.flow.inventory.v0.enums.SerialStatus;
1854
+ readonly center_key?: string;
1855
+ readonly attributes?: Record<string, string>;
2219
1856
  }
2220
1857
 
2221
- interface UnharmonizedItemsExport {
2222
- readonly discriminator: 'unharmonized_items_export';
2223
- readonly event_id: string;
1858
+ interface SerialVersion {
1859
+ readonly id: string;
2224
1860
  readonly timestamp: string;
2225
- readonly organization: string;
2226
- readonly export_id: string;
1861
+ readonly type: io.flow.common.v0.enums.ChangeType;
1862
+ readonly serial: io.flow.inventory.v0.models.Serial;
2227
1863
  }
2228
1864
  }
2229
1865
 
2230
- declare namespace io.flow.harmonization.internal.event.v0.unions {
2231
- type CustomsDescriptions =
2232
- | io.flow.harmonization.internal.event.v0.models.CustomsDescriptionImport
2233
- | io.flow.harmonization.internal.event.v0.models.CustomsDescriptionTariffsImport;
2234
- type HarmonizationEvent =
2235
- | io.flow.harmonization.internal.event.v0.models.BlacklistedItemCreated
2236
- | io.flow.harmonization.internal.event.v0.models.BlacklistedItemUpdated
2237
- | io.flow.harmonization.internal.event.v0.models.BlacklistedItemDeleted;
2238
- type HarmonizationExportRequest =
2239
- | io.flow.harmonization.internal.event.v0.models.AllItemsExport
2240
- | io.flow.harmonization.internal.event.v0.models.HarmonizedItemsHs6Export
2241
- | io.flow.harmonization.internal.event.v0.models.UnharmonizedItemsExport
2242
- | io.flow.harmonization.internal.event.v0.models.DutiedItemsExport
2243
- | io.flow.harmonization.internal.event.v0.models.LandedCostExport;
2244
- type HarmonizationImportPhraseSuggestionRequest = io.flow.harmonization.internal.event.v0.models.HarmonizationPhraseSuggestionRequestImport;
2245
- type HarmonizationImportRequest = io.flow.harmonization.internal.event.v0.models.HarmonizationCodesImport;
2246
- type HarmonizationSugestionEvent =
2247
- | io.flow.harmonization.internal.event.v0.models.CustomsDescriptionSugestionCreated
2248
- | io.flow.harmonization.internal.event.v0.models.ItemClassificationCreated;
2249
- type HarmonizeFully =
2250
- | io.flow.harmonization.internal.event.v0.models.HarmonizeFullyWithRate
2251
- | io.flow.harmonization.internal.event.v0.models.ItemHarmonized
2252
- | io.flow.harmonization.internal.event.v0.models.HarmonizeFullyRequest;
2253
- type RefillActorRequest =
2254
- | io.flow.harmonization.internal.event.v0.models.BatchRateRefillRequest
2255
- | io.flow.harmonization.internal.event.v0.models.RateRefillRequest;
1866
+ declare namespace io.flow.inventory.v0.unions {
1867
+ type InventoryStrategy =
1868
+ | io.flow.inventory.v0.models.InventoryBackorder
1869
+ | io.flow.inventory.v0.models.InventoryStock
1870
+ | io.flow.inventory.v0.models.InventoryUnlimited;
1871
+ type ReservationError =
1872
+ | io.flow.inventory.v0.models.NoInventoryReservationError
1873
+ | io.flow.inventory.v0.models.ExternalApiTimeoutReservationError
1874
+ | io.flow.inventory.v0.models.GenericReservationError;
2256
1875
  }
2257
1876
 
2258
- declare namespace io.flow.inventory.v0.enums {
2259
- type Aggregate = 'maximum' | 'minimum';
2260
- type InventoryStatus = 'has_inventory' | 'no_inventory';
2261
- type SerialStatus = 'available' | 'reserved' | 'sold';
2262
- type UpdateType = 'change' | 'set';
2263
- }
1877
+ declare namespace io.flow.ratecard.v0.models {
1878
+ interface CrossdockRatecardFee {
1879
+ readonly discriminator: 'crossdock_ratecard_fee';
1880
+ readonly amount: io.flow.common.v0.models.Money;
1881
+ }
2264
1882
 
2265
- declare namespace io.flow.inventory.v0.models {
2266
- interface ExternalApiTimeoutReservationError {
2267
- readonly code: 'external_api_timeout';
2268
- readonly messages: string[];
1883
+ interface DdpRatecardFee {
1884
+ readonly discriminator: 'ddp_ratecard_fee';
1885
+ readonly amount: number;
2269
1886
  }
2270
1887
 
2271
- interface GenericReservationError {
2272
- readonly code: 'generic_reservation_error';
2273
- readonly messages: string[];
1888
+ interface DimensionEstimate {
1889
+ readonly id: string;
1890
+ readonly q: string;
1891
+ readonly dimensions: io.flow.ratecard.v0.models.EstimatedDimensions;
1892
+ readonly position: number;
2274
1893
  }
2275
1894
 
2276
- interface InventoryBackorder {
2277
- readonly discriminator: 'inventory_backorder';
2278
- readonly quantity: number;
1895
+ interface DimensionEstimateForm {
1896
+ readonly q: string;
1897
+ readonly dimensions: io.flow.ratecard.v0.models.EstimatedDimensions;
1898
+ readonly position?: number;
2279
1899
  }
2280
1900
 
2281
- interface InventoryCenterReference {
2282
- readonly key: string;
1901
+ interface DimensionEstimateVersion {
1902
+ readonly id: string;
1903
+ readonly timestamp: string;
1904
+ readonly type: io.flow.common.v0.enums.ChangeType;
1905
+ readonly dimension_estimate: io.flow.ratecard.v0.models.DimensionEstimate;
2283
1906
  }
2284
1907
 
2285
- interface InventoryCheckResponse {
2286
- readonly items: io.flow.inventory.v0.models.InventoryCheckResponseItem[];
1908
+ interface EstimatedDimensions {
1909
+ readonly depth: io.flow.common.v0.models.Measurement;
1910
+ readonly length: io.flow.common.v0.models.Measurement;
1911
+ readonly weight: io.flow.common.v0.models.Measurement;
1912
+ readonly width: io.flow.common.v0.models.Measurement;
2287
1913
  }
2288
1914
 
2289
- interface InventoryCheckResponseItem {
2290
- readonly number: string;
2291
- readonly quantity: number;
2292
- readonly inventory_status: io.flow.inventory.v0.enums.InventoryStatus;
1915
+ interface FuelSurchargeRatecardFee {
1916
+ readonly discriminator: 'fuel_surcharge_ratecard_fee';
1917
+ readonly amount: io.flow.common.v0.models.Money;
2293
1918
  }
2294
1919
 
2295
- interface InventoryExperienceReference {
2296
- readonly key: string;
1920
+ interface FuelSurchargeServiceFee {
1921
+ readonly discriminator: 'fuel_surcharge_service_fee';
1922
+ readonly percent: number;
2297
1923
  }
2298
1924
 
2299
- interface InventoryItemReference {
2300
- readonly number: string;
1925
+ interface Hop {
1926
+ readonly hop_number: number;
1927
+ readonly hop_estimate: io.flow.ratecard.v0.models.HopEstimate;
2301
1928
  }
2302
1929
 
2303
- interface InventoryRequest {
2304
- readonly items: io.flow.inventory.v0.models.InventoryRequestItem[];
1930
+ interface HopEstimate {
1931
+ readonly origin_address: io.flow.fulfillment.v0.models.ShippingAddress;
1932
+ readonly destination_address: io.flow.fulfillment.v0.models.ShippingAddress;
1933
+ readonly service: io.flow.ratecard.v0.models.RatecardServiceSummary;
1934
+ readonly shipment_window: io.flow.ratecard.v0.models.ShipmentWindow;
1935
+ readonly currency: string;
1936
+ readonly amount: number;
1937
+ readonly fees: io.flow.ratecard.v0.unions.RatecardFee[];
1938
+ readonly total: number;
2305
1939
  }
2306
1940
 
2307
- interface InventoryRequestItem {
1941
+ interface OversizedShipmentRatecardFee {
1942
+ readonly discriminator: 'oversized_shipment_ratecard_fee';
1943
+ readonly weight_threshold: number;
1944
+ readonly weight_unit: io.flow.common.v0.enums.UnitOfMeasurement;
1945
+ readonly margin?: number;
1946
+ readonly amount?: number;
1947
+ }
1948
+
1949
+ interface Ratecard {
1950
+ readonly id: string;
2308
1951
  readonly number: string;
2309
- readonly quantity: number;
1952
+ readonly direction: io.flow.label.v0.enums.Direction;
1953
+ readonly effective_at: string;
1954
+ readonly origination_zones: io.flow.common.v0.models.Zone[];
1955
+ readonly service: io.flow.ratecard.v0.models.RatecardServiceSummary;
1956
+ readonly published_at?: string;
1957
+ readonly ratecard_owner: io.flow.fulfillment.v0.enums.RatecardOwner;
2310
1958
  }
2311
1959
 
2312
- interface InventoryRule {
1960
+ interface RatecardCarrierSummary {
2313
1961
  readonly id: string;
2314
- readonly position: number;
2315
- readonly query: string;
2316
- readonly strategy: io.flow.inventory.v0.unions.InventoryStrategy;
1962
+ readonly name: string;
2317
1963
  }
2318
1964
 
2319
- interface InventoryRuleForm {
2320
- readonly position: number;
2321
- readonly query: string;
2322
- readonly strategy: io.flow.inventory.v0.unions.InventoryStrategy;
1965
+ interface RatecardEstimateFormV1 {
1966
+ readonly discriminator: 'ratecard_estimate_form_v1';
1967
+ readonly origin?: string;
1968
+ readonly destination?: string;
1969
+ readonly weight_unit?: io.flow.common.v0.enums.UnitOfMeasurement;
1970
+ readonly distance_unit?: io.flow.common.v0.enums.UnitOfMeasurement;
1971
+ readonly service?: string;
1972
+ readonly weight?: number;
1973
+ readonly length?: number;
1974
+ readonly width?: number;
1975
+ readonly depth?: number;
1976
+ readonly delivered_duty?: io.flow.common.v0.enums.DeliveredDuty;
1977
+ readonly line_items?: io.flow.common.v0.models.LineItemForm[];
2323
1978
  }
2324
1979
 
2325
- interface InventoryRuleVersion {
2326
- readonly id: string;
2327
- readonly timestamp: string;
2328
- readonly type: io.flow.common.v0.enums.ChangeType;
2329
- readonly inventory_rule: io.flow.inventory.v0.models.InventoryRule;
1980
+ interface RatecardEstimateFormV2 {
1981
+ readonly discriminator: 'ratecard_estimate_form_v2';
1982
+ readonly origin_address: io.flow.common.v0.models.Address;
1983
+ readonly destination_address: io.flow.common.v0.models.Address;
1984
+ readonly weight_unit?: io.flow.common.v0.enums.UnitOfMeasurement;
1985
+ readonly distance_unit?: io.flow.common.v0.enums.UnitOfMeasurement;
1986
+ readonly service?: string;
1987
+ readonly weight?: number;
1988
+ readonly length?: number;
1989
+ readonly width?: number;
1990
+ readonly depth?: number;
1991
+ readonly delivered_duty?: io.flow.common.v0.enums.DeliveredDuty;
1992
+ readonly line_items?: io.flow.common.v0.models.LineItemForm[];
1993
+ readonly center_id?: string;
2330
1994
  }
2331
1995
 
2332
- interface InventorySnapshot {
2333
- readonly id: string;
2334
- readonly available: number;
2335
- readonly center: io.flow.inventory.v0.models.InventoryCenterReference;
2336
- readonly item: io.flow.inventory.v0.models.InventoryItemReference;
2337
- readonly quantity: number;
1996
+ interface RatecardEstimateSummaryForm {
1997
+ readonly origin?: string;
1998
+ readonly destination?: string;
1999
+ readonly service?: string;
2000
+ readonly center_key?: string;
2338
2001
  }
2339
2002
 
2340
- interface InventorySnapshotVersion {
2341
- readonly id: string;
2342
- readonly timestamp: string;
2343
- readonly type: io.flow.common.v0.enums.ChangeType;
2344
- readonly inventory_snapshot: io.flow.inventory.v0.models.InventorySnapshot;
2003
+ interface RatecardEstimateV1 {
2004
+ readonly discriminator: 'ratecard_estimate_v1';
2005
+ readonly service: io.flow.ratecard.v0.models.RatecardServiceSummary;
2006
+ readonly shipment_window: io.flow.ratecard.v0.models.ShipmentWindow;
2007
+ readonly currency: string;
2008
+ readonly amount: number;
2009
+ readonly fees: io.flow.ratecard.v0.unions.RatecardFee[];
2010
+ readonly total: number;
2011
+ readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
2012
+ readonly dimensional_weight?: io.flow.common.v0.models.Measurement;
2013
+ readonly gravitational_weight?: io.flow.common.v0.models.Measurement;
2014
+ readonly line_items?: io.flow.common.v0.models.LineItemForm[];
2345
2015
  }
2346
2016
 
2347
- interface InventoryStock {
2348
- readonly discriminator: 'inventory_stock';
2349
- readonly quantity: number;
2017
+ interface RatecardEstimateV2 {
2018
+ readonly discriminator: 'ratecard_estimate_v2';
2019
+ readonly hops: io.flow.ratecard.v0.models.Hop[];
2020
+ readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
2021
+ readonly dimensional_weight?: io.flow.common.v0.models.Measurement;
2022
+ readonly gravitational_weight?: io.flow.common.v0.models.Measurement;
2023
+ readonly line_items?: io.flow.common.v0.models.LineItemForm[];
2024
+ readonly ratecard_owner?: io.flow.fulfillment.v0.enums.RatecardOwner;
2350
2025
  }
2351
2026
 
2352
- interface InventoryUnlimited {
2353
- readonly discriminator: 'inventory_unlimited';
2354
- readonly quantity: string;
2027
+ interface RatecardForm {
2028
+ readonly direction: io.flow.label.v0.enums.Direction;
2029
+ readonly effective_at: string;
2030
+ readonly origination_zones: io.flow.common.v0.models.Zone[];
2031
+ readonly service: string;
2032
+ readonly number?: string;
2033
+ readonly ratecard_owner?: io.flow.fulfillment.v0.enums.RatecardOwner;
2355
2034
  }
2356
2035
 
2357
- interface InventoryUpdate {
2036
+ interface RatecardLane {
2358
2037
  readonly id: string;
2359
- readonly idempotency_key: string;
2360
- readonly center: io.flow.inventory.v0.models.InventoryCenterReference;
2361
- readonly item: io.flow.inventory.v0.models.InventoryItemReference;
2362
- readonly notes: any /*object*/;
2363
- readonly quantity: number;
2364
- readonly type: io.flow.inventory.v0.enums.UpdateType;
2038
+ readonly ratecard: io.flow.ratecard.v0.models.RatecardReference;
2039
+ readonly currency: string;
2040
+ readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
2041
+ readonly shipment_window: io.flow.ratecard.v0.models.ShipmentWindow;
2042
+ readonly destination: io.flow.common.v0.models.Zone;
2043
+ readonly dim_factor: number;
2044
+ readonly fees: io.flow.ratecard.v0.unions.RatecardFee[];
2045
+ readonly origin: io.flow.common.v0.models.Zone;
2046
+ readonly service: io.flow.ratecard.v0.models.RatecardServiceSummary;
2047
+ readonly rates: io.flow.ratecard.v0.models.RatecardRate[];
2048
+ readonly rounding: io.flow.common.v0.models.Rounding;
2049
+ readonly weight_unit: io.flow.common.v0.enums.UnitOfMeasurement;
2050
+ readonly distance_unit: io.flow.common.v0.enums.UnitOfMeasurement;
2365
2051
  }
2366
2052
 
2367
- interface InventoryUpdateForm {
2368
- readonly center: string;
2369
- readonly idempotency_key: string;
2370
- readonly item_number: string;
2371
- readonly quantity: number;
2372
- readonly type: io.flow.inventory.v0.enums.UpdateType;
2373
- readonly notes?: any /*object*/;
2053
+ interface RatecardLaneForm {
2054
+ readonly ratecard_id: string;
2055
+ readonly currency: string;
2056
+ readonly destination: io.flow.common.v0.models.Zone;
2057
+ readonly shipment_window: io.flow.ratecard.v0.models.ShipmentWindow;
2058
+ readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
2059
+ readonly dim_factor: number;
2060
+ readonly fees: io.flow.ratecard.v0.unions.RatecardFee[];
2061
+ readonly origin: io.flow.common.v0.models.Zone;
2062
+ readonly rounding: io.flow.common.v0.models.Rounding;
2063
+ readonly rates: io.flow.ratecard.v0.models.RatecardRateForm[];
2064
+ readonly weight_unit: io.flow.common.v0.enums.UnitOfMeasurement;
2065
+ readonly distance_unit: io.flow.common.v0.enums.UnitOfMeasurement;
2374
2066
  }
2375
2067
 
2376
- interface InventoryUpdateVersion {
2068
+ interface RatecardLaneImportForm {
2069
+ readonly ratecard_owner: io.flow.fulfillment.v0.enums.RatecardOwner;
2070
+ readonly service: string;
2071
+ readonly currency: string;
2072
+ readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
2073
+ readonly origin: io.flow.common.v0.models.Zone;
2074
+ readonly destination: io.flow.common.v0.models.Zone;
2075
+ readonly shipment_window: io.flow.ratecard.v0.models.ShipmentWindow;
2076
+ readonly dim_factor: number;
2077
+ readonly weight_unit: io.flow.common.v0.enums.UnitOfMeasurement;
2078
+ readonly distance_unit: io.flow.common.v0.enums.UnitOfMeasurement;
2079
+ readonly rates: io.flow.ratecard.v0.models.RatecardRateForm[];
2080
+ }
2081
+
2082
+ interface RatecardLaneVersion {
2377
2083
  readonly id: string;
2378
2084
  readonly timestamp: string;
2379
2085
  readonly type: io.flow.common.v0.enums.ChangeType;
2380
- readonly inventory_update: io.flow.inventory.v0.models.InventoryUpdate;
2086
+ readonly ratecard_lane: io.flow.ratecard.v0.models.RatecardLane;
2381
2087
  }
2382
2088
 
2383
- interface NoInventoryReservationError {
2384
- readonly code: 'no_inventory';
2385
- readonly messages: string[];
2386
- readonly items: io.flow.inventory.v0.models.NoInventoryReservationErrorItem[];
2089
+ interface RatecardLanesImportRequestData {
2090
+ readonly id: string;
2091
+ readonly source_url: string;
2092
+ readonly filename?: string;
2387
2093
  }
2388
2094
 
2389
- interface NoInventoryReservationErrorItem {
2390
- readonly number: string;
2391
- readonly requested_quantity: number;
2392
- readonly available_quantity: number;
2095
+ interface RatecardRate {
2096
+ readonly id: string;
2097
+ readonly amount: number;
2098
+ readonly weight: number;
2393
2099
  }
2394
2100
 
2395
- interface PfsInventoryCheckResponse {
2396
- readonly items: Record<
2397
- string,
2398
- io.flow.inventory.v0.models.PfsInventoryCheckResponseItem
2399
- >;
2101
+ interface RatecardRateForm {
2102
+ readonly amount: number;
2103
+ readonly weight: number;
2400
2104
  }
2401
2105
 
2402
- interface PfsInventoryCheckResponseItem {
2403
- readonly number: string;
2404
- readonly ats: number;
2405
- readonly in_stock: boolean;
2106
+ interface RatecardRateVersion {
2107
+ readonly id: string;
2108
+ readonly timestamp: string;
2109
+ readonly type: io.flow.common.v0.enums.ChangeType;
2110
+ readonly ratecard_rate: io.flow.ratecard.v0.models.RatecardRate;
2406
2111
  }
2407
2112
 
2408
- interface PfsInventoryStatus {
2409
- readonly status: string;
2113
+ interface RatecardReference {
2114
+ readonly id: string;
2410
2115
  }
2411
2116
 
2412
- interface Reservation {
2117
+ interface RatecardServiceSummary {
2413
2118
  readonly id: string;
2414
- readonly key: string;
2415
- readonly order?: io.flow.inventory.v0.models.ReservationOrderReference;
2416
- readonly items: io.flow.inventory.v0.models.ReservationItem[];
2417
- readonly reserved_until?: string;
2119
+ readonly name: string;
2120
+ readonly carrier: io.flow.ratecard.v0.models.RatecardCarrierSummary;
2418
2121
  }
2419
2122
 
2420
- interface ReservationForm {
2421
- readonly order_number?: string;
2422
- readonly items: io.flow.inventory.v0.models.ReservationItemForm[];
2123
+ interface RatecardVersion {
2124
+ readonly id: string;
2125
+ readonly timestamp: string;
2126
+ readonly type: io.flow.common.v0.enums.ChangeType;
2127
+ readonly ratecard: io.flow.ratecard.v0.models.Ratecard;
2423
2128
  }
2424
2129
 
2425
- interface ReservationItem {
2426
- readonly item: io.flow.inventory.v0.models.ReservationItemReference;
2427
- readonly quantity: number;
2130
+ interface RemoteAreaRatecardFee {
2131
+ readonly discriminator: 'remote_area_ratecard_fee';
2132
+ readonly amount: io.flow.common.v0.models.Money;
2428
2133
  }
2429
2134
 
2430
- interface ReservationItemForm {
2431
- readonly item_number: string;
2432
- readonly quantity: number;
2135
+ interface RemoteAreaServiceFee {
2136
+ readonly discriminator: 'remote_area_service_fee';
2137
+ readonly amount: io.flow.common.v0.models.Money;
2433
2138
  }
2434
2139
 
2435
- interface ReservationItemReference {
2436
- readonly number: string;
2437
- }
2140
+ interface ReturnPackageRatecardFee {
2141
+ readonly discriminator: 'return_package_ratecard_fee';
2142
+ readonly amount: number;
2143
+ }
2438
2144
 
2439
- interface ReservationOrderReference {
2440
- readonly number: string;
2145
+ interface ShipmentWindow {
2146
+ readonly from: number;
2147
+ readonly to: number;
2441
2148
  }
2149
+ }
2442
2150
 
2443
- interface Serial {
2151
+ declare namespace io.flow.ratecard.v0.unions {
2152
+ type RatecardEstimate =
2153
+ | io.flow.ratecard.v0.models.RatecardEstimateV1
2154
+ | io.flow.ratecard.v0.models.RatecardEstimateV2;
2155
+ type RatecardEstimateForm =
2156
+ | io.flow.ratecard.v0.models.RatecardEstimateFormV1
2157
+ | io.flow.ratecard.v0.models.RatecardEstimateFormV2;
2158
+ type RatecardFee =
2159
+ | io.flow.ratecard.v0.models.DdpRatecardFee
2160
+ | io.flow.ratecard.v0.models.FuelSurchargeRatecardFee
2161
+ | io.flow.ratecard.v0.models.OversizedShipmentRatecardFee
2162
+ | io.flow.ratecard.v0.models.ReturnPackageRatecardFee
2163
+ | io.flow.ratecard.v0.models.CrossdockRatecardFee
2164
+ | io.flow.ratecard.v0.models.RemoteAreaRatecardFee;
2165
+ type ServiceFee =
2166
+ | io.flow.ratecard.v0.models.FuelSurchargeServiceFee
2167
+ | io.flow.ratecard.v0.models.RemoteAreaServiceFee;
2168
+ }
2169
+
2170
+ declare namespace io.flow.session.context.v0.models {
2171
+ interface Context {
2444
2172
  readonly id: string;
2445
- readonly number: string;
2446
- readonly item_number: string;
2447
- readonly item_price: io.flow.common.v0.models.Price;
2448
- readonly status: io.flow.inventory.v0.enums.SerialStatus;
2449
- readonly center: io.flow.fulfillment.v0.models.CenterReference;
2450
- readonly attributes: Record<string, string>;
2173
+ readonly experiments: io.flow.session.context.v0.models.Experiment[];
2451
2174
  }
2452
2175
 
2453
- interface SerialForm {
2454
- readonly number: string;
2455
- readonly item_number: string;
2456
- readonly item_price: number;
2457
- readonly item_currency: string;
2458
- readonly status: io.flow.inventory.v0.enums.SerialStatus;
2459
- readonly center_key?: string;
2460
- readonly attributes?: Record<string, string>;
2176
+ interface ContextForm {
2177
+ readonly experiments: io.flow.session.context.v0.models.Experiment[];
2461
2178
  }
2462
2179
 
2463
- interface SerialVersion {
2180
+ interface ContextReference {
2464
2181
  readonly id: string;
2465
- readonly timestamp: string;
2466
- readonly type: io.flow.common.v0.enums.ChangeType;
2467
- readonly serial: io.flow.inventory.v0.models.Serial;
2468
2182
  }
2469
- }
2470
2183
 
2471
- declare namespace io.flow.inventory.v0.unions {
2472
- type InventoryStrategy =
2473
- | io.flow.inventory.v0.models.InventoryBackorder
2474
- | io.flow.inventory.v0.models.InventoryStock
2475
- | io.flow.inventory.v0.models.InventoryUnlimited;
2476
- type ReservationError =
2477
- | io.flow.inventory.v0.models.NoInventoryReservationError
2478
- | io.flow.inventory.v0.models.ExternalApiTimeoutReservationError
2479
- | io.flow.inventory.v0.models.GenericReservationError;
2184
+ interface Experiment {
2185
+ readonly key: string;
2186
+ readonly variant?: io.flow.session.context.v0.models.ExperimentVariant;
2187
+ }
2188
+
2189
+ interface ExperimentVariant {
2190
+ readonly key: string;
2191
+ }
2480
2192
  }
2481
2193
 
2482
2194
  declare namespace io.flow.optin.internal.v0.enums {
@@ -6354,7 +6066,7 @@ declare namespace io.flow.shopify.v0.unions {
6354
6066
 
6355
6067
  declare namespace io.flow.payment.internal.v0.enums {
6356
6068
  type ChargebackPaymentStatus = 'captured' | 'refunded';
6357
- type ChargebackProcessStatus = 'open' | 'closed';
6069
+ type ChargebackProcessStatus = 'inquiry' | 'open' | 'closed';
6358
6070
  type HttpMethod = 'get' | 'post';
6359
6071
  type Processor =
6360
6072
  | 'adyen'
@@ -6362,7 +6074,9 @@ declare namespace io.flow.payment.internal.v0.enums {
6362
6074
  | 'bitpay'
6363
6075
  | 'stripe'
6364
6076
  | 'paypal'
6365
- | 'flow_sandbox';
6077
+ | 'flow_sandbox'
6078
+ | 'fiserv'
6079
+ | 'crypto';
6366
6080
  type RedirectReason = 'three_d_secure';
6367
6081
  type RiskCheck = 'three_d_secure';
6368
6082
  }
@@ -6437,7 +6151,6 @@ declare namespace io.flow.payment.internal.v0.models {
6437
6151
  readonly id: string;
6438
6152
  readonly key: string;
6439
6153
  readonly authorization: io.flow.payment.v0.models.AuthorizationReference;
6440
- readonly capture: io.flow.payment.v0.models.CaptureReference;
6441
6154
  readonly amount: number;
6442
6155
  readonly currency: string;
6443
6156
  readonly base?: io.flow.common.v0.models.Money;
@@ -6450,6 +6163,7 @@ declare namespace io.flow.payment.internal.v0.models {
6450
6163
  readonly processor_status: string;
6451
6164
  readonly processor_reference?: string;
6452
6165
  readonly provider_reference?: string;
6166
+ readonly provider_reason_code?: string;
6453
6167
  }
6454
6168
 
6455
6169
  interface ChargebackVersion {
@@ -6486,6 +6200,11 @@ declare namespace io.flow.payment.internal.v0.models {
6486
6200
  readonly passphrase_ids: string[];
6487
6201
  }
6488
6202
 
6203
+ interface FiservAuthenticationDataReference {
6204
+ readonly account_id: string;
6205
+ readonly store_id: string;
6206
+ }
6207
+
6489
6208
  interface InternalAdyenAuthorizationDetails {
6490
6209
  readonly discriminator: 'internal_adyen_authorization_details';
6491
6210
  readonly adyen_authentication_data: io.flow.payment.internal.v0.models.AdyenAuthenticationDataReference;
@@ -6506,6 +6225,11 @@ declare namespace io.flow.payment.internal.v0.models {
6506
6225
  readonly internal?: io.flow.payment.internal.v0.unions.InternalAuthorizationDetails;
6507
6226
  }
6508
6227
 
6228
+ interface InternalFiservAuthorizationDetails {
6229
+ readonly discriminator: 'internal_fiserv_authorization_details';
6230
+ readonly fiserv_authentication_data: io.flow.payment.internal.v0.models.FiservAuthenticationDataReference;
6231
+ }
6232
+
6509
6233
  interface InternalPaypalAuthorizationDetails {
6510
6234
  readonly discriminator: 'internal_paypal_authorization_details';
6511
6235
  readonly paypal_authentication_data: io.flow.payment.internal.v0.models.PaypalAuthenticationDataReference;
@@ -6618,7 +6342,8 @@ declare namespace io.flow.payment.internal.v0.unions {
6618
6342
  | io.flow.payment.internal.v0.models.InternalBitpayAuthorizationDetails
6619
6343
  | io.flow.payment.internal.v0.models.InternalStripeAuthorizationDetails
6620
6344
  | io.flow.payment.internal.v0.models.InternalAdyenAuthorizationDetails
6621
- | io.flow.payment.internal.v0.models.InternalAfterpayAuthorizationDetails;
6345
+ | io.flow.payment.internal.v0.models.InternalAfterpayAuthorizationDetails
6346
+ | io.flow.payment.internal.v0.models.InternalFiservAuthorizationDetails;
6622
6347
  type InternalRefundForm = io.flow.payment.internal.v0.models.AdyenRefundForm;
6623
6348
  type PaymentAccount = io.flow.payment.internal.v0.models.StripeAccount;
6624
6349
  type PaymentAccountForm = io.flow.payment.internal.v0.models.StripeAccountForm;
@@ -8818,691 +8543,1088 @@ declare namespace io.flow.stripe.v0.models {
8818
8543
  readonly dynamic_last4?: string;
8819
8544
  }
8820
8545
 
8821
- interface SourceCardRequest {
8822
- readonly exp_month: string;
8823
- readonly exp_year: string;
8546
+ interface SourceCardRequest {
8547
+ readonly exp_month: string;
8548
+ readonly exp_year: string;
8549
+ readonly number: string;
8550
+ readonly cvc?: string;
8551
+ }
8552
+
8553
+ interface SourceKlarna {
8554
+ readonly first_name?: string;
8555
+ readonly last_name?: string;
8556
+ readonly client_token: string;
8557
+ }
8558
+
8559
+ interface SourceKlarnaRequest {
8560
+ readonly first_name: string;
8561
+ readonly last_name: string;
8562
+ readonly attachment?: string;
8563
+ }
8564
+
8565
+ interface SourceRequest {
8566
+ readonly type?: io.flow.stripe.v0.enums.SourceType;
8567
+ readonly amount?: number;
8568
+ readonly card?: io.flow.stripe.v0.models.SourceCardRequest;
8569
+ readonly currency?: string;
8570
+ readonly flow?: io.flow.stripe.v0.enums.SourceFlow;
8571
+ readonly klarna?: io.flow.stripe.v0.models.SourceKlarnaRequest;
8572
+ readonly order?: io.flow.stripe.v0.models.OrderRequest;
8573
+ readonly owner?: io.flow.stripe.v0.models.Owner;
8574
+ readonly receiver?: io.flow.stripe.v0.models.Receiver;
8575
+ readonly redirect?: io.flow.stripe.v0.models.Redirect;
8576
+ readonly statement_descriptor?: string;
8577
+ readonly three_d_secure?: io.flow.stripe.v0.models.ThreeDSecure;
8578
+ readonly token?: string;
8579
+ readonly usage: io.flow.stripe.v0.enums.SourceUsageType;
8580
+ }
8581
+
8582
+ interface Stripe3Ds2Fingerprint {
8583
+ readonly type: io.flow.stripe.v0.enums.UseStripeSdkType;
8584
+ readonly three_d_secure_2_source: string;
8585
+ readonly directory_server_name?: string;
8586
+ readonly server_transaction_id?: string;
8587
+ readonly three_ds_method_url?: string;
8588
+ readonly three_ds_optimizations?: string;
8589
+ readonly directory_server_encryption?: any /*object*/;
8590
+ }
8591
+
8592
+ interface StripeError {
8593
+ readonly type: io.flow.stripe.v0.enums.ErrorType;
8594
+ readonly charge?: string;
8595
+ readonly message?: string;
8596
+ readonly code?: io.flow.stripe.v0.enums.CardErrorCode;
8597
+ readonly decline_code?: string;
8598
+ readonly param?: string;
8599
+ }
8600
+
8601
+ interface StripeEvent {
8602
+ readonly id: string;
8603
+ readonly object: string;
8604
+ readonly api_version?: string;
8605
+ readonly created: number;
8606
+ readonly data: io.flow.stripe.v0.models.StripeEventData;
8607
+ readonly livemode: boolean;
8608
+ readonly pending_webhooks: number;
8609
+ readonly request?: io.flow.stripe.v0.models.StripeEventRequest;
8610
+ readonly type: string;
8611
+ }
8612
+
8613
+ interface StripeEventData {
8614
+ readonly object?: any /*object*/;
8615
+ readonly previous_attributes?: any /*object*/;
8616
+ }
8617
+
8618
+ interface StripeEventRequest {
8619
+ readonly id?: string;
8620
+ readonly idempotency_key?: string;
8621
+ }
8622
+
8623
+ interface ThreeDSecure {
8624
+ readonly card: string;
8625
+ readonly customer?: string;
8626
+ }
8627
+
8628
+ interface ThreeDSecureRedirect {
8629
+ readonly type: io.flow.stripe.v0.enums.UseStripeSdkType;
8630
+ readonly stripe_js: string;
8631
+ }
8632
+
8633
+ interface Token {
8634
+ readonly id: string;
8635
+ readonly object: string;
8636
+ readonly client_ip: string;
8637
+ readonly created: number;
8638
+ readonly livemode: boolean;
8639
+ readonly type: io.flow.stripe.v0.enums.TokenType;
8640
+ readonly used: boolean;
8641
+ readonly card?: io.flow.stripe.v0.models.Card;
8642
+ }
8643
+
8644
+ interface TosAcceptance {
8645
+ readonly date?: number;
8646
+ readonly ip?: string;
8647
+ readonly user_agent?: string;
8648
+ }
8649
+
8650
+ interface TransferData {
8651
+ readonly amount: number;
8652
+ readonly destination?: string;
8653
+ }
8654
+ }
8655
+
8656
+ declare namespace io.flow.RESERVED_WORD_export.v0.enums {
8657
+ type ExportStatus = 'created' | 'processing' | 'completed' | 'failed';
8658
+ }
8659
+
8660
+ declare namespace io.flow.RESERVED_WORD_export.v0.models {
8661
+ interface AccountOrdersExportType {
8662
+ readonly discriminator: 'account_orders_export_type';
8663
+ readonly statement_id?: string;
8664
+ readonly transaction_summary_id?: string;
8665
+ readonly transaction_created_from?: string;
8666
+ readonly transaction_created_to?: string;
8667
+ readonly transaction_created_on_or_after?: string;
8668
+ readonly transaction_created_after?: string;
8669
+ readonly transaction_created_on_or_before?: string;
8670
+ readonly transaction_created_before?: string;
8671
+ readonly transaction_posted_from?: string;
8672
+ readonly transaction_posted_to?: string;
8673
+ readonly transaction_posted_on_or_after?: string;
8674
+ readonly transaction_posted_after?: string;
8675
+ readonly transaction_posted_on_or_before?: string;
8676
+ readonly transaction_posted_before?: string;
8677
+ }
8678
+
8679
+ interface AccountTransactionsExportType {
8680
+ readonly discriminator: 'account_transactions_export_type';
8681
+ readonly statement_id?: string;
8682
+ readonly transaction_summary_id?: string;
8683
+ readonly created_from?: string;
8684
+ readonly created_to?: string;
8685
+ readonly created_on_or_after?: string;
8686
+ readonly created_after?: string;
8687
+ readonly created_on_or_before?: string;
8688
+ readonly created_before?: string;
8689
+ readonly posted_from?: string;
8690
+ readonly posted_to?: string;
8691
+ readonly posted_on_or_after?: string;
8692
+ readonly posted_after?: string;
8693
+ readonly posted_on_or_before?: string;
8694
+ readonly posted_before?: string;
8695
+ }
8696
+
8697
+ interface AnalyticsExportType {
8698
+ readonly discriminator: 'analytics_export_type';
8699
+ readonly from?: string;
8700
+ readonly to?: string;
8701
+ readonly region?: string;
8702
+ readonly interval?: io.flow.common.v0.enums.UnitOfTime;
8703
+ }
8704
+
8705
+ interface CatalogItemExportType {
8706
+ readonly discriminator: 'catalog_item_export_type';
8707
+ readonly numbers?: string[];
8708
+ readonly q?: string;
8709
+ readonly sort?: string;
8710
+ }
8711
+
8712
+ interface CsvPriceBookItemExportRow {
8713
+ readonly price_book_key: string;
8714
+ readonly price_book_item_key: string;
8715
+ readonly item_number: string;
8716
+ readonly item_name: string;
8717
+ readonly amount: number;
8718
+ readonly item_attributes?: Record<string, string>;
8719
+ readonly starts_at: string;
8720
+ readonly ends_at?: string;
8721
+ }
8722
+
8723
+ interface ExperienceExportType {
8724
+ readonly discriminator: 'experience_export_type';
8725
+ readonly organization_id: string;
8726
+ readonly ids?: string[];
8727
+ readonly keys?: string[];
8728
+ }
8729
+
8730
+ interface Export {
8731
+ readonly id: string;
8732
+ readonly type: io.flow.RESERVED_WORD_export.v0.unions.ExportType;
8733
+ readonly status: io.flow.RESERVED_WORD_export.v0.enums.ExportStatus;
8734
+ readonly organization_q: string;
8735
+ readonly created_at: string;
8736
+ readonly started_at?: string;
8737
+ readonly completed_at?: string;
8738
+ readonly url?: string;
8739
+ readonly deliveries: io.flow.RESERVED_WORD_export.v0.unions.ExportDelivery[];
8740
+ }
8741
+
8742
+ interface ExportDeliveryEmail {
8743
+ readonly discriminator: 'export_delivery_email';
8744
+ readonly email: string;
8745
+ }
8746
+
8747
+ interface ExportForm {
8748
+ readonly type: io.flow.RESERVED_WORD_export.v0.unions.ExportType;
8749
+ readonly emails?: string[];
8750
+ readonly organization_q?: string;
8751
+ }
8752
+
8753
+ interface ExportLocalizedItemPrices {
8754
+ readonly organization: io.flow.common.v0.models.OrganizationReference;
8755
+ readonly experience: io.flow.experience.v0.models.ExperienceReference;
8756
+ readonly item: io.flow.common.v0.models.CatalogItemReference;
8757
+ readonly prices: io.flow.RESERVED_WORD_export.v0.models.ExportLocalizedItemPricesDetail;
8758
+ readonly status?: io.flow.catalog.v0.enums.SubcatalogItemStatus;
8759
+ }
8760
+
8761
+ interface ExportLocalizedItemPricesDetail {
8762
+ readonly item: io.flow.catalog.v0.models.LocalizedItemPrice;
8763
+ readonly vat?: io.flow.catalog.v0.models.LocalizedItemVat;
8764
+ readonly duty?: io.flow.catalog.v0.models.LocalizedItemDuty;
8765
+ readonly price_attributes: Record<
8766
+ string,
8767
+ io.flow.common.v0.models.PriceWithBase
8768
+ >;
8769
+ }
8770
+
8771
+ interface ExportVersion {
8772
+ readonly id: string;
8773
+ readonly timestamp: string;
8774
+ readonly type: io.flow.common.v0.enums.ChangeType;
8775
+ readonly export: io.flow.RESERVED_WORD_export.v0.models.Export;
8776
+ }
8777
+
8778
+ interface HarmonizationHs10ExportType {
8779
+ readonly discriminator: 'harmonization_hs10_export_type';
8780
+ readonly origin?: string;
8781
+ readonly destination?: string;
8782
+ readonly numbers?: string[];
8783
+ readonly has_codes?: boolean;
8784
+ readonly has_origins?: boolean;
8785
+ readonly sort?: string;
8786
+ }
8787
+
8788
+ interface HarmonizationHs6ExportType {
8789
+ readonly discriminator: 'harmonization_hs6_export_type';
8790
+ readonly numbers?: string[];
8791
+ readonly has_codes?: boolean;
8792
+ readonly sort?: string;
8793
+ }
8794
+
8795
+ interface HarmonizationLandedCostExportType {
8796
+ readonly discriminator: 'harmonization_landed_cost_export_type';
8797
+ readonly items: io.flow.RESERVED_WORD_export.v0.models.LandedCostItem[];
8798
+ }
8799
+
8800
+ interface HarmonizationOverviewExportType {
8801
+ readonly discriminator: 'harmonization_overview_export_type';
8802
+ readonly origin?: string;
8803
+ readonly destination?: string;
8804
+ readonly sort?: string;
8805
+ }
8806
+
8807
+ interface LandedCostItem {
8808
+ readonly number: string;
8809
+ readonly origin: string;
8810
+ readonly destination: string;
8811
+ }
8812
+
8813
+ interface LocalizedItemPricesExportType {
8814
+ readonly discriminator: 'localized_item_prices_export_type';
8815
+ readonly since?: string;
8816
+ }
8817
+
8818
+ interface OrderExportType {
8819
+ readonly discriminator: 'order_export_type';
8820
+ readonly numbers?: string[];
8821
+ readonly min_hours_since_submitted_at?: number;
8822
+ readonly submitted_on_or_before?: string;
8823
+ readonly submitted_on_or_after?: string;
8824
+ readonly status?: io.flow.experience.v0.enums.OrderStatus;
8825
+ readonly has_tracking_label?: boolean;
8826
+ readonly sort?: string;
8827
+ }
8828
+
8829
+ interface PriceBookItemExportType {
8830
+ readonly discriminator: 'price_book_item_export_type';
8831
+ readonly price_book_key?: string;
8832
+ readonly item_numbers?: string[];
8833
+ readonly start_date?: string;
8834
+ readonly end_date?: string;
8835
+ }
8836
+
8837
+ interface ScheduledExport {
8838
+ readonly id: string;
8839
+ readonly user: io.flow.common.v0.models.UserReference;
8840
+ readonly organization_q: string;
8841
+ readonly hour: number;
8842
+ readonly minute: number;
8843
+ readonly timezone: string;
8844
+ readonly types: io.flow.RESERVED_WORD_export.v0.unions.ExportType[];
8845
+ readonly last_sent_at?: string;
8846
+ }
8847
+
8848
+ interface ScheduledExportForm {
8849
+ readonly user_id: string;
8850
+ readonly organization_q: string;
8851
+ readonly hour: number;
8852
+ readonly minute: number;
8853
+ readonly timezone: string;
8854
+ readonly types: io.flow.RESERVED_WORD_export.v0.unions.ExportType[];
8855
+ }
8856
+
8857
+ interface SolidusProductExportType {
8858
+ readonly discriminator: 'solidus_product_export_type';
8859
+ readonly numbers?: string[];
8860
+ readonly sort?: string;
8861
+ }
8862
+
8863
+ interface SolidusVariantExportType {
8864
+ readonly discriminator: 'solidus_variant_export_type';
8865
+ readonly numbers?: string[];
8866
+ readonly sort?: string;
8867
+ }
8868
+
8869
+ interface UnharmonizedItemExportType {
8870
+ readonly discriminator: 'unharmonized_item_export_type';
8871
+ readonly sort?: string;
8872
+ }
8873
+ }
8874
+
8875
+ declare namespace io.flow.RESERVED_WORD_export.v0.unions {
8876
+ type ExportDelivery = io.flow.RESERVED_WORD_export.v0.models.ExportDeliveryEmail;
8877
+ type ExportType =
8878
+ | io.flow.RESERVED_WORD_export.v0.models.AccountTransactionsExportType
8879
+ | io.flow.RESERVED_WORD_export.v0.models.AccountOrdersExportType
8880
+ | io.flow.RESERVED_WORD_export.v0.models.AnalyticsExportType
8881
+ | io.flow.RESERVED_WORD_export.v0.models.CatalogItemExportType
8882
+ | io.flow.RESERVED_WORD_export.v0.models.ExperienceExportType
8883
+ | io.flow.RESERVED_WORD_export.v0.models.HarmonizationOverviewExportType
8884
+ | io.flow.RESERVED_WORD_export.v0.models.HarmonizationHs6ExportType
8885
+ | io.flow.RESERVED_WORD_export.v0.models.HarmonizationHs10ExportType
8886
+ | io.flow.RESERVED_WORD_export.v0.models.UnharmonizedItemExportType
8887
+ | io.flow.RESERVED_WORD_export.v0.models.HarmonizationLandedCostExportType
8888
+ | io.flow.RESERVED_WORD_export.v0.models.OrderExportType
8889
+ | io.flow.RESERVED_WORD_export.v0.models.PriceBookItemExportType
8890
+ | io.flow.RESERVED_WORD_export.v0.models.SolidusProductExportType
8891
+ | io.flow.RESERVED_WORD_export.v0.models.SolidusVariantExportType
8892
+ | io.flow.RESERVED_WORD_export.v0.models.LocalizedItemPricesExportType;
8893
+ }
8894
+
8895
+ declare namespace io.flow.shopify.internal.v0.enums {
8896
+ type FlowApp = 'console';
8897
+ type ShopifyCheckInventoryErrorCode = 'inventory_out_of_stock';
8898
+ type ShopifyGrantStatus = 'pass' | 'fail';
8899
+ type ShopifyPromotionOfferAllocationMethod = 'each' | 'across';
8900
+ type ShopifyPromotionOrderEntitlementComponent =
8901
+ | 'subtotal'
8902
+ | 'shipping'
8903
+ | 'vat'
8904
+ | 'duty';
8905
+ type ShopifyPromotionStatus = 'active' | 'inactive';
8906
+ }
8907
+
8908
+ declare namespace io.flow.shopify.internal.v0.models {
8909
+ interface CompletePriceRule {
8910
+ readonly price_rule: io.flow.shopify.external.v0.models.PriceRule;
8911
+ readonly discount_codes: io.flow.shopify.external.v0.models.PriceRuleDiscountCode[];
8912
+ }
8913
+
8914
+ interface InstallForm {
8915
+ readonly token: string;
8916
+ }
8917
+
8918
+ interface OrderSubmissionForm {
8919
+ readonly authorization?: io.flow.payment.v0.unions.AuthorizationForm;
8920
+ }
8921
+
8922
+ interface Shop {
8923
+ readonly id: string;
8924
+ readonly organization?: io.flow.common.v0.models.OrganizationReference;
8925
+ readonly myshopify_domain: string;
8926
+ readonly domain?: string;
8927
+ }
8928
+
8929
+ interface ShopForm {
8930
+ readonly organization_id: string;
8931
+ }
8932
+
8933
+ interface ShopVersion {
8934
+ readonly id: string;
8935
+ readonly timestamp: string;
8936
+ readonly type: io.flow.common.v0.enums.ChangeType;
8937
+ readonly shop: io.flow.shopify.internal.v0.models.Shop;
8938
+ }
8939
+
8940
+ interface ShopifyCheckInventoryError {
8941
+ readonly code: io.flow.shopify.internal.v0.enums.ShopifyCheckInventoryErrorCode;
8942
+ readonly messages: string[];
8943
+ readonly numbers?: string[];
8944
+ }
8945
+
8946
+ interface ShopifyCodeForm {
8947
+ readonly code: string;
8948
+ }
8949
+
8950
+ interface ShopifyExperienceShortId {
8951
+ readonly id: string;
8952
+ readonly experience: io.flow.experience.v0.models.ExperienceReference;
8953
+ readonly short_id: string;
8954
+ }
8955
+
8956
+ interface ShopifyGiftCardBalance {
8957
+ readonly gift_card_id: number;
8958
+ readonly last_characters: string;
8959
+ readonly amount: number;
8960
+ readonly currency: string;
8961
+ }
8962
+
8963
+ interface ShopifyGiftCardBalanceForm {
8824
8964
  readonly number: string;
8825
- readonly cvc?: string;
8826
8965
  }
8827
8966
 
8828
- interface SourceKlarna {
8829
- readonly first_name?: string;
8830
- readonly last_name?: string;
8831
- readonly client_token: string;
8967
+ interface ShopifyGiftCardPaymentForm {
8968
+ readonly code: string;
8969
+ readonly customer_id?: number;
8832
8970
  }
8833
8971
 
8834
- interface SourceKlarnaRequest {
8835
- readonly first_name: string;
8836
- readonly last_name: string;
8837
- readonly attachment?: string;
8972
+ interface ShopifyGiftCardRedemption {
8973
+ readonly adjustment_id: number;
8974
+ readonly gift_card_id: number;
8975
+ readonly last_characters: string;
8976
+ readonly amount: number;
8977
+ readonly currency: string;
8838
8978
  }
8839
8979
 
8840
- interface SourceRequest {
8841
- readonly type?: io.flow.stripe.v0.enums.SourceType;
8842
- readonly amount?: number;
8843
- readonly card?: io.flow.stripe.v0.models.SourceCardRequest;
8844
- readonly currency?: string;
8845
- readonly flow?: io.flow.stripe.v0.enums.SourceFlow;
8846
- readonly klarna?: io.flow.stripe.v0.models.SourceKlarnaRequest;
8847
- readonly order?: io.flow.stripe.v0.models.OrderRequest;
8848
- readonly owner?: io.flow.stripe.v0.models.Owner;
8849
- readonly receiver?: io.flow.stripe.v0.models.Receiver;
8850
- readonly redirect?: io.flow.stripe.v0.models.Redirect;
8851
- readonly statement_descriptor?: string;
8852
- readonly three_d_secure?: io.flow.stripe.v0.models.ThreeDSecure;
8853
- readonly token?: string;
8854
- readonly usage: io.flow.stripe.v0.enums.SourceUsageType;
8980
+ interface ShopifyGiftCardRedemptionForm {
8981
+ readonly number: string;
8982
+ readonly amount: number;
8983
+ readonly currency: string;
8855
8984
  }
8856
8985
 
8857
- interface Stripe3Ds2Fingerprint {
8858
- readonly type: io.flow.stripe.v0.enums.UseStripeSdkType;
8859
- readonly three_d_secure_2_source: string;
8860
- readonly directory_server_name?: string;
8861
- readonly server_transaction_id?: string;
8862
- readonly three_ds_method_url?: string;
8863
- readonly three_ds_optimizations?: string;
8864
- readonly directory_server_encryption?: any /*object*/;
8986
+ interface ShopifyGiftCardReversal {
8987
+ readonly adjustment_id: number;
8988
+ readonly gift_card_id: number;
8989
+ readonly last_characters: string;
8990
+ readonly amount: number;
8991
+ readonly currency: string;
8865
8992
  }
8866
8993
 
8867
- interface StripeError {
8868
- readonly type: io.flow.stripe.v0.enums.ErrorType;
8869
- readonly charge?: string;
8870
- readonly message?: string;
8871
- readonly code?: io.flow.stripe.v0.enums.CardErrorCode;
8872
- readonly decline_code?: string;
8873
- readonly param?: string;
8994
+ interface ShopifyGiftCardReversalForm {
8995
+ readonly number: string;
8996
+ readonly amount: number;
8997
+ readonly currency: string;
8874
8998
  }
8875
8999
 
8876
- interface StripeEvent {
8877
- readonly id: string;
8878
- readonly object: string;
8879
- readonly api_version?: string;
8880
- readonly created: number;
8881
- readonly data: io.flow.stripe.v0.models.StripeEventData;
8882
- readonly livemode: boolean;
8883
- readonly pending_webhooks: number;
8884
- readonly request?: io.flow.stripe.v0.models.StripeEventRequest;
8885
- readonly type: string;
9000
+ interface ShopifyGrantsCheck {
9001
+ readonly dummy: string;
8886
9002
  }
8887
9003
 
8888
- interface StripeEventData {
8889
- readonly object?: any /*object*/;
8890
- readonly previous_attributes?: any /*object*/;
9004
+ interface ShopifyOrderAuthorization {
9005
+ readonly result: io.flow.payment.v0.models.AuthorizationResult;
9006
+ readonly detail?: io.flow.shopify.internal.v0.models.ShopifyOrderDetail;
9007
+ readonly redirect?: string;
8891
9008
  }
8892
9009
 
8893
- interface StripeEventRequest {
8894
- readonly id?: string;
8895
- readonly idempotency_key?: string;
9010
+ interface ShopifyOrderContent {
9011
+ readonly lines: io.flow.shopify.internal.v0.models.ShopifyOrderLineContent[];
9012
+ readonly discounts: io.flow.shopify.internal.v0.models.ShopifyOrderDiscountContent[];
8896
9013
  }
8897
9014
 
8898
- interface ThreeDSecure {
8899
- readonly card: string;
8900
- readonly customer?: string;
9015
+ interface ShopifyOrderDetail {
9016
+ readonly organization: io.flow.common.v0.models.OrganizationReference;
9017
+ readonly number: string;
9018
+ readonly order: io.flow.experience.v0.models.Order;
9019
+ readonly payments: io.flow.shopify.internal.v0.models.ShopifyPaymentSummary[];
9020
+ readonly contents: io.flow.shopify.internal.v0.models.ShopifyOrderContent;
8901
9021
  }
8902
9022
 
8903
- interface ThreeDSecureRedirect {
8904
- readonly type: io.flow.stripe.v0.enums.UseStripeSdkType;
8905
- readonly stripe_js: string;
9023
+ interface ShopifyOrderDiscountContent {
9024
+ readonly description: string;
9025
+ readonly code?: string;
8906
9026
  }
8907
9027
 
8908
- interface Token {
8909
- readonly id: string;
8910
- readonly object: string;
8911
- readonly client_ip: string;
8912
- readonly created: number;
8913
- readonly livemode: boolean;
8914
- readonly type: io.flow.stripe.v0.enums.TokenType;
8915
- readonly used: boolean;
8916
- readonly card?: io.flow.stripe.v0.models.Card;
9028
+ interface ShopifyOrderInventoryCheck {
9029
+ readonly item_number: string;
9030
+ readonly quantity: number;
8917
9031
  }
8918
9032
 
8919
- interface TosAcceptance {
8920
- readonly date?: number;
8921
- readonly ip?: string;
8922
- readonly user_agent?: string;
9033
+ interface ShopifyOrderLineAttribute {
9034
+ readonly key: string;
9035
+ readonly name: string;
9036
+ readonly value: string;
8923
9037
  }
8924
9038
 
8925
- interface TransferData {
8926
- readonly amount: number;
8927
- readonly destination?: string;
9039
+ interface ShopifyOrderLineContent {
9040
+ readonly item_number: string;
9041
+ readonly quantity: number;
9042
+ readonly price: io.flow.common.v0.models.PriceWithBase;
9043
+ readonly total: io.flow.common.v0.models.PriceWithBase;
9044
+ readonly name: string;
9045
+ readonly image_url: string;
9046
+ readonly variant_url: string;
9047
+ readonly attributes: io.flow.shopify.internal.v0.models.ShopifyOrderLineAttribute[];
8928
9048
  }
8929
- }
8930
-
8931
- declare namespace io.flow.RESERVED_WORD_export.v0.enums {
8932
- type ExportStatus = 'created' | 'processing' | 'completed' | 'failed';
8933
- }
8934
9049
 
8935
- declare namespace io.flow.RESERVED_WORD_export.v0.models {
8936
- interface AccountOrdersExportType {
8937
- readonly discriminator: 'account_orders_export_type';
8938
- readonly statement_id?: string;
8939
- readonly transaction_summary_id?: string;
8940
- readonly transaction_created_from?: string;
8941
- readonly transaction_created_to?: string;
8942
- readonly transaction_created_on_or_after?: string;
8943
- readonly transaction_created_after?: string;
8944
- readonly transaction_created_on_or_before?: string;
8945
- readonly transaction_created_before?: string;
8946
- readonly transaction_posted_from?: string;
8947
- readonly transaction_posted_to?: string;
8948
- readonly transaction_posted_on_or_after?: string;
8949
- readonly transaction_posted_after?: string;
8950
- readonly transaction_posted_on_or_before?: string;
8951
- readonly transaction_posted_before?: string;
9050
+ interface ShopifyPaymentSummary {
9051
+ readonly description: string;
9052
+ readonly address?: io.flow.common.v0.models.Address;
9053
+ readonly contact?: io.flow.common.v0.models.Contact;
8952
9054
  }
8953
9055
 
8954
- interface AccountTransactionsExportType {
8955
- readonly discriminator: 'account_transactions_export_type';
8956
- readonly statement_id?: string;
8957
- readonly transaction_summary_id?: string;
8958
- readonly created_from?: string;
8959
- readonly created_to?: string;
8960
- readonly created_on_or_after?: string;
8961
- readonly created_after?: string;
8962
- readonly created_on_or_before?: string;
8963
- readonly created_before?: string;
8964
- readonly posted_from?: string;
8965
- readonly posted_to?: string;
8966
- readonly posted_on_or_after?: string;
8967
- readonly posted_after?: string;
8968
- readonly posted_on_or_before?: string;
8969
- readonly posted_before?: string;
9056
+ interface ShopifyPromoForm {
9057
+ readonly name: string;
9058
+ readonly starts_at: string;
9059
+ readonly ends_at?: string;
9060
+ readonly status: io.flow.shopify.internal.v0.enums.ShopifyPromotionStatus;
9061
+ readonly rule: io.flow.shopify.internal.v0.models.ShopifyPromotionRule;
9062
+ readonly stackable_limit?: number;
8970
9063
  }
8971
9064
 
8972
- interface AnalyticsExportType {
8973
- readonly discriminator: 'analytics_export_type';
8974
- readonly from?: string;
8975
- readonly to?: string;
8976
- readonly region?: string;
8977
- readonly interval?: io.flow.common.v0.enums.UnitOfTime;
9065
+ interface ShopifyPromotion {
9066
+ readonly id: string;
9067
+ readonly name: string;
9068
+ readonly starts_at: string;
9069
+ readonly ends_at?: string;
9070
+ readonly status: io.flow.shopify.internal.v0.enums.ShopifyPromotionStatus;
9071
+ readonly rule: io.flow.shopify.internal.v0.models.ShopifyPromotionRule;
9072
+ readonly stackable_limit?: number;
8978
9073
  }
8979
9074
 
8980
- interface CatalogItemExportType {
8981
- readonly discriminator: 'catalog_item_export_type';
8982
- readonly numbers?: string[];
8983
- readonly q?: string;
8984
- readonly sort?: string;
9075
+ interface ShopifyPromotionAttributeValue {
9076
+ readonly name: string;
9077
+ readonly discount: io.flow.common.v0.models.Money;
8985
9078
  }
8986
9079
 
8987
- interface CsvPriceBookItemExportRow {
8988
- readonly price_book_key: string;
8989
- readonly price_book_item_key: string;
8990
- readonly item_number: string;
8991
- readonly item_name: string;
9080
+ interface ShopifyPromotionFixedAmount {
9081
+ readonly discriminator: 'shopify_promotion_fixed_amount';
8992
9082
  readonly amount: number;
8993
- readonly item_attributes?: Record<string, string>;
8994
- readonly starts_at: string;
8995
- readonly ends_at?: string;
9083
+ readonly currency: string;
8996
9084
  }
8997
9085
 
8998
- interface ExperienceExportType {
8999
- readonly discriminator: 'experience_export_type';
9000
- readonly organization_id: string;
9001
- readonly ids?: string[];
9002
- readonly keys?: string[];
9086
+ interface ShopifyPromotionForm {
9087
+ readonly code: string;
9003
9088
  }
9004
9089
 
9005
- interface Export {
9006
- readonly id: string;
9007
- readonly type: io.flow.RESERVED_WORD_export.v0.unions.ExportType;
9008
- readonly status: io.flow.RESERVED_WORD_export.v0.enums.ExportStatus;
9009
- readonly organization_q: string;
9010
- readonly created_at: string;
9011
- readonly started_at?: string;
9012
- readonly completed_at?: string;
9013
- readonly url?: string;
9014
- readonly deliveries: io.flow.RESERVED_WORD_export.v0.unions.ExportDelivery[];
9090
+ interface ShopifyPromotionItemEntitlement {
9091
+ readonly discriminator: 'shopify_promotion_item_entitlement';
9092
+ readonly q: string;
9093
+ readonly allocation_method: io.flow.shopify.internal.v0.enums.ShopifyPromotionOfferAllocationMethod;
9094
+ }
9095
+
9096
+ interface ShopifyPromotionItemPrerequisite {
9097
+ readonly discriminator: 'shopify_promotion_item_prerequisite';
9098
+ readonly q: string;
9099
+ readonly at_least?: number;
9100
+ readonly at_most?: number;
9101
+ readonly exclude_from_offer?: boolean;
9102
+ }
9103
+
9104
+ interface ShopifyPromotionMaxAmount {
9105
+ readonly discriminator: 'shopify_promotion_max_amount';
9106
+ readonly amount: number;
9107
+ readonly currency: string;
9015
9108
  }
9016
9109
 
9017
- interface ExportDeliveryEmail {
9018
- readonly discriminator: 'export_delivery_email';
9019
- readonly email: string;
9110
+ interface ShopifyPromotionMaxLimit {
9111
+ readonly discriminator: 'shopify_promotion_max_limit';
9112
+ readonly limit: number;
9020
9113
  }
9021
9114
 
9022
- interface ExportForm {
9023
- readonly type: io.flow.RESERVED_WORD_export.v0.unions.ExportType;
9024
- readonly emails?: string[];
9025
- readonly organization_q?: string;
9115
+ interface ShopifyPromotionOffer {
9116
+ readonly discount: io.flow.shopify.internal.v0.unions.ShopifyPromotionOfferDiscount;
9117
+ readonly entitlement: io.flow.shopify.internal.v0.unions.ShopifyPromotionOfferEntitlement;
9118
+ readonly max?: io.flow.shopify.internal.v0.unions.ShopifyPromotionOfferMax[];
9026
9119
  }
9027
9120
 
9028
- interface ExportLocalizedItemPrices {
9029
- readonly organization: io.flow.common.v0.models.OrganizationReference;
9030
- readonly experience: io.flow.experience.v0.models.ExperienceReference;
9031
- readonly item: io.flow.common.v0.models.CatalogItemReference;
9032
- readonly prices: io.flow.RESERVED_WORD_export.v0.models.ExportLocalizedItemPricesDetail;
9033
- readonly status?: io.flow.catalog.v0.enums.SubcatalogItemStatus;
9121
+ interface ShopifyPromotionOrderEntitlement {
9122
+ readonly discriminator: 'shopify_promotion_order_entitlement';
9123
+ readonly components: io.flow.shopify.internal.v0.enums.ShopifyPromotionOrderEntitlementComponent[];
9124
+ readonly allocation_method: io.flow.shopify.internal.v0.enums.ShopifyPromotionOfferAllocationMethod;
9034
9125
  }
9035
9126
 
9036
- interface ExportLocalizedItemPricesDetail {
9037
- readonly item: io.flow.catalog.v0.models.LocalizedItemPrice;
9038
- readonly vat?: io.flow.catalog.v0.models.LocalizedItemVat;
9039
- readonly duty?: io.flow.catalog.v0.models.LocalizedItemDuty;
9040
- readonly price_attributes: Record<
9041
- string,
9042
- io.flow.common.v0.models.PriceWithBase
9043
- >;
9127
+ interface ShopifyPromotionOrderPrerequisite {
9128
+ readonly discriminator: 'shopify_promotion_order_prerequisite';
9129
+ readonly q: string;
9044
9130
  }
9045
9131
 
9046
- interface ExportVersion {
9047
- readonly id: string;
9048
- readonly timestamp: string;
9049
- readonly type: io.flow.common.v0.enums.ChangeType;
9050
- readonly export: io.flow.RESERVED_WORD_export.v0.models.Export;
9132
+ interface ShopifyPromotionPercent {
9133
+ readonly discriminator: 'shopify_promotion_percent';
9134
+ readonly percent: number;
9051
9135
  }
9052
9136
 
9053
- interface HarmonizationHs10ExportType {
9054
- readonly discriminator: 'harmonization_hs10_export_type';
9055
- readonly origin?: string;
9056
- readonly destination?: string;
9057
- readonly numbers?: string[];
9058
- readonly has_codes?: boolean;
9059
- readonly has_origins?: boolean;
9060
- readonly sort?: string;
9137
+ interface ShopifyPromotionRule {
9138
+ readonly prerequisites: io.flow.shopify.internal.v0.unions.ShopifyPromotionPrerequisite[];
9139
+ readonly offers: io.flow.shopify.internal.v0.models.ShopifyPromotionOffer[];
9061
9140
  }
9062
9141
 
9063
- interface HarmonizationHs6ExportType {
9064
- readonly discriminator: 'harmonization_hs6_export_type';
9065
- readonly numbers?: string[];
9066
- readonly has_codes?: boolean;
9067
- readonly sort?: string;
9142
+ interface ShopifyWebhook {
9143
+ readonly id: string;
9144
+ readonly shop_id: string;
9145
+ readonly address: string;
9146
+ readonly topic: io.flow.shopify.external.v0.enums.Topic;
9068
9147
  }
9069
9148
 
9070
- interface HarmonizationLandedCostExportType {
9071
- readonly discriminator: 'harmonization_landed_cost_export_type';
9072
- readonly items: io.flow.RESERVED_WORD_export.v0.models.LandedCostItem[];
9149
+ interface ShopifyWebhookEvent {
9150
+ readonly dummy: string;
9073
9151
  }
9074
9152
 
9075
- interface HarmonizationOverviewExportType {
9076
- readonly discriminator: 'harmonization_overview_export_type';
9077
- readonly origin?: string;
9078
- readonly destination?: string;
9079
- readonly sort?: string;
9153
+ interface ShopifyWebhookForm {
9154
+ readonly myshopify_domain: string;
9155
+ readonly address: string;
9156
+ readonly topic: io.flow.shopify.external.v0.enums.Topic;
9080
9157
  }
9158
+ }
9081
9159
 
9082
- interface LandedCostItem {
9083
- readonly number: string;
9084
- readonly origin: string;
9085
- readonly destination: string;
9086
- }
9160
+ declare namespace io.flow.shopify.internal.v0.unions {
9161
+ type ShopifyPromotionOfferDiscount =
9162
+ | io.flow.shopify.internal.v0.models.ShopifyPromotionFixedAmount
9163
+ | io.flow.shopify.internal.v0.models.ShopifyPromotionPercent;
9164
+ type ShopifyPromotionOfferEntitlement =
9165
+ | io.flow.shopify.internal.v0.models.ShopifyPromotionItemEntitlement
9166
+ | io.flow.shopify.internal.v0.models.ShopifyPromotionOrderEntitlement;
9167
+ type ShopifyPromotionOfferMax =
9168
+ | io.flow.shopify.internal.v0.models.ShopifyPromotionMaxLimit
9169
+ | io.flow.shopify.internal.v0.models.ShopifyPromotionMaxAmount;
9170
+ type ShopifyPromotionPrerequisite =
9171
+ | io.flow.shopify.internal.v0.models.ShopifyPromotionItemPrerequisite
9172
+ | io.flow.shopify.internal.v0.models.ShopifyPromotionOrderPrerequisite;
9173
+ }
9087
9174
 
9088
- interface LocalizedItemPricesExportType {
9089
- readonly discriminator: 'localized_item_prices_export_type';
9090
- readonly since?: string;
9175
+ declare namespace io.flow.ftp.v0.enums {
9176
+ type FtpFileSource = 'flow' | 'organization';
9177
+ }
9178
+
9179
+ declare namespace io.flow.ftp.v0.models {
9180
+ interface FtpAccount {
9181
+ readonly server: io.flow.ftp.v0.models.FtpServer;
9182
+ readonly user: io.flow.ftp.v0.models.FtpUser;
9091
9183
  }
9092
9184
 
9093
- interface OrderExportType {
9094
- readonly discriminator: 'order_export_type';
9095
- readonly numbers?: string[];
9096
- readonly min_hours_since_submitted_at?: number;
9097
- readonly submitted_on_or_before?: string;
9098
- readonly submitted_on_or_after?: string;
9099
- readonly status?: io.flow.experience.v0.enums.OrderStatus;
9100
- readonly has_tracking_label?: boolean;
9101
- readonly sort?: string;
9185
+ interface FtpFile {
9186
+ readonly id: string;
9187
+ readonly source: io.flow.ftp.v0.enums.FtpFileSource;
9188
+ readonly name: string;
9189
+ readonly directory: string;
9190
+ readonly url: string;
9191
+ readonly created_at: string;
9102
9192
  }
9103
9193
 
9104
- interface PriceBookItemExportType {
9105
- readonly discriminator: 'price_book_item_export_type';
9106
- readonly price_book_key?: string;
9107
- readonly item_numbers?: string[];
9108
- readonly start_date?: string;
9109
- readonly end_date?: string;
9194
+ interface FtpFileForm {
9195
+ readonly url: string;
9196
+ readonly directory: string;
9197
+ readonly name?: string;
9110
9198
  }
9111
9199
 
9112
- interface ScheduledExport {
9200
+ interface FtpFolder {
9113
9201
  readonly id: string;
9114
- readonly user: io.flow.common.v0.models.UserReference;
9115
- readonly organization_q: string;
9116
- readonly hour: number;
9117
- readonly minute: number;
9118
- readonly timezone: string;
9119
- readonly types: io.flow.RESERVED_WORD_export.v0.unions.ExportType[];
9120
- readonly last_sent_at?: string;
9202
+ readonly path: string;
9203
+ readonly webhook: boolean;
9204
+ readonly description?: string;
9121
9205
  }
9122
9206
 
9123
- interface ScheduledExportForm {
9124
- readonly user_id: string;
9125
- readonly organization_q: string;
9126
- readonly hour: number;
9127
- readonly minute: number;
9128
- readonly timezone: string;
9129
- readonly types: io.flow.RESERVED_WORD_export.v0.unions.ExportType[];
9207
+ interface FtpFolderForm {
9208
+ readonly path: string;
9209
+ readonly webhook: boolean;
9210
+ readonly description?: string;
9130
9211
  }
9131
9212
 
9132
- interface SolidusProductExportType {
9133
- readonly discriminator: 'solidus_product_export_type';
9134
- readonly numbers?: string[];
9135
- readonly sort?: string;
9213
+ interface FtpOrganizationSettings {
9214
+ readonly enabled: boolean;
9215
+ readonly emails: string[];
9216
+ readonly account?: io.flow.ftp.v0.models.FtpAccount;
9136
9217
  }
9137
9218
 
9138
- interface SolidusVariantExportType {
9139
- readonly discriminator: 'solidus_variant_export_type';
9140
- readonly numbers?: string[];
9141
- readonly sort?: string;
9219
+ interface FtpOrganizationSettingsForm {
9220
+ readonly enabled: boolean;
9221
+ readonly emails: string[];
9142
9222
  }
9143
9223
 
9144
- interface UnharmonizedItemExportType {
9145
- readonly discriminator: 'unharmonized_item_export_type';
9146
- readonly sort?: string;
9224
+ interface FtpServer {
9225
+ readonly hostname: string;
9147
9226
  }
9148
- }
9149
9227
 
9150
- declare namespace io.flow.RESERVED_WORD_export.v0.unions {
9151
- type ExportDelivery = io.flow.RESERVED_WORD_export.v0.models.ExportDeliveryEmail;
9152
- type ExportType =
9153
- | io.flow.RESERVED_WORD_export.v0.models.AccountTransactionsExportType
9154
- | io.flow.RESERVED_WORD_export.v0.models.AccountOrdersExportType
9155
- | io.flow.RESERVED_WORD_export.v0.models.AnalyticsExportType
9156
- | io.flow.RESERVED_WORD_export.v0.models.CatalogItemExportType
9157
- | io.flow.RESERVED_WORD_export.v0.models.ExperienceExportType
9158
- | io.flow.RESERVED_WORD_export.v0.models.HarmonizationOverviewExportType
9159
- | io.flow.RESERVED_WORD_export.v0.models.HarmonizationHs6ExportType
9160
- | io.flow.RESERVED_WORD_export.v0.models.HarmonizationHs10ExportType
9161
- | io.flow.RESERVED_WORD_export.v0.models.UnharmonizedItemExportType
9162
- | io.flow.RESERVED_WORD_export.v0.models.HarmonizationLandedCostExportType
9163
- | io.flow.RESERVED_WORD_export.v0.models.OrderExportType
9164
- | io.flow.RESERVED_WORD_export.v0.models.PriceBookItemExportType
9165
- | io.flow.RESERVED_WORD_export.v0.models.SolidusProductExportType
9166
- | io.flow.RESERVED_WORD_export.v0.models.SolidusVariantExportType
9167
- | io.flow.RESERVED_WORD_export.v0.models.LocalizedItemPricesExportType;
9228
+ interface FtpUser {
9229
+ readonly username: string;
9230
+ readonly password?: string;
9231
+ }
9168
9232
  }
9169
9233
 
9170
- declare namespace io.flow.shopify.internal.v0.enums {
9171
- type FlowApp = 'console';
9172
- type ShopifyCheckInventoryErrorCode = 'inventory_out_of_stock';
9173
- type ShopifyGrantStatus = 'pass' | 'fail';
9174
- type ShopifyPromotionOfferAllocationMethod = 'each' | 'across';
9175
- type ShopifyPromotionOrderEntitlementComponent =
9176
- | 'subtotal'
9177
- | 'shipping'
9178
- | 'vat'
9179
- | 'duty';
9180
- type ShopifyPromotionStatus = 'active' | 'inactive';
9234
+ declare namespace io.flow.checkout.configuration.v0.enums {
9235
+ type CheckoutPromptBehavior = 'always' | 'incomplete';
9236
+ type CheckoutShippingMethodPromptBehavior = 'always' | 'multiple';
9237
+ type GoogleAnalyticsPlugin = 'ec';
9181
9238
  }
9182
9239
 
9183
- declare namespace io.flow.shopify.internal.v0.models {
9184
- interface CompletePriceRule {
9185
- readonly price_rule: io.flow.shopify.external.v0.models.PriceRule;
9186
- readonly discount_codes: io.flow.shopify.external.v0.models.PriceRuleDiscountCode[];
9240
+ declare namespace io.flow.checkout.configuration.v0.models {
9241
+ interface CheckoutAnalytics {
9242
+ readonly trackers: io.flow.checkout.configuration.v0.unions.Tracker[];
9243
+ readonly use_base_currency: boolean;
9187
9244
  }
9188
9245
 
9189
- interface InstallForm {
9190
- readonly token: string;
9246
+ interface CheckoutBehavior {
9247
+ readonly shipping_address: io.flow.checkout.configuration.v0.models.CheckoutBehaviorShippingAddress;
9248
+ readonly shipping_method: io.flow.checkout.configuration.v0.models.CheckoutBehaviorShippingMethod;
9249
+ readonly customer_info: io.flow.checkout.configuration.v0.models.CheckoutBehaviorCustomerInfo;
9191
9250
  }
9192
9251
 
9193
- interface OrderSubmissionForm {
9194
- readonly authorization?: io.flow.payment.v0.unions.AuthorizationForm;
9252
+ interface CheckoutBehaviorCustomerInfo {
9253
+ readonly email: io.flow.checkout.configuration.v0.models.CheckoutBehaviorCustomerInfoEmail;
9195
9254
  }
9196
9255
 
9197
- interface Shop {
9198
- readonly id: string;
9199
- readonly organization?: io.flow.common.v0.models.OrganizationReference;
9200
- readonly myshopify_domain: string;
9201
- readonly domain?: string;
9256
+ interface CheckoutBehaviorCustomerInfoEmail {
9257
+ readonly prompt: io.flow.checkout.configuration.v0.enums.CheckoutPromptBehavior;
9202
9258
  }
9203
9259
 
9204
- interface ShopForm {
9205
- readonly organization_id: string;
9260
+ interface CheckoutBehaviorShippingAddress {
9261
+ readonly prompt: io.flow.checkout.configuration.v0.enums.CheckoutPromptBehavior;
9206
9262
  }
9207
9263
 
9208
- interface ShopVersion {
9264
+ interface CheckoutBehaviorShippingMethod {
9265
+ readonly prompt: io.flow.checkout.configuration.v0.enums.CheckoutShippingMethodPromptBehavior;
9266
+ }
9267
+
9268
+ interface CheckoutConfiguration {
9209
9269
  readonly id: string;
9210
- readonly timestamp: string;
9211
- readonly type: io.flow.common.v0.enums.ChangeType;
9212
- readonly shop: io.flow.shopify.internal.v0.models.Shop;
9270
+ readonly behavior: io.flow.checkout.configuration.v0.models.CheckoutBehavior;
9271
+ readonly settings: io.flow.checkout.configuration.v0.models.CheckoutSettings;
9272
+ readonly analytics?: io.flow.checkout.configuration.v0.models.CheckoutAnalytics;
9273
+ readonly domain?: string;
9213
9274
  }
9214
9275
 
9215
- interface ShopifyCheckInventoryError {
9216
- readonly code: io.flow.shopify.internal.v0.enums.ShopifyCheckInventoryErrorCode;
9217
- readonly messages: string[];
9218
- readonly numbers?: string[];
9276
+ interface CheckoutConfigurationReference {
9277
+ readonly id: string;
9278
+ }
9279
+
9280
+ interface CheckoutSettings {
9281
+ readonly session_persistence_timeout?: io.flow.common.v0.models.Duration;
9282
+ readonly session_persistence_attribute_keys?: string[];
9219
9283
  }
9220
9284
 
9221
- interface ShopifyCodeForm {
9222
- readonly code: string;
9285
+ interface FacebookPixel {
9286
+ readonly discriminator: 'facebook_pixel';
9287
+ readonly name?: string;
9288
+ readonly tracker_id: string;
9223
9289
  }
9224
9290
 
9225
- interface ShopifyExperienceShortId {
9226
- readonly id: string;
9227
- readonly experience: io.flow.experience.v0.models.ExperienceReference;
9228
- readonly short_id: string;
9291
+ interface GoogleAnalytics {
9292
+ readonly discriminator: 'google_analytics';
9293
+ readonly name?: string;
9294
+ readonly tracker_id: string;
9295
+ readonly plugins: io.flow.checkout.configuration.v0.enums.GoogleAnalyticsPlugin[];
9229
9296
  }
9230
9297
 
9231
- interface ShopifyGiftCardBalance {
9232
- readonly gift_card_id: number;
9233
- readonly last_characters: string;
9234
- readonly amount: number;
9235
- readonly currency: string;
9298
+ interface GoogleGlobalSiteTag {
9299
+ readonly discriminator: 'google_global_site_tag';
9300
+ readonly name?: string;
9301
+ readonly tracker_id: string;
9236
9302
  }
9237
9303
 
9238
- interface ShopifyGiftCardBalanceForm {
9239
- readonly number: string;
9304
+ interface SnapchatPixel {
9305
+ readonly discriminator: 'snapchat_pixel';
9306
+ readonly name?: string;
9307
+ readonly tracker_id: string;
9240
9308
  }
9309
+ }
9241
9310
 
9242
- interface ShopifyGiftCardPaymentForm {
9243
- readonly code: string;
9244
- readonly customer_id?: number;
9245
- }
9311
+ declare namespace io.flow.checkout.configuration.v0.unions {
9312
+ type Tracker =
9313
+ | io.flow.checkout.configuration.v0.models.GoogleAnalytics
9314
+ | io.flow.checkout.configuration.v0.models.GoogleGlobalSiteTag
9315
+ | io.flow.checkout.configuration.v0.models.FacebookPixel
9316
+ | io.flow.checkout.configuration.v0.models.SnapchatPixel;
9317
+ }
9246
9318
 
9247
- interface ShopifyGiftCardRedemption {
9248
- readonly adjustment_id: number;
9249
- readonly gift_card_id: number;
9250
- readonly last_characters: string;
9251
- readonly amount: number;
9252
- readonly currency: string;
9319
+ declare namespace io.flow.flexe.v0.enums {
9320
+ type FlexeAttachmentType =
9321
+ | 'shipping_label'
9322
+ | 'packing_slip'
9323
+ | 'packing_slip_letter';
9324
+ type FlexeNotification = 'receipt' | 'shipment';
9325
+ type FlexeShipmentType =
9326
+ | 'fulfillment_order'
9327
+ | 'retail_fulfillment_order'
9328
+ | 'carton_pick_delivery'
9329
+ | 'delivery'
9330
+ | 'container_delivery';
9331
+ type FlexeStatus = 'in_transit' | 'completed';
9332
+ }
9333
+
9334
+ declare namespace io.flow.flexe.v0.models {
9335
+ interface BillOfLading {
9336
+ readonly type: string;
9337
+ readonly gs1us?: io.flow.flexe.v0.models.Gs1Us;
9253
9338
  }
9254
9339
 
9255
- interface ShopifyGiftCardRedemptionForm {
9256
- readonly number: string;
9257
- readonly amount: number;
9258
- readonly currency: string;
9340
+ interface BillTo {
9341
+ readonly name: string;
9342
+ readonly address_1: string;
9343
+ readonly locality: string;
9344
+ readonly region: string;
9345
+ readonly postal_code: string;
9346
+ readonly country: string;
9347
+ readonly address_2?: string;
9348
+ readonly address_3?: string;
9259
9349
  }
9260
9350
 
9261
- interface ShopifyGiftCardReversal {
9262
- readonly adjustment_id: number;
9263
- readonly gift_card_id: number;
9264
- readonly last_characters: string;
9265
- readonly amount: number;
9266
- readonly currency: string;
9351
+ interface CartonPickDeliveryDetails {
9352
+ readonly shipment_uuid?: string;
9353
+ readonly carrier?: string;
9354
+ readonly carrier_id?: string;
9267
9355
  }
9268
9356
 
9269
- interface ShopifyGiftCardReversalForm {
9270
- readonly number: string;
9271
- readonly amount: number;
9272
- readonly currency: string;
9357
+ interface ContainerDeliveryDetails {
9358
+ readonly purchase_order: string;
9359
+ readonly container_number?: string;
9360
+ readonly seal_number?: string;
9361
+ readonly vendor?: string;
9362
+ readonly expected_inventory: io.flow.flexe.v0.models.InventoryDetails[];
9363
+ readonly received_inventory: io.flow.flexe.v0.models.InventoryDetails[];
9364
+ readonly damaged_inventory: io.flow.flexe.v0.models.InventoryDetails[];
9365
+ readonly quantities_by_inventory: Record<
9366
+ string,
9367
+ io.flow.flexe.v0.models.QuantityByInventory
9368
+ >;
9273
9369
  }
9274
9370
 
9275
- interface ShopifyGrantsCheck {
9276
- readonly dummy: string;
9371
+ interface DeliveryDetails {
9372
+ readonly shipment_uuid?: string;
9373
+ readonly trailer_number?: string;
9374
+ readonly pallets: io.flow.flexe.v0.models.Pallet[];
9375
+ readonly quantities_by_inventory: Record<
9376
+ string,
9377
+ io.flow.flexe.v0.models.QuantityByInventory
9378
+ >;
9277
9379
  }
9278
9380
 
9279
- interface ShopifyOrderAuthorization {
9280
- readonly result: io.flow.payment.v0.models.AuthorizationResult;
9281
- readonly detail?: io.flow.shopify.internal.v0.models.ShopifyOrderDetail;
9282
- readonly redirect?: string;
9381
+ interface Error {
9382
+ readonly url: string;
9383
+ readonly client_request_id: string;
9384
+ readonly generated_at: string;
9385
+ readonly error: string;
9283
9386
  }
9284
9387
 
9285
- interface ShopifyOrderContent {
9286
- readonly lines: io.flow.shopify.internal.v0.models.ShopifyOrderLineContent[];
9287
- readonly discounts: io.flow.shopify.internal.v0.models.ShopifyOrderDiscountContent[];
9388
+ interface FlexeAttachment {
9389
+ readonly type: io.flow.flexe.v0.enums.FlexeAttachmentType;
9390
+ readonly display_name: string;
9391
+ readonly url: string;
9288
9392
  }
9289
9393
 
9290
- interface ShopifyOrderDetail {
9291
- readonly organization: io.flow.common.v0.models.OrganizationReference;
9292
- readonly number: string;
9293
- readonly order: io.flow.experience.v0.models.Order;
9294
- readonly payments: io.flow.shopify.internal.v0.models.ShopifyPaymentSummary[];
9295
- readonly contents: io.flow.shopify.internal.v0.models.ShopifyOrderContent;
9394
+ interface FlexeEcommerceFulfillment {
9395
+ readonly url: string;
9396
+ readonly client_request_id: string;
9397
+ readonly generated_at: string;
9398
+ readonly data: io.flow.flexe.v0.models.FlexeEcommerceFulfillmentData;
9399
+ readonly errors: io.flow.flexe.v0.models.FlexeEcommerceFulfillmentErrors[];
9296
9400
  }
9297
9401
 
9298
- interface ShopifyOrderDiscountContent {
9299
- readonly description: string;
9300
- readonly code?: string;
9402
+ interface FlexeEcommerceFulfillmentData {
9403
+ readonly import_id: string;
9404
+ readonly succeeded_uuids: string[];
9405
+ readonly failed_uuids: string[];
9406
+ readonly errors: string[];
9301
9407
  }
9302
9408
 
9303
- interface ShopifyOrderInventoryCheck {
9304
- readonly item_number: string;
9305
- readonly quantity: number;
9409
+ interface FlexeEcommerceFulfillmentErrors {
9410
+ readonly status: string;
9411
+ readonly title: string;
9412
+ readonly detail: string;
9413
+ readonly source?: string;
9306
9414
  }
9307
9415
 
9308
- interface ShopifyOrderLineAttribute {
9309
- readonly key: string;
9310
- readonly name: string;
9311
- readonly value: string;
9416
+ interface FlexeEcommerceFulfillmentForm {
9417
+ readonly reservation_id: number;
9418
+ readonly client_request_id: string;
9419
+ readonly request: io.flow.flexe.v0.models.Orders;
9312
9420
  }
9313
9421
 
9314
- interface ShopifyOrderLineContent {
9315
- readonly item_number: string;
9316
- readonly quantity: number;
9317
- readonly price: io.flow.common.v0.models.PriceWithBase;
9318
- readonly total: io.flow.common.v0.models.PriceWithBase;
9319
- readonly name: string;
9320
- readonly image_url: string;
9321
- readonly variant_url: string;
9322
- readonly attributes: io.flow.shopify.internal.v0.models.ShopifyOrderLineAttribute[];
9422
+ interface FlexeInventoryData {
9423
+ readonly sku: string;
9424
+ readonly quantity: string;
9425
+ readonly unit: string;
9323
9426
  }
9324
9427
 
9325
- interface ShopifyPaymentSummary {
9326
- readonly description: string;
9327
- readonly address?: io.flow.common.v0.models.Address;
9328
- readonly contact?: io.flow.common.v0.models.Contact;
9428
+ interface FlexeRetailAttachment {
9429
+ readonly display_name: string;
9430
+ readonly url: string;
9329
9431
  }
9330
9432
 
9331
- interface ShopifyPromoForm {
9332
- readonly name: string;
9333
- readonly starts_at: string;
9334
- readonly ends_at?: string;
9335
- readonly status: io.flow.shopify.internal.v0.enums.ShopifyPromotionStatus;
9336
- readonly rule: io.flow.shopify.internal.v0.models.ShopifyPromotionRule;
9337
- readonly stackable_limit?: number;
9433
+ interface FlexeRetailFulfillment {
9434
+ readonly url: string;
9435
+ readonly client_request_id: string;
9436
+ readonly generated_at: string;
9437
+ readonly data: io.flow.flexe.v0.models.FlexeRetailFulfillmentData;
9438
+ readonly errors?: io.flow.flexe.v0.models.FlexeRetailFulfillmentErrors[];
9338
9439
  }
9339
9440
 
9340
- interface ShopifyPromotion {
9441
+ interface FlexeRetailFulfillmentData {
9341
9442
  readonly id: string;
9342
- readonly name: string;
9343
- readonly starts_at: string;
9344
- readonly ends_at?: string;
9345
- readonly status: io.flow.shopify.internal.v0.enums.ShopifyPromotionStatus;
9346
- readonly rule: io.flow.shopify.internal.v0.models.ShopifyPromotionRule;
9347
- readonly stackable_limit?: number;
9443
+ readonly purchase_order_uuid: string;
9444
+ readonly status: string;
9348
9445
  }
9349
9446
 
9350
- interface ShopifyPromotionAttributeValue {
9351
- readonly name: string;
9352
- readonly discount: io.flow.common.v0.models.Money;
9447
+ interface FlexeRetailFulfillmentErrors {
9448
+ readonly type: string;
9449
+ readonly message: string;
9353
9450
  }
9354
9451
 
9355
- interface ShopifyPromotionFixedAmount {
9356
- readonly discriminator: 'shopify_promotion_fixed_amount';
9357
- readonly amount: number;
9358
- readonly currency: string;
9452
+ interface FlexeRetailFulfillmentForm {
9453
+ readonly reservation_id: number;
9454
+ readonly client_request_id?: string;
9455
+ readonly request: io.flow.flexe.v0.models.RetailOrder;
9359
9456
  }
9360
9457
 
9361
- interface ShopifyPromotionForm {
9362
- readonly code: string;
9458
+ interface FulfillmentOrderDetails {
9459
+ readonly shipment_uuid: string;
9460
+ readonly carrier?: string;
9461
+ readonly carrier_id?: string;
9363
9462
  }
9364
9463
 
9365
- interface ShopifyPromotionItemEntitlement {
9366
- readonly discriminator: 'shopify_promotion_item_entitlement';
9367
- readonly q: string;
9368
- readonly allocation_method: io.flow.shopify.internal.v0.enums.ShopifyPromotionOfferAllocationMethod;
9464
+ interface Gs1Us {
9465
+ readonly number: string;
9466
+ readonly ship_to?: io.flow.flexe.v0.models.Gs1UsShipTo;
9467
+ readonly bill_to?: io.flow.flexe.v0.models.BillTo;
9369
9468
  }
9370
9469
 
9371
- interface ShopifyPromotionItemPrerequisite {
9372
- readonly discriminator: 'shopify_promotion_item_prerequisite';
9373
- readonly q: string;
9374
- readonly at_least?: number;
9375
- readonly at_most?: number;
9376
- readonly exclude_from_offer?: boolean;
9470
+ interface Gs1UsShipTo {
9471
+ readonly cid_number?: string;
9472
+ readonly location_number?: string;
9473
+ readonly free_on_board?: boolean;
9377
9474
  }
9378
9475
 
9379
- interface ShopifyPromotionMaxAmount {
9380
- readonly discriminator: 'shopify_promotion_max_amount';
9381
- readonly amount: number;
9382
- readonly currency: string;
9476
+ interface Inventory {
9477
+ readonly url: string;
9478
+ readonly client_request_id: string;
9479
+ readonly generated_at: string;
9480
+ readonly data: Record<string, io.flow.flexe.v0.models.InventoryDetails>;
9383
9481
  }
9384
9482
 
9385
- interface ShopifyPromotionMaxLimit {
9386
- readonly discriminator: 'shopify_promotion_max_limit';
9387
- readonly limit: number;
9483
+ interface InventoryCount {
9484
+ readonly amount: number;
9485
+ readonly unit: string;
9388
9486
  }
9389
9487
 
9390
- interface ShopifyPromotionOffer {
9391
- readonly discount: io.flow.shopify.internal.v0.unions.ShopifyPromotionOfferDiscount;
9392
- readonly entitlement: io.flow.shopify.internal.v0.unions.ShopifyPromotionOfferEntitlement;
9393
- readonly max?: io.flow.shopify.internal.v0.unions.ShopifyPromotionOfferMax[];
9488
+ interface InventoryData {
9489
+ readonly pallet: io.flow.flexe.v0.models.InventoryCount;
9490
+ readonly carton?: io.flow.flexe.v0.models.InventoryCount;
9491
+ readonly each?: io.flow.flexe.v0.models.InventoryCount;
9394
9492
  }
9395
9493
 
9396
- interface ShopifyPromotionOrderEntitlement {
9397
- readonly discriminator: 'shopify_promotion_order_entitlement';
9398
- readonly components: io.flow.shopify.internal.v0.enums.ShopifyPromotionOrderEntitlementComponent[];
9399
- readonly allocation_method: io.flow.shopify.internal.v0.enums.ShopifyPromotionOfferAllocationMethod;
9494
+ interface InventoryDetails {
9495
+ readonly key: Record<string, io.flow.flexe.v0.models.Sku>;
9400
9496
  }
9401
9497
 
9402
- interface ShopifyPromotionOrderPrerequisite {
9403
- readonly discriminator: 'shopify_promotion_order_prerequisite';
9404
- readonly q: string;
9498
+ interface LadingQuantity {
9499
+ readonly num_pallets: number;
9405
9500
  }
9406
9501
 
9407
- interface ShopifyPromotionPercent {
9408
- readonly discriminator: 'shopify_promotion_percent';
9409
- readonly percent: number;
9502
+ interface Order {
9503
+ readonly shipment_uuid: string;
9504
+ readonly purchase_order: string;
9505
+ readonly carrier: string;
9506
+ readonly service_type: string;
9507
+ readonly carrier_assigned_id: string;
9508
+ readonly name: string;
9509
+ readonly address_1: string;
9510
+ readonly address_2?: string;
9511
+ readonly address_3?: string;
9512
+ readonly city: string;
9513
+ readonly state: string;
9514
+ readonly postal_code: string;
9515
+ readonly phone?: string;
9516
+ readonly instructions?: string;
9517
+ readonly inventory_data: io.flow.flexe.v0.models.FlexeInventoryData[];
9518
+ readonly attachments: io.flow.flexe.v0.models.FlexeAttachment[];
9410
9519
  }
9411
9520
 
9412
- interface ShopifyPromotionRule {
9413
- readonly prerequisites: io.flow.shopify.internal.v0.unions.ShopifyPromotionPrerequisite[];
9414
- readonly offers: io.flow.shopify.internal.v0.models.ShopifyPromotionOffer[];
9521
+ interface Orders {
9522
+ readonly orders: io.flow.flexe.v0.models.Order[];
9415
9523
  }
9416
9524
 
9417
- interface ShopifyWebhook {
9418
- readonly id: string;
9419
- readonly shop_id: string;
9420
- readonly address: string;
9421
- readonly topic: io.flow.shopify.external.v0.enums.Topic;
9525
+ interface Pallet {
9526
+ readonly pallet_id: string;
9527
+ readonly sku: string;
9528
+ readonly quantity: number;
9529
+ readonly packaging: string;
9422
9530
  }
9423
9531
 
9424
- interface ShopifyWebhookEvent {
9425
- readonly dummy: string;
9532
+ interface PurchaseOrder {
9533
+ readonly retail_fulfillment_order_id: string;
9534
+ readonly bill_of_lading_number: string;
9535
+ readonly purchase_order_uuid: string;
9536
+ readonly pickup_window_start: string;
9537
+ readonly pickup_window_end: string;
9538
+ readonly tags: string[];
9426
9539
  }
9427
9540
 
9428
- interface ShopifyWebhookForm {
9429
- readonly myshopify_domain: string;
9430
- readonly address: string;
9431
- readonly topic: io.flow.shopify.external.v0.enums.Topic;
9541
+ interface QuantityByInventory {
9542
+ readonly received: io.flow.flexe.v0.models.InventoryData;
9543
+ readonly expected?: io.flow.flexe.v0.models.InventoryData;
9544
+ readonly damaged?: io.flow.flexe.v0.models.InventoryData;
9432
9545
  }
9433
- }
9434
9546
 
9435
- declare namespace io.flow.shopify.internal.v0.unions {
9436
- type ShopifyPromotionOfferDiscount =
9437
- | io.flow.shopify.internal.v0.models.ShopifyPromotionFixedAmount
9438
- | io.flow.shopify.internal.v0.models.ShopifyPromotionPercent;
9439
- type ShopifyPromotionOfferEntitlement =
9440
- | io.flow.shopify.internal.v0.models.ShopifyPromotionItemEntitlement
9441
- | io.flow.shopify.internal.v0.models.ShopifyPromotionOrderEntitlement;
9442
- type ShopifyPromotionOfferMax =
9443
- | io.flow.shopify.internal.v0.models.ShopifyPromotionMaxLimit
9444
- | io.flow.shopify.internal.v0.models.ShopifyPromotionMaxAmount;
9445
- type ShopifyPromotionPrerequisite =
9446
- | io.flow.shopify.internal.v0.models.ShopifyPromotionItemPrerequisite
9447
- | io.flow.shopify.internal.v0.models.ShopifyPromotionOrderPrerequisite;
9448
- }
9547
+ interface ReceiptNotification {
9548
+ readonly shipment_id: string;
9549
+ readonly shipment_type: io.flow.flexe.v0.enums.FlexeShipmentType;
9550
+ readonly reservation_id: string;
9551
+ readonly status: io.flow.flexe.v0.enums.FlexeStatus;
9552
+ readonly delivery_details?: io.flow.flexe.v0.models.DeliveryDetails;
9553
+ readonly container_delivery_details?: io.flow.flexe.v0.models.ContainerDeliveryDetails;
9554
+ }
9449
9555
 
9450
- declare namespace io.flow.ftp.v0.enums {
9451
- type FtpFileSource = 'flow' | 'organization';
9452
- }
9556
+ interface RetailFulfillmentOrderDetails {
9557
+ readonly master_bill_of_lading_number: string;
9558
+ readonly scac: string;
9559
+ readonly pro_number: string;
9560
+ readonly purchase_orders: io.flow.flexe.v0.models.PurchaseOrder[];
9561
+ readonly lading_quantity: io.flow.flexe.v0.models.LadingQuantity;
9562
+ }
9453
9563
 
9454
- declare namespace io.flow.ftp.v0.models {
9455
- interface FtpAccount {
9456
- readonly server: io.flow.ftp.v0.models.FtpServer;
9457
- readonly user: io.flow.ftp.v0.models.FtpUser;
9564
+ interface RetailInventoryData {
9565
+ readonly sku: string;
9566
+ readonly quantity: number;
9567
+ readonly unit: string;
9568
+ readonly attachments?: io.flow.flexe.v0.models.FlexeRetailAttachment[];
9458
9569
  }
9459
9570
 
9460
- interface FtpFile {
9461
- readonly id: string;
9462
- readonly source: io.flow.ftp.v0.enums.FtpFileSource;
9463
- readonly name: string;
9464
- readonly directory: string;
9465
- readonly url: string;
9466
- readonly created_at: string;
9571
+ interface RetailOrder {
9572
+ readonly order: io.flow.flexe.v0.models.RetailOrderData;
9467
9573
  }
9468
9574
 
9469
- interface FtpFileForm {
9470
- readonly url: string;
9471
- readonly directory: string;
9472
- readonly name?: string;
9575
+ interface RetailOrderData {
9576
+ readonly purchase_order_uuid: string;
9577
+ readonly bill_of_lading: io.flow.flexe.v0.models.BillOfLading;
9578
+ readonly inventory_data: io.flow.flexe.v0.models.RetailInventoryData[];
9579
+ readonly ship_within: io.flow.flexe.v0.models.ShipWithin;
9580
+ readonly ship_to: io.flow.flexe.v0.models.ShipTo;
9581
+ readonly build_by?: string;
9582
+ readonly instrunctions?: string;
9583
+ readonly routing_details_id?: string;
9584
+ readonly destination_type?: string;
9473
9585
  }
9474
9586
 
9475
- interface FtpFolder {
9476
- readonly id: string;
9477
- readonly path: string;
9478
- readonly webhook: boolean;
9479
- readonly description?: string;
9587
+ interface ShipTo {
9588
+ readonly name: string;
9589
+ readonly address_1: string;
9590
+ readonly locality: string;
9591
+ readonly region: string;
9592
+ readonly postal_code: string;
9593
+ readonly country: string;
9594
+ readonly address_2?: string;
9595
+ readonly address_3?: string;
9480
9596
  }
9481
9597
 
9482
- interface FtpFolderForm {
9483
- readonly path: string;
9484
- readonly webhook: boolean;
9485
- readonly description?: string;
9598
+ interface ShipWithin {
9599
+ readonly start: string;
9600
+ readonly end: string;
9486
9601
  }
9487
9602
 
9488
- interface FtpOrganizationSettings {
9489
- readonly enabled: boolean;
9490
- readonly emails: string[];
9491
- readonly account?: io.flow.ftp.v0.models.FtpAccount;
9603
+ interface ShipmentDeliveryDetails {
9604
+ readonly shipment_uuid?: string;
9492
9605
  }
9493
9606
 
9494
- interface FtpOrganizationSettingsForm {
9495
- readonly enabled: boolean;
9496
- readonly emails: string[];
9607
+ interface ShipmentNotification {
9608
+ readonly shipment_id: string;
9609
+ readonly shipment_type: io.flow.flexe.v0.enums.FlexeShipmentType;
9610
+ readonly reservation_id: string;
9611
+ readonly status: io.flow.flexe.v0.enums.FlexeStatus;
9612
+ readonly fulfillment_order_details?: io.flow.flexe.v0.models.FulfillmentOrderDetails;
9613
+ readonly retail_fulfillment_order_details?: io.flow.flexe.v0.models.RetailFulfillmentOrderDetails;
9614
+ readonly delivery_details?: io.flow.flexe.v0.models.ShipmentDeliveryDetails;
9615
+ readonly carton_pick_delivery_details?: io.flow.flexe.v0.models.CartonPickDeliveryDetails;
9497
9616
  }
9498
9617
 
9499
- interface FtpServer {
9500
- readonly hostname: string;
9618
+ interface Sku {
9619
+ readonly sku: string;
9620
+ readonly description: string;
9621
+ readonly summary: Record<string, io.flow.flexe.v0.models.SkuSummary>;
9501
9622
  }
9502
9623
 
9503
- interface FtpUser {
9504
- readonly username: string;
9505
- readonly password?: string;
9624
+ interface SkuSummary {
9625
+ readonly key: string;
9626
+ readonly quantity: number;
9627
+ readonly unit: string;
9506
9628
  }
9507
9629
  }
9508
9630
 
@@ -11398,6 +11520,12 @@ declare namespace io.flow.adyen.v0.models {
11398
11520
  readonly 'threeds2.threeDS2ResponseData.messageVersion': string;
11399
11521
  }
11400
11522
 
11523
+ interface ChargebackNotificationAdditionalData {
11524
+ readonly chargebackReasonCode: string;
11525
+ readonly modificationMerchantReferences: string;
11526
+ readonly chargebackSchemeCode: string;
11527
+ }
11528
+
11401
11529
  interface Error {
11402
11530
  readonly status: number;
11403
11531
  readonly errorCode: string;
@@ -11527,6 +11655,12 @@ declare namespace io.flow.adyen.v0.models {
11527
11655
  readonly MD?: string;
11528
11656
  }
11529
11657
 
11658
+ interface RequestForInformationAdditionalData {
11659
+ readonly rfiSchemeCode: string;
11660
+ readonly modificationMerchantReferences: string;
11661
+ readonly rfiReasonCode: string;
11662
+ }
11663
+
11530
11664
  interface Scheme {
11531
11665
  readonly type: 'scheme';
11532
11666
  readonly expiryMonth: string;
@@ -12671,6 +12805,7 @@ declare namespace io.flow.internal.v0.enums {
12671
12805
  type DutyCompoundExpressionType = 'sum' | 'max' | 'min';
12672
12806
  type DutyRateUnitOfMeasure = 'kg' | 'sq m' | 'item' | 'pair';
12673
12807
  type DutySimpleExpressionType = 'free' | 'percent' | 'per_uom' | 'flat';
12808
+ type EmptyAttribute = 'irrelevant';
12674
12809
  type EventType =
12675
12810
  | 'adyen_authorization_deleted'
12676
12811
  | 'adyen_authorization_upserted'
@@ -12838,7 +12973,7 @@ declare namespace io.flow.internal.v0.enums {
12838
12973
  type ExperienceImportType = 'experience_with_settings';
12839
12974
  type ExperienceOrderAction = 'submit' | 'refund_gift_cards';
12840
12975
  type ExperienceOrderActionTrigger = 'zero_balance' | 'unsubmitted_order';
12841
- type ExperimentDiscriminatorValue = 'experience' | 'feature';
12976
+ type ExperimentDiscriminatorKey = 'experience' | 'feature';
12842
12977
  type FeatureScope = 'global' | 'organization';
12843
12978
  type FeatureStatus = 'draft' | 'active' | 'archived';
12844
12979
  type FeatureType = 'boolean' | 'decimal' | 'string';
@@ -12954,6 +13089,7 @@ declare namespace io.flow.internal.v0.enums {
12954
13089
  | 'flow_sandbox'
12955
13090
  | 'fiserv'
12956
13091
  | 'crypto';
13092
+ type ProductClassificationAction = 'ACCEPT' | 'MANUAL';
12957
13093
  type PromptAction = 'prompt_displayed' | 'consent_granted' | 'consent_denied';
12958
13094
  type PromptCheckoutDisplayPosition = 'email' | 'submission';
12959
13095
  type PromptOptions = 'notice_only' | 'require_consent' | 'consent_by_default';
@@ -12991,6 +13127,7 @@ declare namespace io.flow.internal.v0.enums {
12991
13127
  type TimeseriesType = 'daily' | 'weekly' | 'monthly' | 'yearly';
12992
13128
  type TrackingIntegrationType = 'api' | 'bulk' | 'aftership';
12993
13129
  type TransferMethod = 'ach';
13130
+ type UnclassifiedProductStatus = 'ignored' | 'escalated';
12994
13131
  }
12995
13132
 
12996
13133
  declare namespace io.flow.internal.v0.models {
@@ -13378,6 +13515,11 @@ declare namespace io.flow.internal.v0.models {
13378
13515
  readonly number: string;
13379
13516
  }
13380
13517
 
13518
+ interface AllowedLabels {
13519
+ readonly name: string;
13520
+ readonly labels: Record<string, string[]>;
13521
+ }
13522
+
13381
13523
  interface ApmContent {
13382
13524
  readonly processor_description: io.flow.internal.v0.unions.ContentItem;
13383
13525
  }
@@ -13398,6 +13540,11 @@ declare namespace io.flow.internal.v0.models {
13398
13540
  readonly transactionId: string;
13399
13541
  }
13400
13542
 
13543
+ interface AttributeLabel {
13544
+ readonly value: string;
13545
+ readonly estimated: boolean;
13546
+ }
13547
+
13401
13548
  interface AuthenticationForm {
13402
13549
  readonly password: string;
13403
13550
  }
@@ -13916,7 +14063,7 @@ declare namespace io.flow.internal.v0.models {
13916
14063
  readonly optins: io.flow.optin.internal.v0.models.OptinPrompt[];
13917
14064
  readonly addresses: io.flow.experience.v0.models.AddressConfiguration[];
13918
14065
  readonly features: io.flow.feature.v0.models.FeatureValueResult;
13919
- readonly configuration: unknown /*io.flow.checkout.configuration.v0.models.checkout_configuration*/;
14066
+ readonly configuration: io.flow.checkout.configuration.v0.models.CheckoutConfiguration;
13920
14067
  readonly cart?: io.flow.shopify.v0.models.ShopifyCart;
13921
14068
  readonly customer?: io.flow.customer.v0.models.Customer;
13922
14069
  readonly address_book?: io.flow.customer.v0.models.CustomerAddressBook;
@@ -13964,7 +14111,7 @@ declare namespace io.flow.internal.v0.models {
13964
14111
  readonly provinces: io.flow.reference.v0.models.Province[];
13965
14112
  readonly checkout_items: io.flow.experience.v0.models.CheckoutItemContent[];
13966
14113
  readonly metadata?: io.flow.internal.v0.models.CheckoutBundleMetadata;
13967
- readonly configuration?: unknown /*io.flow.checkout.configuration.v0.models.checkout_configuration*/;
14114
+ readonly configuration?: io.flow.checkout.configuration.v0.models.CheckoutConfiguration;
13968
14115
  readonly address_configurations?: io.flow.experience.v0.models.AddressConfiguration[];
13969
14116
  readonly customer?: io.flow.customer.v0.models.Customer;
13970
14117
  readonly address_book?: io.flow.customer.v0.models.CustomerAddressBook;
@@ -13989,7 +14136,7 @@ declare namespace io.flow.internal.v0.models {
13989
14136
  readonly event_id: string;
13990
14137
  readonly timestamp: string;
13991
14138
  readonly organization: string;
13992
- readonly checkout_configuration: unknown /*io.flow.checkout.configuration.v0.models.checkout_configuration*/;
14139
+ readonly checkout_configuration: io.flow.checkout.configuration.v0.models.CheckoutConfiguration;
13993
14140
  }
13994
14141
 
13995
14142
  interface CheckoutConfigurationReference {
@@ -14001,7 +14148,7 @@ declare namespace io.flow.internal.v0.models {
14001
14148
  readonly event_id: string;
14002
14149
  readonly timestamp: string;
14003
14150
  readonly organization: string;
14004
- readonly checkout_configuration: unknown /*io.flow.checkout.configuration.v0.models.checkout_configuration*/;
14151
+ readonly checkout_configuration: io.flow.checkout.configuration.v0.models.CheckoutConfiguration;
14005
14152
  }
14006
14153
 
14007
14154
  interface CheckoutContent {
@@ -14660,9 +14807,24 @@ declare namespace io.flow.internal.v0.models {
14660
14807
  }
14661
14808
 
14662
14809
  interface ExperimentFormDefault {
14663
- readonly discriminator: io.flow.internal.v0.enums.ExperimentDiscriminatorValue;
14664
- readonly values: io.flow.internal.v0.models.ExperimentVariantSummary[];
14665
- readonly variants?: io.flow.internal.v0.models.ExperimentVariantFormDefault[];
14810
+ readonly discriminator: io.flow.internal.v0.models.ExperimentFormDefaultDiscriminator;
14811
+ readonly variants?: io.flow.internal.v0.models.ExperimentFormDefaultVariant[];
14812
+ }
14813
+
14814
+ interface ExperimentFormDefaultDiscriminator {
14815
+ readonly key: io.flow.internal.v0.enums.ExperimentDiscriminatorKey;
14816
+ readonly values: io.flow.internal.v0.models.ExperimentFormDefaultDiscriminatorValue[];
14817
+ }
14818
+
14819
+ interface ExperimentFormDefaultDiscriminatorValue {
14820
+ readonly key: string;
14821
+ readonly name: string;
14822
+ }
14823
+
14824
+ interface ExperimentFormDefaultVariant {
14825
+ readonly key: string;
14826
+ readonly name: string;
14827
+ readonly traffic_percentage?: number;
14666
14828
  }
14667
14829
 
14668
14830
  interface ExperimentResults {
@@ -14706,12 +14868,6 @@ declare namespace io.flow.internal.v0.models {
14706
14868
  readonly experiment: io.flow.experiment.internal.v0.models.Experiment;
14707
14869
  }
14708
14870
 
14709
- interface ExperimentVariantFormDefault {
14710
- readonly key: string;
14711
- readonly name: string;
14712
- readonly traffic_percentage: number;
14713
- }
14714
-
14715
14871
  interface ExperimentVariantSummary {
14716
14872
  readonly key: string;
14717
14873
  readonly name?: string;
@@ -15669,6 +15825,18 @@ declare namespace io.flow.internal.v0.models {
15669
15825
  readonly value: string;
15670
15826
  }
15671
15827
 
15828
+ interface LabelAliases {
15829
+ readonly name: string;
15830
+ readonly aliases: string[];
15831
+ }
15832
+
15833
+ interface LabelAssociation {
15834
+ readonly items: Record<string, string[]>;
15835
+ readonly genders: Record<string, string[]>;
15836
+ readonly materials: Record<string, string[]>;
15837
+ readonly constructions: Record<string, string[]>;
15838
+ }
15839
+
15672
15840
  interface LabelSummary {
15673
15841
  readonly commercial_invoice?: string;
15674
15842
  readonly pdf?: string;
@@ -15679,6 +15847,14 @@ declare namespace io.flow.internal.v0.models {
15679
15847
  readonly invoice?: io.flow.label.v0.models.ShippingLabelDocument;
15680
15848
  }
15681
15849
 
15850
+ interface LabelTaxonomy {
15851
+ readonly item_type: string;
15852
+ readonly aliases: string[];
15853
+ readonly construction: io.flow.internal.v0.unions.ClassificationLabelAttribute;
15854
+ readonly gender: io.flow.internal.v0.unions.ClassificationLabelAttribute;
15855
+ readonly material: io.flow.internal.v0.unions.ClassificationLabelAttribute;
15856
+ }
15857
+
15682
15858
  interface LabeledContent {
15683
15859
  readonly label: io.flow.internal.v0.models.Label;
15684
15860
  readonly contents: io.flow.internal.v0.unions.ContentItem[];
@@ -17020,6 +17196,11 @@ declare namespace io.flow.internal.v0.models {
17020
17196
  readonly withholdings: io.flow.internal.v0.models.Components;
17021
17197
  readonly parent_transaction_id?: string;
17022
17198
  readonly order?: io.flow.internal.v0.models.BillingOrderSummary;
17199
+ readonly spot_rate: number;
17200
+ readonly flow_rate: number;
17201
+ readonly organization_rate: number;
17202
+ readonly flow_margin: number;
17203
+ readonly organization_margin: number;
17023
17204
  }
17024
17205
 
17025
17206
  interface ProcessingTransactionDeleted {
@@ -17038,6 +17219,27 @@ declare namespace io.flow.internal.v0.models {
17038
17219
  readonly processing_transaction: io.flow.billing.internal.v0.models.ProcessingTransaction;
17039
17220
  }
17040
17221
 
17222
+ interface ProductClassification {
17223
+ readonly organization_id: string;
17224
+ readonly product_id: string;
17225
+ readonly description: string;
17226
+ readonly items: io.flow.internal.v0.models.ClassificationItem[];
17227
+ readonly images: string[];
17228
+ readonly categories: string[];
17229
+ readonly attributes: Record<string, string>;
17230
+ readonly labels: io.flow.internal.v0.models.ProductLabels;
17231
+ readonly current_customs_description?: string;
17232
+ readonly customs_description?: string;
17233
+ readonly hs6_code?: string;
17234
+ readonly hs6_description?: string;
17235
+ readonly next_id?: io.flow.internal.v0.models.ClassificationProductId;
17236
+ }
17237
+
17238
+ interface ProductClassificationForm {
17239
+ readonly product_harmonization: io.flow.internal.v0.models.ProductHarmonization;
17240
+ readonly action: io.flow.internal.v0.enums.ProductClassificationAction;
17241
+ }
17242
+
17041
17243
  interface ProductClassificationJudgementForm {
17042
17244
  readonly organization_id: string;
17043
17245
  readonly product_id: string;
@@ -17051,6 +17253,24 @@ declare namespace io.flow.internal.v0.models {
17051
17253
  readonly next_product?: io.flow.internal.v0.models.ClassificationProductId;
17052
17254
  }
17053
17255
 
17256
+ interface ProductHarmonization {
17257
+ readonly product_labels: io.flow.internal.v0.models.ProductLabels;
17258
+ readonly customs_description: string;
17259
+ readonly hs6_code: string;
17260
+ readonly model_version: string;
17261
+ }
17262
+
17263
+ interface ProductHarmonizationForm {
17264
+ readonly product_labels: io.flow.internal.v0.models.ProductLabels;
17265
+ }
17266
+
17267
+ interface ProductLabels {
17268
+ readonly item_type: string;
17269
+ readonly gender?: io.flow.internal.v0.models.AttributeLabel;
17270
+ readonly material?: io.flow.internal.v0.models.AttributeLabel;
17271
+ readonly construction?: io.flow.internal.v0.models.AttributeLabel;
17272
+ }
17273
+
17054
17274
  interface QuoteRequest {
17055
17275
  readonly id: string;
17056
17276
  readonly request_type: io.flow.internal.v0.enums.QuoteRequestType;
@@ -17895,6 +18115,11 @@ declare namespace io.flow.internal.v0.models {
17895
18115
  readonly period: io.flow.common.v0.models.DatetimeRange;
17896
18116
  }
17897
18117
 
18118
+ interface SupportedLabels {
18119
+ readonly discriminator: 'supported_labels';
18120
+ readonly values: io.flow.internal.v0.models.LabelAliases[];
18121
+ }
18122
+
17898
18123
  interface SvbVirtualCardClearing {
17899
18124
  readonly id: string;
17900
18125
  readonly virtual_card_id: string;
@@ -18178,7 +18403,7 @@ declare namespace io.flow.internal.v0.models {
18178
18403
  interface UnclassifiedProductsForm {
18179
18404
  readonly organization_id: string;
18180
18405
  readonly product_id: string;
18181
- readonly ignore?: boolean;
18406
+ readonly status?: io.flow.internal.v0.enums.UnclassifiedProductStatus;
18182
18407
  }
18183
18408
 
18184
18409
  interface UnharmonizedItemsExport {
@@ -18278,6 +18503,14 @@ declare namespace io.flow.internal.v0.unions {
18278
18503
  | io.flow.internal.v0.models.CheckoutOrderNumberForm;
18279
18504
  type CheckoutSubmitOrderBundles = io.flow.internal.v0.models.CheckoutSubmitOrderBundle;
18280
18505
  type CheckoutSubmitOrderForms = io.flow.internal.v0.models.CheckoutSubmitOrderForm;
18506
+
18507
+ type ClassificationLabelAttribute =
18508
+ | {
18509
+ discriminator: 'empty_attribute';
18510
+ value: io.flow.internal.v0.enums.EmptyAttribute;
18511
+ }
18512
+ | io.flow.internal.v0.models.SupportedLabels;
18513
+
18281
18514
  type ContentItem =
18282
18515
  | io.flow.internal.v0.models.Dict
18283
18516
  | io.flow.internal.v0.models.Href
@@ -18570,7 +18803,6 @@ declare namespace io.flow.internal.v0.unions {
18570
18803
  | io.flow.internal.v0.models.ExperienceVariant
18571
18804
  | io.flow.internal.v0.models.FeatureVariant;
18572
18805
  type VariantForm =
18573
- | io.flow.internal.v0.models.ExperienceVariant
18574
18806
  | io.flow.internal.v0.models.ExperienceVariantForm
18575
18807
  | io.flow.internal.v0.models.FeatureVariantForm;
18576
18808
  }
@@ -18624,9 +18856,11 @@ export type AlertFailureSummaryDetail = io.flow.internal.v0.models.AlertFailureS
18624
18856
  export type AlertRequeueSummary = io.flow.internal.v0.models.AlertRequeueSummary;
18625
18857
  export type AllItemsExport = io.flow.internal.v0.models.AllItemsExport;
18626
18858
  export type AllocationItemReference = io.flow.internal.v0.models.AllocationItemReference;
18859
+ export type AllowedLabels = io.flow.internal.v0.models.AllowedLabels;
18627
18860
  export type ApmContent = io.flow.internal.v0.models.ApmContent;
18628
18861
  export type ApplePaymentToken = io.flow.internal.v0.models.ApplePaymentToken;
18629
18862
  export type ApplePaymentTokenHeader = io.flow.internal.v0.models.ApplePaymentTokenHeader;
18863
+ export type AttributeLabel = io.flow.internal.v0.models.AttributeLabel;
18630
18864
  export type AuthenticationForm = io.flow.internal.v0.models.AuthenticationForm;
18631
18865
  export type Authorization = io.flow.internal.v0.models.Authorization;
18632
18866
  export type AuthorizationMetadata = io.flow.internal.v0.models.AuthorizationMetadata;
@@ -18758,6 +18992,7 @@ export type CipherForm = io.flow.internal.v0.models.CipherForm;
18758
18992
  export type CipherReference = io.flow.internal.v0.models.CipherReference;
18759
18993
  export type ClassicPaymentRedirectForm = io.flow.internal.v0.models.ClassicPaymentRedirectForm;
18760
18994
  export type ClassificationItem = io.flow.internal.v0.models.ClassificationItem;
18995
+ export type ClassificationLabelAttribute = io.flow.internal.v0.unions.ClassificationLabelAttribute;
18761
18996
  export type ClassificationProduct = io.flow.internal.v0.models.ClassificationProduct;
18762
18997
  export type ClassificationProductId = io.flow.internal.v0.models.ClassificationProductId;
18763
18998
  export type ClassificationProductSummary = io.flow.internal.v0.models.ClassificationProductSummary;
@@ -18826,6 +19061,7 @@ export type DutySimpleExpression = io.flow.internal.v0.models.DutySimpleExpressi
18826
19061
  export type DutySimpleExpressionType = io.flow.internal.v0.enums.DutySimpleExpressionType;
18827
19062
  export type EmailForm = io.flow.internal.v0.models.EmailForm;
18828
19063
  export type EmailModificationForm = io.flow.internal.v0.models.EmailModificationForm;
19064
+ export type EmptyAttribute = io.flow.internal.v0.enums.EmptyAttribute;
18829
19065
  export type Encryption = io.flow.internal.v0.models.Encryption;
18830
19066
  export type Event = io.flow.internal.v0.unions.Event;
18831
19067
  export type EventType = io.flow.internal.v0.enums.EventType;
@@ -18843,16 +19079,18 @@ export type ExperienceVariant = io.flow.internal.v0.models.ExperienceVariant;
18843
19079
  export type ExperienceVariantForm = io.flow.internal.v0.models.ExperienceVariantForm;
18844
19080
  export type Experiment = io.flow.internal.v0.unions.Experiment;
18845
19081
  export type ExperimentDeleted = io.flow.internal.v0.models.ExperimentDeleted;
18846
- export type ExperimentDiscriminatorValue = io.flow.internal.v0.enums.ExperimentDiscriminatorValue;
19082
+ export type ExperimentDiscriminatorKey = io.flow.internal.v0.enums.ExperimentDiscriminatorKey;
18847
19083
  export type ExperimentEngineResults = io.flow.internal.v0.models.ExperimentEngineResults;
18848
19084
  export type ExperimentForm = io.flow.internal.v0.models.ExperimentForm;
18849
19085
  export type ExperimentFormDefault = io.flow.internal.v0.models.ExperimentFormDefault;
19086
+ export type ExperimentFormDefaultDiscriminator = io.flow.internal.v0.models.ExperimentFormDefaultDiscriminator;
19087
+ export type ExperimentFormDefaultDiscriminatorValue = io.flow.internal.v0.models.ExperimentFormDefaultDiscriminatorValue;
19088
+ export type ExperimentFormDefaultVariant = io.flow.internal.v0.models.ExperimentFormDefaultVariant;
18850
19089
  export type ExperimentResults = io.flow.internal.v0.models.ExperimentResults;
18851
19090
  export type ExperimentResultsDeleted = io.flow.internal.v0.models.ExperimentResultsDeleted;
18852
19091
  export type ExperimentResultsUpserted = io.flow.internal.v0.models.ExperimentResultsUpserted;
18853
19092
  export type ExperimentResultsWithTimestamp = io.flow.internal.v0.models.ExperimentResultsWithTimestamp;
18854
19093
  export type ExperimentUpserted = io.flow.internal.v0.models.ExperimentUpserted;
18855
- export type ExperimentVariantFormDefault = io.flow.internal.v0.models.ExperimentVariantFormDefault;
18856
19094
  export type ExperimentVariantSummary = io.flow.internal.v0.models.ExperimentVariantSummary;
18857
19095
  export type ExperimentVersion = io.flow.internal.v0.models.ExperimentVersion;
18858
19096
  export type ExplicitStatementDate = io.flow.internal.v0.models.ExplicitStatementDate;
@@ -19015,8 +19253,11 @@ export type ItemsShipped = io.flow.internal.v0.models.ItemsShipped;
19015
19253
  export type Key = io.flow.internal.v0.models.Key;
19016
19254
  export type KeyReference = io.flow.internal.v0.models.KeyReference;
19017
19255
  export type Label = io.flow.internal.v0.models.Label;
19256
+ export type LabelAliases = io.flow.internal.v0.models.LabelAliases;
19257
+ export type LabelAssociation = io.flow.internal.v0.models.LabelAssociation;
19018
19258
  export type LabelBillingStrategy = io.flow.internal.v0.enums.LabelBillingStrategy;
19019
19259
  export type LabelSummary = io.flow.internal.v0.models.LabelSummary;
19260
+ export type LabelTaxonomy = io.flow.internal.v0.models.LabelTaxonomy;
19020
19261
  export type LabeledContent = io.flow.internal.v0.models.LabeledContent;
19021
19262
  export type LabelsPrediction = io.flow.internal.v0.models.LabelsPrediction;
19022
19263
  export type LandedCostExport = io.flow.internal.v0.models.LandedCostExport;
@@ -19238,8 +19479,14 @@ export type ProcessingTransactionDeleted = io.flow.internal.v0.models.Processing
19238
19479
  export type ProcessingTransactionType = io.flow.internal.v0.enums.ProcessingTransactionType;
19239
19480
  export type ProcessingTransactionUpserted = io.flow.internal.v0.models.ProcessingTransactionUpserted;
19240
19481
  export type Processor = io.flow.internal.v0.enums.Processor;
19482
+ export type ProductClassification = io.flow.internal.v0.models.ProductClassification;
19483
+ export type ProductClassificationAction = io.flow.internal.v0.enums.ProductClassificationAction;
19484
+ export type ProductClassificationForm = io.flow.internal.v0.models.ProductClassificationForm;
19241
19485
  export type ProductClassificationJudgementForm = io.flow.internal.v0.models.ProductClassificationJudgementForm;
19242
19486
  export type ProductClassificationResult = io.flow.internal.v0.models.ProductClassificationResult;
19487
+ export type ProductHarmonization = io.flow.internal.v0.models.ProductHarmonization;
19488
+ export type ProductHarmonizationForm = io.flow.internal.v0.models.ProductHarmonizationForm;
19489
+ export type ProductLabels = io.flow.internal.v0.models.ProductLabels;
19243
19490
  export type PromptAction = io.flow.internal.v0.enums.PromptAction;
19244
19491
  export type PromptCheckoutDisplayPosition = io.flow.internal.v0.enums.PromptCheckoutDisplayPosition;
19245
19492
  export type PromptOptions = io.flow.internal.v0.enums.PromptOptions;
@@ -19387,6 +19634,7 @@ export type Subscription = io.flow.internal.v0.models.Subscription;
19387
19634
  export type SubscriptionFrequency = io.flow.internal.v0.enums.SubscriptionFrequency;
19388
19635
  export type SubscriptionTransaction = io.flow.internal.v0.models.SubscriptionTransaction;
19389
19636
  export type SuggestionAction = io.flow.internal.v0.enums.SuggestionAction;
19637
+ export type SupportedLabels = io.flow.internal.v0.models.SupportedLabels;
19390
19638
  export type SvbVirtualCardClearing = io.flow.internal.v0.models.SvbVirtualCardClearing;
19391
19639
  export type SvbVirtualCardClearingDeleted = io.flow.internal.v0.models.SvbVirtualCardClearingDeleted;
19392
19640
  export type SvbVirtualCardClearingUpserted = io.flow.internal.v0.models.SvbVirtualCardClearingUpserted;
@@ -19431,6 +19679,7 @@ export type TransferTransaction = io.flow.internal.v0.models.TransferTransaction
19431
19679
  export type TransferTransactionDeleted = io.flow.internal.v0.models.TransferTransactionDeleted;
19432
19680
  export type TransferTransactionUpserted = io.flow.internal.v0.models.TransferTransactionUpserted;
19433
19681
  export type Tribe = io.flow.internal.v0.models.Tribe;
19682
+ export type UnclassifiedProductStatus = io.flow.internal.v0.enums.UnclassifiedProductStatus;
19434
19683
  export type UnclassifiedProductsForm = io.flow.internal.v0.models.UnclassifiedProductsForm;
19435
19684
  export type UnharmonizedItemsExport = io.flow.internal.v0.models.UnharmonizedItemsExport;
19436
19685
  export type UnphrasedProductsExport = io.flow.internal.v0.models.UnphrasedProductsExport;