@flowio/api-prop-types 10.16.55 → 10.16.56
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/lib/api.d.ts +96 -6
- package/lib/api.js +1 -1
- package/package.json +2 -2
- package/src/api.d.ts +96 -6
- package/src/api.js +121 -7
package/lib/api.d.ts
CHANGED
|
@@ -300,6 +300,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
300
300
|
readonly 'id': string;
|
|
301
301
|
readonly 'amount': number;
|
|
302
302
|
readonly 'amount_refunded': number;
|
|
303
|
+
readonly 'authorization_code'?: string;
|
|
303
304
|
readonly 'captured': boolean;
|
|
304
305
|
readonly 'created': number;
|
|
305
306
|
readonly 'currency': string;
|
|
@@ -350,6 +351,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
350
351
|
readonly 'id': string;
|
|
351
352
|
readonly 'amount': number;
|
|
352
353
|
readonly 'amount_refunded': number;
|
|
354
|
+
readonly 'authorization_code'?: string;
|
|
353
355
|
readonly 'captured': boolean;
|
|
354
356
|
readonly 'created': number;
|
|
355
357
|
readonly 'currency': string;
|
|
@@ -1992,8 +1994,7 @@ declare namespace io.flow.error.v0.models {
|
|
|
1992
1994
|
}
|
|
1993
1995
|
|
|
1994
1996
|
declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.enums {
|
|
1995
|
-
type TrueUpSurchargeType = 'fuel' | 'remote_area' | 'oversize' | 'duties_paid' | 'emergency' | 'peak';
|
|
1996
|
-
type WeightSelection = 'dead' | 'dimensional';
|
|
1997
|
+
type TrueUpSurchargeType = 'fuel' | 'remote_area' | 'oversize' | 'duties_paid' | 'emergency' | 'peak' | 'address_correction';
|
|
1997
1998
|
}
|
|
1998
1999
|
|
|
1999
2000
|
declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.models {
|
|
@@ -2017,11 +2018,44 @@ declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.models {
|
|
|
2017
2018
|
readonly 'metadata': io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelMetadata;
|
|
2018
2019
|
}
|
|
2019
2020
|
|
|
2021
|
+
interface LabelInvoiceResponseFile {
|
|
2022
|
+
readonly 'id': string;
|
|
2023
|
+
readonly 'url': string;
|
|
2024
|
+
readonly 'created_at': string;
|
|
2025
|
+
readonly 'result'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelInvoiceResponseFileResult;
|
|
2026
|
+
}
|
|
2027
|
+
|
|
2028
|
+
interface LabelInvoiceResponseFileForm {
|
|
2029
|
+
readonly 'url': string;
|
|
2030
|
+
}
|
|
2031
|
+
|
|
2032
|
+
interface LabelInvoiceResponseFileResult {
|
|
2033
|
+
readonly 'processed_at': string;
|
|
2034
|
+
readonly 'number_lines_successful': number;
|
|
2035
|
+
readonly 'number_lines_with_errors': number;
|
|
2036
|
+
readonly 'errors_url'?: string;
|
|
2037
|
+
}
|
|
2038
|
+
|
|
2039
|
+
interface LabelInvoiceResponseForm {
|
|
2040
|
+
readonly 'id': string;
|
|
2041
|
+
readonly 'label_invoice_request_id': string;
|
|
2042
|
+
readonly 'units': io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelResponseUnits;
|
|
2043
|
+
readonly 'base': io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelBase;
|
|
2044
|
+
readonly 'surcharges': io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeForm;
|
|
2045
|
+
readonly 'total': number;
|
|
2046
|
+
}
|
|
2047
|
+
|
|
2020
2048
|
interface LabelMetadata {
|
|
2021
2049
|
readonly 'ratecard': io.flow.billing.RESERVED_WORD_true.up.v0.models.MetadataRatecard;
|
|
2022
2050
|
readonly 'weights': io.flow.billing.RESERVED_WORD_true.up.v0.models.MetadataWeights;
|
|
2023
2051
|
}
|
|
2024
2052
|
|
|
2053
|
+
interface LabelResponseUnits {
|
|
2054
|
+
readonly 'currency': string;
|
|
2055
|
+
readonly 'weight': io.flow.units.v0.enums.UnitOfWeight;
|
|
2056
|
+
readonly 'length'?: io.flow.units.v0.enums.UnitOfLength;
|
|
2057
|
+
}
|
|
2058
|
+
|
|
2025
2059
|
interface LabelSurcharge {
|
|
2026
2060
|
readonly 'amount': number;
|
|
2027
2061
|
readonly 'type': io.flow.billing.RESERVED_WORD_true.up.v0.enums.TrueUpSurchargeType;
|
|
@@ -2043,6 +2077,22 @@ declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.models {
|
|
|
2043
2077
|
readonly 'percentage': number;
|
|
2044
2078
|
}
|
|
2045
2079
|
|
|
2080
|
+
interface LabelSurchargeForm {
|
|
2081
|
+
readonly 'fuel'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
2082
|
+
readonly 'remote_area'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
2083
|
+
readonly 'oversize'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
2084
|
+
readonly 'duties_paid'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
2085
|
+
readonly 'emergency'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
2086
|
+
readonly 'peak'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
2087
|
+
readonly 'address_correction'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
2088
|
+
}
|
|
2089
|
+
|
|
2090
|
+
interface LabelSurchargeSingleForm {
|
|
2091
|
+
readonly 'amount': number;
|
|
2092
|
+
readonly 'percentage'?: number;
|
|
2093
|
+
readonly 'fee_per_weight_unit'?: number;
|
|
2094
|
+
}
|
|
2095
|
+
|
|
2046
2096
|
interface LabelUnits {
|
|
2047
2097
|
readonly 'currency': string;
|
|
2048
2098
|
readonly 'weight': io.flow.units.v0.enums.UnitOfWeight;
|
|
@@ -2060,7 +2110,6 @@ declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.models {
|
|
|
2060
2110
|
}
|
|
2061
2111
|
|
|
2062
2112
|
interface MetadataWeights {
|
|
2063
|
-
readonly 'selected': io.flow.billing.RESERVED_WORD_true.up.v0.enums.WeightSelection;
|
|
2064
2113
|
readonly 'dead'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.WeightsDead;
|
|
2065
2114
|
readonly 'dimensional'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.WeightsDimensional;
|
|
2066
2115
|
}
|
|
@@ -2205,7 +2254,7 @@ declare namespace io.flow.v0.enums {
|
|
|
2205
2254
|
type OrderChangeSource = 'consumer' | 'retailer' | 'fulfillment' | 'flow' | 'carrier';
|
|
2206
2255
|
type OrderErrorCode = 'generic_error' | 'order_item_not_available' | 'order_identifier_error' | 'authorization_invalid' | 'domestic_shipping_unavailable' | 'shipping_unavailable' | 'value_threshold_exceeded' | 'invalid_currency' | 'invalid_country' | 'invalid_region' | 'invalid_language' | 'item_out_of_stock' | 'gift_card_not_accepted' | 'total_changed';
|
|
2207
2256
|
type OrderMerchantOfRecord = 'flow' | 'organization' | 'mixed';
|
|
2208
|
-
type OrderPaymentType = 'card' | 'online' | 'credit' | 'subsidized' | 'installment_plan' | 'cash_on_delivery';
|
|
2257
|
+
type OrderPaymentType = 'card' | 'online' | 'credit' | 'external' | 'subsidized' | 'installment_plan' | 'cash_on_delivery';
|
|
2209
2258
|
type OrderPriceDetailComponentKey = 'adjustment' | 'vat_deminimis' | 'duty_deminimis' | 'duties_item_price' | 'duties_freight' | 'duties_insurance' | 'vat_item_price' | 'vat_freight' | 'vat_insurance' | 'vat_duties_item_price' | 'vat_duties_freight' | 'vat_duties_insurance' | 'item_price' | 'item_discount' | 'rounding' | 'insurance' | 'shipping' | 'shipping_discount' | 'order_discount' | 'subtotal_percent_sales_margin' | 'subtotal_vat_percent_sales_margin' | 'subtotal_duty_percent_sales_margin' | 'vat_subsidy' | 'duty_subsidy' | 'remote_area_surcharge' | 'fuel_surcharge' | 'emergency_situation_surcharge' | 'peak_surcharge' | 'duties_taxes_paid_surcharge';
|
|
2210
2259
|
type OrderPriceDetailKey = 'adjustment' | 'subtotal' | 'vat' | 'duty' | 'shipping' | 'insurance' | 'discount' | 'surcharges';
|
|
2211
2260
|
type OrderQuoteAddressType = 'shipping';
|
|
@@ -2294,7 +2343,9 @@ declare namespace io.flow.v0.enums {
|
|
|
2294
2343
|
type TradeAgreementName = 'USMCA' | 'T-MEC' | 'CUSMA' | 'TCA';
|
|
2295
2344
|
type TradeAgreementStatus = 'supported' | 'not_supported';
|
|
2296
2345
|
type TransactionPayoutPendingReason = 'waiting_for_full_refund' | 'waiting_for_fulfillment' | 'waiting_for_in_transit' | 'waiting_for_next_payout_date' | 'external_fulfillment_missing_tracking_info' | 'waiting_for_positive_account_balance';
|
|
2297
|
-
type TransactionSource = 'capture' | 'refund' | 'dispute' | 'adjustment' | 'reversal' | 'shipping_label' | 'shipping_label_service' | 'shipping_label_revenue_share' | 'platform_fee' | 'tax' | 'duty' | 'withholding' | 'other_adjustment' | 'tax_adjustment' | 'channel' | 'channel_billed' | 'order_service' | 'virtual_card_capture' | 'virtual_card_refund';
|
|
2346
|
+
type TransactionSource = 'capture' | 'refund' | 'dispute' | 'adjustment' | 'reversal' | 'shipping_label' | 'shipping_label_service' | 'trueup' | 'shipping_label_revenue_share' | 'platform_fee' | 'tax' | 'duty' | 'withholding' | 'other_adjustment' | 'tax_adjustment' | 'channel' | 'channel_billed' | 'order_service' | 'virtual_card_capture' | 'virtual_card_refund';
|
|
2347
|
+
type TrueupSource = 'flow' | 'channel' | 'dhl-parcel' | 'dhl';
|
|
2348
|
+
type TrueupSurchargeType = 'fuel' | 'remote_area' | 'oversize' | 'duties_paid' | 'emergency' | 'peak' | 'address_correction';
|
|
2298
2349
|
type UnitOfLength = 'millimeter' | 'centimeter' | 'inch' | 'foot' | 'meter';
|
|
2299
2350
|
type UnitOfMeasurement = 'millimeter' | 'centimeter' | 'inch' | 'foot' | 'cubic_inch' | 'cubic_meter' | 'gram' | 'kilogram' | 'meter' | 'ounce' | 'pound';
|
|
2300
2351
|
type UnitOfTime = 'year' | 'month' | 'week' | 'day' | 'hour' | 'minute';
|
|
@@ -8219,6 +8270,7 @@ declare namespace io.flow.v0.models {
|
|
|
8219
8270
|
readonly 'current_state': io.flow.v0.unions.OnboardingState;
|
|
8220
8271
|
readonly 'started_at'?: string;
|
|
8221
8272
|
readonly 'time_blocked'?: number;
|
|
8273
|
+
readonly 'time_in_setup'?: number;
|
|
8222
8274
|
readonly 'blocked_since'?: string;
|
|
8223
8275
|
readonly 'completed_at'?: string;
|
|
8224
8276
|
readonly 'onboarding_started_at'?: string;
|
|
@@ -12036,6 +12088,20 @@ declare namespace io.flow.v0.models {
|
|
|
12036
12088
|
readonly 'request_method'?: io.flow.v0.enums.LabelRequestMethod;
|
|
12037
12089
|
}
|
|
12038
12090
|
|
|
12091
|
+
interface TransactionMetadataTrueup {
|
|
12092
|
+
readonly 'discriminator': 'trueup';
|
|
12093
|
+
readonly 'estimate': io.flow.v0.models.TransactionMetadataTrueupData;
|
|
12094
|
+
readonly 'actual': io.flow.v0.models.TransactionMetadataTrueupData;
|
|
12095
|
+
}
|
|
12096
|
+
|
|
12097
|
+
interface TransactionMetadataTrueupData {
|
|
12098
|
+
readonly 'source': io.flow.v0.enums.TrueupSource;
|
|
12099
|
+
readonly 'units': io.flow.v0.models.TrueupLabelUnits;
|
|
12100
|
+
readonly 'base': io.flow.v0.models.TrueupLabelBase;
|
|
12101
|
+
readonly 'surcharges': io.flow.v0.models.TrueupLabelSurcharge[];
|
|
12102
|
+
readonly 'total': number;
|
|
12103
|
+
}
|
|
12104
|
+
|
|
12039
12105
|
interface TransactionNetworkDetailsCard {
|
|
12040
12106
|
readonly 'network_transaction_id'?: string;
|
|
12041
12107
|
readonly 'network'?: io.flow.v0.enums.CardType;
|
|
@@ -12068,6 +12134,23 @@ declare namespace io.flow.v0.models {
|
|
|
12068
12134
|
readonly 'to': number;
|
|
12069
12135
|
}
|
|
12070
12136
|
|
|
12137
|
+
interface TrueupLabelBase {
|
|
12138
|
+
readonly 'amount': number;
|
|
12139
|
+
readonly 'weight': number;
|
|
12140
|
+
}
|
|
12141
|
+
|
|
12142
|
+
interface TrueupLabelSurcharge {
|
|
12143
|
+
readonly 'amount': number;
|
|
12144
|
+
readonly 'type': io.flow.v0.enums.TrueupSurchargeType;
|
|
12145
|
+
readonly 'percentage'?: number;
|
|
12146
|
+
readonly 'per_weight_unit'?: number;
|
|
12147
|
+
}
|
|
12148
|
+
|
|
12149
|
+
interface TrueupLabelUnits {
|
|
12150
|
+
readonly 'weight': io.flow.v0.enums.UnitOfWeight;
|
|
12151
|
+
readonly 'length'?: io.flow.v0.enums.UnitOfLength;
|
|
12152
|
+
}
|
|
12153
|
+
|
|
12071
12154
|
interface UltimateBeneficiaryOwner {
|
|
12072
12155
|
readonly 'name': string;
|
|
12073
12156
|
readonly 'dob': string;
|
|
@@ -12406,7 +12489,7 @@ declare namespace io.flow.v0.unions {
|
|
|
12406
12489
|
type Token = (io.flow.v0.models.ChannelToken | io.flow.v0.models.OrganizationToken | io.flow.v0.models.OrganizationTokenV2 | io.flow.v0.models.PartnerToken);
|
|
12407
12490
|
type TokenReference = (io.flow.v0.models.ChannelTokenReference | io.flow.v0.models.OrganizationTokenReference | io.flow.v0.models.OrganizationTokenV2Reference | io.flow.v0.models.PartnerTokenReference);
|
|
12408
12491
|
type TransactionDetails = (io.flow.v0.models.TransactionDetailsCard);
|
|
12409
|
-
type TransactionMetadata = (io.flow.v0.models.TransactionMetadataShippingLabel);
|
|
12492
|
+
type TransactionMetadata = (io.flow.v0.models.TransactionMetadataShippingLabel | io.flow.v0.models.TransactionMetadataTrueup);
|
|
12410
12493
|
}
|
|
12411
12494
|
|
|
12412
12495
|
export const abandonedOrderPromotionStatus: PropTypes.Requireable<io.flow.v0.enums.AbandonedOrderPromotionStatus>;
|
|
@@ -12610,6 +12693,8 @@ export const tradeAgreementName: PropTypes.Requireable<io.flow.v0.enums.TradeAgr
|
|
|
12610
12693
|
export const tradeAgreementStatus: PropTypes.Requireable<io.flow.v0.enums.TradeAgreementStatus>;
|
|
12611
12694
|
export const transactionPayoutPendingReason: PropTypes.Requireable<io.flow.v0.enums.TransactionPayoutPendingReason>;
|
|
12612
12695
|
export const transactionSource: PropTypes.Requireable<io.flow.v0.enums.TransactionSource>;
|
|
12696
|
+
export const trueupSource: PropTypes.Requireable<io.flow.v0.enums.TrueupSource>;
|
|
12697
|
+
export const trueupSurchargeType: PropTypes.Requireable<io.flow.v0.enums.TrueupSurchargeType>;
|
|
12613
12698
|
export const unitOfLength: PropTypes.Requireable<io.flow.v0.enums.UnitOfLength>;
|
|
12614
12699
|
export const unitOfMeasurement: PropTypes.Requireable<io.flow.v0.enums.UnitOfMeasurement>;
|
|
12615
12700
|
export const unitOfTime: PropTypes.Requireable<io.flow.v0.enums.UnitOfTime>;
|
|
@@ -13974,11 +14059,16 @@ export const tradeAgreementDuty: PropTypes.Requireable<io.flow.v0.models.TradeAg
|
|
|
13974
14059
|
export const transaction: PropTypes.Requireable<io.flow.v0.models.Transaction>;
|
|
13975
14060
|
export const transactionDetailsCard: PropTypes.Requireable<io.flow.v0.models.TransactionDetailsCard>;
|
|
13976
14061
|
export const transactionMetadataShippingLabel: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataShippingLabel>;
|
|
14062
|
+
export const transactionMetadataTrueup: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataTrueup>;
|
|
14063
|
+
export const transactionMetadataTrueupData: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataTrueupData>;
|
|
13977
14064
|
export const transactionNetworkDetailsCard: PropTypes.Requireable<io.flow.v0.models.TransactionNetworkDetailsCard>;
|
|
13978
14065
|
export const transactionReference: PropTypes.Requireable<io.flow.v0.models.TransactionReference>;
|
|
13979
14066
|
export const transactionUpserted: PropTypes.Requireable<io.flow.v0.models.TransactionUpserted>;
|
|
13980
14067
|
export const transitEstimate: PropTypes.Requireable<io.flow.v0.models.TransitEstimate>;
|
|
13981
14068
|
export const transitWindow: PropTypes.Requireable<io.flow.v0.models.TransitWindow>;
|
|
14069
|
+
export const trueupLabelBase: PropTypes.Requireable<io.flow.v0.models.TrueupLabelBase>;
|
|
14070
|
+
export const trueupLabelSurcharge: PropTypes.Requireable<io.flow.v0.models.TrueupLabelSurcharge>;
|
|
14071
|
+
export const trueupLabelUnits: PropTypes.Requireable<io.flow.v0.models.TrueupLabelUnits>;
|
|
13982
14072
|
export const ultimateBeneficiaryOwner: PropTypes.Requireable<io.flow.v0.models.UltimateBeneficiaryOwner>;
|
|
13983
14073
|
export const unharmonizedItemExportType: PropTypes.Requireable<io.flow.v0.models.UnharmonizedItemExportType>;
|
|
13984
14074
|
export const upload: PropTypes.Requireable<io.flow.v0.models.Upload>;
|