@flowio/types 11.24.77 → 11.24.78
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 +66 -32
- package/dist/api.d.ts +15 -20
- package/package.json +2 -2
- package/src/api-internal.ts +142 -44
- package/src/api.ts +86 -32
package/dist/api-internal.d.ts
CHANGED
|
@@ -2013,13 +2013,13 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
2013
2013
|
type CancellationReason = 'abandoned' | 'automatic' | 'duplicate' | 'failed_invoice' | 'fraudulent' | 'requested_by_customer' | 'void_invoice';
|
|
2014
2014
|
type CaptureMethod = 'automatic' | 'manual';
|
|
2015
2015
|
type CardBrand = 'American Express' | 'MasterCard' | 'Discover' | 'JCB' | 'Diners Club' | 'Unknown';
|
|
2016
|
-
type CardErrorCode = 'invalid_number' | 'invalid_expiry_month' | 'invalid_expiry_year' | 'invalid_cvc' | 'invalid_swipe_data' | 'incorrect_number' | 'expired_card' | 'incorrect_cvc' | 'incorrect_zip' | 'card_declined' | 'missing' | 'processing_error';
|
|
2017
2016
|
type CardFundingType = 'credit' | 'debit' | 'prepaid' | 'unknown';
|
|
2018
2017
|
type CardNetwork = 'amex' | 'cartes_bancaires' | 'diners' | 'discover' | 'eftpos_au' | 'interac' | 'jcb' | 'mastercard' | 'unionpay' | 'visa' | 'unknown';
|
|
2019
2018
|
type CheckOutcome = 'pass' | 'fail' | 'unavailable' | 'unchecked';
|
|
2020
2019
|
type CodeVerificationStatus = 'pending' | 'succeeded' | 'failed';
|
|
2021
2020
|
type ConfirmationMethod = 'automatic' | 'manual';
|
|
2022
|
-
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';
|
|
2021
|
+
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_month' | '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';
|
|
2022
|
+
type ErrorCode = 'invalid_number' | 'invalid_expiry_month' | 'invalid_expiry_year' | 'invalid_cvc' | 'invalid_swipe_data' | 'country_code_invalid' | 'email_invalid' | 'postal_code_invalid' | 'invalid_characters' | 'url_invalid' | 'invalid_charge_amount' | 'incorrect_number' | 'incorrect_address' | 'incorrect_cvc' | 'incorrect_zip' | 'card_declined' | 'expired_card' | 'missing' | 'processing_error' | 'account_closed' | 'amount_too_small' | 'amount_too_large' | 'api_key_expired' | 'authentication_required' | 'capture_charge_authorization_expired' | 'capture_unauthorized_payment' | 'card_decline_rate_limit_exceeded' | 'charge_already_captured' | 'charge_already_refunded' | 'charge_disputed' | 'charge_exceeds_source_limit' | 'charge_expired_for_capture' | 'charge_invalid_parameter' | 'charge_not_refundable' | 'insufficient_funds' | 'intent_invalid_state' | 'livemode_mismatch' | 'parameter_invalid_empty' | 'parameter_invalid_integer' | 'parameter_invalid_string_blank' | 'parameter_invalid_string_empty' | 'parameter_missing' | 'parameter_unknown' | 'parameters_exclusive' | 'payment_intent_action_required' | 'payment_intent_authentication_failure' | 'payment_intent_incompatible_payment_method' | 'payment_intent_payment_attempt_expired' | 'payment_intent_payment_attempt_failed' | 'payment_intent_unexpected_state' | 'payment_intent_invalid_parameter' | 'payment_method_billing_details_address_missing' | 'payment_method_customer_decline' | 'payment_method_currency_mismatch' | 'payment_method_invalid_parameter' | 'payment_method_invalid_parameter_testmode' | 'payment_method_not_available' | 'payment_method_provider_decline' | 'payment_method_provider_timeout' | 'payment_method_unactivated' | 'payment_method_unexpected_state' | 'payment_method_unsupported_type' | 'platform_api_key_expired' | 'refund_disputed_payment' | 'testmode_charges_only' | 'tls_version_unsupported' | 'setup_attempt_failed' | 'setup_intent_authentication_failure' | 'setup_intent_invalid_parameter' | 'setup_intent_setup_attempt_expired' | 'setup_intent_unexpected_state';
|
|
2023
2023
|
type ErrorType = 'api_connection_error' | 'api_error' | 'authentication_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error' | 'rate_limit_error' | 'validation_error';
|
|
2024
2024
|
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';
|
|
2025
2025
|
type KlarnaPaymentMethodCategoryType = 'direct_bank_transfer' | 'direct_debit' | 'pay_later' | 'pay_now' | 'pay_over_time';
|
|
@@ -2167,7 +2167,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
2167
2167
|
readonly balance_transaction?: string;
|
|
2168
2168
|
readonly destination?: string;
|
|
2169
2169
|
readonly dispute?: string;
|
|
2170
|
-
readonly failure_code?:
|
|
2170
|
+
readonly failure_code?: io.flow.stripe.v0.enums.ErrorCode;
|
|
2171
2171
|
readonly failure_message?: string;
|
|
2172
2172
|
readonly on_behalf_of?: string;
|
|
2173
2173
|
readonly review?: string;
|
|
@@ -2215,7 +2215,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
2215
2215
|
readonly balance_transaction?: string;
|
|
2216
2216
|
readonly destination?: string;
|
|
2217
2217
|
readonly dispute?: string;
|
|
2218
|
-
readonly failure_code?:
|
|
2218
|
+
readonly failure_code?: io.flow.stripe.v0.enums.ErrorCode;
|
|
2219
2219
|
readonly failure_message?: string;
|
|
2220
2220
|
readonly on_behalf_of?: string;
|
|
2221
2221
|
readonly review?: string;
|
|
@@ -2259,16 +2259,6 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
2259
2259
|
readonly sub_merchant_id?: string;
|
|
2260
2260
|
readonly product_category?: string;
|
|
2261
2261
|
}
|
|
2262
|
-
interface LastPaymentError {
|
|
2263
|
-
readonly charge?: string;
|
|
2264
|
-
readonly code?: string;
|
|
2265
|
-
readonly decline_code?: io.flow.stripe.v0.enums.DeclineCode;
|
|
2266
|
-
readonly doc_url?: string;
|
|
2267
|
-
readonly message?: string;
|
|
2268
|
-
readonly param?: string;
|
|
2269
|
-
readonly payment_method: io.flow.stripe.v0.models.PaymentMethod;
|
|
2270
|
-
readonly type: io.flow.stripe.v0.enums.ErrorType;
|
|
2271
|
-
}
|
|
2272
2262
|
interface LegalEntity {
|
|
2273
2263
|
readonly additional_owners?: io.flow.stripe.v0.models.Owner[];
|
|
2274
2264
|
}
|
|
@@ -2360,7 +2350,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
2360
2350
|
readonly customer?: string;
|
|
2361
2351
|
readonly description?: string;
|
|
2362
2352
|
readonly invoice?: string;
|
|
2363
|
-
readonly last_payment_error?: io.flow.stripe.v0.models.
|
|
2353
|
+
readonly last_payment_error?: io.flow.stripe.v0.models.StripeError;
|
|
2364
2354
|
readonly livemode: boolean;
|
|
2365
2355
|
readonly metadata?: io.flow.stripe.v0.models.Metadata;
|
|
2366
2356
|
readonly next_action?: io.flow.stripe.v0.models.NextAction;
|
|
@@ -2541,9 +2531,9 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
2541
2531
|
readonly mcc?: string;
|
|
2542
2532
|
}
|
|
2543
2533
|
interface PaymentOutcome {
|
|
2544
|
-
readonly network_status
|
|
2545
|
-
readonly risk_level
|
|
2546
|
-
readonly seller_message
|
|
2534
|
+
readonly network_status?: io.flow.stripe.v0.enums.NetworkStatus;
|
|
2535
|
+
readonly risk_level?: string;
|
|
2536
|
+
readonly seller_message?: string;
|
|
2547
2537
|
readonly reason?: string;
|
|
2548
2538
|
readonly type?: io.flow.stripe.v0.enums.PaymentOutcomeType;
|
|
2549
2539
|
}
|
|
@@ -2724,10 +2714,11 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
2724
2714
|
readonly type: io.flow.stripe.v0.enums.ErrorType;
|
|
2725
2715
|
readonly charge?: string;
|
|
2726
2716
|
readonly message?: string;
|
|
2727
|
-
readonly code?: io.flow.stripe.v0.enums.
|
|
2728
|
-
readonly decline_code?:
|
|
2717
|
+
readonly code?: io.flow.stripe.v0.enums.ErrorCode;
|
|
2718
|
+
readonly decline_code?: io.flow.stripe.v0.enums.DeclineCode;
|
|
2729
2719
|
readonly param?: string;
|
|
2730
2720
|
readonly payment_intent?: io.flow.stripe.v0.models.PaymentIntent;
|
|
2721
|
+
readonly payment_method?: io.flow.stripe.v0.models.PaymentMethod;
|
|
2731
2722
|
}
|
|
2732
2723
|
interface StripeEvent {
|
|
2733
2724
|
readonly id: string;
|
|
@@ -2755,9 +2746,12 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
2755
2746
|
interface ThreeDSecureCharge {
|
|
2756
2747
|
readonly authenticated?: boolean;
|
|
2757
2748
|
readonly authentication_flow?: io.flow.stripe.v0.enums.ThreeDsAuthenticationFlow;
|
|
2749
|
+
readonly electronic_commerce_indicator?: string;
|
|
2750
|
+
readonly exemption_indicator?: string;
|
|
2758
2751
|
readonly result?: io.flow.stripe.v0.enums.ThreeDsResult;
|
|
2759
2752
|
readonly result_reason?: io.flow.stripe.v0.enums.ThreeDsResultReason;
|
|
2760
2753
|
readonly succeeded?: boolean;
|
|
2754
|
+
readonly transaction_id?: string;
|
|
2761
2755
|
readonly version?: string;
|
|
2762
2756
|
}
|
|
2763
2757
|
interface ThreeDSecureRedirect {
|
|
@@ -2891,6 +2885,10 @@ declare namespace io.flow.label.v0.enums {
|
|
|
2891
2885
|
type TrackingNumberType = 'flow' | 'carrier';
|
|
2892
2886
|
}
|
|
2893
2887
|
declare namespace io.flow.label.v0.models {
|
|
2888
|
+
interface AdditionalServicesRequested {
|
|
2889
|
+
readonly name: string;
|
|
2890
|
+
readonly description?: string;
|
|
2891
|
+
}
|
|
2894
2892
|
interface BridgeManifest {
|
|
2895
2893
|
readonly id: string;
|
|
2896
2894
|
readonly service: io.flow.fulfillment.v0.models.ServiceSummary;
|
|
@@ -2986,6 +2984,7 @@ declare namespace io.flow.label.v0.models {
|
|
|
2986
2984
|
readonly shipment_recipient: io.flow.label.v0.enums.ShipmentRecipient;
|
|
2987
2985
|
readonly label_request_method?: io.flow.label.v0.enums.LabelRequestMethod;
|
|
2988
2986
|
readonly label_trigger_method?: io.flow.label.v0.enums.LabelTriggerMethod;
|
|
2987
|
+
readonly additional_services_requested?: io.flow.label.v0.models.AdditionalServicesRequested[];
|
|
2989
2988
|
readonly created_at?: string;
|
|
2990
2989
|
readonly updated_at?: string;
|
|
2991
2990
|
}
|
|
@@ -11270,6 +11269,7 @@ declare namespace io.flow.billing.internal.v0.models {
|
|
|
11270
11269
|
readonly round_individual_transactions: boolean;
|
|
11271
11270
|
readonly liabilities_method: io.flow.billing.internal.v0.enums.AccountSettingLiabilitiesMethod;
|
|
11272
11271
|
readonly enable_fee_reversals: boolean;
|
|
11272
|
+
readonly record_reason_for_transactions_pending_payout: boolean;
|
|
11273
11273
|
}
|
|
11274
11274
|
interface AccountSource {
|
|
11275
11275
|
readonly id: string;
|
|
@@ -12319,6 +12319,7 @@ declare namespace io.flow.billing.v0.models {
|
|
|
12319
12319
|
}
|
|
12320
12320
|
interface TransactionMetadataManual {
|
|
12321
12321
|
readonly discriminator: 'manual';
|
|
12322
|
+
readonly description: string;
|
|
12322
12323
|
readonly original?: io.flow.billing.v0.models.TransactionMetadataOriginalTransaction;
|
|
12323
12324
|
readonly url?: string;
|
|
12324
12325
|
}
|
|
@@ -13797,7 +13798,7 @@ declare namespace io.flow.internal.v0.enums {
|
|
|
13797
13798
|
type AdyenIntegrationType = 'hosted_payment_page' | 'checkout_payments_api' | 'classic_authorise_api';
|
|
13798
13799
|
type AnyDangerousGoods = 'yes' | 'no' | 'i_dont_know';
|
|
13799
13800
|
type ApiCallReferenceId = 'duty_rates_data_event' | 'integration_test' | 'unit_test';
|
|
13800
|
-
type AutoRestrictRule = 'prr-3ce7d556f2464314ab0a3e8eee33e0ce' | 'prr-599c6246a1a24752aeb85e8f79030781' | 'prr-79e41878ea564f9c81cc432a0e84703f' | 'prr-f29c26dc09e04536bc77f9c32786ed70' | 'prr-
|
|
13801
|
+
type AutoRestrictRule = 'prr-3ce7d556f2464314ab0a3e8eee33e0ce' | 'prr-599c6246a1a24752aeb85e8f79030781' | 'prr-79e41878ea564f9c81cc432a0e84703f' | 'prr-f29c26dc09e04536bc77f9c32786ed70' | 'prr-b186129720f0446eb452a68518437c95';
|
|
13801
13802
|
type BankPaymentStatusCode = 'scheduled' | 'sent' | 'failed';
|
|
13802
13803
|
type BillingAllocationKey = 'freight_cost' | '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' | 'order_discount' | 'subtotal_percent_sales_margin' | 'subtotal_vat_percent_sales_margin' | 'subtotal_duty_percent_sales_margin' | 'vat_subsidy' | 'duty_subsidy' | 'fuel_surcharge' | 'remote_area_surcharge';
|
|
13803
13804
|
type BillingMetricKey = 'adjustment_transactions_count' | 'adjustment_transactions_total' | 'capture_transactions_count' | 'capture_transactions_ignored_fraud_count' | 'capture_transactions_ignored_fully_refunded_count' | 'capture_transactions_ignored_other_count' | 'capture_transactions_ignored_previously_processed_count' | 'capture_transactions_total' | 'channel_transactions_processing_count' | 'channel_transactions_processing_total' | 'channel_transactions_adjustment_count' | 'channel_transactions_adjustment_total' | 'channel_transactions_reversal_count' | 'channel_transactions_reversal_total' | 'channel_billed_transactions_count' | 'channel_billed_transactions_total' | 'credit_payment_transactions_count' | 'credit_payment_transactions_total' | 'duty_transactions_count' | 'duty_transactions_total' | 'fully_subsidized_order_transactions_count' | 'fully_subsidized_order_transactions_total' | 'billable_label_transactions_count' | 'billable_label_transactions_count_for_unique_orders' | 'billable_label_transactions_total' | 'revenue_share_label_transactions_count' | 'revenue_share_label_transactions_count_for_unique_orders' | 'revenue_share_label_transactions_total' | 'manual_transactions_count' | 'manual_transactions_total' | 'order_transactions_count' | 'order_transactions_total' | 'refund_transactions_count' | 'refund_transactions_ignored_fraud_count' | 'refund_transactions_ignored_fully_refunded_count' | 'refund_transactions_ignored_other_count' | 'refund_transactions_ignored_previously_processed_count' | 'refund_transactions_total' | 'reversal_order_cancellations_transactions_count' | 'reversal_order_cancellations_transactions_total' | 'reversal_external_fulfillment_transactions_count' | 'reversal_external_fulfillment_transactions_total' | 'reversal_other_transactions_count' | 'reversal_other_transactions_total' | 'reversal_all_transactions_count' | 'reversal_all_transactions_total' | 'tax_transactions_count' | 'tax_transactions_total' | 'transfer_transactions_count' | 'transfer_transactions_total' | 'trueup_transactions_count' | 'trueup_transactions_total' | 'fulfillments_count' | 'fulfilled_via_replacement_order_count' | 'percentage_orders_with_fulfillment_proof_2_weeks' | 'percentage_orders_with_fulfillment_proof_4_weeks' | 'percentage_orders_with_fulfillment_proof_6_weeks' | 'percentage_orders_with_fulfillment_proof_all' | 'pending_payouts_max_age_in_millis' | 'shipping_notifications_count' | 'queued_capture_unprocessed_count' | 'queued_refund_unprocessed_count' | 'queued_label_invoice_request_unprocessed_count' | 'queued_other_unprocessed_count' | 'queued_record_snooze_count' | 'queued_record_snooze_ending_in_48_hours_count' | 'statements_no_payout_count' | 'statements_no_payout_total' | 'statements_pending_payout_count' | 'statements_pending_payout_total' | 'payouts_scheduled_count' | 'payouts_scheduled_total' | 'payouts_sent_count' | 'payouts_sent_total' | 'payouts_failed_count' | 'payouts_failed_total' | 'average_payout_amount' | 'capture_transaction_with_zero_fees_and_no_channel_transaction_count' | 'percentage_billable_label_transactions_with_carrier_charge_10_days' | 'percentage_billable_label_transactions_with_carrier_charge_20_days' | 'percentage_billable_label_transactions_with_carrier_charge_30_days' | 'percentage_billable_label_transactions_with_carrier_charge_60_days' | 'percentage_billable_label_transactions_with_carrier_charge_90_days';
|
|
@@ -14202,6 +14203,7 @@ declare namespace io.flow.internal.v0.models {
|
|
|
14202
14203
|
readonly round_individual_transactions: boolean;
|
|
14203
14204
|
readonly liabilities_method: io.flow.internal.v0.enums.AccountSettingLiabilitiesMethod;
|
|
14204
14205
|
readonly enable_fee_reversals: boolean;
|
|
14206
|
+
readonly record_reason_for_transactions_pending_payout: boolean;
|
|
14205
14207
|
}
|
|
14206
14208
|
interface AccountSettingsDeleted {
|
|
14207
14209
|
readonly discriminator: 'account_settings_deleted';
|
|
@@ -15577,7 +15579,6 @@ declare namespace io.flow.internal.v0.models {
|
|
|
15577
15579
|
}
|
|
15578
15580
|
interface ChannelDebugTransaction {
|
|
15579
15581
|
readonly debug?: io.flow.internal.v0.models.DebugTransactionDetails;
|
|
15580
|
-
readonly order?: io.flow.internal.v0.models.DebugOrder;
|
|
15581
15582
|
readonly queue?: io.flow.internal.v0.models.DebugTransactionQueued;
|
|
15582
15583
|
}
|
|
15583
15584
|
interface ChannelForm {
|
|
@@ -15585,6 +15586,16 @@ declare namespace io.flow.internal.v0.models {
|
|
|
15585
15586
|
readonly environment: io.flow.common.v0.enums.Environment;
|
|
15586
15587
|
readonly organization_id_prefix?: string;
|
|
15587
15588
|
}
|
|
15589
|
+
interface ChannelFulfillment {
|
|
15590
|
+
readonly org_id: string;
|
|
15591
|
+
readonly flow_order_number: string;
|
|
15592
|
+
readonly shopify_order_number: string;
|
|
15593
|
+
readonly legal_name?: string;
|
|
15594
|
+
readonly flow_tracking_status?: io.flow.tracking.v0.enums.TrackingStatus;
|
|
15595
|
+
readonly order_items: io.flow.experience.v0.models.LocalizedLineItem[];
|
|
15596
|
+
readonly label_items: io.flow.experience.v0.models.LocalizedLineItem[];
|
|
15597
|
+
readonly tracking_numbers?: string[];
|
|
15598
|
+
}
|
|
15588
15599
|
interface ChannelMembership {
|
|
15589
15600
|
readonly id: string;
|
|
15590
15601
|
readonly channel: io.flow.common.v0.models.ChannelReference;
|
|
@@ -18042,8 +18053,9 @@ declare namespace io.flow.internal.v0.models {
|
|
|
18042
18053
|
readonly ignore_reason?: string;
|
|
18043
18054
|
}
|
|
18044
18055
|
interface DebugTransactionDetails {
|
|
18045
|
-
readonly
|
|
18056
|
+
readonly transaction: io.flow.billing.v0.models.Transaction;
|
|
18046
18057
|
readonly status: io.flow.internal.v0.models.DebugTransactionDetailsStatus;
|
|
18058
|
+
readonly payout?: io.flow.billing.v0.models.PendingPayoutTransactionReason;
|
|
18047
18059
|
readonly fx?: io.flow.internal.v0.models.DebugTransactionFx;
|
|
18048
18060
|
}
|
|
18049
18061
|
interface DebugTransactionDetailsStatus {
|
|
@@ -19415,18 +19427,17 @@ declare namespace io.flow.internal.v0.models {
|
|
|
19415
19427
|
}
|
|
19416
19428
|
interface Fulfillment {
|
|
19417
19429
|
readonly id: string;
|
|
19418
|
-
readonly fulfilled_at: string;
|
|
19419
|
-
readonly owner: io.flow.internal.v0.enums.LogisticsResponsibility;
|
|
19420
|
-
readonly currency: string;
|
|
19421
19430
|
readonly order: io.flow.internal.v0.models.OrderSummary;
|
|
19422
|
-
readonly origin?: io.flow.internal.v0.models.FulfillmentOrigin;
|
|
19423
19431
|
readonly shopper: io.flow.internal.v0.models.ShopperSummary;
|
|
19424
19432
|
readonly merchant: io.flow.internal.v0.models.MerchantSummary;
|
|
19425
|
-
readonly trigger: io.flow.internal.v0.unions.FulfillmentTrigger;
|
|
19426
|
-
readonly completes_order: boolean;
|
|
19427
19433
|
readonly sequence_number: number;
|
|
19428
19434
|
readonly posting_cutoff: string;
|
|
19435
|
+
readonly trigger: io.flow.internal.v0.unions.FulfillmentTrigger;
|
|
19436
|
+
readonly fulfilled_at: string;
|
|
19437
|
+
readonly owner: io.flow.internal.v0.enums.LogisticsResponsibility;
|
|
19438
|
+
readonly origin?: io.flow.internal.v0.models.FulfillmentOrigin;
|
|
19429
19439
|
readonly business?: io.flow.internal.v0.models.FulfillmentBusiness;
|
|
19440
|
+
readonly completes_order: boolean;
|
|
19430
19441
|
}
|
|
19431
19442
|
interface FulfillmentActionForm {
|
|
19432
19443
|
readonly discriminator: 'fulfillment_action_form';
|
|
@@ -20468,7 +20479,6 @@ declare namespace io.flow.internal.v0.models {
|
|
|
20468
20479
|
}
|
|
20469
20480
|
interface InternalDebugTransaction {
|
|
20470
20481
|
readonly debug?: io.flow.internal.v0.models.DebugTransactionDetails;
|
|
20471
|
-
readonly order?: io.flow.internal.v0.models.DebugOrder;
|
|
20472
20482
|
readonly queue?: io.flow.internal.v0.models.DebugTransactionQueued;
|
|
20473
20483
|
}
|
|
20474
20484
|
interface InternalExclusionRuleForm {
|
|
@@ -22082,6 +22092,10 @@ declare namespace io.flow.internal.v0.models {
|
|
|
22082
22092
|
readonly id: string;
|
|
22083
22093
|
readonly organization: io.flow.common.v0.models.OrganizationReference;
|
|
22084
22094
|
readonly number: string;
|
|
22095
|
+
readonly type: io.flow.experience.v0.enums.OrderType;
|
|
22096
|
+
readonly submitted_at: string;
|
|
22097
|
+
readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
|
|
22098
|
+
readonly currency: string;
|
|
22085
22099
|
}
|
|
22086
22100
|
interface OrderTransaction {
|
|
22087
22101
|
readonly discriminator: 'order_transaction';
|
|
@@ -22263,7 +22277,6 @@ declare namespace io.flow.internal.v0.models {
|
|
|
22263
22277
|
}
|
|
22264
22278
|
interface OrganizationDebugTransaction {
|
|
22265
22279
|
readonly debug?: io.flow.internal.v0.models.DebugTransactionDetails;
|
|
22266
|
-
readonly order?: io.flow.internal.v0.models.DebugOrder;
|
|
22267
22280
|
readonly queue?: io.flow.internal.v0.models.DebugTransactionQueued;
|
|
22268
22281
|
}
|
|
22269
22282
|
interface OrganizationInvitationAcceptForm {
|
|
@@ -23585,6 +23598,8 @@ declare namespace io.flow.internal.v0.models {
|
|
|
23585
23598
|
interface RestrictionKeywords {
|
|
23586
23599
|
readonly positive_keywords: string[];
|
|
23587
23600
|
readonly negative_keywords: string[];
|
|
23601
|
+
readonly positive_search_matches: string[];
|
|
23602
|
+
readonly negative_search_matches: string[];
|
|
23588
23603
|
}
|
|
23589
23604
|
interface RestrictionOrganization {
|
|
23590
23605
|
readonly id: string;
|
|
@@ -23735,6 +23750,16 @@ declare namespace io.flow.internal.v0.models {
|
|
|
23735
23750
|
readonly carrier: string;
|
|
23736
23751
|
readonly carrier_tracking_numbers: string[];
|
|
23737
23752
|
}
|
|
23753
|
+
interface Return {
|
|
23754
|
+
readonly id: string;
|
|
23755
|
+
readonly order: io.flow.internal.v0.models.OrderSummary;
|
|
23756
|
+
readonly shopper: io.flow.internal.v0.models.ShopperSummary;
|
|
23757
|
+
readonly merchant: io.flow.internal.v0.models.MerchantSummary;
|
|
23758
|
+
readonly sequence_number: number;
|
|
23759
|
+
readonly posting_cutoff: string;
|
|
23760
|
+
readonly trigger: io.flow.internal.v0.unions.ReturnTrigger;
|
|
23761
|
+
readonly returned_at: string;
|
|
23762
|
+
}
|
|
23738
23763
|
interface ReturnPolicyDeleted {
|
|
23739
23764
|
readonly discriminator: 'return_policy_deleted';
|
|
23740
23765
|
readonly event_id: string;
|
|
@@ -23769,6 +23794,10 @@ declare namespace io.flow.internal.v0.models {
|
|
|
23769
23794
|
readonly key: string;
|
|
23770
23795
|
readonly tracking_summary?: io.flow.internal.v0.models.SearchTrackingSummary;
|
|
23771
23796
|
}
|
|
23797
|
+
interface ReturnTriggerRefund {
|
|
23798
|
+
readonly discriminator: 'by_refund';
|
|
23799
|
+
readonly refund: io.flow.payment.v0.models.RefundReference;
|
|
23800
|
+
}
|
|
23772
23801
|
interface RoutingAccount {
|
|
23773
23802
|
readonly discriminator: 'routing_account';
|
|
23774
23803
|
readonly processor: io.flow.internal.v0.enums.Processor;
|
|
@@ -24439,7 +24468,7 @@ declare namespace io.flow.internal.v0.models {
|
|
|
24439
24468
|
readonly total: number;
|
|
24440
24469
|
}
|
|
24441
24470
|
interface ShopperSummary {
|
|
24442
|
-
readonly
|
|
24471
|
+
readonly product: io.flow.internal.v0.models.ShopperLines;
|
|
24443
24472
|
readonly fees: io.flow.internal.v0.models.ShopperFees;
|
|
24444
24473
|
readonly freight: io.flow.internal.v0.models.ShopperFreight;
|
|
24445
24474
|
readonly order_discount: number;
|
|
@@ -25564,6 +25593,7 @@ declare namespace io.flow.internal.v0.unions {
|
|
|
25564
25593
|
type ProcessorMerchantModificationForm = io.flow.internal.v0.models.StripeMerchantModificationForm | io.flow.internal.v0.models.AdyenMerchantModificationForm | io.flow.internal.v0.models.FiservMerchantModificationForm | io.flow.internal.v0.models.PaypalMerchantModificationForm;
|
|
25565
25594
|
type ProcessorMerchantPutForm = io.flow.internal.v0.models.StripeMerchantPutForm | io.flow.internal.v0.models.AdyenMerchantPutForm | io.flow.internal.v0.models.FiservMerchantPutForm | io.flow.internal.v0.models.PaypalMerchantPutForm;
|
|
25566
25595
|
type ProofOfPosting = io.flow.internal.v0.models.ProofOfPostingFulfilled | io.flow.internal.v0.models.ProofOfPostingExternallyFulfilled | io.flow.internal.v0.models.ProofOfPostingShippingNotification | io.flow.internal.v0.models.ProofOfPostingOrderCancellation | io.flow.internal.v0.models.ProofOfPostingOrderCombinedShipment;
|
|
25596
|
+
type ReturnTrigger = io.flow.internal.v0.models.ReturnTriggerRefund;
|
|
25567
25597
|
type RoutingEntity = io.flow.internal.v0.models.RoutingProcessor | io.flow.internal.v0.models.RoutingAccount | io.flow.internal.v0.models.RoutingMerchant;
|
|
25568
25598
|
type ShopifyMonitoringOrderMonitorType = io.flow.internal.v0.models.ShopifyMonitoringFulfillmentExternal | io.flow.internal.v0.models.ShopifyMonitoringFulfillmentMissingDetails;
|
|
25569
25599
|
type ShopifyPromotionOfferDiscount = io.flow.internal.v0.models.ShopifyPromotionFixedAmount | io.flow.internal.v0.models.ShopifyPromotionPercent;
|
|
@@ -25857,6 +25887,7 @@ export declare type ChannelCurrencySettingForm = io.flow.internal.v0.models.Chan
|
|
|
25857
25887
|
export declare type ChannelCurrencySettingUpserted = io.flow.internal.v0.models.ChannelCurrencySettingUpserted;
|
|
25858
25888
|
export declare type ChannelDebugTransaction = io.flow.internal.v0.models.ChannelDebugTransaction;
|
|
25859
25889
|
export declare type ChannelForm = io.flow.internal.v0.models.ChannelForm;
|
|
25890
|
+
export declare type ChannelFulfillment = io.flow.internal.v0.models.ChannelFulfillment;
|
|
25860
25891
|
export declare type ChannelMembership = io.flow.internal.v0.models.ChannelMembership;
|
|
25861
25892
|
export declare type ChannelMembershipForm = io.flow.internal.v0.models.ChannelMembershipForm;
|
|
25862
25893
|
export declare type ChannelMembershipPutForm = io.flow.internal.v0.models.ChannelMembershipPutForm;
|
|
@@ -27509,11 +27540,14 @@ export declare type ResyncByHs6Origin = io.flow.internal.v0.models.ResyncByHs6Or
|
|
|
27509
27540
|
export declare type ResyncFallbackRates = io.flow.internal.v0.models.ResyncFallbackRates;
|
|
27510
27541
|
export declare type Retracking = io.flow.internal.v0.models.Retracking;
|
|
27511
27542
|
export declare type RetrackingForm = io.flow.internal.v0.models.RetrackingForm;
|
|
27543
|
+
export declare type Return = io.flow.internal.v0.models.Return;
|
|
27512
27544
|
export declare type ReturnPolicyDeleted = io.flow.internal.v0.models.ReturnPolicyDeleted;
|
|
27513
27545
|
export declare type ReturnPolicyItemResultDeleted = io.flow.internal.v0.models.ReturnPolicyItemResultDeleted;
|
|
27514
27546
|
export declare type ReturnPolicyItemResultUpserted = io.flow.internal.v0.models.ReturnPolicyItemResultUpserted;
|
|
27515
27547
|
export declare type ReturnPolicyUpserted = io.flow.internal.v0.models.ReturnPolicyUpserted;
|
|
27516
27548
|
export declare type ReturnSummary = io.flow.internal.v0.models.ReturnSummary;
|
|
27549
|
+
export declare type ReturnTrigger = io.flow.internal.v0.unions.ReturnTrigger;
|
|
27550
|
+
export declare type ReturnTriggerRefund = io.flow.internal.v0.models.ReturnTriggerRefund;
|
|
27517
27551
|
export declare type RiskCheck = io.flow.internal.v0.enums.RiskCheck;
|
|
27518
27552
|
export declare type RiskEvaluation = io.flow.internal.v0.enums.RiskEvaluation;
|
|
27519
27553
|
export declare type RoutingAccount = io.flow.internal.v0.models.RoutingAccount;
|
package/dist/api.d.ts
CHANGED
|
@@ -132,13 +132,13 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
132
132
|
type CancellationReason = 'abandoned' | 'automatic' | 'duplicate' | 'failed_invoice' | 'fraudulent' | 'requested_by_customer' | 'void_invoice';
|
|
133
133
|
type CaptureMethod = 'automatic' | 'manual';
|
|
134
134
|
type CardBrand = 'American Express' | 'MasterCard' | 'Discover' | 'JCB' | 'Diners Club' | 'Unknown';
|
|
135
|
-
type CardErrorCode = 'invalid_number' | 'invalid_expiry_month' | 'invalid_expiry_year' | 'invalid_cvc' | 'invalid_swipe_data' | 'incorrect_number' | 'expired_card' | 'incorrect_cvc' | 'incorrect_zip' | 'card_declined' | 'missing' | 'processing_error';
|
|
136
135
|
type CardFundingType = 'credit' | 'debit' | 'prepaid' | 'unknown';
|
|
137
136
|
type CardNetwork = 'amex' | 'cartes_bancaires' | 'diners' | 'discover' | 'eftpos_au' | 'interac' | 'jcb' | 'mastercard' | 'unionpay' | 'visa' | 'unknown';
|
|
138
137
|
type CheckOutcome = 'pass' | 'fail' | 'unavailable' | 'unchecked';
|
|
139
138
|
type CodeVerificationStatus = 'pending' | 'succeeded' | 'failed';
|
|
140
139
|
type ConfirmationMethod = 'automatic' | 'manual';
|
|
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';
|
|
140
|
+
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_month' | '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';
|
|
141
|
+
type ErrorCode = 'invalid_number' | 'invalid_expiry_month' | 'invalid_expiry_year' | 'invalid_cvc' | 'invalid_swipe_data' | 'country_code_invalid' | 'email_invalid' | 'postal_code_invalid' | 'invalid_characters' | 'url_invalid' | 'invalid_charge_amount' | 'incorrect_number' | 'incorrect_address' | 'incorrect_cvc' | 'incorrect_zip' | 'card_declined' | 'expired_card' | 'missing' | 'processing_error' | 'account_closed' | 'amount_too_small' | 'amount_too_large' | 'api_key_expired' | 'authentication_required' | 'capture_charge_authorization_expired' | 'capture_unauthorized_payment' | 'card_decline_rate_limit_exceeded' | 'charge_already_captured' | 'charge_already_refunded' | 'charge_disputed' | 'charge_exceeds_source_limit' | 'charge_expired_for_capture' | 'charge_invalid_parameter' | 'charge_not_refundable' | 'insufficient_funds' | 'intent_invalid_state' | 'livemode_mismatch' | 'parameter_invalid_empty' | 'parameter_invalid_integer' | 'parameter_invalid_string_blank' | 'parameter_invalid_string_empty' | 'parameter_missing' | 'parameter_unknown' | 'parameters_exclusive' | 'payment_intent_action_required' | 'payment_intent_authentication_failure' | 'payment_intent_incompatible_payment_method' | 'payment_intent_payment_attempt_expired' | 'payment_intent_payment_attempt_failed' | 'payment_intent_unexpected_state' | 'payment_intent_invalid_parameter' | 'payment_method_billing_details_address_missing' | 'payment_method_customer_decline' | 'payment_method_currency_mismatch' | 'payment_method_invalid_parameter' | 'payment_method_invalid_parameter_testmode' | 'payment_method_not_available' | 'payment_method_provider_decline' | 'payment_method_provider_timeout' | 'payment_method_unactivated' | 'payment_method_unexpected_state' | 'payment_method_unsupported_type' | 'platform_api_key_expired' | 'refund_disputed_payment' | 'testmode_charges_only' | 'tls_version_unsupported' | 'setup_attempt_failed' | 'setup_intent_authentication_failure' | 'setup_intent_invalid_parameter' | 'setup_intent_setup_attempt_expired' | 'setup_intent_unexpected_state';
|
|
142
142
|
type ErrorType = 'api_connection_error' | 'api_error' | 'authentication_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error' | 'rate_limit_error' | 'validation_error';
|
|
143
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';
|
|
@@ -286,7 +286,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
286
286
|
readonly balance_transaction?: string;
|
|
287
287
|
readonly destination?: string;
|
|
288
288
|
readonly dispute?: string;
|
|
289
|
-
readonly failure_code?:
|
|
289
|
+
readonly failure_code?: io.flow.stripe.v0.enums.ErrorCode;
|
|
290
290
|
readonly failure_message?: string;
|
|
291
291
|
readonly on_behalf_of?: string;
|
|
292
292
|
readonly review?: string;
|
|
@@ -334,7 +334,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
334
334
|
readonly balance_transaction?: string;
|
|
335
335
|
readonly destination?: string;
|
|
336
336
|
readonly dispute?: string;
|
|
337
|
-
readonly failure_code?:
|
|
337
|
+
readonly failure_code?: io.flow.stripe.v0.enums.ErrorCode;
|
|
338
338
|
readonly failure_message?: string;
|
|
339
339
|
readonly on_behalf_of?: string;
|
|
340
340
|
readonly review?: string;
|
|
@@ -378,16 +378,6 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
378
378
|
readonly sub_merchant_id?: string;
|
|
379
379
|
readonly product_category?: string;
|
|
380
380
|
}
|
|
381
|
-
interface LastPaymentError {
|
|
382
|
-
readonly charge?: string;
|
|
383
|
-
readonly code?: string;
|
|
384
|
-
readonly decline_code?: io.flow.stripe.v0.enums.DeclineCode;
|
|
385
|
-
readonly doc_url?: string;
|
|
386
|
-
readonly message?: string;
|
|
387
|
-
readonly param?: string;
|
|
388
|
-
readonly payment_method: io.flow.stripe.v0.models.PaymentMethod;
|
|
389
|
-
readonly type: io.flow.stripe.v0.enums.ErrorType;
|
|
390
|
-
}
|
|
391
381
|
interface LegalEntity {
|
|
392
382
|
readonly additional_owners?: io.flow.stripe.v0.models.Owner[];
|
|
393
383
|
}
|
|
@@ -479,7 +469,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
479
469
|
readonly customer?: string;
|
|
480
470
|
readonly description?: string;
|
|
481
471
|
readonly invoice?: string;
|
|
482
|
-
readonly last_payment_error?: io.flow.stripe.v0.models.
|
|
472
|
+
readonly last_payment_error?: io.flow.stripe.v0.models.StripeError;
|
|
483
473
|
readonly livemode: boolean;
|
|
484
474
|
readonly metadata?: io.flow.stripe.v0.models.Metadata;
|
|
485
475
|
readonly next_action?: io.flow.stripe.v0.models.NextAction;
|
|
@@ -660,9 +650,9 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
660
650
|
readonly mcc?: string;
|
|
661
651
|
}
|
|
662
652
|
interface PaymentOutcome {
|
|
663
|
-
readonly network_status
|
|
664
|
-
readonly risk_level
|
|
665
|
-
readonly seller_message
|
|
653
|
+
readonly network_status?: io.flow.stripe.v0.enums.NetworkStatus;
|
|
654
|
+
readonly risk_level?: string;
|
|
655
|
+
readonly seller_message?: string;
|
|
666
656
|
readonly reason?: string;
|
|
667
657
|
readonly type?: io.flow.stripe.v0.enums.PaymentOutcomeType;
|
|
668
658
|
}
|
|
@@ -843,10 +833,11 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
843
833
|
readonly type: io.flow.stripe.v0.enums.ErrorType;
|
|
844
834
|
readonly charge?: string;
|
|
845
835
|
readonly message?: string;
|
|
846
|
-
readonly code?: io.flow.stripe.v0.enums.
|
|
847
|
-
readonly decline_code?:
|
|
836
|
+
readonly code?: io.flow.stripe.v0.enums.ErrorCode;
|
|
837
|
+
readonly decline_code?: io.flow.stripe.v0.enums.DeclineCode;
|
|
848
838
|
readonly param?: string;
|
|
849
839
|
readonly payment_intent?: io.flow.stripe.v0.models.PaymentIntent;
|
|
840
|
+
readonly payment_method?: io.flow.stripe.v0.models.PaymentMethod;
|
|
850
841
|
}
|
|
851
842
|
interface StripeEvent {
|
|
852
843
|
readonly id: string;
|
|
@@ -874,9 +865,12 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
874
865
|
interface ThreeDSecureCharge {
|
|
875
866
|
readonly authenticated?: boolean;
|
|
876
867
|
readonly authentication_flow?: io.flow.stripe.v0.enums.ThreeDsAuthenticationFlow;
|
|
868
|
+
readonly electronic_commerce_indicator?: string;
|
|
869
|
+
readonly exemption_indicator?: string;
|
|
877
870
|
readonly result?: io.flow.stripe.v0.enums.ThreeDsResult;
|
|
878
871
|
readonly result_reason?: io.flow.stripe.v0.enums.ThreeDsResultReason;
|
|
879
872
|
readonly succeeded?: boolean;
|
|
873
|
+
readonly transaction_id?: string;
|
|
880
874
|
readonly version?: string;
|
|
881
875
|
}
|
|
882
876
|
interface ThreeDSecureRedirect {
|
|
@@ -10534,6 +10528,7 @@ declare namespace io.flow.v0.models {
|
|
|
10534
10528
|
}
|
|
10535
10529
|
interface TransactionMetadataManual {
|
|
10536
10530
|
readonly discriminator: 'manual';
|
|
10531
|
+
readonly description: string;
|
|
10537
10532
|
readonly original?: io.flow.v0.models.TransactionMetadataOriginalTransaction;
|
|
10538
10533
|
readonly url?: string;
|
|
10539
10534
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/types",
|
|
3
|
-
"version": "11.24.
|
|
3
|
+
"version": "11.24.78",
|
|
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": "4b5d69bf9ba5f404b7b1c8f07d256db3c25210d9"
|
|
29
29
|
}
|
package/src/api-internal.ts
CHANGED
|
@@ -2516,19 +2516,6 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
2516
2516
|
| 'JCB'
|
|
2517
2517
|
| 'Diners Club'
|
|
2518
2518
|
| 'Unknown';
|
|
2519
|
-
type CardErrorCode =
|
|
2520
|
-
| 'invalid_number'
|
|
2521
|
-
| 'invalid_expiry_month'
|
|
2522
|
-
| 'invalid_expiry_year'
|
|
2523
|
-
| 'invalid_cvc'
|
|
2524
|
-
| 'invalid_swipe_data'
|
|
2525
|
-
| 'incorrect_number'
|
|
2526
|
-
| 'expired_card'
|
|
2527
|
-
| 'incorrect_cvc'
|
|
2528
|
-
| 'incorrect_zip'
|
|
2529
|
-
| 'card_declined'
|
|
2530
|
-
| 'missing'
|
|
2531
|
-
| 'processing_error';
|
|
2532
2519
|
type CardFundingType = 'credit' | 'debit' | 'prepaid' | 'unknown';
|
|
2533
2520
|
type CardNetwork =
|
|
2534
2521
|
| 'amex'
|
|
@@ -2565,6 +2552,7 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
2565
2552
|
| 'invalid_account'
|
|
2566
2553
|
| 'invalid_amount'
|
|
2567
2554
|
| 'invalid_cvc'
|
|
2555
|
+
| 'invalid_expiry_month'
|
|
2568
2556
|
| 'invalid_expiry_year'
|
|
2569
2557
|
| 'invalid_number'
|
|
2570
2558
|
| 'invalid_pin'
|
|
@@ -2588,6 +2576,78 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
2588
2576
|
| 'transaction_not_allowed'
|
|
2589
2577
|
| 'try_again_later'
|
|
2590
2578
|
| 'withdrawal_count_limit_exceeded';
|
|
2579
|
+
type ErrorCode =
|
|
2580
|
+
| 'invalid_number'
|
|
2581
|
+
| 'invalid_expiry_month'
|
|
2582
|
+
| 'invalid_expiry_year'
|
|
2583
|
+
| 'invalid_cvc'
|
|
2584
|
+
| 'invalid_swipe_data'
|
|
2585
|
+
| 'country_code_invalid'
|
|
2586
|
+
| 'email_invalid'
|
|
2587
|
+
| 'postal_code_invalid'
|
|
2588
|
+
| 'invalid_characters'
|
|
2589
|
+
| 'url_invalid'
|
|
2590
|
+
| 'invalid_charge_amount'
|
|
2591
|
+
| 'incorrect_number'
|
|
2592
|
+
| 'incorrect_address'
|
|
2593
|
+
| 'incorrect_cvc'
|
|
2594
|
+
| 'incorrect_zip'
|
|
2595
|
+
| 'card_declined'
|
|
2596
|
+
| 'expired_card'
|
|
2597
|
+
| 'missing'
|
|
2598
|
+
| 'processing_error'
|
|
2599
|
+
| 'account_closed'
|
|
2600
|
+
| 'amount_too_small'
|
|
2601
|
+
| 'amount_too_large'
|
|
2602
|
+
| 'api_key_expired'
|
|
2603
|
+
| 'authentication_required'
|
|
2604
|
+
| 'capture_charge_authorization_expired'
|
|
2605
|
+
| 'capture_unauthorized_payment'
|
|
2606
|
+
| 'card_decline_rate_limit_exceeded'
|
|
2607
|
+
| 'charge_already_captured'
|
|
2608
|
+
| 'charge_already_refunded'
|
|
2609
|
+
| 'charge_disputed'
|
|
2610
|
+
| 'charge_exceeds_source_limit'
|
|
2611
|
+
| 'charge_expired_for_capture'
|
|
2612
|
+
| 'charge_invalid_parameter'
|
|
2613
|
+
| 'charge_not_refundable'
|
|
2614
|
+
| 'insufficient_funds'
|
|
2615
|
+
| 'intent_invalid_state'
|
|
2616
|
+
| 'livemode_mismatch'
|
|
2617
|
+
| 'parameter_invalid_empty'
|
|
2618
|
+
| 'parameter_invalid_integer'
|
|
2619
|
+
| 'parameter_invalid_string_blank'
|
|
2620
|
+
| 'parameter_invalid_string_empty'
|
|
2621
|
+
| 'parameter_missing'
|
|
2622
|
+
| 'parameter_unknown'
|
|
2623
|
+
| 'parameters_exclusive'
|
|
2624
|
+
| 'payment_intent_action_required'
|
|
2625
|
+
| 'payment_intent_authentication_failure'
|
|
2626
|
+
| 'payment_intent_incompatible_payment_method'
|
|
2627
|
+
| 'payment_intent_payment_attempt_expired'
|
|
2628
|
+
| 'payment_intent_payment_attempt_failed'
|
|
2629
|
+
| 'payment_intent_unexpected_state'
|
|
2630
|
+
| 'payment_intent_invalid_parameter'
|
|
2631
|
+
| 'payment_method_billing_details_address_missing'
|
|
2632
|
+
| 'payment_method_customer_decline'
|
|
2633
|
+
| 'payment_method_currency_mismatch'
|
|
2634
|
+
| 'payment_method_invalid_parameter'
|
|
2635
|
+
| 'payment_method_invalid_parameter_testmode'
|
|
2636
|
+
| 'payment_method_not_available'
|
|
2637
|
+
| 'payment_method_provider_decline'
|
|
2638
|
+
| 'payment_method_provider_timeout'
|
|
2639
|
+
| 'payment_method_unactivated'
|
|
2640
|
+
| 'payment_method_unexpected_state'
|
|
2641
|
+
| 'payment_method_unsupported_type'
|
|
2642
|
+
| 'platform_api_key_expired'
|
|
2643
|
+
| 'refund_disputed_payment'
|
|
2644
|
+
| 'testmode_charges_only'
|
|
2645
|
+
| 'tls_version_unsupported'
|
|
2646
|
+
| 'setup_attempt_failed'
|
|
2647
|
+
| 'setup_intent_authentication_failure'
|
|
2648
|
+
| 'setup_intent_invalid_parameter'
|
|
2649
|
+
| 'setup_intent_setup_attempt_expired'
|
|
2650
|
+
| 'setup_intent_unexpected_state';
|
|
2591
2651
|
type ErrorType =
|
|
2592
2652
|
| 'api_connection_error'
|
|
2593
2653
|
| 'api_error'
|
|
@@ -2889,7 +2949,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
2889
2949
|
readonly balance_transaction?: string;
|
|
2890
2950
|
readonly destination?: string;
|
|
2891
2951
|
readonly dispute?: string;
|
|
2892
|
-
readonly failure_code?:
|
|
2952
|
+
readonly failure_code?: io.flow.stripe.v0.enums.ErrorCode;
|
|
2893
2953
|
readonly failure_message?: string;
|
|
2894
2954
|
readonly on_behalf_of?: string;
|
|
2895
2955
|
readonly review?: string;
|
|
@@ -2940,7 +3000,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
2940
3000
|
readonly balance_transaction?: string;
|
|
2941
3001
|
readonly destination?: string;
|
|
2942
3002
|
readonly dispute?: string;
|
|
2943
|
-
readonly failure_code?:
|
|
3003
|
+
readonly failure_code?: io.flow.stripe.v0.enums.ErrorCode;
|
|
2944
3004
|
readonly failure_message?: string;
|
|
2945
3005
|
readonly on_behalf_of?: string;
|
|
2946
3006
|
readonly review?: string;
|
|
@@ -2992,17 +3052,6 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
2992
3052
|
readonly product_category?: string;
|
|
2993
3053
|
}
|
|
2994
3054
|
|
|
2995
|
-
interface LastPaymentError {
|
|
2996
|
-
readonly charge?: string;
|
|
2997
|
-
readonly code?: string;
|
|
2998
|
-
readonly decline_code?: io.flow.stripe.v0.enums.DeclineCode;
|
|
2999
|
-
readonly doc_url?: string;
|
|
3000
|
-
readonly message?: string;
|
|
3001
|
-
readonly param?: string;
|
|
3002
|
-
readonly payment_method: io.flow.stripe.v0.models.PaymentMethod;
|
|
3003
|
-
readonly type: io.flow.stripe.v0.enums.ErrorType;
|
|
3004
|
-
}
|
|
3005
|
-
|
|
3006
3055
|
interface LegalEntity {
|
|
3007
3056
|
readonly additional_owners?: io.flow.stripe.v0.models.Owner[];
|
|
3008
3057
|
}
|
|
@@ -3105,7 +3154,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
3105
3154
|
readonly customer?: string;
|
|
3106
3155
|
readonly description?: string;
|
|
3107
3156
|
readonly invoice?: string;
|
|
3108
|
-
readonly last_payment_error?: io.flow.stripe.v0.models.
|
|
3157
|
+
readonly last_payment_error?: io.flow.stripe.v0.models.StripeError;
|
|
3109
3158
|
readonly livemode: boolean;
|
|
3110
3159
|
readonly metadata?: io.flow.stripe.v0.models.Metadata;
|
|
3111
3160
|
readonly next_action?: io.flow.stripe.v0.models.NextAction;
|
|
@@ -3306,9 +3355,9 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
3306
3355
|
}
|
|
3307
3356
|
|
|
3308
3357
|
interface PaymentOutcome {
|
|
3309
|
-
readonly network_status
|
|
3310
|
-
readonly risk_level
|
|
3311
|
-
readonly seller_message
|
|
3358
|
+
readonly network_status?: io.flow.stripe.v0.enums.NetworkStatus;
|
|
3359
|
+
readonly risk_level?: string;
|
|
3360
|
+
readonly seller_message?: string;
|
|
3312
3361
|
readonly reason?: string;
|
|
3313
3362
|
readonly type?: io.flow.stripe.v0.enums.PaymentOutcomeType;
|
|
3314
3363
|
}
|
|
@@ -3507,10 +3556,11 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
3507
3556
|
readonly type: io.flow.stripe.v0.enums.ErrorType;
|
|
3508
3557
|
readonly charge?: string;
|
|
3509
3558
|
readonly message?: string;
|
|
3510
|
-
readonly code?: io.flow.stripe.v0.enums.
|
|
3511
|
-
readonly decline_code?:
|
|
3559
|
+
readonly code?: io.flow.stripe.v0.enums.ErrorCode;
|
|
3560
|
+
readonly decline_code?: io.flow.stripe.v0.enums.DeclineCode;
|
|
3512
3561
|
readonly param?: string;
|
|
3513
3562
|
readonly payment_intent?: io.flow.stripe.v0.models.PaymentIntent;
|
|
3563
|
+
readonly payment_method?: io.flow.stripe.v0.models.PaymentMethod;
|
|
3514
3564
|
}
|
|
3515
3565
|
|
|
3516
3566
|
interface StripeEvent {
|
|
@@ -3543,9 +3593,12 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
3543
3593
|
interface ThreeDSecureCharge {
|
|
3544
3594
|
readonly authenticated?: boolean;
|
|
3545
3595
|
readonly authentication_flow?: io.flow.stripe.v0.enums.ThreeDsAuthenticationFlow;
|
|
3596
|
+
readonly electronic_commerce_indicator?: string;
|
|
3597
|
+
readonly exemption_indicator?: string;
|
|
3546
3598
|
readonly result?: io.flow.stripe.v0.enums.ThreeDsResult;
|
|
3547
3599
|
readonly result_reason?: io.flow.stripe.v0.enums.ThreeDsResultReason;
|
|
3548
3600
|
readonly succeeded?: boolean;
|
|
3601
|
+
readonly transaction_id?: string;
|
|
3549
3602
|
readonly version?: string;
|
|
3550
3603
|
}
|
|
3551
3604
|
|
|
@@ -3719,6 +3772,11 @@ declare namespace io.flow.label.v0.enums {
|
|
|
3719
3772
|
}
|
|
3720
3773
|
|
|
3721
3774
|
declare namespace io.flow.label.v0.models {
|
|
3775
|
+
interface AdditionalServicesRequested {
|
|
3776
|
+
readonly name: string;
|
|
3777
|
+
readonly description?: string;
|
|
3778
|
+
}
|
|
3779
|
+
|
|
3722
3780
|
interface BridgeManifest {
|
|
3723
3781
|
readonly id: string;
|
|
3724
3782
|
readonly service: io.flow.fulfillment.v0.models.ServiceSummary;
|
|
@@ -3824,6 +3882,7 @@ declare namespace io.flow.label.v0.models {
|
|
|
3824
3882
|
readonly shipment_recipient: io.flow.label.v0.enums.ShipmentRecipient;
|
|
3825
3883
|
readonly label_request_method?: io.flow.label.v0.enums.LabelRequestMethod;
|
|
3826
3884
|
readonly label_trigger_method?: io.flow.label.v0.enums.LabelTriggerMethod;
|
|
3885
|
+
readonly additional_services_requested?: io.flow.label.v0.models.AdditionalServicesRequested[];
|
|
3827
3886
|
readonly created_at?: string;
|
|
3828
3887
|
readonly updated_at?: string;
|
|
3829
3888
|
}
|
|
@@ -14829,6 +14888,7 @@ declare namespace io.flow.billing.internal.v0.models {
|
|
|
14829
14888
|
readonly round_individual_transactions: boolean;
|
|
14830
14889
|
readonly liabilities_method: io.flow.billing.internal.v0.enums.AccountSettingLiabilitiesMethod;
|
|
14831
14890
|
readonly enable_fee_reversals: boolean;
|
|
14891
|
+
readonly record_reason_for_transactions_pending_payout: boolean;
|
|
14832
14892
|
}
|
|
14833
14893
|
|
|
14834
14894
|
interface AccountSource {
|
|
@@ -16107,6 +16167,7 @@ declare namespace io.flow.billing.v0.models {
|
|
|
16107
16167
|
|
|
16108
16168
|
interface TransactionMetadataManual {
|
|
16109
16169
|
readonly discriminator: 'manual';
|
|
16170
|
+
readonly description: string;
|
|
16110
16171
|
readonly original?: io.flow.billing.v0.models.TransactionMetadataOriginalTransaction;
|
|
16111
16172
|
readonly url?: string;
|
|
16112
16173
|
}
|
|
@@ -17962,7 +18023,7 @@ declare namespace io.flow.internal.v0.enums {
|
|
|
17962
18023
|
| 'prr-599c6246a1a24752aeb85e8f79030781'
|
|
17963
18024
|
| 'prr-79e41878ea564f9c81cc432a0e84703f'
|
|
17964
18025
|
| 'prr-f29c26dc09e04536bc77f9c32786ed70'
|
|
17965
|
-
| 'prr-
|
|
18026
|
+
| 'prr-b186129720f0446eb452a68518437c95';
|
|
17966
18027
|
type BankPaymentStatusCode = 'scheduled' | 'sent' | 'failed';
|
|
17967
18028
|
type BillingAllocationKey =
|
|
17968
18029
|
| 'freight_cost'
|
|
@@ -19467,6 +19528,7 @@ declare namespace io.flow.internal.v0.models {
|
|
|
19467
19528
|
readonly round_individual_transactions: boolean;
|
|
19468
19529
|
readonly liabilities_method: io.flow.internal.v0.enums.AccountSettingLiabilitiesMethod;
|
|
19469
19530
|
readonly enable_fee_reversals: boolean;
|
|
19531
|
+
readonly record_reason_for_transactions_pending_payout: boolean;
|
|
19470
19532
|
}
|
|
19471
19533
|
|
|
19472
19534
|
interface AccountSettingsDeleted {
|
|
@@ -21065,7 +21127,6 @@ declare namespace io.flow.internal.v0.models {
|
|
|
21065
21127
|
|
|
21066
21128
|
interface ChannelDebugTransaction {
|
|
21067
21129
|
readonly debug?: io.flow.internal.v0.models.DebugTransactionDetails;
|
|
21068
|
-
readonly order?: io.flow.internal.v0.models.DebugOrder;
|
|
21069
21130
|
readonly queue?: io.flow.internal.v0.models.DebugTransactionQueued;
|
|
21070
21131
|
}
|
|
21071
21132
|
|
|
@@ -21075,6 +21136,17 @@ declare namespace io.flow.internal.v0.models {
|
|
|
21075
21136
|
readonly organization_id_prefix?: string;
|
|
21076
21137
|
}
|
|
21077
21138
|
|
|
21139
|
+
interface ChannelFulfillment {
|
|
21140
|
+
readonly org_id: string;
|
|
21141
|
+
readonly flow_order_number: string;
|
|
21142
|
+
readonly shopify_order_number: string;
|
|
21143
|
+
readonly legal_name?: string;
|
|
21144
|
+
readonly flow_tracking_status?: io.flow.tracking.v0.enums.TrackingStatus;
|
|
21145
|
+
readonly order_items: io.flow.experience.v0.models.LocalizedLineItem[];
|
|
21146
|
+
readonly label_items: io.flow.experience.v0.models.LocalizedLineItem[];
|
|
21147
|
+
readonly tracking_numbers?: string[];
|
|
21148
|
+
}
|
|
21149
|
+
|
|
21078
21150
|
interface ChannelMembership {
|
|
21079
21151
|
readonly id: string;
|
|
21080
21152
|
readonly channel: io.flow.common.v0.models.ChannelReference;
|
|
@@ -24032,8 +24104,9 @@ declare namespace io.flow.internal.v0.models {
|
|
|
24032
24104
|
}
|
|
24033
24105
|
|
|
24034
24106
|
interface DebugTransactionDetails {
|
|
24035
|
-
readonly
|
|
24107
|
+
readonly transaction: io.flow.billing.v0.models.Transaction;
|
|
24036
24108
|
readonly status: io.flow.internal.v0.models.DebugTransactionDetailsStatus;
|
|
24109
|
+
readonly payout?: io.flow.billing.v0.models.PendingPayoutTransactionReason;
|
|
24037
24110
|
readonly fx?: io.flow.internal.v0.models.DebugTransactionFx;
|
|
24038
24111
|
}
|
|
24039
24112
|
|
|
@@ -25606,18 +25679,17 @@ declare namespace io.flow.internal.v0.models {
|
|
|
25606
25679
|
|
|
25607
25680
|
interface Fulfillment {
|
|
25608
25681
|
readonly id: string;
|
|
25609
|
-
readonly fulfilled_at: string;
|
|
25610
|
-
readonly owner: io.flow.internal.v0.enums.LogisticsResponsibility;
|
|
25611
|
-
readonly currency: string;
|
|
25612
25682
|
readonly order: io.flow.internal.v0.models.OrderSummary;
|
|
25613
|
-
readonly origin?: io.flow.internal.v0.models.FulfillmentOrigin;
|
|
25614
25683
|
readonly shopper: io.flow.internal.v0.models.ShopperSummary;
|
|
25615
25684
|
readonly merchant: io.flow.internal.v0.models.MerchantSummary;
|
|
25616
|
-
readonly trigger: io.flow.internal.v0.unions.FulfillmentTrigger;
|
|
25617
|
-
readonly completes_order: boolean;
|
|
25618
25685
|
readonly sequence_number: number;
|
|
25619
25686
|
readonly posting_cutoff: string;
|
|
25687
|
+
readonly trigger: io.flow.internal.v0.unions.FulfillmentTrigger;
|
|
25688
|
+
readonly fulfilled_at: string;
|
|
25689
|
+
readonly owner: io.flow.internal.v0.enums.LogisticsResponsibility;
|
|
25690
|
+
readonly origin?: io.flow.internal.v0.models.FulfillmentOrigin;
|
|
25620
25691
|
readonly business?: io.flow.internal.v0.models.FulfillmentBusiness;
|
|
25692
|
+
readonly completes_order: boolean;
|
|
25621
25693
|
}
|
|
25622
25694
|
|
|
25623
25695
|
interface FulfillmentActionForm {
|
|
@@ -26783,7 +26855,6 @@ declare namespace io.flow.internal.v0.models {
|
|
|
26783
26855
|
|
|
26784
26856
|
interface InternalDebugTransaction {
|
|
26785
26857
|
readonly debug?: io.flow.internal.v0.models.DebugTransactionDetails;
|
|
26786
|
-
readonly order?: io.flow.internal.v0.models.DebugOrder;
|
|
26787
26858
|
readonly queue?: io.flow.internal.v0.models.DebugTransactionQueued;
|
|
26788
26859
|
}
|
|
26789
26860
|
|
|
@@ -28654,6 +28725,10 @@ declare namespace io.flow.internal.v0.models {
|
|
|
28654
28725
|
readonly id: string;
|
|
28655
28726
|
readonly organization: io.flow.common.v0.models.OrganizationReference;
|
|
28656
28727
|
readonly number: string;
|
|
28728
|
+
readonly type: io.flow.experience.v0.enums.OrderType;
|
|
28729
|
+
readonly submitted_at: string;
|
|
28730
|
+
readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
|
|
28731
|
+
readonly currency: string;
|
|
28657
28732
|
}
|
|
28658
28733
|
|
|
28659
28734
|
interface OrderTransaction {
|
|
@@ -28861,7 +28936,6 @@ declare namespace io.flow.internal.v0.models {
|
|
|
28861
28936
|
|
|
28862
28937
|
interface OrganizationDebugTransaction {
|
|
28863
28938
|
readonly debug?: io.flow.internal.v0.models.DebugTransactionDetails;
|
|
28864
|
-
readonly order?: io.flow.internal.v0.models.DebugOrder;
|
|
28865
28939
|
readonly queue?: io.flow.internal.v0.models.DebugTransactionQueued;
|
|
28866
28940
|
}
|
|
28867
28941
|
|
|
@@ -30381,6 +30455,8 @@ declare namespace io.flow.internal.v0.models {
|
|
|
30381
30455
|
interface RestrictionKeywords {
|
|
30382
30456
|
readonly positive_keywords: string[];
|
|
30383
30457
|
readonly negative_keywords: string[];
|
|
30458
|
+
readonly positive_search_matches: string[];
|
|
30459
|
+
readonly negative_search_matches: string[];
|
|
30384
30460
|
}
|
|
30385
30461
|
|
|
30386
30462
|
interface RestrictionOrganization {
|
|
@@ -30554,6 +30630,17 @@ declare namespace io.flow.internal.v0.models {
|
|
|
30554
30630
|
readonly carrier_tracking_numbers: string[];
|
|
30555
30631
|
}
|
|
30556
30632
|
|
|
30633
|
+
interface Return {
|
|
30634
|
+
readonly id: string;
|
|
30635
|
+
readonly order: io.flow.internal.v0.models.OrderSummary;
|
|
30636
|
+
readonly shopper: io.flow.internal.v0.models.ShopperSummary;
|
|
30637
|
+
readonly merchant: io.flow.internal.v0.models.MerchantSummary;
|
|
30638
|
+
readonly sequence_number: number;
|
|
30639
|
+
readonly posting_cutoff: string;
|
|
30640
|
+
readonly trigger: io.flow.internal.v0.unions.ReturnTrigger;
|
|
30641
|
+
readonly returned_at: string;
|
|
30642
|
+
}
|
|
30643
|
+
|
|
30557
30644
|
interface ReturnPolicyDeleted {
|
|
30558
30645
|
readonly discriminator: 'return_policy_deleted';
|
|
30559
30646
|
readonly event_id: string;
|
|
@@ -30593,6 +30680,11 @@ declare namespace io.flow.internal.v0.models {
|
|
|
30593
30680
|
readonly tracking_summary?: io.flow.internal.v0.models.SearchTrackingSummary;
|
|
30594
30681
|
}
|
|
30595
30682
|
|
|
30683
|
+
interface ReturnTriggerRefund {
|
|
30684
|
+
readonly discriminator: 'by_refund';
|
|
30685
|
+
readonly refund: io.flow.payment.v0.models.RefundReference;
|
|
30686
|
+
}
|
|
30687
|
+
|
|
30596
30688
|
interface RoutingAccount {
|
|
30597
30689
|
readonly discriminator: 'routing_account';
|
|
30598
30690
|
readonly processor: io.flow.internal.v0.enums.Processor;
|
|
@@ -31385,7 +31477,7 @@ declare namespace io.flow.internal.v0.models {
|
|
|
31385
31477
|
}
|
|
31386
31478
|
|
|
31387
31479
|
interface ShopperSummary {
|
|
31388
|
-
readonly
|
|
31480
|
+
readonly product: io.flow.internal.v0.models.ShopperLines;
|
|
31389
31481
|
readonly fees: io.flow.internal.v0.models.ShopperFees;
|
|
31390
31482
|
readonly freight: io.flow.internal.v0.models.ShopperFreight;
|
|
31391
31483
|
readonly order_discount: number;
|
|
@@ -33503,6 +33595,7 @@ declare namespace io.flow.internal.v0.unions {
|
|
|
33503
33595
|
| io.flow.internal.v0.models.ProofOfPostingShippingNotification
|
|
33504
33596
|
| io.flow.internal.v0.models.ProofOfPostingOrderCancellation
|
|
33505
33597
|
| io.flow.internal.v0.models.ProofOfPostingOrderCombinedShipment;
|
|
33598
|
+
type ReturnTrigger = io.flow.internal.v0.models.ReturnTriggerRefund;
|
|
33506
33599
|
type RoutingEntity =
|
|
33507
33600
|
| io.flow.internal.v0.models.RoutingProcessor
|
|
33508
33601
|
| io.flow.internal.v0.models.RoutingAccount
|
|
@@ -34053,6 +34146,7 @@ export type ChannelCurrencySettingUpserted =
|
|
|
34053
34146
|
export type ChannelDebugTransaction =
|
|
34054
34147
|
io.flow.internal.v0.models.ChannelDebugTransaction;
|
|
34055
34148
|
export type ChannelForm = io.flow.internal.v0.models.ChannelForm;
|
|
34149
|
+
export type ChannelFulfillment = io.flow.internal.v0.models.ChannelFulfillment;
|
|
34056
34150
|
export type ChannelMembership = io.flow.internal.v0.models.ChannelMembership;
|
|
34057
34151
|
export type ChannelMembershipForm =
|
|
34058
34152
|
io.flow.internal.v0.models.ChannelMembershipForm;
|
|
@@ -36923,6 +37017,7 @@ export type ResyncFallbackRates =
|
|
|
36923
37017
|
io.flow.internal.v0.models.ResyncFallbackRates;
|
|
36924
37018
|
export type Retracking = io.flow.internal.v0.models.Retracking;
|
|
36925
37019
|
export type RetrackingForm = io.flow.internal.v0.models.RetrackingForm;
|
|
37020
|
+
export type Return = io.flow.internal.v0.models.Return;
|
|
36926
37021
|
export type ReturnPolicyDeleted =
|
|
36927
37022
|
io.flow.internal.v0.models.ReturnPolicyDeleted;
|
|
36928
37023
|
export type ReturnPolicyItemResultDeleted =
|
|
@@ -36932,6 +37027,9 @@ export type ReturnPolicyItemResultUpserted =
|
|
|
36932
37027
|
export type ReturnPolicyUpserted =
|
|
36933
37028
|
io.flow.internal.v0.models.ReturnPolicyUpserted;
|
|
36934
37029
|
export type ReturnSummary = io.flow.internal.v0.models.ReturnSummary;
|
|
37030
|
+
export type ReturnTrigger = io.flow.internal.v0.unions.ReturnTrigger;
|
|
37031
|
+
export type ReturnTriggerRefund =
|
|
37032
|
+
io.flow.internal.v0.models.ReturnTriggerRefund;
|
|
36935
37033
|
export type RiskCheck = io.flow.internal.v0.enums.RiskCheck;
|
|
36936
37034
|
export type RiskEvaluation = io.flow.internal.v0.enums.RiskEvaluation;
|
|
36937
37035
|
export type RoutingAccount = io.flow.internal.v0.models.RoutingAccount;
|
package/src/api.ts
CHANGED
|
@@ -169,19 +169,6 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
169
169
|
| 'JCB'
|
|
170
170
|
| 'Diners Club'
|
|
171
171
|
| 'Unknown';
|
|
172
|
-
type CardErrorCode =
|
|
173
|
-
| 'invalid_number'
|
|
174
|
-
| 'invalid_expiry_month'
|
|
175
|
-
| 'invalid_expiry_year'
|
|
176
|
-
| 'invalid_cvc'
|
|
177
|
-
| 'invalid_swipe_data'
|
|
178
|
-
| 'incorrect_number'
|
|
179
|
-
| 'expired_card'
|
|
180
|
-
| 'incorrect_cvc'
|
|
181
|
-
| 'incorrect_zip'
|
|
182
|
-
| 'card_declined'
|
|
183
|
-
| 'missing'
|
|
184
|
-
| 'processing_error';
|
|
185
172
|
type CardFundingType = 'credit' | 'debit' | 'prepaid' | 'unknown';
|
|
186
173
|
type CardNetwork =
|
|
187
174
|
| 'amex'
|
|
@@ -218,6 +205,7 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
218
205
|
| 'invalid_account'
|
|
219
206
|
| 'invalid_amount'
|
|
220
207
|
| 'invalid_cvc'
|
|
208
|
+
| 'invalid_expiry_month'
|
|
221
209
|
| 'invalid_expiry_year'
|
|
222
210
|
| 'invalid_number'
|
|
223
211
|
| 'invalid_pin'
|
|
@@ -241,6 +229,78 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
241
229
|
| 'transaction_not_allowed'
|
|
242
230
|
| 'try_again_later'
|
|
243
231
|
| 'withdrawal_count_limit_exceeded';
|
|
232
|
+
type ErrorCode =
|
|
233
|
+
| 'invalid_number'
|
|
234
|
+
| 'invalid_expiry_month'
|
|
235
|
+
| 'invalid_expiry_year'
|
|
236
|
+
| 'invalid_cvc'
|
|
237
|
+
| 'invalid_swipe_data'
|
|
238
|
+
| 'country_code_invalid'
|
|
239
|
+
| 'email_invalid'
|
|
240
|
+
| 'postal_code_invalid'
|
|
241
|
+
| 'invalid_characters'
|
|
242
|
+
| 'url_invalid'
|
|
243
|
+
| 'invalid_charge_amount'
|
|
244
|
+
| 'incorrect_number'
|
|
245
|
+
| 'incorrect_address'
|
|
246
|
+
| 'incorrect_cvc'
|
|
247
|
+
| 'incorrect_zip'
|
|
248
|
+
| 'card_declined'
|
|
249
|
+
| 'expired_card'
|
|
250
|
+
| 'missing'
|
|
251
|
+
| 'processing_error'
|
|
252
|
+
| 'account_closed'
|
|
253
|
+
| 'amount_too_small'
|
|
254
|
+
| 'amount_too_large'
|
|
255
|
+
| 'api_key_expired'
|
|
256
|
+
| 'authentication_required'
|
|
257
|
+
| 'capture_charge_authorization_expired'
|
|
258
|
+
| 'capture_unauthorized_payment'
|
|
259
|
+
| 'card_decline_rate_limit_exceeded'
|
|
260
|
+
| 'charge_already_captured'
|
|
261
|
+
| 'charge_already_refunded'
|
|
262
|
+
| 'charge_disputed'
|
|
263
|
+
| 'charge_exceeds_source_limit'
|
|
264
|
+
| 'charge_expired_for_capture'
|
|
265
|
+
| 'charge_invalid_parameter'
|
|
266
|
+
| 'charge_not_refundable'
|
|
267
|
+
| 'insufficient_funds'
|
|
268
|
+
| 'intent_invalid_state'
|
|
269
|
+
| 'livemode_mismatch'
|
|
270
|
+
| 'parameter_invalid_empty'
|
|
271
|
+
| 'parameter_invalid_integer'
|
|
272
|
+
| 'parameter_invalid_string_blank'
|
|
273
|
+
| 'parameter_invalid_string_empty'
|
|
274
|
+
| 'parameter_missing'
|
|
275
|
+
| 'parameter_unknown'
|
|
276
|
+
| 'parameters_exclusive'
|
|
277
|
+
| 'payment_intent_action_required'
|
|
278
|
+
| 'payment_intent_authentication_failure'
|
|
279
|
+
| 'payment_intent_incompatible_payment_method'
|
|
280
|
+
| 'payment_intent_payment_attempt_expired'
|
|
281
|
+
| 'payment_intent_payment_attempt_failed'
|
|
282
|
+
| 'payment_intent_unexpected_state'
|
|
283
|
+
| 'payment_intent_invalid_parameter'
|
|
284
|
+
| 'payment_method_billing_details_address_missing'
|
|
285
|
+
| 'payment_method_customer_decline'
|
|
286
|
+
| 'payment_method_currency_mismatch'
|
|
287
|
+
| 'payment_method_invalid_parameter'
|
|
288
|
+
| 'payment_method_invalid_parameter_testmode'
|
|
289
|
+
| 'payment_method_not_available'
|
|
290
|
+
| 'payment_method_provider_decline'
|
|
291
|
+
| 'payment_method_provider_timeout'
|
|
292
|
+
| 'payment_method_unactivated'
|
|
293
|
+
| 'payment_method_unexpected_state'
|
|
294
|
+
| 'payment_method_unsupported_type'
|
|
295
|
+
| 'platform_api_key_expired'
|
|
296
|
+
| 'refund_disputed_payment'
|
|
297
|
+
| 'testmode_charges_only'
|
|
298
|
+
| 'tls_version_unsupported'
|
|
299
|
+
| 'setup_attempt_failed'
|
|
300
|
+
| 'setup_intent_authentication_failure'
|
|
301
|
+
| 'setup_intent_invalid_parameter'
|
|
302
|
+
| 'setup_intent_setup_attempt_expired'
|
|
303
|
+
| 'setup_intent_unexpected_state';
|
|
244
304
|
type ErrorType =
|
|
245
305
|
| 'api_connection_error'
|
|
246
306
|
| 'api_error'
|
|
@@ -542,7 +602,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
542
602
|
readonly balance_transaction?: string;
|
|
543
603
|
readonly destination?: string;
|
|
544
604
|
readonly dispute?: string;
|
|
545
|
-
readonly failure_code?:
|
|
605
|
+
readonly failure_code?: io.flow.stripe.v0.enums.ErrorCode;
|
|
546
606
|
readonly failure_message?: string;
|
|
547
607
|
readonly on_behalf_of?: string;
|
|
548
608
|
readonly review?: string;
|
|
@@ -593,7 +653,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
593
653
|
readonly balance_transaction?: string;
|
|
594
654
|
readonly destination?: string;
|
|
595
655
|
readonly dispute?: string;
|
|
596
|
-
readonly failure_code?:
|
|
656
|
+
readonly failure_code?: io.flow.stripe.v0.enums.ErrorCode;
|
|
597
657
|
readonly failure_message?: string;
|
|
598
658
|
readonly on_behalf_of?: string;
|
|
599
659
|
readonly review?: string;
|
|
@@ -645,17 +705,6 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
645
705
|
readonly product_category?: string;
|
|
646
706
|
}
|
|
647
707
|
|
|
648
|
-
interface LastPaymentError {
|
|
649
|
-
readonly charge?: string;
|
|
650
|
-
readonly code?: string;
|
|
651
|
-
readonly decline_code?: io.flow.stripe.v0.enums.DeclineCode;
|
|
652
|
-
readonly doc_url?: string;
|
|
653
|
-
readonly message?: string;
|
|
654
|
-
readonly param?: string;
|
|
655
|
-
readonly payment_method: io.flow.stripe.v0.models.PaymentMethod;
|
|
656
|
-
readonly type: io.flow.stripe.v0.enums.ErrorType;
|
|
657
|
-
}
|
|
658
|
-
|
|
659
708
|
interface LegalEntity {
|
|
660
709
|
readonly additional_owners?: io.flow.stripe.v0.models.Owner[];
|
|
661
710
|
}
|
|
@@ -758,7 +807,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
758
807
|
readonly customer?: string;
|
|
759
808
|
readonly description?: string;
|
|
760
809
|
readonly invoice?: string;
|
|
761
|
-
readonly last_payment_error?: io.flow.stripe.v0.models.
|
|
810
|
+
readonly last_payment_error?: io.flow.stripe.v0.models.StripeError;
|
|
762
811
|
readonly livemode: boolean;
|
|
763
812
|
readonly metadata?: io.flow.stripe.v0.models.Metadata;
|
|
764
813
|
readonly next_action?: io.flow.stripe.v0.models.NextAction;
|
|
@@ -959,9 +1008,9 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
959
1008
|
}
|
|
960
1009
|
|
|
961
1010
|
interface PaymentOutcome {
|
|
962
|
-
readonly network_status
|
|
963
|
-
readonly risk_level
|
|
964
|
-
readonly seller_message
|
|
1011
|
+
readonly network_status?: io.flow.stripe.v0.enums.NetworkStatus;
|
|
1012
|
+
readonly risk_level?: string;
|
|
1013
|
+
readonly seller_message?: string;
|
|
965
1014
|
readonly reason?: string;
|
|
966
1015
|
readonly type?: io.flow.stripe.v0.enums.PaymentOutcomeType;
|
|
967
1016
|
}
|
|
@@ -1160,10 +1209,11 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
1160
1209
|
readonly type: io.flow.stripe.v0.enums.ErrorType;
|
|
1161
1210
|
readonly charge?: string;
|
|
1162
1211
|
readonly message?: string;
|
|
1163
|
-
readonly code?: io.flow.stripe.v0.enums.
|
|
1164
|
-
readonly decline_code?:
|
|
1212
|
+
readonly code?: io.flow.stripe.v0.enums.ErrorCode;
|
|
1213
|
+
readonly decline_code?: io.flow.stripe.v0.enums.DeclineCode;
|
|
1165
1214
|
readonly param?: string;
|
|
1166
1215
|
readonly payment_intent?: io.flow.stripe.v0.models.PaymentIntent;
|
|
1216
|
+
readonly payment_method?: io.flow.stripe.v0.models.PaymentMethod;
|
|
1167
1217
|
}
|
|
1168
1218
|
|
|
1169
1219
|
interface StripeEvent {
|
|
@@ -1196,9 +1246,12 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
1196
1246
|
interface ThreeDSecureCharge {
|
|
1197
1247
|
readonly authenticated?: boolean;
|
|
1198
1248
|
readonly authentication_flow?: io.flow.stripe.v0.enums.ThreeDsAuthenticationFlow;
|
|
1249
|
+
readonly electronic_commerce_indicator?: string;
|
|
1250
|
+
readonly exemption_indicator?: string;
|
|
1199
1251
|
readonly result?: io.flow.stripe.v0.enums.ThreeDsResult;
|
|
1200
1252
|
readonly result_reason?: io.flow.stripe.v0.enums.ThreeDsResultReason;
|
|
1201
1253
|
readonly succeeded?: boolean;
|
|
1254
|
+
readonly transaction_id?: string;
|
|
1202
1255
|
readonly version?: string;
|
|
1203
1256
|
}
|
|
1204
1257
|
|
|
@@ -13295,6 +13348,7 @@ declare namespace io.flow.v0.models {
|
|
|
13295
13348
|
|
|
13296
13349
|
interface TransactionMetadataManual {
|
|
13297
13350
|
readonly discriminator: 'manual';
|
|
13351
|
+
readonly description: string;
|
|
13298
13352
|
readonly original?: io.flow.v0.models.TransactionMetadataOriginalTransaction;
|
|
13299
13353
|
readonly url?: string;
|
|
13300
13354
|
}
|