Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update youneedabudget.com references to ynab.com #67

Merged
merged 2 commits into from
Apr 4, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .swagger-codegen/config.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"gemName": "ynab",
"moduleName": "YNAB",
"gemDescription": "Ruby gem wrapper for the YNAB API. Read the documentation at https://api.youneedabudget.com",
"gemDescription": "Ruby gem wrapper for the YNAB API. Read the documentation at https://api.ynab.com",
"gemHomepage": "https://github.com/ynab/ynab-sdk-ruby",
"gemLicense": "Apache-2.0",
"gemAuthor": "You Need A Budget, LLC",
"gemAuthorEmail": "api@youneedabudget.com"
"gemAuthorEmail": "api@ynab.com"
}
71 changes: 37 additions & 34 deletions .swagger-codegen/spec-v1-swagger.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .swagger-codegen/templates/gem.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ require 'ynab/overrides/transactions_api'

module {{moduleName}}
class API
def initialize(access_token, host = 'api.youneedabudget.com', useHttps = true)
def initialize(access_token, host = 'api.ynab.com', useHttps = true)
config = Configuration.default
config.api_key['Authorization'] = access_token
config.api_key_prefix['Authorization'] = 'Bearer'
Expand Down
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 (1.28.0)
ynab (1.29.0)
json (~> 2.1, >= 2.1.0)
typhoeus (~> 1.0, >= 1.0.1)

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

This is the Ruby client for the YNAB API.

Please read the [YNAB API documentation](https://api.youneedabudget.com) for an
Please read the [YNAB API documentation](https://api.ynab.com) for an
overview of using the API and a complete list of available resources.

This client is generated using the [Swagger Code Generator](https://github.com/swagger-api/swagger-codegen).
Expand All @@ -18,8 +18,8 @@ gem install ynab

## Usage
To use this client you must
[obtain an access token](https://api.youneedabudget.com/#authentication-overview) from
your [Account Settings](https://app.youneedabudget.com/settings) page of the YNAB web
[obtain an access token](https://api.ynab.com/#authentication-overview) from
your [Account Settings](https://app.ynab.com/settings) page of the YNAB web
app.

```ruby
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ desc "Run Swagger Code Generator to update the client from the Swagger spec"
task :generate do
# Download latest swagger spec
spec_filename = 'spec-v1-swagger.json'
sh "wget https://api.youneedabudget.com/papi/#{spec_filename} -O ./.swagger-codegen/#{spec_filename}"
sh "wget https://api.ynab.com/papi/#{spec_filename} -O ./.swagger-codegen/#{spec_filename}"

# Copy ignore file to root (workaround for ignore-file-override option not working)
sh "cp ./.swagger-codegen/.swagger-codegen-ignore ./"
Expand Down
8 changes: 4 additions & 4 deletions docs/AccountsApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# YNAB::AccountsApi

All URIs are relative to *https://api.youneedabudget.com/v1*
All URIs are relative to *https://api.ynab.com/v1*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand All @@ -20,7 +20,7 @@ Creates a new account

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**budget_id** | **String**| The id of the budget (\"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget) |
**budget_id** | **String**| The id of the budget (\"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget) |
**data** | [**PostAccountWrapper**](PostAccountWrapper.md)| The account to create. |

### Return type
Expand All @@ -38,7 +38,7 @@ Returns a single account

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**budget_id** | **String**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget). |
**budget_id** | **String**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). |
**account_id** | [**String**](.md)| The id of the account |

### Return type
Expand All @@ -56,7 +56,7 @@ Returns all accounts

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**budget_id** | **String**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget). |
**budget_id** | **String**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). |
**last_knowledge_of_server** | **Integer**| The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included. | [optional]

### Return type
Expand Down
6 changes: 3 additions & 3 deletions docs/BudgetsApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# YNAB::BudgetsApi

All URIs are relative to *https://api.youneedabudget.com/v1*
All URIs are relative to *https://api.ynab.com/v1*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand All @@ -20,7 +20,7 @@ Returns a single budget with all related entities. This resource is effectively

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**budget_id** | **String**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget). |
**budget_id** | **String**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). |
**last_knowledge_of_server** | **Integer**| The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included. | [optional]

### Return type
Expand All @@ -38,7 +38,7 @@ Returns settings for a budget

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**budget_id** | **String**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget). |
**budget_id** | **String**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). |

### Return type

Expand Down
10 changes: 5 additions & 5 deletions docs/CategoriesApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# YNAB::CategoriesApi

All URIs are relative to *https://api.youneedabudget.com/v1*
All URIs are relative to *https://api.ynab.com/v1*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand All @@ -21,7 +21,7 @@ Returns all categories grouped by category group. Amounts (budgeted, activity,

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**budget_id** | **String**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget). |
**budget_id** | **String**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). |
**last_knowledge_of_server** | **Integer**| The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included. | [optional]

### Return type
Expand All @@ -39,7 +39,7 @@ Returns a single category. Amounts (budgeted, activity, balance, etc.) are spec

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**budget_id** | **String**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget). |
**budget_id** | **String**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). |
**category_id** | **String**| The id of the category |

### Return type
Expand All @@ -57,7 +57,7 @@ Returns a single category for a specific budget month. Amounts (budgeted, activ

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**budget_id** | **String**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget). |
**budget_id** | **String**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). |
**month** | **Date**| The budget month in ISO format (e.g. 2016-12-01) (\"current\" can also be used to specify the current calendar month (UTC)) |
**category_id** | **String**| The id of the category |

Expand All @@ -76,7 +76,7 @@ Update a category for a specific month. Only `budgeted` amount can be updated.

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**budget_id** | **String**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget). |
**budget_id** | **String**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). |
**month** | **Date**| The budget month in ISO format (e.g. 2016-12-01) (\"current\" can also be used to specify the current calendar month (UTC)) |
**category_id** | **String**| The id of the category |
**data** | [**PatchMonthCategoryWrapper**](PatchMonthCategoryWrapper.md)| The category to update. Only `budgeted` amount can be updated and any other fields specified will be ignored. |
Expand Down
4 changes: 2 additions & 2 deletions docs/DeprecatedApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# YNAB::DeprecatedApi

All URIs are relative to *https://api.youneedabudget.com/v1*
All URIs are relative to *https://api.ynab.com/v1*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand All @@ -18,7 +18,7 @@ Creates multiple transactions. Although this endpoint is still supported, it is

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**budget_id** | **String**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget). |
**budget_id** | **String**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). |
**transactions** | [**BulkTransactions**](BulkTransactions.md)| The list of transactions to create |

### Return type
Expand Down
2 changes: 1 addition & 1 deletion docs/HybridTransaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ Name | Type | Description | Notes
**parent_transaction_id** | **String** | For subtransaction types, this is the id of the parent transaction. For transaction types, this id will be always be null. | [optional]
**account_name** | **String** | |
**payee_name** | **String** | | [optional]
**category_name** | **String** | | [optional]
**category_name** | **String** | The name of the category. If a split transaction, this will be 'Split'. | [optional]


6 changes: 3 additions & 3 deletions docs/MonthsApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# YNAB::MonthsApi

All URIs are relative to *https://api.youneedabudget.com/v1*
All URIs are relative to *https://api.ynab.com/v1*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand All @@ -19,7 +19,7 @@ Returns a single budget month

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**budget_id** | **String**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget). |
**budget_id** | **String**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). |
**month** | **Date**| The budget month in ISO format (e.g. 2016-12-01) (\"current\" can also be used to specify the current calendar month (UTC)) |

### Return type
Expand All @@ -37,7 +37,7 @@ Returns all budget months

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**budget_id** | **String**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget). |
**budget_id** | **String**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). |
**last_knowledge_of_server** | **Integer**| The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included. | [optional]

### Return type
Expand Down
8 changes: 4 additions & 4 deletions docs/PayeeLocationsApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# YNAB::PayeeLocationsApi

All URIs are relative to *https://api.youneedabudget.com/v1*
All URIs are relative to *https://api.ynab.com/v1*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand All @@ -20,7 +20,7 @@ Returns a single payee location

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**budget_id** | **String**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget). |
**budget_id** | **String**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). |
**payee_location_id** | **String**| id of payee location |

### Return type
Expand All @@ -38,7 +38,7 @@ Returns all payee locations

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**budget_id** | **String**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget). |
**budget_id** | **String**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). |

### Return type

Expand All @@ -55,7 +55,7 @@ Returns all payee locations for a specified payee

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**budget_id** | **String**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget). |
**budget_id** | **String**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). |
**payee_id** | **String**| id of payee |

### Return type
Expand Down
6 changes: 3 additions & 3 deletions docs/PayeesApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# YNAB::PayeesApi

All URIs are relative to *https://api.youneedabudget.com/v1*
All URIs are relative to *https://api.ynab.com/v1*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand All @@ -19,7 +19,7 @@ Returns a single payee

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**budget_id** | **String**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget). |
**budget_id** | **String**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). |
**payee_id** | **String**| The id of the payee |

### Return type
Expand All @@ -37,7 +37,7 @@ Returns all payees

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**budget_id** | **String**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget). |
**budget_id** | **String**| The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). |
**last_knowledge_of_server** | **Integer**| The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included. | [optional]

### Return type
Expand Down
2 changes: 1 addition & 1 deletion docs/ScheduledTransactionDetail.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Name | Type | Description | Notes
**deleted** | **BOOLEAN** | Whether or not the scheduled transaction has been deleted. Deleted scheduled transactions will only be included in delta requests. |
**account_name** | **String** | |
**payee_name** | **String** | | [optional]
**category_name** | **String** | | [optional]
**category_name** | **String** | The name of the category. If a split scheduled transaction, this will be 'Split'. | [optional]
**subtransactions** | [**Array<ScheduledSubTransaction>**](ScheduledSubTransaction.md) | If a split scheduled transaction, the subtransactions. |