use schemars::JsonSchema;
use serde::Deserialize;
#[derive(Debug, Deserialize, JsonSchema)]
pub struct SendPaymentInput {
#[schemars(description = "Payment request JSON string received from a provider's job feedback")]
pub payment_request: String,
#[schemars(description = "Expected recipient Solana address from the provider's capability card. Validates that the payment goes to the correct provider.")]
pub expected_recipient: String,
}
#[derive(Debug, Deserialize, JsonSchema)]
pub struct WithdrawInput {
#[schemars(description = "Amount in SOL to withdraw (e.g. \"0.5\", \"1.0\"). Use \"all\" to withdraw the entire balance minus transaction fee.")]
pub amount_sol: String,
#[schemars(description = "Set to true to confirm and execute the withdrawal. Omit or set to false to preview the withdrawal details first.")]
pub confirm: Option<bool>,
}