@flowio/api-prop-types 10.16.62 → 10.16.64
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 +36 -2
- package/lib/api.js +1 -1
- package/package.json +2 -2
- package/src/api.d.ts +36 -2
- package/src/api.js +68 -0
package/lib/api.d.ts
CHANGED
|
@@ -2099,6 +2099,7 @@ declare namespace io.flow.v0.enums {
|
|
|
2099
2099
|
type CaptureStatus = 'initiated' | 'pending' | 'succeeded' | 'failed' | 'canceled';
|
|
2100
2100
|
type CardErrorCode = 'invalid_address' | 'invalid_currency' | 'invalid_name' | 'invalid_number' | 'invalid_expiration' | 'invalid_token_type' | 'avs' | 'cvv' | 'fraud' | 'unknown';
|
|
2101
2101
|
type CardType = 'american_express' | 'cartes_bancaires' | 'china_union_pay' | 'dankort' | 'diners_club' | 'discover' | 'jcb' | 'maestro' | 'mastercard' | 'visa';
|
|
2102
|
+
type CarrierChargeReason = 'return_to_origin' | 'rejection' | 'other';
|
|
2102
2103
|
type CenterCapability = 'international' | 'domestic' | 'crossdock' | 'commercial_invoice';
|
|
2103
2104
|
type ChangeType = 'insert' | 'update' | 'delete';
|
|
2104
2105
|
type ChannelCurrencyCapability = 'payment_authorizations' | 'settlement_currency';
|
|
@@ -2227,6 +2228,7 @@ declare namespace io.flow.v0.enums {
|
|
|
2227
2228
|
type PriceDetailKey = 'item_price' | 'margins' | 'vat' | 'duty' | 'rounding' | 'adjustment';
|
|
2228
2229
|
type PriceFacetBoundary = 'min' | 'max';
|
|
2229
2230
|
type PricingLevySetting = 'included' | 'displayed' | 'ignored';
|
|
2231
|
+
type ProductRestrictionRule = 'Adult Products' | 'Alcohol' | 'Anti Money Laundering' | 'Collagen' | 'Consumer Safety' | 'Cosmetics' | 'DG - Batteries' | 'DG - Hazmat' | 'Drugs' | 'Dual Use' | 'Fine Art' | 'Fish & Wildlife - CITES' | 'Fish & Wildlife - Plant' | 'Fish & Wildlife - USFWS' | 'Food' | 'Gambling' | 'Health' | 'Human hair' | 'Insufficient Details' | 'Intangible' | 'Jewelry' | 'Jewelry & Watches Over 5000' | 'Knives' | 'Liquids' | 'Oversized' | 'Supplements' | 'Weapon' | 'Wood';
|
|
2230
2232
|
type PromotionTriggerType = 'automatic' | 'order_subtotal';
|
|
2231
2233
|
type ProvinceType = 'area' | 'city' | 'county' | 'department' | 'dependency' | 'district' | 'do_si' | 'emirate' | 'entity' | 'island' | 'municipality' | 'oblast' | 'outlying_area' | 'parish' | 'prefecture' | 'province' | 'state' | 'territory' | 'other';
|
|
2232
2234
|
type QuoteErrorCode = 'generic_error' | 'items_not_available' | 'shipping_unavailable';
|
|
@@ -2240,6 +2242,7 @@ declare namespace io.flow.v0.enums {
|
|
|
2240
2242
|
type ReturnTrackingStatus = 'awaiting_customs_clearance' | 'cancel_requested' | 'canceled' | 'collection_attempt_failed' | 'customs_clearance_completed' | 'delivered_to_retailer' | 'in_transit_to_local_hub' | 'in_transit_to_retailer' | 'parcel_added_to_pallet' | 'parcel_delayed' | 'parcel_extracted_from_pallet' | 'parcel_lost' | 'parcel_processed_by_retailer' | 'parcel_under_investigation' | 'processed_by_local_hub' | 'received_at_local_hub' | 'received_by_the_carrier' | 'return_registered_online';
|
|
2241
2243
|
type ReversalErrorCode = 'amount_exceeds_balance' | 'authorization_declined' | 'authorization_expired' | 'invalid_authorization' | 'invalid_key' | 'invalid_amount' | 'invalid_currency' | 'no_remaining_balance' | 'partial_reversal_not_supported' | 'unknown';
|
|
2242
2244
|
type ReversalStatus = 'pending' | 'processed' | 'failed';
|
|
2245
|
+
type ReviewStatus = 'high_risk_in_review' | 'low_risk_in_review' | 'reviewed';
|
|
2243
2246
|
type Role = 'admin' | 'member';
|
|
2244
2247
|
type RoundingMethod = 'up' | 'down' | 'nearest';
|
|
2245
2248
|
type RoundingType = 'pattern' | 'multiple';
|
|
@@ -2275,7 +2278,7 @@ declare namespace io.flow.v0.enums {
|
|
|
2275
2278
|
type TrackingStatus = 'label_created' | 'pending' | 'info_received' | 'picked_up' | 'in_transit' | 'out_for_delivery' | 'attempt_fail' | 'delivered' | 'exception' | 'returned' | 'expired';
|
|
2276
2279
|
type TradeAgreementName = 'USMCA' | 'T-MEC' | 'CUSMA' | 'TCA';
|
|
2277
2280
|
type TradeAgreementStatus = 'supported' | 'not_supported';
|
|
2278
|
-
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';
|
|
2281
|
+
type TransactionSource = 'capture' | 'refund' | 'dispute' | 'adjustment' | 'reversal' | 'shipping_label' | 'shipping_label_service' | 'trueup' | 'carrier_charge' | 'shipping_label_revenue_share' | 'platform_fee' | 'tax' | 'duty' | 'withholding' | 'other_adjustment' | 'tax_adjustment' | 'channel' | 'channel_billed' | 'order_service' | 'virtual_card_capture' | 'virtual_card_refund';
|
|
2279
2282
|
type TrueupSource = 'flow' | 'channel' | 'dhl-parcel' | 'dhl';
|
|
2280
2283
|
type TrueupSurchargeType = 'fuel' | 'remote_area' | 'oversize' | 'duties_paid' | 'emergency' | 'peak' | 'address_correction';
|
|
2281
2284
|
type UnitOfLength = 'millimeter' | 'centimeter' | 'inch' | 'foot' | 'meter';
|
|
@@ -8645,6 +8648,8 @@ declare namespace io.flow.v0.models {
|
|
|
8645
8648
|
readonly 'status': io.flow.v0.models.PaymentAuthorizationStatus;
|
|
8646
8649
|
readonly 'amount': number;
|
|
8647
8650
|
readonly 'currency': string;
|
|
8651
|
+
readonly 'base_amount'?: number;
|
|
8652
|
+
readonly 'base_currency'?: string;
|
|
8648
8653
|
}
|
|
8649
8654
|
|
|
8650
8655
|
interface PaymentAuthorizationStatus {
|
|
@@ -8656,6 +8661,8 @@ declare namespace io.flow.v0.models {
|
|
|
8656
8661
|
readonly 'id': string;
|
|
8657
8662
|
readonly 'amount': number;
|
|
8658
8663
|
readonly 'currency': string;
|
|
8664
|
+
readonly 'base_amount'?: number;
|
|
8665
|
+
readonly 'base_currency'?: string;
|
|
8659
8666
|
readonly 'created_at': string;
|
|
8660
8667
|
readonly 'updated_at': string;
|
|
8661
8668
|
readonly 'status': io.flow.v0.models.PaymentCaptureStatus;
|
|
@@ -9088,6 +9095,8 @@ declare namespace io.flow.v0.models {
|
|
|
9088
9095
|
readonly 'id': string;
|
|
9089
9096
|
readonly 'amount': number;
|
|
9090
9097
|
readonly 'currency': string;
|
|
9098
|
+
readonly 'base_amount'?: number;
|
|
9099
|
+
readonly 'base_currency'?: string;
|
|
9091
9100
|
readonly 'created_at': string;
|
|
9092
9101
|
readonly 'updated_at': string;
|
|
9093
9102
|
readonly 'status': io.flow.v0.models.PaymentRefundStatus;
|
|
@@ -9113,6 +9122,8 @@ declare namespace io.flow.v0.models {
|
|
|
9113
9122
|
readonly 'next_action'?: io.flow.v0.unions.Action;
|
|
9114
9123
|
readonly 'amount': number;
|
|
9115
9124
|
readonly 'currency': string;
|
|
9125
|
+
readonly 'base_amount'?: number;
|
|
9126
|
+
readonly 'base_currency'?: string;
|
|
9116
9127
|
readonly 'order_information': io.flow.v0.unions.OrderInformation;
|
|
9117
9128
|
readonly 'device_details': io.flow.v0.unions.DeviceDetails;
|
|
9118
9129
|
readonly 'locale'?: string;
|
|
@@ -9127,6 +9138,12 @@ declare namespace io.flow.v0.models {
|
|
|
9127
9138
|
|
|
9128
9139
|
interface PaymentRequestBilling {
|
|
9129
9140
|
readonly 'fees': io.flow.v0.models.PaymentRequestBillingFees;
|
|
9141
|
+
readonly 'currency_rate'?: io.flow.v0.models.PaymentRequestBillingCurrencyRate;
|
|
9142
|
+
}
|
|
9143
|
+
|
|
9144
|
+
interface PaymentRequestBillingCurrencyRate {
|
|
9145
|
+
readonly 'base_amount': number;
|
|
9146
|
+
readonly 'base_currency': string;
|
|
9130
9147
|
}
|
|
9131
9148
|
|
|
9132
9149
|
interface PaymentRequestBillingFees {
|
|
@@ -9193,6 +9210,8 @@ declare namespace io.flow.v0.models {
|
|
|
9193
9210
|
readonly 'id': string;
|
|
9194
9211
|
readonly 'amount': number;
|
|
9195
9212
|
readonly 'currency': string;
|
|
9213
|
+
readonly 'base_amount'?: number;
|
|
9214
|
+
readonly 'base_currency'?: string;
|
|
9196
9215
|
readonly 'created_at': string;
|
|
9197
9216
|
readonly 'updated_at': string;
|
|
9198
9217
|
readonly 'status': io.flow.v0.models.PaymentReversalStatus;
|
|
@@ -9637,6 +9656,9 @@ declare namespace io.flow.v0.models {
|
|
|
9637
9656
|
readonly 'product_id': string;
|
|
9638
9657
|
readonly 'item_numbers': string[];
|
|
9639
9658
|
readonly 'prohibited_regions': string[];
|
|
9659
|
+
readonly 'review_status'?: io.flow.v0.enums.ReviewStatus;
|
|
9660
|
+
readonly 'rules'?: io.flow.v0.enums.ProductRestrictionRule[];
|
|
9661
|
+
readonly 'updated_by_user_id'?: string;
|
|
9640
9662
|
}
|
|
9641
9663
|
|
|
9642
9664
|
interface ProductRestrictionResultDeleted {
|
|
@@ -12149,6 +12171,13 @@ declare namespace io.flow.v0.models {
|
|
|
12149
12171
|
readonly 'network_details'?: io.flow.v0.models.TransactionNetworkDetailsCard;
|
|
12150
12172
|
}
|
|
12151
12173
|
|
|
12174
|
+
interface TransactionMetadataCarrierCharge {
|
|
12175
|
+
readonly 'discriminator': 'carrier_charge';
|
|
12176
|
+
readonly 'reason': io.flow.v0.enums.CarrierChargeReason;
|
|
12177
|
+
readonly 'carrier_id': string;
|
|
12178
|
+
readonly 'carrier_tracking_number': string;
|
|
12179
|
+
}
|
|
12180
|
+
|
|
12152
12181
|
interface TransactionMetadataChannel {
|
|
12153
12182
|
readonly 'discriminator': 'channel';
|
|
12154
12183
|
readonly 'method': string;
|
|
@@ -12594,7 +12623,7 @@ declare namespace io.flow.v0.unions {
|
|
|
12594
12623
|
type Token = (io.flow.v0.models.ChannelToken | io.flow.v0.models.OrganizationToken | io.flow.v0.models.OrganizationTokenV2 | io.flow.v0.models.PartnerToken);
|
|
12595
12624
|
type TokenReference = (io.flow.v0.models.ChannelTokenReference | io.flow.v0.models.OrganizationTokenReference | io.flow.v0.models.OrganizationTokenV2Reference | io.flow.v0.models.PartnerTokenReference);
|
|
12596
12625
|
type TransactionDetails = (io.flow.v0.models.TransactionDetailsCard);
|
|
12597
|
-
type TransactionMetadata = (io.flow.v0.models.TransactionMetadataShippingLabel | io.flow.v0.models.TransactionMetadataChannel | io.flow.v0.models.TransactionMetadataTrueup | io.flow.v0.models.TransactionMetadataManual);
|
|
12626
|
+
type TransactionMetadata = (io.flow.v0.models.TransactionMetadataShippingLabel | io.flow.v0.models.TransactionMetadataChannel | io.flow.v0.models.TransactionMetadataTrueup | io.flow.v0.models.TransactionMetadataCarrierCharge | io.flow.v0.models.TransactionMetadataManual);
|
|
12598
12627
|
}
|
|
12599
12628
|
|
|
12600
12629
|
export const abandonedOrderPromotionStatus: PropTypes.Requireable<io.flow.v0.enums.AbandonedOrderPromotionStatus>;
|
|
@@ -12621,6 +12650,7 @@ export const captureDeclineCode: PropTypes.Requireable<io.flow.v0.enums.CaptureD
|
|
|
12621
12650
|
export const captureStatus: PropTypes.Requireable<io.flow.v0.enums.CaptureStatus>;
|
|
12622
12651
|
export const cardErrorCode: PropTypes.Requireable<io.flow.v0.enums.CardErrorCode>;
|
|
12623
12652
|
export const cardType: PropTypes.Requireable<io.flow.v0.enums.CardType>;
|
|
12653
|
+
export const carrierChargeReason: PropTypes.Requireable<io.flow.v0.enums.CarrierChargeReason>;
|
|
12624
12654
|
export const centerCapability: PropTypes.Requireable<io.flow.v0.enums.CenterCapability>;
|
|
12625
12655
|
export const changeType: PropTypes.Requireable<io.flow.v0.enums.ChangeType>;
|
|
12626
12656
|
export const channelCurrencyCapability: PropTypes.Requireable<io.flow.v0.enums.ChannelCurrencyCapability>;
|
|
@@ -12749,6 +12779,7 @@ export const priceDetailComponentKey: PropTypes.Requireable<io.flow.v0.enums.Pri
|
|
|
12749
12779
|
export const priceDetailKey: PropTypes.Requireable<io.flow.v0.enums.PriceDetailKey>;
|
|
12750
12780
|
export const priceFacetBoundary: PropTypes.Requireable<io.flow.v0.enums.PriceFacetBoundary>;
|
|
12751
12781
|
export const pricingLevySetting: PropTypes.Requireable<io.flow.v0.enums.PricingLevySetting>;
|
|
12782
|
+
export const productRestrictionRule: PropTypes.Requireable<io.flow.v0.enums.ProductRestrictionRule>;
|
|
12752
12783
|
export const promotionTriggerType: PropTypes.Requireable<io.flow.v0.enums.PromotionTriggerType>;
|
|
12753
12784
|
export const provinceType: PropTypes.Requireable<io.flow.v0.enums.ProvinceType>;
|
|
12754
12785
|
export const quoteErrorCode: PropTypes.Requireable<io.flow.v0.enums.QuoteErrorCode>;
|
|
@@ -12762,6 +12793,7 @@ export const returnStatus: PropTypes.Requireable<io.flow.v0.enums.ReturnStatus>;
|
|
|
12762
12793
|
export const returnTrackingStatus: PropTypes.Requireable<io.flow.v0.enums.ReturnTrackingStatus>;
|
|
12763
12794
|
export const reversalErrorCode: PropTypes.Requireable<io.flow.v0.enums.ReversalErrorCode>;
|
|
12764
12795
|
export const reversalStatus: PropTypes.Requireable<io.flow.v0.enums.ReversalStatus>;
|
|
12796
|
+
export const reviewStatus: PropTypes.Requireable<io.flow.v0.enums.ReviewStatus>;
|
|
12765
12797
|
export const role: PropTypes.Requireable<io.flow.v0.enums.Role>;
|
|
12766
12798
|
export const roundingMethod: PropTypes.Requireable<io.flow.v0.enums.RoundingMethod>;
|
|
12767
12799
|
export const roundingType: PropTypes.Requireable<io.flow.v0.enums.RoundingType>;
|
|
@@ -13779,6 +13811,7 @@ export const paymentRefundForm: PropTypes.Requireable<io.flow.v0.models.PaymentR
|
|
|
13779
13811
|
export const paymentRefundStatus: PropTypes.Requireable<io.flow.v0.models.PaymentRefundStatus>;
|
|
13780
13812
|
export const paymentRequest: PropTypes.Requireable<io.flow.v0.models.PaymentRequest>;
|
|
13781
13813
|
export const paymentRequestBilling: PropTypes.Requireable<io.flow.v0.models.PaymentRequestBilling>;
|
|
13814
|
+
export const paymentRequestBillingCurrencyRate: PropTypes.Requireable<io.flow.v0.models.PaymentRequestBillingCurrencyRate>;
|
|
13782
13815
|
export const paymentRequestBillingFees: PropTypes.Requireable<io.flow.v0.models.PaymentRequestBillingFees>;
|
|
13783
13816
|
export const paymentRequestBundle: PropTypes.Requireable<io.flow.v0.models.PaymentRequestBundle>;
|
|
13784
13817
|
export const paymentRequestBundleForm: PropTypes.Requireable<io.flow.v0.models.PaymentRequestBundleForm>;
|
|
@@ -14183,6 +14216,7 @@ export const tradeAgreementCertifier: PropTypes.Requireable<io.flow.v0.models.Tr
|
|
|
14183
14216
|
export const tradeAgreementDuty: PropTypes.Requireable<io.flow.v0.models.TradeAgreementDuty>;
|
|
14184
14217
|
export const transaction: PropTypes.Requireable<io.flow.v0.models.Transaction>;
|
|
14185
14218
|
export const transactionDetailsCard: PropTypes.Requireable<io.flow.v0.models.TransactionDetailsCard>;
|
|
14219
|
+
export const transactionMetadataCarrierCharge: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataCarrierCharge>;
|
|
14186
14220
|
export const transactionMetadataChannel: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataChannel>;
|
|
14187
14221
|
export const transactionMetadataChannelCardMetadata: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataChannelCardMetadata>;
|
|
14188
14222
|
export const transactionMetadataChannelCardMetadataIssuerSummary: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataChannelCardMetadataIssuerSummary>;
|