@flowio/types 11.24.69 → 11.24.70

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/api.ts CHANGED
@@ -511,6 +511,7 @@ declare namespace io.flow.stripe.v0.models {
511
511
  readonly id: string;
512
512
  readonly amount: number;
513
513
  readonly amount_refunded: number;
514
+ readonly authorization_code?: string;
514
515
  readonly captured: boolean;
515
516
  readonly created: number;
516
517
  readonly currency: string;
@@ -561,6 +562,7 @@ declare namespace io.flow.stripe.v0.models {
561
562
  readonly id: string;
562
563
  readonly amount: number;
563
564
  readonly amount_refunded: number;
565
+ readonly authorization_code?: string;
564
566
  readonly captured: boolean;
565
567
  readonly created: number;
566
568
  readonly currency: string;
@@ -2329,8 +2331,8 @@ declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.enums {
2329
2331
  | 'oversize'
2330
2332
  | 'duties_paid'
2331
2333
  | 'emergency'
2332
- | 'peak';
2333
- type WeightSelection = 'dead' | 'dimensional';
2334
+ | 'peak'
2335
+ | 'address_correction';
2334
2336
  }
2335
2337
 
2336
2338
  declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.models {
@@ -2354,11 +2356,44 @@ declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.models {
2354
2356
  readonly metadata: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelMetadata;
2355
2357
  }
2356
2358
 
2359
+ interface LabelInvoiceResponseFile {
2360
+ readonly id: string;
2361
+ readonly url: string;
2362
+ readonly created_at: string;
2363
+ readonly result?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelInvoiceResponseFileResult;
2364
+ }
2365
+
2366
+ interface LabelInvoiceResponseFileForm {
2367
+ readonly url: string;
2368
+ }
2369
+
2370
+ interface LabelInvoiceResponseFileResult {
2371
+ readonly processed_at: string;
2372
+ readonly number_lines_successful: number;
2373
+ readonly number_lines_with_errors: number;
2374
+ readonly errors_url?: string;
2375
+ }
2376
+
2377
+ interface LabelInvoiceResponseForm {
2378
+ readonly id: string;
2379
+ readonly label_invoice_request_id: string;
2380
+ readonly units: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelResponseUnits;
2381
+ readonly base: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelBase;
2382
+ readonly surcharges: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeForm;
2383
+ readonly total: number;
2384
+ }
2385
+
2357
2386
  interface LabelMetadata {
2358
2387
  readonly ratecard: io.flow.billing.RESERVED_WORD_true.up.v0.models.MetadataRatecard;
2359
2388
  readonly weights: io.flow.billing.RESERVED_WORD_true.up.v0.models.MetadataWeights;
2360
2389
  }
2361
2390
 
2391
+ interface LabelResponseUnits {
2392
+ readonly currency: string;
2393
+ readonly weight: io.flow.units.v0.enums.UnitOfWeight;
2394
+ readonly length?: io.flow.units.v0.enums.UnitOfLength;
2395
+ }
2396
+
2362
2397
  interface LabelSurcharge {
2363
2398
  readonly amount: number;
2364
2399
  readonly type: io.flow.billing.RESERVED_WORD_true.up.v0.enums.TrueUpSurchargeType;
@@ -2380,6 +2415,22 @@ declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.models {
2380
2415
  readonly percentage: number;
2381
2416
  }
2382
2417
 
2418
+ interface LabelSurchargeForm {
2419
+ readonly fuel?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
2420
+ readonly remote_area?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
2421
+ readonly oversize?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
2422
+ readonly duties_paid?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
2423
+ readonly emergency?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
2424
+ readonly peak?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
2425
+ readonly address_correction?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
2426
+ }
2427
+
2428
+ interface LabelSurchargeSingleForm {
2429
+ readonly amount: number;
2430
+ readonly percentage?: number;
2431
+ readonly fee_per_weight_unit?: number;
2432
+ }
2433
+
2383
2434
  interface LabelUnits {
2384
2435
  readonly currency: string;
2385
2436
  readonly weight: io.flow.units.v0.enums.UnitOfWeight;
@@ -2397,7 +2448,6 @@ declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.models {
2397
2448
  }
2398
2449
 
2399
2450
  interface MetadataWeights {
2400
- readonly selected: io.flow.billing.RESERVED_WORD_true.up.v0.enums.WeightSelection;
2401
2451
  readonly dead?: io.flow.billing.RESERVED_WORD_true.up.v0.models.WeightsDead;
2402
2452
  readonly dimensional?: io.flow.billing.RESERVED_WORD_true.up.v0.models.WeightsDimensional;
2403
2453
  }
@@ -3033,6 +3083,7 @@ declare namespace io.flow.v0.enums {
3033
3083
  | 'card'
3034
3084
  | 'online'
3035
3085
  | 'credit'
3086
+ | 'external'
3036
3087
  | 'subsidized'
3037
3088
  | 'installment_plan'
3038
3089
  | 'cash_on_delivery';
@@ -3404,6 +3455,7 @@ declare namespace io.flow.v0.enums {
3404
3455
  | 'reversal'
3405
3456
  | 'shipping_label'
3406
3457
  | 'shipping_label_service'
3458
+ | 'trueup'
3407
3459
  | 'shipping_label_revenue_share'
3408
3460
  | 'platform_fee'
3409
3461
  | 'tax'
@@ -3416,6 +3468,15 @@ declare namespace io.flow.v0.enums {
3416
3468
  | 'order_service'
3417
3469
  | 'virtual_card_capture'
3418
3470
  | 'virtual_card_refund';
3471
+ type TrueupSource = 'flow' | 'channel' | 'dhl-parcel' | 'dhl';
3472
+ type TrueupSurchargeType =
3473
+ | 'fuel'
3474
+ | 'remote_area'
3475
+ | 'oversize'
3476
+ | 'duties_paid'
3477
+ | 'emergency'
3478
+ | 'peak'
3479
+ | 'address_correction';
3419
3480
  type UnitOfLength = 'millimeter' | 'centimeter' | 'inch' | 'foot' | 'meter';
3420
3481
  type UnitOfMeasurement =
3421
3482
  | 'millimeter'
@@ -9367,6 +9428,7 @@ declare namespace io.flow.v0.models {
9367
9428
  readonly current_state: io.flow.v0.unions.OnboardingState;
9368
9429
  readonly started_at?: string;
9369
9430
  readonly time_blocked?: number;
9431
+ readonly time_in_setup?: number;
9370
9432
  readonly blocked_since?: string;
9371
9433
  readonly completed_at?: string;
9372
9434
  readonly onboarding_started_at?: string;
@@ -13187,6 +13249,20 @@ declare namespace io.flow.v0.models {
13187
13249
  readonly request_method?: io.flow.v0.enums.LabelRequestMethod;
13188
13250
  }
13189
13251
 
13252
+ interface TransactionMetadataTrueup {
13253
+ readonly discriminator: 'trueup';
13254
+ readonly estimate: io.flow.v0.models.TransactionMetadataTrueupData;
13255
+ readonly actual: io.flow.v0.models.TransactionMetadataTrueupData;
13256
+ }
13257
+
13258
+ interface TransactionMetadataTrueupData {
13259
+ readonly source: io.flow.v0.enums.TrueupSource;
13260
+ readonly units: io.flow.v0.models.TrueupLabelUnits;
13261
+ readonly base: io.flow.v0.models.TrueupLabelBase;
13262
+ readonly surcharges: io.flow.v0.models.TrueupLabelSurcharge[];
13263
+ readonly total: number;
13264
+ }
13265
+
13190
13266
  interface TransactionNetworkDetailsCard {
13191
13267
  readonly network_transaction_id?: string;
13192
13268
  readonly network?: io.flow.v0.enums.CardType;
@@ -13219,6 +13295,23 @@ declare namespace io.flow.v0.models {
13219
13295
  readonly to: number;
13220
13296
  }
13221
13297
 
13298
+ interface TrueupLabelBase {
13299
+ readonly amount: number;
13300
+ readonly weight: number;
13301
+ }
13302
+
13303
+ interface TrueupLabelSurcharge {
13304
+ readonly amount: number;
13305
+ readonly type: io.flow.v0.enums.TrueupSurchargeType;
13306
+ readonly percentage?: number;
13307
+ readonly per_weight_unit?: number;
13308
+ }
13309
+
13310
+ interface TrueupLabelUnits {
13311
+ readonly weight: io.flow.v0.enums.UnitOfWeight;
13312
+ readonly length?: io.flow.v0.enums.UnitOfLength;
13313
+ }
13314
+
13222
13315
  interface UltimateBeneficiaryOwner {
13223
13316
  readonly name: string;
13224
13317
  readonly dob: string;
@@ -14036,7 +14129,9 @@ declare namespace io.flow.v0.unions {
14036
14129
  | io.flow.v0.models.OrganizationTokenV2Reference
14037
14130
  | io.flow.v0.models.PartnerTokenReference;
14038
14131
  type TransactionDetails = io.flow.v0.models.TransactionDetailsCard;
14039
- type TransactionMetadata = io.flow.v0.models.TransactionMetadataShippingLabel;
14132
+ type TransactionMetadata =
14133
+ | io.flow.v0.models.TransactionMetadataShippingLabel
14134
+ | io.flow.v0.models.TransactionMetadataTrueup;
14040
14135
  }
14041
14136
 
14042
14137
  export type AbandonedOrderEmailSettings =
@@ -16154,6 +16249,10 @@ export type TransactionDetailsCard = io.flow.v0.models.TransactionDetailsCard;
16154
16249
  export type TransactionMetadata = io.flow.v0.unions.TransactionMetadata;
16155
16250
  export type TransactionMetadataShippingLabel =
16156
16251
  io.flow.v0.models.TransactionMetadataShippingLabel;
16252
+ export type TransactionMetadataTrueup =
16253
+ io.flow.v0.models.TransactionMetadataTrueup;
16254
+ export type TransactionMetadataTrueupData =
16255
+ io.flow.v0.models.TransactionMetadataTrueupData;
16157
16256
  export type TransactionNetworkDetailsCard =
16158
16257
  io.flow.v0.models.TransactionNetworkDetailsCard;
16159
16258
  export type TransactionPayoutPendingReason =
@@ -16163,6 +16262,11 @@ export type TransactionSource = io.flow.v0.enums.TransactionSource;
16163
16262
  export type TransactionUpserted = io.flow.v0.models.TransactionUpserted;
16164
16263
  export type TransitEstimate = io.flow.v0.models.TransitEstimate;
16165
16264
  export type TransitWindow = io.flow.v0.models.TransitWindow;
16265
+ export type TrueupLabelBase = io.flow.v0.models.TrueupLabelBase;
16266
+ export type TrueupLabelSurcharge = io.flow.v0.models.TrueupLabelSurcharge;
16267
+ export type TrueupLabelUnits = io.flow.v0.models.TrueupLabelUnits;
16268
+ export type TrueupSource = io.flow.v0.enums.TrueupSource;
16269
+ export type TrueupSurchargeType = io.flow.v0.enums.TrueupSurchargeType;
16166
16270
  export type UltimateBeneficiaryOwner =
16167
16271
  io.flow.v0.models.UltimateBeneficiaryOwner;
16168
16272
  export type UnharmonizedItemExportType =