From bf82a8196f32c7c79a5060f60b269619886c34d2 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 19 Aug 2019 00:46:51 -0400 Subject: move ynab-api to its own repository --- .../src/models/save_transactions_response_data.rs | 46 ---------------------- 1 file changed, 46 deletions(-) delete mode 100644 ynab-api/src/models/save_transactions_response_data.rs (limited to 'ynab-api/src/models/save_transactions_response_data.rs') diff --git a/ynab-api/src/models/save_transactions_response_data.rs b/ynab-api/src/models/save_transactions_response_data.rs deleted file mode 100644 index 0086874..0000000 --- a/ynab-api/src/models/save_transactions_response_data.rs +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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 SaveTransactionsResponseData { - /// The transaction ids that were saved - #[serde(rename = "transaction_ids")] - pub transaction_ids: Vec, - #[serde(rename = "transaction", skip_serializing_if = "Option::is_none")] - pub transaction: Option<::models::TransactionDetail>, - /// If multiple transactions were specified, the transactions that were saved - #[serde(rename = "transactions", skip_serializing_if = "Option::is_none")] - pub transactions: Option>, - /// If multiple transactions were specified, a list of import_ids that were not created because of an existing import_id found on the same account - #[serde(rename = "duplicate_import_ids", skip_serializing_if = "Option::is_none")] - pub duplicate_import_ids: Option>, - /// The knowledge of the server - #[serde(rename = "server_knowledge")] - pub server_knowledge: i64, -} - -impl SaveTransactionsResponseData { - pub fn new(transaction_ids: Vec, server_knowledge: i64) -> SaveTransactionsResponseData { - SaveTransactionsResponseData { - transaction_ids: transaction_ids, - transaction: None, - transactions: None, - duplicate_import_ids: None, - server_knowledge: server_knowledge, - } - } -} - - -- cgit v1.2.3-54-g00ecf