aboutsummaryrefslogtreecommitdiffstats
path: root/ynab-api/src/models/sub_transaction.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-08-19 00:46:51 -0400
committerJesse Luehrs <doy@tozt.net>2019-08-19 00:46:51 -0400
commitbf82a8196f32c7c79a5060f60b269619886c34d2 (patch)
treeed8e58db2aaadb47c0d6f086b5371e1eb5be70a4 /ynab-api/src/models/sub_transaction.rs
parentd8e45ab4c875745531000253faa2003b2214d289 (diff)
downloadynab-reimbursements-bf82a8196f32c7c79a5060f60b269619886c34d2.tar.gz
ynab-reimbursements-bf82a8196f32c7c79a5060f60b269619886c34d2.zip
move ynab-api to its own repository
Diffstat (limited to 'ynab-api/src/models/sub_transaction.rs')
-rw-r--r--ynab-api/src/models/sub_transaction.rs54
1 files changed, 0 insertions, 54 deletions
diff --git a/ynab-api/src/models/sub_transaction.rs b/ynab-api/src/models/sub_transaction.rs
deleted file mode 100644
index 633ae38..0000000
--- a/ynab-api/src/models/sub_transaction.rs
+++ /dev/null
@@ -1,54 +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 SubTransaction {
- #[serde(rename = "id")]
- pub id: String,
- #[serde(rename = "transaction_id")]
- pub transaction_id: String,
- /// The subtransaction amount in milliunits format
- #[serde(rename = "amount")]
- pub amount: i64,
- #[serde(rename = "memo", skip_serializing_if = "Option::is_none")]
- pub memo: Option<String>,
- #[serde(rename = "payee_id", skip_serializing_if = "Option::is_none")]
- pub payee_id: Option<String>,
- #[serde(rename = "category_id", skip_serializing_if = "Option::is_none")]
- pub category_id: Option<String>,
- /// If a transfer, the account_id which the subtransaction transfers to
- #[serde(rename = "transfer_account_id", skip_serializing_if = "Option::is_none")]
- pub transfer_account_id: Option<String>,
- /// Whether or not the subtransaction has been deleted. Deleted subtransactions will only be included in delta requests.
- #[serde(rename = "deleted")]
- pub deleted: bool,
-}
-
-impl SubTransaction {
- pub fn new(id: String, transaction_id: String, amount: i64, deleted: bool) -> SubTransaction {
- SubTransaction {
- id: id,
- transaction_id: transaction_id,
- amount: amount,
- memo: None,
- payee_id: None,
- category_id: None,
- transfer_account_id: None,
- deleted: deleted,
- }
- }
-}
-
-