Skip to main content

p7m_billing/models/
customer_data.rs

1/*
2 * Billing Backend
3 *
4 * # API for managing billing of customers  The purpose of this API is to manage customers, articles, recurring billing, and payments.  The caller has to be authenticated with the system and provide a JWT token in the Authorization header of the HTTP request. When using the API you typically get this token by authenticating first with OAuth 2.0.  When you are trying this API using the Swagger interface, you need to click the `Authorize` button and then again the Authorize button in the pop-up that gets opened.
5 *
6 * The version of the OpenAPI document: 0.1.1
7 * Contact: tech@p7m.de
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct CustomerData {
16    #[serde(rename = "data")]
17    pub data: Vec<crate::models::Customer>,
18}
19
20impl CustomerData {
21    pub fn new(data: Vec<crate::models::Customer>) -> CustomerData {
22        CustomerData {
23            data,
24        }
25    }
26}
27
28