budgea_client 3.0.0 → 3.0.1

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.
Files changed (115) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +11 -1
  4. data/budgea_openapi.json +913 -105
  5. data/docs/AdministrationApi.md +12 -12
  6. data/docs/BanksApi.md +40 -38
  7. data/docs/Client.md +1 -6
  8. data/docs/Connection.md +1 -0
  9. data/docs/ConnectionLog.md +1 -0
  10. data/docs/ConnectionsApi.md +2 -0
  11. data/docs/Document.md +2 -3
  12. data/docs/DocumentsApi.md +24 -24
  13. data/docs/InlineResponse200.md +1 -0
  14. data/docs/InlineResponse20010.md +1 -0
  15. data/docs/InlineResponse20011.md +1 -0
  16. data/docs/InlineResponse20012.md +1 -0
  17. data/docs/InlineResponse20013.md +1 -0
  18. data/docs/InlineResponse20014.md +1 -0
  19. data/docs/InlineResponse20015.md +1 -0
  20. data/docs/InlineResponse20016.md +1 -0
  21. data/docs/InlineResponse20017.md +1 -0
  22. data/docs/InlineResponse20018.md +1 -0
  23. data/docs/InlineResponse20019.md +1 -1
  24. data/docs/InlineResponse20020.md +2 -1
  25. data/docs/InlineResponse20021.md +2 -1
  26. data/docs/InlineResponse20022.md +2 -1
  27. data/docs/InlineResponse20023.md +2 -1
  28. data/docs/InlineResponse20024.md +2 -1
  29. data/docs/InlineResponse20025.md +2 -1
  30. data/docs/InlineResponse20026.md +2 -1
  31. data/docs/InlineResponse20027.md +2 -1
  32. data/docs/InlineResponse20028.md +2 -1
  33. data/docs/InlineResponse20029.md +2 -1
  34. data/docs/InlineResponse20030.md +2 -1
  35. data/docs/InlineResponse20031.md +2 -1
  36. data/docs/InlineResponse20032.md +2 -1
  37. data/docs/InlineResponse20033.md +2 -1
  38. data/docs/InlineResponse20034.md +2 -1
  39. data/docs/InlineResponse20035.md +2 -1
  40. data/docs/InlineResponse20036.md +2 -1
  41. data/docs/InlineResponse20037.md +2 -1
  42. data/docs/InlineResponse20038.md +2 -1
  43. data/docs/InlineResponse20039.md +9 -0
  44. data/docs/InlineResponse20040.md +9 -0
  45. data/docs/InlineResponse2008.md +1 -0
  46. data/docs/InlineResponse2009.md +1 -0
  47. data/docs/PFMApi.md +15 -15
  48. data/docs/ProvidersApi.md +30 -28
  49. data/docs/RecipientLog.md +1 -0
  50. data/docs/TermsApi.md +4 -4
  51. data/docs/Transfer.md +2 -2
  52. data/docs/TransferLog.md +1 -0
  53. data/docs/TransfersApi.md +24 -24
  54. data/docs/UsersManagementApi.md +4 -4
  55. data/docs/WealthApi.md +524 -16
  56. data/lib/budgea_client.rb +2 -0
  57. data/lib/budgea_client/api/administration_api.rb +18 -18
  58. data/lib/budgea_client/api/banks_api.rb +60 -57
  59. data/lib/budgea_client/api/connections_api.rb +3 -0
  60. data/lib/budgea_client/api/documents_api.rb +36 -36
  61. data/lib/budgea_client/api/pfm_api.rb +19 -19
  62. data/lib/budgea_client/api/providers_api.rb +46 -43
  63. data/lib/budgea_client/api/terms_api.rb +6 -6
  64. data/lib/budgea_client/api/transfers_api.rb +36 -36
  65. data/lib/budgea_client/api/users_management_api.rb +6 -6
  66. data/lib/budgea_client/api/wealth_api.rb +552 -24
  67. data/lib/budgea_client/models/client.rb +8 -58
  68. data/lib/budgea_client/models/connection.rb +11 -1
  69. data/lib/budgea_client/models/connection_log.rb +14 -4
  70. data/lib/budgea_client/models/document.rb +18 -24
  71. data/lib/budgea_client/models/inline_response_200.rb +14 -4
  72. data/lib/budgea_client/models/inline_response_200_10.rb +14 -4
  73. data/lib/budgea_client/models/inline_response_200_11.rb +11 -1
  74. data/lib/budgea_client/models/inline_response_200_12.rb +11 -1
  75. data/lib/budgea_client/models/inline_response_200_13.rb +11 -1
  76. data/lib/budgea_client/models/inline_response_200_14.rb +14 -4
  77. data/lib/budgea_client/models/inline_response_200_15.rb +11 -1
  78. data/lib/budgea_client/models/inline_response_200_16.rb +14 -4
  79. data/lib/budgea_client/models/inline_response_200_17.rb +11 -1
  80. data/lib/budgea_client/models/inline_response_200_18.rb +11 -1
  81. data/lib/budgea_client/models/inline_response_200_19.rb +11 -11
  82. data/lib/budgea_client/models/inline_response_200_20.rb +21 -11
  83. data/lib/budgea_client/models/inline_response_200_21.rb +21 -11
  84. data/lib/budgea_client/models/inline_response_200_22.rb +21 -11
  85. data/lib/budgea_client/models/inline_response_200_23.rb +21 -11
  86. data/lib/budgea_client/models/inline_response_200_24.rb +21 -11
  87. data/lib/budgea_client/models/inline_response_200_25.rb +21 -11
  88. data/lib/budgea_client/models/inline_response_200_26.rb +21 -11
  89. data/lib/budgea_client/models/inline_response_200_27.rb +21 -11
  90. data/lib/budgea_client/models/inline_response_200_28.rb +21 -11
  91. data/lib/budgea_client/models/inline_response_200_29.rb +21 -11
  92. data/lib/budgea_client/models/inline_response_200_30.rb +21 -11
  93. data/lib/budgea_client/models/inline_response_200_31.rb +21 -11
  94. data/lib/budgea_client/models/inline_response_200_32.rb +21 -11
  95. data/lib/budgea_client/models/inline_response_200_33.rb +21 -11
  96. data/lib/budgea_client/models/inline_response_200_34.rb +21 -11
  97. data/lib/budgea_client/models/inline_response_200_35.rb +21 -11
  98. data/lib/budgea_client/models/inline_response_200_36.rb +21 -11
  99. data/lib/budgea_client/models/inline_response_200_37.rb +21 -11
  100. data/lib/budgea_client/models/inline_response_200_38.rb +21 -11
  101. data/lib/budgea_client/models/inline_response_200_39.rb +200 -0
  102. data/lib/budgea_client/models/inline_response_200_40.rb +200 -0
  103. data/lib/budgea_client/models/inline_response_200_8.rb +14 -4
  104. data/lib/budgea_client/models/inline_response_200_9.rb +14 -4
  105. data/lib/budgea_client/models/recipient_log.rb +14 -4
  106. data/lib/budgea_client/models/transfer.rb +2 -2
  107. data/lib/budgea_client/models/transfer_log.rb +14 -4
  108. data/lib/budgea_client/version.rb +1 -1
  109. data/original_budgea_openapi.json +911 -103
  110. data/pkg/budgea_client-2.0.0.gem +0 -0
  111. data/spec/models/inline_response_200_39_spec.rb +47 -0
  112. data/spec/models/inline_response_200_40_spec.rb +47 -0
  113. metadata +12 -5
  114. data/pkg/budgea_client-2.0.1.gem +0 -0
  115. data/pkg/budgea_client-2.0.2.gem +0 -0
@@ -14,19 +14,24 @@ require 'date'
14
14
 
15
15
  module BudgeaClient
16
16
  class InlineResponse20020
17
- attr_accessor :users
17
+ attr_accessor :termsofservices
18
+
19
+ # total number of results
20
+ attr_accessor :total
18
21
 
19
22
  # Attribute mapping from ruby-style variable name to JSON key.
20
23
  def self.attribute_map
21
24
  {
22
- :'users' => :'users'
25
+ :'termsofservices' => :'termsofservices',
26
+ :'total' => :'total'
23
27
  }
24
28
  end
25
29
 
26
30
  # Attribute type mapping.
27
31
  def self.swagger_types
28
32
  {
29
- :'users' => :'Array<User>'
33
+ :'termsofservices' => :'Array<TermsOfService>',
34
+ :'total' => :'Float'
30
35
  }
31
36
  end
32
37
 
@@ -38,19 +43,23 @@ module BudgeaClient
38
43
  # convert string to symbol for hash key
39
44
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
40
45
 
41
- if attributes.has_key?(:'users')
42
- if (value = attributes[:'users']).is_a?(Array)
43
- self.users = value
46
+ if attributes.has_key?(:'termsofservices')
47
+ if (value = attributes[:'termsofservices']).is_a?(Array)
48
+ self.termsofservices = value
44
49
  end
45
50
  end
51
+
52
+ if attributes.has_key?(:'total')
53
+ self.total = attributes[:'total']
54
+ end
46
55
  end
47
56
 
48
57
  # Show invalid properties with the reasons. Usually used together with valid?
49
58
  # @return Array for valid properties with the reasons
50
59
  def list_invalid_properties
51
60
  invalid_properties = Array.new
52
- if @users.nil?
53
- invalid_properties.push('invalid value for "users", users cannot be nil.')
61
+ if @termsofservices.nil?
62
+ invalid_properties.push('invalid value for "termsofservices", termsofservices cannot be nil.')
54
63
  end
55
64
 
56
65
  invalid_properties
@@ -59,7 +68,7 @@ module BudgeaClient
59
68
  # Check to see if the all the properties in the model are valid
60
69
  # @return true if the model is valid
61
70
  def valid?
62
- return false if @users.nil?
71
+ return false if @termsofservices.nil?
63
72
  true
64
73
  end
65
74
 
@@ -68,7 +77,8 @@ module BudgeaClient
68
77
  def ==(o)
69
78
  return true if self.equal?(o)
70
79
  self.class == o.class &&
71
- users == o.users
80
+ termsofservices == o.termsofservices &&
81
+ total == o.total
72
82
  end
73
83
 
74
84
  # @see the `==` method
@@ -80,7 +90,7 @@ module BudgeaClient
80
90
  # Calculates hash code according to all attributes.
81
91
  # @return [Fixnum] Hash code
82
92
  def hash
83
- [users].hash
93
+ [termsofservices, total].hash
84
94
  end
85
95
 
86
96
  # Builds the object from hash
@@ -14,19 +14,24 @@ require 'date'
14
14
 
15
15
  module BudgeaClient
16
16
  class InlineResponse20021
17
- attr_accessor :accounts
17
+ # total number of results
18
+ attr_accessor :total
19
+
20
+ attr_accessor :users
18
21
 
19
22
  # Attribute mapping from ruby-style variable name to JSON key.
20
23
  def self.attribute_map
21
24
  {
22
- :'accounts' => :'accounts'
25
+ :'total' => :'total',
26
+ :'users' => :'users'
23
27
  }
24
28
  end
25
29
 
26
30
  # Attribute type mapping.
27
31
  def self.swagger_types
28
32
  {
29
- :'accounts' => :'Array<Account>'
33
+ :'total' => :'Float',
34
+ :'users' => :'Array<User>'
30
35
  }
31
36
  end
32
37
 
@@ -38,9 +43,13 @@ module BudgeaClient
38
43
  # convert string to symbol for hash key
39
44
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
40
45
 
41
- if attributes.has_key?(:'accounts')
42
- if (value = attributes[:'accounts']).is_a?(Array)
43
- self.accounts = value
46
+ if attributes.has_key?(:'total')
47
+ self.total = attributes[:'total']
48
+ end
49
+
50
+ if attributes.has_key?(:'users')
51
+ if (value = attributes[:'users']).is_a?(Array)
52
+ self.users = value
44
53
  end
45
54
  end
46
55
  end
@@ -49,8 +58,8 @@ module BudgeaClient
49
58
  # @return Array for valid properties with the reasons
50
59
  def list_invalid_properties
51
60
  invalid_properties = Array.new
52
- if @accounts.nil?
53
- invalid_properties.push('invalid value for "accounts", accounts cannot be nil.')
61
+ if @users.nil?
62
+ invalid_properties.push('invalid value for "users", users cannot be nil.')
54
63
  end
55
64
 
56
65
  invalid_properties
@@ -59,7 +68,7 @@ module BudgeaClient
59
68
  # Check to see if the all the properties in the model are valid
60
69
  # @return true if the model is valid
61
70
  def valid?
62
- return false if @accounts.nil?
71
+ return false if @users.nil?
63
72
  true
64
73
  end
65
74
 
@@ -68,7 +77,8 @@ module BudgeaClient
68
77
  def ==(o)
69
78
  return true if self.equal?(o)
70
79
  self.class == o.class &&
71
- accounts == o.accounts
80
+ total == o.total &&
81
+ users == o.users
72
82
  end
73
83
 
74
84
  # @see the `==` method
@@ -80,7 +90,7 @@ module BudgeaClient
80
90
  # Calculates hash code according to all attributes.
81
91
  # @return [Fixnum] Hash code
82
92
  def hash
83
- [accounts].hash
93
+ [total, users].hash
84
94
  end
85
95
 
86
96
  # Builds the object from hash
@@ -14,19 +14,24 @@ require 'date'
14
14
 
15
15
  module BudgeaClient
16
16
  class InlineResponse20022
17
- attr_accessor :investments
17
+ # total number of results
18
+ attr_accessor :total
19
+
20
+ attr_accessor :accounts
18
21
 
19
22
  # Attribute mapping from ruby-style variable name to JSON key.
20
23
  def self.attribute_map
21
24
  {
22
- :'investments' => :'investments'
25
+ :'total' => :'total',
26
+ :'accounts' => :'accounts'
23
27
  }
24
28
  end
25
29
 
26
30
  # Attribute type mapping.
27
31
  def self.swagger_types
28
32
  {
29
- :'investments' => :'Array<Investment>'
33
+ :'total' => :'Float',
34
+ :'accounts' => :'Array<Account>'
30
35
  }
31
36
  end
32
37
 
@@ -38,9 +43,13 @@ module BudgeaClient
38
43
  # convert string to symbol for hash key
39
44
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
40
45
 
41
- if attributes.has_key?(:'investments')
42
- if (value = attributes[:'investments']).is_a?(Array)
43
- self.investments = value
46
+ if attributes.has_key?(:'total')
47
+ self.total = attributes[:'total']
48
+ end
49
+
50
+ if attributes.has_key?(:'accounts')
51
+ if (value = attributes[:'accounts']).is_a?(Array)
52
+ self.accounts = value
44
53
  end
45
54
  end
46
55
  end
@@ -49,8 +58,8 @@ module BudgeaClient
49
58
  # @return Array for valid properties with the reasons
50
59
  def list_invalid_properties
51
60
  invalid_properties = Array.new
52
- if @investments.nil?
53
- invalid_properties.push('invalid value for "investments", investments cannot be nil.')
61
+ if @accounts.nil?
62
+ invalid_properties.push('invalid value for "accounts", accounts cannot be nil.')
54
63
  end
55
64
 
56
65
  invalid_properties
@@ -59,7 +68,7 @@ module BudgeaClient
59
68
  # Check to see if the all the properties in the model are valid
60
69
  # @return true if the model is valid
61
70
  def valid?
62
- return false if @investments.nil?
71
+ return false if @accounts.nil?
63
72
  true
64
73
  end
65
74
 
@@ -68,7 +77,8 @@ module BudgeaClient
68
77
  def ==(o)
69
78
  return true if self.equal?(o)
70
79
  self.class == o.class &&
71
- investments == o.investments
80
+ total == o.total &&
81
+ accounts == o.accounts
72
82
  end
73
83
 
74
84
  # @see the `==` method
@@ -80,7 +90,7 @@ module BudgeaClient
80
90
  # Calculates hash code according to all attributes.
81
91
  # @return [Fixnum] Hash code
82
92
  def hash
83
- [investments].hash
93
+ [total, accounts].hash
84
94
  end
85
95
 
86
96
  # Builds the object from hash
@@ -14,19 +14,24 @@ require 'date'
14
14
 
15
15
  module BudgeaClient
16
16
  class InlineResponse20023
17
- attr_accessor :investmentvalues
17
+ # total number of results
18
+ attr_accessor :total
19
+
20
+ attr_accessor :investments
18
21
 
19
22
  # Attribute mapping from ruby-style variable name to JSON key.
20
23
  def self.attribute_map
21
24
  {
22
- :'investmentvalues' => :'investmentvalues'
25
+ :'total' => :'total',
26
+ :'investments' => :'investments'
23
27
  }
24
28
  end
25
29
 
26
30
  # Attribute type mapping.
27
31
  def self.swagger_types
28
32
  {
29
- :'investmentvalues' => :'Array<InvestmentValue>'
33
+ :'total' => :'Float',
34
+ :'investments' => :'Array<Investment>'
30
35
  }
31
36
  end
32
37
 
@@ -38,9 +43,13 @@ module BudgeaClient
38
43
  # convert string to symbol for hash key
39
44
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
40
45
 
41
- if attributes.has_key?(:'investmentvalues')
42
- if (value = attributes[:'investmentvalues']).is_a?(Array)
43
- self.investmentvalues = value
46
+ if attributes.has_key?(:'total')
47
+ self.total = attributes[:'total']
48
+ end
49
+
50
+ if attributes.has_key?(:'investments')
51
+ if (value = attributes[:'investments']).is_a?(Array)
52
+ self.investments = value
44
53
  end
45
54
  end
46
55
  end
@@ -49,8 +58,8 @@ module BudgeaClient
49
58
  # @return Array for valid properties with the reasons
50
59
  def list_invalid_properties
51
60
  invalid_properties = Array.new
52
- if @investmentvalues.nil?
53
- invalid_properties.push('invalid value for "investmentvalues", investmentvalues cannot be nil.')
61
+ if @investments.nil?
62
+ invalid_properties.push('invalid value for "investments", investments cannot be nil.')
54
63
  end
55
64
 
56
65
  invalid_properties
@@ -59,7 +68,7 @@ module BudgeaClient
59
68
  # Check to see if the all the properties in the model are valid
60
69
  # @return true if the model is valid
61
70
  def valid?
62
- return false if @investmentvalues.nil?
71
+ return false if @investments.nil?
63
72
  true
64
73
  end
65
74
 
@@ -68,7 +77,8 @@ module BudgeaClient
68
77
  def ==(o)
69
78
  return true if self.equal?(o)
70
79
  self.class == o.class &&
71
- investmentvalues == o.investmentvalues
80
+ total == o.total &&
81
+ investments == o.investments
72
82
  end
73
83
 
74
84
  # @see the `==` method
@@ -80,7 +90,7 @@ module BudgeaClient
80
90
  # Calculates hash code according to all attributes.
81
91
  # @return [Fixnum] Hash code
82
92
  def hash
83
- [investmentvalues].hash
93
+ [total, investments].hash
84
94
  end
85
95
 
86
96
  # Builds the object from hash
@@ -14,19 +14,24 @@ require 'date'
14
14
 
15
15
  module BudgeaClient
16
16
  class InlineResponse20024
17
- attr_accessor :accountlogs
17
+ attr_accessor :investmentvalues
18
+
19
+ # total number of results
20
+ attr_accessor :total
18
21
 
19
22
  # Attribute mapping from ruby-style variable name to JSON key.
20
23
  def self.attribute_map
21
24
  {
22
- :'accountlogs' => :'accountlogs'
25
+ :'investmentvalues' => :'investmentvalues',
26
+ :'total' => :'total'
23
27
  }
24
28
  end
25
29
 
26
30
  # Attribute type mapping.
27
31
  def self.swagger_types
28
32
  {
29
- :'accountlogs' => :'Array<AccountLog>'
33
+ :'investmentvalues' => :'Array<InvestmentValue>',
34
+ :'total' => :'Float'
30
35
  }
31
36
  end
32
37
 
@@ -38,19 +43,23 @@ module BudgeaClient
38
43
  # convert string to symbol for hash key
39
44
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
40
45
 
41
- if attributes.has_key?(:'accountlogs')
42
- if (value = attributes[:'accountlogs']).is_a?(Array)
43
- self.accountlogs = value
46
+ if attributes.has_key?(:'investmentvalues')
47
+ if (value = attributes[:'investmentvalues']).is_a?(Array)
48
+ self.investmentvalues = value
44
49
  end
45
50
  end
51
+
52
+ if attributes.has_key?(:'total')
53
+ self.total = attributes[:'total']
54
+ end
46
55
  end
47
56
 
48
57
  # Show invalid properties with the reasons. Usually used together with valid?
49
58
  # @return Array for valid properties with the reasons
50
59
  def list_invalid_properties
51
60
  invalid_properties = Array.new
52
- if @accountlogs.nil?
53
- invalid_properties.push('invalid value for "accountlogs", accountlogs cannot be nil.')
61
+ if @investmentvalues.nil?
62
+ invalid_properties.push('invalid value for "investmentvalues", investmentvalues cannot be nil.')
54
63
  end
55
64
 
56
65
  invalid_properties
@@ -59,7 +68,7 @@ module BudgeaClient
59
68
  # Check to see if the all the properties in the model are valid
60
69
  # @return true if the model is valid
61
70
  def valid?
62
- return false if @accountlogs.nil?
71
+ return false if @investmentvalues.nil?
63
72
  true
64
73
  end
65
74
 
@@ -68,7 +77,8 @@ module BudgeaClient
68
77
  def ==(o)
69
78
  return true if self.equal?(o)
70
79
  self.class == o.class &&
71
- accountlogs == o.accountlogs
80
+ investmentvalues == o.investmentvalues &&
81
+ total == o.total
72
82
  end
73
83
 
74
84
  # @see the `==` method
@@ -80,7 +90,7 @@ module BudgeaClient
80
90
  # Calculates hash code according to all attributes.
81
91
  # @return [Fixnum] Hash code
82
92
  def hash
83
- [accountlogs].hash
93
+ [investmentvalues, total].hash
84
94
  end
85
95
 
86
96
  # Builds the object from hash
@@ -14,19 +14,24 @@ require 'date'
14
14
 
15
15
  module BudgeaClient
16
16
  class InlineResponse20025
17
- attr_accessor :useralerts
17
+ # total number of results
18
+ attr_accessor :total
19
+
20
+ attr_accessor :pockets
18
21
 
19
22
  # Attribute mapping from ruby-style variable name to JSON key.
20
23
  def self.attribute_map
21
24
  {
22
- :'useralerts' => :'useralerts'
25
+ :'total' => :'total',
26
+ :'pockets' => :'pockets'
23
27
  }
24
28
  end
25
29
 
26
30
  # Attribute type mapping.
27
31
  def self.swagger_types
28
32
  {
29
- :'useralerts' => :'Array<UserAlert>'
33
+ :'total' => :'Float',
34
+ :'pockets' => :'Array<Pocket>'
30
35
  }
31
36
  end
32
37
 
@@ -38,9 +43,13 @@ module BudgeaClient
38
43
  # convert string to symbol for hash key
39
44
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
40
45
 
41
- if attributes.has_key?(:'useralerts')
42
- if (value = attributes[:'useralerts']).is_a?(Array)
43
- self.useralerts = value
46
+ if attributes.has_key?(:'total')
47
+ self.total = attributes[:'total']
48
+ end
49
+
50
+ if attributes.has_key?(:'pockets')
51
+ if (value = attributes[:'pockets']).is_a?(Array)
52
+ self.pockets = value
44
53
  end
45
54
  end
46
55
  end
@@ -49,8 +58,8 @@ module BudgeaClient
49
58
  # @return Array for valid properties with the reasons
50
59
  def list_invalid_properties
51
60
  invalid_properties = Array.new
52
- if @useralerts.nil?
53
- invalid_properties.push('invalid value for "useralerts", useralerts cannot be nil.')
61
+ if @pockets.nil?
62
+ invalid_properties.push('invalid value for "pockets", pockets cannot be nil.')
54
63
  end
55
64
 
56
65
  invalid_properties
@@ -59,7 +68,7 @@ module BudgeaClient
59
68
  # Check to see if the all the properties in the model are valid
60
69
  # @return true if the model is valid
61
70
  def valid?
62
- return false if @useralerts.nil?
71
+ return false if @pockets.nil?
63
72
  true
64
73
  end
65
74
 
@@ -68,7 +77,8 @@ module BudgeaClient
68
77
  def ==(o)
69
78
  return true if self.equal?(o)
70
79
  self.class == o.class &&
71
- useralerts == o.useralerts
80
+ total == o.total &&
81
+ pockets == o.pockets
72
82
  end
73
83
 
74
84
  # @see the `==` method
@@ -80,7 +90,7 @@ module BudgeaClient
80
90
  # Calculates hash code according to all attributes.
81
91
  # @return [Fixnum] Hash code
82
92
  def hash
83
- [useralerts].hash
93
+ [total, pockets].hash
84
94
  end
85
95
 
86
96
  # Builds the object from hash