ynab 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +44 -0
- data/LICENSE.md +201 -0
- data/README.md +57 -0
- data/Rakefile +31 -0
- data/config.json +10 -0
- data/docs/Account.md +16 -0
- data/docs/AccountResponse.md +8 -0
- data/docs/AccountWrapper.md +8 -0
- data/docs/AccountsApi.md +121 -0
- data/docs/AccountsResponse.md +8 -0
- data/docs/AccountsWrapper.md +8 -0
- data/docs/BudgetDetail.md +22 -0
- data/docs/BudgetDetailResponse.md +8 -0
- data/docs/BudgetDetailWrapper.md +9 -0
- data/docs/BudgetSummary.md +12 -0
- data/docs/BudgetSummaryResponse.md +8 -0
- data/docs/BudgetSummaryWrapper.md +8 -0
- data/docs/BudgetsApi.md +116 -0
- data/docs/BulkIdWrapper.md +8 -0
- data/docs/BulkIds.md +9 -0
- data/docs/BulkResponse.md +8 -0
- data/docs/BulkTransactionCreateResponse.md +8 -0
- data/docs/BulkTransactionIds.md +8 -0
- data/docs/BulkTransactions.md +8 -0
- data/docs/CategoriesApi.md +121 -0
- data/docs/CategoriesResponse.md +8 -0
- data/docs/Category.md +15 -0
- data/docs/CategoryGroup.md +10 -0
- data/docs/CategoryGroupWithCategories.md +11 -0
- data/docs/CategoryGroupsWrapper.md +8 -0
- data/docs/CategoryResponse.md +8 -0
- data/docs/CategoryWrapper.md +8 -0
- data/docs/CurrencyFormat.md +8 -0
- data/docs/DateFormat.md +8 -0
- data/docs/ErrorDetail.md +10 -0
- data/docs/ErrorResponse.md +8 -0
- data/docs/MonthDetail.md +12 -0
- data/docs/MonthDetailResponse.md +8 -0
- data/docs/MonthDetailWrapper.md +8 -0
- data/docs/MonthSummariesResponse.md +8 -0
- data/docs/MonthSummariesWrapper.md +8 -0
- data/docs/MonthSummary.md +11 -0
- data/docs/MonthsApi.md +121 -0
- data/docs/Payee.md +10 -0
- data/docs/PayeeLocation.md +11 -0
- data/docs/PayeeLocationResponse.md +8 -0
- data/docs/PayeeLocationWrapper.md +8 -0
- data/docs/PayeeLocationsApi.md +179 -0
- data/docs/PayeeLocationsResponse.md +8 -0
- data/docs/PayeeLocationsWrapper.md +8 -0
- data/docs/PayeeResponse.md +8 -0
- data/docs/PayeeWrapper.md +8 -0
- data/docs/PayeesApi.md +121 -0
- data/docs/PayeesResponse.md +8 -0
- data/docs/PayeesWrapper.md +8 -0
- data/docs/SaveTransaction.md +18 -0
- data/docs/SaveTransactionWrapper.md +8 -0
- data/docs/ScheduledSubTransaction.md +14 -0
- data/docs/ScheduledTransactionDetail.md +19 -0
- data/docs/ScheduledTransactionResponse.md +8 -0
- data/docs/ScheduledTransactionSummary.md +18 -0
- data/docs/ScheduledTransactionWrapper.md +8 -0
- data/docs/ScheduledTransactionsApi.md +121 -0
- data/docs/ScheduledTransactionsResponse.md +8 -0
- data/docs/ScheduledTransactionsWrapper.md +8 -0
- data/docs/SubTransaction.md +14 -0
- data/docs/TransactionDetail.md +20 -0
- data/docs/TransactionResponse.md +8 -0
- data/docs/TransactionSummary.md +19 -0
- data/docs/TransactionWrapper.md +8 -0
- data/docs/TransactionsApi.md +428 -0
- data/docs/TransactionsResponse.md +8 -0
- data/docs/TransactionsWrapper.md +8 -0
- data/examples/budget-list.rb +25 -0
- data/examples/budget-month.rb +36 -0
- data/examples/category-balance.rb +27 -0
- data/lib/ynab.rb +136 -0
- data/lib/ynab/api/accounts_api.rb +135 -0
- data/lib/ynab/api/budgets_api.rb +126 -0
- data/lib/ynab/api/categories_api.rb +135 -0
- data/lib/ynab/api/months_api.rb +135 -0
- data/lib/ynab/api/payee_locations_api.rb +194 -0
- data/lib/ynab/api/payees_api.rb +135 -0
- data/lib/ynab/api/scheduled_transactions_api.rb +135 -0
- data/lib/ynab/api/transactions_api.rb +451 -0
- data/lib/ynab/api_client.rb +392 -0
- data/lib/ynab/api_error.rb +38 -0
- data/lib/ynab/configuration.rb +209 -0
- data/lib/ynab/models/account.rb +343 -0
- data/lib/ynab/models/account_response.rb +193 -0
- data/lib/ynab/models/account_wrapper.rb +193 -0
- data/lib/ynab/models/accounts_response.rb +193 -0
- data/lib/ynab/models/accounts_wrapper.rb +195 -0
- data/lib/ynab/models/budget_detail.rb +345 -0
- data/lib/ynab/models/budget_detail_response.rb +193 -0
- data/lib/ynab/models/budget_detail_wrapper.rb +208 -0
- data/lib/ynab/models/budget_summary.rb +235 -0
- data/lib/ynab/models/budget_summary_response.rb +193 -0
- data/lib/ynab/models/budget_summary_wrapper.rb +195 -0
- data/lib/ynab/models/bulk_id_wrapper.rb +193 -0
- data/lib/ynab/models/bulk_ids.rb +213 -0
- data/lib/ynab/models/bulk_response.rb +193 -0
- data/lib/ynab/models/bulk_transaction_create_response.rb +193 -0
- data/lib/ynab/models/bulk_transaction_ids.rb +195 -0
- data/lib/ynab/models/bulk_transactions.rb +195 -0
- data/lib/ynab/models/categories_response.rb +193 -0
- data/lib/ynab/models/category.rb +295 -0
- data/lib/ynab/models/category_group.rb +222 -0
- data/lib/ynab/models/category_group_with_categories.rb +239 -0
- data/lib/ynab/models/category_groups_wrapper.rb +195 -0
- data/lib/ynab/models/category_response.rb +193 -0
- data/lib/ynab/models/category_wrapper.rb +193 -0
- data/lib/ynab/models/currency_format.rb +193 -0
- data/lib/ynab/models/date_format.rb +193 -0
- data/lib/ynab/models/error_detail.rb +221 -0
- data/lib/ynab/models/error_response.rb +193 -0
- data/lib/ynab/models/month_detail.rb +253 -0
- data/lib/ynab/models/month_detail_response.rb +193 -0
- data/lib/ynab/models/month_detail_wrapper.rb +193 -0
- data/lib/ynab/models/month_summaries_response.rb +193 -0
- data/lib/ynab/models/month_summaries_wrapper.rb +195 -0
- data/lib/ynab/models/month_summary.rb +236 -0
- data/lib/ynab/models/payee.rb +222 -0
- data/lib/ynab/models/payee_location.rb +235 -0
- data/lib/ynab/models/payee_location_response.rb +193 -0
- data/lib/ynab/models/payee_location_wrapper.rb +193 -0
- data/lib/ynab/models/payee_locations_response.rb +193 -0
- data/lib/ynab/models/payee_locations_wrapper.rb +195 -0
- data/lib/ynab/models/payee_response.rb +193 -0
- data/lib/ynab/models/payee_wrapper.rb +193 -0
- data/lib/ynab/models/payees_response.rb +193 -0
- data/lib/ynab/models/payees_wrapper.rb +195 -0
- data/lib/ynab/models/save_transaction.rb +346 -0
- data/lib/ynab/models/save_transaction_wrapper.rb +193 -0
- data/lib/ynab/models/scheduled_sub_transaction.rb +279 -0
- data/lib/ynab/models/scheduled_transaction_detail.rb +387 -0
- data/lib/ynab/models/scheduled_transaction_response.rb +193 -0
- data/lib/ynab/models/scheduled_transaction_summary.rb +370 -0
- data/lib/ynab/models/scheduled_transaction_wrapper.rb +193 -0
- data/lib/ynab/models/scheduled_transactions_response.rb +193 -0
- data/lib/ynab/models/scheduled_transactions_wrapper.rb +195 -0
- data/lib/ynab/models/sub_transaction.rb +279 -0
- data/lib/ynab/models/transaction_detail.rb +401 -0
- data/lib/ynab/models/transaction_response.rb +193 -0
- data/lib/ynab/models/transaction_summary.rb +384 -0
- data/lib/ynab/models/transaction_wrapper.rb +193 -0
- data/lib/ynab/models/transactions_response.rb +193 -0
- data/lib/ynab/models/transactions_wrapper.rb +195 -0
- data/lib/ynab/version.rb +15 -0
- data/pkg/ynab-0.1.0.gem +0 -0
- data/spec-v1-swagger.json +2121 -0
- data/spec/api/accounts_spec.rb +56 -0
- data/spec/api/budgets_spec.rb +55 -0
- data/spec/api/categories_spec.rb +57 -0
- data/spec/api/months_spec.rb +57 -0
- data/spec/api/payee_locations_spec.rb +57 -0
- data/spec/api/payees_spec.rb +56 -0
- data/spec/api/scheduled_transactions_spec.rb +56 -0
- data/spec/api/transactions_spec.rb +122 -0
- data/spec/fixtures/.DS_Store +0 -0
- data/spec/fixtures/vcr_cassettes/account.yml +46 -0
- data/spec/fixtures/vcr_cassettes/accounts.yml +46 -0
- data/spec/fixtures/vcr_cassettes/accounts_unauthorized.yml +49 -0
- data/spec/fixtures/vcr_cassettes/budget.yml +1413 -0
- data/spec/fixtures/vcr_cassettes/budgets.yml +49 -0
- data/spec/fixtures/vcr_cassettes/budgets_unauthorized.yml +49 -0
- data/spec/fixtures/vcr_cassettes/bulk_transactions.yml +46 -0
- data/spec/fixtures/vcr_cassettes/categories.yml +67 -0
- data/spec/fixtures/vcr_cassettes/categories_unauthorized.yml +49 -0
- data/spec/fixtures/vcr_cassettes/category.yml +46 -0
- data/spec/fixtures/vcr_cassettes/create_transaction.yml +46 -0
- data/spec/fixtures/vcr_cassettes/month.yml +59 -0
- data/spec/fixtures/vcr_cassettes/months.yml +47 -0
- data/spec/fixtures/vcr_cassettes/months_unauthorized.yml +49 -0
- data/spec/fixtures/vcr_cassettes/payee.yml +47 -0
- data/spec/fixtures/vcr_cassettes/payee_location.yml +46 -0
- data/spec/fixtures/vcr_cassettes/payee_locations.yml +46 -0
- data/spec/fixtures/vcr_cassettes/payee_locations_unauthorized.yml +49 -0
- data/spec/fixtures/vcr_cassettes/payees.yml +51 -0
- data/spec/fixtures/vcr_cassettes/payees_unauthorized.yml +49 -0
- data/spec/fixtures/vcr_cassettes/scheduled_transaction.yml +46 -0
- data/spec/fixtures/vcr_cassettes/scheduled_transactions.yml +46 -0
- data/spec/fixtures/vcr_cassettes/scheduled_transactions_unauthorized.yml +49 -0
- data/spec/fixtures/vcr_cassettes/transaction.yml +46 -0
- data/spec/fixtures/vcr_cassettes/transactions.yml +46 -0
- data/spec/fixtures/vcr_cassettes/transactions_unauthorized.yml +49 -0
- data/spec/fixtures/vcr_cassettes/update_transaction.yml +46 -0
- data/spec/spec_helper.rb +18 -0
- data/swagger-templates/api_client.mustache +386 -0
- data/swagger-templates/gemspec.mustache +37 -0
- data/ynab.gemspec +40 -0
- metadata +353 -0
data/docs/PayeesApi.md
ADDED
@@ -0,0 +1,121 @@
|
|
1
|
+
# YnabApi::PayeesApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.youneedabudget.com/papi/v1*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_payee_by_id**](PayeesApi.md#get_payee_by_id) | **GET** /budgets/{budget_id}/payees/{payee_id} | Single payee
|
8
|
+
[**get_payees**](PayeesApi.md#get_payees) | **GET** /budgets/{budget_id}/payees | List payees
|
9
|
+
|
10
|
+
|
11
|
+
# **get_payee_by_id**
|
12
|
+
> PayeeResponse get_payee_by_id(budget_id, payee_id)
|
13
|
+
|
14
|
+
Single payee
|
15
|
+
|
16
|
+
Returns single payee
|
17
|
+
|
18
|
+
### Example
|
19
|
+
```ruby
|
20
|
+
# load the gem
|
21
|
+
require 'ynab'
|
22
|
+
# setup authorization
|
23
|
+
YnabApi.configure do |config|
|
24
|
+
# Configure API key authorization: bearer
|
25
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
26
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
27
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
28
|
+
end
|
29
|
+
|
30
|
+
api_instance = YnabApi::PayeesApi.new
|
31
|
+
|
32
|
+
budget_id = "budget_id_example" # String | The ID of the Budget.
|
33
|
+
|
34
|
+
payee_id = "payee_id_example" # String | The ID of the Payee.
|
35
|
+
|
36
|
+
|
37
|
+
begin
|
38
|
+
#Single payee
|
39
|
+
result = api_instance.get_payee_by_id(budget_id, payee_id)
|
40
|
+
p result
|
41
|
+
rescue YnabApi::ApiError => e
|
42
|
+
puts "Exception when calling PayeesApi->get_payee_by_id: #{e}"
|
43
|
+
end
|
44
|
+
```
|
45
|
+
|
46
|
+
### Parameters
|
47
|
+
|
48
|
+
Name | Type | Description | Notes
|
49
|
+
------------- | ------------- | ------------- | -------------
|
50
|
+
**budget_id** | [**String**](.md)| The ID of the Budget. |
|
51
|
+
**payee_id** | [**String**](.md)| The ID of the Payee. |
|
52
|
+
|
53
|
+
### Return type
|
54
|
+
|
55
|
+
[**PayeeResponse**](PayeeResponse.md)
|
56
|
+
|
57
|
+
### Authorization
|
58
|
+
|
59
|
+
[bearer](../README.md#bearer)
|
60
|
+
|
61
|
+
### HTTP request headers
|
62
|
+
|
63
|
+
- **Content-Type**: Not defined
|
64
|
+
- **Accept**: application/json
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
# **get_payees**
|
69
|
+
> PayeesResponse get_payees(budget_id)
|
70
|
+
|
71
|
+
List payees
|
72
|
+
|
73
|
+
Returns all payees
|
74
|
+
|
75
|
+
### Example
|
76
|
+
```ruby
|
77
|
+
# load the gem
|
78
|
+
require 'ynab'
|
79
|
+
# setup authorization
|
80
|
+
YnabApi.configure do |config|
|
81
|
+
# Configure API key authorization: bearer
|
82
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
83
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
84
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
85
|
+
end
|
86
|
+
|
87
|
+
api_instance = YnabApi::PayeesApi.new
|
88
|
+
|
89
|
+
budget_id = "budget_id_example" # String | The ID of the Budget.
|
90
|
+
|
91
|
+
|
92
|
+
begin
|
93
|
+
#List payees
|
94
|
+
result = api_instance.get_payees(budget_id)
|
95
|
+
p result
|
96
|
+
rescue YnabApi::ApiError => e
|
97
|
+
puts "Exception when calling PayeesApi->get_payees: #{e}"
|
98
|
+
end
|
99
|
+
```
|
100
|
+
|
101
|
+
### Parameters
|
102
|
+
|
103
|
+
Name | Type | Description | Notes
|
104
|
+
------------- | ------------- | ------------- | -------------
|
105
|
+
**budget_id** | [**String**](.md)| The ID of the Budget. |
|
106
|
+
|
107
|
+
### Return type
|
108
|
+
|
109
|
+
[**PayeesResponse**](PayeesResponse.md)
|
110
|
+
|
111
|
+
### Authorization
|
112
|
+
|
113
|
+
[bearer](../README.md#bearer)
|
114
|
+
|
115
|
+
### HTTP request headers
|
116
|
+
|
117
|
+
- **Content-Type**: Not defined
|
118
|
+
- **Accept**: application/json
|
119
|
+
|
120
|
+
|
121
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# YnabApi::SaveTransaction
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**account_id** | **String** | |
|
7
|
+
**date** | **Date** | |
|
8
|
+
**amount** | **Float** | The transaction amount in milliunits format |
|
9
|
+
**payee_id** | **String** | The payee for the transaction. Transfer payees are not permitted and will be ignored if supplied. | [optional]
|
10
|
+
**payee_name** | **String** | The payee name. If a payee_name value is provided and payee_id is not included or has a null value, payee_name will be used to create or use an existing payee. | [optional]
|
11
|
+
**category_id** | **String** | The category for the transaction. Split and Credit Card Payment categories are not permitted and will be ignored if supplied. | [optional]
|
12
|
+
**memo** | **String** | | [optional]
|
13
|
+
**cleared** | **String** | The cleared status of the transaction | [optional]
|
14
|
+
**approved** | **BOOLEAN** | Whether or not the transaction is approved. If not supplied, transaction will be unapproved by default. | [optional]
|
15
|
+
**flag_color** | **String** | The transaction flag | [optional]
|
16
|
+
**import_id** | **String** | If specified for a new transaction, the transaction will be treated as Imported and assigned this import_id. If another transaction on the same account with this same import_id is later attempted to be created, it will be skipped to prevent duplication. Transactions imported through File Based Import or Direct Import and not through the API, are assigned an import_id in the format: 'YNAB:[milliunit_amount]:[iso_date]:[occurance]'. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of 'YNAB:-294230:2015-12-30:1'. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be 'YNAB:-294230:2015-12-30:2'. Using a consistent format will prevent duplicates through Direct Import and File Based Import. If import_id is specified as null, the transaction will be treated as a user entered transaction. | [optional]
|
17
|
+
|
18
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# YnabApi::ScheduledSubTransaction
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | |
|
7
|
+
**scheduled_transaction_id** | **String** | |
|
8
|
+
**amount** | **Float** | The scheduled sub-transaction amount in milliunits format |
|
9
|
+
**memo** | **String** | |
|
10
|
+
**payee_id** | **String** | |
|
11
|
+
**category_id** | **String** | |
|
12
|
+
**transfer_account_id** | **String** | If a transfer, the account_id which the scheduled sub transaction transfers to |
|
13
|
+
|
14
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# YnabApi::ScheduledTransactionDetail
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | |
|
7
|
+
**date_first** | **Date** | The first date for which the Scheduled Transaction was scheduled. |
|
8
|
+
**date_next** | **Date** | The next date for which the Scheduled Transaction is scheduled. |
|
9
|
+
**frequency** | **String** | |
|
10
|
+
**amount** | **Float** | The scheduled transaction amount in milliunits format |
|
11
|
+
**memo** | **String** | |
|
12
|
+
**flag_color** | **String** | |
|
13
|
+
**account_id** | **String** | |
|
14
|
+
**payee_id** | **String** | |
|
15
|
+
**category_id** | **String** | |
|
16
|
+
**transfer_account_id** | **String** | If a transfer, the account_id which the scheduled transaction transfers to |
|
17
|
+
**subtransactions** | [**Array<ScheduledSubTransaction>**](ScheduledSubTransaction.md) | If a split scheduled transaction, the sub-transactions. |
|
18
|
+
|
19
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# YnabApi::ScheduledTransactionSummary
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | |
|
7
|
+
**date_first** | **Date** | The first date for which the Scheduled Transaction was scheduled. |
|
8
|
+
**date_next** | **Date** | The next date for which the Scheduled Transaction is scheduled. |
|
9
|
+
**frequency** | **String** | |
|
10
|
+
**amount** | **Float** | The scheduled transaction amount in milliunits format |
|
11
|
+
**memo** | **String** | |
|
12
|
+
**flag_color** | **String** | |
|
13
|
+
**account_id** | **String** | |
|
14
|
+
**payee_id** | **String** | |
|
15
|
+
**category_id** | **String** | |
|
16
|
+
**transfer_account_id** | **String** | If a transfer, the account_id which the scheduled transaction transfers to |
|
17
|
+
|
18
|
+
|
@@ -0,0 +1,121 @@
|
|
1
|
+
# YnabApi::ScheduledTransactionsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.youneedabudget.com/papi/v1*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_scheduled_transaction_by_id**](ScheduledTransactionsApi.md#get_scheduled_transaction_by_id) | **GET** /budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id} | Single scheduled transaction
|
8
|
+
[**get_scheduled_transactions**](ScheduledTransactionsApi.md#get_scheduled_transactions) | **GET** /budgets/{budget_id}/scheduled_transactions | List scheduled transactions
|
9
|
+
|
10
|
+
|
11
|
+
# **get_scheduled_transaction_by_id**
|
12
|
+
> ScheduledTransactionResponse get_scheduled_transaction_by_id(budget_id, scheduled_transaction_id)
|
13
|
+
|
14
|
+
Single scheduled transaction
|
15
|
+
|
16
|
+
Returns a single scheduled transaction
|
17
|
+
|
18
|
+
### Example
|
19
|
+
```ruby
|
20
|
+
# load the gem
|
21
|
+
require 'ynab'
|
22
|
+
# setup authorization
|
23
|
+
YnabApi.configure do |config|
|
24
|
+
# Configure API key authorization: bearer
|
25
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
26
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
27
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
28
|
+
end
|
29
|
+
|
30
|
+
api_instance = YnabApi::ScheduledTransactionsApi.new
|
31
|
+
|
32
|
+
budget_id = "budget_id_example" # String | The ID of the Budget.
|
33
|
+
|
34
|
+
scheduled_transaction_id = "scheduled_transaction_id_example" # String | The ID of the Scheduled Transaction.
|
35
|
+
|
36
|
+
|
37
|
+
begin
|
38
|
+
#Single scheduled transaction
|
39
|
+
result = api_instance.get_scheduled_transaction_by_id(budget_id, scheduled_transaction_id)
|
40
|
+
p result
|
41
|
+
rescue YnabApi::ApiError => e
|
42
|
+
puts "Exception when calling ScheduledTransactionsApi->get_scheduled_transaction_by_id: #{e}"
|
43
|
+
end
|
44
|
+
```
|
45
|
+
|
46
|
+
### Parameters
|
47
|
+
|
48
|
+
Name | Type | Description | Notes
|
49
|
+
------------- | ------------- | ------------- | -------------
|
50
|
+
**budget_id** | [**String**](.md)| The ID of the Budget. |
|
51
|
+
**scheduled_transaction_id** | [**String**](.md)| The ID of the Scheduled Transaction. |
|
52
|
+
|
53
|
+
### Return type
|
54
|
+
|
55
|
+
[**ScheduledTransactionResponse**](ScheduledTransactionResponse.md)
|
56
|
+
|
57
|
+
### Authorization
|
58
|
+
|
59
|
+
[bearer](../README.md#bearer)
|
60
|
+
|
61
|
+
### HTTP request headers
|
62
|
+
|
63
|
+
- **Content-Type**: Not defined
|
64
|
+
- **Accept**: application/json
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
# **get_scheduled_transactions**
|
69
|
+
> ScheduledTransactionsResponse get_scheduled_transactions(budget_id)
|
70
|
+
|
71
|
+
List scheduled transactions
|
72
|
+
|
73
|
+
Returns all scheduled transactions
|
74
|
+
|
75
|
+
### Example
|
76
|
+
```ruby
|
77
|
+
# load the gem
|
78
|
+
require 'ynab'
|
79
|
+
# setup authorization
|
80
|
+
YnabApi.configure do |config|
|
81
|
+
# Configure API key authorization: bearer
|
82
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
83
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
84
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
85
|
+
end
|
86
|
+
|
87
|
+
api_instance = YnabApi::ScheduledTransactionsApi.new
|
88
|
+
|
89
|
+
budget_id = "budget_id_example" # String | The ID of the Budget.
|
90
|
+
|
91
|
+
|
92
|
+
begin
|
93
|
+
#List scheduled transactions
|
94
|
+
result = api_instance.get_scheduled_transactions(budget_id)
|
95
|
+
p result
|
96
|
+
rescue YnabApi::ApiError => e
|
97
|
+
puts "Exception when calling ScheduledTransactionsApi->get_scheduled_transactions: #{e}"
|
98
|
+
end
|
99
|
+
```
|
100
|
+
|
101
|
+
### Parameters
|
102
|
+
|
103
|
+
Name | Type | Description | Notes
|
104
|
+
------------- | ------------- | ------------- | -------------
|
105
|
+
**budget_id** | [**String**](.md)| The ID of the Budget. |
|
106
|
+
|
107
|
+
### Return type
|
108
|
+
|
109
|
+
[**ScheduledTransactionsResponse**](ScheduledTransactionsResponse.md)
|
110
|
+
|
111
|
+
### Authorization
|
112
|
+
|
113
|
+
[bearer](../README.md#bearer)
|
114
|
+
|
115
|
+
### HTTP request headers
|
116
|
+
|
117
|
+
- **Content-Type**: Not defined
|
118
|
+
- **Accept**: application/json
|
119
|
+
|
120
|
+
|
121
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# YnabApi::ScheduledTransactionsWrapper
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**scheduled_transactions** | [**Array<ScheduledTransactionDetail>**](ScheduledTransactionDetail.md) | |
|
7
|
+
|
8
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# YnabApi::SubTransaction
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | |
|
7
|
+
**transaction_id** | **String** | |
|
8
|
+
**amount** | **Float** | The sub-transaction amount in milliunits format |
|
9
|
+
**memo** | **String** | |
|
10
|
+
**payee_id** | **String** | |
|
11
|
+
**category_id** | **String** | |
|
12
|
+
**transfer_account_id** | **String** | If a transfer, the account_id which the subtransaction transfers to |
|
13
|
+
|
14
|
+
|