Skip to content

Commit d51f67e

Browse files
committed
Generate from server version 1.74.0
-New PUT and DELETE (update and delete) endpoints for scheduled_transactions. -payee_name and category_name fields have been added to subtransactions objects in scheduled transaction responses. -The goal_target amount for a category can now be updated.
1 parent 731cbfc commit d51f67e

22 files changed

+564
-18
lines changed

.gemini/config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
have_fun: false
2+
code_review:
3+
disable: true

.openapi-generator/FILES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ docs/PayeesResponseData.md
6464
docs/PostAccountWrapper.md
6565
docs/PostScheduledTransactionWrapper.md
6666
docs/PostTransactionsWrapper.md
67+
docs/PutScheduledTransactionWrapper.md
6768
docs/PutTransactionWrapper.md
6869
docs/SaveAccount.md
6970
docs/SaveCategory.md
@@ -174,6 +175,7 @@ lib/ynab/models/payees_response_data.rb
174175
lib/ynab/models/post_account_wrapper.rb
175176
lib/ynab/models/post_scheduled_transaction_wrapper.rb
176177
lib/ynab/models/post_transactions_wrapper.rb
178+
lib/ynab/models/put_scheduled_transaction_wrapper.rb
177179
lib/ynab/models/put_transaction_wrapper.rb
178180
lib/ynab/models/save_account.rb
179181
lib/ynab/models/save_category.rb

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.7.0
1+
7.12.0

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ruby 3.3.1
1+
ruby 3.4.1

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
ynab (3.5.0)
4+
ynab (3.6.0)
55
typhoeus (~> 1.0, >= 1.0.1)
66

77
GEM
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# YNAB::PutScheduledTransactionWrapper
2+
3+
## Properties
4+
5+
| Name | Type | Description | Notes |
6+
| ---- | ---- | ----------- | ----- |
7+
| **scheduled_transaction** | [**SaveScheduledTransaction**](SaveScheduledTransaction.md) | | |
8+

docs/SaveCategory.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
| **name** | **String** | | [optional] |
88
| **note** | **String** | | [optional] |
99
| **category_group_id** | **String** | | [optional] |
10+
| **goal_target** | **Integer** | The goal target amount in milliunits format. This amount can only be changed if the category already has a configured goal (goal_type != null). | [optional] |
1011

docs/ScheduledSubTransaction.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
| **amount** | **Integer** | The scheduled subtransaction amount in milliunits format | |
1010
| **memo** | **String** | | [optional] |
1111
| **payee_id** | **String** | | [optional] |
12+
| **payee_name** | **String** | | [optional] |
1213
| **category_id** | **String** | | [optional] |
14+
| **category_name** | **String** | | [optional] |
1315
| **transfer_account_id** | **String** | If a transfer, the account_id which the scheduled subtransaction transfers to | [optional] |
1416
| **deleted** | **Boolean** | Whether or not the scheduled subtransaction has been deleted. Deleted scheduled subtransactions will only be included in delta requests. | |
1517

docs/ScheduledTransactionsApi.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ All URIs are relative to *https://api.ynab.com/v1*
55
| Method | HTTP request | Description |
66
| ------ | ------------ | ----------- |
77
| [**create_scheduled_transaction**](ScheduledTransactionsApi.md#create_scheduled_transaction) | **POST** /budgets/{budget_id}/scheduled_transactions | Create a single scheduled transaction |
8+
| [**delete_scheduled_transaction**](ScheduledTransactionsApi.md#delete_scheduled_transaction) | **DELETE** /budgets/{budget_id}/scheduled_transactions | Deletes an existing scheduled transaction |
89
| [**get_scheduled_transaction_by_id**](ScheduledTransactionsApi.md#get_scheduled_transaction_by_id) | **GET** /budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id} | Single scheduled transaction |
910
| [**get_scheduled_transactions**](ScheduledTransactionsApi.md#get_scheduled_transactions) | **GET** /budgets/{budget_id}/scheduled_transactions | List scheduled transactions |
11+
| [**update_scheduled_transaction**](ScheduledTransactionsApi.md#update_scheduled_transaction) | **PUT** /budgets/{budget_id}/scheduled_transactions | Updates an existing scheduled transaction |
1012

1113

1214
## create_scheduled_transaction
@@ -29,6 +31,26 @@ Creates a single scheduled transaction (a transaction with a future date).
2931
[**ScheduledTransactionResponse**](ScheduledTransactionResponse.md)
3032

3133

34+
## delete_scheduled_transaction
35+
36+
> <ScheduledTransactionResponse> delete_scheduled_transaction(budget_id, scheduled_transaction_id)
37+
38+
Deletes an existing scheduled transaction
39+
40+
Deletes a scheduled transaction
41+
42+
### Parameters
43+
44+
| Name | Type | Description | Notes |
45+
| ---- | ---- | ----------- | ----- |
46+
| **budget_id** | **String** | The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). | |
47+
| **scheduled_transaction_id** | **String** | The id of the scheduled transaction | |
48+
49+
### Return type
50+
51+
[**ScheduledTransactionResponse**](ScheduledTransactionResponse.md)
52+
53+
3254
## get_scheduled_transaction_by_id
3355

3456
> <ScheduledTransactionResponse> get_scheduled_transaction_by_id(budget_id, scheduled_transaction_id)
@@ -68,3 +90,24 @@ Returns all scheduled transactions
6890

6991
[**ScheduledTransactionsResponse**](ScheduledTransactionsResponse.md)
7092

93+
94+
## update_scheduled_transaction
95+
96+
> <ScheduledTransactionResponse> update_scheduled_transaction(budget_id, scheduled_transaction_id, put_scheduled_transaction_wrapper)
97+
98+
Updates an existing scheduled transaction
99+
100+
Updates a single scheduled transaction
101+
102+
### Parameters
103+
104+
| Name | Type | Description | Notes |
105+
| ---- | ---- | ----------- | ----- |
106+
| **budget_id** | **String** | The id of the budget. \&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). | |
107+
| **scheduled_transaction_id** | **String** | The id of the scheduled transaction | |
108+
| **put_scheduled_transaction_wrapper** | [**PutScheduledTransactionWrapper**](PutScheduledTransactionWrapper.md) | The scheduled transaction to update | |
109+
110+
### Return type
111+
112+
[**ScheduledTransactionResponse**](ScheduledTransactionResponse.md)
113+

lib/ynab.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
require 'ynab/models/post_account_wrapper'
7373
require 'ynab/models/post_scheduled_transaction_wrapper'
7474
require 'ynab/models/post_transactions_wrapper'
75+
require 'ynab/models/put_scheduled_transaction_wrapper'
7576
require 'ynab/models/put_transaction_wrapper'
7677
require 'ynab/models/save_account'
7778
require 'ynab/models/save_category'

0 commit comments

Comments
 (0)