@flowio/types 11.24.68 → 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/dist/api-internal.d.ts +209 -189
- package/dist/api.d.ts +88 -7
- package/package.json +2 -2
- package/src/api-internal.ts +271 -246
- package/src/api.ts +113 -5
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;
|
|
@@ -1132,9 +1134,11 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
1132
1134
|
}
|
|
1133
1135
|
|
|
1134
1136
|
interface ThreeDSecureCharge {
|
|
1137
|
+
readonly authenticated?: boolean;
|
|
1135
1138
|
readonly authentication_flow?: io.flow.stripe.v0.enums.ThreeDsAuthenticationFlow;
|
|
1136
1139
|
readonly result?: io.flow.stripe.v0.enums.ThreeDsResult;
|
|
1137
1140
|
readonly result_reason?: io.flow.stripe.v0.enums.ThreeDsResultReason;
|
|
1141
|
+
readonly succeeded?: boolean;
|
|
1138
1142
|
readonly version?: string;
|
|
1139
1143
|
}
|
|
1140
1144
|
|
|
@@ -2327,8 +2331,8 @@ declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.enums {
|
|
|
2327
2331
|
| 'oversize'
|
|
2328
2332
|
| 'duties_paid'
|
|
2329
2333
|
| 'emergency'
|
|
2330
|
-
| 'peak'
|
|
2331
|
-
|
|
2334
|
+
| 'peak'
|
|
2335
|
+
| 'address_correction';
|
|
2332
2336
|
}
|
|
2333
2337
|
|
|
2334
2338
|
declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.models {
|
|
@@ -2352,11 +2356,44 @@ declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.models {
|
|
|
2352
2356
|
readonly metadata: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelMetadata;
|
|
2353
2357
|
}
|
|
2354
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
|
+
|
|
2355
2386
|
interface LabelMetadata {
|
|
2356
2387
|
readonly ratecard: io.flow.billing.RESERVED_WORD_true.up.v0.models.MetadataRatecard;
|
|
2357
2388
|
readonly weights: io.flow.billing.RESERVED_WORD_true.up.v0.models.MetadataWeights;
|
|
2358
2389
|
}
|
|
2359
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
|
+
|
|
2360
2397
|
interface LabelSurcharge {
|
|
2361
2398
|
readonly amount: number;
|
|
2362
2399
|
readonly type: io.flow.billing.RESERVED_WORD_true.up.v0.enums.TrueUpSurchargeType;
|
|
@@ -2378,6 +2415,22 @@ declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.models {
|
|
|
2378
2415
|
readonly percentage: number;
|
|
2379
2416
|
}
|
|
2380
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
|
+
|
|
2381
2434
|
interface LabelUnits {
|
|
2382
2435
|
readonly currency: string;
|
|
2383
2436
|
readonly weight: io.flow.units.v0.enums.UnitOfWeight;
|
|
@@ -2395,7 +2448,6 @@ declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.models {
|
|
|
2395
2448
|
}
|
|
2396
2449
|
|
|
2397
2450
|
interface MetadataWeights {
|
|
2398
|
-
readonly selected: io.flow.billing.RESERVED_WORD_true.up.v0.enums.WeightSelection;
|
|
2399
2451
|
readonly dead?: io.flow.billing.RESERVED_WORD_true.up.v0.models.WeightsDead;
|
|
2400
2452
|
readonly dimensional?: io.flow.billing.RESERVED_WORD_true.up.v0.models.WeightsDimensional;
|
|
2401
2453
|
}
|
|
@@ -3031,6 +3083,7 @@ declare namespace io.flow.v0.enums {
|
|
|
3031
3083
|
| 'card'
|
|
3032
3084
|
| 'online'
|
|
3033
3085
|
| 'credit'
|
|
3086
|
+
| 'external'
|
|
3034
3087
|
| 'subsidized'
|
|
3035
3088
|
| 'installment_plan'
|
|
3036
3089
|
| 'cash_on_delivery';
|
|
@@ -3165,7 +3218,8 @@ declare namespace io.flow.v0.enums {
|
|
|
3165
3218
|
| 'order_restricted_goods'
|
|
3166
3219
|
| 'order_unsupported_destination'
|
|
3167
3220
|
| 'order_missing_information'
|
|
3168
|
-
| 'order_domestic'
|
|
3221
|
+
| 'order_domestic'
|
|
3222
|
+
| 'order_mismatched_currencies';
|
|
3169
3223
|
type PaymentRequestReviewStatus = 'pending' | 'approved' | 'rejected';
|
|
3170
3224
|
type PaymentSourceConfirmationActionType =
|
|
3171
3225
|
| 'cvv'
|
|
@@ -3401,6 +3455,7 @@ declare namespace io.flow.v0.enums {
|
|
|
3401
3455
|
| 'reversal'
|
|
3402
3456
|
| 'shipping_label'
|
|
3403
3457
|
| 'shipping_label_service'
|
|
3458
|
+
| 'trueup'
|
|
3404
3459
|
| 'shipping_label_revenue_share'
|
|
3405
3460
|
| 'platform_fee'
|
|
3406
3461
|
| 'tax'
|
|
@@ -3413,6 +3468,15 @@ declare namespace io.flow.v0.enums {
|
|
|
3413
3468
|
| 'order_service'
|
|
3414
3469
|
| 'virtual_card_capture'
|
|
3415
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';
|
|
3416
3480
|
type UnitOfLength = 'millimeter' | 'centimeter' | 'inch' | 'foot' | 'meter';
|
|
3417
3481
|
type UnitOfMeasurement =
|
|
3418
3482
|
| 'millimeter'
|
|
@@ -7746,6 +7810,7 @@ declare namespace io.flow.v0.models {
|
|
|
7746
7810
|
readonly discriminator: 'know_your_business_usa';
|
|
7747
7811
|
readonly id: string;
|
|
7748
7812
|
readonly organization_id: string;
|
|
7813
|
+
readonly shop?: io.flow.v0.models.Shop;
|
|
7749
7814
|
readonly primary_entity: io.flow.v0.unions.Entity;
|
|
7750
7815
|
readonly parent_company?: io.flow.v0.models.Company;
|
|
7751
7816
|
readonly ultimate_parent_company?: io.flow.v0.models.Company;
|
|
@@ -9363,6 +9428,7 @@ declare namespace io.flow.v0.models {
|
|
|
9363
9428
|
readonly current_state: io.flow.v0.unions.OnboardingState;
|
|
9364
9429
|
readonly started_at?: string;
|
|
9365
9430
|
readonly time_blocked?: number;
|
|
9431
|
+
readonly time_in_setup?: number;
|
|
9366
9432
|
readonly blocked_since?: string;
|
|
9367
9433
|
readonly completed_at?: string;
|
|
9368
9434
|
readonly onboarding_started_at?: string;
|
|
@@ -13183,6 +13249,20 @@ declare namespace io.flow.v0.models {
|
|
|
13183
13249
|
readonly request_method?: io.flow.v0.enums.LabelRequestMethod;
|
|
13184
13250
|
}
|
|
13185
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
|
+
|
|
13186
13266
|
interface TransactionNetworkDetailsCard {
|
|
13187
13267
|
readonly network_transaction_id?: string;
|
|
13188
13268
|
readonly network?: io.flow.v0.enums.CardType;
|
|
@@ -13215,6 +13295,23 @@ declare namespace io.flow.v0.models {
|
|
|
13215
13295
|
readonly to: number;
|
|
13216
13296
|
}
|
|
13217
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
|
+
|
|
13218
13315
|
interface UltimateBeneficiaryOwner {
|
|
13219
13316
|
readonly name: string;
|
|
13220
13317
|
readonly dob: string;
|
|
@@ -14032,7 +14129,9 @@ declare namespace io.flow.v0.unions {
|
|
|
14032
14129
|
| io.flow.v0.models.OrganizationTokenV2Reference
|
|
14033
14130
|
| io.flow.v0.models.PartnerTokenReference;
|
|
14034
14131
|
type TransactionDetails = io.flow.v0.models.TransactionDetailsCard;
|
|
14035
|
-
type TransactionMetadata =
|
|
14132
|
+
type TransactionMetadata =
|
|
14133
|
+
| io.flow.v0.models.TransactionMetadataShippingLabel
|
|
14134
|
+
| io.flow.v0.models.TransactionMetadataTrueup;
|
|
14036
14135
|
}
|
|
14037
14136
|
|
|
14038
14137
|
export type AbandonedOrderEmailSettings =
|
|
@@ -16150,6 +16249,10 @@ export type TransactionDetailsCard = io.flow.v0.models.TransactionDetailsCard;
|
|
|
16150
16249
|
export type TransactionMetadata = io.flow.v0.unions.TransactionMetadata;
|
|
16151
16250
|
export type TransactionMetadataShippingLabel =
|
|
16152
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;
|
|
16153
16256
|
export type TransactionNetworkDetailsCard =
|
|
16154
16257
|
io.flow.v0.models.TransactionNetworkDetailsCard;
|
|
16155
16258
|
export type TransactionPayoutPendingReason =
|
|
@@ -16159,6 +16262,11 @@ export type TransactionSource = io.flow.v0.enums.TransactionSource;
|
|
|
16159
16262
|
export type TransactionUpserted = io.flow.v0.models.TransactionUpserted;
|
|
16160
16263
|
export type TransitEstimate = io.flow.v0.models.TransitEstimate;
|
|
16161
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;
|
|
16162
16270
|
export type UltimateBeneficiaryOwner =
|
|
16163
16271
|
io.flow.v0.models.UltimateBeneficiaryOwner;
|
|
16164
16272
|
export type UnharmonizedItemExportType =
|