import Condition from './condition'; import Mdr from './mdr'; export interface SplitRuleParams { delay: number; payment_method: string; card_brand: string; installments: number; amount: number; recipient_id: string; conditions: Condition[]; psp_fees: Mdr[]; psp_anticipation: number; ton_recipient_id: string; capture_method?: string; } export interface SplitRule { recipient_id: string; amount: number; liable: boolean; charge_processing_fee: boolean; } export interface SplitRuleResponse { sharers: { ton: { anticipation: number; anticipation_rate: number; mdr: number; net_mdr_rate: number; net_anticipation_rate: number; net_full_rate: number; payment_fixed_fee?: number; payment_spread_fee?: number; received_amount: number; received_percentage: number; }; psp: { anticipation: number; anticipation_rate: number; full_rate: number; mdr: number; payment_fixed_fee?: number; payment_spread_fee?: number; received_amount: number; received_percentage: number; }; client: { fee: number; fee_amount: number; received_amount: number; received_percentage: number; payment_fixed_fee?: number; payment_spread_fee?: number; }; }; split_rules: SplitRule[]; }