Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
gem install bundler
bundle install --jobs 4 --retry 3
- name: Run tests
run: bundle exec rspec
run: rspec
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
ynab (3.6.0)
ynab (3.7.0)
typhoeus (~> 1.0, >= 1.0.1)

GEM
Expand Down
4 changes: 2 additions & 2 deletions docs/ScheduledTransactionsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ All URIs are relative to *https://api.ynab.com/v1*
| Method | HTTP request | Description |
| ------ | ------------ | ----------- |
| [**create_scheduled_transaction**](ScheduledTransactionsApi.md#create_scheduled_transaction) | **POST** /budgets/{budget_id}/scheduled_transactions | Create a single scheduled transaction |
| [**delete_scheduled_transaction**](ScheduledTransactionsApi.md#delete_scheduled_transaction) | **DELETE** /budgets/{budget_id}/scheduled_transactions | Deletes an existing scheduled transaction |
| [**delete_scheduled_transaction**](ScheduledTransactionsApi.md#delete_scheduled_transaction) | **DELETE** /budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id} | Deletes an existing scheduled transaction |
| [**get_scheduled_transaction_by_id**](ScheduledTransactionsApi.md#get_scheduled_transaction_by_id) | **GET** /budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id} | Single scheduled transaction |
| [**get_scheduled_transactions**](ScheduledTransactionsApi.md#get_scheduled_transactions) | **GET** /budgets/{budget_id}/scheduled_transactions | List scheduled transactions |
| [**update_scheduled_transaction**](ScheduledTransactionsApi.md#update_scheduled_transaction) | **PUT** /budgets/{budget_id}/scheduled_transactions | Updates an existing scheduled transaction |
| [**update_scheduled_transaction**](ScheduledTransactionsApi.md#update_scheduled_transaction) | **PUT** /budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id} | Updates an existing scheduled transaction |


## create_scheduled_transaction
Expand Down
4 changes: 2 additions & 2 deletions lib/ynab/api/scheduled_transactions_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def delete_scheduled_transaction_with_http_info(budget_id, scheduled_transaction
fail ArgumentError, "Missing the required parameter 'scheduled_transaction_id' when calling ScheduledTransactionsApi.delete_scheduled_transaction"
end
# resource path
local_var_path = '/budgets/{budget_id}/scheduled_transactions'.sub('{' + 'budget_id' + '}', CGI.escape(budget_id.to_s)).sub('{' + 'scheduled_transaction_id' + '}', CGI.escape(scheduled_transaction_id.to_s))
local_var_path = '/budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id}'.sub('{' + 'budget_id' + '}', CGI.escape(budget_id.to_s)).sub('{' + 'scheduled_transaction_id' + '}', CGI.escape(scheduled_transaction_id.to_s))

# query parameters
query_params = opts[:query_params] || {}
Expand Down Expand Up @@ -330,7 +330,7 @@ def update_scheduled_transaction_with_http_info(budget_id, scheduled_transaction
fail ArgumentError, "Missing the required parameter 'put_scheduled_transaction_wrapper' when calling ScheduledTransactionsApi.update_scheduled_transaction"
end
# resource path
local_var_path = '/budgets/{budget_id}/scheduled_transactions'.sub('{' + 'budget_id' + '}', CGI.escape(budget_id.to_s)).sub('{' + 'scheduled_transaction_id' + '}', CGI.escape(scheduled_transaction_id.to_s))
local_var_path = '/budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id}'.sub('{' + 'budget_id' + '}', CGI.escape(budget_id.to_s)).sub('{' + 'scheduled_transaction_id' + '}', CGI.escape(scheduled_transaction_id.to_s))

# query parameters
query_params = opts[:query_params] || {}
Expand Down
70 changes: 35 additions & 35 deletions open_api_spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1580,12 +1580,13 @@ paths:
schema:
$ref: "#/components/schemas/ErrorResponse"
x-codegen-request-body-name: data
put:
/budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id}:
get:
tags:
- Scheduled Transactions
summary: Updates an existing scheduled transaction
description: Updates a single scheduled transaction
operationId: updateScheduledTransaction
summary: Single scheduled transaction
description: Returns a single scheduled transaction
operationId: getScheduledTransactionById
parameters:
- name: budget_id
in: path
Expand All @@ -1602,34 +1603,31 @@ paths:
required: true
schema:
type: string
requestBody:
description: The scheduled transaction to update
content:
"application/json":
schema:
$ref: "#/components/schemas/PutScheduledTransactionWrapper"
required: true
responses:
"200":
description: The scheduled transaction was successfully updated
description: The requested Scheduled Transaction
content:
application/json:
schema:
$ref: "#/components/schemas/ScheduledTransactionResponse"
"400":
description: >-
The request could not be understood due to malformed syntax or
validation error(s)
"404":
description: The scheduled transaction was not found
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
delete:
default:
description: An error occurred
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
put:
tags:
- Scheduled Transactions
summary: Deletes an existing scheduled transaction
description: Deletes a scheduled transaction
operationId: deleteScheduledTransaction
summary: Updates an existing scheduled transaction
description: Updates a single scheduled transaction
operationId: updateScheduledTransaction
parameters:
- name: budget_id
in: path
Expand All @@ -1646,26 +1644,34 @@ paths:
required: true
schema:
type: string
requestBody:
description: The scheduled transaction to update
content:
"application/json":
schema:
$ref: "#/components/schemas/PutScheduledTransactionWrapper"
required: true
responses:
"200":
description: The scheduled transaction was successfully deleted
description: The scheduled transaction was successfully updated
content:
application/json:
schema:
$ref: "#/components/schemas/ScheduledTransactionResponse"
"404":
description: The scheduled transaction was not found
"400":
description: >-
The request could not be understood due to malformed syntax or
validation error(s)
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id}:
get:
delete:
tags:
- Scheduled Transactions
summary: Single scheduled transaction
description: Returns a single scheduled transaction
operationId: getScheduledTransactionById
summary: Deletes an existing scheduled transaction
description: Deletes a scheduled transaction
operationId: deleteScheduledTransaction
parameters:
- name: budget_id
in: path
Expand All @@ -1684,7 +1690,7 @@ paths:
type: string
responses:
"200":
description: The requested Scheduled Transaction
description: The scheduled transaction was successfully deleted
content:
application/json:
schema:
Expand All @@ -1695,12 +1701,6 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
default:
description: An error occurred
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
components:
schemas:
ErrorResponse:
Expand Down