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
1 change: 0 additions & 1 deletion .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ pyproject.toml
requirements.txt
test-requirements.txt
test/__init__.py
test/test_put_scheduled_transaction_wrapper.py
tox.ini
ynab/__init__.py
ynab/api/__init__.py
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
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
2 changes: 1 addition & 1 deletion openapi-generator-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
packageName: ynab
packageVersion: 1.2.0
packageVersion: 1.3.0
packageDescription: Official Python client for the YNAB API. API documentation available at https://api.ynab.com.
licenseInfo:
name: Apache-2.0
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ynab"
version = "1.2.0"
version = "1.3.0"
description = "Official Python client for the YNAB API. API documentation available at https://api.ynab.com. Generated from server specification version 1.74.0"
authors = ["YNAB"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion ynab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
""" # noqa: E501


__version__ = "1.2.0"
__version__ = "1.3.0"

# import apis into sdk package
from ynab.api.accounts_api import AccountsApi
Expand Down
4 changes: 2 additions & 2 deletions ynab/api/scheduled_transactions_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ def _delete_scheduled_transaction_serialize(

return self.api_client.param_serialize(
method='DELETE',
resource_path='/budgets/{budget_id}/scheduled_transactions',
resource_path='/budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id}',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
Expand Down Expand Up @@ -1464,7 +1464,7 @@ def _update_scheduled_transaction_serialize(

return self.api_client.param_serialize(
method='PUT',
resource_path='/budgets/{budget_id}/scheduled_transactions',
resource_path='/budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id}',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
Expand Down
2 changes: 1 addition & 1 deletion ynab/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/1.2.0/python'
self.user_agent = 'OpenAPI-Generator/1.3.0/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
2 changes: 1 addition & 1 deletion ynab/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ def to_debug_report(self) -> str:
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 1.74.0\n"\
"SDK Package Version: 1.2.0".\
"SDK Package Version: 1.3.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self) -> List[HostSetting]:
Expand Down