@flowio/types 11.24.87 → 11.24.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-internal.d.ts +267 -26
- package/dist/api.d.ts +30 -1
- package/package.json +2 -2
- package/src/api-internal.ts +319 -29
- package/src/api.ts +33 -1
package/src/api-internal.ts
CHANGED
|
@@ -203,6 +203,223 @@ declare namespace io.flow.invoice.v0.models {
|
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
+
declare namespace io.flow.billing.accounting.v0.models {
|
|
207
|
+
interface Fulfillment {
|
|
208
|
+
readonly id: string;
|
|
209
|
+
readonly order: io.flow.billing.accounting.v0.models.OrderSummary;
|
|
210
|
+
readonly shopper: io.flow.billing.accounting.v0.models.ShopperSummary;
|
|
211
|
+
readonly remittance: io.flow.billing.accounting.v0.models.RemittanceResponsibility;
|
|
212
|
+
readonly merchant: io.flow.billing.accounting.v0.models.MerchantSummary;
|
|
213
|
+
readonly sequence_number: number;
|
|
214
|
+
readonly posting_cutoff: string;
|
|
215
|
+
readonly trigger: io.flow.billing.accounting.v0.unions.FulfillmentTrigger;
|
|
216
|
+
readonly fulfilled_at: string;
|
|
217
|
+
readonly owner: io.flow.billing.internal.v0.enums.ResponsibleParty;
|
|
218
|
+
readonly origin?: io.flow.billing.accounting.v0.models.FulfillmentOrigin;
|
|
219
|
+
readonly business?: io.flow.billing.accounting.v0.models.FulfillmentBusiness;
|
|
220
|
+
readonly completes_order: boolean;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
interface FulfillmentBusiness {
|
|
224
|
+
readonly vat_registration_number: string;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
interface FulfillmentOrigin {
|
|
228
|
+
readonly country: string;
|
|
229
|
+
readonly province_code?: string;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
interface FulfillmentProofExternalFulfillmentProofReference {
|
|
233
|
+
readonly discriminator: 'external_fulfillment';
|
|
234
|
+
readonly id: string;
|
|
235
|
+
readonly carrier_id?: string;
|
|
236
|
+
readonly carrier_service_id?: string;
|
|
237
|
+
readonly carrier_tracking_number?: string;
|
|
238
|
+
readonly label_id?: string;
|
|
239
|
+
readonly created_at?: string;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
interface FulfillmentProofLabelTrackingReference {
|
|
243
|
+
readonly discriminator: 'label_tracking';
|
|
244
|
+
readonly id: string;
|
|
245
|
+
readonly carrier_id?: string;
|
|
246
|
+
readonly carrier_service_id?: string;
|
|
247
|
+
readonly carrier_tracking_number?: string;
|
|
248
|
+
readonly label_id?: string;
|
|
249
|
+
readonly created_at?: string;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
interface FulfillmentProofOrderCombinedShipmentReference {
|
|
253
|
+
readonly discriminator: 'order_combined_shipment';
|
|
254
|
+
readonly id: string;
|
|
255
|
+
readonly carrier_id?: string;
|
|
256
|
+
readonly carrier_service_id?: string;
|
|
257
|
+
readonly carrier_tracking_number?: string;
|
|
258
|
+
readonly label_id?: string;
|
|
259
|
+
readonly created_at?: string;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
interface FulfillmentProofShippingNotificationReference {
|
|
263
|
+
readonly discriminator: 'shipping_notification';
|
|
264
|
+
readonly id: string;
|
|
265
|
+
readonly carrier_id?: string;
|
|
266
|
+
readonly carrier_service_id?: string;
|
|
267
|
+
readonly carrier_tracking_number?: string;
|
|
268
|
+
readonly label_id?: string;
|
|
269
|
+
readonly created_at?: string;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
interface FulfillmentReference {
|
|
273
|
+
readonly id: string;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
interface FulfillmentSubsidyBreakdown {
|
|
277
|
+
readonly tax: number;
|
|
278
|
+
readonly duty: number;
|
|
279
|
+
readonly total: number;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
interface FulfillmentTriggerProof {
|
|
283
|
+
readonly discriminator: 'by_proof';
|
|
284
|
+
readonly proof: io.flow.billing.accounting.v0.unions.FulfillmentProof;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
interface FulfillmentTriggerTime {
|
|
288
|
+
readonly discriminator: 'by_time';
|
|
289
|
+
readonly placeholder?: string;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
interface ItemSummary {
|
|
293
|
+
readonly number: string;
|
|
294
|
+
readonly fulfillment_method: io.flow.catalog.v0.enums.FulfillmentMethodValue;
|
|
295
|
+
readonly country_of_origin?: string;
|
|
296
|
+
readonly inferred?: boolean;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
interface MerchantFees {
|
|
300
|
+
readonly duty_guarantee: number;
|
|
301
|
+
readonly mor: number;
|
|
302
|
+
readonly fraud: number;
|
|
303
|
+
readonly fx: number;
|
|
304
|
+
readonly processing: number;
|
|
305
|
+
readonly rate_lock: number;
|
|
306
|
+
readonly transfer: number;
|
|
307
|
+
readonly total: number;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
interface MerchantSubsidies {
|
|
311
|
+
readonly fees: io.flow.billing.accounting.v0.models.ShopperFees;
|
|
312
|
+
readonly tax: number;
|
|
313
|
+
readonly duty: number;
|
|
314
|
+
readonly total: number;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
interface MerchantSummary {
|
|
318
|
+
readonly subsidies: io.flow.billing.accounting.v0.models.MerchantSubsidies;
|
|
319
|
+
readonly fees: io.flow.billing.accounting.v0.models.MerchantFees;
|
|
320
|
+
readonly transactions: io.flow.billing.accounting.v0.models.MerchantTransactions;
|
|
321
|
+
readonly total: number;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
interface MerchantTransactions {
|
|
325
|
+
readonly adjustment: number;
|
|
326
|
+
readonly reversal: number;
|
|
327
|
+
readonly tax: number;
|
|
328
|
+
readonly duty: number;
|
|
329
|
+
readonly freight: number;
|
|
330
|
+
readonly total: number;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
interface OrderSummary {
|
|
334
|
+
readonly id: string;
|
|
335
|
+
readonly organization: io.flow.common.v0.models.OrganizationReference;
|
|
336
|
+
readonly number: string;
|
|
337
|
+
readonly type: io.flow.experience.v0.enums.OrderType;
|
|
338
|
+
readonly submitted_at: string;
|
|
339
|
+
readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
|
|
340
|
+
readonly currency: string;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
interface RemittanceResponsibility {
|
|
344
|
+
readonly tax: io.flow.billing.internal.v0.enums.ResponsibleParty;
|
|
345
|
+
readonly duty: io.flow.billing.internal.v0.enums.ResponsibleParty;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
interface Return {
|
|
349
|
+
readonly id: string;
|
|
350
|
+
readonly order: io.flow.billing.accounting.v0.models.OrderSummary;
|
|
351
|
+
readonly shopper: io.flow.billing.accounting.v0.models.ShopperSummary;
|
|
352
|
+
readonly remittance: io.flow.billing.accounting.v0.models.RemittanceResponsibility;
|
|
353
|
+
readonly merchant: io.flow.billing.accounting.v0.models.MerchantSummary;
|
|
354
|
+
readonly sequence_number: number;
|
|
355
|
+
readonly posting_cutoff: string;
|
|
356
|
+
readonly trigger: io.flow.billing.accounting.v0.unions.ReturnTrigger;
|
|
357
|
+
readonly returned_at: string;
|
|
358
|
+
readonly completes_order: boolean;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
interface ReturnTriggerRefund {
|
|
362
|
+
readonly discriminator: 'by_refund';
|
|
363
|
+
readonly refund: io.flow.payment.v0.models.RefundReference;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
interface ShopperFees {
|
|
367
|
+
readonly fuel: number;
|
|
368
|
+
readonly remote_area: number;
|
|
369
|
+
readonly oversize: number;
|
|
370
|
+
readonly ccf: number;
|
|
371
|
+
readonly emergency: number;
|
|
372
|
+
readonly peak: number;
|
|
373
|
+
readonly total: number;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
interface ShopperFreight {
|
|
377
|
+
readonly price: number;
|
|
378
|
+
readonly discount: number;
|
|
379
|
+
readonly tax: number;
|
|
380
|
+
readonly duty: number;
|
|
381
|
+
readonly subsidies: io.flow.billing.accounting.v0.models.FulfillmentSubsidyBreakdown;
|
|
382
|
+
readonly total: number;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
interface ShopperLine {
|
|
386
|
+
readonly item: io.flow.billing.accounting.v0.models.ItemSummary;
|
|
387
|
+
readonly quantity: number;
|
|
388
|
+
readonly unit_price: number;
|
|
389
|
+
readonly price: number;
|
|
390
|
+
readonly discount: number;
|
|
391
|
+
readonly tax: number;
|
|
392
|
+
readonly duty: number;
|
|
393
|
+
readonly subsidies: io.flow.billing.accounting.v0.models.FulfillmentSubsidyBreakdown;
|
|
394
|
+
readonly total: number;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
interface ShopperLines {
|
|
398
|
+
readonly lines: io.flow.billing.accounting.v0.models.ShopperLine[];
|
|
399
|
+
readonly total: number;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
interface ShopperSummary {
|
|
403
|
+
readonly product: io.flow.billing.accounting.v0.models.ShopperLines;
|
|
404
|
+
readonly fees: io.flow.billing.accounting.v0.models.ShopperFees;
|
|
405
|
+
readonly freight: io.flow.billing.accounting.v0.models.ShopperFreight;
|
|
406
|
+
readonly order_discount: number;
|
|
407
|
+
readonly total: number;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
declare namespace io.flow.billing.accounting.v0.unions {
|
|
412
|
+
type FulfillmentProof =
|
|
413
|
+
| io.flow.billing.accounting.v0.models.FulfillmentProofLabelTrackingReference
|
|
414
|
+
| io.flow.billing.accounting.v0.models.FulfillmentProofShippingNotificationReference
|
|
415
|
+
| io.flow.billing.accounting.v0.models.FulfillmentProofExternalFulfillmentProofReference
|
|
416
|
+
| io.flow.billing.accounting.v0.models.FulfillmentProofOrderCombinedShipmentReference;
|
|
417
|
+
type FulfillmentTrigger =
|
|
418
|
+
| io.flow.billing.accounting.v0.models.FulfillmentTriggerProof
|
|
419
|
+
| io.flow.billing.accounting.v0.models.FulfillmentTriggerTime;
|
|
420
|
+
type ReturnTrigger = io.flow.billing.accounting.v0.models.ReturnTriggerRefund;
|
|
421
|
+
}
|
|
422
|
+
|
|
206
423
|
declare namespace io.flow.RESERVED_WORD_export.v0.enums {
|
|
207
424
|
type ExportStatus = 'created' | 'processing' | 'completed' | 'failed';
|
|
208
425
|
type ItemIdentifier = 'item_number' | 'sku';
|
|
@@ -10205,6 +10422,7 @@ declare namespace io.flow.billing.reporting.v0.models {
|
|
|
10205
10422
|
}
|
|
10206
10423
|
|
|
10207
10424
|
interface ReportingShipment {
|
|
10425
|
+
readonly remittance?: io.flow.billing.accounting.v0.models.RemittanceResponsibility;
|
|
10208
10426
|
readonly carrier: string;
|
|
10209
10427
|
readonly tracking_number?: string;
|
|
10210
10428
|
}
|
|
@@ -16096,9 +16314,10 @@ declare namespace io.flow.billing.v0.enums {
|
|
|
16096
16314
|
| 'reversal'
|
|
16097
16315
|
| 'shipping_label'
|
|
16098
16316
|
| 'shipping_label_service'
|
|
16317
|
+
| 'shipping_label_revenue_share'
|
|
16099
16318
|
| 'trueup'
|
|
16100
16319
|
| 'carrier_charge'
|
|
16101
|
-
| '
|
|
16320
|
+
| 'carrier_charge_revenue_share'
|
|
16102
16321
|
| 'platform_fee'
|
|
16103
16322
|
| 'tax'
|
|
16104
16323
|
| 'duty'
|
|
@@ -16115,6 +16334,10 @@ declare namespace io.flow.billing.v0.enums {
|
|
|
16115
16334
|
}
|
|
16116
16335
|
|
|
16117
16336
|
declare namespace io.flow.billing.v0.models {
|
|
16337
|
+
interface AccountIdReference {
|
|
16338
|
+
readonly id: string;
|
|
16339
|
+
}
|
|
16340
|
+
|
|
16118
16341
|
interface AccountReference {
|
|
16119
16342
|
readonly id: string;
|
|
16120
16343
|
readonly currency: string;
|
|
@@ -16211,6 +16434,7 @@ declare namespace io.flow.billing.v0.models {
|
|
|
16211
16434
|
interface ChannelTransaction {
|
|
16212
16435
|
readonly statement?: io.flow.billing.v0.models.BillingChannelStatementReference;
|
|
16213
16436
|
readonly id: string;
|
|
16437
|
+
readonly account: io.flow.billing.v0.models.AccountIdReference;
|
|
16214
16438
|
readonly metadata?: io.flow.billing.v0.unions.TransactionMetadata;
|
|
16215
16439
|
readonly order?: io.flow.billing.v0.models.BillingChannelOrderSummary;
|
|
16216
16440
|
readonly payment_request?: io.flow.billing.v0.models.BillingChannelPaymentRequestReference;
|
|
@@ -16237,6 +16461,26 @@ declare namespace io.flow.billing.v0.models {
|
|
|
16237
16461
|
readonly description?: string;
|
|
16238
16462
|
}
|
|
16239
16463
|
|
|
16464
|
+
interface FlowTransaction {
|
|
16465
|
+
readonly statement?: io.flow.billing.v0.models.BillingChannelStatementReference;
|
|
16466
|
+
readonly id: string;
|
|
16467
|
+
readonly account: io.flow.billing.v0.models.AccountIdReference;
|
|
16468
|
+
readonly metadata?: io.flow.billing.v0.unions.TransactionMetadata;
|
|
16469
|
+
readonly order?: io.flow.billing.v0.models.BillingChannelOrderSummary;
|
|
16470
|
+
readonly payment_request?: io.flow.billing.v0.models.BillingChannelPaymentRequestReference;
|
|
16471
|
+
readonly currency: string;
|
|
16472
|
+
readonly source: io.flow.billing.v0.enums.TransactionSource;
|
|
16473
|
+
readonly parent?: io.flow.billing.v0.models.ParentTransactionSummary;
|
|
16474
|
+
readonly gross: number;
|
|
16475
|
+
readonly fees: io.flow.billing.v0.models.FeeDeduction[];
|
|
16476
|
+
readonly withholdings: io.flow.billing.v0.models.WithholdingDeduction[];
|
|
16477
|
+
readonly discounts: io.flow.billing.v0.models.BillingDiscount[];
|
|
16478
|
+
readonly net: number;
|
|
16479
|
+
readonly identifiers: Record<string, string>;
|
|
16480
|
+
readonly created_at: string;
|
|
16481
|
+
readonly updated_at: string;
|
|
16482
|
+
}
|
|
16483
|
+
|
|
16240
16484
|
interface OrganizationBankAccount {
|
|
16241
16485
|
readonly id: string;
|
|
16242
16486
|
readonly key: string;
|
|
@@ -16300,6 +16544,7 @@ declare namespace io.flow.billing.v0.models {
|
|
|
16300
16544
|
|
|
16301
16545
|
interface PayoutTransaction {
|
|
16302
16546
|
readonly id: string;
|
|
16547
|
+
readonly account: io.flow.billing.v0.models.AccountIdReference;
|
|
16303
16548
|
readonly metadata?: io.flow.billing.v0.unions.TransactionMetadata;
|
|
16304
16549
|
readonly order?: io.flow.billing.v0.models.BillingChannelOrderSummary;
|
|
16305
16550
|
readonly payment_request?: io.flow.billing.v0.models.BillingChannelPaymentRequestReference;
|
|
@@ -16349,6 +16594,7 @@ declare namespace io.flow.billing.v0.models {
|
|
|
16349
16594
|
interface Transaction {
|
|
16350
16595
|
readonly statement?: io.flow.billing.v0.models.BillingChannelStatementReference;
|
|
16351
16596
|
readonly id: string;
|
|
16597
|
+
readonly account: io.flow.billing.v0.models.AccountIdReference;
|
|
16352
16598
|
readonly metadata?: io.flow.billing.v0.unions.TransactionMetadata;
|
|
16353
16599
|
readonly order?: io.flow.billing.v0.models.BillingChannelOrderSummary;
|
|
16354
16600
|
readonly payment_request?: io.flow.billing.v0.models.BillingChannelPaymentRequestReference;
|
|
@@ -16371,6 +16617,7 @@ declare namespace io.flow.billing.v0.models {
|
|
|
16371
16617
|
readonly label_created_at: string;
|
|
16372
16618
|
readonly carrier_id: string;
|
|
16373
16619
|
readonly carrier_tracking_number: string;
|
|
16620
|
+
readonly revenue_share_percentage: number;
|
|
16374
16621
|
readonly outbound?: io.flow.billing.v0.models.TransactionMetadataCarrierChargeOutbound;
|
|
16375
16622
|
}
|
|
16376
16623
|
|
|
@@ -17816,6 +18063,7 @@ declare namespace io.flow.organization.onboarding.state.v0.models {
|
|
|
17816
18063
|
readonly discriminator: 'merchant_rejected';
|
|
17817
18064
|
readonly reason: io.flow.organization.onboarding.state.v0.enums.MerchantRejectedReason;
|
|
17818
18065
|
readonly description?: string;
|
|
18066
|
+
readonly deactivate_at?: string;
|
|
17819
18067
|
}
|
|
17820
18068
|
|
|
17821
18069
|
interface OnboardingStateTransition {
|
|
@@ -18438,7 +18686,11 @@ declare namespace io.flow.internal.v0.enums {
|
|
|
18438
18686
|
| 'dtce_with_deminimis'
|
|
18439
18687
|
| 'dtce_merged_with_tax'
|
|
18440
18688
|
| 'dtce_with_inclusive_pricing';
|
|
18441
|
-
type CarrierChargeTransactionType =
|
|
18689
|
+
type CarrierChargeTransactionType =
|
|
18690
|
+
| 'adjustment'
|
|
18691
|
+
| 'reversal'
|
|
18692
|
+
| 'charge'
|
|
18693
|
+
| 'revenue_share';
|
|
18442
18694
|
type CarrierChargeType = 'label' | 'other';
|
|
18443
18695
|
type CarrierLabelGenerationMethod = 'direct' | 'easypost';
|
|
18444
18696
|
type CarrierValidationStatus = 'success' | 'error';
|
|
@@ -18877,7 +19129,6 @@ declare namespace io.flow.internal.v0.enums {
|
|
|
18877
19129
|
| 'processing_transaction_upserted'
|
|
18878
19130
|
| 'processing_transaction_deleted'
|
|
18879
19131
|
| 'bank_payment_upserted'
|
|
18880
|
-
| 'bank_payment_deleted'
|
|
18881
19132
|
| 'bank_payment_upserted_v2'
|
|
18882
19133
|
| 'bank_payment_deleted_v2'
|
|
18883
19134
|
| 'channel_transaction_upserted'
|
|
@@ -19176,6 +19427,8 @@ declare namespace io.flow.internal.v0.enums {
|
|
|
19176
19427
|
| 'colm_item_deleted'
|
|
19177
19428
|
| 'shruti_demo_item_upserted'
|
|
19178
19429
|
| 'shruti_demo_item_deleted'
|
|
19430
|
+
| 'tam_item_upserted'
|
|
19431
|
+
| 'tam_item_deleted'
|
|
19179
19432
|
| 'tracking_label_event_upserted_v2'
|
|
19180
19433
|
| 'tracking_label_event_deleted_v2'
|
|
19181
19434
|
| 'tracking_label_upserted'
|
|
@@ -19259,7 +19512,6 @@ declare namespace io.flow.internal.v0.enums {
|
|
|
19259
19512
|
| 'low_value_goods_tax'
|
|
19260
19513
|
| 'high_value_goods_tax'
|
|
19261
19514
|
| 'duties';
|
|
19262
|
-
type LogisticsResponsibility = 'organization' | 'flow';
|
|
19263
19515
|
type MainTransactionStatus = 'scheduled' | 'pending_proof';
|
|
19264
19516
|
type ManualReviewRuleStatus = 'active' | 'archived';
|
|
19265
19517
|
type ManualTransactionCategory =
|
|
@@ -19402,7 +19654,11 @@ declare namespace io.flow.internal.v0.enums {
|
|
|
19402
19654
|
| 'shipment_exhausted';
|
|
19403
19655
|
type OrderLifecycleEvent = 'order_placed' | 'ready_to_fulfill';
|
|
19404
19656
|
type OrderTransactionType = 'adjustment' | 'reversal' | 'order_service';
|
|
19405
|
-
type OrderValidationStatus =
|
|
19657
|
+
type OrderValidationStatus =
|
|
19658
|
+
| 'success'
|
|
19659
|
+
| 'failed'
|
|
19660
|
+
| 'label_created'
|
|
19661
|
+
| 'unresolvable';
|
|
19406
19662
|
type OrganizationCapability = 'organization' | 'flow' | 'dynamic';
|
|
19407
19663
|
type OrganizationMetricType =
|
|
19408
19664
|
| 'organization_restriction_snapshot'
|
|
@@ -20444,14 +20700,6 @@ declare namespace io.flow.internal.v0.models {
|
|
|
20444
20700
|
readonly total: io.flow.common.v0.models.Price;
|
|
20445
20701
|
}
|
|
20446
20702
|
|
|
20447
|
-
interface BankPaymentDeleted {
|
|
20448
|
-
readonly discriminator: 'bank_payment_deleted';
|
|
20449
|
-
readonly event_id: string;
|
|
20450
|
-
readonly timestamp: string;
|
|
20451
|
-
readonly organization: string;
|
|
20452
|
-
readonly bank_payment: io.flow.internal.v0.models.BankPayment;
|
|
20453
|
-
}
|
|
20454
|
-
|
|
20455
20703
|
interface BankPaymentDeletedV2 {
|
|
20456
20704
|
readonly discriminator: 'bank_payment_deleted_v2';
|
|
20457
20705
|
readonly event_id: string;
|
|
@@ -24047,7 +24295,7 @@ declare namespace io.flow.internal.v0.models {
|
|
|
24047
24295
|
readonly invoice_reference: string;
|
|
24048
24296
|
readonly signature_url: string;
|
|
24049
24297
|
readonly signature_date: string;
|
|
24050
|
-
readonly signature_name
|
|
24298
|
+
readonly signature_name?: string;
|
|
24051
24299
|
readonly line_items: io.flow.internal.v0.models.InvoiceLineItem[];
|
|
24052
24300
|
readonly currency: string;
|
|
24053
24301
|
readonly delivered_duty: string;
|
|
@@ -26100,12 +26348,13 @@ declare namespace io.flow.internal.v0.models {
|
|
|
26100
26348
|
readonly id: string;
|
|
26101
26349
|
readonly order: io.flow.internal.v0.models.OrderSummary;
|
|
26102
26350
|
readonly shopper: io.flow.internal.v0.models.ShopperSummary;
|
|
26351
|
+
readonly remittance: io.flow.internal.v0.models.RemittanceResponsibility;
|
|
26103
26352
|
readonly merchant: io.flow.internal.v0.models.MerchantSummary;
|
|
26104
26353
|
readonly sequence_number: number;
|
|
26105
26354
|
readonly posting_cutoff: string;
|
|
26106
26355
|
readonly trigger: io.flow.internal.v0.unions.FulfillmentTrigger;
|
|
26107
26356
|
readonly fulfilled_at: string;
|
|
26108
|
-
readonly owner: io.flow.internal.v0.enums.
|
|
26357
|
+
readonly owner: io.flow.internal.v0.enums.ResponsibleParty;
|
|
26109
26358
|
readonly origin?: io.flow.internal.v0.models.FulfillmentOrigin;
|
|
26110
26359
|
readonly business?: io.flow.internal.v0.models.FulfillmentBusiness;
|
|
26111
26360
|
readonly completes_order: boolean;
|
|
@@ -29212,26 +29461,37 @@ declare namespace io.flow.internal.v0.models {
|
|
|
29212
29461
|
readonly order_number: string;
|
|
29213
29462
|
readonly service_id: string;
|
|
29214
29463
|
readonly status: io.flow.internal.v0.enums.OrderValidationStatus;
|
|
29464
|
+
readonly updated_by_user_id: string;
|
|
29465
|
+
}
|
|
29466
|
+
|
|
29467
|
+
interface OrderValidationError {
|
|
29468
|
+
readonly message: string;
|
|
29469
|
+
readonly reason: io.flow.internal.v0.enums.ChannelOrderAcceptanceRejectionReason;
|
|
29470
|
+
readonly action?: io.flow.internal.v0.enums.ChannelOrderAcceptanceErrorAction;
|
|
29471
|
+
readonly next_action_from: io.flow.internal.v0.enums.ChannelOrderAcceptanceNextActionFrom;
|
|
29215
29472
|
}
|
|
29216
29473
|
|
|
29217
|
-
interface
|
|
29474
|
+
interface OrderValidationFailure {
|
|
29218
29475
|
readonly id: string;
|
|
29219
29476
|
readonly organization_id: string;
|
|
29220
29477
|
readonly order_number: string;
|
|
29221
29478
|
readonly service_id: string;
|
|
29222
|
-
readonly origin
|
|
29223
|
-
readonly destination
|
|
29479
|
+
readonly origin?: io.flow.fulfillment.v0.models.ShippingAddress;
|
|
29480
|
+
readonly destination?: io.flow.fulfillment.v0.models.ShippingAddress;
|
|
29224
29481
|
readonly label_request_method: io.flow.label.v0.enums.LabelRequestMethod;
|
|
29225
29482
|
readonly label_trigger_method: io.flow.label.v0.enums.LabelTriggerMethod;
|
|
29226
29483
|
readonly suggested_responsibility: io.flow.internal.v0.enums.LabelRequestErrorHandlingResponsibility;
|
|
29227
29484
|
readonly errors: string[];
|
|
29228
29485
|
}
|
|
29229
29486
|
|
|
29230
|
-
interface
|
|
29231
|
-
readonly
|
|
29232
|
-
readonly
|
|
29233
|
-
readonly
|
|
29234
|
-
readonly
|
|
29487
|
+
interface OrderValidationFailureSummary {
|
|
29488
|
+
readonly organization_id: string;
|
|
29489
|
+
readonly order_number: string;
|
|
29490
|
+
readonly service_id: string;
|
|
29491
|
+
readonly origin?: io.flow.fulfillment.v0.models.ShippingAddress;
|
|
29492
|
+
readonly destination?: io.flow.fulfillment.v0.models.ShippingAddress;
|
|
29493
|
+
readonly error: string;
|
|
29494
|
+
readonly created_at: string;
|
|
29235
29495
|
}
|
|
29236
29496
|
|
|
29237
29497
|
interface OrganizationAccount {
|
|
@@ -30275,6 +30535,10 @@ declare namespace io.flow.internal.v0.models {
|
|
|
30275
30535
|
readonly matching_positive_keywords: string[];
|
|
30276
30536
|
readonly matching_negative_keywords: string[];
|
|
30277
30537
|
readonly updated_by_user_id: string;
|
|
30538
|
+
readonly flagged_for_keywords_at?: string;
|
|
30539
|
+
readonly automatically_restricted_at?: string;
|
|
30540
|
+
readonly manually_reviewed_at?: string;
|
|
30541
|
+
readonly manually_reviewed_by?: string;
|
|
30278
30542
|
}
|
|
30279
30543
|
|
|
30280
30544
|
interface ProductRestrictionRuleDecisionDeleted {
|
|
@@ -30811,6 +31075,11 @@ declare namespace io.flow.internal.v0.models {
|
|
|
30811
31075
|
readonly number: string;
|
|
30812
31076
|
}
|
|
30813
31077
|
|
|
31078
|
+
interface RemittanceResponsibility {
|
|
31079
|
+
readonly tax: io.flow.internal.v0.enums.ResponsibleParty;
|
|
31080
|
+
readonly duty: io.flow.internal.v0.enums.ResponsibleParty;
|
|
31081
|
+
}
|
|
31082
|
+
|
|
30814
31083
|
interface Report {
|
|
30815
31084
|
readonly id: string;
|
|
30816
31085
|
readonly status: io.flow.internal.v0.enums.ReportStatus;
|
|
@@ -31049,6 +31318,7 @@ declare namespace io.flow.internal.v0.models {
|
|
|
31049
31318
|
}
|
|
31050
31319
|
|
|
31051
31320
|
interface ReportingShipment {
|
|
31321
|
+
readonly remittance?: io.flow.internal.v0.models.RemittanceResponsibility;
|
|
31052
31322
|
readonly carrier: string;
|
|
31053
31323
|
readonly tracking_number?: string;
|
|
31054
31324
|
}
|
|
@@ -31267,6 +31537,7 @@ declare namespace io.flow.internal.v0.models {
|
|
|
31267
31537
|
interface RestrictionProductSummary {
|
|
31268
31538
|
readonly name: string;
|
|
31269
31539
|
readonly restrictions: io.flow.internal.v0.models.RestrictionItemReviewSummary[];
|
|
31540
|
+
readonly prohibited_regions?: string[];
|
|
31270
31541
|
}
|
|
31271
31542
|
|
|
31272
31543
|
interface RestrictionRule {
|
|
@@ -31347,6 +31618,7 @@ declare namespace io.flow.internal.v0.models {
|
|
|
31347
31618
|
readonly id: string;
|
|
31348
31619
|
readonly order: io.flow.internal.v0.models.OrderSummary;
|
|
31349
31620
|
readonly shopper: io.flow.internal.v0.models.ShopperSummary;
|
|
31621
|
+
readonly remittance: io.flow.internal.v0.models.RemittanceResponsibility;
|
|
31350
31622
|
readonly merchant: io.flow.internal.v0.models.MerchantSummary;
|
|
31351
31623
|
readonly sequence_number: number;
|
|
31352
31624
|
readonly posting_cutoff: string;
|
|
@@ -32788,6 +33060,13 @@ declare namespace io.flow.internal.v0.models {
|
|
|
32788
33060
|
readonly added_on: string;
|
|
32789
33061
|
}
|
|
32790
33062
|
|
|
33063
|
+
interface TamItemDeleted {
|
|
33064
|
+
readonly discriminator: 'tam_item_deleted';
|
|
33065
|
+
readonly event_id: string;
|
|
33066
|
+
readonly timestamp: string;
|
|
33067
|
+
readonly id: string;
|
|
33068
|
+
}
|
|
33069
|
+
|
|
32791
33070
|
interface TamItemForm {
|
|
32792
33071
|
readonly number: string;
|
|
32793
33072
|
readonly amount: io.flow.common.v0.models.Price;
|
|
@@ -32795,6 +33074,13 @@ declare namespace io.flow.internal.v0.models {
|
|
|
32795
33074
|
readonly type: io.flow.internal.v0.enums.TamItemType;
|
|
32796
33075
|
}
|
|
32797
33076
|
|
|
33077
|
+
interface TamItemUpserted {
|
|
33078
|
+
readonly discriminator: 'tam_item_upserted';
|
|
33079
|
+
readonly event_id: string;
|
|
33080
|
+
readonly timestamp: string;
|
|
33081
|
+
readonly item: io.flow.internal.v0.models.TamItem;
|
|
33082
|
+
}
|
|
33083
|
+
|
|
32798
33084
|
interface TariffCodeDuty {
|
|
32799
33085
|
readonly tariff_code: string;
|
|
32800
33086
|
readonly duties: Record<string, io.flow.internal.v0.models.Duties>;
|
|
@@ -33982,7 +34268,6 @@ declare namespace io.flow.internal.v0.unions {
|
|
|
33982
34268
|
| io.flow.internal.v0.models.ProcessingTransactionUpserted
|
|
33983
34269
|
| io.flow.internal.v0.models.ProcessingTransactionDeleted
|
|
33984
34270
|
| io.flow.internal.v0.models.BankPaymentUpserted
|
|
33985
|
-
| io.flow.internal.v0.models.BankPaymentDeleted
|
|
33986
34271
|
| io.flow.internal.v0.models.BankPaymentUpsertedV2
|
|
33987
34272
|
| io.flow.internal.v0.models.BankPaymentDeletedV2
|
|
33988
34273
|
| io.flow.internal.v0.models.ChannelTransactionUpserted
|
|
@@ -34281,6 +34566,8 @@ declare namespace io.flow.internal.v0.unions {
|
|
|
34281
34566
|
| io.flow.internal.v0.models.ColmItemDeleted
|
|
34282
34567
|
| io.flow.internal.v0.models.ShrutiDemoItemUpserted
|
|
34283
34568
|
| io.flow.internal.v0.models.ShrutiDemoItemDeleted
|
|
34569
|
+
| io.flow.internal.v0.models.TamItemUpserted
|
|
34570
|
+
| io.flow.internal.v0.models.TamItemDeleted
|
|
34284
34571
|
| io.flow.internal.v0.models.TrackingLabelEventUpsertedV2
|
|
34285
34572
|
| io.flow.internal.v0.models.TrackingLabelEventDeletedV2
|
|
34286
34573
|
| io.flow.internal.v0.models.TrackingLabelUpserted
|
|
@@ -34766,7 +35053,6 @@ export type BackfillForm = io.flow.internal.v0.models.BackfillForm;
|
|
|
34766
35053
|
export type BankAccountReference =
|
|
34767
35054
|
io.flow.internal.v0.models.BankAccountReference;
|
|
34768
35055
|
export type BankPayment = io.flow.internal.v0.models.BankPayment;
|
|
34769
|
-
export type BankPaymentDeleted = io.flow.internal.v0.models.BankPaymentDeleted;
|
|
34770
35056
|
export type BankPaymentDeletedV2 =
|
|
34771
35057
|
io.flow.internal.v0.models.BankPaymentDeletedV2;
|
|
34772
35058
|
export type BankPaymentForm = io.flow.internal.v0.models.BankPaymentForm;
|
|
@@ -37165,8 +37451,6 @@ export type LocalizedPriceBookItemDeleted =
|
|
|
37165
37451
|
export type LocalizedPriceBookItemUpserted =
|
|
37166
37452
|
io.flow.internal.v0.models.LocalizedPriceBookItemUpserted;
|
|
37167
37453
|
export type Location = io.flow.internal.v0.models.Location;
|
|
37168
|
-
export type LogisticsResponsibility =
|
|
37169
|
-
io.flow.internal.v0.enums.LogisticsResponsibility;
|
|
37170
37454
|
export type Logo = io.flow.internal.v0.models.Logo;
|
|
37171
37455
|
export type LoyaltyProgram = io.flow.internal.v0.models.LoyaltyProgram;
|
|
37172
37456
|
export type LoyaltyProgramMessage =
|
|
@@ -37465,10 +37749,12 @@ export type OrderTransactionType =
|
|
|
37465
37749
|
export type OrderTransactionUpserted =
|
|
37466
37750
|
io.flow.internal.v0.models.OrderTransactionUpserted;
|
|
37467
37751
|
export type OrderValidation = io.flow.internal.v0.models.OrderValidation;
|
|
37468
|
-
export type OrderValidationAttempt =
|
|
37469
|
-
io.flow.internal.v0.models.OrderValidationAttempt;
|
|
37470
37752
|
export type OrderValidationError =
|
|
37471
37753
|
io.flow.internal.v0.models.OrderValidationError;
|
|
37754
|
+
export type OrderValidationFailure =
|
|
37755
|
+
io.flow.internal.v0.models.OrderValidationFailure;
|
|
37756
|
+
export type OrderValidationFailureSummary =
|
|
37757
|
+
io.flow.internal.v0.models.OrderValidationFailureSummary;
|
|
37472
37758
|
export type OrderValidationStatus =
|
|
37473
37759
|
io.flow.internal.v0.enums.OrderValidationStatus;
|
|
37474
37760
|
export type OrganizationAccount =
|
|
@@ -37899,6 +38185,8 @@ export type RegisteredExporterTariffEligibilityData =
|
|
|
37899
38185
|
export type RegisteredExporterTariffEligibilityForm =
|
|
37900
38186
|
io.flow.internal.v0.models.RegisteredExporterTariffEligibilityForm;
|
|
37901
38187
|
export type RejectionReason = io.flow.internal.v0.enums.RejectionReason;
|
|
38188
|
+
export type RemittanceResponsibility =
|
|
38189
|
+
io.flow.internal.v0.models.RemittanceResponsibility;
|
|
37902
38190
|
export type Report = io.flow.internal.v0.models.Report;
|
|
37903
38191
|
export type ReportAccount = io.flow.internal.v0.models.ReportAccount;
|
|
37904
38192
|
export type ReportBankAccount = io.flow.internal.v0.models.ReportBankAccount;
|
|
@@ -38435,8 +38723,10 @@ export type SvitlanaItemUpserted =
|
|
|
38435
38723
|
export type SvitlanaTest = io.flow.internal.v0.models.SvitlanaTest;
|
|
38436
38724
|
export type SvitlanaType = io.flow.internal.v0.enums.SvitlanaType;
|
|
38437
38725
|
export type TamItem = io.flow.internal.v0.models.TamItem;
|
|
38726
|
+
export type TamItemDeleted = io.flow.internal.v0.models.TamItemDeleted;
|
|
38438
38727
|
export type TamItemForm = io.flow.internal.v0.models.TamItemForm;
|
|
38439
38728
|
export type TamItemType = io.flow.internal.v0.enums.TamItemType;
|
|
38729
|
+
export type TamItemUpserted = io.flow.internal.v0.models.TamItemUpserted;
|
|
38440
38730
|
export type TariffCodeDuty = io.flow.internal.v0.models.TariffCodeDuty;
|
|
38441
38731
|
export type TariffCodesExport = io.flow.internal.v0.models.TariffCodesExport;
|
|
38442
38732
|
export type TariffEligibility = io.flow.internal.v0.models.TariffEligibility;
|
package/src/api.ts
CHANGED
|
@@ -3497,9 +3497,10 @@ declare namespace io.flow.v0.enums {
|
|
|
3497
3497
|
| 'reversal'
|
|
3498
3498
|
| 'shipping_label'
|
|
3499
3499
|
| 'shipping_label_service'
|
|
3500
|
+
| 'shipping_label_revenue_share'
|
|
3500
3501
|
| 'trueup'
|
|
3501
3502
|
| 'carrier_charge'
|
|
3502
|
-
| '
|
|
3503
|
+
| 'carrier_charge_revenue_share'
|
|
3503
3504
|
| 'platform_fee'
|
|
3504
3505
|
| 'tax'
|
|
3505
3506
|
| 'duty'
|
|
@@ -3591,6 +3592,10 @@ declare namespace io.flow.v0.models {
|
|
|
3591
3592
|
readonly status: io.flow.v0.enums.AbandonedOrderSettingStatus;
|
|
3592
3593
|
}
|
|
3593
3594
|
|
|
3595
|
+
interface AccountIdReference {
|
|
3596
|
+
readonly id: string;
|
|
3597
|
+
}
|
|
3598
|
+
|
|
3594
3599
|
interface AccountOrdersExportType {
|
|
3595
3600
|
readonly discriminator: 'account_orders_export_type';
|
|
3596
3601
|
readonly statement_id?: string;
|
|
@@ -5196,6 +5201,7 @@ declare namespace io.flow.v0.models {
|
|
|
5196
5201
|
interface ChannelTransaction {
|
|
5197
5202
|
readonly statement?: io.flow.v0.models.BillingChannelStatementReference;
|
|
5198
5203
|
readonly id: string;
|
|
5204
|
+
readonly account: io.flow.v0.models.AccountIdReference;
|
|
5199
5205
|
readonly metadata?: io.flow.v0.unions.TransactionMetadata;
|
|
5200
5206
|
readonly order?: io.flow.v0.models.BillingChannelOrderSummary;
|
|
5201
5207
|
readonly payment_request?: io.flow.v0.models.BillingChannelPaymentRequestReference;
|
|
@@ -6898,6 +6904,26 @@ declare namespace io.flow.v0.models {
|
|
|
6898
6904
|
readonly status: io.flow.v0.enums.SubcatalogItemStatus;
|
|
6899
6905
|
}
|
|
6900
6906
|
|
|
6907
|
+
interface FlowTransaction {
|
|
6908
|
+
readonly statement?: io.flow.v0.models.BillingChannelStatementReference;
|
|
6909
|
+
readonly id: string;
|
|
6910
|
+
readonly account: io.flow.v0.models.AccountIdReference;
|
|
6911
|
+
readonly metadata?: io.flow.v0.unions.TransactionMetadata;
|
|
6912
|
+
readonly order?: io.flow.v0.models.BillingChannelOrderSummary;
|
|
6913
|
+
readonly payment_request?: io.flow.v0.models.BillingChannelPaymentRequestReference;
|
|
6914
|
+
readonly currency: string;
|
|
6915
|
+
readonly source: io.flow.v0.enums.TransactionSource;
|
|
6916
|
+
readonly parent?: io.flow.v0.models.ParentTransactionSummary;
|
|
6917
|
+
readonly gross: number;
|
|
6918
|
+
readonly fees: io.flow.v0.models.FeeDeduction[];
|
|
6919
|
+
readonly withholdings: io.flow.v0.models.WithholdingDeduction[];
|
|
6920
|
+
readonly discounts: io.flow.v0.models.BillingDiscount[];
|
|
6921
|
+
readonly net: number;
|
|
6922
|
+
readonly identifiers: Record<string, string>;
|
|
6923
|
+
readonly created_at: string;
|
|
6924
|
+
readonly updated_at: string;
|
|
6925
|
+
}
|
|
6926
|
+
|
|
6901
6927
|
interface FraudEmailRule {
|
|
6902
6928
|
readonly id?: string;
|
|
6903
6929
|
readonly email: string;
|
|
@@ -8533,6 +8559,7 @@ declare namespace io.flow.v0.models {
|
|
|
8533
8559
|
readonly discriminator: 'merchant_rejected';
|
|
8534
8560
|
readonly reason: io.flow.v0.enums.MerchantRejectedReason;
|
|
8535
8561
|
readonly description?: string;
|
|
8562
|
+
readonly deactivate_at?: string;
|
|
8536
8563
|
}
|
|
8537
8564
|
|
|
8538
8565
|
interface Money {
|
|
@@ -10546,6 +10573,7 @@ declare namespace io.flow.v0.models {
|
|
|
10546
10573
|
|
|
10547
10574
|
interface PayoutTransaction {
|
|
10548
10575
|
readonly id: string;
|
|
10576
|
+
readonly account: io.flow.v0.models.AccountIdReference;
|
|
10549
10577
|
readonly metadata?: io.flow.v0.unions.TransactionMetadata;
|
|
10550
10578
|
readonly order?: io.flow.v0.models.BillingChannelOrderSummary;
|
|
10551
10579
|
readonly payment_request?: io.flow.v0.models.BillingChannelPaymentRequestReference;
|
|
@@ -13421,6 +13449,7 @@ declare namespace io.flow.v0.models {
|
|
|
13421
13449
|
interface Transaction {
|
|
13422
13450
|
readonly statement?: io.flow.v0.models.BillingChannelStatementReference;
|
|
13423
13451
|
readonly id: string;
|
|
13452
|
+
readonly account: io.flow.v0.models.AccountIdReference;
|
|
13424
13453
|
readonly metadata?: io.flow.v0.unions.TransactionMetadata;
|
|
13425
13454
|
readonly order?: io.flow.v0.models.BillingChannelOrderSummary;
|
|
13426
13455
|
readonly payment_request?: io.flow.v0.models.BillingChannelPaymentRequestReference;
|
|
@@ -13450,6 +13479,7 @@ declare namespace io.flow.v0.models {
|
|
|
13450
13479
|
readonly label_created_at: string;
|
|
13451
13480
|
readonly carrier_id: string;
|
|
13452
13481
|
readonly carrier_tracking_number: string;
|
|
13482
|
+
readonly revenue_share_percentage: number;
|
|
13453
13483
|
readonly outbound?: io.flow.v0.models.TransactionMetadataCarrierChargeOutbound;
|
|
13454
13484
|
}
|
|
13455
13485
|
|
|
@@ -14414,6 +14444,7 @@ export type AbandonedOrderPromotionStatus =
|
|
|
14414
14444
|
export type AbandonedOrderSettingStatus =
|
|
14415
14445
|
io.flow.v0.enums.AbandonedOrderSettingStatus;
|
|
14416
14446
|
export type AbandonedOrderSettings = io.flow.v0.models.AbandonedOrderSettings;
|
|
14447
|
+
export type AccountIdReference = io.flow.v0.models.AccountIdReference;
|
|
14417
14448
|
export type AccountOrdersExportType = io.flow.v0.models.AccountOrdersExportType;
|
|
14418
14449
|
export type AccountReference = io.flow.v0.models.AccountReference;
|
|
14419
14450
|
export type AccountTransactionsExportType =
|
|
@@ -15146,6 +15177,7 @@ export type FlowCenterReference = io.flow.v0.models.FlowCenterReference;
|
|
|
15146
15177
|
export type FlowEntity = io.flow.v0.enums.FlowEntity;
|
|
15147
15178
|
export type FlowItemIndexMetadata = io.flow.v0.models.FlowItemIndexMetadata;
|
|
15148
15179
|
export type FlowRole = io.flow.v0.enums.FlowRole;
|
|
15180
|
+
export type FlowTransaction = io.flow.v0.models.FlowTransaction;
|
|
15149
15181
|
export type FraudEmailRule = io.flow.v0.models.FraudEmailRule;
|
|
15150
15182
|
export type FraudEmailRuleDecision = io.flow.v0.enums.FraudEmailRuleDecision;
|
|
15151
15183
|
export type FraudEmailRuleForm = io.flow.v0.models.FraudEmailRuleForm;
|