@flowio/api-prop-types 10.16.54 → 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 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;
@@ -921,9 +923,11 @@ declare namespace io.flow.stripe.v0.models {
921
923
  }
922
924
 
923
925
  interface ThreeDSecureCharge {
926
+ readonly 'authenticated'?: boolean;
924
927
  readonly 'authentication_flow'?: io.flow.stripe.v0.enums.ThreeDsAuthenticationFlow;
925
928
  readonly 'result'?: io.flow.stripe.v0.enums.ThreeDsResult;
926
929
  readonly 'result_reason'?: io.flow.stripe.v0.enums.ThreeDsResultReason;
930
+ readonly 'succeeded'?: boolean;
927
931
  readonly 'version'?: string;
928
932
  }
929
933
 
@@ -1990,8 +1994,7 @@ declare namespace io.flow.error.v0.models {
1990
1994
  }
1991
1995
 
1992
1996
  declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.enums {
1993
- type TrueUpSurchargeType = 'fuel' | 'remote_area' | 'oversize' | 'duties_paid' | 'emergency' | 'peak';
1994
- type WeightSelection = 'dead' | 'dimensional';
1997
+ type TrueUpSurchargeType = 'fuel' | 'remote_area' | 'oversize' | 'duties_paid' | 'emergency' | 'peak' | 'address_correction';
1995
1998
  }
1996
1999
 
1997
2000
  declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.models {
@@ -2015,11 +2018,44 @@ declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.models {
2015
2018
  readonly 'metadata': io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelMetadata;
2016
2019
  }
2017
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
+
2018
2048
  interface LabelMetadata {
2019
2049
  readonly 'ratecard': io.flow.billing.RESERVED_WORD_true.up.v0.models.MetadataRatecard;
2020
2050
  readonly 'weights': io.flow.billing.RESERVED_WORD_true.up.v0.models.MetadataWeights;
2021
2051
  }
2022
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
+
2023
2059
  interface LabelSurcharge {
2024
2060
  readonly 'amount': number;
2025
2061
  readonly 'type': io.flow.billing.RESERVED_WORD_true.up.v0.enums.TrueUpSurchargeType;
@@ -2041,6 +2077,22 @@ declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.models {
2041
2077
  readonly 'percentage': number;
2042
2078
  }
2043
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
+
2044
2096
  interface LabelUnits {
2045
2097
  readonly 'currency': string;
2046
2098
  readonly 'weight': io.flow.units.v0.enums.UnitOfWeight;
@@ -2058,7 +2110,6 @@ declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.models {
2058
2110
  }
2059
2111
 
2060
2112
  interface MetadataWeights {
2061
- readonly 'selected': io.flow.billing.RESERVED_WORD_true.up.v0.enums.WeightSelection;
2062
2113
  readonly 'dead'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.WeightsDead;
2063
2114
  readonly 'dimensional'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.WeightsDimensional;
2064
2115
  }
@@ -2203,7 +2254,7 @@ declare namespace io.flow.v0.enums {
2203
2254
  type OrderChangeSource = 'consumer' | 'retailer' | 'fulfillment' | 'flow' | 'carrier';
2204
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';
2205
2256
  type OrderMerchantOfRecord = 'flow' | 'organization' | 'mixed';
2206
- type OrderPaymentType = 'card' | 'online' | 'credit' | 'subsidized' | 'installment_plan' | 'cash_on_delivery';
2257
+ type OrderPaymentType = 'card' | 'online' | 'credit' | 'external' | 'subsidized' | 'installment_plan' | 'cash_on_delivery';
2207
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';
2208
2259
  type OrderPriceDetailKey = 'adjustment' | 'subtotal' | 'vat' | 'duty' | 'shipping' | 'insurance' | 'discount' | 'surcharges';
2209
2260
  type OrderQuoteAddressType = 'shipping';
@@ -2226,7 +2277,7 @@ declare namespace io.flow.v0.enums {
2226
2277
  type PaymentMethodRuleContentKey = 'description';
2227
2278
  type PaymentMethodType = 'card' | 'online' | 'offline';
2228
2279
  type PaymentRequestReviewCheckStatus = 'passed' | 'failed';
2229
- type PaymentRequestReviewCheckType = 'restricted_party_screening' | 'fraud_suspicious_behavior' | 'fraud_suspicious_past_activity' | 'fraud_risky_velocity' | 'fraud_previous_chargebacks' | 'order_restricted_goods' | 'order_unsupported_destination' | 'order_missing_information' | 'order_domestic';
2280
+ type PaymentRequestReviewCheckType = 'restricted_party_screening' | 'fraud_suspicious_behavior' | 'fraud_suspicious_past_activity' | 'fraud_risky_velocity' | 'fraud_previous_chargebacks' | 'order_restricted_goods' | 'order_unsupported_destination' | 'order_missing_information' | 'order_domestic' | 'order_mismatched_currencies';
2230
2281
  type PaymentRequestReviewStatus = 'pending' | 'approved' | 'rejected';
2231
2282
  type PaymentSourceConfirmationActionType = 'cvv' | 'billing_address' | 'number';
2232
2283
  type PaymentStatus = 'requires_payment_method' | 'requires_action' | 'processing' | 'cancelled' | 'expired' | 'authorized' | 'reversed' | 'captured' | 'refunded' | 'in_dispute' | 'charged_back';
@@ -2292,7 +2343,9 @@ declare namespace io.flow.v0.enums {
2292
2343
  type TradeAgreementName = 'USMCA' | 'T-MEC' | 'CUSMA' | 'TCA';
2293
2344
  type TradeAgreementStatus = 'supported' | 'not_supported';
2294
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';
2295
- 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';
2296
2349
  type UnitOfLength = 'millimeter' | 'centimeter' | 'inch' | 'foot' | 'meter';
2297
2350
  type UnitOfMeasurement = 'millimeter' | 'centimeter' | 'inch' | 'foot' | 'cubic_inch' | 'cubic_meter' | 'gram' | 'kilogram' | 'meter' | 'ounce' | 'pound';
2298
2351
  type UnitOfTime = 'year' | 'month' | 'week' | 'day' | 'hour' | 'minute';
@@ -6605,6 +6658,7 @@ declare namespace io.flow.v0.models {
6605
6658
  readonly 'discriminator': 'know_your_business_usa';
6606
6659
  readonly 'id': string;
6607
6660
  readonly 'organization_id': string;
6661
+ readonly 'shop'?: io.flow.v0.models.Shop;
6608
6662
  readonly 'primary_entity': io.flow.v0.unions.Entity;
6609
6663
  readonly 'parent_company'?: io.flow.v0.models.Company;
6610
6664
  readonly 'ultimate_parent_company'?: io.flow.v0.models.Company;
@@ -8216,6 +8270,7 @@ declare namespace io.flow.v0.models {
8216
8270
  readonly 'current_state': io.flow.v0.unions.OnboardingState;
8217
8271
  readonly 'started_at'?: string;
8218
8272
  readonly 'time_blocked'?: number;
8273
+ readonly 'time_in_setup'?: number;
8219
8274
  readonly 'blocked_since'?: string;
8220
8275
  readonly 'completed_at'?: string;
8221
8276
  readonly 'onboarding_started_at'?: string;
@@ -12033,6 +12088,20 @@ declare namespace io.flow.v0.models {
12033
12088
  readonly 'request_method'?: io.flow.v0.enums.LabelRequestMethod;
12034
12089
  }
12035
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
+
12036
12105
  interface TransactionNetworkDetailsCard {
12037
12106
  readonly 'network_transaction_id'?: string;
12038
12107
  readonly 'network'?: io.flow.v0.enums.CardType;
@@ -12065,6 +12134,23 @@ declare namespace io.flow.v0.models {
12065
12134
  readonly 'to': number;
12066
12135
  }
12067
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
+
12068
12154
  interface UltimateBeneficiaryOwner {
12069
12155
  readonly 'name': string;
12070
12156
  readonly 'dob': string;
@@ -12403,7 +12489,7 @@ declare namespace io.flow.v0.unions {
12403
12489
  type Token = (io.flow.v0.models.ChannelToken | io.flow.v0.models.OrganizationToken | io.flow.v0.models.OrganizationTokenV2 | io.flow.v0.models.PartnerToken);
12404
12490
  type TokenReference = (io.flow.v0.models.ChannelTokenReference | io.flow.v0.models.OrganizationTokenReference | io.flow.v0.models.OrganizationTokenV2Reference | io.flow.v0.models.PartnerTokenReference);
12405
12491
  type TransactionDetails = (io.flow.v0.models.TransactionDetailsCard);
12406
- type TransactionMetadata = (io.flow.v0.models.TransactionMetadataShippingLabel);
12492
+ type TransactionMetadata = (io.flow.v0.models.TransactionMetadataShippingLabel | io.flow.v0.models.TransactionMetadataTrueup);
12407
12493
  }
12408
12494
 
12409
12495
  export const abandonedOrderPromotionStatus: PropTypes.Requireable<io.flow.v0.enums.AbandonedOrderPromotionStatus>;
@@ -12607,6 +12693,8 @@ export const tradeAgreementName: PropTypes.Requireable<io.flow.v0.enums.TradeAgr
12607
12693
  export const tradeAgreementStatus: PropTypes.Requireable<io.flow.v0.enums.TradeAgreementStatus>;
12608
12694
  export const transactionPayoutPendingReason: PropTypes.Requireable<io.flow.v0.enums.TransactionPayoutPendingReason>;
12609
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>;
12610
12698
  export const unitOfLength: PropTypes.Requireable<io.flow.v0.enums.UnitOfLength>;
12611
12699
  export const unitOfMeasurement: PropTypes.Requireable<io.flow.v0.enums.UnitOfMeasurement>;
12612
12700
  export const unitOfTime: PropTypes.Requireable<io.flow.v0.enums.UnitOfTime>;
@@ -13971,11 +14059,16 @@ export const tradeAgreementDuty: PropTypes.Requireable<io.flow.v0.models.TradeAg
13971
14059
  export const transaction: PropTypes.Requireable<io.flow.v0.models.Transaction>;
13972
14060
  export const transactionDetailsCard: PropTypes.Requireable<io.flow.v0.models.TransactionDetailsCard>;
13973
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>;
13974
14064
  export const transactionNetworkDetailsCard: PropTypes.Requireable<io.flow.v0.models.TransactionNetworkDetailsCard>;
13975
14065
  export const transactionReference: PropTypes.Requireable<io.flow.v0.models.TransactionReference>;
13976
14066
  export const transactionUpserted: PropTypes.Requireable<io.flow.v0.models.TransactionUpserted>;
13977
14067
  export const transitEstimate: PropTypes.Requireable<io.flow.v0.models.TransitEstimate>;
13978
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>;
13979
14072
  export const ultimateBeneficiaryOwner: PropTypes.Requireable<io.flow.v0.models.UltimateBeneficiaryOwner>;
13980
14073
  export const unharmonizedItemExportType: PropTypes.Requireable<io.flow.v0.models.UnharmonizedItemExportType>;
13981
14074
  export const upload: PropTypes.Requireable<io.flow.v0.models.Upload>;