bitwarden_api_api/models/
billing_source.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 BillingSource {
17    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
18    pub r#type: Option<models::PaymentMethodType>,
19    #[serde(rename = "cardBrand", skip_serializing_if = "Option::is_none")]
20    pub card_brand: Option<String>,
21    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
22    pub description: Option<String>,
23    #[serde(rename = "needsVerification", skip_serializing_if = "Option::is_none")]
24    pub needs_verification: Option<bool>,
25}
26
27impl BillingSource {
28    pub fn new() -> BillingSource {
29        BillingSource {
30            r#type: None,
31            card_brand: None,
32            description: None,
33            needs_verification: None,
34        }
35    }
36}