From a494b85f2ab08c98f57c59883c07bb92e2afd193 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 17 Aug 2019 01:18:47 -0400 Subject: add a separate model for update transactions unlike creating transactions, they require a transaction id --- ynab-api/src/models/update_transactions_wrapper.rs | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 ynab-api/src/models/update_transactions_wrapper.rs (limited to 'ynab-api/src/models/update_transactions_wrapper.rs') diff --git a/ynab-api/src/models/update_transactions_wrapper.rs b/ynab-api/src/models/update_transactions_wrapper.rs new file mode 100644 index 0000000..810d054 --- /dev/null +++ b/ynab-api/src/models/update_transactions_wrapper.rs @@ -0,0 +1,33 @@ +/* + * 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 UpdateTransactionsWrapper { + #[serde(rename = "transaction", skip_serializing_if = "Option::is_none")] + pub transaction: Option<::models::UpdateTransaction>, + #[serde(rename = "transactions", skip_serializing_if = "Option::is_none")] + pub transactions: Option>, +} + +impl UpdateTransactionsWrapper { + pub fn new() -> UpdateTransactionsWrapper { + UpdateTransactionsWrapper { + transaction: None, + transactions: None, + } + } +} + + -- cgit v1.2.3-54-g00ecf