@flowio/api-prop-types 10.16.55 → 10.16.57
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 +177 -15
- package/lib/api.js +1 -1
- package/package.json +2 -2
- package/src/api.d.ts +177 -15
- package/src/api.js +244 -42
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/api-prop-types",
|
|
3
|
-
"version": "10.16.
|
|
3
|
+
"version": "10.16.57",
|
|
4
4
|
"description": "PropType validators that work with Flow API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"flow",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"prop-types": "^15.7.0"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "cc45ff4a674f1a129166e04d6910cb7a1a2f0da1"
|
|
33
33
|
}
|
package/src/api.d.ts
CHANGED
|
@@ -164,7 +164,7 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
164
164
|
type ConfirmationMethod = 'automatic' | 'manual';
|
|
165
165
|
type DeclineCode = 'approve_with_id' | 'call_issuer' | 'card_not_supported' | 'card_velocity_exceeded' | 'currency_not_supported' | 'do_not_honor' | 'do_not_try_again' | 'duplicate_transaction' | 'expired_card' | 'fraudulent' | 'generic_decline' | 'incorrect_number' | 'incorrect_cvc' | 'incorrect_pin' | 'incorrect_zip' | 'insufficient_funds' | 'invalid_account' | 'invalid_amount' | 'invalid_cvc' | 'invalid_expiry_year' | 'invalid_number' | 'invalid_pin' | 'issuer_not_available' | 'lost_card' | 'new_account_information_available' | 'no_action_taken' | 'not_permitted' | 'pickup_card' | 'pin_try_exceeded' | 'processing_error' | 'reenter_transaction' | 'restricted_card' | 'revocation_of_all_authorizations' | 'revocation_of_authorization' | 'security_violation' | 'service_not_allowed' | 'stolen_card' | 'stop_payment_order' | 'testmode_decline' | 'transaction_not_allowed' | 'try_again_later' | 'withdrawal_count_limit_exceeded';
|
|
166
166
|
type ErrorType = 'api_connection_error' | 'api_error' | 'authentication_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error' | 'rate_limit_error' | 'validation_error';
|
|
167
|
-
type EventType = 'charge.captured' | 'charge.failed' | 'charge.pending' | 'charge.refunded' | 'charge.
|
|
167
|
+
type EventType = 'charge.captured' | 'charge.failed' | 'charge.pending' | 'charge.refunded' | 'charge.expired' | 'charge.succeeded' | 'charge.updated' | 'charge.refund.updated' | 'payment_intent.created' | 'payment_intent.amount_capturable_updated' | 'payment_intent.payment_failed' | 'payment_intent.succeeded' | 'payment_intent.requires_action' | 'payment_intent.canceled' | 'payment_intent.processing' | 'source.canceled' | 'source.chargeable' | 'source.failed';
|
|
168
168
|
type KlarnaPaymentMethodCategoryType = 'direct_bank_transfer' | 'direct_debit' | 'pay_later' | 'pay_now' | 'pay_over_time';
|
|
169
169
|
type KlarnaProduct = 'payment';
|
|
170
170
|
type NetworkStatus = 'approved_by_network' | 'declined_by_network' | 'not_sent_to_network' | 'reversed_after_approval';
|
|
@@ -186,6 +186,7 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
186
186
|
type SourceStatus = 'canceled' | 'chargeable' | 'consumed' | 'failed' | 'pending';
|
|
187
187
|
type SourceType = 'ach_credit_transfer' | 'ach_debit' | 'alipay' | 'bancontact' | 'bitcoin' | 'card' | 'eps' | 'giropay' | 'ideal' | 'klarna' | 'multibanco' | 'p24' | 'sepa_debit' | 'sofort' | 'three_d_secure';
|
|
188
188
|
type SourceUsageType = 'reusable' | 'single_use';
|
|
189
|
+
type StoredCredentialTransactionType = 'setup_on_session' | 'setup_off_session_recurring' | 'setup_off_session_unscheduled' | 'stored_on_session' | 'stored_on_session_recurring' | 'stored_on_session_unscheduled';
|
|
189
190
|
type ThreeDSecureSupport = 'required' | 'recommended' | 'optional' | 'not_supported';
|
|
190
191
|
type ThreeDsAuthenticationFlow = 'challenge' | 'frictionless';
|
|
191
192
|
type ThreeDsResult = 'authenticated' | 'attempt_acknowledged' | 'exempted' | 'not_supported' | 'failed' | 'processing_error';
|
|
@@ -280,6 +281,11 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
280
281
|
readonly 'cvc_check'?: io.flow.stripe.v0.enums.CheckOutcome;
|
|
281
282
|
}
|
|
282
283
|
|
|
284
|
+
interface CardNetworks {
|
|
285
|
+
readonly 'available'?: string[];
|
|
286
|
+
readonly 'preferred'?: string;
|
|
287
|
+
}
|
|
288
|
+
|
|
283
289
|
interface CardRequest {
|
|
284
290
|
readonly 'object': string;
|
|
285
291
|
readonly 'exp_month': string;
|
|
@@ -300,6 +306,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
300
306
|
readonly 'id': string;
|
|
301
307
|
readonly 'amount': number;
|
|
302
308
|
readonly 'amount_refunded': number;
|
|
309
|
+
readonly 'authorization_code'?: string;
|
|
303
310
|
readonly 'captured': boolean;
|
|
304
311
|
readonly 'created': number;
|
|
305
312
|
readonly 'currency': string;
|
|
@@ -350,6 +357,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
350
357
|
readonly 'id': string;
|
|
351
358
|
readonly 'amount': number;
|
|
352
359
|
readonly 'amount_refunded': number;
|
|
360
|
+
readonly 'authorization_code'?: string;
|
|
353
361
|
readonly 'captured': boolean;
|
|
354
362
|
readonly 'created': number;
|
|
355
363
|
readonly 'currency': string;
|
|
@@ -447,6 +455,8 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
447
455
|
readonly 'order_number'?: string;
|
|
448
456
|
readonly 'authorization_id'?: string;
|
|
449
457
|
readonly 'organization_id'?: string;
|
|
458
|
+
readonly 'payment_request_id'?: string;
|
|
459
|
+
readonly 'payment_request_order_reference'?: string;
|
|
450
460
|
}
|
|
451
461
|
|
|
452
462
|
interface NetworkTokenUsed {
|
|
@@ -567,6 +577,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
567
577
|
interface PaymentIntentConfirmationForm {
|
|
568
578
|
readonly 'off_session'?: boolean;
|
|
569
579
|
readonly 'payment_method'?: string;
|
|
580
|
+
readonly 'payment_method_data'?: io.flow.stripe.v0.unions.PaymentMethodData;
|
|
570
581
|
readonly 'payment_method_options'?: io.flow.stripe.v0.models.PaymentMethodOptions;
|
|
571
582
|
readonly 'payment_method_types'?: string[];
|
|
572
583
|
readonly 'receipt_email'?: string;
|
|
@@ -587,6 +598,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
587
598
|
readonly 'metadata'?: io.flow.stripe.v0.models.Metadata;
|
|
588
599
|
readonly 'on_behalf_of'?: string;
|
|
589
600
|
readonly 'payment_method'?: string;
|
|
601
|
+
readonly 'payment_method_data'?: io.flow.stripe.v0.unions.PaymentMethodData;
|
|
590
602
|
readonly 'payment_method_options'?: io.flow.stripe.v0.models.PaymentMethodOptions;
|
|
591
603
|
readonly 'payment_method_types'?: string[];
|
|
592
604
|
readonly 'receipt_email'?: string;
|
|
@@ -619,7 +631,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
619
631
|
readonly 'id': string;
|
|
620
632
|
readonly 'object': string;
|
|
621
633
|
readonly 'billing_details'?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
|
|
622
|
-
readonly 'card'?: io.flow.stripe.v0.models.
|
|
634
|
+
readonly 'card'?: io.flow.stripe.v0.models.PaymentMethodCardDetails;
|
|
623
635
|
readonly 'card_present'?: any/*object*/;
|
|
624
636
|
readonly 'created': number;
|
|
625
637
|
readonly 'customer'?: string;
|
|
@@ -634,6 +646,33 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
634
646
|
readonly 'phone'?: string;
|
|
635
647
|
}
|
|
636
648
|
|
|
649
|
+
interface PaymentMethodCardDetails {
|
|
650
|
+
readonly 'brand'?: io.flow.stripe.v0.enums.CardBrand;
|
|
651
|
+
readonly 'checks'?: io.flow.stripe.v0.models.CardChecks;
|
|
652
|
+
readonly 'country'?: string;
|
|
653
|
+
readonly 'exp_month'?: number;
|
|
654
|
+
readonly 'exp_year'?: number;
|
|
655
|
+
readonly 'fingerprint'?: string;
|
|
656
|
+
readonly 'funding'?: io.flow.stripe.v0.enums.CardFundingType;
|
|
657
|
+
readonly 'last4'?: string;
|
|
658
|
+
readonly 'networks'?: io.flow.stripe.v0.models.CardNetworks;
|
|
659
|
+
readonly 'three_d_secure_usage'?: io.flow.stripe.v0.models.ThreeDSecureUsage;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
interface PaymentMethodCardForm {
|
|
663
|
+
readonly 'exp_month': string;
|
|
664
|
+
readonly 'exp_year': string;
|
|
665
|
+
readonly 'number': string;
|
|
666
|
+
readonly 'cvc'?: string;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
interface PaymentMethodDataCard {
|
|
670
|
+
readonly 'type': 'card';
|
|
671
|
+
readonly 'billing_details'?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
|
|
672
|
+
readonly 'metadata'?: any/*object*/;
|
|
673
|
+
readonly 'card': io.flow.stripe.v0.models.PaymentMethodCardForm;
|
|
674
|
+
}
|
|
675
|
+
|
|
637
676
|
interface PaymentMethodDetailsCard {
|
|
638
677
|
readonly 'type': 'card';
|
|
639
678
|
readonly 'card': io.flow.stripe.v0.models.PaymentMethodDetailsCardInformation;
|
|
@@ -671,10 +710,11 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
671
710
|
readonly 'preferred_locale'?: io.flow.stripe.v0.enums.PreferredLocaleKlarna;
|
|
672
711
|
}
|
|
673
712
|
|
|
674
|
-
interface
|
|
675
|
-
readonly 'type':
|
|
713
|
+
interface PaymentMethodFormCard {
|
|
714
|
+
readonly 'type': 'card';
|
|
676
715
|
readonly 'billing_details'?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
|
|
677
|
-
readonly '
|
|
716
|
+
readonly 'metadata'?: any/*object*/;
|
|
717
|
+
readonly 'card': io.flow.stripe.v0.models.PaymentMethodCardForm;
|
|
678
718
|
}
|
|
679
719
|
|
|
680
720
|
interface PaymentMethodOptions {
|
|
@@ -682,7 +722,9 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
682
722
|
}
|
|
683
723
|
|
|
684
724
|
interface PaymentMethodOptionsCard {
|
|
725
|
+
readonly 'network'?: string;
|
|
685
726
|
readonly 'request_three_d_secure'?: io.flow.stripe.v0.enums.RequestThreeDSecureType;
|
|
727
|
+
readonly 'stored_credential_transaction_type'?: io.flow.stripe.v0.enums.StoredCredentialTransactionType;
|
|
686
728
|
}
|
|
687
729
|
|
|
688
730
|
interface PaymentOutcome {
|
|
@@ -934,6 +976,10 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
934
976
|
readonly 'stripe_js': string;
|
|
935
977
|
}
|
|
936
978
|
|
|
979
|
+
interface ThreeDSecureUsage {
|
|
980
|
+
readonly 'supported'?: boolean;
|
|
981
|
+
}
|
|
982
|
+
|
|
937
983
|
interface Token {
|
|
938
984
|
readonly 'id': string;
|
|
939
985
|
readonly 'object': string;
|
|
@@ -972,7 +1018,9 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
972
1018
|
|
|
973
1019
|
declare namespace io.flow.stripe.v0.unions {
|
|
974
1020
|
type CardWallet = (io.flow.stripe.v0.models.Masterpass | io.flow.stripe.v0.models.ApplePay | io.flow.stripe.v0.models.VisaCheckout);
|
|
1021
|
+
type PaymentMethodData = (io.flow.stripe.v0.models.PaymentMethodDataCard);
|
|
975
1022
|
type PaymentMethodDetails = (io.flow.stripe.v0.models.PaymentMethodDetailsCard | io.flow.stripe.v0.models.PaymentMethodDetailsKlarna);
|
|
1023
|
+
type PaymentMethodForm = (io.flow.stripe.v0.models.PaymentMethodFormCard);
|
|
976
1024
|
}
|
|
977
1025
|
|
|
978
1026
|
declare namespace io.flow.units.v0.enums {
|
|
@@ -1913,10 +1961,10 @@ declare namespace io.flow.ben.test.internal.v0.unions {
|
|
|
1913
1961
|
}
|
|
1914
1962
|
|
|
1915
1963
|
declare namespace io.flow.apple.pay.v0.enums {
|
|
1916
|
-
type ApplePayContactField = 'email' | 'name' | 'phone' | '
|
|
1964
|
+
type ApplePayContactField = 'email' | 'name' | 'phone' | 'postal_address' | 'phonetic_name';
|
|
1917
1965
|
type ApplePayLineItemType = 'final' | 'pending';
|
|
1918
1966
|
type ApplePayMerchantCapability = 'supports3DS' | 'supportsCredit' | 'supportsDebit' | 'supportsEMV';
|
|
1919
|
-
type ApplePayShippingType = 'shipping' | 'delivery' | '
|
|
1967
|
+
type ApplePayShippingType = 'shipping' | 'delivery' | 'store_pickup' | 'service_pickup';
|
|
1920
1968
|
type ApplePaySupportedNetworks = 'amex' | 'chinaUnionPay' | 'discover' | 'jcb' | 'masterCard' | 'privateLabel' | 'visa';
|
|
1921
1969
|
}
|
|
1922
1970
|
|
|
@@ -1924,7 +1972,7 @@ declare namespace io.flow.apple.pay.v0.models {
|
|
|
1924
1972
|
interface ApplePayLineItem {
|
|
1925
1973
|
readonly 'label': string;
|
|
1926
1974
|
readonly 'type': io.flow.apple.pay.v0.enums.ApplePayLineItemType;
|
|
1927
|
-
readonly 'amount':
|
|
1975
|
+
readonly 'amount': number;
|
|
1928
1976
|
}
|
|
1929
1977
|
|
|
1930
1978
|
interface ApplePayPaymentContact {
|
|
@@ -1975,7 +2023,7 @@ declare namespace io.flow.apple.pay.v0.models {
|
|
|
1975
2023
|
interface ApplePayShippingMethod {
|
|
1976
2024
|
readonly 'label': string;
|
|
1977
2025
|
readonly 'detail': string;
|
|
1978
|
-
readonly 'amount':
|
|
2026
|
+
readonly 'amount': number;
|
|
1979
2027
|
readonly 'identifier': string;
|
|
1980
2028
|
}
|
|
1981
2029
|
}
|
|
@@ -1992,8 +2040,7 @@ declare namespace io.flow.error.v0.models {
|
|
|
1992
2040
|
}
|
|
1993
2041
|
|
|
1994
2042
|
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';
|
|
2043
|
+
type TrueUpSurchargeType = 'fuel' | 'remote_area' | 'oversize' | 'duties_paid' | 'emergency' | 'peak' | 'address_correction';
|
|
1997
2044
|
}
|
|
1998
2045
|
|
|
1999
2046
|
declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.models {
|
|
@@ -2017,11 +2064,44 @@ declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.models {
|
|
|
2017
2064
|
readonly 'metadata': io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelMetadata;
|
|
2018
2065
|
}
|
|
2019
2066
|
|
|
2067
|
+
interface LabelInvoiceResponseFile {
|
|
2068
|
+
readonly 'id': string;
|
|
2069
|
+
readonly 'url': string;
|
|
2070
|
+
readonly 'created_at': string;
|
|
2071
|
+
readonly 'result'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelInvoiceResponseFileResult;
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2074
|
+
interface LabelInvoiceResponseFileForm {
|
|
2075
|
+
readonly 'url': string;
|
|
2076
|
+
}
|
|
2077
|
+
|
|
2078
|
+
interface LabelInvoiceResponseFileResult {
|
|
2079
|
+
readonly 'processed_at': string;
|
|
2080
|
+
readonly 'number_lines_successful': number;
|
|
2081
|
+
readonly 'number_lines_with_errors': number;
|
|
2082
|
+
readonly 'errors_url'?: string;
|
|
2083
|
+
}
|
|
2084
|
+
|
|
2085
|
+
interface LabelInvoiceResponseForm {
|
|
2086
|
+
readonly 'id': string;
|
|
2087
|
+
readonly 'label_invoice_request_id': string;
|
|
2088
|
+
readonly 'units': io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelResponseUnits;
|
|
2089
|
+
readonly 'base': io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelBase;
|
|
2090
|
+
readonly 'surcharges': io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeForm;
|
|
2091
|
+
readonly 'total': number;
|
|
2092
|
+
}
|
|
2093
|
+
|
|
2020
2094
|
interface LabelMetadata {
|
|
2021
2095
|
readonly 'ratecard': io.flow.billing.RESERVED_WORD_true.up.v0.models.MetadataRatecard;
|
|
2022
2096
|
readonly 'weights': io.flow.billing.RESERVED_WORD_true.up.v0.models.MetadataWeights;
|
|
2023
2097
|
}
|
|
2024
2098
|
|
|
2099
|
+
interface LabelResponseUnits {
|
|
2100
|
+
readonly 'currency': string;
|
|
2101
|
+
readonly 'weight': io.flow.units.v0.enums.UnitOfWeight;
|
|
2102
|
+
readonly 'length'?: io.flow.units.v0.enums.UnitOfLength;
|
|
2103
|
+
}
|
|
2104
|
+
|
|
2025
2105
|
interface LabelSurcharge {
|
|
2026
2106
|
readonly 'amount': number;
|
|
2027
2107
|
readonly 'type': io.flow.billing.RESERVED_WORD_true.up.v0.enums.TrueUpSurchargeType;
|
|
@@ -2043,6 +2123,22 @@ declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.models {
|
|
|
2043
2123
|
readonly 'percentage': number;
|
|
2044
2124
|
}
|
|
2045
2125
|
|
|
2126
|
+
interface LabelSurchargeForm {
|
|
2127
|
+
readonly 'fuel'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
2128
|
+
readonly 'remote_area'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
2129
|
+
readonly 'oversize'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
2130
|
+
readonly 'duties_paid'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
2131
|
+
readonly 'emergency'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
2132
|
+
readonly 'peak'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
2133
|
+
readonly 'address_correction'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
2134
|
+
}
|
|
2135
|
+
|
|
2136
|
+
interface LabelSurchargeSingleForm {
|
|
2137
|
+
readonly 'amount': number;
|
|
2138
|
+
readonly 'percentage'?: number;
|
|
2139
|
+
readonly 'fee_per_weight_unit'?: number;
|
|
2140
|
+
}
|
|
2141
|
+
|
|
2046
2142
|
interface LabelUnits {
|
|
2047
2143
|
readonly 'currency': string;
|
|
2048
2144
|
readonly 'weight': io.flow.units.v0.enums.UnitOfWeight;
|
|
@@ -2060,7 +2156,6 @@ declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.models {
|
|
|
2060
2156
|
}
|
|
2061
2157
|
|
|
2062
2158
|
interface MetadataWeights {
|
|
2063
|
-
readonly 'selected': io.flow.billing.RESERVED_WORD_true.up.v0.enums.WeightSelection;
|
|
2064
2159
|
readonly 'dead'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.WeightsDead;
|
|
2065
2160
|
readonly 'dimensional'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.WeightsDimensional;
|
|
2066
2161
|
}
|
|
@@ -2205,7 +2300,7 @@ declare namespace io.flow.v0.enums {
|
|
|
2205
2300
|
type OrderChangeSource = 'consumer' | 'retailer' | 'fulfillment' | 'flow' | 'carrier';
|
|
2206
2301
|
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
2302
|
type OrderMerchantOfRecord = 'flow' | 'organization' | 'mixed';
|
|
2208
|
-
type OrderPaymentType = 'card' | 'online' | 'credit' | 'subsidized' | 'installment_plan' | 'cash_on_delivery';
|
|
2303
|
+
type OrderPaymentType = 'card' | 'online' | 'credit' | 'external' | 'subsidized' | 'installment_plan' | 'cash_on_delivery';
|
|
2209
2304
|
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
2305
|
type OrderPriceDetailKey = 'adjustment' | 'subtotal' | 'vat' | 'duty' | 'shipping' | 'insurance' | 'discount' | 'surcharges';
|
|
2211
2306
|
type OrderQuoteAddressType = 'shipping';
|
|
@@ -2294,7 +2389,9 @@ declare namespace io.flow.v0.enums {
|
|
|
2294
2389
|
type TradeAgreementName = 'USMCA' | 'T-MEC' | 'CUSMA' | 'TCA';
|
|
2295
2390
|
type TradeAgreementStatus = 'supported' | 'not_supported';
|
|
2296
2391
|
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';
|
|
2392
|
+
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';
|
|
2393
|
+
type TrueupSource = 'flow' | 'channel' | 'dhl-parcel' | 'dhl';
|
|
2394
|
+
type TrueupSurchargeType = 'fuel' | 'remote_area' | 'oversize' | 'duties_paid' | 'emergency' | 'peak' | 'address_correction';
|
|
2298
2395
|
type UnitOfLength = 'millimeter' | 'centimeter' | 'inch' | 'foot' | 'meter';
|
|
2299
2396
|
type UnitOfMeasurement = 'millimeter' | 'centimeter' | 'inch' | 'foot' | 'cubic_inch' | 'cubic_meter' | 'gram' | 'kilogram' | 'meter' | 'ounce' | 'pound';
|
|
2300
2397
|
type UnitOfTime = 'year' | 'month' | 'week' | 'day' | 'hour' | 'minute';
|
|
@@ -8219,6 +8316,7 @@ declare namespace io.flow.v0.models {
|
|
|
8219
8316
|
readonly 'current_state': io.flow.v0.unions.OnboardingState;
|
|
8220
8317
|
readonly 'started_at'?: string;
|
|
8221
8318
|
readonly 'time_blocked'?: number;
|
|
8319
|
+
readonly 'time_in_setup'?: number;
|
|
8222
8320
|
readonly 'blocked_since'?: string;
|
|
8223
8321
|
readonly 'completed_at'?: string;
|
|
8224
8322
|
readonly 'onboarding_started_at'?: string;
|
|
@@ -9212,6 +9310,12 @@ declare namespace io.flow.v0.models {
|
|
|
9212
9310
|
readonly 'ends_at'?: string;
|
|
9213
9311
|
}
|
|
9214
9312
|
|
|
9313
|
+
interface PendingTransaction {
|
|
9314
|
+
readonly 'id': string;
|
|
9315
|
+
readonly 'reason': io.flow.v0.enums.TransactionPayoutPendingReason;
|
|
9316
|
+
readonly 'reason_set_at': string;
|
|
9317
|
+
}
|
|
9318
|
+
|
|
9215
9319
|
interface PercentMargin {
|
|
9216
9320
|
readonly 'discriminator': 'percent_margin';
|
|
9217
9321
|
readonly 'percentage': number;
|
|
@@ -12031,11 +12135,41 @@ declare namespace io.flow.v0.models {
|
|
|
12031
12135
|
readonly 'network_details'?: io.flow.v0.models.TransactionNetworkDetailsCard;
|
|
12032
12136
|
}
|
|
12033
12137
|
|
|
12138
|
+
interface TransactionMetadataChannel {
|
|
12139
|
+
readonly 'discriminator': 'channel';
|
|
12140
|
+
readonly 'method': string;
|
|
12141
|
+
readonly 'card'?: io.flow.v0.models.TransactionMetadataChannelCardMetadata;
|
|
12142
|
+
}
|
|
12143
|
+
|
|
12144
|
+
interface TransactionMetadataChannelCardMetadata {
|
|
12145
|
+
readonly 'type': io.flow.v0.enums.CardType;
|
|
12146
|
+
readonly 'issuer': io.flow.v0.models.TransactionMetadataChannelCardMetadataIssuerSummary;
|
|
12147
|
+
}
|
|
12148
|
+
|
|
12149
|
+
interface TransactionMetadataChannelCardMetadataIssuerSummary {
|
|
12150
|
+
readonly 'iin': string;
|
|
12151
|
+
readonly 'country': string;
|
|
12152
|
+
}
|
|
12153
|
+
|
|
12034
12154
|
interface TransactionMetadataShippingLabel {
|
|
12035
12155
|
readonly 'discriminator': 'shipping_label';
|
|
12036
12156
|
readonly 'request_method'?: io.flow.v0.enums.LabelRequestMethod;
|
|
12037
12157
|
}
|
|
12038
12158
|
|
|
12159
|
+
interface TransactionMetadataTrueup {
|
|
12160
|
+
readonly 'discriminator': 'trueup';
|
|
12161
|
+
readonly 'estimate': io.flow.v0.models.TransactionMetadataTrueupData;
|
|
12162
|
+
readonly 'actual': io.flow.v0.models.TransactionMetadataTrueupData;
|
|
12163
|
+
}
|
|
12164
|
+
|
|
12165
|
+
interface TransactionMetadataTrueupData {
|
|
12166
|
+
readonly 'source': io.flow.v0.enums.TrueupSource;
|
|
12167
|
+
readonly 'units': io.flow.v0.models.TrueupLabelUnits;
|
|
12168
|
+
readonly 'base': io.flow.v0.models.TrueupLabelBase;
|
|
12169
|
+
readonly 'surcharges': io.flow.v0.models.TrueupLabelSurcharge[];
|
|
12170
|
+
readonly 'total': number;
|
|
12171
|
+
}
|
|
12172
|
+
|
|
12039
12173
|
interface TransactionNetworkDetailsCard {
|
|
12040
12174
|
readonly 'network_transaction_id'?: string;
|
|
12041
12175
|
readonly 'network'?: io.flow.v0.enums.CardType;
|
|
@@ -12068,6 +12202,23 @@ declare namespace io.flow.v0.models {
|
|
|
12068
12202
|
readonly 'to': number;
|
|
12069
12203
|
}
|
|
12070
12204
|
|
|
12205
|
+
interface TrueupLabelBase {
|
|
12206
|
+
readonly 'amount': number;
|
|
12207
|
+
readonly 'weight': number;
|
|
12208
|
+
}
|
|
12209
|
+
|
|
12210
|
+
interface TrueupLabelSurcharge {
|
|
12211
|
+
readonly 'amount': number;
|
|
12212
|
+
readonly 'type': io.flow.v0.enums.TrueupSurchargeType;
|
|
12213
|
+
readonly 'percentage'?: number;
|
|
12214
|
+
readonly 'per_weight_unit'?: number;
|
|
12215
|
+
}
|
|
12216
|
+
|
|
12217
|
+
interface TrueupLabelUnits {
|
|
12218
|
+
readonly 'weight': io.flow.v0.enums.UnitOfWeight;
|
|
12219
|
+
readonly 'length'?: io.flow.v0.enums.UnitOfLength;
|
|
12220
|
+
}
|
|
12221
|
+
|
|
12071
12222
|
interface UltimateBeneficiaryOwner {
|
|
12072
12223
|
readonly 'name': string;
|
|
12073
12224
|
readonly 'dob': string;
|
|
@@ -12406,7 +12557,7 @@ declare namespace io.flow.v0.unions {
|
|
|
12406
12557
|
type Token = (io.flow.v0.models.ChannelToken | io.flow.v0.models.OrganizationToken | io.flow.v0.models.OrganizationTokenV2 | io.flow.v0.models.PartnerToken);
|
|
12407
12558
|
type TokenReference = (io.flow.v0.models.ChannelTokenReference | io.flow.v0.models.OrganizationTokenReference | io.flow.v0.models.OrganizationTokenV2Reference | io.flow.v0.models.PartnerTokenReference);
|
|
12408
12559
|
type TransactionDetails = (io.flow.v0.models.TransactionDetailsCard);
|
|
12409
|
-
type TransactionMetadata = (io.flow.v0.models.TransactionMetadataShippingLabel);
|
|
12560
|
+
type TransactionMetadata = (io.flow.v0.models.TransactionMetadataShippingLabel | io.flow.v0.models.TransactionMetadataChannel | io.flow.v0.models.TransactionMetadataTrueup);
|
|
12410
12561
|
}
|
|
12411
12562
|
|
|
12412
12563
|
export const abandonedOrderPromotionStatus: PropTypes.Requireable<io.flow.v0.enums.AbandonedOrderPromotionStatus>;
|
|
@@ -12610,6 +12761,8 @@ export const tradeAgreementName: PropTypes.Requireable<io.flow.v0.enums.TradeAgr
|
|
|
12610
12761
|
export const tradeAgreementStatus: PropTypes.Requireable<io.flow.v0.enums.TradeAgreementStatus>;
|
|
12611
12762
|
export const transactionPayoutPendingReason: PropTypes.Requireable<io.flow.v0.enums.TransactionPayoutPendingReason>;
|
|
12612
12763
|
export const transactionSource: PropTypes.Requireable<io.flow.v0.enums.TransactionSource>;
|
|
12764
|
+
export const trueupSource: PropTypes.Requireable<io.flow.v0.enums.TrueupSource>;
|
|
12765
|
+
export const trueupSurchargeType: PropTypes.Requireable<io.flow.v0.enums.TrueupSurchargeType>;
|
|
12613
12766
|
export const unitOfLength: PropTypes.Requireable<io.flow.v0.enums.UnitOfLength>;
|
|
12614
12767
|
export const unitOfMeasurement: PropTypes.Requireable<io.flow.v0.enums.UnitOfMeasurement>;
|
|
12615
12768
|
export const unitOfTime: PropTypes.Requireable<io.flow.v0.enums.UnitOfTime>;
|
|
@@ -13598,6 +13751,7 @@ export const paypalAuthorizationForm: PropTypes.Requireable<io.flow.v0.models.Pa
|
|
|
13598
13751
|
export const peakSurchargeByWeightServiceFee: PropTypes.Requireable<io.flow.v0.models.PeakSurchargeByWeightServiceFee>;
|
|
13599
13752
|
export const peakSurchargeRatecardFee: PropTypes.Requireable<io.flow.v0.models.PeakSurchargeRatecardFee>;
|
|
13600
13753
|
export const peakSurchargeServiceFee: PropTypes.Requireable<io.flow.v0.models.PeakSurchargeServiceFee>;
|
|
13754
|
+
export const pendingTransaction: PropTypes.Requireable<io.flow.v0.models.PendingTransaction>;
|
|
13601
13755
|
export const percentMargin: PropTypes.Requireable<io.flow.v0.models.PercentMargin>;
|
|
13602
13756
|
export const permissionAudit: PropTypes.Requireable<io.flow.v0.models.PermissionAudit>;
|
|
13603
13757
|
export const permissionCheck: PropTypes.Requireable<io.flow.v0.models.PermissionCheck>;
|
|
@@ -13973,12 +14127,20 @@ export const tradeAgreementCertifier: PropTypes.Requireable<io.flow.v0.models.Tr
|
|
|
13973
14127
|
export const tradeAgreementDuty: PropTypes.Requireable<io.flow.v0.models.TradeAgreementDuty>;
|
|
13974
14128
|
export const transaction: PropTypes.Requireable<io.flow.v0.models.Transaction>;
|
|
13975
14129
|
export const transactionDetailsCard: PropTypes.Requireable<io.flow.v0.models.TransactionDetailsCard>;
|
|
14130
|
+
export const transactionMetadataChannel: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataChannel>;
|
|
14131
|
+
export const transactionMetadataChannelCardMetadata: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataChannelCardMetadata>;
|
|
14132
|
+
export const transactionMetadataChannelCardMetadataIssuerSummary: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataChannelCardMetadataIssuerSummary>;
|
|
13976
14133
|
export const transactionMetadataShippingLabel: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataShippingLabel>;
|
|
14134
|
+
export const transactionMetadataTrueup: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataTrueup>;
|
|
14135
|
+
export const transactionMetadataTrueupData: PropTypes.Requireable<io.flow.v0.models.TransactionMetadataTrueupData>;
|
|
13977
14136
|
export const transactionNetworkDetailsCard: PropTypes.Requireable<io.flow.v0.models.TransactionNetworkDetailsCard>;
|
|
13978
14137
|
export const transactionReference: PropTypes.Requireable<io.flow.v0.models.TransactionReference>;
|
|
13979
14138
|
export const transactionUpserted: PropTypes.Requireable<io.flow.v0.models.TransactionUpserted>;
|
|
13980
14139
|
export const transitEstimate: PropTypes.Requireable<io.flow.v0.models.TransitEstimate>;
|
|
13981
14140
|
export const transitWindow: PropTypes.Requireable<io.flow.v0.models.TransitWindow>;
|
|
14141
|
+
export const trueupLabelBase: PropTypes.Requireable<io.flow.v0.models.TrueupLabelBase>;
|
|
14142
|
+
export const trueupLabelSurcharge: PropTypes.Requireable<io.flow.v0.models.TrueupLabelSurcharge>;
|
|
14143
|
+
export const trueupLabelUnits: PropTypes.Requireable<io.flow.v0.models.TrueupLabelUnits>;
|
|
13982
14144
|
export const ultimateBeneficiaryOwner: PropTypes.Requireable<io.flow.v0.models.UltimateBeneficiaryOwner>;
|
|
13983
14145
|
export const unharmonizedItemExportType: PropTypes.Requireable<io.flow.v0.models.UnharmonizedItemExportType>;
|
|
13984
14146
|
export const upload: PropTypes.Requireable<io.flow.v0.models.Upload>;
|