tremendous_ruby 5.30.0 → 7.0.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 (49) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tremendous/api/tremendous_api.rb +10 -74
  3. data/lib/tremendous/models/balance_transaction.rb +11 -1
  4. data/lib/tremendous/models/connected_organization_organization.rb +12 -1
  5. data/lib/tremendous/models/create_invoice_request.rb +2 -2
  6. data/lib/tremendous/models/create_order200_response_order_rewards_inner.rb +1 -1
  7. data/lib/tremendous/models/create_organization.rb +11 -1
  8. data/lib/tremendous/models/create_organization200_response_organization.rb +12 -1
  9. data/lib/tremendous/models/create_organization_for_response.rb +12 -1
  10. data/lib/tremendous/models/create_organization_properties.rb +11 -1
  11. data/lib/tremendous/models/create_organization_request.rb +14 -4
  12. data/lib/tremendous/models/create_organization_response_organization.rb +12 -1
  13. data/lib/tremendous/models/create_report_request.rb +12 -1
  14. data/lib/tremendous/models/currency_codes.rb +1 -2
  15. data/lib/tremendous/models/fraud_review.rb +2 -2
  16. data/lib/tremendous/models/fraud_review_base.rb +2 -2
  17. data/lib/tremendous/models/fraud_review_list_item.rb +2 -2
  18. data/lib/tremendous/models/fraud_review_reason.rb +6 -1
  19. data/lib/tremendous/models/fraud_review_redemption_method.rb +5 -1
  20. data/lib/tremendous/models/get_fraud_review200_response_fraud_review.rb +2 -2
  21. data/lib/tremendous/models/invoice.rb +2 -2
  22. data/lib/tremendous/models/invoice_response_invoice.rb +2 -2
  23. data/lib/tremendous/models/list_balance_transactions200_response_transactions_inner.rb +11 -1
  24. data/lib/tremendous/models/list_connected_organizations200_response_connected_organizations_inner_organization.rb +12 -1
  25. data/lib/tremendous/models/list_fraud_reviews200_response_fraud_reviews_inner.rb +2 -2
  26. data/lib/tremendous/models/list_funding_sources200_response_funding_sources_inner_meta_failure_details.rb +2 -0
  27. data/lib/tremendous/models/list_invoices200_response_invoices_inner.rb +2 -2
  28. data/lib/tremendous/models/list_organizations200_response_organizations_inner.rb +12 -1
  29. data/lib/tremendous/models/list_products_response_products_inner.rb +3 -3
  30. data/lib/tremendous/models/list_products_response_products_inner_skus_inner.rb +1 -1
  31. data/lib/tremendous/models/list_rewards200_response_rewards_inner.rb +1 -1
  32. data/lib/tremendous/models/list_rewards200_response_rewards_inner_value.rb +1 -1
  33. data/lib/tremendous/models/order_with_link_rewards_inner.rb +1 -1
  34. data/lib/tremendous/models/organization.rb +12 -1
  35. data/lib/tremendous/models/organization_response_organization.rb +12 -1
  36. data/lib/tremendous/models/product.rb +3 -3
  37. data/lib/tremendous/models/reward.rb +1 -1
  38. data/lib/tremendous/models/reward_base.rb +1 -1
  39. data/lib/tremendous/models/reward_for_order_create.rb +1 -1
  40. data/lib/tremendous/models/reward_response_reward.rb +1 -1
  41. data/lib/tremendous/models/reward_value.rb +1 -1
  42. data/lib/tremendous/models/reward_with_link.rb +1 -1
  43. data/lib/tremendous/models/reward_without_link.rb +1 -1
  44. data/lib/tremendous/models/single_reward_order_reward.rb +1 -1
  45. data/lib/tremendous/version.rb +1 -1
  46. data/lib/tremendous.rb +0 -2
  47. metadata +2 -4
  48. data/lib/tremendous/models/create_api_key200_response.rb +0 -148
  49. data/lib/tremendous/models/create_api_key_request.rb +0 -182
@@ -27,6 +27,9 @@ module Tremendous
27
27
  # Currency used for this organization's balances, orders, and transactions.
28
28
  attr_accessor :currency_code
29
29
 
30
+ # The organization's time zone as a canonical IANA identifier. Returns `null` if not configured.
31
+ attr_accessor :timezone
32
+
30
33
  # Status of the organization. Organizations need to be approved to be able to use them to send out rewards.
31
34
  attr_accessor :status
32
35
 
@@ -62,6 +65,7 @@ module Tremendous
62
65
  :'name' => :'name',
63
66
  :'website' => :'website',
64
67
  :'currency_code' => :'currency_code',
68
+ :'timezone' => :'timezone',
65
69
  :'status' => :'status',
66
70
  :'created_at' => :'created_at'
67
71
  }
@@ -84,6 +88,7 @@ module Tremendous
84
88
  :'name' => :'String',
85
89
  :'website' => :'String',
86
90
  :'currency_code' => :'String',
91
+ :'timezone' => :'String',
87
92
  :'status' => :'String',
88
93
  :'created_at' => :'Date'
89
94
  }
@@ -92,6 +97,7 @@ module Tremendous
92
97
  # List of attributes with nullable: true
93
98
  def self.openapi_nullable
94
99
  Set.new([
100
+ :'timezone',
95
101
  ])
96
102
  end
97
103
 
@@ -131,6 +137,10 @@ module Tremendous
131
137
  self.currency_code = attributes[:'currency_code']
132
138
  end
133
139
 
140
+ if attributes.key?(:'timezone')
141
+ self.timezone = attributes[:'timezone']
142
+ end
143
+
134
144
  if attributes.key?(:'status')
135
145
  self.status = attributes[:'status']
136
146
  end
@@ -225,6 +235,7 @@ module Tremendous
225
235
  name == o.name &&
226
236
  website == o.website &&
227
237
  currency_code == o.currency_code &&
238
+ timezone == o.timezone &&
228
239
  status == o.status &&
229
240
  created_at == o.created_at
230
241
  end
@@ -238,7 +249,7 @@ module Tremendous
238
249
  # Calculates hash code according to all attributes.
239
250
  # @return [Integer] Hash code
240
251
  def hash
241
- [id, name, website, currency_code, status, created_at].hash
252
+ [id, name, website, currency_code, timezone, status, created_at].hash
242
253
  end
243
254
 
244
255
  # Builds the object from hash
@@ -148,9 +148,9 @@ module Tremendous
148
148
  def valid?
149
149
  warn '[DEPRECATED] the `valid?` method is obsolete'
150
150
  return false if @amount.nil?
151
- currency_code_validator = EnumAttributeValidator.new('String', ["USD", "EUR", "GBP", "CAD"])
151
+ currency_code_validator = EnumAttributeValidator.new('String', ["USD", "EUR", "GBP", "CAD", "ILS", "AUD", "SGD", "HKD", "NZD", "MXN"])
152
152
  return false unless currency_code_validator.valid?(@currency_code)
153
- currency_validator = EnumAttributeValidator.new('String', ["USD", "EUR", "GBP", "CAD"])
153
+ currency_validator = EnumAttributeValidator.new('String', ["USD", "EUR", "GBP", "CAD", "ILS", "AUD", "SGD", "HKD", "NZD", "MXN"])
154
154
  return false unless currency_validator.valid?(@currency)
155
155
  true
156
156
  end
@@ -32,7 +32,7 @@ module Tremendous
32
32
 
33
33
  attr_accessor :recipient
34
34
 
35
- # Timestamp of reward delivery within the next year. Note that if date-time is provided, the time values will be ignored.
35
+ # Date of reward delivery, within the next year. The reward is delivered at 12pm in your organization's time zone on that date, or at 12pm Eastern Time when the organization has no time zone set. Note that if date-time is provided, the time values will be ignored.
36
36
  attr_accessor :deliver_at
37
37
 
38
38
  attr_accessor :custom_fields
@@ -34,6 +34,9 @@ module Tremendous
34
34
  # Currency code for the new organization. Defaults to the current organization's currency if not provided.
35
35
  attr_accessor :currency_code
36
36
 
37
+ # IANA time zone identifier for the new organization, such as America/New_York or Europe/London. Aliases such as US/Eastern are accepted and converted to their canonical identifier (America/New_York). Defaults to the time zone of the organization associated with the API key used for the request if omitted or blank. If that organization has no time zone, the new organization remains unset.
38
+ attr_accessor :timezone
39
+
37
40
  # Timestamp of when the organization has been created.
38
41
  attr_accessor :created_at
39
42
 
@@ -47,6 +50,7 @@ module Tremendous
47
50
  :'copy_settings' => :'copy_settings',
48
51
  :'phone' => :'phone',
49
52
  :'currency_code' => :'currency_code',
53
+ :'timezone' => :'timezone',
50
54
  :'created_at' => :'created_at'
51
55
  }
52
56
  end
@@ -71,6 +75,7 @@ module Tremendous
71
75
  :'copy_settings' => :'CreateOrganizationRequestCopySettings',
72
76
  :'phone' => :'String',
73
77
  :'currency_code' => :'String',
78
+ :'timezone' => :'String',
74
79
  :'created_at' => :'Date'
75
80
  }
76
81
  end
@@ -131,6 +136,10 @@ module Tremendous
131
136
  self.currency_code = attributes[:'currency_code']
132
137
  end
133
138
 
139
+ if attributes.key?(:'timezone')
140
+ self.timezone = attributes[:'timezone']
141
+ end
142
+
134
143
  if attributes.key?(:'created_at')
135
144
  self.created_at = attributes[:'created_at']
136
145
  end
@@ -229,6 +238,7 @@ module Tremendous
229
238
  copy_settings == o.copy_settings &&
230
239
  phone == o.phone &&
231
240
  currency_code == o.currency_code &&
241
+ timezone == o.timezone &&
232
242
  created_at == o.created_at
233
243
  end
234
244
 
@@ -241,7 +251,7 @@ module Tremendous
241
251
  # Calculates hash code according to all attributes.
242
252
  # @return [Integer] Hash code
243
253
  def hash
244
- [id, name, website, with_api_key, copy_settings, phone, currency_code, created_at].hash
254
+ [id, name, website, with_api_key, copy_settings, phone, currency_code, timezone, created_at].hash
245
255
  end
246
256
 
247
257
  # Builds the object from hash
@@ -31,6 +31,9 @@ module Tremendous
31
31
  # Currency code for the new organization. Defaults to the current organization's currency if not provided.
32
32
  attr_accessor :currency_code
33
33
 
34
+ # The organization's time zone as a canonical IANA identifier. Returns `null` if not configured.
35
+ attr_accessor :timezone
36
+
34
37
  # Timestamp of when the organization has been created.
35
38
  attr_accessor :created_at
36
39
 
@@ -46,6 +49,7 @@ module Tremendous
46
49
  :'copy_settings' => :'copy_settings',
47
50
  :'phone' => :'phone',
48
51
  :'currency_code' => :'currency_code',
52
+ :'timezone' => :'timezone',
49
53
  :'created_at' => :'created_at',
50
54
  :'api_key' => :'api_key'
51
55
  }
@@ -70,6 +74,7 @@ module Tremendous
70
74
  :'copy_settings' => :'CreateOrganizationRequestCopySettings',
71
75
  :'phone' => :'String',
72
76
  :'currency_code' => :'String',
77
+ :'timezone' => :'String',
73
78
  :'created_at' => :'Date',
74
79
  :'api_key' => :'String'
75
80
  }
@@ -79,6 +84,7 @@ module Tremendous
79
84
  def self.openapi_nullable
80
85
  Set.new([
81
86
  :'phone',
87
+ :'timezone',
82
88
  ])
83
89
  end
84
90
 
@@ -126,6 +132,10 @@ module Tremendous
126
132
  self.currency_code = attributes[:'currency_code']
127
133
  end
128
134
 
135
+ if attributes.key?(:'timezone')
136
+ self.timezone = attributes[:'timezone']
137
+ end
138
+
129
139
  if attributes.key?(:'created_at')
130
140
  self.created_at = attributes[:'created_at']
131
141
  end
@@ -212,6 +222,7 @@ module Tremendous
212
222
  copy_settings == o.copy_settings &&
213
223
  phone == o.phone &&
214
224
  currency_code == o.currency_code &&
225
+ timezone == o.timezone &&
215
226
  created_at == o.created_at &&
216
227
  api_key == o.api_key
217
228
  end
@@ -225,7 +236,7 @@ module Tremendous
225
236
  # Calculates hash code according to all attributes.
226
237
  # @return [Integer] Hash code
227
238
  def hash
228
- [id, name, website, copy_settings, phone, currency_code, created_at, api_key].hash
239
+ [id, name, website, copy_settings, phone, currency_code, timezone, created_at, api_key].hash
229
240
  end
230
241
 
231
242
  # Builds the object from hash
@@ -34,6 +34,9 @@ module Tremendous
34
34
  # Currency code for the new organization. Defaults to the current organization's currency if not provided.
35
35
  attr_accessor :currency_code
36
36
 
37
+ # The organization's time zone as a canonical IANA identifier. Returns `null` if not configured.
38
+ attr_accessor :timezone
39
+
37
40
  # Timestamp of when the organization has been created.
38
41
  attr_accessor :created_at
39
42
 
@@ -47,6 +50,7 @@ module Tremendous
47
50
  :'copy_settings' => :'copy_settings',
48
51
  :'phone' => :'phone',
49
52
  :'currency_code' => :'currency_code',
53
+ :'timezone' => :'timezone',
50
54
  :'created_at' => :'created_at'
51
55
  }
52
56
  end
@@ -71,6 +75,7 @@ module Tremendous
71
75
  :'copy_settings' => :'CreateOrganizationRequestCopySettings',
72
76
  :'phone' => :'String',
73
77
  :'currency_code' => :'String',
78
+ :'timezone' => :'String',
74
79
  :'created_at' => :'Date'
75
80
  }
76
81
  end
@@ -79,6 +84,7 @@ module Tremendous
79
84
  def self.openapi_nullable
80
85
  Set.new([
81
86
  :'phone',
87
+ :'timezone',
82
88
  ])
83
89
  end
84
90
 
@@ -130,6 +136,10 @@ module Tremendous
130
136
  self.currency_code = attributes[:'currency_code']
131
137
  end
132
138
 
139
+ if attributes.key?(:'timezone')
140
+ self.timezone = attributes[:'timezone']
141
+ end
142
+
133
143
  if attributes.key?(:'created_at')
134
144
  self.created_at = attributes[:'created_at']
135
145
  end
@@ -213,6 +223,7 @@ module Tremendous
213
223
  copy_settings == o.copy_settings &&
214
224
  phone == o.phone &&
215
225
  currency_code == o.currency_code &&
226
+ timezone == o.timezone &&
216
227
  created_at == o.created_at
217
228
  end
218
229
 
@@ -225,7 +236,7 @@ module Tremendous
225
236
  # Calculates hash code according to all attributes.
226
237
  # @return [Integer] Hash code
227
238
  def hash
228
- [id, name, website, with_api_key, copy_settings, phone, currency_code, created_at].hash
239
+ [id, name, website, with_api_key, copy_settings, phone, currency_code, timezone, created_at].hash
229
240
  end
230
241
 
231
242
  # Builds the object from hash
@@ -34,6 +34,9 @@ module Tremendous
34
34
  # Currency code for the new organization. Defaults to the current organization's currency if not provided.
35
35
  attr_accessor :currency_code
36
36
 
37
+ # IANA time zone identifier for the new organization, such as America/New_York or Europe/London. Aliases such as US/Eastern are accepted and converted to their canonical identifier (America/New_York). Defaults to the time zone of the organization associated with the API key used for the request if omitted or blank. If that organization has no time zone, the new organization remains unset.
38
+ attr_accessor :timezone
39
+
37
40
  # Timestamp of when the organization has been created.
38
41
  attr_accessor :created_at
39
42
 
@@ -47,6 +50,7 @@ module Tremendous
47
50
  :'copy_settings' => :'copy_settings',
48
51
  :'phone' => :'phone',
49
52
  :'currency_code' => :'currency_code',
53
+ :'timezone' => :'timezone',
50
54
  :'created_at' => :'created_at'
51
55
  }
52
56
  end
@@ -71,6 +75,7 @@ module Tremendous
71
75
  :'copy_settings' => :'CreateOrganizationRequestCopySettings',
72
76
  :'phone' => :'String',
73
77
  :'currency_code' => :'String',
78
+ :'timezone' => :'String',
74
79
  :'created_at' => :'Date'
75
80
  }
76
81
  end
@@ -125,6 +130,10 @@ module Tremendous
125
130
  self.currency_code = attributes[:'currency_code']
126
131
  end
127
132
 
133
+ if attributes.key?(:'timezone')
134
+ self.timezone = attributes[:'timezone']
135
+ end
136
+
128
137
  if attributes.key?(:'created_at')
129
138
  self.created_at = attributes[:'created_at']
130
139
  end
@@ -178,6 +187,7 @@ module Tremendous
178
187
  copy_settings == o.copy_settings &&
179
188
  phone == o.phone &&
180
189
  currency_code == o.currency_code &&
190
+ timezone == o.timezone &&
181
191
  created_at == o.created_at
182
192
  end
183
193
 
@@ -190,7 +200,7 @@ module Tremendous
190
200
  # Calculates hash code according to all attributes.
191
201
  # @return [Integer] Hash code
192
202
  def hash
193
- [id, name, website, with_api_key, copy_settings, phone, currency_code, created_at].hash
203
+ [id, name, website, with_api_key, copy_settings, phone, currency_code, timezone, created_at].hash
194
204
  end
195
205
 
196
206
  # Builds the object from hash
@@ -32,6 +32,9 @@ module Tremendous
32
32
  # Currency code for the new organization. Defaults to the current organization's currency if not provided.
33
33
  attr_accessor :currency_code
34
34
 
35
+ # IANA time zone identifier for the new organization, such as America/New_York or Europe/London. Aliases such as US/Eastern are accepted and converted to their canonical identifier (America/New_York). Defaults to the time zone of the organization associated with the API key used for the request if omitted or blank. If that organization has no time zone, the new organization remains unset.
36
+ attr_accessor :timezone
37
+
35
38
  # Attribute mapping from ruby-style variable name to JSON key.
36
39
  def self.attribute_map
37
40
  {
@@ -40,7 +43,8 @@ module Tremendous
40
43
  :'with_api_key' => :'with_api_key',
41
44
  :'copy_settings' => :'copy_settings',
42
45
  :'phone' => :'phone',
43
- :'currency_code' => :'currency_code'
46
+ :'currency_code' => :'currency_code',
47
+ :'timezone' => :'timezone'
44
48
  }
45
49
  end
46
50
 
@@ -62,7 +66,8 @@ module Tremendous
62
66
  :'with_api_key' => :'Boolean',
63
67
  :'copy_settings' => :'CreateOrganizationRequestCopySettings',
64
68
  :'phone' => :'String',
65
- :'currency_code' => :'String'
69
+ :'currency_code' => :'String',
70
+ :'timezone' => :'String'
66
71
  }
67
72
  end
68
73
 
@@ -117,6 +122,10 @@ module Tremendous
117
122
  if attributes.key?(:'currency_code')
118
123
  self.currency_code = attributes[:'currency_code']
119
124
  end
125
+
126
+ if attributes.key?(:'timezone')
127
+ self.timezone = attributes[:'timezone']
128
+ end
120
129
  end
121
130
 
122
131
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -189,7 +198,8 @@ module Tremendous
189
198
  with_api_key == o.with_api_key &&
190
199
  copy_settings == o.copy_settings &&
191
200
  phone == o.phone &&
192
- currency_code == o.currency_code
201
+ currency_code == o.currency_code &&
202
+ timezone == o.timezone
193
203
  end
194
204
 
195
205
  # @see the `==` method
@@ -201,7 +211,7 @@ module Tremendous
201
211
  # Calculates hash code according to all attributes.
202
212
  # @return [Integer] Hash code
203
213
  def hash
204
- [name, website, with_api_key, copy_settings, phone, currency_code].hash
214
+ [name, website, with_api_key, copy_settings, phone, currency_code, timezone].hash
205
215
  end
206
216
 
207
217
  # Builds the object from hash
@@ -34,6 +34,9 @@ module Tremendous
34
34
  # Currency code for the new organization. Defaults to the current organization's currency if not provided.
35
35
  attr_accessor :currency_code
36
36
 
37
+ # The organization's time zone as a canonical IANA identifier. Returns `null` if not configured.
38
+ attr_accessor :timezone
39
+
37
40
  # Timestamp of when the organization has been created.
38
41
  attr_accessor :created_at
39
42
 
@@ -50,6 +53,7 @@ module Tremendous
50
53
  :'copy_settings' => :'copy_settings',
51
54
  :'phone' => :'phone',
52
55
  :'currency_code' => :'currency_code',
56
+ :'timezone' => :'timezone',
53
57
  :'created_at' => :'created_at',
54
58
  :'api_key' => :'api_key'
55
59
  }
@@ -75,6 +79,7 @@ module Tremendous
75
79
  :'copy_settings' => :'CreateOrganizationRequestCopySettings',
76
80
  :'phone' => :'String',
77
81
  :'currency_code' => :'String',
82
+ :'timezone' => :'String',
78
83
  :'created_at' => :'Date',
79
84
  :'api_key' => :'String'
80
85
  }
@@ -84,6 +89,7 @@ module Tremendous
84
89
  def self.openapi_nullable
85
90
  Set.new([
86
91
  :'phone',
92
+ :'timezone',
87
93
  ])
88
94
  end
89
95
 
@@ -135,6 +141,10 @@ module Tremendous
135
141
  self.currency_code = attributes[:'currency_code']
136
142
  end
137
143
 
144
+ if attributes.key?(:'timezone')
145
+ self.timezone = attributes[:'timezone']
146
+ end
147
+
138
148
  if attributes.key?(:'created_at')
139
149
  self.created_at = attributes[:'created_at']
140
150
  end
@@ -222,6 +232,7 @@ module Tremendous
222
232
  copy_settings == o.copy_settings &&
223
233
  phone == o.phone &&
224
234
  currency_code == o.currency_code &&
235
+ timezone == o.timezone &&
225
236
  created_at == o.created_at &&
226
237
  api_key == o.api_key
227
238
  end
@@ -235,7 +246,7 @@ module Tremendous
235
246
  # Calculates hash code according to all attributes.
236
247
  # @return [Integer] Hash code
237
248
  def hash
238
- [id, name, website, with_api_key, copy_settings, phone, currency_code, created_at, api_key].hash
249
+ [id, name, website, with_api_key, copy_settings, phone, currency_code, timezone, created_at, api_key].hash
239
250
  end
240
251
 
241
252
  # Builds the object from hash
@@ -21,6 +21,9 @@ module Tremendous
21
21
  # Format the report will be generated in. <table> <thead> <tr> <th>Format</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>csv</code></td> <td>CSV format for report</td> </tr> </tbody> </table>
22
22
  attr_accessor :format
23
23
 
24
+ # Time zone used to interpret date filters and display timestamps in the generated report. Accepts IANA time zone identifiers such as America/New_York or Europe/London, and UTC. Aliases such as US/Eastern are accepted and normalized to their canonical identifier (America/New_York). Defaults to UTC when omitted, null, or blank. Reports created through the API do not inherit your organization's dashboard time zone.
25
+ attr_accessor :timezone
26
+
24
27
  attr_accessor :filters
25
28
 
26
29
  class EnumAttributeValidator
@@ -50,6 +53,7 @@ module Tremendous
50
53
  {
51
54
  :'report_type' => :'report_type',
52
55
  :'format' => :'format',
56
+ :'timezone' => :'timezone',
53
57
  :'filters' => :'filters'
54
58
  }
55
59
  end
@@ -69,6 +73,7 @@ module Tremendous
69
73
  {
70
74
  :'report_type' => :'String',
71
75
  :'format' => :'String',
76
+ :'timezone' => :'String',
72
77
  :'filters' => :'CreateReportRequestFilters'
73
78
  }
74
79
  end
@@ -76,6 +81,7 @@ module Tremendous
76
81
  # List of attributes with nullable: true
77
82
  def self.openapi_nullable
78
83
  Set.new([
84
+ :'timezone',
79
85
  :'filters'
80
86
  ])
81
87
  end
@@ -108,6 +114,10 @@ module Tremendous
108
114
  self.format = nil
109
115
  end
110
116
 
117
+ if attributes.key?(:'timezone')
118
+ self.timezone = attributes[:'timezone']
119
+ end
120
+
111
121
  if attributes.key?(:'filters')
112
122
  self.filters = attributes[:'filters']
113
123
  end
@@ -173,6 +183,7 @@ module Tremendous
173
183
  self.class == o.class &&
174
184
  report_type == o.report_type &&
175
185
  format == o.format &&
186
+ timezone == o.timezone &&
176
187
  filters == o.filters
177
188
  end
178
189
 
@@ -185,7 +196,7 @@ module Tremendous
185
196
  # Calculates hash code according to all attributes.
186
197
  # @return [Integer] Hash code
187
198
  def hash
188
- [report_type, format, filters].hash
199
+ [report_type, format, timezone, filters].hash
189
200
  end
190
201
 
191
202
  # Builds the object from hash
@@ -57,7 +57,6 @@ module Tremendous
57
57
  GTQ = "GTQ".freeze
58
58
  HKD = "HKD".freeze
59
59
  HNL = "HNL".freeze
60
- HRK = "HRK".freeze
61
60
  HUF = "HUF".freeze
62
61
  IDR = "IDR".freeze
63
62
  ILS = "ILS".freeze
@@ -128,7 +127,7 @@ module Tremendous
128
127
  ZAR = "ZAR".freeze
129
128
 
130
129
  def self.all_vars
131
- @all_vars ||= [USD, CAD, EUR, AED, AFN, ALL, AMD, ARS, AUD, AZN, BAM, BDT, BHD, BIF, BND, BOB, BRL, BWP, BYN, BZD, CDF, CHF, CLP, CNY, COP, CRC, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, GBP, GEL, GHS, GNF, GTQ, HKD, HNL, HRK, HUF, IDR, ILS, INR, IQD, IRR, ISK, JMD, JOD, JPY, KES, KHR, KRW, KWD, KZT, LBP, LKR, MAD, MDL, MGA, MKD, MMK, MOP, MUR, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SDG, SEK, SGD, SOS, SYP, THB, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, UYU, UZS, VEF, VND, XAF, XOF, YER, ZAR].freeze
130
+ @all_vars ||= [USD, CAD, EUR, AED, AFN, ALL, AMD, ARS, AUD, AZN, BAM, BDT, BHD, BIF, BND, BOB, BRL, BWP, BYN, BZD, CDF, CHF, CLP, CNY, COP, CRC, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, GBP, GEL, GHS, GNF, GTQ, HKD, HNL, HUF, IDR, ILS, INR, IQD, IRR, ISK, JMD, JOD, JPY, KES, KHR, KRW, KWD, KZT, LBP, LKR, MAD, MDL, MGA, MKD, MMK, MOP, MUR, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SDG, SEK, SGD, SOS, SYP, THB, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, UYU, UZS, VEF, VND, XAF, XOF, YER, ZAR].freeze
132
131
  end
133
132
 
134
133
  # Builds the enum from string
@@ -19,7 +19,7 @@ module Tremendous
19
19
  # The current status of the fraud review: * `flagged` - The reward has been flagged for and waiting manual review. * `blocked` - The reward was reviewed and blocked. * `released` - The reward was reviewed and released.
20
20
  attr_accessor :status
21
21
 
22
- # The array may contain multiple reasons, depending on which rule(s) flagged the reward for review. Reasons can be any of the following: * `Disallowed IP` * `Disallowed email` * `Disallowed country` * `Over reward amount limit` * `Over reward count limit` * `VPN detected` * `Apple Private Relay` * `Device related to multiple emails` * `Device or account related to multiple emails` * `IP on a Tremendous fraud list` * `Bank account on a Tremendous fraud list` * `Fingerprint on a Tremendous fraud list` * `Email on a Tremendous fraud list` * `Phone on a Tremendous fraud list` * `Device on a Tremendous fraud list` * `IP related to a blocked reward` * `Device related to a blocked reward` * `Bank account related to a blocked reward` * `Fingerprint related to a blocked reward` * `Email related to a blocked reward` * `Phone related to a blocked reward` * `Allowed IP` * `Allowed email` * `Allowed country`
22
+ # The array may contain multiple reasons, depending on which rule(s) flagged the reward for review. Reasons can be any of the following: * `Disallowed IP` * `Disallowed email` * `Disallowed country` * `Over reward amount limit` * `Over reward count limit` * `VPN detected` * `Apple Private Relay` * `Device related to multiple emails` * `Device or account related to multiple emails` * `IP on a Tremendous fraud list` * `Bank account on a Tremendous fraud list` * `Fingerprint on a Tremendous fraud list` * `Email on a Tremendous fraud list` * `Phone on a Tremendous fraud list` * `Device on a Tremendous fraud list` * `IP on a Tremendous allow list` * `Bank account on a Tremendous allow list` * `Email on a Tremendous allow list` * `Phone on a Tremendous allow list` * `Device on a Tremendous allow list` * `IP related to a blocked reward` * `Device related to a blocked reward` * `Bank account related to a blocked reward` * `Fingerprint related to a blocked reward` * `Email related to a blocked reward` * `Phone related to a blocked reward` * `Allowed IP` * `Allowed email` * `Allowed country`
23
23
  attr_accessor :reasons
24
24
 
25
25
  # The device fingerprint, if known.
@@ -204,7 +204,7 @@ module Tremendous
204
204
  warn '[DEPRECATED] the `valid?` method is obsolete'
205
205
  status_validator = EnumAttributeValidator.new('String', ["flagged", "blocked", "released"])
206
206
  return false unless status_validator.valid?(@status)
207
- redemption_method_validator = EnumAttributeValidator.new('String', ["bank transfer", "charity", "instant debit transfer", "international bank transfer", "merchant card", "paypal", "venmo", "visa card"])
207
+ redemption_method_validator = EnumAttributeValidator.new('String', ["bank transfer", "cash app", "charity", "crypto", "instant debit transfer", "international bank transfer", "merchant card", "paypal", "recipient_promotion", "venmo", "visa card", "zelle"])
208
208
  return false unless redemption_method_validator.valid?(@redemption_method)
209
209
  risk_validator = EnumAttributeValidator.new('String', ["high", "medium", "low"])
210
210
  return false unless risk_validator.valid?(@risk)
@@ -19,7 +19,7 @@ module Tremendous
19
19
  # The current status of the fraud review: * `flagged` - The reward has been flagged for and waiting manual review. * `blocked` - The reward was reviewed and blocked. * `released` - The reward was reviewed and released.
20
20
  attr_accessor :status
21
21
 
22
- # The array may contain multiple reasons, depending on which rule(s) flagged the reward for review. Reasons can be any of the following: * `Disallowed IP` * `Disallowed email` * `Disallowed country` * `Over reward amount limit` * `Over reward count limit` * `VPN detected` * `Apple Private Relay` * `Device related to multiple emails` * `Device or account related to multiple emails` * `IP on a Tremendous fraud list` * `Bank account on a Tremendous fraud list` * `Fingerprint on a Tremendous fraud list` * `Email on a Tremendous fraud list` * `Phone on a Tremendous fraud list` * `Device on a Tremendous fraud list` * `IP related to a blocked reward` * `Device related to a blocked reward` * `Bank account related to a blocked reward` * `Fingerprint related to a blocked reward` * `Email related to a blocked reward` * `Phone related to a blocked reward` * `Allowed IP` * `Allowed email` * `Allowed country`
22
+ # The array may contain multiple reasons, depending on which rule(s) flagged the reward for review. Reasons can be any of the following: * `Disallowed IP` * `Disallowed email` * `Disallowed country` * `Over reward amount limit` * `Over reward count limit` * `VPN detected` * `Apple Private Relay` * `Device related to multiple emails` * `Device or account related to multiple emails` * `IP on a Tremendous fraud list` * `Bank account on a Tremendous fraud list` * `Fingerprint on a Tremendous fraud list` * `Email on a Tremendous fraud list` * `Phone on a Tremendous fraud list` * `Device on a Tremendous fraud list` * `IP on a Tremendous allow list` * `Bank account on a Tremendous allow list` * `Email on a Tremendous allow list` * `Phone on a Tremendous allow list` * `Device on a Tremendous allow list` * `IP related to a blocked reward` * `Device related to a blocked reward` * `Bank account related to a blocked reward` * `Fingerprint related to a blocked reward` * `Email related to a blocked reward` * `Phone related to a blocked reward` * `Allowed IP` * `Allowed email` * `Allowed country`
23
23
  attr_accessor :reasons
24
24
 
25
25
  # The device fingerprint, if known.
@@ -187,7 +187,7 @@ module Tremendous
187
187
  warn '[DEPRECATED] the `valid?` method is obsolete'
188
188
  status_validator = EnumAttributeValidator.new('String', ["flagged", "blocked", "released"])
189
189
  return false unless status_validator.valid?(@status)
190
- redemption_method_validator = EnumAttributeValidator.new('String', ["bank transfer", "charity", "instant debit transfer", "international bank transfer", "merchant card", "paypal", "venmo", "visa card"])
190
+ redemption_method_validator = EnumAttributeValidator.new('String', ["bank transfer", "cash app", "charity", "crypto", "instant debit transfer", "international bank transfer", "merchant card", "paypal", "recipient_promotion", "venmo", "visa card", "zelle"])
191
191
  return false unless redemption_method_validator.valid?(@redemption_method)
192
192
  true
193
193
  end
@@ -19,7 +19,7 @@ module Tremendous
19
19
  # The current status of the fraud review: * `flagged` - The reward has been flagged for and waiting manual review. * `blocked` - The reward was reviewed and blocked. * `released` - The reward was reviewed and released.
20
20
  attr_accessor :status
21
21
 
22
- # The array may contain multiple reasons, depending on which rule(s) flagged the reward for review. Reasons can be any of the following: * `Disallowed IP` * `Disallowed email` * `Disallowed country` * `Over reward amount limit` * `Over reward count limit` * `VPN detected` * `Apple Private Relay` * `Device related to multiple emails` * `Device or account related to multiple emails` * `IP on a Tremendous fraud list` * `Bank account on a Tremendous fraud list` * `Fingerprint on a Tremendous fraud list` * `Email on a Tremendous fraud list` * `Phone on a Tremendous fraud list` * `Device on a Tremendous fraud list` * `IP related to a blocked reward` * `Device related to a blocked reward` * `Bank account related to a blocked reward` * `Fingerprint related to a blocked reward` * `Email related to a blocked reward` * `Phone related to a blocked reward` * `Allowed IP` * `Allowed email` * `Allowed country`
22
+ # The array may contain multiple reasons, depending on which rule(s) flagged the reward for review. Reasons can be any of the following: * `Disallowed IP` * `Disallowed email` * `Disallowed country` * `Over reward amount limit` * `Over reward count limit` * `VPN detected` * `Apple Private Relay` * `Device related to multiple emails` * `Device or account related to multiple emails` * `IP on a Tremendous fraud list` * `Bank account on a Tremendous fraud list` * `Fingerprint on a Tremendous fraud list` * `Email on a Tremendous fraud list` * `Phone on a Tremendous fraud list` * `Device on a Tremendous fraud list` * `IP on a Tremendous allow list` * `Bank account on a Tremendous allow list` * `Email on a Tremendous allow list` * `Phone on a Tremendous allow list` * `Device on a Tremendous allow list` * `IP related to a blocked reward` * `Device related to a blocked reward` * `Bank account related to a blocked reward` * `Fingerprint related to a blocked reward` * `Email related to a blocked reward` * `Phone related to a blocked reward` * `Allowed IP` * `Allowed email` * `Allowed country`
23
23
  attr_accessor :reasons
24
24
 
25
25
  # The device fingerprint, if known.
@@ -187,7 +187,7 @@ module Tremendous
187
187
  warn '[DEPRECATED] the `valid?` method is obsolete'
188
188
  status_validator = EnumAttributeValidator.new('String', ["flagged", "blocked", "released"])
189
189
  return false unless status_validator.valid?(@status)
190
- redemption_method_validator = EnumAttributeValidator.new('String', ["bank transfer", "charity", "instant debit transfer", "international bank transfer", "merchant card", "paypal", "venmo", "visa card"])
190
+ redemption_method_validator = EnumAttributeValidator.new('String', ["bank transfer", "cash app", "charity", "crypto", "instant debit transfer", "international bank transfer", "merchant card", "paypal", "recipient_promotion", "venmo", "visa card", "zelle"])
191
191
  return false unless redemption_method_validator.valid?(@redemption_method)
192
192
  true
193
193
  end
@@ -30,6 +30,11 @@ module Tremendous
30
30
  EMAIL_ON_A_TREMENDOUS_FRAUD_LIST = "Email on a Tremendous fraud list".freeze
31
31
  PHONE_ON_A_TREMENDOUS_FRAUD_LIST = "Phone on a Tremendous fraud list".freeze
32
32
  DEVICE_ON_A_TREMENDOUS_FRAUD_LIST = "Device on a Tremendous fraud list".freeze
33
+ IP_ON_A_TREMENDOUS_ALLOW_LIST = "IP on a Tremendous allow list".freeze
34
+ BANK_ACCOUNT_ON_A_TREMENDOUS_ALLOW_LIST = "Bank account on a Tremendous allow list".freeze
35
+ EMAIL_ON_A_TREMENDOUS_ALLOW_LIST = "Email on a Tremendous allow list".freeze
36
+ PHONE_ON_A_TREMENDOUS_ALLOW_LIST = "Phone on a Tremendous allow list".freeze
37
+ DEVICE_ON_A_TREMENDOUS_ALLOW_LIST = "Device on a Tremendous allow list".freeze
33
38
  IP_RELATED_TO_A_BLOCKED_REWARD = "IP related to a blocked reward".freeze
34
39
  DEVICE_RELATED_TO_A_BLOCKED_REWARD = "Device related to a blocked reward".freeze
35
40
  BANK_ACCOUNT_RELATED_TO_A_BLOCKED_REWARD = "Bank account related to a blocked reward".freeze
@@ -41,7 +46,7 @@ module Tremendous
41
46
  ALLOWED_COUNTRY = "Allowed country".freeze
42
47
 
43
48
  def self.all_vars
44
- @all_vars ||= [DISALLOWED_IP, DISALLOWED_EMAIL, DISALLOWED_COUNTRY, OVER_REWARD_AMOUNT_LIMIT, OVER_REWARD_COUNT_LIMIT, VPN_DETECTED, APPLE_PRIVATE_RELAY, DEVICE_RELATED_TO_MULTIPLE_EMAILS, DEVICE_OR_ACCOUNT_RELATED_TO_MULTIPLE_EMAILS, IP_ON_A_TREMENDOUS_FRAUD_LIST, BANK_ACCOUNT_ON_A_TREMENDOUS_FRAUD_LIST, FINGERPRINT_ON_A_TREMENDOUS_FRAUD_LIST, EMAIL_ON_A_TREMENDOUS_FRAUD_LIST, PHONE_ON_A_TREMENDOUS_FRAUD_LIST, DEVICE_ON_A_TREMENDOUS_FRAUD_LIST, IP_RELATED_TO_A_BLOCKED_REWARD, DEVICE_RELATED_TO_A_BLOCKED_REWARD, BANK_ACCOUNT_RELATED_TO_A_BLOCKED_REWARD, FINGERPRINT_RELATED_TO_A_BLOCKED_REWARD, EMAIL_RELATED_TO_A_BLOCKED_REWARD, PHONE_RELATED_TO_A_BLOCKED_REWARD, ALLOWED_IP, ALLOWED_EMAIL, ALLOWED_COUNTRY].freeze
49
+ @all_vars ||= [DISALLOWED_IP, DISALLOWED_EMAIL, DISALLOWED_COUNTRY, OVER_REWARD_AMOUNT_LIMIT, OVER_REWARD_COUNT_LIMIT, VPN_DETECTED, APPLE_PRIVATE_RELAY, DEVICE_RELATED_TO_MULTIPLE_EMAILS, DEVICE_OR_ACCOUNT_RELATED_TO_MULTIPLE_EMAILS, IP_ON_A_TREMENDOUS_FRAUD_LIST, BANK_ACCOUNT_ON_A_TREMENDOUS_FRAUD_LIST, FINGERPRINT_ON_A_TREMENDOUS_FRAUD_LIST, EMAIL_ON_A_TREMENDOUS_FRAUD_LIST, PHONE_ON_A_TREMENDOUS_FRAUD_LIST, DEVICE_ON_A_TREMENDOUS_FRAUD_LIST, IP_ON_A_TREMENDOUS_ALLOW_LIST, BANK_ACCOUNT_ON_A_TREMENDOUS_ALLOW_LIST, EMAIL_ON_A_TREMENDOUS_ALLOW_LIST, PHONE_ON_A_TREMENDOUS_ALLOW_LIST, DEVICE_ON_A_TREMENDOUS_ALLOW_LIST, IP_RELATED_TO_A_BLOCKED_REWARD, DEVICE_RELATED_TO_A_BLOCKED_REWARD, BANK_ACCOUNT_RELATED_TO_A_BLOCKED_REWARD, FINGERPRINT_RELATED_TO_A_BLOCKED_REWARD, EMAIL_RELATED_TO_A_BLOCKED_REWARD, PHONE_RELATED_TO_A_BLOCKED_REWARD, ALLOWED_IP, ALLOWED_EMAIL, ALLOWED_COUNTRY].freeze
45
50
  end
46
51
 
47
52
  # Builds the enum from string
@@ -16,16 +16,20 @@ require 'time'
16
16
  module Tremendous
17
17
  class FraudReviewRedemptionMethod
18
18
  BANK_TRANSFER = "bank transfer".freeze
19
+ CASH_APP = "cash app".freeze
19
20
  CHARITY = "charity".freeze
21
+ CRYPTO = "crypto".freeze
20
22
  INSTANT_DEBIT_TRANSFER = "instant debit transfer".freeze
21
23
  INTERNATIONAL_BANK_TRANSFER = "international bank transfer".freeze
22
24
  MERCHANT_CARD = "merchant card".freeze
23
25
  PAYPAL = "paypal".freeze
26
+ RECIPIENT_PROMOTION = "recipient_promotion".freeze
24
27
  VENMO = "venmo".freeze
25
28
  VISA_CARD = "visa card".freeze
29
+ ZELLE = "zelle".freeze
26
30
 
27
31
  def self.all_vars
28
- @all_vars ||= [BANK_TRANSFER, CHARITY, INSTANT_DEBIT_TRANSFER, INTERNATIONAL_BANK_TRANSFER, MERCHANT_CARD, PAYPAL, VENMO, VISA_CARD].freeze
32
+ @all_vars ||= [BANK_TRANSFER, CASH_APP, CHARITY, CRYPTO, INSTANT_DEBIT_TRANSFER, INTERNATIONAL_BANK_TRANSFER, MERCHANT_CARD, PAYPAL, RECIPIENT_PROMOTION, VENMO, VISA_CARD, ZELLE].freeze
29
33
  end
30
34
 
31
35
  # Builds the enum from string
@@ -19,7 +19,7 @@ module Tremendous
19
19
  # The current status of the fraud review: * `flagged` - The reward has been flagged for and waiting manual review. * `blocked` - The reward was reviewed and blocked. * `released` - The reward was reviewed and released.
20
20
  attr_accessor :status
21
21
 
22
- # The array may contain multiple reasons, depending on which rule(s) flagged the reward for review. Reasons can be any of the following: * `Disallowed IP` * `Disallowed email` * `Disallowed country` * `Over reward amount limit` * `Over reward count limit` * `VPN detected` * `Apple Private Relay` * `Device related to multiple emails` * `Device or account related to multiple emails` * `IP on a Tremendous fraud list` * `Bank account on a Tremendous fraud list` * `Fingerprint on a Tremendous fraud list` * `Email on a Tremendous fraud list` * `Phone on a Tremendous fraud list` * `Device on a Tremendous fraud list` * `IP related to a blocked reward` * `Device related to a blocked reward` * `Bank account related to a blocked reward` * `Fingerprint related to a blocked reward` * `Email related to a blocked reward` * `Phone related to a blocked reward` * `Allowed IP` * `Allowed email` * `Allowed country`
22
+ # The array may contain multiple reasons, depending on which rule(s) flagged the reward for review. Reasons can be any of the following: * `Disallowed IP` * `Disallowed email` * `Disallowed country` * `Over reward amount limit` * `Over reward count limit` * `VPN detected` * `Apple Private Relay` * `Device related to multiple emails` * `Device or account related to multiple emails` * `IP on a Tremendous fraud list` * `Bank account on a Tremendous fraud list` * `Fingerprint on a Tremendous fraud list` * `Email on a Tremendous fraud list` * `Phone on a Tremendous fraud list` * `Device on a Tremendous fraud list` * `IP on a Tremendous allow list` * `Bank account on a Tremendous allow list` * `Email on a Tremendous allow list` * `Phone on a Tremendous allow list` * `Device on a Tremendous allow list` * `IP related to a blocked reward` * `Device related to a blocked reward` * `Bank account related to a blocked reward` * `Fingerprint related to a blocked reward` * `Email related to a blocked reward` * `Phone related to a blocked reward` * `Allowed IP` * `Allowed email` * `Allowed country`
23
23
  attr_accessor :reasons
24
24
 
25
25
  # The device fingerprint, if known.
@@ -204,7 +204,7 @@ module Tremendous
204
204
  warn '[DEPRECATED] the `valid?` method is obsolete'
205
205
  status_validator = EnumAttributeValidator.new('String', ["flagged", "blocked", "released"])
206
206
  return false unless status_validator.valid?(@status)
207
- redemption_method_validator = EnumAttributeValidator.new('String', ["bank transfer", "charity", "instant debit transfer", "international bank transfer", "merchant card", "paypal", "venmo", "visa card"])
207
+ redemption_method_validator = EnumAttributeValidator.new('String', ["bank transfer", "cash app", "charity", "crypto", "instant debit transfer", "international bank transfer", "merchant card", "paypal", "recipient_promotion", "venmo", "visa card", "zelle"])
208
208
  return false unless redemption_method_validator.valid?(@redemption_method)
209
209
  risk_validator = EnumAttributeValidator.new('String', ["high", "medium", "low"])
210
210
  return false unless risk_validator.valid?(@risk)