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(
18        rename = "type",
19        alias = "R#type",
20        skip_serializing_if = "Option::is_none"
21    )]
22    pub r#type: Option<models::PaymentMethodType>,
23    #[serde(
24        rename = "cardBrand",
25        alias = "CardBrand",
26        skip_serializing_if = "Option::is_none"
27    )]
28    pub card_brand: Option<String>,
29    #[serde(
30        rename = "description",
31        alias = "Description",
32        skip_serializing_if = "Option::is_none"
33    )]
34    pub description: Option<String>,
35    #[serde(
36        rename = "needsVerification",
37        alias = "NeedsVerification",
38        skip_serializing_if = "Option::is_none"
39    )]
40    pub needs_verification: Option<bool>,
41}
42
43impl BillingSource {
44    pub fn new() -> BillingSource {
45        BillingSource {
46            r#type: None,
47            card_brand: None,
48            description: None,
49            needs_verification: None,
50        }
51    }
52}