@flowio/types 11.24.91 → 11.24.92
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 +2001 -5012
- package/dist/api.d.ts +9 -152
- package/package.json +2 -2
- package/src/api-internal.ts +2017 -6535
- package/src/api.ts +10 -215
package/src/api.ts
CHANGED
|
@@ -3195,35 +3195,6 @@ declare namespace io.flow.v0.enums {
|
|
|
3195
3195
|
| 'discount'
|
|
3196
3196
|
| 'surcharges'
|
|
3197
3197
|
| 'tip';
|
|
3198
|
-
type OrderQuoteAddressType = 'shipping';
|
|
3199
|
-
type OrderQuoteErrorCode =
|
|
3200
|
-
| 'contact_email_invalid'
|
|
3201
|
-
| 'contact_email_required'
|
|
3202
|
-
| 'contact_phone_invalid'
|
|
3203
|
-
| 'contact_phone_required'
|
|
3204
|
-
| 'country_not_supported'
|
|
3205
|
-
| 'currency_invalid'
|
|
3206
|
-
| 'first_name_invalid'
|
|
3207
|
-
| 'first_name_required'
|
|
3208
|
-
| 'geo_required_when_no_session'
|
|
3209
|
-
| 'language_invalid'
|
|
3210
|
-
| 'last_name_invalid'
|
|
3211
|
-
| 'last_name_required'
|
|
3212
|
-
| 'line_item_number_invalid'
|
|
3213
|
-
| 'line_item_number_not_available'
|
|
3214
|
-
| 'line_not_found'
|
|
3215
|
-
| 'line_quantity_invalid'
|
|
3216
|
-
| 'line_value_threshold_exceeded'
|
|
3217
|
-
| 'name_missing_first_or_last'
|
|
3218
|
-
| 'name_required'
|
|
3219
|
-
| 'order_quote_requires_at_least_one_line'
|
|
3220
|
-
| 'session_not_found'
|
|
3221
|
-
| 'session_organization_mismatch';
|
|
3222
|
-
type OrderQuoteLineErrorCode =
|
|
3223
|
-
| 'line_item_number_invalid'
|
|
3224
|
-
| 'line_item_number_not_available'
|
|
3225
|
-
| 'line_quantity_invalid'
|
|
3226
|
-
| 'line_value_threshold_exceeded';
|
|
3227
3198
|
type OrderRefundSummaryIncludes = 'duties' | 'vat' | 'shipping';
|
|
3228
3199
|
type OrderRefundSummaryPartialCharged =
|
|
3229
3200
|
| 'per_item'
|
|
@@ -3435,6 +3406,7 @@ declare namespace io.flow.v0.enums {
|
|
|
3435
3406
|
type RefundDeclineCode = 'expired' | 'insufficient_funds' | 'unknown';
|
|
3436
3407
|
type RefundStatus = 'pending' | 'succeeded' | 'failed' | 'canceled';
|
|
3437
3408
|
type RegionType = 'state' | 'province' | 'jurisdiction';
|
|
3409
|
+
type RestrictedReviewStatus = 'in_review' | 'reviewed';
|
|
3438
3410
|
type ReturnItemStatus = 'returnable' | 'non-returnable';
|
|
3439
3411
|
type ReturnPolicyState = 'current' | 'deleting' | 'updating';
|
|
3440
3412
|
type ReturnStatus = 'open' | 'refunded';
|
|
@@ -9250,153 +9222,6 @@ declare namespace io.flow.v0.models {
|
|
|
9250
9222
|
readonly device_details?: io.flow.v0.unions.DeviceDetails;
|
|
9251
9223
|
}
|
|
9252
9224
|
|
|
9253
|
-
interface OrderQuote {
|
|
9254
|
-
readonly id: string;
|
|
9255
|
-
readonly form: io.flow.v0.models.OrderQuotePutForm;
|
|
9256
|
-
readonly summary?: io.flow.v0.models.OrderQuoteSummary;
|
|
9257
|
-
}
|
|
9258
|
-
|
|
9259
|
-
interface OrderQuoteAddress {
|
|
9260
|
-
readonly name?: string;
|
|
9261
|
-
readonly first_name?: string;
|
|
9262
|
-
readonly last_name?: string;
|
|
9263
|
-
readonly country?: string;
|
|
9264
|
-
readonly streets?: string[];
|
|
9265
|
-
readonly city?: string;
|
|
9266
|
-
readonly province?: string;
|
|
9267
|
-
readonly postal?: string;
|
|
9268
|
-
readonly company?: string;
|
|
9269
|
-
}
|
|
9270
|
-
|
|
9271
|
-
interface OrderQuoteContact {
|
|
9272
|
-
readonly email?: string;
|
|
9273
|
-
readonly phone?: string;
|
|
9274
|
-
}
|
|
9275
|
-
|
|
9276
|
-
interface OrderQuoteError {
|
|
9277
|
-
readonly errors: io.flow.v0.models.OrderQuoteErrorDetails[];
|
|
9278
|
-
}
|
|
9279
|
-
|
|
9280
|
-
interface OrderQuoteErrorDetails {
|
|
9281
|
-
readonly code: io.flow.v0.enums.OrderQuoteErrorCode;
|
|
9282
|
-
readonly message: string;
|
|
9283
|
-
}
|
|
9284
|
-
|
|
9285
|
-
interface OrderQuoteGeoPutForm {
|
|
9286
|
-
readonly country?: string;
|
|
9287
|
-
readonly ip?: string;
|
|
9288
|
-
readonly currency?: string;
|
|
9289
|
-
readonly language?: string;
|
|
9290
|
-
}
|
|
9291
|
-
|
|
9292
|
-
interface OrderQuoteLine {
|
|
9293
|
-
readonly id: string;
|
|
9294
|
-
readonly item: io.flow.v0.models.OrderSummaryItem;
|
|
9295
|
-
readonly errors?: io.flow.v0.models.OrderQuoteLineError[];
|
|
9296
|
-
readonly quantity: number;
|
|
9297
|
-
readonly discount?: io.flow.v0.models.OrderQuoteLineDiscount;
|
|
9298
|
-
readonly tax?: io.flow.v0.models.OrderQuoteSummaryTax;
|
|
9299
|
-
readonly duty?: io.flow.v0.models.OrderQuoteSummaryDuty;
|
|
9300
|
-
readonly unit_price: io.flow.v0.unions.OrderQuotePrice;
|
|
9301
|
-
readonly total: io.flow.v0.unions.OrderQuotePrice;
|
|
9302
|
-
readonly price_attributes: Record<
|
|
9303
|
-
string,
|
|
9304
|
-
io.flow.v0.models.OrderQuotePriceStandard
|
|
9305
|
-
>;
|
|
9306
|
-
readonly attributes: Record<string, string>;
|
|
9307
|
-
}
|
|
9308
|
-
|
|
9309
|
-
interface OrderQuoteLineDiscount {
|
|
9310
|
-
readonly applied: io.flow.v0.models.OrderQuotePriceStandard;
|
|
9311
|
-
readonly label?: string;
|
|
9312
|
-
}
|
|
9313
|
-
|
|
9314
|
-
interface OrderQuoteLineError {
|
|
9315
|
-
readonly code: io.flow.v0.enums.OrderQuoteLineErrorCode;
|
|
9316
|
-
readonly message: string;
|
|
9317
|
-
}
|
|
9318
|
-
|
|
9319
|
-
interface OrderQuotePriceEstimated {
|
|
9320
|
-
readonly discriminator: 'estimated';
|
|
9321
|
-
readonly amount: number;
|
|
9322
|
-
readonly currency: string;
|
|
9323
|
-
readonly label: string;
|
|
9324
|
-
}
|
|
9325
|
-
|
|
9326
|
-
interface OrderQuotePriceFree {
|
|
9327
|
-
readonly discriminator: 'free';
|
|
9328
|
-
readonly placeholder?: string;
|
|
9329
|
-
}
|
|
9330
|
-
|
|
9331
|
-
interface OrderQuotePriceIncluded {
|
|
9332
|
-
readonly discriminator: 'included';
|
|
9333
|
-
readonly placeholder?: string;
|
|
9334
|
-
}
|
|
9335
|
-
|
|
9336
|
-
interface OrderQuotePriceNotYetKnown {
|
|
9337
|
-
readonly discriminator: 'not_yet_known';
|
|
9338
|
-
readonly placeholder?: string;
|
|
9339
|
-
}
|
|
9340
|
-
|
|
9341
|
-
interface OrderQuotePriceStandard {
|
|
9342
|
-
readonly discriminator: 'price';
|
|
9343
|
-
readonly amount: number;
|
|
9344
|
-
readonly currency: string;
|
|
9345
|
-
readonly label: string;
|
|
9346
|
-
}
|
|
9347
|
-
|
|
9348
|
-
interface OrderQuotePutForm {
|
|
9349
|
-
readonly line_items?: io.flow.v0.models.LineItemForm[];
|
|
9350
|
-
readonly session?: io.flow.v0.models.SessionReference;
|
|
9351
|
-
readonly geo?: io.flow.v0.models.OrderQuoteGeoPutForm;
|
|
9352
|
-
}
|
|
9353
|
-
|
|
9354
|
-
interface OrderQuoteReference {
|
|
9355
|
-
readonly id: string;
|
|
9356
|
-
}
|
|
9357
|
-
|
|
9358
|
-
interface OrderQuoteSummary {
|
|
9359
|
-
readonly items: io.flow.v0.models.OrderQuoteSummaryItems;
|
|
9360
|
-
readonly shipping?: io.flow.v0.models.OrderQuoteSummaryShipping;
|
|
9361
|
-
readonly tax?: io.flow.v0.models.OrderQuoteSummaryTax;
|
|
9362
|
-
readonly duty?: io.flow.v0.models.OrderQuoteSummaryDuty;
|
|
9363
|
-
readonly total: io.flow.v0.models.OrderQuoteSummaryTotal;
|
|
9364
|
-
readonly balance: io.flow.v0.unions.OrderQuotePrice;
|
|
9365
|
-
}
|
|
9366
|
-
|
|
9367
|
-
interface OrderQuoteSummaryDuty {
|
|
9368
|
-
readonly name: string;
|
|
9369
|
-
readonly total: io.flow.v0.unions.OrderQuotePrice;
|
|
9370
|
-
}
|
|
9371
|
-
|
|
9372
|
-
interface OrderQuoteSummaryItems {
|
|
9373
|
-
readonly lines: io.flow.v0.models.OrderQuoteLine[];
|
|
9374
|
-
readonly total: io.flow.v0.unions.OrderQuotePrice;
|
|
9375
|
-
}
|
|
9376
|
-
|
|
9377
|
-
interface OrderQuoteSummaryShipping {
|
|
9378
|
-
readonly total: io.flow.v0.unions.OrderQuotePrice;
|
|
9379
|
-
readonly freight?: io.flow.v0.models.OrderQuoteSummaryShippingFreight;
|
|
9380
|
-
readonly surcharges?: io.flow.v0.models.OrderQuoteSummaryShippingSurcharges;
|
|
9381
|
-
}
|
|
9382
|
-
|
|
9383
|
-
interface OrderQuoteSummaryShippingFreight {
|
|
9384
|
-
readonly total: io.flow.v0.unions.OrderQuotePrice;
|
|
9385
|
-
}
|
|
9386
|
-
|
|
9387
|
-
interface OrderQuoteSummaryShippingSurcharges {
|
|
9388
|
-
readonly total: io.flow.v0.unions.OrderQuotePrice;
|
|
9389
|
-
}
|
|
9390
|
-
|
|
9391
|
-
interface OrderQuoteSummaryTax {
|
|
9392
|
-
readonly name: string;
|
|
9393
|
-
readonly total: io.flow.v0.unions.OrderQuotePrice;
|
|
9394
|
-
}
|
|
9395
|
-
|
|
9396
|
-
interface OrderQuoteSummaryTotal {
|
|
9397
|
-
readonly total: io.flow.v0.unions.OrderQuotePrice;
|
|
9398
|
-
}
|
|
9399
|
-
|
|
9400
9225
|
interface OrderReference {
|
|
9401
9226
|
readonly discriminator: 'order_reference';
|
|
9402
9227
|
readonly id: string;
|
|
@@ -11081,6 +10906,7 @@ declare namespace io.flow.v0.models {
|
|
|
11081
10906
|
readonly product_id: string;
|
|
11082
10907
|
readonly item_numbers: string[];
|
|
11083
10908
|
readonly prohibited_regions: string[];
|
|
10909
|
+
readonly reasons_per_region?: io.flow.v0.models.ReasonsPerRegion[];
|
|
11084
10910
|
readonly review_status?: io.flow.v0.enums.ReviewStatus;
|
|
11085
10911
|
readonly rules?: io.flow.v0.enums.ProductRestrictionRule[];
|
|
11086
10912
|
readonly updated_by?: string;
|
|
@@ -11547,6 +11373,12 @@ declare namespace io.flow.v0.models {
|
|
|
11547
11373
|
readonly ready_to_fulfill: io.flow.v0.models.ReadyToFulfillDetails;
|
|
11548
11374
|
}
|
|
11549
11375
|
|
|
11376
|
+
interface ReasonsPerRegion {
|
|
11377
|
+
readonly region: string;
|
|
11378
|
+
readonly reasons: string[];
|
|
11379
|
+
readonly review_status: io.flow.v0.enums.RestrictedReviewStatus;
|
|
11380
|
+
}
|
|
11381
|
+
|
|
11550
11382
|
interface RedirectAuthorizationDetails {
|
|
11551
11383
|
readonly discriminator: 'redirect_authorization_details';
|
|
11552
11384
|
readonly id: string;
|
|
@@ -14383,12 +14215,6 @@ declare namespace io.flow.v0.unions {
|
|
|
14383
14215
|
| io.flow.v0.models.OrderNumberGeneratorPrefixSuffix;
|
|
14384
14216
|
type OrderPromotion = io.flow.v0.models.FreeShippingOrderPromotion;
|
|
14385
14217
|
type OrderPromotionForm = io.flow.v0.models.FreeShippingOrderPromotionForm;
|
|
14386
|
-
type OrderQuotePrice =
|
|
14387
|
-
| io.flow.v0.models.OrderQuotePriceFree
|
|
14388
|
-
| io.flow.v0.models.OrderQuotePriceNotYetKnown
|
|
14389
|
-
| io.flow.v0.models.OrderQuotePriceIncluded
|
|
14390
|
-
| io.flow.v0.models.OrderQuotePriceStandard
|
|
14391
|
-
| io.flow.v0.models.OrderQuotePriceEstimated;
|
|
14392
14218
|
type OrderRefundSummaryForm =
|
|
14393
14219
|
| io.flow.v0.models.OrderRefundSummaryFullForm
|
|
14394
14220
|
| io.flow.v0.models.OrderRefundSummaryPartialForm;
|
|
@@ -15813,39 +15639,6 @@ export type OrderPromotion = io.flow.v0.unions.OrderPromotion;
|
|
|
15813
15639
|
export type OrderPromotionForm = io.flow.v0.unions.OrderPromotionForm;
|
|
15814
15640
|
export type OrderPromotionTrigger = io.flow.v0.models.OrderPromotionTrigger;
|
|
15815
15641
|
export type OrderPutForm = io.flow.v0.models.OrderPutForm;
|
|
15816
|
-
export type OrderQuote = io.flow.v0.models.OrderQuote;
|
|
15817
|
-
export type OrderQuoteAddress = io.flow.v0.models.OrderQuoteAddress;
|
|
15818
|
-
export type OrderQuoteAddressType = io.flow.v0.enums.OrderQuoteAddressType;
|
|
15819
|
-
export type OrderQuoteContact = io.flow.v0.models.OrderQuoteContact;
|
|
15820
|
-
export type OrderQuoteError = io.flow.v0.models.OrderQuoteError;
|
|
15821
|
-
export type OrderQuoteErrorCode = io.flow.v0.enums.OrderQuoteErrorCode;
|
|
15822
|
-
export type OrderQuoteErrorDetails = io.flow.v0.models.OrderQuoteErrorDetails;
|
|
15823
|
-
export type OrderQuoteGeoPutForm = io.flow.v0.models.OrderQuoteGeoPutForm;
|
|
15824
|
-
export type OrderQuoteLine = io.flow.v0.models.OrderQuoteLine;
|
|
15825
|
-
export type OrderQuoteLineDiscount = io.flow.v0.models.OrderQuoteLineDiscount;
|
|
15826
|
-
export type OrderQuoteLineError = io.flow.v0.models.OrderQuoteLineError;
|
|
15827
|
-
export type OrderQuoteLineErrorCode = io.flow.v0.enums.OrderQuoteLineErrorCode;
|
|
15828
|
-
export type OrderQuotePrice = io.flow.v0.unions.OrderQuotePrice;
|
|
15829
|
-
export type OrderQuotePriceEstimated =
|
|
15830
|
-
io.flow.v0.models.OrderQuotePriceEstimated;
|
|
15831
|
-
export type OrderQuotePriceFree = io.flow.v0.models.OrderQuotePriceFree;
|
|
15832
|
-
export type OrderQuotePriceIncluded = io.flow.v0.models.OrderQuotePriceIncluded;
|
|
15833
|
-
export type OrderQuotePriceNotYetKnown =
|
|
15834
|
-
io.flow.v0.models.OrderQuotePriceNotYetKnown;
|
|
15835
|
-
export type OrderQuotePriceStandard = io.flow.v0.models.OrderQuotePriceStandard;
|
|
15836
|
-
export type OrderQuotePutForm = io.flow.v0.models.OrderQuotePutForm;
|
|
15837
|
-
export type OrderQuoteReference = io.flow.v0.models.OrderQuoteReference;
|
|
15838
|
-
export type OrderQuoteSummary = io.flow.v0.models.OrderQuoteSummary;
|
|
15839
|
-
export type OrderQuoteSummaryDuty = io.flow.v0.models.OrderQuoteSummaryDuty;
|
|
15840
|
-
export type OrderQuoteSummaryItems = io.flow.v0.models.OrderQuoteSummaryItems;
|
|
15841
|
-
export type OrderQuoteSummaryShipping =
|
|
15842
|
-
io.flow.v0.models.OrderQuoteSummaryShipping;
|
|
15843
|
-
export type OrderQuoteSummaryShippingFreight =
|
|
15844
|
-
io.flow.v0.models.OrderQuoteSummaryShippingFreight;
|
|
15845
|
-
export type OrderQuoteSummaryShippingSurcharges =
|
|
15846
|
-
io.flow.v0.models.OrderQuoteSummaryShippingSurcharges;
|
|
15847
|
-
export type OrderQuoteSummaryTax = io.flow.v0.models.OrderQuoteSummaryTax;
|
|
15848
|
-
export type OrderQuoteSummaryTotal = io.flow.v0.models.OrderQuoteSummaryTotal;
|
|
15849
15642
|
export type OrderReference = io.flow.v0.models.OrderReference;
|
|
15850
15643
|
export type OrderRefundSummary = io.flow.v0.models.OrderRefundSummary;
|
|
15851
15644
|
export type OrderRefundSummaryAmounts =
|
|
@@ -16328,6 +16121,7 @@ export type RatecardVersion = io.flow.v0.models.RatecardVersion;
|
|
|
16328
16121
|
export type ReadyToFulfill = io.flow.v0.models.ReadyToFulfill;
|
|
16329
16122
|
export type ReadyToFulfillDetails = io.flow.v0.models.ReadyToFulfillDetails;
|
|
16330
16123
|
export type ReadyToFulfillV2 = io.flow.v0.models.ReadyToFulfillV2;
|
|
16124
|
+
export type ReasonsPerRegion = io.flow.v0.models.ReasonsPerRegion;
|
|
16331
16125
|
export type RedirectAuthorizationDetails =
|
|
16332
16126
|
io.flow.v0.models.RedirectAuthorizationDetails;
|
|
16333
16127
|
export type RedirectAuthorizationForm =
|
|
@@ -16374,6 +16168,7 @@ export type ReservationItemReference =
|
|
|
16374
16168
|
io.flow.v0.models.ReservationItemReference;
|
|
16375
16169
|
export type ReservationOrderReference =
|
|
16376
16170
|
io.flow.v0.models.ReservationOrderReference;
|
|
16171
|
+
export type RestrictedReviewStatus = io.flow.v0.enums.RestrictedReviewStatus;
|
|
16377
16172
|
export type Return = io.flow.v0.models.Return;
|
|
16378
16173
|
export type ReturnDeleted = io.flow.v0.models.ReturnDeleted;
|
|
16379
16174
|
export type ReturnDeletedV2 = io.flow.v0.models.ReturnDeletedV2;
|