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
@@ -227,9 +227,9 @@ module Tremendous
227
227
  warn '[DEPRECATED] the `valid?` method is obsolete'
228
228
  return false if @id.nil?
229
229
  return false if @amount.nil?
230
- currency_code_validator = EnumAttributeValidator.new('String', ["USD", "EUR", "GBP", "CAD"])
230
+ currency_code_validator = EnumAttributeValidator.new('String', ["USD", "EUR", "GBP", "CAD", "ILS", "AUD", "SGD", "HKD", "NZD", "MXN"])
231
231
  return false unless currency_code_validator.valid?(@currency_code)
232
- currency_validator = EnumAttributeValidator.new('String', ["USD", "EUR", "GBP", "CAD"])
232
+ currency_validator = EnumAttributeValidator.new('String', ["USD", "EUR", "GBP", "CAD", "ILS", "AUD", "SGD", "HKD", "NZD", "MXN"])
233
233
  return false unless currency_validator.valid?(@currency)
234
234
  return false if @status.nil?
235
235
  status_validator = EnumAttributeValidator.new('String', ["DELETED", "PAID", "OPEN", "MARKED_AS_PAID"])
@@ -227,9 +227,9 @@ module Tremendous
227
227
  warn '[DEPRECATED] the `valid?` method is obsolete'
228
228
  return false if @id.nil?
229
229
  return false if @amount.nil?
230
- currency_code_validator = EnumAttributeValidator.new('String', ["USD", "EUR", "GBP", "CAD"])
230
+ currency_code_validator = EnumAttributeValidator.new('String', ["USD", "EUR", "GBP", "CAD", "ILS", "AUD", "SGD", "HKD", "NZD", "MXN"])
231
231
  return false unless currency_code_validator.valid?(@currency_code)
232
- currency_validator = EnumAttributeValidator.new('String', ["USD", "EUR", "GBP", "CAD"])
232
+ currency_validator = EnumAttributeValidator.new('String', ["USD", "EUR", "GBP", "CAD", "ILS", "AUD", "SGD", "HKD", "NZD", "MXN"])
233
233
  return false unless currency_validator.valid?(@currency)
234
234
  return false if @status.nil?
235
235
  status_validator = EnumAttributeValidator.new('String', ["DELETED", "PAID", "OPEN", "MARKED_AS_PAID"])
@@ -34,6 +34,9 @@ module Tremendous
34
34
  # A brief description of the transaction
35
35
  attr_accessor :description
36
36
 
37
+ # ID of the payment behind the transaction, shown as \"Payment ID\" in the dashboard's balance transactions export and as \"Prefund confirmation\" on deposit receipts. Use it to match deposits, including auto-reloads, against your bank or card statements. Only present on transactions tied to a payment into your balance, such as deposits, the credit recorded when an order is paid by card or bank transfer, and transfers between organizations. Omitted otherwise, for example on the debit for an order paid from your balance.
38
+ attr_accessor :payment_id
39
+
37
40
  attr_accessor :order
38
41
 
39
42
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -45,6 +48,7 @@ module Tremendous
45
48
  :'balance' => :'balance',
46
49
  :'action' => :'action',
47
50
  :'description' => :'description',
51
+ :'payment_id' => :'payment_id',
48
52
  :'order' => :'order'
49
53
  }
50
54
  end
@@ -68,6 +72,7 @@ module Tremendous
68
72
  :'balance' => :'Float',
69
73
  :'action' => :'String',
70
74
  :'description' => :'String',
75
+ :'payment_id' => :'String',
71
76
  :'order' => :'ListBalanceTransactions200ResponseTransactionsInnerOrder'
72
77
  }
73
78
  end
@@ -130,6 +135,10 @@ module Tremendous
130
135
  self.description = nil
131
136
  end
132
137
 
138
+ if attributes.key?(:'payment_id')
139
+ self.payment_id = attributes[:'payment_id']
140
+ end
141
+
133
142
  if attributes.key?(:'order')
134
143
  self.order = attributes[:'order']
135
144
  end
@@ -251,6 +260,7 @@ module Tremendous
251
260
  balance == o.balance &&
252
261
  action == o.action &&
253
262
  description == o.description &&
263
+ payment_id == o.payment_id &&
254
264
  order == o.order
255
265
  end
256
266
 
@@ -263,7 +273,7 @@ module Tremendous
263
273
  # Calculates hash code according to all attributes.
264
274
  # @return [Integer] Hash code
265
275
  def hash
266
- [created_at, amount, currency_code, balance, action, description, order].hash
276
+ [created_at, amount, currency_code, balance, action, description, payment_id, order].hash
267
277
  end
268
278
 
269
279
  # Builds the object from hash
@@ -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
@@ -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
@@ -50,6 +50,8 @@ module Tremendous
50
50
  # List of attributes with nullable: true
51
51
  def self.openapi_nullable
52
52
  Set.new([
53
+ :'return_code',
54
+ :'description'
53
55
  ])
54
56
  end
55
57
 
@@ -227,9 +227,9 @@ module Tremendous
227
227
  warn '[DEPRECATED] the `valid?` method is obsolete'
228
228
  return false if @id.nil?
229
229
  return false if @amount.nil?
230
- currency_code_validator = EnumAttributeValidator.new('String', ["USD", "EUR", "GBP", "CAD"])
230
+ currency_code_validator = EnumAttributeValidator.new('String', ["USD", "EUR", "GBP", "CAD", "ILS", "AUD", "SGD", "HKD", "NZD", "MXN"])
231
231
  return false unless currency_code_validator.valid?(@currency_code)
232
- currency_validator = EnumAttributeValidator.new('String', ["USD", "EUR", "GBP", "CAD"])
232
+ currency_validator = EnumAttributeValidator.new('String', ["USD", "EUR", "GBP", "CAD", "ILS", "AUD", "SGD", "HKD", "NZD", "MXN"])
233
233
  return false unless currency_validator.valid?(@currency)
234
234
  return false if @status.nil?
235
235
  status_validator = EnumAttributeValidator.new('String', ["DELETED", "PAID", "OPEN", "MARKED_AS_PAID"])
@@ -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
@@ -24,13 +24,13 @@ module Tremendous
24
24
  # Detailed description of the product.
25
25
  attr_accessor :description
26
26
 
27
- # The category of the 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> <tr> <td><code>cash_app</code></td> <td>Payout via Cash App</td> </tr> <tr> <td><code>international_bank</code></td> <td>Bank transfer to recipients outside of the US</td> </tr> <tr> <td><code>wallet</code></td> <td>Payout to a digital wallet (e.g. GCash, MoMo)</td> </tr> </tbody> </table>
27
+ # The category of the 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> <tr> <td><code>cash_app</code></td> <td>Payout via Cash App</td> </tr> <tr> <td><code>international_bank</code></td> <td>Bank transfer to recipients outside of the US</td> </tr> <tr> <td><code>wallet</code></td> <td>Payout to a digital wallet (e.g. GCash, MoMo)</td> </tr> <tr> <td><code>crypto_currency</code></td> <td>Payout in cryptocurrency</td> </tr> </tbody> </table>
28
28
  attr_accessor :category
29
29
 
30
30
  # Additional classification for the product. Only applicable to products with a `category` of `merchant_card`. Possible subcategories: * `beauty_and_health` * `digital_financial_services` * `electronics` * `entertainment` * `fashion` * `food_and_drink` * `general_merchandise` * `grocery_and_supermarkets` * `home_and_living` * `mobility_and_fuel` * `sports_and_outdoor_gear` * `travel_and_hospitality`
31
31
  attr_accessor :subcategory
32
32
 
33
- # Legal disclosures for this product. Can be in HTML format.
33
+ # Legal disclosures for this product, as an HTML fragment that uses basic formatting tags such as paragraphs, lists, links, and emphasis. Some products return plain text. Sanitize the value before rendering it.
34
34
  attr_accessor :disclosure
35
35
 
36
36
  # Products are restricted in their usage based on the amount of the reward. The `skus` array defines bands of denominations in which this product may be used for payouts. The skus apply to orders in any of the product's `currency_codes`.
@@ -280,7 +280,7 @@ module Tremendous
280
280
  return false if @name.nil?
281
281
  return false if @description.nil?
282
282
  return false if @category.nil?
283
- category_validator = EnumAttributeValidator.new('String', ["ach", "charity", "instant_debit_transfer", "merchant_card", "paypal", "venmo", "visa_card", "cash_app", "international_bank", "wallet"])
283
+ category_validator = EnumAttributeValidator.new('String', ["ach", "charity", "instant_debit_transfer", "merchant_card", "paypal", "venmo", "visa_card", "cash_app", "international_bank", "wallet", "crypto_currency"])
284
284
  return false unless category_validator.valid?(@category)
285
285
  subcategory_validator = EnumAttributeValidator.new('String', ["beauty_and_health", "digital_financial_services", "electronics", "entertainment", "fashion", "food_and_drink", "general_merchandise", "grocery_and_supermarkets", "home_and_living", "mobility_and_fuel", "sports_and_outdoor_gear", "travel_and_hospitality"])
286
286
  return false unless subcategory_validator.valid?(@subcategory)
@@ -152,7 +152,7 @@ module Tremendous
152
152
  return false if @max.nil?
153
153
  return false if @max < 0
154
154
  return false if @currency_code.nil?
155
- currency_code_validator = EnumAttributeValidator.new('String', ["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"])
155
+ currency_code_validator = EnumAttributeValidator.new('String', ["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"])
156
156
  return false unless currency_code_validator.valid?(@currency_code)
157
157
  true
158
158
  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
@@ -119,7 +119,7 @@ module Tremendous
119
119
  def valid?
120
120
  warn '[DEPRECATED] the `valid?` method is obsolete'
121
121
  return false if @denomination.nil?
122
- currency_code_validator = EnumAttributeValidator.new('String', ["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"])
122
+ currency_code_validator = EnumAttributeValidator.new('String', ["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"])
123
123
  return false unless currency_code_validator.valid?(@currency_code)
124
124
  true
125
125
  end
@@ -38,7 +38,7 @@ module Tremendous
38
38
 
39
39
  attr_accessor :recipient
40
40
 
41
- # Timestamp of reward delivery within the next year. Note that if date-time is provided, the time values will be ignored.
41
+ # 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.
42
42
  attr_accessor :deliver_at
43
43
 
44
44
  attr_accessor :custom_fields
@@ -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
@@ -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
@@ -24,13 +24,13 @@ module Tremendous
24
24
  # Detailed description of the product.
25
25
  attr_accessor :description
26
26
 
27
- # The category of the 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> <tr> <td><code>cash_app</code></td> <td>Payout via Cash App</td> </tr> <tr> <td><code>international_bank</code></td> <td>Bank transfer to recipients outside of the US</td> </tr> <tr> <td><code>wallet</code></td> <td>Payout to a digital wallet (e.g. GCash, MoMo)</td> </tr> </tbody> </table>
27
+ # The category of the 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> <tr> <td><code>cash_app</code></td> <td>Payout via Cash App</td> </tr> <tr> <td><code>international_bank</code></td> <td>Bank transfer to recipients outside of the US</td> </tr> <tr> <td><code>wallet</code></td> <td>Payout to a digital wallet (e.g. GCash, MoMo)</td> </tr> <tr> <td><code>crypto_currency</code></td> <td>Payout in cryptocurrency</td> </tr> </tbody> </table>
28
28
  attr_accessor :category
29
29
 
30
30
  # Additional classification for the product. Only applicable to products with a `category` of `merchant_card`. Possible subcategories: * `beauty_and_health` * `digital_financial_services` * `electronics` * `entertainment` * `fashion` * `food_and_drink` * `general_merchandise` * `grocery_and_supermarkets` * `home_and_living` * `mobility_and_fuel` * `sports_and_outdoor_gear` * `travel_and_hospitality`
31
31
  attr_accessor :subcategory
32
32
 
33
- # Legal disclosures for this product. Can be in HTML format.
33
+ # Legal disclosures for this product, as an HTML fragment that uses basic formatting tags such as paragraphs, lists, links, and emphasis. Some products return plain text. Sanitize the value before rendering it.
34
34
  attr_accessor :disclosure
35
35
 
36
36
  # Products are restricted in their usage based on the amount of the reward. The `skus` array defines bands of denominations in which this product may be used for payouts. The skus apply to orders in any of the product's `currency_codes`.
@@ -280,7 +280,7 @@ module Tremendous
280
280
  return false if @name.nil?
281
281
  return false if @description.nil?
282
282
  return false if @category.nil?
283
- category_validator = EnumAttributeValidator.new('String', ["ach", "charity", "instant_debit_transfer", "merchant_card", "paypal", "venmo", "visa_card", "cash_app", "international_bank", "wallet"])
283
+ category_validator = EnumAttributeValidator.new('String', ["ach", "charity", "instant_debit_transfer", "merchant_card", "paypal", "venmo", "visa_card", "cash_app", "international_bank", "wallet", "crypto_currency"])
284
284
  return false unless category_validator.valid?(@category)
285
285
  subcategory_validator = EnumAttributeValidator.new('String', ["beauty_and_health", "digital_financial_services", "electronics", "entertainment", "fashion", "food_and_drink", "general_merchandise", "grocery_and_supermarkets", "home_and_living", "mobility_and_fuel", "sports_and_outdoor_gear", "travel_and_hospitality"])
286
286
  return false unless subcategory_validator.valid?(@subcategory)
@@ -38,7 +38,7 @@ module Tremendous
38
38
 
39
39
  attr_accessor :recipient
40
40
 
41
- # Timestamp of reward delivery within the next year. Note that if date-time is provided, the time values will be ignored.
41
+ # 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.
42
42
  attr_accessor :deliver_at
43
43
 
44
44
  attr_accessor :custom_fields
@@ -38,7 +38,7 @@ module Tremendous
38
38
 
39
39
  attr_accessor :recipient
40
40
 
41
- # Timestamp of reward delivery within the next year. Note that if date-time is provided, the time values will be ignored.
41
+ # 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.
42
42
  attr_accessor :deliver_at
43
43
 
44
44
  attr_accessor :custom_fields
@@ -38,7 +38,7 @@ module Tremendous
38
38
 
39
39
  attr_accessor :recipient
40
40
 
41
- # Timestamp of reward delivery within the next year. Note that if date-time is provided, the time values will be ignored.
41
+ # 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.
42
42
  attr_accessor :deliver_at
43
43
 
44
44
  attr_accessor :custom_fields
@@ -38,7 +38,7 @@ module Tremendous
38
38
 
39
39
  attr_accessor :recipient
40
40
 
41
- # Timestamp of reward delivery within the next year. Note that if date-time is provided, the time values will be ignored.
41
+ # 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.
42
42
  attr_accessor :deliver_at
43
43
 
44
44
  attr_accessor :custom_fields
@@ -119,7 +119,7 @@ module Tremendous
119
119
  def valid?
120
120
  warn '[DEPRECATED] the `valid?` method is obsolete'
121
121
  return false if @denomination.nil?
122
- currency_code_validator = EnumAttributeValidator.new('String', ["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"])
122
+ currency_code_validator = EnumAttributeValidator.new('String', ["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"])
123
123
  return false unless currency_code_validator.valid?(@currency_code)
124
124
  true
125
125
  end
@@ -38,7 +38,7 @@ module Tremendous
38
38
 
39
39
  attr_accessor :recipient
40
40
 
41
- # Timestamp of reward delivery within the next year. Note that if date-time is provided, the time values will be ignored.
41
+ # 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.
42
42
  attr_accessor :deliver_at
43
43
 
44
44
  attr_accessor :custom_fields
@@ -38,7 +38,7 @@ module Tremendous
38
38
 
39
39
  attr_accessor :recipient
40
40
 
41
- # Timestamp of reward delivery within the next year. Note that if date-time is provided, the time values will be ignored.
41
+ # 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.
42
42
  attr_accessor :deliver_at
43
43
 
44
44
  attr_accessor :custom_fields
@@ -26,7 +26,7 @@ module Tremendous
26
26
 
27
27
  attr_accessor :recipient
28
28
 
29
- # Timestamp of reward delivery within the next year. Note that if date-time is provided, the time values will be ignored.
29
+ # 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.
30
30
  attr_accessor :deliver_at
31
31
 
32
32
  attr_accessor :custom_fields
@@ -1,3 +1,3 @@
1
1
  module Tremendous
2
- VERSION = "5.30.0"
2
+ VERSION = "7.0.0"
3
3
  end
data/lib/tremendous.rb CHANGED
@@ -39,8 +39,6 @@ require 'tremendous/models/connected_organization_member_session_response_connec
39
39
  require 'tremendous/models/connected_organization_organization'
40
40
  require 'tremendous/models/connected_organization_response'
41
41
  require 'tremendous/models/connected_organization_response_connected_organization'
42
- require 'tremendous/models/create_api_key200_response'
43
- require 'tremendous/models/create_api_key_request'
44
42
  require 'tremendous/models/create_campaign200_response'
45
43
  require 'tremendous/models/create_campaign_request'
46
44
  require 'tremendous/models/create_connected_organization200_response'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tremendous_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.30.0
4
+ version: 7.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tremendous Developers
@@ -90,8 +90,6 @@ files:
90
90
  - lib/tremendous/models/connected_organization_organization.rb
91
91
  - lib/tremendous/models/connected_organization_response.rb
92
92
  - lib/tremendous/models/connected_organization_response_connected_organization.rb
93
- - lib/tremendous/models/create_api_key200_response.rb
94
- - lib/tremendous/models/create_api_key_request.rb
95
93
  - lib/tremendous/models/create_campaign200_response.rb
96
94
  - lib/tremendous/models/create_campaign_request.rb
97
95
  - lib/tremendous/models/create_connected_organization200_response.rb
@@ -336,7 +334,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
336
334
  requirements:
337
335
  - - ">="
338
336
  - !ruby/object:Gem::Version
339
- version: '0'
337
+ version: '3.3'
340
338
  required_rubygems_version: !ruby/object:Gem::Requirement
341
339
  requirements:
342
340
  - - ">="