@flowio/types 11.24.69 → 11.24.71
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 +228 -192
- package/dist/api.d.ts +156 -15
- package/package.json +2 -2
- package/src/api-internal.ts +294 -226
- package/src/api.ts +206 -15
package/dist/api.d.ts
CHANGED
|
@@ -140,7 +140,7 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
140
140
|
type ConfirmationMethod = 'automatic' | 'manual';
|
|
141
141
|
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';
|
|
142
142
|
type ErrorType = 'api_connection_error' | 'api_error' | 'authentication_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error' | 'rate_limit_error' | 'validation_error';
|
|
143
|
-
type EventType = 'charge.captured' | 'charge.failed' | 'charge.pending' | 'charge.refunded' | 'charge.
|
|
143
|
+
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';
|
|
144
144
|
type KlarnaPaymentMethodCategoryType = 'direct_bank_transfer' | 'direct_debit' | 'pay_later' | 'pay_now' | 'pay_over_time';
|
|
145
145
|
type KlarnaProduct = 'payment';
|
|
146
146
|
type NetworkStatus = 'approved_by_network' | 'declined_by_network' | 'not_sent_to_network' | 'reversed_after_approval';
|
|
@@ -162,6 +162,7 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
162
162
|
type SourceStatus = 'canceled' | 'chargeable' | 'consumed' | 'failed' | 'pending';
|
|
163
163
|
type SourceType = 'ach_credit_transfer' | 'ach_debit' | 'alipay' | 'bancontact' | 'bitcoin' | 'card' | 'eps' | 'giropay' | 'ideal' | 'klarna' | 'multibanco' | 'p24' | 'sepa_debit' | 'sofort' | 'three_d_secure';
|
|
164
164
|
type SourceUsageType = 'reusable' | 'single_use';
|
|
165
|
+
type StoredCredentialTransactionType = 'setup_on_session' | 'setup_off_session_recurring' | 'setup_off_session_unscheduled' | 'stored_on_session' | 'stored_on_session_recurring' | 'stored_on_session_unscheduled';
|
|
165
166
|
type ThreeDSecureSupport = 'required' | 'recommended' | 'optional' | 'not_supported';
|
|
166
167
|
type ThreeDsAuthenticationFlow = 'challenge' | 'frictionless';
|
|
167
168
|
type ThreeDsResult = 'authenticated' | 'attempt_acknowledged' | 'exempted' | 'not_supported' | 'failed' | 'processing_error';
|
|
@@ -248,6 +249,10 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
248
249
|
readonly address_postal_code_check?: io.flow.stripe.v0.enums.CheckOutcome;
|
|
249
250
|
readonly cvc_check?: io.flow.stripe.v0.enums.CheckOutcome;
|
|
250
251
|
}
|
|
252
|
+
interface CardNetworks {
|
|
253
|
+
readonly available?: string[];
|
|
254
|
+
readonly preferred?: string;
|
|
255
|
+
}
|
|
251
256
|
interface CardRequest {
|
|
252
257
|
readonly object: string;
|
|
253
258
|
readonly exp_month: string;
|
|
@@ -267,6 +272,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
267
272
|
readonly id: string;
|
|
268
273
|
readonly amount: number;
|
|
269
274
|
readonly amount_refunded: number;
|
|
275
|
+
readonly authorization_code?: string;
|
|
270
276
|
readonly captured: boolean;
|
|
271
277
|
readonly created: number;
|
|
272
278
|
readonly currency: string;
|
|
@@ -314,6 +320,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
314
320
|
readonly id: string;
|
|
315
321
|
readonly amount: number;
|
|
316
322
|
readonly amount_refunded: number;
|
|
323
|
+
readonly authorization_code?: string;
|
|
317
324
|
readonly captured: boolean;
|
|
318
325
|
readonly created: number;
|
|
319
326
|
readonly currency: string;
|
|
@@ -399,6 +406,8 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
399
406
|
readonly order_number?: string;
|
|
400
407
|
readonly authorization_id?: string;
|
|
401
408
|
readonly organization_id?: string;
|
|
409
|
+
readonly payment_request_id?: string;
|
|
410
|
+
readonly payment_request_order_reference?: string;
|
|
402
411
|
}
|
|
403
412
|
interface NetworkTokenUsed {
|
|
404
413
|
readonly used?: boolean;
|
|
@@ -507,6 +516,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
507
516
|
interface PaymentIntentConfirmationForm {
|
|
508
517
|
readonly off_session?: boolean;
|
|
509
518
|
readonly payment_method?: string;
|
|
519
|
+
readonly payment_method_data?: io.flow.stripe.v0.unions.PaymentMethodData;
|
|
510
520
|
readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptions;
|
|
511
521
|
readonly payment_method_types?: string[];
|
|
512
522
|
readonly receipt_email?: string;
|
|
@@ -526,6 +536,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
526
536
|
readonly metadata?: io.flow.stripe.v0.models.Metadata;
|
|
527
537
|
readonly on_behalf_of?: string;
|
|
528
538
|
readonly payment_method?: string;
|
|
539
|
+
readonly payment_method_data?: io.flow.stripe.v0.unions.PaymentMethodData;
|
|
529
540
|
readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptions;
|
|
530
541
|
readonly payment_method_types?: string[];
|
|
531
542
|
readonly receipt_email?: string;
|
|
@@ -556,7 +567,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
556
567
|
readonly id: string;
|
|
557
568
|
readonly object: string;
|
|
558
569
|
readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
|
|
559
|
-
readonly card?: io.flow.stripe.v0.models.
|
|
570
|
+
readonly card?: io.flow.stripe.v0.models.PaymentMethodCardDetails;
|
|
560
571
|
readonly card_present?: any;
|
|
561
572
|
readonly created: number;
|
|
562
573
|
readonly customer?: string;
|
|
@@ -569,6 +580,30 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
569
580
|
readonly name?: string;
|
|
570
581
|
readonly phone?: string;
|
|
571
582
|
}
|
|
583
|
+
interface PaymentMethodCardDetails {
|
|
584
|
+
readonly brand?: io.flow.stripe.v0.enums.CardBrand;
|
|
585
|
+
readonly checks?: io.flow.stripe.v0.models.CardChecks;
|
|
586
|
+
readonly country?: string;
|
|
587
|
+
readonly exp_month?: number;
|
|
588
|
+
readonly exp_year?: number;
|
|
589
|
+
readonly fingerprint?: string;
|
|
590
|
+
readonly funding?: io.flow.stripe.v0.enums.CardFundingType;
|
|
591
|
+
readonly last4?: string;
|
|
592
|
+
readonly networks?: io.flow.stripe.v0.models.CardNetworks;
|
|
593
|
+
readonly three_d_secure_usage?: io.flow.stripe.v0.models.ThreeDSecureUsage;
|
|
594
|
+
}
|
|
595
|
+
interface PaymentMethodCardForm {
|
|
596
|
+
readonly exp_month: string;
|
|
597
|
+
readonly exp_year: string;
|
|
598
|
+
readonly number: string;
|
|
599
|
+
readonly cvc?: string;
|
|
600
|
+
}
|
|
601
|
+
interface PaymentMethodDataCard {
|
|
602
|
+
readonly type: 'card';
|
|
603
|
+
readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
|
|
604
|
+
readonly metadata?: any;
|
|
605
|
+
readonly card: io.flow.stripe.v0.models.PaymentMethodCardForm;
|
|
606
|
+
}
|
|
572
607
|
interface PaymentMethodDetailsCard {
|
|
573
608
|
readonly type: 'card';
|
|
574
609
|
readonly card: io.flow.stripe.v0.models.PaymentMethodDetailsCardInformation;
|
|
@@ -602,16 +637,19 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
602
637
|
readonly payment_method_category?: io.flow.stripe.v0.enums.PaymentMethodCategoryKlarna;
|
|
603
638
|
readonly preferred_locale?: io.flow.stripe.v0.enums.PreferredLocaleKlarna;
|
|
604
639
|
}
|
|
605
|
-
interface
|
|
606
|
-
readonly type:
|
|
640
|
+
interface PaymentMethodFormCard {
|
|
641
|
+
readonly type: 'card';
|
|
607
642
|
readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
|
|
608
|
-
readonly
|
|
643
|
+
readonly metadata?: any;
|
|
644
|
+
readonly card: io.flow.stripe.v0.models.PaymentMethodCardForm;
|
|
609
645
|
}
|
|
610
646
|
interface PaymentMethodOptions {
|
|
611
647
|
readonly card?: io.flow.stripe.v0.models.PaymentMethodOptionsCard;
|
|
612
648
|
}
|
|
613
649
|
interface PaymentMethodOptionsCard {
|
|
650
|
+
readonly network?: string;
|
|
614
651
|
readonly request_three_d_secure?: io.flow.stripe.v0.enums.RequestThreeDSecureType;
|
|
652
|
+
readonly stored_credential_transaction_type?: io.flow.stripe.v0.enums.StoredCredentialTransactionType;
|
|
615
653
|
}
|
|
616
654
|
interface PaymentOutcome {
|
|
617
655
|
readonly network_status: io.flow.stripe.v0.enums.NetworkStatus;
|
|
@@ -837,6 +875,9 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
837
875
|
readonly type: io.flow.stripe.v0.enums.UseStripeSdkType;
|
|
838
876
|
readonly stripe_js: string;
|
|
839
877
|
}
|
|
878
|
+
interface ThreeDSecureUsage {
|
|
879
|
+
readonly supported?: boolean;
|
|
880
|
+
}
|
|
840
881
|
interface Token {
|
|
841
882
|
readonly id: string;
|
|
842
883
|
readonly object: string;
|
|
@@ -870,7 +911,9 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
870
911
|
}
|
|
871
912
|
declare namespace io.flow.stripe.v0.unions {
|
|
872
913
|
type CardWallet = io.flow.stripe.v0.models.Masterpass | io.flow.stripe.v0.models.ApplePay | io.flow.stripe.v0.models.VisaCheckout;
|
|
914
|
+
type PaymentMethodData = io.flow.stripe.v0.models.PaymentMethodDataCard;
|
|
873
915
|
type PaymentMethodDetails = io.flow.stripe.v0.models.PaymentMethodDetailsCard | io.flow.stripe.v0.models.PaymentMethodDetailsKlarna;
|
|
916
|
+
type PaymentMethodForm = io.flow.stripe.v0.models.PaymentMethodFormCard;
|
|
874
917
|
}
|
|
875
918
|
declare namespace io.flow.units.v0.enums {
|
|
876
919
|
type UnitOfLength = 'millimeter' | 'centimeter' | 'inch' | 'foot' | 'meter';
|
|
@@ -1703,17 +1746,17 @@ declare namespace io.flow.ben.test.internal.v0.unions {
|
|
|
1703
1746
|
type GenerateLoad = io.flow.ben.test.internal.v0.models.GenerateLoadSingleOrg | io.flow.ben.test.internal.v0.models.GenerateLoadMultipleOrgs;
|
|
1704
1747
|
}
|
|
1705
1748
|
declare namespace io.flow.apple.pay.v0.enums {
|
|
1706
|
-
type ApplePayContactField = 'email' | 'name' | 'phone' | '
|
|
1749
|
+
type ApplePayContactField = 'email' | 'name' | 'phone' | 'postal_address' | 'phonetic_name';
|
|
1707
1750
|
type ApplePayLineItemType = 'final' | 'pending';
|
|
1708
1751
|
type ApplePayMerchantCapability = 'supports3DS' | 'supportsCredit' | 'supportsDebit' | 'supportsEMV';
|
|
1709
|
-
type ApplePayShippingType = 'shipping' | 'delivery' | '
|
|
1752
|
+
type ApplePayShippingType = 'shipping' | 'delivery' | 'store_pickup' | 'service_pickup';
|
|
1710
1753
|
type ApplePaySupportedNetworks = 'amex' | 'chinaUnionPay' | 'discover' | 'jcb' | 'masterCard' | 'privateLabel' | 'visa';
|
|
1711
1754
|
}
|
|
1712
1755
|
declare namespace io.flow.apple.pay.v0.models {
|
|
1713
1756
|
interface ApplePayLineItem {
|
|
1714
1757
|
readonly label: string;
|
|
1715
1758
|
readonly type: io.flow.apple.pay.v0.enums.ApplePayLineItemType;
|
|
1716
|
-
readonly amount:
|
|
1759
|
+
readonly amount: number;
|
|
1717
1760
|
}
|
|
1718
1761
|
interface ApplePayPaymentContact {
|
|
1719
1762
|
readonly email_address?: string;
|
|
@@ -1760,7 +1803,7 @@ declare namespace io.flow.apple.pay.v0.models {
|
|
|
1760
1803
|
interface ApplePayShippingMethod {
|
|
1761
1804
|
readonly label: string;
|
|
1762
1805
|
readonly detail: string;
|
|
1763
|
-
readonly amount:
|
|
1806
|
+
readonly amount: number;
|
|
1764
1807
|
readonly identifier: string;
|
|
1765
1808
|
}
|
|
1766
1809
|
}
|
|
@@ -1774,8 +1817,7 @@ declare namespace io.flow.error.v0.models {
|
|
|
1774
1817
|
}
|
|
1775
1818
|
}
|
|
1776
1819
|
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';
|
|
1820
|
+
type TrueUpSurchargeType = 'fuel' | 'remote_area' | 'oversize' | 'duties_paid' | 'emergency' | 'peak' | 'address_correction';
|
|
1779
1821
|
}
|
|
1780
1822
|
declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.models {
|
|
1781
1823
|
interface LabelBase {
|
|
@@ -1795,10 +1837,38 @@ declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.models {
|
|
|
1795
1837
|
readonly destination: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelDestination;
|
|
1796
1838
|
readonly metadata: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelMetadata;
|
|
1797
1839
|
}
|
|
1840
|
+
interface LabelInvoiceResponseFile {
|
|
1841
|
+
readonly id: string;
|
|
1842
|
+
readonly url: string;
|
|
1843
|
+
readonly created_at: string;
|
|
1844
|
+
readonly result?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelInvoiceResponseFileResult;
|
|
1845
|
+
}
|
|
1846
|
+
interface LabelInvoiceResponseFileForm {
|
|
1847
|
+
readonly url: string;
|
|
1848
|
+
}
|
|
1849
|
+
interface LabelInvoiceResponseFileResult {
|
|
1850
|
+
readonly processed_at: string;
|
|
1851
|
+
readonly number_lines_successful: number;
|
|
1852
|
+
readonly number_lines_with_errors: number;
|
|
1853
|
+
readonly errors_url?: string;
|
|
1854
|
+
}
|
|
1855
|
+
interface LabelInvoiceResponseForm {
|
|
1856
|
+
readonly id: string;
|
|
1857
|
+
readonly label_invoice_request_id: string;
|
|
1858
|
+
readonly units: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelResponseUnits;
|
|
1859
|
+
readonly base: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelBase;
|
|
1860
|
+
readonly surcharges: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeForm;
|
|
1861
|
+
readonly total: number;
|
|
1862
|
+
}
|
|
1798
1863
|
interface LabelMetadata {
|
|
1799
1864
|
readonly ratecard: io.flow.billing.RESERVED_WORD_true.up.v0.models.MetadataRatecard;
|
|
1800
1865
|
readonly weights: io.flow.billing.RESERVED_WORD_true.up.v0.models.MetadataWeights;
|
|
1801
1866
|
}
|
|
1867
|
+
interface LabelResponseUnits {
|
|
1868
|
+
readonly currency: string;
|
|
1869
|
+
readonly weight: io.flow.units.v0.enums.UnitOfWeight;
|
|
1870
|
+
readonly length?: io.flow.units.v0.enums.UnitOfLength;
|
|
1871
|
+
}
|
|
1802
1872
|
interface LabelSurcharge {
|
|
1803
1873
|
readonly amount: number;
|
|
1804
1874
|
readonly type: io.flow.billing.RESERVED_WORD_true.up.v0.enums.TrueUpSurchargeType;
|
|
@@ -1816,6 +1886,20 @@ declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.models {
|
|
|
1816
1886
|
readonly discriminator: 'percentage';
|
|
1817
1887
|
readonly percentage: number;
|
|
1818
1888
|
}
|
|
1889
|
+
interface LabelSurchargeForm {
|
|
1890
|
+
readonly fuel?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
1891
|
+
readonly remote_area?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
1892
|
+
readonly oversize?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
1893
|
+
readonly duties_paid?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
1894
|
+
readonly emergency?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
1895
|
+
readonly peak?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
1896
|
+
readonly address_correction?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
|
|
1897
|
+
}
|
|
1898
|
+
interface LabelSurchargeSingleForm {
|
|
1899
|
+
readonly amount: number;
|
|
1900
|
+
readonly percentage?: number;
|
|
1901
|
+
readonly fee_per_weight_unit?: number;
|
|
1902
|
+
}
|
|
1819
1903
|
interface LabelUnits {
|
|
1820
1904
|
readonly currency: string;
|
|
1821
1905
|
readonly weight: io.flow.units.v0.enums.UnitOfWeight;
|
|
@@ -1830,7 +1914,6 @@ declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.models {
|
|
|
1830
1914
|
readonly proposition: io.flow.billing.RESERVED_WORD_true.up.v0.models.MetadataProposition;
|
|
1831
1915
|
}
|
|
1832
1916
|
interface MetadataWeights {
|
|
1833
|
-
readonly selected: io.flow.billing.RESERVED_WORD_true.up.v0.enums.WeightSelection;
|
|
1834
1917
|
readonly dead?: io.flow.billing.RESERVED_WORD_true.up.v0.models.WeightsDead;
|
|
1835
1918
|
readonly dimensional?: io.flow.billing.RESERVED_WORD_true.up.v0.models.WeightsDimensional;
|
|
1836
1919
|
}
|
|
@@ -1969,7 +2052,7 @@ declare namespace io.flow.v0.enums {
|
|
|
1969
2052
|
type OrderChangeSource = 'consumer' | 'retailer' | 'fulfillment' | 'flow' | 'carrier';
|
|
1970
2053
|
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
2054
|
type OrderMerchantOfRecord = 'flow' | 'organization' | 'mixed';
|
|
1972
|
-
type OrderPaymentType = 'card' | 'online' | 'credit' | 'subsidized' | 'installment_plan' | 'cash_on_delivery';
|
|
2055
|
+
type OrderPaymentType = 'card' | 'online' | 'credit' | 'external' | 'subsidized' | 'installment_plan' | 'cash_on_delivery';
|
|
1973
2056
|
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
2057
|
type OrderPriceDetailKey = 'adjustment' | 'subtotal' | 'vat' | 'duty' | 'shipping' | 'insurance' | 'discount' | 'surcharges';
|
|
1975
2058
|
type OrderQuoteAddressType = 'shipping';
|
|
@@ -2058,7 +2141,9 @@ declare namespace io.flow.v0.enums {
|
|
|
2058
2141
|
type TradeAgreementName = 'USMCA' | 'T-MEC' | 'CUSMA' | 'TCA';
|
|
2059
2142
|
type TradeAgreementStatus = 'supported' | 'not_supported';
|
|
2060
2143
|
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';
|
|
2144
|
+
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';
|
|
2145
|
+
type TrueupSource = 'flow' | 'channel' | 'dhl-parcel' | 'dhl';
|
|
2146
|
+
type TrueupSurchargeType = 'fuel' | 'remote_area' | 'oversize' | 'duties_paid' | 'emergency' | 'peak' | 'address_correction';
|
|
2062
2147
|
type UnitOfLength = 'millimeter' | 'centimeter' | 'inch' | 'foot' | 'meter';
|
|
2063
2148
|
type UnitOfMeasurement = 'millimeter' | 'centimeter' | 'inch' | 'foot' | 'cubic_inch' | 'cubic_meter' | 'gram' | 'kilogram' | 'meter' | 'ounce' | 'pound';
|
|
2064
2149
|
type UnitOfTime = 'year' | 'month' | 'week' | 'day' | 'hour' | 'minute';
|
|
@@ -7156,6 +7241,7 @@ declare namespace io.flow.v0.models {
|
|
|
7156
7241
|
readonly current_state: io.flow.v0.unions.OnboardingState;
|
|
7157
7242
|
readonly started_at?: string;
|
|
7158
7243
|
readonly time_blocked?: number;
|
|
7244
|
+
readonly time_in_setup?: number;
|
|
7159
7245
|
readonly blocked_since?: string;
|
|
7160
7246
|
readonly completed_at?: string;
|
|
7161
7247
|
readonly onboarding_started_at?: string;
|
|
@@ -8001,6 +8087,11 @@ declare namespace io.flow.v0.models {
|
|
|
8001
8087
|
readonly starts_at?: string;
|
|
8002
8088
|
readonly ends_at?: string;
|
|
8003
8089
|
}
|
|
8090
|
+
interface PendingTransaction {
|
|
8091
|
+
readonly id: string;
|
|
8092
|
+
readonly reason: io.flow.v0.enums.TransactionPayoutPendingReason;
|
|
8093
|
+
readonly reason_set_at: string;
|
|
8094
|
+
}
|
|
8004
8095
|
interface PercentMargin {
|
|
8005
8096
|
readonly discriminator: 'percent_margin';
|
|
8006
8097
|
readonly percentage: number;
|
|
@@ -10445,10 +10536,35 @@ declare namespace io.flow.v0.models {
|
|
|
10445
10536
|
readonly cvv_result?: io.flow.v0.models.CvvResult;
|
|
10446
10537
|
readonly network_details?: io.flow.v0.models.TransactionNetworkDetailsCard;
|
|
10447
10538
|
}
|
|
10539
|
+
interface TransactionMetadataChannel {
|
|
10540
|
+
readonly discriminator: 'channel';
|
|
10541
|
+
readonly method: string;
|
|
10542
|
+
readonly card?: io.flow.v0.models.TransactionMetadataChannelCardMetadata;
|
|
10543
|
+
}
|
|
10544
|
+
interface TransactionMetadataChannelCardMetadata {
|
|
10545
|
+
readonly type: io.flow.v0.enums.CardType;
|
|
10546
|
+
readonly issuer: io.flow.v0.models.TransactionMetadataChannelCardMetadataIssuerSummary;
|
|
10547
|
+
}
|
|
10548
|
+
interface TransactionMetadataChannelCardMetadataIssuerSummary {
|
|
10549
|
+
readonly iin: string;
|
|
10550
|
+
readonly country: string;
|
|
10551
|
+
}
|
|
10448
10552
|
interface TransactionMetadataShippingLabel {
|
|
10449
10553
|
readonly discriminator: 'shipping_label';
|
|
10450
10554
|
readonly request_method?: io.flow.v0.enums.LabelRequestMethod;
|
|
10451
10555
|
}
|
|
10556
|
+
interface TransactionMetadataTrueup {
|
|
10557
|
+
readonly discriminator: 'trueup';
|
|
10558
|
+
readonly estimate: io.flow.v0.models.TransactionMetadataTrueupData;
|
|
10559
|
+
readonly actual: io.flow.v0.models.TransactionMetadataTrueupData;
|
|
10560
|
+
}
|
|
10561
|
+
interface TransactionMetadataTrueupData {
|
|
10562
|
+
readonly source: io.flow.v0.enums.TrueupSource;
|
|
10563
|
+
readonly units: io.flow.v0.models.TrueupLabelUnits;
|
|
10564
|
+
readonly base: io.flow.v0.models.TrueupLabelBase;
|
|
10565
|
+
readonly surcharges: io.flow.v0.models.TrueupLabelSurcharge[];
|
|
10566
|
+
readonly total: number;
|
|
10567
|
+
}
|
|
10452
10568
|
interface TransactionNetworkDetailsCard {
|
|
10453
10569
|
readonly network_transaction_id?: string;
|
|
10454
10570
|
readonly network?: io.flow.v0.enums.CardType;
|
|
@@ -10476,6 +10592,20 @@ declare namespace io.flow.v0.models {
|
|
|
10476
10592
|
readonly from: number;
|
|
10477
10593
|
readonly to: number;
|
|
10478
10594
|
}
|
|
10595
|
+
interface TrueupLabelBase {
|
|
10596
|
+
readonly amount: number;
|
|
10597
|
+
readonly weight: number;
|
|
10598
|
+
}
|
|
10599
|
+
interface TrueupLabelSurcharge {
|
|
10600
|
+
readonly amount: number;
|
|
10601
|
+
readonly type: io.flow.v0.enums.TrueupSurchargeType;
|
|
10602
|
+
readonly percentage?: number;
|
|
10603
|
+
readonly per_weight_unit?: number;
|
|
10604
|
+
}
|
|
10605
|
+
interface TrueupLabelUnits {
|
|
10606
|
+
readonly weight: io.flow.v0.enums.UnitOfWeight;
|
|
10607
|
+
readonly length?: io.flow.v0.enums.UnitOfLength;
|
|
10608
|
+
}
|
|
10479
10609
|
interface UltimateBeneficiaryOwner {
|
|
10480
10610
|
readonly name: string;
|
|
10481
10611
|
readonly dob: string;
|
|
@@ -10781,7 +10911,7 @@ declare namespace io.flow.v0.unions {
|
|
|
10781
10911
|
type Token = io.flow.v0.models.ChannelToken | io.flow.v0.models.OrganizationToken | io.flow.v0.models.OrganizationTokenV2 | io.flow.v0.models.PartnerToken;
|
|
10782
10912
|
type TokenReference = io.flow.v0.models.ChannelTokenReference | io.flow.v0.models.OrganizationTokenReference | io.flow.v0.models.OrganizationTokenV2Reference | io.flow.v0.models.PartnerTokenReference;
|
|
10783
10913
|
type TransactionDetails = io.flow.v0.models.TransactionDetailsCard;
|
|
10784
|
-
type TransactionMetadata = io.flow.v0.models.TransactionMetadataShippingLabel;
|
|
10914
|
+
type TransactionMetadata = io.flow.v0.models.TransactionMetadataShippingLabel | io.flow.v0.models.TransactionMetadataChannel | io.flow.v0.models.TransactionMetadataTrueup;
|
|
10785
10915
|
}
|
|
10786
10916
|
export declare type AbandonedOrderEmailSettings = io.flow.v0.models.AbandonedOrderEmailSettings;
|
|
10787
10917
|
export declare type AbandonedOrderPromotion = io.flow.v0.models.AbandonedOrderPromotion;
|
|
@@ -11977,6 +12107,7 @@ export declare type PaypalAuthorizationForm = io.flow.v0.models.PaypalAuthorizat
|
|
|
11977
12107
|
export declare type PeakSurchargeByWeightServiceFee = io.flow.v0.models.PeakSurchargeByWeightServiceFee;
|
|
11978
12108
|
export declare type PeakSurchargeRatecardFee = io.flow.v0.models.PeakSurchargeRatecardFee;
|
|
11979
12109
|
export declare type PeakSurchargeServiceFee = io.flow.v0.models.PeakSurchargeServiceFee;
|
|
12110
|
+
export declare type PendingTransaction = io.flow.v0.models.PendingTransaction;
|
|
11980
12111
|
export declare type PercentMargin = io.flow.v0.models.PercentMargin;
|
|
11981
12112
|
export declare type PermissionAudit = io.flow.v0.models.PermissionAudit;
|
|
11982
12113
|
export declare type PermissionCheck = io.flow.v0.models.PermissionCheck;
|
|
@@ -12440,7 +12571,12 @@ export declare type Transaction = io.flow.v0.models.Transaction;
|
|
|
12440
12571
|
export declare type TransactionDetails = io.flow.v0.unions.TransactionDetails;
|
|
12441
12572
|
export declare type TransactionDetailsCard = io.flow.v0.models.TransactionDetailsCard;
|
|
12442
12573
|
export declare type TransactionMetadata = io.flow.v0.unions.TransactionMetadata;
|
|
12574
|
+
export declare type TransactionMetadataChannel = io.flow.v0.models.TransactionMetadataChannel;
|
|
12575
|
+
export declare type TransactionMetadataChannelCardMetadata = io.flow.v0.models.TransactionMetadataChannelCardMetadata;
|
|
12576
|
+
export declare type TransactionMetadataChannelCardMetadataIssuerSummary = io.flow.v0.models.TransactionMetadataChannelCardMetadataIssuerSummary;
|
|
12443
12577
|
export declare type TransactionMetadataShippingLabel = io.flow.v0.models.TransactionMetadataShippingLabel;
|
|
12578
|
+
export declare type TransactionMetadataTrueup = io.flow.v0.models.TransactionMetadataTrueup;
|
|
12579
|
+
export declare type TransactionMetadataTrueupData = io.flow.v0.models.TransactionMetadataTrueupData;
|
|
12444
12580
|
export declare type TransactionNetworkDetailsCard = io.flow.v0.models.TransactionNetworkDetailsCard;
|
|
12445
12581
|
export declare type TransactionPayoutPendingReason = io.flow.v0.enums.TransactionPayoutPendingReason;
|
|
12446
12582
|
export declare type TransactionReference = io.flow.v0.models.TransactionReference;
|
|
@@ -12448,6 +12584,11 @@ export declare type TransactionSource = io.flow.v0.enums.TransactionSource;
|
|
|
12448
12584
|
export declare type TransactionUpserted = io.flow.v0.models.TransactionUpserted;
|
|
12449
12585
|
export declare type TransitEstimate = io.flow.v0.models.TransitEstimate;
|
|
12450
12586
|
export declare type TransitWindow = io.flow.v0.models.TransitWindow;
|
|
12587
|
+
export declare type TrueupLabelBase = io.flow.v0.models.TrueupLabelBase;
|
|
12588
|
+
export declare type TrueupLabelSurcharge = io.flow.v0.models.TrueupLabelSurcharge;
|
|
12589
|
+
export declare type TrueupLabelUnits = io.flow.v0.models.TrueupLabelUnits;
|
|
12590
|
+
export declare type TrueupSource = io.flow.v0.enums.TrueupSource;
|
|
12591
|
+
export declare type TrueupSurchargeType = io.flow.v0.enums.TrueupSurchargeType;
|
|
12451
12592
|
export declare type UltimateBeneficiaryOwner = io.flow.v0.models.UltimateBeneficiaryOwner;
|
|
12452
12593
|
export declare type UnharmonizedItemExportType = io.flow.v0.models.UnharmonizedItemExportType;
|
|
12453
12594
|
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.71",
|
|
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": "cc45ff4a674f1a129166e04d6910cb7a1a2f0da1"
|
|
29
29
|
}
|