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