tremendous_ruby 5.12.0 → 5.13.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.
- checksums.yaml +4 -4
- data/lib/tremendous/api/tremendous_api.rb +5 -2
- data/lib/tremendous/models/allow_email.rb +9 -0
- data/lib/tremendous/models/allow_email1.rb +9 -0
- data/lib/tremendous/models/allow_ip.rb +9 -0
- data/lib/tremendous/models/allow_ip1.rb +9 -0
- data/lib/tremendous/models/custom_field.rb +1 -1
- data/lib/tremendous/models/fraud_config_allow_email.rb +9 -0
- data/lib/tremendous/models/fraud_config_ip.rb +9 -0
- data/lib/tremendous/models/fraud_config_review_email.rb +19 -0
- data/lib/tremendous/models/funding_source.rb +3 -3
- data/lib/tremendous/models/list_funding_sources200_response_funding_sources_inner.rb +3 -3
- data/lib/tremendous/models/list_funding_sources200_response_funding_sources_inner_meta.rb +2 -2
- data/lib/tremendous/models/list_products_response_products_inner.rb +24 -2
- data/lib/tremendous/models/list_rewards200_response_rewards_inner_custom_fields_inner.rb +1 -1
- data/lib/tremendous/models/product.rb +24 -2
- data/lib/tremendous/models/review_email.rb +19 -0
- data/lib/tremendous/models/review_email1.rb +19 -0
- data/lib/tremendous/models/review_ip.rb +9 -0
- data/lib/tremendous/models/review_ip1.rb +9 -0
- data/lib/tremendous/models/reward_base_custom_fields_inner.rb +1 -1
- data/lib/tremendous/models/single_reward_order_reward_custom_fields_inner.rb +1 -1
- data/lib/tremendous/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6444bf51beb3a23f2b5372ef7dbd452de68808caf545876e914e9ad47d24155
|
4
|
+
data.tar.gz: d7015e2adfc340231076d4d69a775d520a9f6aa6bdf3b027b013fef700181aae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69a3c98e1376554ff58f7b56156361599aeb4a47441aec7b7dea65d19969ff29fb63a79c6cb1e13b0b81becaf10ef9903ca258e06b8fcabd0a1188d793be9656
|
7
|
+
data.tar.gz: 2e385b12754d2922e30355a47600f6d58412bbb6deebbdfac3d29023c798ef2bf8be5a80d4ffe323f1eb7d5b766de8858dac45481516f64e2147cd434afb7d8e
|
@@ -3118,6 +3118,7 @@ module Tremendous
|
|
3118
3118
|
# @param [Hash] opts the optional parameters
|
3119
3119
|
# @option opts [String] :country Comma-separated list of [Alpha-2 country codes](https://www.iban.com/country-codes), used to only retrieve products available in the provided countries
|
3120
3120
|
# @option opts [String] :currency Comma-separated list of [currency codes](https://www.iban.com/currency-codes), used to only retrieve products available in the provided currencies
|
3121
|
+
# @option opts [String] :subcategory Comma-separated list of [subcategories](https://developers.tremendous.com/reference/obj-schema-products-1), used to only retrieve products with the provided subcategories
|
3121
3122
|
# @return [ListProductsResponse]
|
3122
3123
|
def list_products(opts = {})
|
3123
3124
|
data, _status_code, _headers = list_products_with_http_info(opts)
|
@@ -3129,6 +3130,7 @@ module Tremendous
|
|
3129
3130
|
# @param [Hash] opts the optional parameters
|
3130
3131
|
# @option opts [String] :country Comma-separated list of [Alpha-2 country codes](https://www.iban.com/country-codes), used to only retrieve products available in the provided countries
|
3131
3132
|
# @option opts [String] :currency Comma-separated list of [currency codes](https://www.iban.com/currency-codes), used to only retrieve products available in the provided currencies
|
3133
|
+
# @option opts [String] :subcategory Comma-separated list of [subcategories](https://developers.tremendous.com/reference/obj-schema-products-1), used to only retrieve products with the provided subcategories
|
3132
3134
|
# @return [Array<(ListProductsResponse, Integer, Hash)>] ListProductsResponse data, response status code and response headers
|
3133
3135
|
def list_products_with_http_info(opts = {})
|
3134
3136
|
if @api_client.config.debugging
|
@@ -3141,6 +3143,7 @@ module Tremendous
|
|
3141
3143
|
query_params = opts[:query_params] || {}
|
3142
3144
|
query_params[:'country'] = opts[:'country'] if !opts[:'country'].nil?
|
3143
3145
|
query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
|
3146
|
+
query_params[:'subcategory'] = opts[:'subcategory'] if !opts[:'subcategory'].nil?
|
3144
3147
|
|
3145
3148
|
# header parameters
|
3146
3149
|
header_params = opts[:header_params] || {}
|
@@ -3177,7 +3180,7 @@ module Tremendous
|
|
3177
3180
|
end
|
3178
3181
|
|
3179
3182
|
# List rewards
|
3180
|
-
# Retrieve a list of all created rewards
|
3183
|
+
# Retrieve a list of all created rewards. You can query for rewards by custom field attributes using the field label and values as query params. [Learn more](https://developers.tremendous.com/docs/using-custom-fields-to-add-custom-data-to-rewards#querying-by-custom-fields)
|
3181
3184
|
# @param [Hash] opts the optional parameters
|
3182
3185
|
# @option opts [Integer] :offset Offsets the returned list by the given number of rewards. The returned rewards are ordered (and offsetted) by their creation date (DESC).
|
3183
3186
|
# @option opts [Integer] :limit Limits the number of rewards listed. The maximum value is 500 and the default is 100.
|
@@ -3188,7 +3191,7 @@ module Tremendous
|
|
3188
3191
|
end
|
3189
3192
|
|
3190
3193
|
# List rewards
|
3191
|
-
# Retrieve a list of all created rewards
|
3194
|
+
# Retrieve a list of all created rewards. You can query for rewards by custom field attributes using the field label and values as query params. [Learn more](https://developers.tremendous.com/docs/using-custom-fields-to-add-custom-data-to-rewards#querying-by-custom-fields)
|
3192
3195
|
# @param [Hash] opts the optional parameters
|
3193
3196
|
# @option opts [Integer] :offset Offsets the returned list by the given number of rewards. The returned rewards are ordered (and offsetted) by their creation date (DESC).
|
3194
3197
|
# @option opts [Integer] :limit Limits the number of rewards listed. The maximum value is 500 and the default is 100.
|
@@ -83,6 +83,10 @@ module Tremendous
|
|
83
83
|
invalid_properties.push('invalid value for "emails", emails cannot be nil.')
|
84
84
|
end
|
85
85
|
|
86
|
+
if @emails.length > 50000
|
87
|
+
invalid_properties.push('invalid value for "emails", number of items must be less than or equal to 50000.')
|
88
|
+
end
|
89
|
+
|
86
90
|
invalid_properties
|
87
91
|
end
|
88
92
|
|
@@ -91,6 +95,7 @@ module Tremendous
|
|
91
95
|
def valid?
|
92
96
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
93
97
|
return false if @emails.nil?
|
98
|
+
return false if @emails.length > 50000
|
94
99
|
true
|
95
100
|
end
|
96
101
|
|
@@ -101,6 +106,10 @@ module Tremendous
|
|
101
106
|
fail ArgumentError, 'emails cannot be nil'
|
102
107
|
end
|
103
108
|
|
109
|
+
if emails.length > 50000
|
110
|
+
fail ArgumentError, 'invalid value for "emails", number of items must be less than or equal to 50000.'
|
111
|
+
end
|
112
|
+
|
104
113
|
@emails = emails
|
105
114
|
end
|
106
115
|
|
@@ -83,6 +83,10 @@ module Tremendous
|
|
83
83
|
invalid_properties.push('invalid value for "emails", emails cannot be nil.')
|
84
84
|
end
|
85
85
|
|
86
|
+
if @emails.length > 50000
|
87
|
+
invalid_properties.push('invalid value for "emails", number of items must be less than or equal to 50000.')
|
88
|
+
end
|
89
|
+
|
86
90
|
invalid_properties
|
87
91
|
end
|
88
92
|
|
@@ -91,6 +95,7 @@ module Tremendous
|
|
91
95
|
def valid?
|
92
96
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
93
97
|
return false if @emails.nil?
|
98
|
+
return false if @emails.length > 50000
|
94
99
|
true
|
95
100
|
end
|
96
101
|
|
@@ -101,6 +106,10 @@ module Tremendous
|
|
101
106
|
fail ArgumentError, 'emails cannot be nil'
|
102
107
|
end
|
103
108
|
|
109
|
+
if emails.length > 50000
|
110
|
+
fail ArgumentError, 'invalid value for "emails", number of items must be less than or equal to 50000.'
|
111
|
+
end
|
112
|
+
|
104
113
|
@emails = emails
|
105
114
|
end
|
106
115
|
|
@@ -83,6 +83,10 @@ module Tremendous
|
|
83
83
|
invalid_properties.push('invalid value for "ips", ips cannot be nil.')
|
84
84
|
end
|
85
85
|
|
86
|
+
if @ips.length > 50000
|
87
|
+
invalid_properties.push('invalid value for "ips", number of items must be less than or equal to 50000.')
|
88
|
+
end
|
89
|
+
|
86
90
|
invalid_properties
|
87
91
|
end
|
88
92
|
|
@@ -91,6 +95,7 @@ module Tremendous
|
|
91
95
|
def valid?
|
92
96
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
93
97
|
return false if @ips.nil?
|
98
|
+
return false if @ips.length > 50000
|
94
99
|
true
|
95
100
|
end
|
96
101
|
|
@@ -101,6 +106,10 @@ module Tremendous
|
|
101
106
|
fail ArgumentError, 'ips cannot be nil'
|
102
107
|
end
|
103
108
|
|
109
|
+
if ips.length > 50000
|
110
|
+
fail ArgumentError, 'invalid value for "ips", number of items must be less than or equal to 50000.'
|
111
|
+
end
|
112
|
+
|
104
113
|
@ips = ips
|
105
114
|
end
|
106
115
|
|
@@ -83,6 +83,10 @@ module Tremendous
|
|
83
83
|
invalid_properties.push('invalid value for "ips", ips cannot be nil.')
|
84
84
|
end
|
85
85
|
|
86
|
+
if @ips.length > 50000
|
87
|
+
invalid_properties.push('invalid value for "ips", number of items must be less than or equal to 50000.')
|
88
|
+
end
|
89
|
+
|
86
90
|
invalid_properties
|
87
91
|
end
|
88
92
|
|
@@ -91,6 +95,7 @@ module Tremendous
|
|
91
95
|
def valid?
|
92
96
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
93
97
|
return false if @ips.nil?
|
98
|
+
return false if @ips.length > 50000
|
94
99
|
true
|
95
100
|
end
|
96
101
|
|
@@ -101,6 +106,10 @@ module Tremendous
|
|
101
106
|
fail ArgumentError, 'ips cannot be nil'
|
102
107
|
end
|
103
108
|
|
109
|
+
if ips.length > 50000
|
110
|
+
fail ArgumentError, 'invalid value for "ips", number of items must be less than or equal to 50000.'
|
111
|
+
end
|
112
|
+
|
104
113
|
@ips = ips
|
105
114
|
end
|
106
115
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module Tremendous
|
17
|
-
# Reward custom data for searching, tracking or copy (see [Adding custom fields to orders](https://developers.tremendous.com/
|
17
|
+
# Reward custom data for searching, tracking or copy (see [Adding custom fields to orders](https://developers.tremendous.com/docs/using-custom-fields-to-add-custom-data-to-rewards).)
|
18
18
|
class CustomField
|
19
19
|
# Tremendous ID of the custom field
|
20
20
|
attr_accessor :id
|
@@ -82,6 +82,10 @@ module Tremendous
|
|
82
82
|
invalid_properties.push('invalid value for "emails", emails cannot be nil.')
|
83
83
|
end
|
84
84
|
|
85
|
+
if @emails.length > 50000
|
86
|
+
invalid_properties.push('invalid value for "emails", number of items must be less than or equal to 50000.')
|
87
|
+
end
|
88
|
+
|
85
89
|
invalid_properties
|
86
90
|
end
|
87
91
|
|
@@ -90,6 +94,7 @@ module Tremendous
|
|
90
94
|
def valid?
|
91
95
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
92
96
|
return false if @emails.nil?
|
97
|
+
return false if @emails.length > 50000
|
93
98
|
true
|
94
99
|
end
|
95
100
|
|
@@ -100,6 +105,10 @@ module Tremendous
|
|
100
105
|
fail ArgumentError, 'emails cannot be nil'
|
101
106
|
end
|
102
107
|
|
108
|
+
if emails.length > 50000
|
109
|
+
fail ArgumentError, 'invalid value for "emails", number of items must be less than or equal to 50000.'
|
110
|
+
end
|
111
|
+
|
103
112
|
@emails = emails
|
104
113
|
end
|
105
114
|
|
@@ -82,6 +82,10 @@ module Tremendous
|
|
82
82
|
invalid_properties.push('invalid value for "ips", ips cannot be nil.')
|
83
83
|
end
|
84
84
|
|
85
|
+
if @ips.length > 50000
|
86
|
+
invalid_properties.push('invalid value for "ips", number of items must be less than or equal to 50000.')
|
87
|
+
end
|
88
|
+
|
85
89
|
invalid_properties
|
86
90
|
end
|
87
91
|
|
@@ -90,6 +94,7 @@ module Tremendous
|
|
90
94
|
def valid?
|
91
95
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
92
96
|
return false if @ips.nil?
|
97
|
+
return false if @ips.length > 50000
|
93
98
|
true
|
94
99
|
end
|
95
100
|
|
@@ -100,6 +105,10 @@ module Tremendous
|
|
100
105
|
fail ArgumentError, 'ips cannot be nil'
|
101
106
|
end
|
102
107
|
|
108
|
+
if ips.length > 50000
|
109
|
+
fail ArgumentError, 'invalid value for "ips", number of items must be less than or equal to 50000.'
|
110
|
+
end
|
111
|
+
|
103
112
|
@ips = ips
|
104
113
|
end
|
105
114
|
|
@@ -87,6 +87,10 @@ module Tremendous
|
|
87
87
|
def list_invalid_properties
|
88
88
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
89
89
|
invalid_properties = Array.new
|
90
|
+
if !@emails.nil? && @emails.length > 50000
|
91
|
+
invalid_properties.push('invalid value for "emails", number of items must be less than or equal to 50000.')
|
92
|
+
end
|
93
|
+
|
90
94
|
invalid_properties
|
91
95
|
end
|
92
96
|
|
@@ -94,9 +98,24 @@ module Tremendous
|
|
94
98
|
# @return true if the model is valid
|
95
99
|
def valid?
|
96
100
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
101
|
+
return false if !@emails.nil? && @emails.length > 50000
|
97
102
|
true
|
98
103
|
end
|
99
104
|
|
105
|
+
# Custom attribute writer method with validation
|
106
|
+
# @param [Object] emails Value to be assigned
|
107
|
+
def emails=(emails)
|
108
|
+
if emails.nil?
|
109
|
+
fail ArgumentError, 'emails cannot be nil'
|
110
|
+
end
|
111
|
+
|
112
|
+
if emails.length > 50000
|
113
|
+
fail ArgumentError, 'invalid value for "emails", number of items must be less than or equal to 50000.'
|
114
|
+
end
|
115
|
+
|
116
|
+
@emails = emails
|
117
|
+
end
|
118
|
+
|
100
119
|
# Checks equality by comparing each attribute.
|
101
120
|
# @param [Object] Object to be compared
|
102
121
|
def ==(o)
|
@@ -24,7 +24,7 @@ module Tremendous
|
|
24
24
|
# Indicates which actions this funding source can perform. <table> <thead> <tr> <th>Permission</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>api_orders</code></td> <td>Usable for orders via API.</td> </tr> <tr> <td><code>dashboard_orders</code></td> <td>Usable for orders via Tremendous dashboard.</td> </tr> <tr> <td><code>balance_funding</code></td> <td>Usable to add funds to a balance (via dashboard or API).</td> </tr> </tbody> </table>
|
25
25
|
attr_accessor :usage_permissions
|
26
26
|
|
27
|
-
# Status of the funding_source <table> <thead> <tr> <th>Status</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>active</code></td> <td>Ready for use.</td> </tr> <tr> <td><code>deleted</code></td> <td>Manually removed, and not usable.</td> </tr> <tr> <td><code>
|
27
|
+
# Status of the funding_source <table> <thead> <tr> <th>Status</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>active</code></td> <td>Ready for use.</td> </tr> <tr> <td><code>deleted</code></td> <td>Manually removed, and not usable.</td> </tr> <tr> <td><code>failed</code></td> <td>Last payment attempt failed, and not usable (contact Tremendous support to reinstate).</td> </tr> </tbody> </table>
|
28
28
|
attr_accessor :status
|
29
29
|
|
30
30
|
# **Only available when `method` is set to `invoice`.**
|
@@ -177,7 +177,7 @@ module Tremendous
|
|
177
177
|
return false if @method.nil?
|
178
178
|
method_validator = EnumAttributeValidator.new('String', ["balance", "bank_account", "credit_card", "invoice"])
|
179
179
|
return false unless method_validator.valid?(@method)
|
180
|
-
status_validator = EnumAttributeValidator.new('String', ["active", "deleted", "
|
180
|
+
status_validator = EnumAttributeValidator.new('String', ["active", "deleted", "failed"])
|
181
181
|
return false unless status_validator.valid?(@status)
|
182
182
|
type_validator = EnumAttributeValidator.new('String', ["COMMERCIAL", "PRO_FORMA", "PREFUNDING_ONLY"])
|
183
183
|
return false unless type_validator.valid?(@type)
|
@@ -213,7 +213,7 @@ module Tremendous
|
|
213
213
|
# Custom attribute writer method checking allowed values (enum).
|
214
214
|
# @param [Object] status Object to be assigned
|
215
215
|
def status=(status)
|
216
|
-
validator = EnumAttributeValidator.new('String', ["active", "deleted", "
|
216
|
+
validator = EnumAttributeValidator.new('String', ["active", "deleted", "failed"])
|
217
217
|
unless validator.valid?(status)
|
218
218
|
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
219
219
|
end
|
@@ -24,7 +24,7 @@ module Tremendous
|
|
24
24
|
# Indicates which actions this funding source can perform. <table> <thead> <tr> <th>Permission</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>api_orders</code></td> <td>Usable for orders via API.</td> </tr> <tr> <td><code>dashboard_orders</code></td> <td>Usable for orders via Tremendous dashboard.</td> </tr> <tr> <td><code>balance_funding</code></td> <td>Usable to add funds to a balance (via dashboard or API).</td> </tr> </tbody> </table>
|
25
25
|
attr_accessor :usage_permissions
|
26
26
|
|
27
|
-
# Status of the funding_source <table> <thead> <tr> <th>Status</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>active</code></td> <td>Ready for use.</td> </tr> <tr> <td><code>deleted</code></td> <td>Manually removed, and not usable.</td> </tr> <tr> <td><code>
|
27
|
+
# Status of the funding_source <table> <thead> <tr> <th>Status</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>active</code></td> <td>Ready for use.</td> </tr> <tr> <td><code>deleted</code></td> <td>Manually removed, and not usable.</td> </tr> <tr> <td><code>failed</code></td> <td>Last payment attempt failed, and not usable (contact Tremendous support to reinstate).</td> </tr> </tbody> </table>
|
28
28
|
attr_accessor :status
|
29
29
|
|
30
30
|
# **Only available when `method` is set to `invoice`.**
|
@@ -177,7 +177,7 @@ module Tremendous
|
|
177
177
|
return false if @method.nil?
|
178
178
|
method_validator = EnumAttributeValidator.new('String', ["balance", "bank_account", "credit_card", "invoice"])
|
179
179
|
return false unless method_validator.valid?(@method)
|
180
|
-
status_validator = EnumAttributeValidator.new('String', ["active", "deleted", "
|
180
|
+
status_validator = EnumAttributeValidator.new('String', ["active", "deleted", "failed"])
|
181
181
|
return false unless status_validator.valid?(@status)
|
182
182
|
type_validator = EnumAttributeValidator.new('String', ["COMMERCIAL", "PRO_FORMA", "PREFUNDING_ONLY"])
|
183
183
|
return false unless type_validator.valid?(@type)
|
@@ -213,7 +213,7 @@ module Tremendous
|
|
213
213
|
# Custom attribute writer method checking allowed values (enum).
|
214
214
|
# @param [Object] status Object to be assigned
|
215
215
|
def status=(status)
|
216
|
-
validator = EnumAttributeValidator.new('String', ["active", "deleted", "
|
216
|
+
validator = EnumAttributeValidator.new('String', ["active", "deleted", "failed"])
|
217
217
|
unless validator.valid?(status)
|
218
218
|
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
219
219
|
end
|
@@ -15,10 +15,10 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Tremendous
|
17
17
|
class ListFundingSources200ResponseFundingSourcesInnerMeta
|
18
|
-
# **Only exists for balance and commercial invoicing.** For balance: available amount (in cents USD) For commercial invoicing: available credit amount calculated as (credit limit - outstanding balance) (in cents USD)
|
18
|
+
# **Only exists for balance and commercial invoicing.** For balance: available amount (in cents USD) For commercial invoicing: available credit amount calculated as (credit limit - outstanding balance) (in cents USD) *Caution: In the \"list funding sources\" endpoint this value is cached and may not be up to date. Use the \"get funding source\" endpoint to get the most up to date value.*
|
19
19
|
attr_accessor :available_cents
|
20
20
|
|
21
|
-
# **Only available when `method` is set to `balance`.** Funds that are already registered on your Tremendous account but which have not yet been deposited in your account (e.g.
|
21
|
+
# **Only available when `method` is set to `balance`.** Funds that are already registered on your Tremendous account but which have not yet been deposited in your account (e.g. payments that need to be manually reviewed by our ops team) (in Cents USD).
|
22
22
|
attr_accessor :pending_cents
|
23
23
|
|
24
24
|
# **Only exists for commercial invoicing.** Available credit limit (in cents USD)
|
@@ -24,9 +24,12 @@ 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
|
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> </tbody> </table>
|
28
28
|
attr_accessor :category
|
29
29
|
|
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
|
+
attr_accessor :subcategory
|
32
|
+
|
30
33
|
# Legal disclosures for this product. Can be in HTML format.
|
31
34
|
attr_accessor :disclosure
|
32
35
|
|
@@ -76,6 +79,7 @@ module Tremendous
|
|
76
79
|
:'name' => :'name',
|
77
80
|
:'description' => :'description',
|
78
81
|
:'category' => :'category',
|
82
|
+
:'subcategory' => :'subcategory',
|
79
83
|
:'disclosure' => :'disclosure',
|
80
84
|
:'skus' => :'skus',
|
81
85
|
:'currency_codes' => :'currency_codes',
|
@@ -103,6 +107,7 @@ module Tremendous
|
|
103
107
|
:'name' => :'String',
|
104
108
|
:'description' => :'String',
|
105
109
|
:'category' => :'String',
|
110
|
+
:'subcategory' => :'String',
|
106
111
|
:'disclosure' => :'String',
|
107
112
|
:'skus' => :'Array<ListProductsResponseProductsInnerSkusInner>',
|
108
113
|
:'currency_codes' => :'Array<String>',
|
@@ -160,6 +165,10 @@ module Tremendous
|
|
160
165
|
self.category = nil
|
161
166
|
end
|
162
167
|
|
168
|
+
if attributes.key?(:'subcategory')
|
169
|
+
self.subcategory = attributes[:'subcategory']
|
170
|
+
end
|
171
|
+
|
163
172
|
if attributes.key?(:'disclosure')
|
164
173
|
self.disclosure = attributes[:'disclosure']
|
165
174
|
else
|
@@ -273,6 +282,8 @@ module Tremendous
|
|
273
282
|
return false if @category.nil?
|
274
283
|
category_validator = EnumAttributeValidator.new('String', ["ach", "charity", "instant_debit_transfer", "merchant_card", "paypal", "venmo", "visa_card", "cash_app"])
|
275
284
|
return false unless category_validator.valid?(@category)
|
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
|
+
return false unless subcategory_validator.valid?(@subcategory)
|
276
287
|
return false if @disclosure.nil?
|
277
288
|
return false if @currency_codes.nil?
|
278
289
|
return false if @currency_codes.length < 1
|
@@ -328,6 +339,16 @@ module Tremendous
|
|
328
339
|
@category = category
|
329
340
|
end
|
330
341
|
|
342
|
+
# Custom attribute writer method checking allowed values (enum).
|
343
|
+
# @param [Object] subcategory Object to be assigned
|
344
|
+
def subcategory=(subcategory)
|
345
|
+
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"])
|
346
|
+
unless validator.valid?(subcategory)
|
347
|
+
fail ArgumentError, "invalid value for \"subcategory\", must be one of #{validator.allowable_values}."
|
348
|
+
end
|
349
|
+
@subcategory = subcategory
|
350
|
+
end
|
351
|
+
|
331
352
|
# Custom attribute writer method with validation
|
332
353
|
# @param [Object] disclosure Value to be assigned
|
333
354
|
def disclosure=(disclosure)
|
@@ -375,6 +396,7 @@ module Tremendous
|
|
375
396
|
name == o.name &&
|
376
397
|
description == o.description &&
|
377
398
|
category == o.category &&
|
399
|
+
subcategory == o.subcategory &&
|
378
400
|
disclosure == o.disclosure &&
|
379
401
|
skus == o.skus &&
|
380
402
|
currency_codes == o.currency_codes &&
|
@@ -393,7 +415,7 @@ module Tremendous
|
|
393
415
|
# Calculates hash code according to all attributes.
|
394
416
|
# @return [Integer] Hash code
|
395
417
|
def hash
|
396
|
-
[id, name, description, category, disclosure, skus, currency_codes, countries, images, usage_instructions, documents].hash
|
418
|
+
[id, name, description, category, subcategory, disclosure, skus, currency_codes, countries, images, usage_instructions, documents].hash
|
397
419
|
end
|
398
420
|
|
399
421
|
# Builds the object from hash
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module Tremendous
|
17
|
-
# Reward custom data for searching, tracking or copy (see [Adding custom fields to orders](https://developers.tremendous.com/
|
17
|
+
# Reward custom data for searching, tracking or copy (see [Adding custom fields to orders](https://developers.tremendous.com/docs/using-custom-fields-to-add-custom-data-to-rewards).)
|
18
18
|
class ListRewards200ResponseRewardsInnerCustomFieldsInner
|
19
19
|
# Tremendous ID of the custom field
|
20
20
|
attr_accessor :id
|
@@ -24,9 +24,12 @@ 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
|
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> </tbody> </table>
|
28
28
|
attr_accessor :category
|
29
29
|
|
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
|
+
attr_accessor :subcategory
|
32
|
+
|
30
33
|
# Legal disclosures for this product. Can be in HTML format.
|
31
34
|
attr_accessor :disclosure
|
32
35
|
|
@@ -76,6 +79,7 @@ module Tremendous
|
|
76
79
|
:'name' => :'name',
|
77
80
|
:'description' => :'description',
|
78
81
|
:'category' => :'category',
|
82
|
+
:'subcategory' => :'subcategory',
|
79
83
|
:'disclosure' => :'disclosure',
|
80
84
|
:'skus' => :'skus',
|
81
85
|
:'currency_codes' => :'currency_codes',
|
@@ -103,6 +107,7 @@ module Tremendous
|
|
103
107
|
:'name' => :'String',
|
104
108
|
:'description' => :'String',
|
105
109
|
:'category' => :'String',
|
110
|
+
:'subcategory' => :'String',
|
106
111
|
:'disclosure' => :'String',
|
107
112
|
:'skus' => :'Array<ListProductsResponseProductsInnerSkusInner>',
|
108
113
|
:'currency_codes' => :'Array<String>',
|
@@ -160,6 +165,10 @@ module Tremendous
|
|
160
165
|
self.category = nil
|
161
166
|
end
|
162
167
|
|
168
|
+
if attributes.key?(:'subcategory')
|
169
|
+
self.subcategory = attributes[:'subcategory']
|
170
|
+
end
|
171
|
+
|
163
172
|
if attributes.key?(:'disclosure')
|
164
173
|
self.disclosure = attributes[:'disclosure']
|
165
174
|
else
|
@@ -273,6 +282,8 @@ module Tremendous
|
|
273
282
|
return false if @category.nil?
|
274
283
|
category_validator = EnumAttributeValidator.new('String', ["ach", "charity", "instant_debit_transfer", "merchant_card", "paypal", "venmo", "visa_card", "cash_app"])
|
275
284
|
return false unless category_validator.valid?(@category)
|
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
|
+
return false unless subcategory_validator.valid?(@subcategory)
|
276
287
|
return false if @disclosure.nil?
|
277
288
|
return false if @currency_codes.nil?
|
278
289
|
return false if @currency_codes.length < 1
|
@@ -328,6 +339,16 @@ module Tremendous
|
|
328
339
|
@category = category
|
329
340
|
end
|
330
341
|
|
342
|
+
# Custom attribute writer method checking allowed values (enum).
|
343
|
+
# @param [Object] subcategory Object to be assigned
|
344
|
+
def subcategory=(subcategory)
|
345
|
+
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"])
|
346
|
+
unless validator.valid?(subcategory)
|
347
|
+
fail ArgumentError, "invalid value for \"subcategory\", must be one of #{validator.allowable_values}."
|
348
|
+
end
|
349
|
+
@subcategory = subcategory
|
350
|
+
end
|
351
|
+
|
331
352
|
# Custom attribute writer method with validation
|
332
353
|
# @param [Object] disclosure Value to be assigned
|
333
354
|
def disclosure=(disclosure)
|
@@ -375,6 +396,7 @@ module Tremendous
|
|
375
396
|
name == o.name &&
|
376
397
|
description == o.description &&
|
377
398
|
category == o.category &&
|
399
|
+
subcategory == o.subcategory &&
|
378
400
|
disclosure == o.disclosure &&
|
379
401
|
skus == o.skus &&
|
380
402
|
currency_codes == o.currency_codes &&
|
@@ -393,7 +415,7 @@ module Tremendous
|
|
393
415
|
# Calculates hash code according to all attributes.
|
394
416
|
# @return [Integer] Hash code
|
395
417
|
def hash
|
396
|
-
[id, name, description, category, disclosure, skus, currency_codes, countries, images, usage_instructions, documents].hash
|
418
|
+
[id, name, description, category, subcategory, disclosure, skus, currency_codes, countries, images, usage_instructions, documents].hash
|
397
419
|
end
|
398
420
|
|
399
421
|
# Builds the object from hash
|
@@ -88,6 +88,10 @@ module Tremendous
|
|
88
88
|
def list_invalid_properties
|
89
89
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
90
90
|
invalid_properties = Array.new
|
91
|
+
if !@emails.nil? && @emails.length > 50000
|
92
|
+
invalid_properties.push('invalid value for "emails", number of items must be less than or equal to 50000.')
|
93
|
+
end
|
94
|
+
|
91
95
|
invalid_properties
|
92
96
|
end
|
93
97
|
|
@@ -95,9 +99,24 @@ module Tremendous
|
|
95
99
|
# @return true if the model is valid
|
96
100
|
def valid?
|
97
101
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
102
|
+
return false if !@emails.nil? && @emails.length > 50000
|
98
103
|
true
|
99
104
|
end
|
100
105
|
|
106
|
+
# Custom attribute writer method with validation
|
107
|
+
# @param [Object] emails Value to be assigned
|
108
|
+
def emails=(emails)
|
109
|
+
if emails.nil?
|
110
|
+
fail ArgumentError, 'emails cannot be nil'
|
111
|
+
end
|
112
|
+
|
113
|
+
if emails.length > 50000
|
114
|
+
fail ArgumentError, 'invalid value for "emails", number of items must be less than or equal to 50000.'
|
115
|
+
end
|
116
|
+
|
117
|
+
@emails = emails
|
118
|
+
end
|
119
|
+
|
101
120
|
# Checks equality by comparing each attribute.
|
102
121
|
# @param [Object] Object to be compared
|
103
122
|
def ==(o)
|
@@ -88,6 +88,10 @@ module Tremendous
|
|
88
88
|
def list_invalid_properties
|
89
89
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
90
90
|
invalid_properties = Array.new
|
91
|
+
if !@emails.nil? && @emails.length > 50000
|
92
|
+
invalid_properties.push('invalid value for "emails", number of items must be less than or equal to 50000.')
|
93
|
+
end
|
94
|
+
|
91
95
|
invalid_properties
|
92
96
|
end
|
93
97
|
|
@@ -95,9 +99,24 @@ module Tremendous
|
|
95
99
|
# @return true if the model is valid
|
96
100
|
def valid?
|
97
101
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
102
|
+
return false if !@emails.nil? && @emails.length > 50000
|
98
103
|
true
|
99
104
|
end
|
100
105
|
|
106
|
+
# Custom attribute writer method with validation
|
107
|
+
# @param [Object] emails Value to be assigned
|
108
|
+
def emails=(emails)
|
109
|
+
if emails.nil?
|
110
|
+
fail ArgumentError, 'emails cannot be nil'
|
111
|
+
end
|
112
|
+
|
113
|
+
if emails.length > 50000
|
114
|
+
fail ArgumentError, 'invalid value for "emails", number of items must be less than or equal to 50000.'
|
115
|
+
end
|
116
|
+
|
117
|
+
@emails = emails
|
118
|
+
end
|
119
|
+
|
101
120
|
# Checks equality by comparing each attribute.
|
102
121
|
# @param [Object] Object to be compared
|
103
122
|
def ==(o)
|
@@ -83,6 +83,10 @@ module Tremendous
|
|
83
83
|
invalid_properties.push('invalid value for "ips", ips cannot be nil.')
|
84
84
|
end
|
85
85
|
|
86
|
+
if @ips.length > 50000
|
87
|
+
invalid_properties.push('invalid value for "ips", number of items must be less than or equal to 50000.')
|
88
|
+
end
|
89
|
+
|
86
90
|
invalid_properties
|
87
91
|
end
|
88
92
|
|
@@ -91,6 +95,7 @@ module Tremendous
|
|
91
95
|
def valid?
|
92
96
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
93
97
|
return false if @ips.nil?
|
98
|
+
return false if @ips.length > 50000
|
94
99
|
true
|
95
100
|
end
|
96
101
|
|
@@ -101,6 +106,10 @@ module Tremendous
|
|
101
106
|
fail ArgumentError, 'ips cannot be nil'
|
102
107
|
end
|
103
108
|
|
109
|
+
if ips.length > 50000
|
110
|
+
fail ArgumentError, 'invalid value for "ips", number of items must be less than or equal to 50000.'
|
111
|
+
end
|
112
|
+
|
104
113
|
@ips = ips
|
105
114
|
end
|
106
115
|
|
@@ -83,6 +83,10 @@ module Tremendous
|
|
83
83
|
invalid_properties.push('invalid value for "ips", ips cannot be nil.')
|
84
84
|
end
|
85
85
|
|
86
|
+
if @ips.length > 50000
|
87
|
+
invalid_properties.push('invalid value for "ips", number of items must be less than or equal to 50000.')
|
88
|
+
end
|
89
|
+
|
86
90
|
invalid_properties
|
87
91
|
end
|
88
92
|
|
@@ -91,6 +95,7 @@ module Tremendous
|
|
91
95
|
def valid?
|
92
96
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
93
97
|
return false if @ips.nil?
|
98
|
+
return false if @ips.length > 50000
|
94
99
|
true
|
95
100
|
end
|
96
101
|
|
@@ -101,6 +106,10 @@ module Tremendous
|
|
101
106
|
fail ArgumentError, 'ips cannot be nil'
|
102
107
|
end
|
103
108
|
|
109
|
+
if ips.length > 50000
|
110
|
+
fail ArgumentError, 'invalid value for "ips", number of items must be less than or equal to 50000.'
|
111
|
+
end
|
112
|
+
|
104
113
|
@ips = ips
|
105
114
|
end
|
106
115
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module Tremendous
|
17
|
-
# Reward custom data for searching, tracking or copy (see [Adding custom fields to orders](https://developers.tremendous.com/
|
17
|
+
# Reward custom data for searching, tracking or copy (see [Adding custom fields to orders](https://developers.tremendous.com/docs/using-custom-fields-to-add-custom-data-to-rewards).)
|
18
18
|
class RewardBaseCustomFieldsInner
|
19
19
|
# Tremendous ID of the custom field
|
20
20
|
attr_accessor :id
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module Tremendous
|
17
|
-
# Reward custom data for searching, tracking or copy (see [Adding custom fields to orders](https://developers.tremendous.com/
|
17
|
+
# Reward custom data for searching, tracking or copy (see [Adding custom fields to orders](https://developers.tremendous.com/docs/using-custom-fields-to-add-custom-data-to-rewards).)
|
18
18
|
class SingleRewardOrderRewardCustomFieldsInner
|
19
19
|
# Tremendous ID of the custom field
|
20
20
|
attr_accessor :id
|
data/lib/tremendous/version.rb
CHANGED