@flowio/types 11.24.96 → 11.24.97

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.
@@ -2668,7 +2668,7 @@ declare namespace io.flow.stripe.v0.models {
2668
2668
  readonly currency: string;
2669
2669
  readonly evidence: any;
2670
2670
  readonly metadata: Record<string, string>;
2671
- readonly payment_intent: string;
2671
+ readonly payment_intent?: string;
2672
2672
  readonly reason: io.flow.stripe.v0.enums.DisputeReason;
2673
2673
  readonly status: io.flow.stripe.v0.enums.DisputeStatus;
2674
2674
  readonly object: string;
@@ -2693,7 +2693,7 @@ declare namespace io.flow.stripe.v0.models {
2693
2693
  }
2694
2694
  interface DisputePaymentMethodDetailsCard {
2695
2695
  readonly brand: string;
2696
- readonly case_type: io.flow.stripe.v0.enums.DisputePaymentMethodDetailsCardCaseType;
2696
+ readonly case_type?: io.flow.stripe.v0.enums.DisputePaymentMethodDetailsCardCaseType;
2697
2697
  readonly network_reason_code?: string;
2698
2698
  }
2699
2699
  interface DisputePaymentMethodDetailsKlarna {
@@ -7266,6 +7266,8 @@ declare namespace io.flow.billing.reporting.v0.models {
7266
7266
  readonly combined_shipment?: boolean;
7267
7267
  readonly order_cancelled?: boolean;
7268
7268
  readonly lvg?: boolean;
7269
+ readonly tax_inclusive?: boolean;
7270
+ readonly duty_inclusive?: boolean;
7269
7271
  }
7270
7272
  interface ReportingFx {
7271
7273
  readonly shipping: io.flow.billing.reporting.v0.models.ReportingUsd;
@@ -14116,7 +14118,7 @@ declare namespace io.flow.internal.v0.enums {
14116
14118
  type BankPaymentPromiseCompletedMethod = 'credit' | 'time';
14117
14119
  type BankPaymentStatusCode = 'scheduled' | 'sent' | 'failed';
14118
14120
  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';
14119
- type BillingMetricKey = 'adjustment_transactions_count' | 'adjustment_transactions_total' | 'capture_transactions_count' | 'capture_transactions_reconcile_payments_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_succeeded_then_failed_count' | 'capture_transactions_succeeded_then_failed_total' | 'capture_transactions_succeeded_then_failed_same_day_count' | 'capture_transactions_succeeded_then_failed_same_day_total' | 'capture_queued_count' | 'capture_transactions_total' | 'carrier_charge_transactions_count' | 'carrier_charge_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_to_labels_ratio' | '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_count_with_revenue_share' | 'billable_label_transactions_count_without_revenue_share' | '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_reconcile_payments_count' | 'refund_transactions_ignored_fraud_count' | 'refund_transactions_ignored_fully_refunded_count' | 'refund_transactions_ignored_other_count' | 'refund_transactions_ignored_previously_processed_count' | 'refund_queued_count' | 'refund_transactions_total' | 'refund_transactions_succeeded_then_failed_count' | 'refund_transactions_succeeded_then_failed_total' | 'refund_transactions_succeeded_then_failed_same_day_count' | 'refund_transactions_succeeded_then_failed_same_day_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_to_labels_ratio' | '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' | 'task_snooze_count' | 'task_snooze_ending_in_48_hours_count' | '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' | 'percentage_bank_account_inserts' | 'percentage_bank_account_updates' | 'percentage_bank_account_unique_updates' | 'percentage_bank_account_deletes' | 'negative_balance_number_accounts' | 'negative_balance_number_accounts_with_order_in_past_30_days' | 'negative_balance_number_accounts_without_order_in_past_30_days' | 'negative_balance_total' | 'negative_balance_total_with_order_in_past_30_days' | 'negative_balance_total_without_order_in_past_30_days' | 'negative_balance_single_account_max' | 'negative_balance_fee_total' | 'accounts_with_payment_holds_count' | 'accounts_with_payment_holds_pending_payment_promise_count' | 'accounts_with_payment_holds_pending_payment_promise_total' | 'accounts_with_final_statements_count' | 'accounts_with_final_statements_pending_transaction_count' | 'accounts_with_final_statements_pending_transaction_total' | 'edited_order_tax_amount_exceeding_transaction' | 'edited_order_duty_amount_exceeding_transaction';
14121
+ type BillingMetricKey = 'adjustment_transactions_count' | 'adjustment_transactions_total' | 'capture_transactions_count' | 'capture_transactions_reconcile_payments_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_succeeded_then_failed_count' | 'capture_transactions_succeeded_then_failed_total' | 'capture_transactions_succeeded_then_failed_same_day_count' | 'capture_transactions_succeeded_then_failed_same_day_total' | 'capture_queued_count' | 'capture_transactions_total' | 'carrier_charge_transactions_count' | 'carrier_charge_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_to_labels_ratio' | '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_count_with_revenue_share' | 'billable_label_transactions_count_without_revenue_share' | '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_reconcile_payments_count' | 'refund_transactions_ignored_fraud_count' | 'refund_transactions_ignored_fully_refunded_count' | 'refund_transactions_ignored_other_count' | 'refund_transactions_ignored_previously_processed_count' | 'refund_queued_count' | 'refund_transactions_total' | 'refund_transactions_succeeded_then_failed_count' | 'refund_transactions_succeeded_then_failed_total' | 'refund_transactions_succeeded_then_failed_same_day_count' | 'refund_transactions_succeeded_then_failed_same_day_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_to_labels_ratio' | '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' | 'task_snooze_count' | 'task_snooze_ending_in_48_hours_count' | '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' | 'percentage_bank_account_inserts' | 'percentage_bank_account_updates' | 'percentage_bank_account_unique_updates' | 'percentage_bank_account_deletes' | 'negative_balance_number_accounts' | 'negative_balance_number_accounts_with_order_in_past_30_days' | 'negative_balance_number_accounts_without_order_in_past_30_days' | 'negative_balance_number_active_accounts_with_balance_over_1000' | 'negative_balance_total' | 'negative_balance_total_with_order_in_past_30_days' | 'negative_balance_total_without_order_in_past_30_days' | 'negative_balance_single_account_max' | 'negative_balance_single_active_account_max' | 'negative_balance_fee_total' | 'accounts_with_payment_holds_count' | 'accounts_with_payment_holds_pending_payment_promise_count' | 'accounts_with_payment_holds_pending_payment_promise_total' | 'accounts_with_final_statements_count' | 'accounts_with_final_statements_pending_transaction_count' | 'accounts_with_final_statements_pending_transaction_total' | 'edited_order_tax_amount_exceeding_transaction' | 'edited_order_duty_amount_exceeding_transaction';
14120
14122
  type BillingStatementAttachmentKey = 'invoice' | 'statement' | 'consumer_invoice' | 'credit_memo' | 'channel_billed' | 'transactions' | 'virtual_card' | 'tax_remittance' | 'manual' | 'orders' | 'label' | 'order_service' | 'tax' | 'duty' | 'trueup' | 'carrier_charge' | 'all';
14121
14123
  type BillingTransactionStatus = 'pending_proof' | 'posted';
14122
14124
  type BillingTransactionType = 'manual' | 'subscription' | 'invoice' | 'transfer' | 'adjustment' | 'reversal' | 'capture' | 'refund' | 'virtual_card_capture' | 'virtual_card_refund' | 'tax_remittance' | 'fully_subsidized_order' | 'credit_payment' | 'dispute' | 'channel' | 'label' | 'order' | 'channel_billed' | 'tax' | 'duty' | 'trueup' | 'carrier_charge';
package/dist/api.d.ts CHANGED
@@ -140,9 +140,14 @@ declare namespace io.flow.stripe.v0.enums {
140
140
  type CodeVerificationStatus = 'pending' | 'succeeded' | 'failed';
141
141
  type ConfirmationMethod = 'automatic' | 'manual';
142
142
  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' | 'previously_declined_do_not_retry' | 'highest_risk_level' | 'requested_block_on_incorrect_cvc';
143
+ type DisputeEventType = 'charge.dispute.closed' | 'charge.dispute.created' | 'charge.dispute.funds_reinstated' | 'charge.dispute.funds_withdrawn' | 'charge.dispute.updated';
144
+ type DisputePaymentMethodDetailsCardCaseType = 'chargeback' | 'inquiry';
145
+ type DisputePaymentMethodDetailsType = 'card' | 'klarna' | 'paypal';
146
+ type DisputeReason = 'bank_cannot_process' | 'check_returned' | 'credit_not_processed' | 'customer_initiated' | 'debit_not_authorized' | 'duplicate' | 'fraudulent' | 'general' | 'incorrect_account_details' | 'insufficient_funds' | 'product_not_received' | 'product_unacceptable' | 'subscription_canceled' | 'unrecognized';
147
+ type DisputeStatus = 'warning_needs_response' | 'warning_under_review' | 'warning_closed' | 'needs_response' | 'under_review' | 'won' | 'lost';
143
148
  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';
144
149
  type ErrorType = 'api_connection_error' | 'api_error' | 'authentication_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error' | 'rate_limit_error' | 'validation_error';
145
- 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';
150
+ type EventType = 'charge.captured' | 'charge.failed' | 'charge.pending' | 'charge.refunded' | 'charge.expired' | 'charge.succeeded' | 'charge.updated' | 'charge.refund.updated' | 'charge.dispute.closed' | 'charge.dispute.created' | 'charge.dispute.funds_reinstated' | 'charge.dispute.funds_withdrawn' | 'charge.dispute.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';
146
151
  type ExtendedAuthorizationStatus = 'enabled' | 'disabled';
147
152
  type FeatureAvailability = 'available' | 'unavailable';
148
153
  type KlarnaPaymentMethodCategoryType = 'direct_bank_transfer' | 'direct_debit' | 'pay_later' | 'pay_now' | 'pay_over_time';
@@ -373,6 +378,48 @@ declare namespace io.flow.stripe.v0.models {
373
378
  readonly source: string;
374
379
  readonly description?: string;
375
380
  }
381
+ interface Dispute {
382
+ readonly id: string;
383
+ readonly amount: number;
384
+ readonly charge: string;
385
+ readonly currency: string;
386
+ readonly evidence: any;
387
+ readonly metadata: Record<string, string>;
388
+ readonly payment_intent?: string;
389
+ readonly reason: io.flow.stripe.v0.enums.DisputeReason;
390
+ readonly status: io.flow.stripe.v0.enums.DisputeStatus;
391
+ readonly object: string;
392
+ readonly balance_transactions: any[];
393
+ readonly created: number;
394
+ readonly evidence_details: io.flow.stripe.v0.models.DisputeEvidenceDetails;
395
+ readonly is_charge_refundable: boolean;
396
+ readonly livemode: boolean;
397
+ readonly payment_method_details?: io.flow.stripe.v0.models.DisputePaymentMethodDetails;
398
+ }
399
+ interface DisputeEvidenceDetails {
400
+ readonly due_by?: number;
401
+ readonly has_evidence: boolean;
402
+ readonly past_due: boolean;
403
+ readonly submission_count: number;
404
+ }
405
+ interface DisputePaymentMethodDetails {
406
+ readonly card?: io.flow.stripe.v0.models.DisputePaymentMethodDetailsCard;
407
+ readonly klarna?: io.flow.stripe.v0.models.DisputePaymentMethodDetailsKlarna;
408
+ readonly paypal?: io.flow.stripe.v0.models.DisputePaymentMethodDetailsPaypal;
409
+ readonly type: io.flow.stripe.v0.enums.DisputePaymentMethodDetailsType;
410
+ }
411
+ interface DisputePaymentMethodDetailsCard {
412
+ readonly brand: string;
413
+ readonly case_type?: io.flow.stripe.v0.enums.DisputePaymentMethodDetailsCardCaseType;
414
+ readonly network_reason_code?: string;
415
+ }
416
+ interface DisputePaymentMethodDetailsKlarna {
417
+ readonly reason_code?: string;
418
+ }
419
+ interface DisputePaymentMethodDetailsPaypal {
420
+ readonly case_id?: string;
421
+ readonly reason_code?: string;
422
+ }
376
423
  interface Error {
377
424
  readonly error: io.flow.stripe.v0.models.StripeError;
378
425
  }
@@ -978,6 +1025,22 @@ declare namespace io.flow.stripe.v0.models {
978
1025
  readonly three_ds_optimizations?: string;
979
1026
  readonly directory_server_encryption?: any;
980
1027
  }
1028
+ interface StripeDisputeEvent {
1029
+ readonly id: string;
1030
+ readonly api_version?: string;
1031
+ readonly data: io.flow.stripe.v0.models.StripeDisputeEventData;
1032
+ readonly request?: any;
1033
+ readonly type: io.flow.stripe.v0.enums.DisputeEventType;
1034
+ readonly object: string;
1035
+ readonly account?: string;
1036
+ readonly created: number;
1037
+ readonly livemode: boolean;
1038
+ readonly pending_webhooks: number;
1039
+ }
1040
+ interface StripeDisputeEventData {
1041
+ readonly object: io.flow.stripe.v0.models.Dispute;
1042
+ readonly previous_attributes?: any;
1043
+ }
981
1044
  interface StripeError {
982
1045
  readonly type: io.flow.stripe.v0.enums.ErrorType;
983
1046
  readonly charge?: string;
@@ -2080,7 +2143,7 @@ declare namespace io.flow.v0.enums {
2080
2143
  type MerchantRejectedReason = 'merchant_ubo_is_pep' | 'merchant_catalog_is_unsupportable' | 'merchant_failed_kyb_review';
2081
2144
  type Method = 'post';
2082
2145
  type OnboardingApplicationStatus = 'to_do' | 'in_progress' | 'on_hold' | 'rejected' | 'accepted';
2083
- type OnboardingBlockedReason = 'street_address_is_blank_3pl' | 'street_address_is_po_box_3pl' | 'business_street_address_is_blank' | 'business_street_address_is_po_box' | 'exception_merchant' | 'application_missing';
2146
+ type OnboardingBlockedReason = 'street_address_is_blank_3pl' | 'street_address_is_po_box_3pl' | 'business_street_address_is_blank' | 'business_street_address_is_po_box' | 'exception_merchant' | 'application_missing' | 'missing_logistics_contact_info';
2084
2147
  type OnboardingTradeSector = 'accessories' | 'animals_and_pet_supplies' | 'apparel' | 'apparel_and_accessories' | 'arts_and_entertainment' | 'baby_and_toddler' | 'business_and_industrial' | 'cameras_and_optics' | 'electronics' | 'food_beverages_and_tobacco' | 'furniture' | 'gift_cards' | 'hardware' | 'health_and_beauty' | 'home_and_garden' | 'jewelry' | 'luggage_and_bags' | 'mature' | 'media' | 'office_supplies' | 'paper_and_art' | 'religious_and_ceremonial' | 'software' | 'sporting_goods' | 'sports_and_fitness' | 'toys_and_games' | 'toys_hobbies_gifts' | 'vehicles_and_parts' | 'other';
2085
2148
  type OptinResponseType = 'not_shown' | 'opted_in' | 'opted_out';
2086
2149
  type OrderChangeSource = 'consumer' | 'retailer' | 'fulfillment' | 'flow' | 'carrier';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/types",
3
- "version": "11.24.96",
3
+ "version": "11.24.97",
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": "25d6ba675365a3fb318abcc4bc935dd549089238"
28
+ "gitHead": "e2172791ebb0708545e2d68100656b52120f50e4"
29
29
  }
@@ -3730,7 +3730,7 @@ declare namespace io.flow.stripe.v0.models {
3730
3730
  readonly currency: string;
3731
3731
  readonly evidence: any /*object*/;
3732
3732
  readonly metadata: Record<string, string>;
3733
- readonly payment_intent: string;
3733
+ readonly payment_intent?: string;
3734
3734
  readonly reason: io.flow.stripe.v0.enums.DisputeReason;
3735
3735
  readonly status: io.flow.stripe.v0.enums.DisputeStatus;
3736
3736
  readonly object: string;
@@ -3758,7 +3758,7 @@ declare namespace io.flow.stripe.v0.models {
3758
3758
 
3759
3759
  interface DisputePaymentMethodDetailsCard {
3760
3760
  readonly brand: string;
3761
- readonly case_type: io.flow.stripe.v0.enums.DisputePaymentMethodDetailsCardCaseType;
3761
+ readonly case_type?: io.flow.stripe.v0.enums.DisputePaymentMethodDetailsCardCaseType;
3762
3762
  readonly network_reason_code?: string;
3763
3763
  }
3764
3764
 
@@ -9933,6 +9933,8 @@ declare namespace io.flow.billing.reporting.v0.models {
9933
9933
  readonly combined_shipment?: boolean;
9934
9934
  readonly order_cancelled?: boolean;
9935
9935
  readonly lvg?: boolean;
9936
+ readonly tax_inclusive?: boolean;
9937
+ readonly duty_inclusive?: boolean;
9936
9938
  }
9937
9939
 
9938
9940
  interface ReportingFx {
@@ -18717,10 +18719,12 @@ declare namespace io.flow.internal.v0.enums {
18717
18719
  | 'negative_balance_number_accounts'
18718
18720
  | 'negative_balance_number_accounts_with_order_in_past_30_days'
18719
18721
  | 'negative_balance_number_accounts_without_order_in_past_30_days'
18722
+ | 'negative_balance_number_active_accounts_with_balance_over_1000'
18720
18723
  | 'negative_balance_total'
18721
18724
  | 'negative_balance_total_with_order_in_past_30_days'
18722
18725
  | 'negative_balance_total_without_order_in_past_30_days'
18723
18726
  | 'negative_balance_single_account_max'
18727
+ | 'negative_balance_single_active_account_max'
18724
18728
  | 'negative_balance_fee_total'
18725
18729
  | 'accounts_with_payment_holds_count'
18726
18730
  | 'accounts_with_payment_holds_pending_payment_promise_count'
package/src/api.ts CHANGED
@@ -267,6 +267,37 @@ declare namespace io.flow.stripe.v0.enums {
267
267
  | 'previously_declined_do_not_retry'
268
268
  | 'highest_risk_level'
269
269
  | 'requested_block_on_incorrect_cvc';
270
+ type DisputeEventType =
271
+ | 'charge.dispute.closed'
272
+ | 'charge.dispute.created'
273
+ | 'charge.dispute.funds_reinstated'
274
+ | 'charge.dispute.funds_withdrawn'
275
+ | 'charge.dispute.updated';
276
+ type DisputePaymentMethodDetailsCardCaseType = 'chargeback' | 'inquiry';
277
+ type DisputePaymentMethodDetailsType = 'card' | 'klarna' | 'paypal';
278
+ type DisputeReason =
279
+ | 'bank_cannot_process'
280
+ | 'check_returned'
281
+ | 'credit_not_processed'
282
+ | 'customer_initiated'
283
+ | 'debit_not_authorized'
284
+ | 'duplicate'
285
+ | 'fraudulent'
286
+ | 'general'
287
+ | 'incorrect_account_details'
288
+ | 'insufficient_funds'
289
+ | 'product_not_received'
290
+ | 'product_unacceptable'
291
+ | 'subscription_canceled'
292
+ | 'unrecognized';
293
+ type DisputeStatus =
294
+ | 'warning_needs_response'
295
+ | 'warning_under_review'
296
+ | 'warning_closed'
297
+ | 'needs_response'
298
+ | 'under_review'
299
+ | 'won'
300
+ | 'lost';
270
301
  type ErrorCode =
271
302
  | 'invalid_number'
272
303
  | 'invalid_expiry_month'
@@ -357,6 +388,11 @@ declare namespace io.flow.stripe.v0.enums {
357
388
  | 'charge.succeeded'
358
389
  | 'charge.updated'
359
390
  | 'charge.refund.updated'
391
+ | 'charge.dispute.closed'
392
+ | 'charge.dispute.created'
393
+ | 'charge.dispute.funds_reinstated'
394
+ | 'charge.dispute.funds_withdrawn'
395
+ | 'charge.dispute.updated'
360
396
  | 'payment_intent.created'
361
397
  | 'payment_intent.amount_capturable_updated'
362
398
  | 'payment_intent.payment_failed'
@@ -737,6 +773,54 @@ declare namespace io.flow.stripe.v0.models {
737
773
  readonly description?: string;
738
774
  }
739
775
 
776
+ interface Dispute {
777
+ readonly id: string;
778
+ readonly amount: number;
779
+ readonly charge: string;
780
+ readonly currency: string;
781
+ readonly evidence: any /*object*/;
782
+ readonly metadata: Record<string, string>;
783
+ readonly payment_intent?: string;
784
+ readonly reason: io.flow.stripe.v0.enums.DisputeReason;
785
+ readonly status: io.flow.stripe.v0.enums.DisputeStatus;
786
+ readonly object: string;
787
+ readonly balance_transactions: any /*object*/[];
788
+ readonly created: number;
789
+ readonly evidence_details: io.flow.stripe.v0.models.DisputeEvidenceDetails;
790
+ readonly is_charge_refundable: boolean;
791
+ readonly livemode: boolean;
792
+ readonly payment_method_details?: io.flow.stripe.v0.models.DisputePaymentMethodDetails;
793
+ }
794
+
795
+ interface DisputeEvidenceDetails {
796
+ readonly due_by?: number;
797
+ readonly has_evidence: boolean;
798
+ readonly past_due: boolean;
799
+ readonly submission_count: number;
800
+ }
801
+
802
+ interface DisputePaymentMethodDetails {
803
+ readonly card?: io.flow.stripe.v0.models.DisputePaymentMethodDetailsCard;
804
+ readonly klarna?: io.flow.stripe.v0.models.DisputePaymentMethodDetailsKlarna;
805
+ readonly paypal?: io.flow.stripe.v0.models.DisputePaymentMethodDetailsPaypal;
806
+ readonly type: io.flow.stripe.v0.enums.DisputePaymentMethodDetailsType;
807
+ }
808
+
809
+ interface DisputePaymentMethodDetailsCard {
810
+ readonly brand: string;
811
+ readonly case_type?: io.flow.stripe.v0.enums.DisputePaymentMethodDetailsCardCaseType;
812
+ readonly network_reason_code?: string;
813
+ }
814
+
815
+ interface DisputePaymentMethodDetailsKlarna {
816
+ readonly reason_code?: string;
817
+ }
818
+
819
+ interface DisputePaymentMethodDetailsPaypal {
820
+ readonly case_id?: string;
821
+ readonly reason_code?: string;
822
+ }
823
+
740
824
  interface Error {
741
825
  readonly error: io.flow.stripe.v0.models.StripeError;
742
826
  }
@@ -1422,6 +1506,24 @@ declare namespace io.flow.stripe.v0.models {
1422
1506
  readonly directory_server_encryption?: any /*object*/;
1423
1507
  }
1424
1508
 
1509
+ interface StripeDisputeEvent {
1510
+ readonly id: string;
1511
+ readonly api_version?: string;
1512
+ readonly data: io.flow.stripe.v0.models.StripeDisputeEventData;
1513
+ readonly request?: any /*object*/;
1514
+ readonly type: io.flow.stripe.v0.enums.DisputeEventType;
1515
+ readonly object: string;
1516
+ readonly account?: string;
1517
+ readonly created: number;
1518
+ readonly livemode: boolean;
1519
+ readonly pending_webhooks: number;
1520
+ }
1521
+
1522
+ interface StripeDisputeEventData {
1523
+ readonly object: io.flow.stripe.v0.models.Dispute;
1524
+ readonly previous_attributes?: any /*object*/;
1525
+ }
1526
+
1425
1527
  interface StripeError {
1426
1528
  readonly type: io.flow.stripe.v0.enums.ErrorType;
1427
1529
  readonly charge?: string;
@@ -3252,7 +3354,8 @@ declare namespace io.flow.v0.enums {
3252
3354
  | 'business_street_address_is_blank'
3253
3355
  | 'business_street_address_is_po_box'
3254
3356
  | 'exception_merchant'
3255
- | 'application_missing';
3357
+ | 'application_missing'
3358
+ | 'missing_logistics_contact_info';
3256
3359
  type OnboardingTradeSector =
3257
3360
  | 'accessories'
3258
3361
  | 'animals_and_pet_supplies'