tremendous_ruby 5.9.0 → 5.10.0

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 (40) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tremendous/api/tremendous_api.rb +522 -53
  3. data/lib/tremendous/models/connected_organization.rb +287 -0
  4. data/lib/tremendous/models/connected_organization_member.rb +330 -0
  5. data/lib/tremendous/models/connected_organization_member_member.rb +366 -0
  6. data/lib/tremendous/models/connected_organization_member_session.rb +311 -0
  7. data/lib/tremendous/models/connected_organization_organization.rb +324 -0
  8. data/lib/tremendous/models/create_campaign200_response.rb +221 -0
  9. data/lib/tremendous/models/create_connected_organization200_response.rb +221 -0
  10. data/lib/tremendous/models/create_connected_organization_member200_response.rb +221 -0
  11. data/lib/tremendous/models/create_connected_organization_member_request.rb +222 -0
  12. data/lib/tremendous/models/create_connected_organization_member_session200_response.rb +221 -0
  13. data/lib/tremendous/models/create_connected_organization_member_session200_response_connected_organization_member_session.rb +311 -0
  14. data/lib/tremendous/models/create_connected_organization_member_session_request.rb +222 -0
  15. data/lib/tremendous/models/create_connected_organization_request.rb +222 -0
  16. data/lib/tremendous/models/create_order200_response_order_rewards_inner_delivery.rb +1 -1
  17. data/lib/tremendous/models/create_organization_request_copy_settings.rb +16 -4
  18. data/lib/tremendous/models/create_report200_response.rb +231 -0
  19. data/lib/tremendous/models/create_report200_response_report.rb +291 -0
  20. data/lib/tremendous/models/delivery_details.rb +1 -1
  21. data/lib/tremendous/models/delivery_details_with_link.rb +1 -1
  22. data/lib/tremendous/models/funding_source.rb +35 -1
  23. data/lib/tremendous/models/list_connected_organization_members200_response.rb +240 -0
  24. data/lib/tremendous/models/list_connected_organization_members200_response_connected_organization_members_inner.rb +330 -0
  25. data/lib/tremendous/models/list_connected_organization_members200_response_connected_organization_members_inner_member.rb +366 -0
  26. data/lib/tremendous/models/list_connected_organizations200_response.rb +240 -0
  27. data/lib/tremendous/models/list_connected_organizations200_response_connected_organizations_inner.rb +287 -0
  28. data/lib/tremendous/models/list_connected_organizations200_response_connected_organizations_inner_organization.rb +324 -0
  29. data/lib/tremendous/models/list_funding_sources200_response_funding_sources_inner.rb +35 -1
  30. data/lib/tremendous/models/list_products_response_products_inner.rb +27 -7
  31. data/lib/tremendous/models/list_products_response_products_inner_documents.rb +236 -0
  32. data/lib/tremendous/models/list_products_response_products_inner_images_inner.rb +15 -4
  33. data/lib/tremendous/models/list_rewards200_response_rewards_inner_delivery.rb +1 -1
  34. data/lib/tremendous/models/product.rb +27 -7
  35. data/lib/tremendous/models/product_documents.rb +236 -0
  36. data/lib/tremendous/models/reward_with_link_delivery.rb +1 -1
  37. data/lib/tremendous/models/reward_without_link_delivery.rb +1 -1
  38. data/lib/tremendous/version.rb +1 -1
  39. data/lib/tremendous.rb +23 -5
  40. metadata +26 -7
@@ -24,7 +24,7 @@ module Tremendous
24
24
  # Detailed description of the product. Mostly used for products with a `category` of `charities`.
25
25
  attr_accessor :description
26
26
 
27
- # The category of this product <table> <thead> <tr> <th>Category</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>ach</code></td> <td>Bank transfer to the recipient</td> </tr> <tr> <td><code>charity</code></td> <td>Donations to a charity</td> </tr> <tr> <td><code>merchant_card</code></td> <td>A gift card for a certain merchant (e.g. Amazon)</td> </tr> <tr> <td><code>paypal</code></td> <td>Payout via PayPal</td> </tr> <tr> <td><code>venmo</code></td> <td>Payout via Venmo</td> </tr> <tr> <td><code>visa_card</code></td> <td>Payout in form of a Visa debit card</td> </tr> </tbody> </table>
27
+ # The category of this product <table> <thead> <tr> <th>Category</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>ach</code></td> <td>Bank transfer to the recipient</td> </tr> <tr> <td><code>charity</code></td> <td>Donations to a charity</td> </tr> <tr> <td><code>instant_debit_transfer</code></td> <td>Instant debit transfer to the recipient</td> </tr> <tr> <td><code>merchant_card</code></td> <td>A gift card for a certain merchant (e.g. Amazon)</td> </tr> <tr> <td><code>paypal</code></td> <td>Payout via PayPal</td> </tr> <tr> <td><code>venmo</code></td> <td>Payout via Venmo</td> </tr> <tr> <td><code>visa_card</code></td> <td>Payout in form of a Visa debit card</td> </tr> </tbody> </table>
28
28
  attr_accessor :category
29
29
 
30
30
  # Legal disclosures for this product. Can be in HTML format.
@@ -42,6 +42,11 @@ module Tremendous
42
42
  # List of product images associated with this product (e.g. logos or images of the gift cards)
43
43
  attr_accessor :images
44
44
 
45
+ # Instructions for how to use the product, if applicable. Mostly used for products with a `category` of `merchant_card`.
46
+ attr_accessor :usage_instructions
47
+
48
+ attr_accessor :documents
49
+
45
50
  class EnumAttributeValidator
46
51
  attr_reader :datatype
47
52
  attr_reader :allowable_values
@@ -75,7 +80,9 @@ module Tremendous
75
80
  :'skus' => :'skus',
76
81
  :'currency_codes' => :'currency_codes',
77
82
  :'countries' => :'countries',
78
- :'images' => :'images'
83
+ :'images' => :'images',
84
+ :'usage_instructions' => :'usage_instructions',
85
+ :'documents' => :'documents'
79
86
  }
80
87
  end
81
88
 
@@ -95,13 +102,16 @@ module Tremendous
95
102
  :'skus' => :'Array<ListProductsResponseProductsInnerSkusInner>',
96
103
  :'currency_codes' => :'Array<String>',
97
104
  :'countries' => :'Array<ListProductsResponseProductsInnerCountriesInner>',
98
- :'images' => :'Array<ListProductsResponseProductsInnerImagesInner>'
105
+ :'images' => :'Array<ListProductsResponseProductsInnerImagesInner>',
106
+ :'usage_instructions' => :'String',
107
+ :'documents' => :'ListProductsResponseProductsInnerDocuments'
99
108
  }
100
109
  end
101
110
 
102
111
  # List of attributes with nullable: true
103
112
  def self.openapi_nullable
104
113
  Set.new([
114
+ :'documents'
105
115
  ])
106
116
  end
107
117
 
@@ -179,6 +189,14 @@ module Tremendous
179
189
  else
180
190
  self.images = nil
181
191
  end
192
+
193
+ if attributes.key?(:'usage_instructions')
194
+ self.usage_instructions = attributes[:'usage_instructions']
195
+ end
196
+
197
+ if attributes.key?(:'documents')
198
+ self.documents = attributes[:'documents']
199
+ end
182
200
  end
183
201
 
184
202
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -247,7 +265,7 @@ module Tremendous
247
265
  return false if @name.nil?
248
266
  return false if @description.nil?
249
267
  return false if @category.nil?
250
- category_validator = EnumAttributeValidator.new('String', ["ach", "charity", "merchant_card", "paypal", "venmo", "visa_card"])
268
+ category_validator = EnumAttributeValidator.new('String', ["ach", "charity", "instant_debit_transfer", "merchant_card", "paypal", "venmo", "visa_card"])
251
269
  return false unless category_validator.valid?(@category)
252
270
  return false if @disclosure.nil?
253
271
  return false if @currency_codes.nil?
@@ -277,7 +295,7 @@ module Tremendous
277
295
  # Custom attribute writer method checking allowed values (enum).
278
296
  # @param [Object] category Object to be assigned
279
297
  def category=(category)
280
- validator = EnumAttributeValidator.new('String', ["ach", "charity", "merchant_card", "paypal", "venmo", "visa_card"])
298
+ validator = EnumAttributeValidator.new('String', ["ach", "charity", "instant_debit_transfer", "merchant_card", "paypal", "venmo", "visa_card"])
281
299
  unless validator.valid?(category)
282
300
  fail ArgumentError, "invalid value for \"category\", must be one of #{validator.allowable_values}."
283
301
  end
@@ -325,7 +343,9 @@ module Tremendous
325
343
  skus == o.skus &&
326
344
  currency_codes == o.currency_codes &&
327
345
  countries == o.countries &&
328
- images == o.images
346
+ images == o.images &&
347
+ usage_instructions == o.usage_instructions &&
348
+ documents == o.documents
329
349
  end
330
350
 
331
351
  # @see the `==` method
@@ -337,7 +357,7 @@ module Tremendous
337
357
  # Calculates hash code according to all attributes.
338
358
  # @return [Integer] Hash code
339
359
  def hash
340
- [id, name, description, category, disclosure, skus, currency_codes, countries, images].hash
360
+ [id, name, description, category, disclosure, skus, currency_codes, countries, images, usage_instructions, documents].hash
341
361
  end
342
362
 
343
363
  # Builds the object from hash
@@ -0,0 +1,236 @@
1
+ =begin
2
+ #API Endpoints
3
+
4
+ #Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
5
+
6
+ The version of the OpenAPI document: 2
7
+ Contact: developers@tremendous.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.8.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Tremendous
17
+ # URLs and files related to product documentation.
18
+ class ListProductsResponseProductsInnerDocuments
19
+ # URL to the cardholder agreement PDF file.
20
+ attr_accessor :cardholder_agreement_pdf
21
+
22
+ # URL to the cardholder agreement web page.
23
+ attr_accessor :cardholder_agreement_url
24
+
25
+ # URL to the privacy policy web page.
26
+ attr_accessor :privacy_policy_url
27
+
28
+ # Attribute mapping from ruby-style variable name to JSON key.
29
+ def self.attribute_map
30
+ {
31
+ :'cardholder_agreement_pdf' => :'cardholder_agreement_pdf',
32
+ :'cardholder_agreement_url' => :'cardholder_agreement_url',
33
+ :'privacy_policy_url' => :'privacy_policy_url'
34
+ }
35
+ end
36
+
37
+ # Returns all the JSON keys this model knows about
38
+ def self.acceptable_attributes
39
+ attribute_map.values
40
+ end
41
+
42
+ # Attribute type mapping.
43
+ def self.openapi_types
44
+ {
45
+ :'cardholder_agreement_pdf' => :'String',
46
+ :'cardholder_agreement_url' => :'String',
47
+ :'privacy_policy_url' => :'String'
48
+ }
49
+ end
50
+
51
+ # List of attributes with nullable: true
52
+ def self.openapi_nullable
53
+ Set.new([
54
+ ])
55
+ end
56
+
57
+ # Initializes the object
58
+ # @param [Hash] attributes Model attributes in the form of hash
59
+ def initialize(attributes = {})
60
+ if (!attributes.is_a?(Hash))
61
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Tremendous::ListProductsResponseProductsInnerDocuments` initialize method"
62
+ end
63
+
64
+ # check to see if the attribute exists and convert string to symbol for hash key
65
+ attributes = attributes.each_with_object({}) { |(k, v), h|
66
+ if (!self.class.attribute_map.key?(k.to_sym))
67
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListProductsResponseProductsInnerDocuments`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
68
+ end
69
+ h[k.to_sym] = v
70
+ }
71
+
72
+ if attributes.key?(:'cardholder_agreement_pdf')
73
+ self.cardholder_agreement_pdf = attributes[:'cardholder_agreement_pdf']
74
+ end
75
+
76
+ if attributes.key?(:'cardholder_agreement_url')
77
+ self.cardholder_agreement_url = attributes[:'cardholder_agreement_url']
78
+ end
79
+
80
+ if attributes.key?(:'privacy_policy_url')
81
+ self.privacy_policy_url = attributes[:'privacy_policy_url']
82
+ end
83
+ end
84
+
85
+ # Show invalid properties with the reasons. Usually used together with valid?
86
+ # @return Array for valid properties with the reasons
87
+ def list_invalid_properties
88
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
89
+ invalid_properties = Array.new
90
+ invalid_properties
91
+ end
92
+
93
+ # Check to see if the all the properties in the model are valid
94
+ # @return true if the model is valid
95
+ def valid?
96
+ warn '[DEPRECATED] the `valid?` method is obsolete'
97
+ true
98
+ end
99
+
100
+ # Checks equality by comparing each attribute.
101
+ # @param [Object] Object to be compared
102
+ def ==(o)
103
+ return true if self.equal?(o)
104
+ self.class == o.class &&
105
+ cardholder_agreement_pdf == o.cardholder_agreement_pdf &&
106
+ cardholder_agreement_url == o.cardholder_agreement_url &&
107
+ privacy_policy_url == o.privacy_policy_url
108
+ end
109
+
110
+ # @see the `==` method
111
+ # @param [Object] Object to be compared
112
+ def eql?(o)
113
+ self == o
114
+ end
115
+
116
+ # Calculates hash code according to all attributes.
117
+ # @return [Integer] Hash code
118
+ def hash
119
+ [cardholder_agreement_pdf, cardholder_agreement_url, privacy_policy_url].hash
120
+ end
121
+
122
+ # Builds the object from hash
123
+ # @param [Hash] attributes Model attributes in the form of hash
124
+ # @return [Object] Returns the model itself
125
+ def self.build_from_hash(attributes)
126
+ return nil unless attributes.is_a?(Hash)
127
+ attributes = attributes.transform_keys(&:to_sym)
128
+ transformed_hash = {}
129
+ openapi_types.each_pair do |key, type|
130
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
131
+ transformed_hash["#{key}"] = nil
132
+ elsif type =~ /\AArray<(.*)>/i
133
+ # check to ensure the input is an array given that the attribute
134
+ # is documented as an array but the input is not
135
+ if attributes[attribute_map[key]].is_a?(Array)
136
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
137
+ end
138
+ elsif !attributes[attribute_map[key]].nil?
139
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
140
+ end
141
+ end
142
+ new(transformed_hash)
143
+ end
144
+
145
+ # Deserializes the data based on type
146
+ # @param string type Data type
147
+ # @param string value Value to be deserialized
148
+ # @return [Object] Deserialized data
149
+ def self._deserialize(type, value)
150
+ case type.to_sym
151
+ when :Time
152
+ Time.parse(value)
153
+ when :Date
154
+ Date.parse(value)
155
+ when :String
156
+ value.to_s
157
+ when :Integer
158
+ value.to_i
159
+ when :Float
160
+ value.to_f
161
+ when :Boolean
162
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
163
+ true
164
+ else
165
+ false
166
+ end
167
+ when :Object
168
+ # generic object (usually a Hash), return directly
169
+ value
170
+ when /\AArray<(?<inner_type>.+)>\z/
171
+ inner_type = Regexp.last_match[:inner_type]
172
+ value.map { |v| _deserialize(inner_type, v) }
173
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
174
+ k_type = Regexp.last_match[:k_type]
175
+ v_type = Regexp.last_match[:v_type]
176
+ {}.tap do |hash|
177
+ value.each do |k, v|
178
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
179
+ end
180
+ end
181
+ else # model
182
+ # models (e.g. Pet) or oneOf
183
+ klass = Tremendous.const_get(type)
184
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
185
+ end
186
+ end
187
+
188
+ # Returns the string representation of the object
189
+ # @return [String] String presentation of the object
190
+ def to_s
191
+ to_hash.to_s
192
+ end
193
+
194
+ # to_body is an alias to to_hash (backward compatibility)
195
+ # @return [Hash] Returns the object in the form of hash
196
+ def to_body
197
+ to_hash
198
+ end
199
+
200
+ # Returns the object in the form of hash
201
+ # @return [Hash] Returns the object in the form of hash
202
+ def to_hash
203
+ hash = {}
204
+ self.class.attribute_map.each_pair do |attr, param|
205
+ value = self.send(attr)
206
+ if value.nil?
207
+ is_nullable = self.class.openapi_nullable.include?(attr)
208
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
209
+ end
210
+
211
+ hash[param] = _to_hash(value)
212
+ end
213
+ hash
214
+ end
215
+
216
+ # Outputs non-array value in the form of hash
217
+ # For object, use to_hash. Otherwise, just return the value
218
+ # @param [Object] value Any valid value
219
+ # @return [Hash] Returns the value in the form of hash
220
+ def _to_hash(value)
221
+ if value.is_a?(Array)
222
+ value.compact.map { |v| _to_hash(v) }
223
+ elsif value.is_a?(Hash)
224
+ {}.tap do |hash|
225
+ value.each { |k, v| hash[k] = _to_hash(v) }
226
+ end
227
+ elsif value.respond_to? :to_hash
228
+ value.to_hash
229
+ else
230
+ value
231
+ end
232
+ end
233
+
234
+ end
235
+
236
+ end
@@ -21,6 +21,9 @@ module Tremendous
21
21
  # Type of image
22
22
  attr_accessor :type
23
23
 
24
+ # The MIME content type of this image
25
+ attr_accessor :content_type
26
+
24
27
  class EnumAttributeValidator
25
28
  attr_reader :datatype
26
29
  attr_reader :allowable_values
@@ -47,7 +50,8 @@ module Tremendous
47
50
  def self.attribute_map
48
51
  {
49
52
  :'src' => :'src',
50
- :'type' => :'type'
53
+ :'type' => :'type',
54
+ :'content_type' => :'content_type'
51
55
  }
52
56
  end
53
57
 
@@ -60,13 +64,15 @@ module Tremendous
60
64
  def self.openapi_types
61
65
  {
62
66
  :'src' => :'String',
63
- :'type' => :'String'
67
+ :'type' => :'String',
68
+ :'content_type' => :'String'
64
69
  }
65
70
  end
66
71
 
67
72
  # List of attributes with nullable: true
68
73
  def self.openapi_nullable
69
74
  Set.new([
75
+ :'content_type'
70
76
  ])
71
77
  end
72
78
 
@@ -96,6 +102,10 @@ module Tremendous
96
102
  else
97
103
  self.type = nil
98
104
  end
105
+
106
+ if attributes.key?(:'content_type')
107
+ self.content_type = attributes[:'content_type']
108
+ end
99
109
  end
100
110
 
101
111
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -141,7 +151,8 @@ module Tremendous
141
151
  return true if self.equal?(o)
142
152
  self.class == o.class &&
143
153
  src == o.src &&
144
- type == o.type
154
+ type == o.type &&
155
+ content_type == o.content_type
145
156
  end
146
157
 
147
158
  # @see the `==` method
@@ -153,7 +164,7 @@ module Tremendous
153
164
  # Calculates hash code according to all attributes.
154
165
  # @return [Integer] Hash code
155
166
  def hash
156
- [src, type].hash
167
+ [src, type, content_type].hash
157
168
  end
158
169
 
159
170
  # Builds the object from hash
@@ -19,7 +19,7 @@ module Tremendous
19
19
  # How to deliver the reward to the recipient. <table> <thead> <tr> <th>Delivery Method</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>EMAIL</code></td> <td>Deliver the reward to the recipient by email</td> </tr> <tr> <td><code>LINK</code></td> <td> <p>Deliver the reward to the recipient via a link.</p> <p>The link can be retrieved on a successfully ordered reward via the <code>/rewards</code> or <code>/rewards/{id}</code> endpoint. That link must then be delivered to the recipient out-of-band.</p> </td> </tr> <tr> <td><code>PHONE</code></td> <td>Deliver the reward to the recipient by SMS</td> </tr> </tbody> </table>
20
20
  attr_accessor :method
21
21
 
22
- # Current status of the delivery of the reward: * `SCHEDULED` - Reward is scheduled for delivery and will be delivered soon. * `FAILED` - Delivery of reward failed (e.g. email bounced). * `SUCCEEDED` - Reward was successfully delivered (email or text message delivered or reward link opened). * `PENDING` - Delivery is pending but not yet scheduled.
22
+ # Current status of the delivery of the reward: * `SCHEDULED` - Reward is scheduled for delivery and will be delivered soon. * `FAILED` - Delivery of reward failed (e.g. email bounced). * `SUCCEEDED` - Reward was successfully delivered (email or text message delivered or reward link active). * `PENDING` - Delivery is pending but not yet scheduled.
23
23
  attr_accessor :status
24
24
 
25
25
  class EnumAttributeValidator
@@ -24,7 +24,7 @@ module Tremendous
24
24
  # Detailed description of the product. Mostly used for products with a `category` of `charities`.
25
25
  attr_accessor :description
26
26
 
27
- # The category of this product <table> <thead> <tr> <th>Category</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>ach</code></td> <td>Bank transfer to the recipient</td> </tr> <tr> <td><code>charity</code></td> <td>Donations to a charity</td> </tr> <tr> <td><code>merchant_card</code></td> <td>A gift card for a certain merchant (e.g. Amazon)</td> </tr> <tr> <td><code>paypal</code></td> <td>Payout via PayPal</td> </tr> <tr> <td><code>venmo</code></td> <td>Payout via Venmo</td> </tr> <tr> <td><code>visa_card</code></td> <td>Payout in form of a Visa debit card</td> </tr> </tbody> </table>
27
+ # The category of this product <table> <thead> <tr> <th>Category</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>ach</code></td> <td>Bank transfer to the recipient</td> </tr> <tr> <td><code>charity</code></td> <td>Donations to a charity</td> </tr> <tr> <td><code>instant_debit_transfer</code></td> <td>Instant debit transfer to the recipient</td> </tr> <tr> <td><code>merchant_card</code></td> <td>A gift card for a certain merchant (e.g. Amazon)</td> </tr> <tr> <td><code>paypal</code></td> <td>Payout via PayPal</td> </tr> <tr> <td><code>venmo</code></td> <td>Payout via Venmo</td> </tr> <tr> <td><code>visa_card</code></td> <td>Payout in form of a Visa debit card</td> </tr> </tbody> </table>
28
28
  attr_accessor :category
29
29
 
30
30
  # Legal disclosures for this product. Can be in HTML format.
@@ -42,6 +42,11 @@ module Tremendous
42
42
  # List of product images associated with this product (e.g. logos or images of the gift cards)
43
43
  attr_accessor :images
44
44
 
45
+ # Instructions for how to use the product, if applicable. Mostly used for products with a `category` of `merchant_card`.
46
+ attr_accessor :usage_instructions
47
+
48
+ attr_accessor :documents
49
+
45
50
  class EnumAttributeValidator
46
51
  attr_reader :datatype
47
52
  attr_reader :allowable_values
@@ -75,7 +80,9 @@ module Tremendous
75
80
  :'skus' => :'skus',
76
81
  :'currency_codes' => :'currency_codes',
77
82
  :'countries' => :'countries',
78
- :'images' => :'images'
83
+ :'images' => :'images',
84
+ :'usage_instructions' => :'usage_instructions',
85
+ :'documents' => :'documents'
79
86
  }
80
87
  end
81
88
 
@@ -95,13 +102,16 @@ module Tremendous
95
102
  :'skus' => :'Array<ListProductsResponseProductsInnerSkusInner>',
96
103
  :'currency_codes' => :'Array<String>',
97
104
  :'countries' => :'Array<ListProductsResponseProductsInnerCountriesInner>',
98
- :'images' => :'Array<ListProductsResponseProductsInnerImagesInner>'
105
+ :'images' => :'Array<ListProductsResponseProductsInnerImagesInner>',
106
+ :'usage_instructions' => :'String',
107
+ :'documents' => :'ListProductsResponseProductsInnerDocuments'
99
108
  }
100
109
  end
101
110
 
102
111
  # List of attributes with nullable: true
103
112
  def self.openapi_nullable
104
113
  Set.new([
114
+ :'documents'
105
115
  ])
106
116
  end
107
117
 
@@ -179,6 +189,14 @@ module Tremendous
179
189
  else
180
190
  self.images = nil
181
191
  end
192
+
193
+ if attributes.key?(:'usage_instructions')
194
+ self.usage_instructions = attributes[:'usage_instructions']
195
+ end
196
+
197
+ if attributes.key?(:'documents')
198
+ self.documents = attributes[:'documents']
199
+ end
182
200
  end
183
201
 
184
202
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -247,7 +265,7 @@ module Tremendous
247
265
  return false if @name.nil?
248
266
  return false if @description.nil?
249
267
  return false if @category.nil?
250
- category_validator = EnumAttributeValidator.new('String', ["ach", "charity", "merchant_card", "paypal", "venmo", "visa_card"])
268
+ category_validator = EnumAttributeValidator.new('String', ["ach", "charity", "instant_debit_transfer", "merchant_card", "paypal", "venmo", "visa_card"])
251
269
  return false unless category_validator.valid?(@category)
252
270
  return false if @disclosure.nil?
253
271
  return false if @currency_codes.nil?
@@ -277,7 +295,7 @@ module Tremendous
277
295
  # Custom attribute writer method checking allowed values (enum).
278
296
  # @param [Object] category Object to be assigned
279
297
  def category=(category)
280
- validator = EnumAttributeValidator.new('String', ["ach", "charity", "merchant_card", "paypal", "venmo", "visa_card"])
298
+ validator = EnumAttributeValidator.new('String', ["ach", "charity", "instant_debit_transfer", "merchant_card", "paypal", "venmo", "visa_card"])
281
299
  unless validator.valid?(category)
282
300
  fail ArgumentError, "invalid value for \"category\", must be one of #{validator.allowable_values}."
283
301
  end
@@ -325,7 +343,9 @@ module Tremendous
325
343
  skus == o.skus &&
326
344
  currency_codes == o.currency_codes &&
327
345
  countries == o.countries &&
328
- images == o.images
346
+ images == o.images &&
347
+ usage_instructions == o.usage_instructions &&
348
+ documents == o.documents
329
349
  end
330
350
 
331
351
  # @see the `==` method
@@ -337,7 +357,7 @@ module Tremendous
337
357
  # Calculates hash code according to all attributes.
338
358
  # @return [Integer] Hash code
339
359
  def hash
340
- [id, name, description, category, disclosure, skus, currency_codes, countries, images].hash
360
+ [id, name, description, category, disclosure, skus, currency_codes, countries, images, usage_instructions, documents].hash
341
361
  end
342
362
 
343
363
  # Builds the object from hash