ynab 1.12.0 → 1.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '088c17220a46804e4e8f2f6cc7970bd517e6d9d7b039f92f936419127544d913'
4
- data.tar.gz: cb36aac50f59d983dd2138ff3e58a38a65df2d2f0657d72d42c9538b857265be
3
+ metadata.gz: f6da546079c4883af6fa184f17467ae41764277c936c9788457514c325558d15
4
+ data.tar.gz: 8a68512c9bb8bca7616ad7900cfbce34d52b8e3daa942c6f233e5261c21d34a5
5
5
  SHA512:
6
- metadata.gz: c8c0fb26a5bd32f0775a2877936fb8c794fb65c6a32f8b9b7465bcbac326f922661e6e47cc11cba40c4455d395c15f10e12898f56b2996632331b6e4923f22fb
7
- data.tar.gz: 2b813fb13d736b9f6238e90b48ba50d9974d9e5c04860e361c706db23b9c84b4f9ea998ad3dcb69077e2d3c8a63c737b6dbc64c5877a2f877562fe4550762f79
6
+ metadata.gz: b070d8f263a20e3c344266cc8a1881adabe9c0e800b8d879c29e359716d8456f5a51a37164dff748a12b87e8f394fbcad1cc1fd73d40f3bb0c37f014754c2a9f
7
+ data.tar.gz: 261141d695e12bafab8523a928616153303bb32b5a65c506daa25e3876156ed2223c1c3a447121b26770b045b201ef37860b524cd727e684aa667ba6dfdc651e
@@ -81,6 +81,7 @@ module YNAB
81
81
  # Returns all scheduled transactions
82
82
  # @param budget_id 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)
83
83
  # @param [Hash] opts the optional parameters
84
+ # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
84
85
  # @return [ScheduledTransactionsResponse]
85
86
  def get_scheduled_transactions(budget_id, opts = {})
86
87
  data, _status_code, _headers = get_scheduled_transactions_with_http_info(budget_id, opts)
@@ -91,6 +92,7 @@ module YNAB
91
92
  # Returns all scheduled transactions
92
93
  # @param budget_id 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)
93
94
  # @param [Hash] opts the optional parameters
95
+ # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
94
96
  # @return [Array<(ScheduledTransactionsResponse, Fixnum, Hash)>] ScheduledTransactionsResponse data, response status code and response headers
95
97
  def get_scheduled_transactions_with_http_info(budget_id, opts = {})
96
98
  if @api_client.config.debugging
@@ -105,6 +107,7 @@ module YNAB
105
107
 
106
108
  # query parameters
107
109
  query_params = {}
110
+ query_params[:'last_knowledge_of_server'] = opts[:'last_knowledge_of_server'] if !opts[:'last_knowledge_of_server'].nil?
108
111
 
109
112
  # header parameters
110
113
  header_params = {}
@@ -16,17 +16,22 @@ module YNAB
16
16
  class ScheduledTransactionsResponseData
17
17
  attr_accessor :scheduled_transactions
18
18
 
19
+ # The knowledge of the server
20
+ attr_accessor :server_knowledge
21
+
19
22
  # Attribute mapping from ruby-style variable name to JSON key.
20
23
  def self.attribute_map
21
24
  {
22
- :'scheduled_transactions' => :'scheduled_transactions'
25
+ :'scheduled_transactions' => :'scheduled_transactions',
26
+ :'server_knowledge' => :'server_knowledge'
23
27
  }
24
28
  end
25
29
 
26
30
  # Attribute type mapping.
27
31
  def self.swagger_types
28
32
  {
29
- :'scheduled_transactions' => :'Array<ScheduledTransactionDetail>'
33
+ :'scheduled_transactions' => :'Array<ScheduledTransactionDetail>',
34
+ :'server_knowledge' => :'Integer'
30
35
  }
31
36
  end
32
37
 
@@ -43,6 +48,10 @@ module YNAB
43
48
  self.scheduled_transactions = value
44
49
  end
45
50
  end
51
+
52
+ if attributes.has_key?(:'server_knowledge')
53
+ self.server_knowledge = attributes[:'server_knowledge']
54
+ end
46
55
  end
47
56
 
48
57
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -53,6 +62,10 @@ module YNAB
53
62
  invalid_properties.push('invalid value for "scheduled_transactions", scheduled_transactions cannot be nil.')
54
63
  end
55
64
 
65
+ if @server_knowledge.nil?
66
+ invalid_properties.push('invalid value for "server_knowledge", server_knowledge cannot be nil.')
67
+ end
68
+
56
69
  invalid_properties
57
70
  end
58
71
 
@@ -60,6 +73,7 @@ module YNAB
60
73
  # @return true if the model is valid
61
74
  def valid?
62
75
  return false if @scheduled_transactions.nil?
76
+ return false if @server_knowledge.nil?
63
77
  true
64
78
  end
65
79
 
@@ -68,7 +82,8 @@ module YNAB
68
82
  def ==(o)
69
83
  return true if self.equal?(o)
70
84
  self.class == o.class &&
71
- scheduled_transactions == o.scheduled_transactions
85
+ scheduled_transactions == o.scheduled_transactions &&
86
+ server_knowledge == o.server_knowledge
72
87
  end
73
88
 
74
89
  # @see the `==` method
@@ -80,7 +95,7 @@ module YNAB
80
95
  # Calculates hash code according to all attributes.
81
96
  # @return [Fixnum] Hash code
82
97
  def hash
83
- [scheduled_transactions].hash
98
+ [scheduled_transactions, server_knowledge].hash
84
99
  end
85
100
 
86
101
  # Builds the object from hash
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.0-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module YNAB
14
- VERSION = '1.12.0'
14
+ VERSION = '1.13.0'
15
15
  end
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: 1.12.0
4
+ version: 1.13.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: 2019-07-17 00:00:00.000000000 Z
11
+ date: 2019-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -251,7 +251,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
251
251
  - !ruby/object:Gem::Version
252
252
  version: '0'
253
253
  requirements: []
254
- rubygems_version: 3.0.3
254
+ rubygems_version: 3.0.4
255
255
  signing_key:
256
256
  specification_version: 4
257
257
  summary: YNAB API Endpoints Ruby Gem