bitwarden_api_api/models/
payment_response_model.rs

1/*
2 * Bitwarden Internal API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: latest
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use 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}