trustcomponent 0.0.1.beta.2 → 0.0.1.beta.3

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 (86) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -5
  3. data/lib/trustcomponent/errors.rb +3 -1
  4. data/lib/trustcomponent_generated/api/analytics_server_events_api.rb +1 -1
  5. data/lib/trustcomponent_generated/api/analytics_websites_api.rb +15 -9
  6. data/lib/trustcomponent_generated/api/captcha_verifications_api.rb +4 -4
  7. data/lib/trustcomponent_generated/api/monitoring_heartbeats_api.rb +1 -1
  8. data/lib/trustcomponent_generated/api/platform_events_api.rb +181 -1
  9. data/lib/trustcomponent_generated/api/platform_projects_api.rb +97 -0
  10. data/lib/trustcomponent_generated/api/tax_validation_schedules_api.rb +15 -7
  11. data/lib/trustcomponent_generated/api/tax_validation_validation_results_api.rb +1 -1
  12. data/lib/trustcomponent_generated/api/tax_validation_validations_api.rb +29 -15
  13. data/lib/trustcomponent_generated/api_client.rb +1 -1
  14. data/lib/trustcomponent_generated/api_error.rb +1 -1
  15. data/lib/trustcomponent_generated/api_model_base.rb +1 -1
  16. data/lib/trustcomponent_generated/configuration.rb +1 -1
  17. data/lib/trustcomponent_generated/models/analytics_event_category_enum.rb +1 -1
  18. data/lib/trustcomponent_generated/models/analytics_realtime.rb +1 -1
  19. data/lib/trustcomponent_generated/models/analytics_realtime_page.rb +1 -1
  20. data/lib/trustcomponent_generated/models/analytics_realtime_point.rb +1 -1
  21. data/lib/trustcomponent_generated/models/analytics_server_event_batch_create_params.rb +1 -1
  22. data/lib/trustcomponent_generated/models/analytics_server_event_batch_event_commerce_create_params.rb +1 -1
  23. data/lib/trustcomponent_generated/models/analytics_server_event_batch_event_commerce_product_create_params.rb +1 -1
  24. data/lib/trustcomponent_generated/models/analytics_server_event_batch_event_create_params.rb +1 -1
  25. data/lib/trustcomponent_generated/models/analytics_server_event_batch_event_error_create_params.rb +1 -1
  26. data/lib/trustcomponent_generated/models/analytics_server_event_batch_event_refund_create_params.rb +1 -1
  27. data/lib/trustcomponent_generated/models/analytics_server_event_batch_result.rb +1 -1
  28. data/lib/trustcomponent_generated/models/analytics_server_event_batch_result_drop_reason_enum.rb +1 -1
  29. data/lib/trustcomponent_generated/models/analytics_server_event_batch_result_dropped.rb +1 -1
  30. data/lib/trustcomponent_generated/models/analytics_stats_breakdown.rb +1 -1
  31. data/lib/trustcomponent_generated/models/analytics_stats_breakdown_row.rb +1 -1
  32. data/lib/trustcomponent_generated/models/analytics_stats_breakdown_row_page.rb +1 -1
  33. data/lib/trustcomponent_generated/models/analytics_stats_conversions.rb +1 -1
  34. data/lib/trustcomponent_generated/models/analytics_stats_conversions_goal.rb +1 -1
  35. data/lib/trustcomponent_generated/models/analytics_stats_conversions_goal_revenue.rb +1 -1
  36. data/lib/trustcomponent_generated/models/analytics_stats_dimension_enum.rb +1 -1
  37. data/lib/trustcomponent_generated/models/analytics_stats_filter_match_mode_enum.rb +1 -1
  38. data/lib/trustcomponent_generated/models/analytics_stats_filter_operator_enum.rb +1 -1
  39. data/lib/trustcomponent_generated/models/analytics_stats_granularity_enum.rb +1 -1
  40. data/lib/trustcomponent_generated/models/analytics_stats_overview.rb +1 -1
  41. data/lib/trustcomponent_generated/models/analytics_stats_timeseries.rb +1 -1
  42. data/lib/trustcomponent_generated/models/analytics_stats_timeseries_point.rb +1 -1
  43. data/lib/trustcomponent_generated/models/analytics_stats_totals.rb +1 -1
  44. data/lib/trustcomponent_generated/models/analytics_website.rb +1 -1
  45. data/lib/trustcomponent_generated/models/analytics_websites_page.rb +1 -1
  46. data/lib/trustcomponent_generated/models/captcha_verification_result.rb +1 -1
  47. data/lib/trustcomponent_generated/models/platform_event.rb +1 -1
  48. data/lib/trustcomponent_generated/models/platform_event_actor.rb +1 -1
  49. data/lib/trustcomponent_generated/models/platform_event_actor_automation.rb +1 -1
  50. data/lib/trustcomponent_generated/models/platform_event_actor_automation_kind_enum.rb +1 -1
  51. data/lib/trustcomponent_generated/models/platform_event_actor_type_enum.rb +1 -1
  52. data/lib/trustcomponent_generated/models/platform_event_change.rb +1 -1
  53. data/lib/trustcomponent_generated/models/platform_event_change_operation_enum.rb +1 -1
  54. data/lib/trustcomponent_generated/models/platform_event_origin.rb +1 -1
  55. data/lib/trustcomponent_generated/models/platform_event_ref.rb +1 -1
  56. data/lib/trustcomponent_generated/models/platform_event_source_enum.rb +1 -1
  57. data/lib/trustcomponent_generated/models/platform_events_page.rb +1 -1
  58. data/lib/trustcomponent_generated/models/platform_project.rb +251 -0
  59. data/lib/trustcomponent_generated/models/platform_project_module_enum.rb +42 -0
  60. data/lib/trustcomponent_generated/models/platform_project_role_enum.rb +44 -0
  61. data/lib/trustcomponent_generated/models/platform_projects_page.rb +249 -0
  62. data/lib/trustcomponent_generated/models/tax_validation_match_status_enum.rb +1 -1
  63. data/lib/trustcomponent_generated/models/tax_validation_provider_enum.rb +1 -1
  64. data/lib/trustcomponent_generated/models/tax_validation_provider_status_enum.rb +1 -1
  65. data/lib/trustcomponent_generated/models/tax_validation_schedule.rb +1 -1
  66. data/lib/trustcomponent_generated/models/tax_validation_schedule_create_params.rb +1 -1
  67. data/lib/trustcomponent_generated/models/tax_validation_tax_address.rb +1 -1
  68. data/lib/trustcomponent_generated/models/tax_validation_tax_identifier_scheme_enum.rb +1 -1
  69. data/lib/trustcomponent_generated/models/tax_validation_validation.rb +1 -1
  70. data/lib/trustcomponent_generated/models/tax_validation_validation_address_match.rb +1 -1
  71. data/lib/trustcomponent_generated/models/tax_validation_validation_batch_create_params.rb +1 -1
  72. data/lib/trustcomponent_generated/models/tax_validation_validation_create_params.rb +1 -1
  73. data/lib/trustcomponent_generated/models/tax_validation_validation_frequency_enum.rb +1 -1
  74. data/lib/trustcomponent_generated/models/tax_validation_validation_input.rb +1 -1
  75. data/lib/trustcomponent_generated/models/tax_validation_validation_match.rb +1 -1
  76. data/lib/trustcomponent_generated/models/tax_validation_validation_mode_enum.rb +1 -1
  77. data/lib/trustcomponent_generated/models/tax_validation_validation_outcome_enum.rb +1 -1
  78. data/lib/trustcomponent_generated/models/tax_validation_validation_request_status_enum.rb +1 -1
  79. data/lib/trustcomponent_generated/models/tax_validation_validation_response_data.rb +1 -1
  80. data/lib/trustcomponent_generated/models/tax_validation_validation_result.rb +1 -1
  81. data/lib/trustcomponent_generated/models/tax_validation_validation_schedule_attach_params.rb +1 -1
  82. data/lib/trustcomponent_generated/models/tax_validation_verification_method_enum.rb +1 -1
  83. data/lib/trustcomponent_generated/modules.rb +4 -3
  84. data/lib/trustcomponent_generated/version.rb +2 -2
  85. data/lib/trustcomponent_generated.rb +6 -1
  86. metadata +7 -2
@@ -0,0 +1,251 @@
1
+ =begin
2
+ #TrustComponent API
3
+
4
+ #The public API of every TrustComponent module, authenticated with an API key (`ak_…`). Each operation carries its own version in its path.
5
+
6
+ The version of the OpenAPI document: 0.0.1-beta.3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.24.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module TrustComponent::Generated
17
+ # A project the API key reaches
18
+ class PlatformProject < ApiModelBase
19
+ # Id of the project, used in the paths `/projects/{projectId}/…`
20
+ attr_accessor :id
21
+
22
+ # Name of the project
23
+ attr_accessor :name
24
+
25
+ # Modules the project uses
26
+ attr_accessor :modules
27
+
28
+ # Roles the API key holds on this project
29
+ attr_accessor :roles
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+ :'id' => :'id',
35
+ :'name' => :'name',
36
+ :'modules' => :'modules',
37
+ :'roles' => :'roles'
38
+ }
39
+ end
40
+
41
+ # Returns attribute mapping this model knows about
42
+ def self.acceptable_attribute_map
43
+ attribute_map
44
+ end
45
+
46
+ # Returns all the JSON keys this model knows about
47
+ def self.acceptable_attributes
48
+ acceptable_attribute_map.values
49
+ end
50
+
51
+ # Attribute type mapping.
52
+ def self.openapi_types
53
+ {
54
+ :'id' => :'String',
55
+ :'name' => :'String',
56
+ :'modules' => :'Array<PlatformProjectModuleEnum>',
57
+ :'roles' => :'Array<PlatformProjectRoleEnum>'
58
+ }
59
+ end
60
+
61
+ # List of attributes with nullable: true
62
+ def self.openapi_nullable
63
+ Set.new([
64
+ ])
65
+ end
66
+
67
+ # Initializes the object
68
+ # @param [Hash] attributes Model attributes in the form of hash
69
+ def initialize(attributes = {})
70
+ if (!attributes.is_a?(Hash))
71
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrustComponent::Generated::PlatformProject` initialize method"
72
+ end
73
+
74
+ # check to see if the attribute exists and convert string to symbol for hash key
75
+ acceptable_attribute_map = self.class.acceptable_attribute_map
76
+ attributes = attributes.each_with_object({}) { |(k, v), h|
77
+ if (!acceptable_attribute_map.key?(k.to_sym))
78
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrustComponent::Generated::PlatformProject`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
79
+ end
80
+ h[k.to_sym] = v
81
+ }
82
+
83
+ if attributes.key?(:'id')
84
+ self.id = attributes[:'id']
85
+ else
86
+ self.id = nil
87
+ end
88
+
89
+ if attributes.key?(:'name')
90
+ self.name = attributes[:'name']
91
+ else
92
+ self.name = nil
93
+ end
94
+
95
+ if attributes.key?(:'modules')
96
+ if (value = attributes[:'modules']).is_a?(Array)
97
+ self.modules = value
98
+ end
99
+ else
100
+ self.modules = nil
101
+ end
102
+
103
+ if attributes.key?(:'roles')
104
+ if (value = attributes[:'roles']).is_a?(Array)
105
+ self.roles = value
106
+ end
107
+ else
108
+ self.roles = nil
109
+ end
110
+ end
111
+
112
+ # Show invalid properties with the reasons. Usually used together with valid?
113
+ # @return Array for valid properties with the reasons
114
+ def list_invalid_properties
115
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
116
+ invalid_properties = Array.new
117
+ if @id.nil?
118
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
119
+ end
120
+
121
+ if @name.nil?
122
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
123
+ end
124
+
125
+ if @modules.nil?
126
+ invalid_properties.push('invalid value for "modules", modules cannot be nil.')
127
+ end
128
+
129
+ if @roles.nil?
130
+ invalid_properties.push('invalid value for "roles", roles cannot be nil.')
131
+ end
132
+
133
+ invalid_properties
134
+ end
135
+
136
+ # Check to see if the all the properties in the model are valid
137
+ # @return true if the model is valid
138
+ def valid?
139
+ warn '[DEPRECATED] the `valid?` method is obsolete'
140
+ return false if @id.nil?
141
+ return false if @name.nil?
142
+ return false if @modules.nil?
143
+ return false if @roles.nil?
144
+ true
145
+ end
146
+
147
+ # Custom attribute writer method with validation
148
+ # @param [Object] id Value to be assigned
149
+ def id=(id)
150
+ if id.nil?
151
+ fail ArgumentError, 'id cannot be nil'
152
+ end
153
+
154
+ @id = id
155
+ end
156
+
157
+ # Custom attribute writer method with validation
158
+ # @param [Object] name Value to be assigned
159
+ def name=(name)
160
+ if name.nil?
161
+ fail ArgumentError, 'name cannot be nil'
162
+ end
163
+
164
+ @name = name
165
+ end
166
+
167
+ # Custom attribute writer method with validation
168
+ # @param [Object] modules Value to be assigned
169
+ def modules=(modules)
170
+ if modules.nil?
171
+ fail ArgumentError, 'modules cannot be nil'
172
+ end
173
+
174
+ @modules = modules
175
+ end
176
+
177
+ # Custom attribute writer method with validation
178
+ # @param [Object] roles Value to be assigned
179
+ def roles=(roles)
180
+ if roles.nil?
181
+ fail ArgumentError, 'roles cannot be nil'
182
+ end
183
+
184
+ @roles = roles
185
+ end
186
+
187
+ # Checks equality by comparing each attribute.
188
+ # @param [Object] Object to be compared
189
+ def ==(o)
190
+ return true if self.equal?(o)
191
+ self.class == o.class &&
192
+ id == o.id &&
193
+ name == o.name &&
194
+ modules == o.modules &&
195
+ roles == o.roles
196
+ end
197
+
198
+ # @see the `==` method
199
+ # @param [Object] Object to be compared
200
+ def eql?(o)
201
+ self == o
202
+ end
203
+
204
+ # Calculates hash code according to all attributes.
205
+ # @return [Integer] Hash code
206
+ def hash
207
+ [id, name, modules, roles].hash
208
+ end
209
+
210
+ # Builds the object from hash
211
+ # @param [Hash] attributes Model attributes in the form of hash
212
+ # @return [Object] Returns the model itself
213
+ def self.build_from_hash(attributes)
214
+ return nil unless attributes.is_a?(Hash)
215
+ attributes = attributes.transform_keys(&:to_sym)
216
+ transformed_hash = {}
217
+ openapi_types.each_pair do |key, type|
218
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
219
+ transformed_hash["#{key}"] = nil
220
+ elsif type =~ /\AArray<(.*)>/i
221
+ # check to ensure the input is an array given that the attribute
222
+ # is documented as an array but the input is not
223
+ if attributes[attribute_map[key]].is_a?(Array)
224
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
225
+ end
226
+ elsif !attributes[attribute_map[key]].nil?
227
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
228
+ end
229
+ end
230
+ new(transformed_hash)
231
+ end
232
+
233
+ # Returns the object in the form of hash
234
+ # @return [Hash] Returns the object in the form of hash
235
+ def to_hash
236
+ hash = {}
237
+ self.class.attribute_map.each_pair do |attr, param|
238
+ value = self.send(attr)
239
+ if value.nil?
240
+ is_nullable = self.class.openapi_nullable.include?(attr)
241
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
242
+ end
243
+
244
+ hash[param] = _to_hash(value)
245
+ end
246
+ hash
247
+ end
248
+
249
+ end
250
+
251
+ end
@@ -0,0 +1,42 @@
1
+ =begin
2
+ #TrustComponent API
3
+
4
+ #The public API of every TrustComponent module, authenticated with an API key (`ak_…`). Each operation carries its own version in its path.
5
+
6
+ The version of the OpenAPI document: 0.0.1-beta.3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.24.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module TrustComponent::Generated
17
+ class PlatformProjectModuleEnum
18
+ CAPTCHA = "CAPTCHA".freeze
19
+ ANALYTICS = "ANALYTICS".freeze
20
+ MONITORING = "MONITORING".freeze
21
+ TAX_VALIDATION = "TAX_VALIDATION".freeze
22
+
23
+ def self.all_vars
24
+ @all_vars ||= [CAPTCHA, ANALYTICS, MONITORING, TAX_VALIDATION].freeze
25
+ end
26
+
27
+ # Builds the enum from string
28
+ # @param [String] The enum value in the form of the string
29
+ # @return [String] The enum value
30
+ def self.build_from_hash(value)
31
+ new.build_from_hash(value)
32
+ end
33
+
34
+ # Builds the enum from string
35
+ # @param [String] The enum value in the form of the string
36
+ # @return [String] The enum value
37
+ def build_from_hash(value)
38
+ return value if PlatformProjectModuleEnum.all_vars.include?(value)
39
+ raise "Invalid ENUM value #{value} for class #PlatformProjectModuleEnum"
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,44 @@
1
+ =begin
2
+ #TrustComponent API
3
+
4
+ #The public API of every TrustComponent module, authenticated with an API key (`ak_…`). Each operation carries its own version in its path.
5
+
6
+ The version of the OpenAPI document: 0.0.1-beta.3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.24.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module TrustComponent::Generated
17
+ class PlatformProjectRoleEnum
18
+ MEMBER = "MEMBER".freeze
19
+ PRODUCT_MANAGER = "PRODUCT_MANAGER".freeze
20
+ BILLING = "BILLING".freeze
21
+ AUDITOR = "AUDITOR".freeze
22
+ LEGAL = "LEGAL".freeze
23
+ ADMIN = "ADMIN".freeze
24
+
25
+ def self.all_vars
26
+ @all_vars ||= [MEMBER, PRODUCT_MANAGER, BILLING, AUDITOR, LEGAL, ADMIN].freeze
27
+ end
28
+
29
+ # Builds the enum from string
30
+ # @param [String] The enum value in the form of the string
31
+ # @return [String] The enum value
32
+ def self.build_from_hash(value)
33
+ new.build_from_hash(value)
34
+ end
35
+
36
+ # Builds the enum from string
37
+ # @param [String] The enum value in the form of the string
38
+ # @return [String] The enum value
39
+ def build_from_hash(value)
40
+ return value if PlatformProjectRoleEnum.all_vars.include?(value)
41
+ raise "Invalid ENUM value #{value} for class #PlatformProjectRoleEnum"
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,249 @@
1
+ =begin
2
+ #TrustComponent API
3
+
4
+ #The public API of every TrustComponent module, authenticated with an API key (`ak_…`). Each operation carries its own version in its path.
5
+
6
+ The version of the OpenAPI document: 0.0.1-beta.3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.24.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module TrustComponent::Generated
17
+ # One page of projects
18
+ class PlatformProjectsPage < ApiModelBase
19
+ # Projects of this page, sorted by name
20
+ attr_accessor :content
21
+
22
+ # Zero-based index of this page
23
+ attr_accessor :page
24
+
25
+ # Number of entries per page
26
+ attr_accessor :page_size
27
+
28
+ # Number of projects the API key reaches
29
+ attr_accessor :total_elements
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+ :'content' => :'content',
35
+ :'page' => :'page',
36
+ :'page_size' => :'pageSize',
37
+ :'total_elements' => :'totalElements'
38
+ }
39
+ end
40
+
41
+ # Returns attribute mapping this model knows about
42
+ def self.acceptable_attribute_map
43
+ attribute_map
44
+ end
45
+
46
+ # Returns all the JSON keys this model knows about
47
+ def self.acceptable_attributes
48
+ acceptable_attribute_map.values
49
+ end
50
+
51
+ # Attribute type mapping.
52
+ def self.openapi_types
53
+ {
54
+ :'content' => :'Array<PlatformProject>',
55
+ :'page' => :'Integer',
56
+ :'page_size' => :'Integer',
57
+ :'total_elements' => :'Integer'
58
+ }
59
+ end
60
+
61
+ # List of attributes with nullable: true
62
+ def self.openapi_nullable
63
+ Set.new([
64
+ ])
65
+ end
66
+
67
+ # Initializes the object
68
+ # @param [Hash] attributes Model attributes in the form of hash
69
+ def initialize(attributes = {})
70
+ if (!attributes.is_a?(Hash))
71
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrustComponent::Generated::PlatformProjectsPage` initialize method"
72
+ end
73
+
74
+ # check to see if the attribute exists and convert string to symbol for hash key
75
+ acceptable_attribute_map = self.class.acceptable_attribute_map
76
+ attributes = attributes.each_with_object({}) { |(k, v), h|
77
+ if (!acceptable_attribute_map.key?(k.to_sym))
78
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrustComponent::Generated::PlatformProjectsPage`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
79
+ end
80
+ h[k.to_sym] = v
81
+ }
82
+
83
+ if attributes.key?(:'content')
84
+ if (value = attributes[:'content']).is_a?(Array)
85
+ self.content = value
86
+ end
87
+ else
88
+ self.content = nil
89
+ end
90
+
91
+ if attributes.key?(:'page')
92
+ self.page = attributes[:'page']
93
+ else
94
+ self.page = nil
95
+ end
96
+
97
+ if attributes.key?(:'page_size')
98
+ self.page_size = attributes[:'page_size']
99
+ else
100
+ self.page_size = nil
101
+ end
102
+
103
+ if attributes.key?(:'total_elements')
104
+ self.total_elements = attributes[:'total_elements']
105
+ else
106
+ self.total_elements = nil
107
+ end
108
+ end
109
+
110
+ # Show invalid properties with the reasons. Usually used together with valid?
111
+ # @return Array for valid properties with the reasons
112
+ def list_invalid_properties
113
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
114
+ invalid_properties = Array.new
115
+ if @content.nil?
116
+ invalid_properties.push('invalid value for "content", content cannot be nil.')
117
+ end
118
+
119
+ if @page.nil?
120
+ invalid_properties.push('invalid value for "page", page cannot be nil.')
121
+ end
122
+
123
+ if @page_size.nil?
124
+ invalid_properties.push('invalid value for "page_size", page_size cannot be nil.')
125
+ end
126
+
127
+ if @total_elements.nil?
128
+ invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
129
+ end
130
+
131
+ invalid_properties
132
+ end
133
+
134
+ # Check to see if the all the properties in the model are valid
135
+ # @return true if the model is valid
136
+ def valid?
137
+ warn '[DEPRECATED] the `valid?` method is obsolete'
138
+ return false if @content.nil?
139
+ return false if @page.nil?
140
+ return false if @page_size.nil?
141
+ return false if @total_elements.nil?
142
+ true
143
+ end
144
+
145
+ # Custom attribute writer method with validation
146
+ # @param [Object] content Value to be assigned
147
+ def content=(content)
148
+ if content.nil?
149
+ fail ArgumentError, 'content cannot be nil'
150
+ end
151
+
152
+ @content = content
153
+ end
154
+
155
+ # Custom attribute writer method with validation
156
+ # @param [Object] page Value to be assigned
157
+ def page=(page)
158
+ if page.nil?
159
+ fail ArgumentError, 'page cannot be nil'
160
+ end
161
+
162
+ @page = page
163
+ end
164
+
165
+ # Custom attribute writer method with validation
166
+ # @param [Object] page_size Value to be assigned
167
+ def page_size=(page_size)
168
+ if page_size.nil?
169
+ fail ArgumentError, 'page_size cannot be nil'
170
+ end
171
+
172
+ @page_size = page_size
173
+ end
174
+
175
+ # Custom attribute writer method with validation
176
+ # @param [Object] total_elements Value to be assigned
177
+ def total_elements=(total_elements)
178
+ if total_elements.nil?
179
+ fail ArgumentError, 'total_elements cannot be nil'
180
+ end
181
+
182
+ @total_elements = total_elements
183
+ end
184
+
185
+ # Checks equality by comparing each attribute.
186
+ # @param [Object] Object to be compared
187
+ def ==(o)
188
+ return true if self.equal?(o)
189
+ self.class == o.class &&
190
+ content == o.content &&
191
+ page == o.page &&
192
+ page_size == o.page_size &&
193
+ total_elements == o.total_elements
194
+ end
195
+
196
+ # @see the `==` method
197
+ # @param [Object] Object to be compared
198
+ def eql?(o)
199
+ self == o
200
+ end
201
+
202
+ # Calculates hash code according to all attributes.
203
+ # @return [Integer] Hash code
204
+ def hash
205
+ [content, page, page_size, total_elements].hash
206
+ end
207
+
208
+ # Builds the object from hash
209
+ # @param [Hash] attributes Model attributes in the form of hash
210
+ # @return [Object] Returns the model itself
211
+ def self.build_from_hash(attributes)
212
+ return nil unless attributes.is_a?(Hash)
213
+ attributes = attributes.transform_keys(&:to_sym)
214
+ transformed_hash = {}
215
+ openapi_types.each_pair do |key, type|
216
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
217
+ transformed_hash["#{key}"] = nil
218
+ elsif type =~ /\AArray<(.*)>/i
219
+ # check to ensure the input is an array given that the attribute
220
+ # is documented as an array but the input is not
221
+ if attributes[attribute_map[key]].is_a?(Array)
222
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
223
+ end
224
+ elsif !attributes[attribute_map[key]].nil?
225
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
226
+ end
227
+ end
228
+ new(transformed_hash)
229
+ end
230
+
231
+ # Returns the object in the form of hash
232
+ # @return [Hash] Returns the object in the form of hash
233
+ def to_hash
234
+ hash = {}
235
+ self.class.attribute_map.each_pair do |attr, param|
236
+ value = self.send(attr)
237
+ if value.nil?
238
+ is_nullable = self.class.openapi_nullable.include?(attr)
239
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
240
+ end
241
+
242
+ hash[param] = _to_hash(value)
243
+ end
244
+ hash
245
+ end
246
+
247
+ end
248
+
249
+ end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The public API of every TrustComponent module, authenticated with an API key (`ak_…`). Each operation carries its own version in its path.
5
5
 
6
- The version of the OpenAPI document: 0.0.1-beta.2
6
+ The version of the OpenAPI document: 0.0.1-beta.3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.24.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The public API of every TrustComponent module, authenticated with an API key (`ak_…`). Each operation carries its own version in its path.
5
5
 
6
- The version of the OpenAPI document: 0.0.1-beta.2
6
+ The version of the OpenAPI document: 0.0.1-beta.3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.24.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The public API of every TrustComponent module, authenticated with an API key (`ak_…`). Each operation carries its own version in its path.
5
5
 
6
- The version of the OpenAPI document: 0.0.1-beta.2
6
+ The version of the OpenAPI document: 0.0.1-beta.3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.24.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The public API of every TrustComponent module, authenticated with an API key (`ak_…`). Each operation carries its own version in its path.
5
5
 
6
- The version of the OpenAPI document: 0.0.1-beta.2
6
+ The version of the OpenAPI document: 0.0.1-beta.3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.24.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The public API of every TrustComponent module, authenticated with an API key (`ak_…`). Each operation carries its own version in its path.
5
5
 
6
- The version of the OpenAPI document: 0.0.1-beta.2
6
+ The version of the OpenAPI document: 0.0.1-beta.3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.24.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The public API of every TrustComponent module, authenticated with an API key (`ak_…`). Each operation carries its own version in its path.
5
5
 
6
- The version of the OpenAPI document: 0.0.1-beta.2
6
+ The version of the OpenAPI document: 0.0.1-beta.3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.24.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The public API of every TrustComponent module, authenticated with an API key (`ak_…`). Each operation carries its own version in its path.
5
5
 
6
- The version of the OpenAPI document: 0.0.1-beta.2
6
+ The version of the OpenAPI document: 0.0.1-beta.3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.24.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The public API of every TrustComponent module, authenticated with an API key (`ak_…`). Each operation carries its own version in its path.
5
5
 
6
- The version of the OpenAPI document: 0.0.1-beta.2
6
+ The version of the OpenAPI document: 0.0.1-beta.3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.24.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The public API of every TrustComponent module, authenticated with an API key (`ak_…`). Each operation carries its own version in its path.
5
5
 
6
- The version of the OpenAPI document: 0.0.1-beta.2
6
+ The version of the OpenAPI document: 0.0.1-beta.3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.24.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The public API of every TrustComponent module, authenticated with an API key (`ak_…`). Each operation carries its own version in its path.
5
5
 
6
- The version of the OpenAPI document: 0.0.1-beta.2
6
+ The version of the OpenAPI document: 0.0.1-beta.3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.24.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The public API of every TrustComponent module, authenticated with an API key (`ak_…`). Each operation carries its own version in its path.
5
5
 
6
- The version of the OpenAPI document: 0.0.1-beta.2
6
+ The version of the OpenAPI document: 0.0.1-beta.3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.24.0