@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/dist/api-internal.d.ts +173 -183
- package/dist/api.d.ts +84 -6
- package/package.json +2 -2
- package/src/api-internal.ts +220 -215
- package/src/api.ts +108 -4
package/dist/api.d.ts
CHANGED
|
@@ -267,6 +267,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
267
267
|
readonly id: string;
|
|
268
268
|
readonly amount: number;
|
|
269
269
|
readonly amount_refunded: number;
|
|
270
|
+
readonly authorization_code?: string;
|
|
270
271
|
readonly captured: boolean;
|
|
271
272
|
readonly created: number;
|
|
272
273
|
readonly currency: string;
|
|
@@ -314,6 +315,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
314
315
|
readonly id: string;
|
|
315
316
|
readonly amount: number;
|
|
316
317
|
readonly amount_refunded: number;
|
|
318
|
+
readonly authorization_code?: string;
|
|
317
319
|
readonly captured: boolean;
|
|
318
320
|
readonly created: number;
|
|
319
321
|
readonly currency: string;
|
|
@@ -1774,8 +1776,7 @@ declare namespace io.flow.error.v0.models {
|
|
|
1774
1776
|
}
|
|
1775
1777
|
}
|
|
1776
1778
|
declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.enums {
|
|
1777
|
-
type TrueUpSurchargeType = 'fuel' | 'remote_area' | 'oversize' | 'duties_paid' | 'emergency' | 'peak';
|
|
1778
|
-
type WeightSelection = 'dead' | 'dimensional';
|
|
1779
|
+
type TrueUpSurchargeType = 'fuel' | 'remote_area' | 'oversize' | 'duties_paid' | 'emergency' | 'peak' | 'address_correction';
|
|
1779
1780
|
}
|
|
1780
1781
|
declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.models {
|
|
1781
1782
|
interface LabelBase {
|
|
@@ -1795,10 +1796,38 @@ declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.models {
|
|
|
1795
1796
|
readonly destination: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelDestination;
|
|
1796
1797
|
readonly metadata: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelMetadata;
|
|
1797
1798
|
}
|
|
1799
|
+
interface LabelInvoiceResponseFile {
|
|
1800
|
+
readonly id: string;
|
|
1801
|
+
readonly url: string;
|
|
1802
|
+
readonly created_at: string;
|
|
1803
|
+
readonly result?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelInvoiceResponseFileResult;
|
|
1804
|
+
}
|
|
1805
|
+
interface LabelInvoiceResponseFileForm {
|
|
1806
|
+
readonly url: string;
|
|
1807
|
+
}
|
|
1808
|
+
interface LabelInvoiceResponseFileResult {
|
|
1809
|
+
readonly processed_at: string;
|
|
1810
|
+
readonly number_lines_successful: number;
|
|
1811
|
+
readonly number_lines_with_errors: number;
|
|
1812
|
+
readonly errors_url?: string;
|
|
1813
|
+
}
|
|
1814
|
+
interface LabelInvoiceResponseForm {
|
|
1815
|
+
readonly id: string;
|
|
1816
|
+
readonly label_invoice_request_id: string;
|
|
1817
|
+
readonly units: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelResponseUnits;
|
|
1818
|
+
readonly base: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelBase;
|
|
1819
|
+
readonly surcharges: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeForm;
|
|
1820
|
+
readonly total: number;
|
|
1821
|
+
}
|
|
1798
1822
|
interface LabelMetadata {
|
|
1799
1823
|
readonly ratecard: io.flow.billing.RESERVED_WORD_true.up.v0.models.MetadataRatecard;
|
|
1800
1824
|
readonly weights: io.flow.billing.RESERVED_WORD_true.up.v0.models.MetadataWeights;
|
|
1801
1825
|
}
|
|
1826
|
+
interface LabelResponseUnits {
|
|
1827
|
+
readonly currency: string;
|
|
1828
|
+
readonly weight: io.flow.units.v0.enums.UnitOfWeight;
|
|
1829
|
+
readonly length?: io.flow.units.v0.enums.UnitOfLength;
|
|
1830
|
+
}
|
|
1802
1831
|
interface LabelSurcharge {
|
|
1803
1832
|
readonly amount: number;
|
|
1804
1833
|
readonly type: io.flow.billing.RESERVED_WORD_true.up.v0.enums.TrueUpSurchargeType;
|
|
@@ -1816,6 +1845,20 @@ declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.models {
|
|
|
1816
1845
|
readonly discriminator: 'percentage';
|
|
1817
1846
|
readonly percentage: number;
|
|
1818
1847
|
}
|
|
1848
|
+
interface LabelSurchargeForm {
|
|
1849
|
+
readonly fuel?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
1850
|
+
readonly remote_area?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
1851
|
+
readonly oversize?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
1852
|
+
readonly duties_paid?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
1853
|
+
readonly emergency?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
1854
|
+
readonly peak?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
1855
|
+
readonly address_correction?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
1856
|
+
}
|
|
1857
|
+
interface LabelSurchargeSingleForm {
|
|
1858
|
+
readonly amount: number;
|
|
1859
|
+
readonly percentage?: number;
|
|
1860
|
+
readonly fee_per_weight_unit?: number;
|
|
1861
|
+
}
|
|
1819
1862
|
interface LabelUnits {
|
|
1820
1863
|
readonly currency: string;
|
|
1821
1864
|
readonly weight: io.flow.units.v0.enums.UnitOfWeight;
|
|
@@ -1830,7 +1873,6 @@ declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.models {
|
|
|
1830
1873
|
readonly proposition: io.flow.billing.RESERVED_WORD_true.up.v0.models.MetadataProposition;
|
|
1831
1874
|
}
|
|
1832
1875
|
interface MetadataWeights {
|
|
1833
|
-
readonly selected: io.flow.billing.RESERVED_WORD_true.up.v0.enums.WeightSelection;
|
|
1834
1876
|
readonly dead?: io.flow.billing.RESERVED_WORD_true.up.v0.models.WeightsDead;
|
|
1835
1877
|
readonly dimensional?: io.flow.billing.RESERVED_WORD_true.up.v0.models.WeightsDimensional;
|
|
1836
1878
|
}
|
|
@@ -1969,7 +2011,7 @@ declare namespace io.flow.v0.enums {
|
|
|
1969
2011
|
type OrderChangeSource = 'consumer' | 'retailer' | 'fulfillment' | 'flow' | 'carrier';
|
|
1970
2012
|
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';
|
|
1971
2013
|
type OrderMerchantOfRecord = 'flow' | 'organization' | 'mixed';
|
|
1972
|
-
type OrderPaymentType = 'card' | 'online' | 'credit' | 'subsidized' | 'installment_plan' | 'cash_on_delivery';
|
|
2014
|
+
type OrderPaymentType = 'card' | 'online' | 'credit' | 'external' | 'subsidized' | 'installment_plan' | 'cash_on_delivery';
|
|
1973
2015
|
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';
|
|
1974
2016
|
type OrderPriceDetailKey = 'adjustment' | 'subtotal' | 'vat' | 'duty' | 'shipping' | 'insurance' | 'discount' | 'surcharges';
|
|
1975
2017
|
type OrderQuoteAddressType = 'shipping';
|
|
@@ -2058,7 +2100,9 @@ declare namespace io.flow.v0.enums {
|
|
|
2058
2100
|
type TradeAgreementName = 'USMCA' | 'T-MEC' | 'CUSMA' | 'TCA';
|
|
2059
2101
|
type TradeAgreementStatus = 'supported' | 'not_supported';
|
|
2060
2102
|
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';
|
|
2061
|
-
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';
|
|
2103
|
+
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';
|
|
2104
|
+
type TrueupSource = 'flow' | 'channel' | 'dhl-parcel' | 'dhl';
|
|
2105
|
+
type TrueupSurchargeType = 'fuel' | 'remote_area' | 'oversize' | 'duties_paid' | 'emergency' | 'peak' | 'address_correction';
|
|
2062
2106
|
type UnitOfLength = 'millimeter' | 'centimeter' | 'inch' | 'foot' | 'meter';
|
|
2063
2107
|
type UnitOfMeasurement = 'millimeter' | 'centimeter' | 'inch' | 'foot' | 'cubic_inch' | 'cubic_meter' | 'gram' | 'kilogram' | 'meter' | 'ounce' | 'pound';
|
|
2064
2108
|
type UnitOfTime = 'year' | 'month' | 'week' | 'day' | 'hour' | 'minute';
|
|
@@ -7156,6 +7200,7 @@ declare namespace io.flow.v0.models {
|
|
|
7156
7200
|
readonly current_state: io.flow.v0.unions.OnboardingState;
|
|
7157
7201
|
readonly started_at?: string;
|
|
7158
7202
|
readonly time_blocked?: number;
|
|
7203
|
+
readonly time_in_setup?: number;
|
|
7159
7204
|
readonly blocked_since?: string;
|
|
7160
7205
|
readonly completed_at?: string;
|
|
7161
7206
|
readonly onboarding_started_at?: string;
|
|
@@ -10449,6 +10494,18 @@ declare namespace io.flow.v0.models {
|
|
|
10449
10494
|
readonly discriminator: 'shipping_label';
|
|
10450
10495
|
readonly request_method?: io.flow.v0.enums.LabelRequestMethod;
|
|
10451
10496
|
}
|
|
10497
|
+
interface TransactionMetadataTrueup {
|
|
10498
|
+
readonly discriminator: 'trueup';
|
|
10499
|
+
readonly estimate: io.flow.v0.models.TransactionMetadataTrueupData;
|
|
10500
|
+
readonly actual: io.flow.v0.models.TransactionMetadataTrueupData;
|
|
10501
|
+
}
|
|
10502
|
+
interface TransactionMetadataTrueupData {
|
|
10503
|
+
readonly source: io.flow.v0.enums.TrueupSource;
|
|
10504
|
+
readonly units: io.flow.v0.models.TrueupLabelUnits;
|
|
10505
|
+
readonly base: io.flow.v0.models.TrueupLabelBase;
|
|
10506
|
+
readonly surcharges: io.flow.v0.models.TrueupLabelSurcharge[];
|
|
10507
|
+
readonly total: number;
|
|
10508
|
+
}
|
|
10452
10509
|
interface TransactionNetworkDetailsCard {
|
|
10453
10510
|
readonly network_transaction_id?: string;
|
|
10454
10511
|
readonly network?: io.flow.v0.enums.CardType;
|
|
@@ -10476,6 +10533,20 @@ declare namespace io.flow.v0.models {
|
|
|
10476
10533
|
readonly from: number;
|
|
10477
10534
|
readonly to: number;
|
|
10478
10535
|
}
|
|
10536
|
+
interface TrueupLabelBase {
|
|
10537
|
+
readonly amount: number;
|
|
10538
|
+
readonly weight: number;
|
|
10539
|
+
}
|
|
10540
|
+
interface TrueupLabelSurcharge {
|
|
10541
|
+
readonly amount: number;
|
|
10542
|
+
readonly type: io.flow.v0.enums.TrueupSurchargeType;
|
|
10543
|
+
readonly percentage?: number;
|
|
10544
|
+
readonly per_weight_unit?: number;
|
|
10545
|
+
}
|
|
10546
|
+
interface TrueupLabelUnits {
|
|
10547
|
+
readonly weight: io.flow.v0.enums.UnitOfWeight;
|
|
10548
|
+
readonly length?: io.flow.v0.enums.UnitOfLength;
|
|
10549
|
+
}
|
|
10479
10550
|
interface UltimateBeneficiaryOwner {
|
|
10480
10551
|
readonly name: string;
|
|
10481
10552
|
readonly dob: string;
|
|
@@ -10781,7 +10852,7 @@ declare namespace io.flow.v0.unions {
|
|
|
10781
10852
|
type Token = io.flow.v0.models.ChannelToken | io.flow.v0.models.OrganizationToken | io.flow.v0.models.OrganizationTokenV2 | io.flow.v0.models.PartnerToken;
|
|
10782
10853
|
type TokenReference = io.flow.v0.models.ChannelTokenReference | io.flow.v0.models.OrganizationTokenReference | io.flow.v0.models.OrganizationTokenV2Reference | io.flow.v0.models.PartnerTokenReference;
|
|
10783
10854
|
type TransactionDetails = io.flow.v0.models.TransactionDetailsCard;
|
|
10784
|
-
type TransactionMetadata = io.flow.v0.models.TransactionMetadataShippingLabel;
|
|
10855
|
+
type TransactionMetadata = io.flow.v0.models.TransactionMetadataShippingLabel | io.flow.v0.models.TransactionMetadataTrueup;
|
|
10785
10856
|
}
|
|
10786
10857
|
export declare type AbandonedOrderEmailSettings = io.flow.v0.models.AbandonedOrderEmailSettings;
|
|
10787
10858
|
export declare type AbandonedOrderPromotion = io.flow.v0.models.AbandonedOrderPromotion;
|
|
@@ -12441,6 +12512,8 @@ export declare type TransactionDetails = io.flow.v0.unions.TransactionDetails;
|
|
|
12441
12512
|
export declare type TransactionDetailsCard = io.flow.v0.models.TransactionDetailsCard;
|
|
12442
12513
|
export declare type TransactionMetadata = io.flow.v0.unions.TransactionMetadata;
|
|
12443
12514
|
export declare type TransactionMetadataShippingLabel = io.flow.v0.models.TransactionMetadataShippingLabel;
|
|
12515
|
+
export declare type TransactionMetadataTrueup = io.flow.v0.models.TransactionMetadataTrueup;
|
|
12516
|
+
export declare type TransactionMetadataTrueupData = io.flow.v0.models.TransactionMetadataTrueupData;
|
|
12444
12517
|
export declare type TransactionNetworkDetailsCard = io.flow.v0.models.TransactionNetworkDetailsCard;
|
|
12445
12518
|
export declare type TransactionPayoutPendingReason = io.flow.v0.enums.TransactionPayoutPendingReason;
|
|
12446
12519
|
export declare type TransactionReference = io.flow.v0.models.TransactionReference;
|
|
@@ -12448,6 +12521,11 @@ export declare type TransactionSource = io.flow.v0.enums.TransactionSource;
|
|
|
12448
12521
|
export declare type TransactionUpserted = io.flow.v0.models.TransactionUpserted;
|
|
12449
12522
|
export declare type TransitEstimate = io.flow.v0.models.TransitEstimate;
|
|
12450
12523
|
export declare type TransitWindow = io.flow.v0.models.TransitWindow;
|
|
12524
|
+
export declare type TrueupLabelBase = io.flow.v0.models.TrueupLabelBase;
|
|
12525
|
+
export declare type TrueupLabelSurcharge = io.flow.v0.models.TrueupLabelSurcharge;
|
|
12526
|
+
export declare type TrueupLabelUnits = io.flow.v0.models.TrueupLabelUnits;
|
|
12527
|
+
export declare type TrueupSource = io.flow.v0.enums.TrueupSource;
|
|
12528
|
+
export declare type TrueupSurchargeType = io.flow.v0.enums.TrueupSurchargeType;
|
|
12451
12529
|
export declare type UltimateBeneficiaryOwner = io.flow.v0.models.UltimateBeneficiaryOwner;
|
|
12452
12530
|
export declare type UnharmonizedItemExportType = io.flow.v0.models.UnharmonizedItemExportType;
|
|
12453
12531
|
export declare type UnitOfLength = io.flow.v0.enums.UnitOfLength;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/types",
|
|
3
|
-
"version": "11.24.
|
|
3
|
+
"version": "11.24.70",
|
|
4
4
|
"description": "TypeScript type definitions for custom types found in Flow API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"maintainers": [
|
|
26
26
|
"Christian Muñoz <christian.munoz@flow.io>"
|
|
27
27
|
],
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "1c87d63f654d1b7f4aa3ef5237a2cf0558fda3d5"
|
|
29
29
|
}
|