aboutsummaryrefslogtreecommitdiffstats
path: root/src/models/bulk_response_data_bulk.rs
blob: 399307872bd6bfd3193f63f42d4f28c333367ba6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * YNAB API Endpoints
 *
 * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body.  API Documentation is at https://api.youneedabudget.com
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 * Generated by: https://openapi-generator.tech
 */


#[allow(unused_imports)]
use serde_json::Value;


#[derive(Debug, Serialize, Deserialize)]
pub struct BulkResponseDataBulk {
    /// The list of Transaction ids that were created.
    #[serde(rename = "transaction_ids")]
    pub transaction_ids: Vec<String>,
    /// If any Transactions were not created because they had an import_id matching a transaction already on the same account, the specified import_id(s) will be included in this list.
    #[serde(rename = "duplicate_import_ids")]
    pub duplicate_import_ids: Vec<String>,
}

impl BulkResponseDataBulk {
    pub fn new(transaction_ids: Vec<String>, duplicate_import_ids: Vec<String>) -> BulkResponseDataBulk {
        BulkResponseDataBulk {
            transaction_ids: transaction_ids,
            duplicate_import_ids: duplicate_import_ids,
        }
    }
}