obscuravpn_api/cmd/stripe/
top_up.rs1use crate::cmd::Cmd;
2use serde::{Deserialize, Serialize};
3
4const STRIPE_TOP_UP_PATH: &str = "stripe/top_up";
5
6#[derive(Debug, Serialize, Deserialize, Clone)]
7pub struct StripeTopUpInfo {
8 pub payment_intent_client_secret: String,
9}
10
11#[derive(Debug, Serialize, Deserialize, Clone)]
12pub struct CreateStripeTopUp {
13 pub months: u16,
14}
15
16impl Cmd for CreateStripeTopUp {
17 type Output = StripeTopUpInfo;
18
19 const METHOD: http::Method = http::Method::POST;
20 const PATH: &'static str = STRIPE_TOP_UP_PATH;
21}