ynab 1.31.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/DEVELOPMENT.md +11 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +42 -0
- data/README.md +3 -3
- data/Rakefile +58 -0
- data/config.json +9 -0
- data/docs/Account.md +25 -0
- data/docs/AccountResponse.md +8 -0
- data/docs/AccountResponseData.md +8 -0
- data/docs/AccountType.md +7 -0
- data/docs/AccountWrapper.md +8 -0
- data/docs/AccountsApi.md +70 -0
- data/docs/AccountsResponse.md +8 -0
- data/docs/AccountsResponseData.md +9 -0
- data/docs/AccountsWrapper.md +9 -0
- data/docs/BudgetDetail.md +24 -0
- data/docs/BudgetDetailAllOf.md +17 -0
- data/docs/BudgetDetailResponse.md +8 -0
- data/docs/BudgetDetailResponseData.md +9 -0
- data/docs/BudgetDetailWrapper.md +9 -0
- data/docs/BudgetSettings.md +9 -0
- data/docs/BudgetSettingsResponse.md +8 -0
- data/docs/BudgetSettingsResponseData.md +8 -0
- data/docs/BudgetSettingsWrapper.md +8 -0
- data/docs/BudgetSummary.md +15 -0
- data/docs/BudgetSummaryResponse.md +8 -0
- data/docs/BudgetSummaryResponseData.md +9 -0
- data/docs/BudgetSummaryWrapper.md +9 -0
- data/docs/BudgetsApi.md +68 -0
- data/docs/BulkIdWrapper.md +8 -0
- data/docs/BulkIds.md +9 -0
- data/docs/BulkResponse.md +8 -0
- data/docs/BulkResponseData.md +8 -0
- data/docs/BulkResponseDataBulk.md +9 -0
- data/docs/BulkTransactionCreateResponse.md +8 -0
- data/docs/BulkTransactionIds.md +8 -0
- data/docs/BulkTransactions.md +8 -0
- data/docs/CategoriesApi.md +94 -0
- data/docs/CategoriesResponse.md +8 -0
- data/docs/CategoriesResponseData.md +9 -0
- data/docs/Category.md +30 -0
- data/docs/CategoryGroup.md +11 -0
- data/docs/CategoryGroupWithCategories.md +12 -0
- data/docs/CategoryGroupWithCategoriesAllOf.md +8 -0
- data/docs/CategoryGroupsWrapper.md +9 -0
- data/docs/CategoryResponse.md +8 -0
- data/docs/CategoryResponseData.md +8 -0
- data/docs/CategoryWrapper.md +9 -0
- data/docs/CurrencyFormat.md +15 -0
- data/docs/DateFormat.md +8 -0
- data/docs/DeprecatedApi.md +28 -0
- data/docs/ErrorDetail.md +10 -0
- data/docs/ErrorResponse.md +8 -0
- data/docs/HybridTransaction.md +30 -0
- data/docs/HybridTransactionAllOf.md +12 -0
- data/docs/HybridTransactionsResponse.md +8 -0
- data/docs/HybridTransactionsResponseData.md +9 -0
- data/docs/HybridTransactionsWrapper.md +8 -0
- data/docs/LoanAccountPeriodicValue.md +7 -0
- data/docs/MonthDetail.md +16 -0
- data/docs/MonthDetailAllOf.md +8 -0
- data/docs/MonthDetailResponse.md +8 -0
- data/docs/MonthDetailResponseData.md +8 -0
- data/docs/MonthDetailWrapper.md +8 -0
- data/docs/MonthSummariesResponse.md +8 -0
- data/docs/MonthSummariesResponseData.md +9 -0
- data/docs/MonthSummariesWrapper.md +9 -0
- data/docs/MonthSummary.md +15 -0
- data/docs/MonthsApi.md +49 -0
- data/docs/PatchMonthCategoryWrapper.md +8 -0
- data/docs/PatchTransactionsWrapper.md +8 -0
- data/docs/Payee.md +11 -0
- data/docs/PayeeLocation.md +12 -0
- data/docs/PayeeLocationResponse.md +8 -0
- data/docs/PayeeLocationResponseData.md +8 -0
- data/docs/PayeeLocationWrapper.md +8 -0
- data/docs/PayeeLocationsApi.md +69 -0
- data/docs/PayeeLocationsResponse.md +8 -0
- data/docs/PayeeLocationsResponseData.md +8 -0
- data/docs/PayeeLocationsWrapper.md +8 -0
- data/docs/PayeeResponse.md +8 -0
- data/docs/PayeeResponseData.md +8 -0
- data/docs/PayeeWrapper.md +8 -0
- data/docs/PayeesApi.md +49 -0
- data/docs/PayeesResponse.md +8 -0
- data/docs/PayeesResponseData.md +9 -0
- data/docs/PayeesWrapper.md +9 -0
- data/docs/PostAccountWrapper.md +8 -0
- data/docs/PostTransactionsWrapper.md +9 -0
- data/docs/PutTransactionWrapper.md +8 -0
- data/docs/SaveAccount.md +10 -0
- data/docs/SaveAccountWrapper.md +8 -0
- data/docs/SaveCategoryResponse.md +8 -0
- data/docs/SaveCategoryResponseData.md +9 -0
- data/docs/SaveMonthCategory.md +8 -0
- data/docs/SaveMonthCategoryWrapper.md +8 -0
- data/docs/SaveSubTransaction.md +12 -0
- data/docs/SaveTransaction.md +19 -0
- data/docs/SaveTransactionWithId.md +20 -0
- data/docs/SaveTransactionWithIdAllOf.md +8 -0
- data/docs/SaveTransactionWithOptionalFields.md +19 -0
- data/docs/SaveTransactionWrapper.md +8 -0
- data/docs/SaveTransactionsResponse.md +8 -0
- data/docs/SaveTransactionsResponseData.md +12 -0
- data/docs/SaveTransactionsWrapper.md +9 -0
- data/docs/ScheduledSubTransaction.md +15 -0
- data/docs/ScheduledTransactionDetail.md +23 -0
- data/docs/ScheduledTransactionDetailAllOf.md +11 -0
- data/docs/ScheduledTransactionResponse.md +8 -0
- data/docs/ScheduledTransactionResponseData.md +8 -0
- data/docs/ScheduledTransactionSummary.md +19 -0
- data/docs/ScheduledTransactionWrapper.md +8 -0
- data/docs/ScheduledTransactionsApi.md +49 -0
- data/docs/ScheduledTransactionsResponse.md +8 -0
- data/docs/ScheduledTransactionsResponseData.md +9 -0
- data/docs/ScheduledTransactionsWrapper.md +8 -0
- data/docs/SubTransaction.md +18 -0
- data/docs/TransactionDetail.md +29 -0
- data/docs/TransactionDetailAllOf.md +11 -0
- data/docs/TransactionResponse.md +8 -0
- data/docs/TransactionResponseData.md +8 -0
- data/docs/TransactionSummary.md +25 -0
- data/docs/TransactionWrapper.md +8 -0
- data/docs/TransactionsApi.md +228 -0
- data/docs/TransactionsImportResponse.md +8 -0
- data/docs/TransactionsImportResponseData.md +8 -0
- data/docs/TransactionsResponse.md +8 -0
- data/docs/TransactionsResponseData.md +9 -0
- data/docs/TransactionsWrapper.md +9 -0
- data/docs/UpdateTransaction.md +20 -0
- data/docs/UpdateTransactionsWrapper.md +8 -0
- data/docs/User.md +8 -0
- data/docs/UserApi.md +25 -0
- data/docs/UserResponse.md +8 -0
- data/docs/UserResponseData.md +8 -0
- data/docs/UserWrapper.md +8 -0
- data/examples/budget-list.rb +21 -0
- data/examples/budget-month.rb +33 -0
- data/examples/category-balance.rb +23 -0
- data/examples/create-multiple-transactions.rb +42 -0
- data/examples/create-transaction.rb +30 -0
- data/examples/update-category-budgeted.rb +25 -0
- data/examples/update-multiple-transactions.rb +20 -0
- data/lib/ynab/api/accounts_api.rb +78 -41
- data/lib/ynab/api/budgets_api.rb +68 -36
- data/lib/ynab/api/categories_api.rb +108 -60
- data/lib/ynab/api/deprecated_api.rb +32 -17
- data/lib/ynab/api/months_api.rb +49 -28
- data/lib/ynab/api/payee_locations_api.rb +73 -41
- data/lib/ynab/api/payees_api.rb +49 -28
- data/lib/ynab/api/scheduled_transactions_api.rb +49 -28
- data/lib/ynab/api/transactions_api.rb +268 -140
- data/lib/ynab/api/user_api.rb +22 -12
- data/lib/ynab/api_client.rb +97 -95
- data/lib/ynab/configuration.rb +101 -14
- data/lib/ynab/models/account.rb +117 -55
- data/lib/ynab/models/account_response.rb +53 -18
- data/lib/ynab/models/account_response_data.rb +53 -18
- data/lib/ynab/models/account_type.rb +30 -20
- data/lib/ynab/models/accounts_response.rb +53 -18
- data/lib/ynab/models/accounts_response_data.rb +54 -19
- data/lib/ynab/models/budget_detail.rb +80 -35
- data/lib/ynab/models/budget_detail_all_of.rb +320 -0
- data/lib/ynab/models/budget_detail_response.rb +53 -18
- data/lib/ynab/models/budget_detail_response_data.rb +54 -19
- data/lib/ynab/models/budget_settings.rb +56 -29
- data/lib/ynab/models/budget_settings_response.rb +53 -18
- data/lib/ynab/models/budget_settings_response_data.rb +53 -18
- data/lib/ynab/models/budget_summary.rb +63 -26
- data/lib/ynab/models/budget_summary_response.rb +53 -18
- data/lib/ynab/models/budget_summary_response_data.rb +54 -20
- data/lib/ynab/models/bulk_response.rb +53 -18
- data/lib/ynab/models/bulk_response_data.rb +53 -18
- data/lib/ynab/models/bulk_response_data_bulk.rb +54 -19
- data/lib/ynab/models/bulk_transactions.rb +53 -18
- data/lib/ynab/models/categories_response.rb +53 -18
- data/lib/ynab/models/categories_response_data.rb +54 -19
- data/lib/ynab/models/category.rb +110 -48
- data/lib/ynab/models/category_group.rb +58 -23
- data/lib/ynab/models/category_group_with_categories.rb +67 -24
- data/lib/ynab/models/{save_month_category_wrapper.rb → category_group_with_categories_all_of.rb} +67 -29
- data/lib/ynab/models/category_response.rb +53 -18
- data/lib/ynab/models/category_response_data.rb +53 -18
- data/lib/ynab/models/currency_format.rb +62 -27
- data/lib/ynab/models/date_format.rb +53 -18
- data/lib/ynab/models/error_detail.rb +55 -20
- data/lib/ynab/models/error_response.rb +53 -18
- data/lib/ynab/models/hybrid_transaction.rb +118 -46
- data/lib/ynab/models/hybrid_transaction_all_of.rb +304 -0
- data/lib/ynab/models/hybrid_transactions_response.rb +53 -18
- data/lib/ynab/models/hybrid_transactions_response_data.rb +54 -19
- data/lib/ynab/models/month_detail.rb +72 -27
- data/lib/ynab/models/{update_transactions_wrapper.rb → month_detail_all_of.rb} +66 -30
- data/lib/ynab/models/month_detail_response.rb +53 -18
- data/lib/ynab/models/month_detail_response_data.rb +53 -18
- data/lib/ynab/models/month_summaries_response.rb +53 -18
- data/lib/ynab/models/month_summaries_response_data.rb +54 -19
- data/lib/ynab/models/month_summary.rb +63 -26
- data/lib/ynab/models/patch_month_category_wrapper.rb +53 -18
- data/lib/ynab/models/patch_transactions_wrapper.rb +53 -18
- data/lib/ynab/models/payee.rb +58 -22
- data/lib/ynab/models/payee_location.rb +58 -23
- data/lib/ynab/models/payee_location_response.rb +53 -18
- data/lib/ynab/models/payee_location_response_data.rb +53 -18
- data/lib/ynab/models/payee_locations_response.rb +53 -18
- data/lib/ynab/models/payee_locations_response_data.rb +53 -18
- data/lib/ynab/models/payee_response.rb +53 -18
- data/lib/ynab/models/payee_response_data.rb +53 -18
- data/lib/ynab/models/payees_response.rb +53 -18
- data/lib/ynab/models/payees_response_data.rb +54 -19
- data/lib/ynab/models/post_account_wrapper.rb +53 -18
- data/lib/ynab/models/post_transactions_wrapper.rb +54 -19
- data/lib/ynab/models/put_transaction_wrapper.rb +53 -18
- data/lib/ynab/models/save_account.rb +77 -20
- data/lib/ynab/models/save_category_response.rb +53 -18
- data/lib/ynab/models/save_category_response_data.rb +54 -19
- data/lib/ynab/models/save_month_category.rb +53 -18
- data/lib/ynab/models/save_sub_transaction.rb +61 -22
- data/lib/ynab/models/save_transaction.rb +88 -33
- data/lib/ynab/models/save_transaction_with_id.rb +102 -46
- data/lib/ynab/models/{save_transactions_wrapper.rb → save_transaction_with_id_all_of.rb} +60 -36
- data/lib/ynab/models/save_transaction_with_optional_fields.rb +81 -33
- data/lib/ynab/models/save_transactions_response.rb +53 -18
- data/lib/ynab/models/save_transactions_response_data.rb +57 -23
- data/lib/ynab/models/scheduled_sub_transaction.rb +66 -27
- data/lib/ynab/models/scheduled_transaction_detail.rb +94 -36
- data/lib/ynab/models/scheduled_transaction_detail_all_of.rb +262 -0
- data/lib/ynab/models/scheduled_transaction_response.rb +53 -18
- data/lib/ynab/models/scheduled_transaction_response_data.rb +53 -18
- data/lib/ynab/models/scheduled_transaction_summary.rb +80 -32
- data/lib/ynab/models/scheduled_transactions_response.rb +53 -18
- data/lib/ynab/models/scheduled_transactions_response_data.rb +54 -19
- data/lib/ynab/models/sub_transaction.rb +71 -29
- data/lib/ynab/models/transaction_detail.rb +112 -44
- data/lib/ynab/models/{save_transaction_wrapper.rb → transaction_detail_all_of.rb} +102 -29
- data/lib/ynab/models/transaction_response.rb +53 -18
- data/lib/ynab/models/transaction_response_data.rb +53 -18
- data/lib/ynab/models/transaction_summary.rb +98 -40
- data/lib/ynab/models/transactions_import_response.rb +53 -18
- data/lib/ynab/models/transactions_import_response_data.rb +53 -18
- data/lib/ynab/models/transactions_response.rb +53 -18
- data/lib/ynab/models/transactions_response_data.rb +54 -19
- data/lib/ynab/models/user.rb +53 -18
- data/lib/ynab/models/user_response.rb +53 -18
- data/lib/ynab/models/user_response_data.rb +53 -18
- data/lib/ynab/version.rb +1 -1
- data/lib/ynab.rb +19 -14
- data/open_api_spec.yaml +3012 -0
- data/templates/api_client.mustache +274 -0
- data/templates/api_client_typhoeus_partial.mustache +156 -0
- data/templates/api_doc.mustache +44 -0
- data/templates/gem.mustache +84 -0
- data/templates/partial_model_generic_doc.mustache +9 -0
- data/ynab.gemspec +38 -0
- metadata +192 -85
- data/lib/ynab/models/loan_account_periodic_value.rb +0 -175
- data/lib/ynab/models/save_account_wrapper.rb +0 -189
- data/lib/ynab/models/update_transaction.rb +0 -407
- data/spec/models/transaction_detail_spec.rb +0 -11
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ynab
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- YNAB
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -30,26 +30,6 @@ dependencies:
|
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 1.0.1
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: json
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '2.1'
|
40
|
-
- - ">="
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: 2.1.0
|
43
|
-
type: :runtime
|
44
|
-
prerelease: false
|
45
|
-
version_requirements: !ruby/object:Gem::Requirement
|
46
|
-
requirements:
|
47
|
-
- - "~>"
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '2.1'
|
50
|
-
- - ">="
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: 2.1.0
|
53
33
|
- !ruby/object:Gem::Dependency
|
54
34
|
name: rspec
|
55
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -70,26 +50,6 @@ dependencies:
|
|
70
50
|
- - ">="
|
71
51
|
- !ruby/object:Gem::Version
|
72
52
|
version: 3.6.0
|
73
|
-
- !ruby/object:Gem::Dependency
|
74
|
-
name: vcr
|
75
|
-
requirement: !ruby/object:Gem::Requirement
|
76
|
-
requirements:
|
77
|
-
- - "~>"
|
78
|
-
- !ruby/object:Gem::Version
|
79
|
-
version: '3.0'
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 3.0.1
|
83
|
-
type: :development
|
84
|
-
prerelease: false
|
85
|
-
version_requirements: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '3.0'
|
90
|
-
- - ">="
|
91
|
-
- !ruby/object:Gem::Version
|
92
|
-
version: 3.0.1
|
93
53
|
description: Ruby gem wrapper for the YNAB API. Read the documentation at https://api.ynab.com
|
94
54
|
email:
|
95
55
|
- api@ynab.com
|
@@ -97,8 +57,150 @@ executables: []
|
|
97
57
|
extensions: []
|
98
58
|
extra_rdoc_files: []
|
99
59
|
files:
|
60
|
+
- DEVELOPMENT.md
|
61
|
+
- Gemfile
|
62
|
+
- Gemfile.lock
|
100
63
|
- LICENSE.md
|
101
64
|
- README.md
|
65
|
+
- Rakefile
|
66
|
+
- config.json
|
67
|
+
- docs/Account.md
|
68
|
+
- docs/AccountResponse.md
|
69
|
+
- docs/AccountResponseData.md
|
70
|
+
- docs/AccountType.md
|
71
|
+
- docs/AccountWrapper.md
|
72
|
+
- docs/AccountsApi.md
|
73
|
+
- docs/AccountsResponse.md
|
74
|
+
- docs/AccountsResponseData.md
|
75
|
+
- docs/AccountsWrapper.md
|
76
|
+
- docs/BudgetDetail.md
|
77
|
+
- docs/BudgetDetailAllOf.md
|
78
|
+
- docs/BudgetDetailResponse.md
|
79
|
+
- docs/BudgetDetailResponseData.md
|
80
|
+
- docs/BudgetDetailWrapper.md
|
81
|
+
- docs/BudgetSettings.md
|
82
|
+
- docs/BudgetSettingsResponse.md
|
83
|
+
- docs/BudgetSettingsResponseData.md
|
84
|
+
- docs/BudgetSettingsWrapper.md
|
85
|
+
- docs/BudgetSummary.md
|
86
|
+
- docs/BudgetSummaryResponse.md
|
87
|
+
- docs/BudgetSummaryResponseData.md
|
88
|
+
- docs/BudgetSummaryWrapper.md
|
89
|
+
- docs/BudgetsApi.md
|
90
|
+
- docs/BulkIdWrapper.md
|
91
|
+
- docs/BulkIds.md
|
92
|
+
- docs/BulkResponse.md
|
93
|
+
- docs/BulkResponseData.md
|
94
|
+
- docs/BulkResponseDataBulk.md
|
95
|
+
- docs/BulkTransactionCreateResponse.md
|
96
|
+
- docs/BulkTransactionIds.md
|
97
|
+
- docs/BulkTransactions.md
|
98
|
+
- docs/CategoriesApi.md
|
99
|
+
- docs/CategoriesResponse.md
|
100
|
+
- docs/CategoriesResponseData.md
|
101
|
+
- docs/Category.md
|
102
|
+
- docs/CategoryGroup.md
|
103
|
+
- docs/CategoryGroupWithCategories.md
|
104
|
+
- docs/CategoryGroupWithCategoriesAllOf.md
|
105
|
+
- docs/CategoryGroupsWrapper.md
|
106
|
+
- docs/CategoryResponse.md
|
107
|
+
- docs/CategoryResponseData.md
|
108
|
+
- docs/CategoryWrapper.md
|
109
|
+
- docs/CurrencyFormat.md
|
110
|
+
- docs/DateFormat.md
|
111
|
+
- docs/DeprecatedApi.md
|
112
|
+
- docs/ErrorDetail.md
|
113
|
+
- docs/ErrorResponse.md
|
114
|
+
- docs/HybridTransaction.md
|
115
|
+
- docs/HybridTransactionAllOf.md
|
116
|
+
- docs/HybridTransactionsResponse.md
|
117
|
+
- docs/HybridTransactionsResponseData.md
|
118
|
+
- docs/HybridTransactionsWrapper.md
|
119
|
+
- docs/LoanAccountPeriodicValue.md
|
120
|
+
- docs/MonthDetail.md
|
121
|
+
- docs/MonthDetailAllOf.md
|
122
|
+
- docs/MonthDetailResponse.md
|
123
|
+
- docs/MonthDetailResponseData.md
|
124
|
+
- docs/MonthDetailWrapper.md
|
125
|
+
- docs/MonthSummariesResponse.md
|
126
|
+
- docs/MonthSummariesResponseData.md
|
127
|
+
- docs/MonthSummariesWrapper.md
|
128
|
+
- docs/MonthSummary.md
|
129
|
+
- docs/MonthsApi.md
|
130
|
+
- docs/PatchMonthCategoryWrapper.md
|
131
|
+
- docs/PatchTransactionsWrapper.md
|
132
|
+
- docs/Payee.md
|
133
|
+
- docs/PayeeLocation.md
|
134
|
+
- docs/PayeeLocationResponse.md
|
135
|
+
- docs/PayeeLocationResponseData.md
|
136
|
+
- docs/PayeeLocationWrapper.md
|
137
|
+
- docs/PayeeLocationsApi.md
|
138
|
+
- docs/PayeeLocationsResponse.md
|
139
|
+
- docs/PayeeLocationsResponseData.md
|
140
|
+
- docs/PayeeLocationsWrapper.md
|
141
|
+
- docs/PayeeResponse.md
|
142
|
+
- docs/PayeeResponseData.md
|
143
|
+
- docs/PayeeWrapper.md
|
144
|
+
- docs/PayeesApi.md
|
145
|
+
- docs/PayeesResponse.md
|
146
|
+
- docs/PayeesResponseData.md
|
147
|
+
- docs/PayeesWrapper.md
|
148
|
+
- docs/PostAccountWrapper.md
|
149
|
+
- docs/PostTransactionsWrapper.md
|
150
|
+
- docs/PutTransactionWrapper.md
|
151
|
+
- docs/SaveAccount.md
|
152
|
+
- docs/SaveAccountWrapper.md
|
153
|
+
- docs/SaveCategoryResponse.md
|
154
|
+
- docs/SaveCategoryResponseData.md
|
155
|
+
- docs/SaveMonthCategory.md
|
156
|
+
- docs/SaveMonthCategoryWrapper.md
|
157
|
+
- docs/SaveSubTransaction.md
|
158
|
+
- docs/SaveTransaction.md
|
159
|
+
- docs/SaveTransactionWithId.md
|
160
|
+
- docs/SaveTransactionWithIdAllOf.md
|
161
|
+
- docs/SaveTransactionWithOptionalFields.md
|
162
|
+
- docs/SaveTransactionWrapper.md
|
163
|
+
- docs/SaveTransactionsResponse.md
|
164
|
+
- docs/SaveTransactionsResponseData.md
|
165
|
+
- docs/SaveTransactionsWrapper.md
|
166
|
+
- docs/ScheduledSubTransaction.md
|
167
|
+
- docs/ScheduledTransactionDetail.md
|
168
|
+
- docs/ScheduledTransactionDetailAllOf.md
|
169
|
+
- docs/ScheduledTransactionResponse.md
|
170
|
+
- docs/ScheduledTransactionResponseData.md
|
171
|
+
- docs/ScheduledTransactionSummary.md
|
172
|
+
- docs/ScheduledTransactionWrapper.md
|
173
|
+
- docs/ScheduledTransactionsApi.md
|
174
|
+
- docs/ScheduledTransactionsResponse.md
|
175
|
+
- docs/ScheduledTransactionsResponseData.md
|
176
|
+
- docs/ScheduledTransactionsWrapper.md
|
177
|
+
- docs/SubTransaction.md
|
178
|
+
- docs/TransactionDetail.md
|
179
|
+
- docs/TransactionDetailAllOf.md
|
180
|
+
- docs/TransactionResponse.md
|
181
|
+
- docs/TransactionResponseData.md
|
182
|
+
- docs/TransactionSummary.md
|
183
|
+
- docs/TransactionWrapper.md
|
184
|
+
- docs/TransactionsApi.md
|
185
|
+
- docs/TransactionsImportResponse.md
|
186
|
+
- docs/TransactionsImportResponseData.md
|
187
|
+
- docs/TransactionsResponse.md
|
188
|
+
- docs/TransactionsResponseData.md
|
189
|
+
- docs/TransactionsWrapper.md
|
190
|
+
- docs/UpdateTransaction.md
|
191
|
+
- docs/UpdateTransactionsWrapper.md
|
192
|
+
- docs/User.md
|
193
|
+
- docs/UserApi.md
|
194
|
+
- docs/UserResponse.md
|
195
|
+
- docs/UserResponseData.md
|
196
|
+
- docs/UserWrapper.md
|
197
|
+
- examples/budget-list.rb
|
198
|
+
- examples/budget-month.rb
|
199
|
+
- examples/category-balance.rb
|
200
|
+
- examples/create-multiple-transactions.rb
|
201
|
+
- examples/create-transaction.rb
|
202
|
+
- examples/update-category-budgeted.rb
|
203
|
+
- examples/update-multiple-transactions.rb
|
102
204
|
- lib/ynab.rb
|
103
205
|
- lib/ynab/api/accounts_api.rb
|
104
206
|
- lib/ynab/api/budgets_api.rb
|
@@ -120,6 +222,7 @@ files:
|
|
120
222
|
- lib/ynab/models/accounts_response.rb
|
121
223
|
- lib/ynab/models/accounts_response_data.rb
|
122
224
|
- lib/ynab/models/budget_detail.rb
|
225
|
+
- lib/ynab/models/budget_detail_all_of.rb
|
123
226
|
- lib/ynab/models/budget_detail_response.rb
|
124
227
|
- lib/ynab/models/budget_detail_response_data.rb
|
125
228
|
- lib/ynab/models/budget_settings.rb
|
@@ -137,6 +240,7 @@ files:
|
|
137
240
|
- lib/ynab/models/category.rb
|
138
241
|
- lib/ynab/models/category_group.rb
|
139
242
|
- lib/ynab/models/category_group_with_categories.rb
|
243
|
+
- lib/ynab/models/category_group_with_categories_all_of.rb
|
140
244
|
- lib/ynab/models/category_response.rb
|
141
245
|
- lib/ynab/models/category_response_data.rb
|
142
246
|
- lib/ynab/models/currency_format.rb
|
@@ -144,10 +248,11 @@ files:
|
|
144
248
|
- lib/ynab/models/error_detail.rb
|
145
249
|
- lib/ynab/models/error_response.rb
|
146
250
|
- lib/ynab/models/hybrid_transaction.rb
|
251
|
+
- lib/ynab/models/hybrid_transaction_all_of.rb
|
147
252
|
- lib/ynab/models/hybrid_transactions_response.rb
|
148
253
|
- lib/ynab/models/hybrid_transactions_response_data.rb
|
149
|
-
- lib/ynab/models/loan_account_periodic_value.rb
|
150
254
|
- lib/ynab/models/month_detail.rb
|
255
|
+
- lib/ynab/models/month_detail_all_of.rb
|
151
256
|
- lib/ynab/models/month_detail_response.rb
|
152
257
|
- lib/ynab/models/month_detail_response_data.rb
|
153
258
|
- lib/ynab/models/month_summaries_response.rb
|
@@ -169,21 +274,19 @@ files:
|
|
169
274
|
- lib/ynab/models/post_transactions_wrapper.rb
|
170
275
|
- lib/ynab/models/put_transaction_wrapper.rb
|
171
276
|
- lib/ynab/models/save_account.rb
|
172
|
-
- lib/ynab/models/save_account_wrapper.rb
|
173
277
|
- lib/ynab/models/save_category_response.rb
|
174
278
|
- lib/ynab/models/save_category_response_data.rb
|
175
279
|
- lib/ynab/models/save_month_category.rb
|
176
|
-
- lib/ynab/models/save_month_category_wrapper.rb
|
177
280
|
- lib/ynab/models/save_sub_transaction.rb
|
178
281
|
- lib/ynab/models/save_transaction.rb
|
179
282
|
- lib/ynab/models/save_transaction_with_id.rb
|
283
|
+
- lib/ynab/models/save_transaction_with_id_all_of.rb
|
180
284
|
- lib/ynab/models/save_transaction_with_optional_fields.rb
|
181
|
-
- lib/ynab/models/save_transaction_wrapper.rb
|
182
285
|
- lib/ynab/models/save_transactions_response.rb
|
183
286
|
- lib/ynab/models/save_transactions_response_data.rb
|
184
|
-
- lib/ynab/models/save_transactions_wrapper.rb
|
185
287
|
- lib/ynab/models/scheduled_sub_transaction.rb
|
186
288
|
- lib/ynab/models/scheduled_transaction_detail.rb
|
289
|
+
- lib/ynab/models/scheduled_transaction_detail_all_of.rb
|
187
290
|
- lib/ynab/models/scheduled_transaction_response.rb
|
188
291
|
- lib/ynab/models/scheduled_transaction_response_data.rb
|
189
292
|
- lib/ynab/models/scheduled_transaction_summary.rb
|
@@ -191,6 +294,7 @@ files:
|
|
191
294
|
- lib/ynab/models/scheduled_transactions_response_data.rb
|
192
295
|
- lib/ynab/models/sub_transaction.rb
|
193
296
|
- lib/ynab/models/transaction_detail.rb
|
297
|
+
- lib/ynab/models/transaction_detail_all_of.rb
|
194
298
|
- lib/ynab/models/transaction_response.rb
|
195
299
|
- lib/ynab/models/transaction_response_data.rb
|
196
300
|
- lib/ynab/models/transaction_summary.rb
|
@@ -198,13 +302,12 @@ files:
|
|
198
302
|
- lib/ynab/models/transactions_import_response_data.rb
|
199
303
|
- lib/ynab/models/transactions_response.rb
|
200
304
|
- lib/ynab/models/transactions_response_data.rb
|
201
|
-
- lib/ynab/models/update_transaction.rb
|
202
|
-
- lib/ynab/models/update_transactions_wrapper.rb
|
203
305
|
- lib/ynab/models/user.rb
|
204
306
|
- lib/ynab/models/user_response.rb
|
205
307
|
- lib/ynab/models/user_response_data.rb
|
206
308
|
- lib/ynab/overrides/transactions_api.rb
|
207
309
|
- lib/ynab/version.rb
|
310
|
+
- open_api_spec.yaml
|
208
311
|
- spec/api/accounts_spec.rb
|
209
312
|
- spec/api/budgets_spec.rb
|
210
313
|
- spec/api/categories_spec.rb
|
@@ -249,8 +352,13 @@ files:
|
|
249
352
|
- spec/fixtures/vcr_cassettes/transactions_unauthorized.yml
|
250
353
|
- spec/fixtures/vcr_cassettes/update_transaction.yml
|
251
354
|
- spec/fixtures/vcr_cassettes/update_transactions.yml
|
252
|
-
- spec/models/transaction_detail_spec.rb
|
253
355
|
- spec/spec_helper.rb
|
356
|
+
- templates/api_client.mustache
|
357
|
+
- templates/api_client_typhoeus_partial.mustache
|
358
|
+
- templates/api_doc.mustache
|
359
|
+
- templates/gem.mustache
|
360
|
+
- templates/partial_model_generic_doc.mustache
|
361
|
+
- ynab.gemspec
|
254
362
|
homepage: https://github.com/ynab/ynab-sdk-ruby
|
255
363
|
licenses:
|
256
364
|
- Apache-2.0
|
@@ -263,61 +371,60 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
263
371
|
requirements:
|
264
372
|
- - ">="
|
265
373
|
- !ruby/object:Gem::Version
|
266
|
-
version: '2.
|
374
|
+
version: '2.7'
|
267
375
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
268
376
|
requirements:
|
269
377
|
- - ">="
|
270
378
|
- !ruby/object:Gem::Version
|
271
379
|
version: '0'
|
272
380
|
requirements: []
|
273
|
-
rubygems_version: 3.
|
381
|
+
rubygems_version: 3.1.6
|
274
382
|
signing_key:
|
275
383
|
specification_version: 4
|
276
384
|
summary: YNAB API Endpoints Ruby Gem
|
277
385
|
test_files:
|
278
|
-
- spec/api/
|
279
|
-
- spec/api/months_spec.rb
|
280
|
-
- spec/api/payees_spec.rb
|
386
|
+
- spec/api/scheduled_transactions_spec.rb
|
281
387
|
- spec/api/accounts_spec.rb
|
282
388
|
- spec/api/categories_spec.rb
|
283
|
-
- spec/api/transactions_spec.rb
|
284
|
-
- spec/api/scheduled_transactions_spec.rb
|
285
389
|
- spec/api/payee_locations_spec.rb
|
390
|
+
- spec/api/payees_spec.rb
|
391
|
+
- spec/api/budgets_spec.rb
|
392
|
+
- spec/api/months_spec.rb
|
393
|
+
- spec/api/transactions_spec.rb
|
286
394
|
- spec/api_error_spec.rb
|
395
|
+
- spec/fixtures/vcr_cassettes/multiple_transactions.yml
|
287
396
|
- spec/fixtures/vcr_cassettes/payee_transactions.yml
|
288
|
-
- spec/fixtures/vcr_cassettes/
|
289
|
-
- spec/fixtures/vcr_cassettes/account.yml
|
290
|
-
- spec/fixtures/vcr_cassettes/months.yml
|
291
|
-
- spec/fixtures/vcr_cassettes/months_unauthorized.yml
|
292
|
-
- spec/fixtures/vcr_cassettes/accounts.yml
|
293
|
-
- spec/fixtures/vcr_cassettes/budgets.yml
|
294
|
-
- spec/fixtures/vcr_cassettes/payee_locations_unauthorized.yml
|
397
|
+
- spec/fixtures/vcr_cassettes/categories.yml
|
295
398
|
- spec/fixtures/vcr_cassettes/scheduled_transactions.yml
|
296
|
-
- spec/fixtures/vcr_cassettes/
|
297
|
-
- spec/fixtures/vcr_cassettes/patch_month_category.yml
|
298
|
-
- spec/fixtures/vcr_cassettes/category_transactions.yml
|
299
|
-
- spec/fixtures/vcr_cassettes/payee_location.yml
|
300
|
-
- spec/fixtures/vcr_cassettes/payees_unauthorized.yml
|
301
|
-
- spec/fixtures/vcr_cassettes/transactions_unauthorized.yml
|
302
|
-
- spec/fixtures/vcr_cassettes/bulk_transactions.yml
|
303
|
-
- spec/fixtures/vcr_cassettes/month.yml
|
304
|
-
- spec/fixtures/vcr_cassettes/transactions.yml
|
305
|
-
- spec/fixtures/vcr_cassettes/payee_locations.yml
|
399
|
+
- spec/fixtures/vcr_cassettes/accounts_unauthorized.yml
|
306
400
|
- spec/fixtures/vcr_cassettes/budget.yml
|
307
|
-
- spec/fixtures/vcr_cassettes/categories_unauthorized.yml
|
308
|
-
- spec/fixtures/vcr_cassettes/scheduled_transactions_unauthorized.yml
|
309
401
|
- spec/fixtures/vcr_cassettes/scheduled_transaction.yml
|
310
|
-
- spec/fixtures/vcr_cassettes/create_account.yml
|
311
|
-
- spec/fixtures/vcr_cassettes/categories.yml
|
312
|
-
- spec/fixtures/vcr_cassettes/category.yml
|
313
402
|
- spec/fixtures/vcr_cassettes/update_transaction.yml
|
314
|
-
- spec/fixtures/vcr_cassettes/budgets_unauthorized.yml
|
315
|
-
- spec/fixtures/vcr_cassettes/create_transaction.yml
|
316
403
|
- spec/fixtures/vcr_cassettes/create_transactions.yml
|
404
|
+
- spec/fixtures/vcr_cassettes/payees_unauthorized.yml
|
405
|
+
- spec/fixtures/vcr_cassettes/create_transaction.yml
|
406
|
+
- spec/fixtures/vcr_cassettes/budgets.yml
|
407
|
+
- spec/fixtures/vcr_cassettes/category_transactions.yml
|
408
|
+
- spec/fixtures/vcr_cassettes/accounts.yml
|
409
|
+
- spec/fixtures/vcr_cassettes/patch_month_category.yml
|
317
410
|
- spec/fixtures/vcr_cassettes/payee.yml
|
318
|
-
- spec/fixtures/vcr_cassettes/
|
411
|
+
- spec/fixtures/vcr_cassettes/payee_location.yml
|
412
|
+
- spec/fixtures/vcr_cassettes/update_transactions.yml
|
319
413
|
- spec/fixtures/vcr_cassettes/import_transactions.yml
|
320
|
-
- spec/fixtures/vcr_cassettes/
|
414
|
+
- spec/fixtures/vcr_cassettes/bulk_transactions.yml
|
415
|
+
- spec/fixtures/vcr_cassettes/payee_locations_unauthorized.yml
|
416
|
+
- spec/fixtures/vcr_cassettes/payees.yml
|
417
|
+
- spec/fixtures/vcr_cassettes/scheduled_transactions_unauthorized.yml
|
418
|
+
- spec/fixtures/vcr_cassettes/account.yml
|
419
|
+
- spec/fixtures/vcr_cassettes/payee_locations.yml
|
420
|
+
- spec/fixtures/vcr_cassettes/months_unauthorized.yml
|
421
|
+
- spec/fixtures/vcr_cassettes/months.yml
|
422
|
+
- spec/fixtures/vcr_cassettes/category.yml
|
423
|
+
- spec/fixtures/vcr_cassettes/budgets_unauthorized.yml
|
321
424
|
- spec/fixtures/vcr_cassettes/transaction.yml
|
322
|
-
- spec/
|
425
|
+
- spec/fixtures/vcr_cassettes/transactions.yml
|
426
|
+
- spec/fixtures/vcr_cassettes/month.yml
|
427
|
+
- spec/fixtures/vcr_cassettes/categories_unauthorized.yml
|
428
|
+
- spec/fixtures/vcr_cassettes/transactions_unauthorized.yml
|
429
|
+
- spec/fixtures/vcr_cassettes/create_account.yml
|
323
430
|
- spec/spec_helper.rb
|
@@ -1,175 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#YNAB API Endpoints
|
3
|
-
|
4
|
-
#Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
|
5
|
-
|
6
|
-
OpenAPI spec version: 1.0.0
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.14
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module YNAB
|
16
|
-
class LoanAccountPeriodicValue
|
17
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
18
|
-
def self.attribute_map
|
19
|
-
{
|
20
|
-
}
|
21
|
-
end
|
22
|
-
|
23
|
-
# Attribute type mapping.
|
24
|
-
def self.swagger_types
|
25
|
-
{
|
26
|
-
}
|
27
|
-
end
|
28
|
-
|
29
|
-
# Initializes the object
|
30
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
31
|
-
def initialize(attributes = {})
|
32
|
-
return unless attributes.is_a?(Hash)
|
33
|
-
|
34
|
-
# convert string to symbol for hash key
|
35
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
36
|
-
end
|
37
|
-
|
38
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
39
|
-
# @return Array for valid properties with the reasons
|
40
|
-
def list_invalid_properties
|
41
|
-
invalid_properties = Array.new
|
42
|
-
invalid_properties
|
43
|
-
end
|
44
|
-
|
45
|
-
# Check to see if the all the properties in the model are valid
|
46
|
-
# @return true if the model is valid
|
47
|
-
def valid?
|
48
|
-
true
|
49
|
-
end
|
50
|
-
|
51
|
-
# Checks equality by comparing each attribute.
|
52
|
-
# @param [Object] Object to be compared
|
53
|
-
def ==(o)
|
54
|
-
return true if self.equal?(o)
|
55
|
-
self.class == o.class
|
56
|
-
end
|
57
|
-
|
58
|
-
# @see the `==` method
|
59
|
-
# @param [Object] Object to be compared
|
60
|
-
def eql?(o)
|
61
|
-
self == o
|
62
|
-
end
|
63
|
-
|
64
|
-
# Calculates hash code according to all attributes.
|
65
|
-
# @return [Fixnum] Hash code
|
66
|
-
def hash
|
67
|
-
[].hash
|
68
|
-
end
|
69
|
-
# Builds the object from hash
|
70
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
71
|
-
# @return [Object] Returns the model itself
|
72
|
-
def build_from_hash(attributes)
|
73
|
-
return nil unless attributes.is_a?(Hash)
|
74
|
-
self.class.swagger_types.each_pair do |key, type|
|
75
|
-
if type =~ /\AArray<(.*)>/i
|
76
|
-
# check to ensure the input is an array given that the attribute
|
77
|
-
# is documented as an array but the input is not
|
78
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
79
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
80
|
-
end
|
81
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
82
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
83
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
84
|
-
end
|
85
|
-
|
86
|
-
self
|
87
|
-
end
|
88
|
-
|
89
|
-
# Deserializes the data based on type
|
90
|
-
# @param string type Data type
|
91
|
-
# @param string value Value to be deserialized
|
92
|
-
# @return [Object] Deserialized data
|
93
|
-
def _deserialize(type, value)
|
94
|
-
case type.to_sym
|
95
|
-
when :DateTime
|
96
|
-
DateTime.parse(value)
|
97
|
-
when :Date
|
98
|
-
Date.parse(value)
|
99
|
-
when :String
|
100
|
-
value.to_s
|
101
|
-
when :Integer
|
102
|
-
value.to_i
|
103
|
-
when :Float
|
104
|
-
value.to_f
|
105
|
-
when :BOOLEAN
|
106
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
107
|
-
true
|
108
|
-
else
|
109
|
-
false
|
110
|
-
end
|
111
|
-
when :Object
|
112
|
-
# generic object (usually a Hash), return directly
|
113
|
-
value
|
114
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
115
|
-
inner_type = Regexp.last_match[:inner_type]
|
116
|
-
value.map { |v| _deserialize(inner_type, v) }
|
117
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
118
|
-
k_type = Regexp.last_match[:k_type]
|
119
|
-
v_type = Regexp.last_match[:v_type]
|
120
|
-
{}.tap do |hash|
|
121
|
-
value.each do |k, v|
|
122
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
123
|
-
end
|
124
|
-
end
|
125
|
-
else # model
|
126
|
-
temp_model = YNAB.const_get(type).new
|
127
|
-
temp_model.build_from_hash(value)
|
128
|
-
end
|
129
|
-
end
|
130
|
-
|
131
|
-
# Returns the string representation of the object
|
132
|
-
# @return [String] String presentation of the object
|
133
|
-
def to_s
|
134
|
-
to_hash.to_s
|
135
|
-
end
|
136
|
-
|
137
|
-
# to_body is an alias to to_hash (backward compatibility)
|
138
|
-
# @return [Hash] Returns the object in the form of hash
|
139
|
-
def to_body
|
140
|
-
to_hash
|
141
|
-
end
|
142
|
-
|
143
|
-
# Returns the object in the form of hash
|
144
|
-
# @return [Hash] Returns the object in the form of hash
|
145
|
-
def to_hash
|
146
|
-
hash = {}
|
147
|
-
self.class.attribute_map.each_pair do |attr, param|
|
148
|
-
value = self.send(attr)
|
149
|
-
next if value.nil?
|
150
|
-
hash[param] = _to_hash(value)
|
151
|
-
end
|
152
|
-
hash
|
153
|
-
end
|
154
|
-
|
155
|
-
# Outputs non-array value in the form of hash
|
156
|
-
# For object, use to_hash. Otherwise, just return the value
|
157
|
-
# @param [Object] value Any valid value
|
158
|
-
# @return [Hash] Returns the value in the form of hash
|
159
|
-
def _to_hash(value)
|
160
|
-
if value.is_a?(Array)
|
161
|
-
value.compact.map { |v| _to_hash(v) }
|
162
|
-
elsif value.is_a?(Hash)
|
163
|
-
{}.tap do |hash|
|
164
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
165
|
-
end
|
166
|
-
elsif value.respond_to? :to_hash
|
167
|
-
value.to_hash
|
168
|
-
else
|
169
|
-
value
|
170
|
-
end
|
171
|
-
end
|
172
|
-
|
173
|
-
end
|
174
|
-
|
175
|
-
end
|