@flowio/types 10.7.0 → 10.8.0
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 +20 -15
- package/package.json +2 -2
- package/src/api-internal.ts +20 -14
package/dist/api-internal.d.ts
CHANGED
|
@@ -2106,6 +2106,7 @@ declare namespace io.flow.RESERVED_WORD_export.v0.unions {
|
|
|
2106
2106
|
type ExportType = io.flow.RESERVED_WORD_export.v0.models.AccountTransactionsExportType | io.flow.RESERVED_WORD_export.v0.models.AccountOrdersExportType | io.flow.RESERVED_WORD_export.v0.models.AnalyticsExportType | io.flow.RESERVED_WORD_export.v0.models.CatalogItemExportType | io.flow.RESERVED_WORD_export.v0.models.ExperienceExportType | io.flow.RESERVED_WORD_export.v0.models.HarmonizationOverviewExportType | io.flow.RESERVED_WORD_export.v0.models.HarmonizationHs6ExportType | io.flow.RESERVED_WORD_export.v0.models.HarmonizationHs10ExportType | io.flow.RESERVED_WORD_export.v0.models.HarmonizationTariffCodesExportType | io.flow.RESERVED_WORD_export.v0.models.UnharmonizedItemExportType | io.flow.RESERVED_WORD_export.v0.models.OrderExportType | io.flow.RESERVED_WORD_export.v0.models.PriceBookItemExportType | io.flow.RESERVED_WORD_export.v0.models.SolidusProductExportType | io.flow.RESERVED_WORD_export.v0.models.SolidusVariantExportType | io.flow.RESERVED_WORD_export.v0.models.LocalizedItemPricesExportType | io.flow.RESERVED_WORD_export.v0.models.MarketingFeedsExportType;
|
|
2107
2107
|
}
|
|
2108
2108
|
declare namespace io.flow.RESERVED_WORD_return.v0.enums {
|
|
2109
|
+
type ReturnSource = 'flow' | 'rebound';
|
|
2109
2110
|
type ReturnStatus = 'open' | 'refunded';
|
|
2110
2111
|
type ReturnTrackingStatus = 'return_registered_online' | 'received_by_the_carrier' | 'in_transit_to_our_local_hub' | 'received_at_our_local_hub' | 'processed_by_hub' | 'parcel_has_been_added_to_pallet' | 'parcel_has_been_extracted_from_pallet' | 'in_transit_to_the_retailer' | 'delivered_to_the_retailer' | 'parcel_lost' | 'canceled' | 'parcel_processed_by_retailer' | 'parcel_delayed' | 'collection_attempt_failed' | 'parcel_under_investigation' | 'awaiting_customs_clearance' | 'customs_clearance_completed' | 'cancel_requested';
|
|
2111
2112
|
}
|
|
@@ -2125,6 +2126,9 @@ declare namespace io.flow.RESERVED_WORD_return.v0.models {
|
|
|
2125
2126
|
readonly key?: string;
|
|
2126
2127
|
readonly origin?: io.flow.fulfillment.v0.models.ShippingAddress;
|
|
2127
2128
|
readonly center_key?: string;
|
|
2129
|
+
readonly source: io.flow.RESERVED_WORD_return.v0.enums.ReturnSource;
|
|
2130
|
+
readonly tracking_status?: io.flow.RESERVED_WORD_return.v0.enums.ReturnTrackingStatus;
|
|
2131
|
+
readonly tracking_status_timestamp?: string;
|
|
2128
2132
|
}
|
|
2129
2133
|
interface ReturnItemReference {
|
|
2130
2134
|
readonly number: string;
|
|
@@ -2307,7 +2311,7 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
2307
2311
|
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';
|
|
2308
2312
|
type ErrorType = 'api_connection_error' | 'api_error' | 'authentication_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error' | 'rate_limit_error' | 'validation_error';
|
|
2309
2313
|
type EventType = 'charge.captured' | 'charge.failed' | 'charge.pending' | 'charge.refunded' | 'charge.refund.updated' | 'charge.succeeded' | 'charge.updated' | 'payment_intent.amount_capturable_updated' | 'payment_intent.payment_failed' | 'payment_intent.succeeded' | 'source.canceled' | 'source.chargeable' | 'source.failed';
|
|
2310
|
-
type KlarnaPaymentMethodCategoryType = 'direct_bank_transfer' | 'direct_debit' | 'pay_later' | 'pay_over_time';
|
|
2314
|
+
type KlarnaPaymentMethodCategoryType = 'direct_bank_transfer' | 'direct_debit' | 'pay_later' | 'pay_now' | 'pay_over_time';
|
|
2311
2315
|
type KlarnaProduct = 'payment';
|
|
2312
2316
|
type NetworkStatus = 'approved_by_network' | 'declined_by_network' | 'not_sent_to_network' | 'reversed_after_approval';
|
|
2313
2317
|
type NextActionType = 'redirect_to_url' | 'use_stripe_sdk';
|
|
@@ -2819,20 +2823,20 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
2819
2823
|
readonly shipping_last_name?: string;
|
|
2820
2824
|
readonly locale?: string;
|
|
2821
2825
|
readonly pay_later_name?: string;
|
|
2822
|
-
readonly
|
|
2823
|
-
readonly
|
|
2826
|
+
readonly pay_later_asset_urls_standard?: string;
|
|
2827
|
+
readonly pay_later_asset_urls_descriptive?: string;
|
|
2824
2828
|
readonly pay_now_name?: string;
|
|
2825
|
-
readonly
|
|
2826
|
-
readonly
|
|
2829
|
+
readonly pay_now_asset_urls_standard?: string;
|
|
2830
|
+
readonly pay_now_asset_urls_descriptive?: string;
|
|
2827
2831
|
readonly pay_over_time_name?: string;
|
|
2828
|
-
readonly
|
|
2829
|
-
readonly
|
|
2832
|
+
readonly pay_over_time_asset_urls_standard?: string;
|
|
2833
|
+
readonly pay_over_time_asset_urls_descriptive?: string;
|
|
2830
2834
|
readonly direct_bank_transfer_name?: string;
|
|
2831
|
-
readonly
|
|
2832
|
-
readonly
|
|
2835
|
+
readonly direct_bank_transfer_asset_urls_standard?: string;
|
|
2836
|
+
readonly direct_bank_transfer_asset_urls_descriptive?: string;
|
|
2833
2837
|
readonly direct_debit_name?: string;
|
|
2834
|
-
readonly
|
|
2835
|
-
readonly
|
|
2838
|
+
readonly direct_debit_asset_urls_standard?: string;
|
|
2839
|
+
readonly direct_debit_asset_urls_descriptive?: string;
|
|
2836
2840
|
}
|
|
2837
2841
|
interface SourceKlarnaRequest {
|
|
2838
2842
|
readonly first_name: string;
|
|
@@ -5864,8 +5868,8 @@ declare namespace io.flow.payment.internal.v0.models {
|
|
|
5864
5868
|
interface KlarnaPaymentMethodCategory {
|
|
5865
5869
|
readonly id: string;
|
|
5866
5870
|
readonly name?: string;
|
|
5867
|
-
readonly
|
|
5868
|
-
readonly
|
|
5871
|
+
readonly standard_asset_urls?: string;
|
|
5872
|
+
readonly descriptive_asset_urls?: string;
|
|
5869
5873
|
}
|
|
5870
5874
|
interface OnlineAuthorizationCompleted {
|
|
5871
5875
|
readonly discriminator: 'online_authorization_completed';
|
|
@@ -7484,6 +7488,7 @@ declare namespace io.flow.crypto.v0.models {
|
|
|
7484
7488
|
readonly recipient: string;
|
|
7485
7489
|
readonly refunded: boolean;
|
|
7486
7490
|
readonly status: io.flow.crypto.v0.enums.PaymentStatus;
|
|
7491
|
+
readonly time_window: number;
|
|
7487
7492
|
}
|
|
7488
7493
|
interface PaymentRequest {
|
|
7489
7494
|
readonly amount: number;
|
|
@@ -16665,8 +16670,8 @@ declare namespace io.flow.internal.v0.models {
|
|
|
16665
16670
|
interface KlarnaPaymentMethodCategory {
|
|
16666
16671
|
readonly id: string;
|
|
16667
16672
|
readonly name?: string;
|
|
16668
|
-
readonly
|
|
16669
|
-
readonly
|
|
16673
|
+
readonly standard_asset_urls?: string;
|
|
16674
|
+
readonly descriptive_asset_urls?: string;
|
|
16670
16675
|
}
|
|
16671
16676
|
interface LabProjectSettings {
|
|
16672
16677
|
readonly id: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/types",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.8.0",
|
|
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": "b983ad7faab99541aa524afd0ac67b6e41ec7a36"
|
|
29
29
|
}
|
package/src/api-internal.ts
CHANGED
|
@@ -2875,6 +2875,7 @@ declare namespace io.flow.RESERVED_WORD_export.v0.unions {
|
|
|
2875
2875
|
}
|
|
2876
2876
|
|
|
2877
2877
|
declare namespace io.flow.RESERVED_WORD_return.v0.enums {
|
|
2878
|
+
type ReturnSource = 'flow' | 'rebound';
|
|
2878
2879
|
type ReturnStatus = 'open' | 'refunded';
|
|
2879
2880
|
type ReturnTrackingStatus =
|
|
2880
2881
|
| 'return_registered_online'
|
|
@@ -2914,6 +2915,9 @@ declare namespace io.flow.RESERVED_WORD_return.v0.models {
|
|
|
2914
2915
|
readonly key?: string;
|
|
2915
2916
|
readonly origin?: io.flow.fulfillment.v0.models.ShippingAddress;
|
|
2916
2917
|
readonly center_key?: string;
|
|
2918
|
+
readonly source: io.flow.RESERVED_WORD_return.v0.enums.ReturnSource;
|
|
2919
|
+
readonly tracking_status?: io.flow.RESERVED_WORD_return.v0.enums.ReturnTrackingStatus;
|
|
2920
|
+
readonly tracking_status_timestamp?: string;
|
|
2917
2921
|
}
|
|
2918
2922
|
|
|
2919
2923
|
interface ReturnItemReference {
|
|
@@ -3240,6 +3244,7 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
3240
3244
|
| 'direct_bank_transfer'
|
|
3241
3245
|
| 'direct_debit'
|
|
3242
3246
|
| 'pay_later'
|
|
3247
|
+
| 'pay_now'
|
|
3243
3248
|
| 'pay_over_time';
|
|
3244
3249
|
type KlarnaProduct = 'payment';
|
|
3245
3250
|
type NetworkStatus =
|
|
@@ -3847,20 +3852,20 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
3847
3852
|
readonly shipping_last_name?: string;
|
|
3848
3853
|
readonly locale?: string;
|
|
3849
3854
|
readonly pay_later_name?: string;
|
|
3850
|
-
readonly
|
|
3851
|
-
readonly
|
|
3855
|
+
readonly pay_later_asset_urls_standard?: string;
|
|
3856
|
+
readonly pay_later_asset_urls_descriptive?: string;
|
|
3852
3857
|
readonly pay_now_name?: string;
|
|
3853
|
-
readonly
|
|
3854
|
-
readonly
|
|
3858
|
+
readonly pay_now_asset_urls_standard?: string;
|
|
3859
|
+
readonly pay_now_asset_urls_descriptive?: string;
|
|
3855
3860
|
readonly pay_over_time_name?: string;
|
|
3856
|
-
readonly
|
|
3857
|
-
readonly
|
|
3861
|
+
readonly pay_over_time_asset_urls_standard?: string;
|
|
3862
|
+
readonly pay_over_time_asset_urls_descriptive?: string;
|
|
3858
3863
|
readonly direct_bank_transfer_name?: string;
|
|
3859
|
-
readonly
|
|
3860
|
-
readonly
|
|
3864
|
+
readonly direct_bank_transfer_asset_urls_standard?: string;
|
|
3865
|
+
readonly direct_bank_transfer_asset_urls_descriptive?: string;
|
|
3861
3866
|
readonly direct_debit_name?: string;
|
|
3862
|
-
readonly
|
|
3863
|
-
readonly
|
|
3867
|
+
readonly direct_debit_asset_urls_standard?: string;
|
|
3868
|
+
readonly direct_debit_asset_urls_descriptive?: string;
|
|
3864
3869
|
}
|
|
3865
3870
|
|
|
3866
3871
|
interface SourceKlarnaRequest {
|
|
@@ -7891,8 +7896,8 @@ declare namespace io.flow.payment.internal.v0.models {
|
|
|
7891
7896
|
interface KlarnaPaymentMethodCategory {
|
|
7892
7897
|
readonly id: string;
|
|
7893
7898
|
readonly name?: string;
|
|
7894
|
-
readonly
|
|
7895
|
-
readonly
|
|
7899
|
+
readonly standard_asset_urls?: string;
|
|
7900
|
+
readonly descriptive_asset_urls?: string;
|
|
7896
7901
|
}
|
|
7897
7902
|
|
|
7898
7903
|
interface OnlineAuthorizationCompleted {
|
|
@@ -9895,6 +9900,7 @@ declare namespace io.flow.crypto.v0.models {
|
|
|
9895
9900
|
readonly recipient: string;
|
|
9896
9901
|
readonly refunded: boolean;
|
|
9897
9902
|
readonly status: io.flow.crypto.v0.enums.PaymentStatus;
|
|
9903
|
+
readonly time_window: number;
|
|
9898
9904
|
}
|
|
9899
9905
|
|
|
9900
9906
|
interface PaymentRequest {
|
|
@@ -21655,8 +21661,8 @@ declare namespace io.flow.internal.v0.models {
|
|
|
21655
21661
|
interface KlarnaPaymentMethodCategory {
|
|
21656
21662
|
readonly id: string;
|
|
21657
21663
|
readonly name?: string;
|
|
21658
|
-
readonly
|
|
21659
|
-
readonly
|
|
21664
|
+
readonly standard_asset_urls?: string;
|
|
21665
|
+
readonly descriptive_asset_urls?: string;
|
|
21660
21666
|
}
|
|
21661
21667
|
|
|
21662
21668
|
interface LabProjectSettings {
|