ynab 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +24 -24
  4. data/Rakefile +1 -1
  5. data/config.json +1 -1
  6. data/docs/AccountsApi.md +0 -76
  7. data/docs/BudgetsApi.md +0 -74
  8. data/docs/CategoriesApi.md +0 -76
  9. data/docs/CurrencyFormat.md +8 -1
  10. data/docs/DateFormat.md +1 -1
  11. data/docs/HybridTransaction.md +3 -0
  12. data/docs/MonthsApi.md +0 -76
  13. data/docs/PayeeLocationsApi.md +0 -115
  14. data/docs/PayeesApi.md +0 -76
  15. data/docs/ScheduledTransactionsApi.md +0 -76
  16. data/docs/TransactionsApi.md +0 -325
  17. data/docs/UserApi.md +0 -34
  18. data/lib/ynab/api/accounts_api.rb +8 -10
  19. data/lib/ynab/api/budgets_api.rb +8 -10
  20. data/lib/ynab/api/categories_api.rb +8 -10
  21. data/lib/ynab/api/months_api.rb +8 -10
  22. data/lib/ynab/api/payee_locations_api.rb +11 -14
  23. data/lib/ynab/api/payees_api.rb +8 -10
  24. data/lib/ynab/api/scheduled_transactions_api.rb +8 -10
  25. data/lib/ynab/api/transactions_api.rb +26 -34
  26. data/lib/ynab/api/user_api.rb +5 -6
  27. data/lib/ynab/api_client.rb +1 -1
  28. data/lib/ynab/api_error.rb +1 -1
  29. data/lib/ynab/configuration.rb +2 -2
  30. data/lib/ynab/models/account.rb +18 -22
  31. data/lib/ynab/models/account_response.rb +7 -12
  32. data/lib/ynab/models/account_wrapper.rb +7 -12
  33. data/lib/ynab/models/accounts_response.rb +7 -12
  34. data/lib/ynab/models/accounts_wrapper.rb +7 -12
  35. data/lib/ynab/models/budget_detail.rb +8 -13
  36. data/lib/ynab/models/budget_detail_response.rb +7 -12
  37. data/lib/ynab/models/budget_detail_wrapper.rb +8 -13
  38. data/lib/ynab/models/budget_summary.rb +8 -13
  39. data/lib/ynab/models/budget_summary_response.rb +7 -12
  40. data/lib/ynab/models/budget_summary_wrapper.rb +7 -12
  41. data/lib/ynab/models/bulk_id_wrapper.rb +7 -12
  42. data/lib/ynab/models/bulk_ids.rb +8 -13
  43. data/lib/ynab/models/bulk_response.rb +7 -12
  44. data/lib/ynab/models/bulk_transactions.rb +7 -12
  45. data/lib/ynab/models/categories_response.rb +7 -12
  46. data/lib/ynab/models/category.rb +14 -19
  47. data/lib/ynab/models/category_group.rb +9 -14
  48. data/lib/ynab/models/category_group_with_categories.rb +10 -15
  49. data/lib/ynab/models/category_groups_wrapper.rb +7 -12
  50. data/lib/ynab/models/category_response.rb +7 -12
  51. data/lib/ynab/models/category_wrapper.rb +7 -12
  52. data/lib/ynab/models/currency_format.rb +112 -19
  53. data/lib/ynab/models/date_format.rb +16 -21
  54. data/lib/ynab/models/error_detail.rb +9 -14
  55. data/lib/ynab/models/error_response.rb +7 -12
  56. data/lib/ynab/models/hybrid_transaction.rb +74 -36
  57. data/lib/ynab/models/hybrid_transactions_response.rb +7 -12
  58. data/lib/ynab/models/hybrid_transactions_wrapper.rb +7 -12
  59. data/lib/ynab/models/month_detail.rb +11 -16
  60. data/lib/ynab/models/month_detail_response.rb +7 -12
  61. data/lib/ynab/models/month_detail_wrapper.rb +7 -12
  62. data/lib/ynab/models/month_summaries_response.rb +7 -12
  63. data/lib/ynab/models/month_summaries_wrapper.rb +7 -12
  64. data/lib/ynab/models/month_summary.rb +10 -15
  65. data/lib/ynab/models/payee.rb +9 -14
  66. data/lib/ynab/models/payee_location.rb +10 -15
  67. data/lib/ynab/models/payee_location_response.rb +7 -12
  68. data/lib/ynab/models/payee_location_wrapper.rb +7 -12
  69. data/lib/ynab/models/payee_locations_response.rb +7 -12
  70. data/lib/ynab/models/payee_locations_wrapper.rb +7 -12
  71. data/lib/ynab/models/payee_response.rb +7 -12
  72. data/lib/ynab/models/payee_wrapper.rb +7 -12
  73. data/lib/ynab/models/payees_response.rb +7 -12
  74. data/lib/ynab/models/payees_wrapper.rb +7 -12
  75. data/lib/ynab/models/save_transaction.rb +15 -19
  76. data/lib/ynab/models/save_transaction_wrapper.rb +7 -12
  77. data/lib/ynab/models/scheduled_sub_transaction.rb +13 -18
  78. data/lib/ynab/models/scheduled_transaction_detail.rb +27 -31
  79. data/lib/ynab/models/scheduled_transaction_response.rb +7 -12
  80. data/lib/ynab/models/scheduled_transaction_summary.rb +23 -27
  81. data/lib/ynab/models/scheduled_transaction_wrapper.rb +7 -12
  82. data/lib/ynab/models/scheduled_transactions_response.rb +7 -12
  83. data/lib/ynab/models/scheduled_transactions_wrapper.rb +7 -12
  84. data/lib/ynab/models/sub_transaction.rb +13 -18
  85. data/lib/ynab/models/transaction_detail.rb +28 -32
  86. data/lib/ynab/models/transaction_response.rb +7 -12
  87. data/lib/ynab/models/transaction_summary.rb +24 -28
  88. data/lib/ynab/models/transaction_wrapper.rb +7 -12
  89. data/lib/ynab/models/transactions_response.rb +7 -12
  90. data/lib/ynab/models/transactions_wrapper.rb +7 -12
  91. data/lib/ynab/models/user.rb +7 -12
  92. data/lib/ynab/models/user_response.rb +7 -12
  93. data/lib/ynab/models/user_wrapper.rb +7 -12
  94. data/lib/ynab/version.rb +2 -2
  95. data/spec-v1-swagger.json +50 -5
  96. data/swagger-templates/api_doc.mustache +32 -0
  97. data/ynab.gemspec +1 -1
  98. metadata +4 -3
@@ -6,10 +6,10 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
13
  module YnabApi
14
- VERSION = "0.6.0"
14
+ VERSION = '0.7.0'
15
15
  end
@@ -1254,19 +1254,49 @@
1254
1254
  },
1255
1255
  "DateFormat": {
1256
1256
  "type": "object",
1257
- "required": ["locale"],
1257
+ "required": ["format"],
1258
1258
  "properties": {
1259
- "locale": {
1259
+ "format": {
1260
1260
  "type": "string"
1261
1261
  }
1262
1262
  }
1263
1263
  },
1264
1264
  "CurrencyFormat": {
1265
1265
  "type": "object",
1266
- "required": ["locale"],
1266
+ "required": [
1267
+ "iso_code",
1268
+ "example_format",
1269
+ "decimal_digits",
1270
+ "decimal_separator",
1271
+ "symbol_first",
1272
+ "group_separator",
1273
+ "currency_symbol",
1274
+ "display_symbol"
1275
+ ],
1267
1276
  "properties": {
1268
- "locale": {
1277
+ "iso_code": {
1278
+ "type": "string"
1279
+ },
1280
+ "example_format": {
1281
+ "type": "string"
1282
+ },
1283
+ "decimal_digits": {
1284
+ "type": "string"
1285
+ },
1286
+ "decimal_separator": {
1269
1287
  "type": "string"
1288
+ },
1289
+ "symbol_first": {
1290
+ "type": "boolean"
1291
+ },
1292
+ "group_separator": {
1293
+ "type": "string"
1294
+ },
1295
+ "currency_symbol": {
1296
+ "type": "string"
1297
+ },
1298
+ "display_symbol": {
1299
+ "type": "boolean"
1270
1300
  }
1271
1301
  }
1272
1302
  },
@@ -1857,7 +1887,13 @@
1857
1887
  },
1858
1888
  {
1859
1889
  "type": "object",
1860
- "required": ["type", "parent_transaction_id"],
1890
+ "required": [
1891
+ "type",
1892
+ "parent_transaction_id",
1893
+ "account_name",
1894
+ "payee_name",
1895
+ "category_name"
1896
+ ],
1861
1897
  "properties": {
1862
1898
  "type": {
1863
1899
  "type": "string",
@@ -1870,6 +1906,15 @@
1870
1906
  "format": "uuid",
1871
1907
  "description":
1872
1908
  "For subtransaction types, this is the id of the pararent transaction. For transaction types, this id will be always be null."
1909
+ },
1910
+ "account_name": {
1911
+ "type": "string"
1912
+ },
1913
+ "payee_name": {
1914
+ "type": "string"
1915
+ },
1916
+ "category_name": {
1917
+ "type": "string"
1873
1918
  }
1874
1919
  }
1875
1920
  }
@@ -0,0 +1,32 @@
1
+ # {{moduleName}}::{{classname}}{{#description}}
2
+ {{description}}{{/description}}
3
+
4
+ All URIs are relative to *{{basePath}}*
5
+
6
+ Method | HTTP request | Description
7
+ ------------- | ------------- | -------------
8
+ {{#operations}}{{#operation}}[**{{operationId}}**]({{classname}}.md#{{operationId}}) | **{{httpMethod}}** {{path}} | {{#summary}}{{summary}}{{/summary}}
9
+ {{/operation}}{{/operations}}
10
+
11
+ {{#operations}}
12
+ {{#operation}}
13
+ # **{{operationId}}**
14
+ > {{#returnType}}{{returnType}} {{/returnType}}{{operationId}}{{#hasParams}}({{#allParams}}{{#required}}{{{paramName}}}{{#vendorExtensions.x-codegen-hasMoreRequired}}, {{/vendorExtensions.x-codegen-hasMoreRequired}}{{/required}}{{/allParams}}{{#hasOptionalParams}}{{#vendorExtensions.x-codegen-hasRequiredParams}}, {{/vendorExtensions.x-codegen-hasRequiredParams}}opts{{/hasOptionalParams}}){{/hasParams}}
15
+
16
+ {{{summary}}}{{#notes}}
17
+
18
+ {{{notes}}}{{/notes}}
19
+
20
+ ### Parameters
21
+ {{^allParams}}This endpoint does not need any parameter.{{/allParams}}{{#allParams}}{{#-last}}
22
+ Name | Type | Description | Notes
23
+ ------------- | ------------- | ------------- | -------------{{/-last}}{{/allParams}}
24
+ {{#allParams}} **{{paramName}}** | {{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}{{^isPrimitiveType}}{{#isFile}}**{{dataType}}**{{/isFile}}{{^isFile}}[**{{dataType}}**]({{baseType}}.md){{/isFile}}{{/isPrimitiveType}}| {{description}} | {{^required}}[optional] {{/required}}{{#defaultValue}}[default to {{defaultValue}}]{{/defaultValue}}
25
+ {{/allParams}}
26
+
27
+ ### Return type
28
+
29
+ {{#returnType}}{{#returnTypeIsPrimitive}}**{{returnType}}**{{/returnTypeIsPrimitive}}{{^returnTypeIsPrimitive}}[**{{returnType}}**]({{returnBaseType}}.md){{/returnTypeIsPrimitive}}{{/returnType}}{{^returnType}}nil (empty response body){{/returnType}}
30
+
31
+ {{/operation}}
32
+ {{/operations}}
@@ -8,7 +8,7 @@
8
8
  OpenAPI spec version: 1.0.0
9
9
 
10
10
  Generated by: https://github.com/swagger-api/swagger-codegen.git
11
- Swagger Codegen version: 2.3.1
11
+ Swagger Codegen version: 2.4.0-SNAPSHOT
12
12
 
13
13
  =end
14
14
 
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: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - You Need A Budget, LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-27 00:00:00.000000000 Z
11
+ date: 2018-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -302,6 +302,7 @@ files:
302
302
  - spec/fixtures/vcr_cassettes/update_transaction.yml
303
303
  - spec/spec_helper.rb
304
304
  - swagger-templates/api_client.mustache
305
+ - swagger-templates/api_doc.mustache
305
306
  - swagger-templates/gemspec.mustache
306
307
  - ynab.gemspec
307
308
  homepage: https://github.com/ynab/ynab-sdk-ruby
@@ -324,7 +325,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
324
325
  version: '0'
325
326
  requirements: []
326
327
  rubyforge_project:
327
- rubygems_version: 2.6.14
328
+ rubygems_version: 2.6.14.1
328
329
  signing_key:
329
330
  specification_version: 4
330
331
  summary: YNAB API Endpoints Ruby Gem