bitwarden_api_api/models/
restart_subscription_request.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 RestartSubscriptionRequest {
17    #[serde(rename = "paymentMethod")]
18    pub payment_method: Box<models::MinimalTokenizedPaymentMethodRequest>,
19    #[serde(rename = "billingAddress")]
20    pub billing_address: Box<models::CheckoutBillingAddressRequest>,
21}
22
23impl RestartSubscriptionRequest {
24    pub fn new(
25        payment_method: models::MinimalTokenizedPaymentMethodRequest,
26        billing_address: models::CheckoutBillingAddressRequest,
27    ) -> RestartSubscriptionRequest {
28        RestartSubscriptionRequest {
29            payment_method: Box::new(payment_method),
30            billing_address: Box::new(billing_address),
31        }
32    }
33}