bitwarden_api_api/models/
payment_response_model.rs1use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PaymentResponseModel {
17 #[serde(rename = "object", skip_serializing_if = "Option::is_none")]
18 pub object: Option<String>,
19 #[serde(rename = "userProfile", skip_serializing_if = "Option::is_none")]
20 pub user_profile: Option<Box<models::ProfileResponseModel>>,
21 #[serde(
22 rename = "paymentIntentClientSecret",
23 skip_serializing_if = "Option::is_none"
24 )]
25 pub payment_intent_client_secret: Option<String>,
26 #[serde(rename = "success", skip_serializing_if = "Option::is_none")]
27 pub success: Option<bool>,
28}
29
30impl PaymentResponseModel {
31 pub fn new() -> PaymentResponseModel {
32 PaymentResponseModel {
33 object: None,
34 user_profile: None,
35 payment_intent_client_secret: None,
36 success: None,
37 }
38 }
39}