tremendous_ruby 5.7.0 → 5.9.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 +14 -14
- data/lib/tremendous/api_client.rb +1 -1
- data/lib/tremendous/api_error.rb +1 -1
- data/lib/tremendous/configuration.rb +1 -1
- data/lib/tremendous/models/allow_email.rb +1 -1
- data/lib/tremendous/models/allow_email1.rb +1 -1
- data/lib/tremendous/models/allow_ip.rb +1 -1
- data/lib/tremendous/models/allow_ip1.rb +1 -1
- data/lib/tremendous/models/balance_transaction.rb +14 -5
- data/lib/tremendous/models/balance_transaction_order.rb +256 -0
- data/lib/tremendous/models/balance_transaction_order_payment.rb +358 -0
- data/lib/tremendous/models/base_order_for_create.rb +1 -1
- data/lib/tremendous/models/campaign.rb +1 -1
- data/lib/tremendous/models/campaign_base.rb +1 -1
- data/lib/tremendous/models/channel.rb +1 -1
- data/lib/tremendous/models/create_api_key200_response.rb +1 -1
- data/lib/tremendous/models/create_campaign201_response.rb +1 -1
- data/lib/tremendous/models/create_campaign_request.rb +1 -1
- data/lib/tremendous/models/create_invoice200_response.rb +1 -1
- data/lib/tremendous/models/create_invoice_request.rb +1 -1
- data/lib/tremendous/models/create_member.rb +1 -1
- data/lib/tremendous/models/create_member200_response.rb +1 -1
- data/lib/tremendous/models/create_member_request.rb +1 -1
- data/lib/tremendous/models/create_order200_response.rb +1 -1
- data/lib/tremendous/models/create_order200_response_order.rb +1 -1
- data/lib/tremendous/models/create_order200_response_order_rewards_inner.rb +1 -1
- data/lib/tremendous/models/create_order200_response_order_rewards_inner_delivery.rb +1 -1
- data/lib/tremendous/models/create_order_request.rb +1 -1
- data/lib/tremendous/models/create_organization.rb +1 -1
- data/lib/tremendous/models/create_organization200_response.rb +1 -1
- data/lib/tremendous/models/create_organization200_response_organization.rb +1 -1
- data/lib/tremendous/models/create_organization_for_response.rb +1 -1
- data/lib/tremendous/models/create_organization_properties.rb +1 -1
- data/lib/tremendous/models/create_organization_request.rb +1 -1
- data/lib/tremendous/models/create_organization_request_copy_settings.rb +1 -1
- data/lib/tremendous/models/create_report201_response.rb +1 -1
- data/lib/tremendous/models/create_report201_response_report.rb +2 -2
- data/lib/tremendous/models/create_report_request.rb +1 -1
- data/lib/tremendous/models/create_report_request_filters.rb +1 -1
- data/lib/tremendous/models/create_report_request_filters_digital_rewards.rb +1 -1
- data/lib/tremendous/models/create_report_request_filters_digital_rewards_amount.rb +1 -1
- data/lib/tremendous/models/create_report_request_filters_digital_rewards_created_at.rb +1 -1
- data/lib/tremendous/models/create_webhook200_response.rb +1 -1
- data/lib/tremendous/models/create_webhook_request.rb +1 -1
- data/lib/tremendous/models/currency_codes.rb +1 -1
- data/lib/tremendous/models/custom_field.rb +1 -1
- data/lib/tremendous/models/delete_fraud_rule200_response.rb +1 -1
- data/lib/tremendous/models/delivery_details.rb +1 -1
- data/lib/tremendous/models/delivery_details_with_link.rb +1 -1
- data/lib/tremendous/models/delivery_metadata.rb +236 -0
- data/lib/tremendous/models/delivery_method.rb +1 -1
- data/lib/tremendous/models/delivery_status.rb +1 -1
- data/lib/tremendous/models/error_model.rb +1 -1
- data/lib/tremendous/models/field.rb +1 -1
- data/lib/tremendous/models/fraud_config_allow_email.rb +1 -1
- data/lib/tremendous/models/fraud_config_country.rb +1 -1
- data/lib/tremendous/models/fraud_config_country_update_list.rb +1 -1
- data/lib/tremendous/models/fraud_config_ip.rb +1 -1
- data/lib/tremendous/models/fraud_config_redeemed_rewards_amount.rb +1 -1
- data/lib/tremendous/models/fraud_config_redeemed_rewards_count.rb +1 -1
- data/lib/tremendous/models/fraud_config_review_email.rb +1 -1
- data/lib/tremendous/models/fraud_generic_response.rb +1 -1
- data/lib/tremendous/models/fraud_review.rb +25 -3
- data/lib/tremendous/models/fraud_review_geo.rb +1 -1
- data/lib/tremendous/models/fraud_review_list_item.rb +2 -2
- data/lib/tremendous/models/fraud_review_reason.rb +3 -2
- data/lib/tremendous/models/fraud_review_redemption_method.rb +1 -1
- data/lib/tremendous/models/fraud_review_related_rewards.rb +1 -1
- data/lib/tremendous/models/fraud_review_risk.rb +41 -0
- data/lib/tremendous/models/fraud_review_status.rb +1 -1
- data/lib/tremendous/models/fraud_rule200_response.rb +1 -1
- data/lib/tremendous/models/fraud_rule400_response.rb +1 -1
- data/lib/tremendous/models/fraud_rule422_response.rb +1 -1
- data/lib/tremendous/models/fraud_rule_request.rb +1 -1
- data/lib/tremendous/models/fraud_rule_request_config.rb +1 -1
- data/lib/tremendous/models/fraud_rule_type.rb +1 -1
- data/lib/tremendous/models/fraud_rules_list_item.rb +1 -1
- data/lib/tremendous/models/funding_source.rb +1 -1
- data/lib/tremendous/models/generate_reward_link200_response.rb +1 -1
- data/lib/tremendous/models/generate_reward_link200_response_reward.rb +1 -1
- data/lib/tremendous/models/generate_reward_link403_response.rb +1 -1
- data/lib/tremendous/models/generate_reward_token200_response.rb +1 -1
- data/lib/tremendous/models/generate_reward_token200_response_reward.rb +1 -1
- data/lib/tremendous/models/get_fraud_review200_response.rb +1 -1
- data/lib/tremendous/models/get_fraud_review200_response_fraud_review.rb +25 -3
- data/lib/tremendous/models/get_fraud_review200_response_fraud_review_geo.rb +1 -1
- data/lib/tremendous/models/get_fraud_review200_response_fraud_review_related_rewards.rb +1 -1
- data/lib/tremendous/models/get_funding_source200_response.rb +1 -1
- data/lib/tremendous/models/get_member200_response.rb +1 -1
- data/lib/tremendous/models/get_member200_response_member.rb +1 -1
- data/lib/tremendous/models/get_member200_response_member_events_inner.rb +1 -1
- data/lib/tremendous/models/get_order200_response.rb +221 -0
- data/lib/tremendous/models/get_organization200_response.rb +1 -1
- data/lib/tremendous/models/get_product_response.rb +1 -1
- data/lib/tremendous/models/get_reward200_response.rb +1 -1
- data/lib/tremendous/models/invoice.rb +1 -1
- data/lib/tremendous/models/list_balance_transactions200_response.rb +1 -1
- data/lib/tremendous/models/list_balance_transactions200_response_transactions_inner.rb +14 -5
- data/lib/tremendous/models/list_balance_transactions200_response_transactions_inner_order.rb +256 -0
- data/lib/tremendous/models/list_balance_transactions200_response_transactions_inner_order_payment.rb +358 -0
- data/lib/tremendous/models/list_campaigns200_response.rb +1 -1
- data/lib/tremendous/models/list_campaigns200_response_campaigns_inner.rb +1 -1
- data/lib/tremendous/models/list_campaigns200_response_campaigns_inner_email_style.rb +2 -2
- data/lib/tremendous/models/list_campaigns200_response_campaigns_inner_webpage_style.rb +3 -3
- data/lib/tremendous/models/list_fields200_response.rb +1 -1
- data/lib/tremendous/models/list_fields200_response_fields_inner.rb +1 -1
- data/lib/tremendous/models/list_forex_response.rb +1 -1
- data/lib/tremendous/models/list_fraud_reviews200_response.rb +1 -1
- data/lib/tremendous/models/list_fraud_reviews200_response_fraud_reviews_inner.rb +2 -2
- data/lib/tremendous/models/list_fraud_rules200_response.rb +1 -1
- data/lib/tremendous/models/list_fraud_rules200_response_fraud_rules_inner.rb +1 -1
- data/lib/tremendous/models/list_funding_sources200_response.rb +1 -1
- data/lib/tremendous/models/list_funding_sources200_response_funding_sources_inner.rb +1 -1
- data/lib/tremendous/models/list_funding_sources200_response_funding_sources_inner_meta.rb +1 -1
- data/lib/tremendous/models/list_funding_sources200_response_funding_sources_inner_meta_failure_details.rb +1 -1
- data/lib/tremendous/models/list_invoices200_response.rb +1 -1
- data/lib/tremendous/models/list_invoices200_response_invoices_inner.rb +1 -1
- data/lib/tremendous/models/list_members200_response.rb +1 -1
- data/lib/tremendous/models/list_members200_response_members_inner.rb +1 -1
- data/lib/tremendous/models/list_orders200_response.rb +1 -1
- data/lib/tremendous/models/list_orders200_response_orders_inner.rb +1 -1
- data/lib/tremendous/models/list_orders200_response_orders_inner_payment.rb +65 -8
- data/lib/tremendous/models/list_orders200_response_orders_inner_payment_refund.rb +1 -1
- data/lib/tremendous/models/list_organizations200_response.rb +1 -1
- data/lib/tremendous/models/list_organizations200_response_organizations_inner.rb +1 -1
- data/lib/tremendous/models/list_products_response.rb +1 -1
- data/lib/tremendous/models/list_products_response_products_inner.rb +3 -3
- data/lib/tremendous/models/list_products_response_products_inner_countries_inner.rb +1 -1
- data/lib/tremendous/models/list_products_response_products_inner_images_inner.rb +1 -1
- data/lib/tremendous/models/list_products_response_products_inner_skus_inner.rb +1 -1
- data/lib/tremendous/models/list_rewards200_response.rb +1 -1
- data/lib/tremendous/models/list_rewards200_response_rewards_inner.rb +1 -1
- data/lib/tremendous/models/list_rewards200_response_rewards_inner_custom_fields_inner.rb +1 -1
- data/lib/tremendous/models/list_rewards200_response_rewards_inner_delivery.rb +1 -1
- data/lib/tremendous/models/list_rewards200_response_rewards_inner_recipient.rb +1 -1
- data/lib/tremendous/models/list_rewards200_response_rewards_inner_value.rb +1 -1
- data/lib/tremendous/models/list_rewards401_response.rb +1 -1
- data/lib/tremendous/models/list_rewards401_response_errors.rb +1 -1
- data/lib/tremendous/models/list_rewards429_response.rb +1 -1
- data/lib/tremendous/models/list_roles200_response.rb +1 -1
- data/lib/tremendous/models/list_roles200_response_roles_inner.rb +1 -1
- data/lib/tremendous/models/list_webhook_events200_response.rb +1 -1
- data/lib/tremendous/models/list_webhooks200_response.rb +1 -1
- data/lib/tremendous/models/list_webhooks200_response_webhooks_inner.rb +1 -1
- data/lib/tremendous/models/member.rb +1 -1
- data/lib/tremendous/models/member_base.rb +1 -1
- data/lib/tremendous/models/member_with_events.rb +1 -1
- data/lib/tremendous/models/member_without_events.rb +1 -1
- data/lib/tremendous/models/order.rb +1 -1
- data/lib/tremendous/models/order_base.rb +1 -1
- data/lib/tremendous/models/order_base_payment.rb +65 -8
- data/lib/tremendous/models/order_status.rb +1 -1
- data/lib/tremendous/models/order_with_link.rb +1 -1
- data/lib/tremendous/models/order_with_link_rewards_inner.rb +1 -1
- data/lib/tremendous/models/order_without_link.rb +1 -1
- data/lib/tremendous/models/order_without_link_rewards_inner.rb +1 -1
- data/lib/tremendous/models/organization.rb +1 -1
- data/lib/tremendous/models/payment_details.rb +65 -8
- data/lib/tremendous/models/payment_details_refund.rb +1 -1
- data/lib/tremendous/models/payout.rb +1 -1
- data/lib/tremendous/models/product.rb +3 -3
- data/lib/tremendous/models/recipient.rb +1 -1
- data/lib/tremendous/models/refund_details.rb +1 -1
- data/lib/tremendous/models/report.rb +2 -2
- data/lib/tremendous/models/resend_reward422_response.rb +1 -1
- data/lib/tremendous/models/resend_reward_request.rb +1 -1
- data/lib/tremendous/models/review_country.rb +1 -1
- data/lib/tremendous/models/review_country1.rb +1 -1
- data/lib/tremendous/models/review_email.rb +1 -1
- data/lib/tremendous/models/review_email1.rb +1 -1
- data/lib/tremendous/models/review_ip.rb +1 -1
- data/lib/tremendous/models/review_ip1.rb +1 -1
- data/lib/tremendous/models/review_redeemed_rewards_amount.rb +1 -1
- data/lib/tremendous/models/review_redeemed_rewards_count.rb +1 -1
- data/lib/tremendous/models/reward.rb +1 -1
- data/lib/tremendous/models/reward_base.rb +1 -1
- data/lib/tremendous/models/reward_base_custom_fields_inner.rb +1 -1
- data/lib/tremendous/models/reward_for_order_create.rb +1 -1
- data/lib/tremendous/models/reward_link.rb +1 -1
- data/lib/tremendous/models/reward_token.rb +1 -1
- data/lib/tremendous/models/reward_value.rb +1 -1
- data/lib/tremendous/models/reward_with_link.rb +1 -1
- data/lib/tremendous/models/reward_with_link_delivery.rb +1 -1
- data/lib/tremendous/models/reward_without_link.rb +1 -1
- data/lib/tremendous/models/reward_without_link_delivery.rb +1 -1
- data/lib/tremendous/models/role.rb +1 -1
- data/lib/tremendous/models/simulate_webhook_request.rb +1 -1
- data/lib/tremendous/models/single_reward_order.rb +1 -1
- data/lib/tremendous/models/single_reward_order_payment.rb +1 -1
- data/lib/tremendous/models/single_reward_order_reward.rb +1 -1
- data/lib/tremendous/models/single_reward_order_reward_custom_fields_inner.rb +1 -1
- data/lib/tremendous/models/single_reward_order_reward_delivery.rb +14 -5
- data/lib/tremendous/models/single_reward_order_reward_delivery_meta.rb +236 -0
- data/lib/tremendous/models/single_reward_order_with_link.rb +1 -1
- data/lib/tremendous/models/single_reward_order_with_link_order.rb +1 -1
- data/lib/tremendous/models/single_reward_order_without_link.rb +1 -1
- data/lib/tremendous/models/single_reward_order_without_link_order.rb +1 -1
- data/lib/tremendous/models/update_campaign.rb +1 -1
- data/lib/tremendous/models/update_campaign_request.rb +1 -1
- data/lib/tremendous/models/update_fraud_rule_list200_response.rb +1 -1
- data/lib/tremendous/models/update_fraud_rule_list_request.rb +1 -1
- data/lib/tremendous/models/update_fraud_rule_list_request_config.rb +1 -1
- data/lib/tremendous/models/webhook.rb +1 -1
- data/lib/tremendous/models/webhook_post.rb +1 -1
- data/lib/tremendous/version.rb +1 -1
- data/lib/tremendous.rb +9 -2
- metadata +11 -3
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|
@@ -19,7 +19,10 @@ 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
|
22
|
+
# The fraud risk associated with the reward.
|
23
|
+
attr_accessor :risk
|
24
|
+
|
25
|
+
# 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 dollar limit` * `Over reward count limit` * `VPN detected` * `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` * `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`
|
23
26
|
attr_accessor :reasons
|
24
27
|
|
25
28
|
# The name of the person who reviewed the reward, or `Automatic Review` if the reward was blocked automatically. Rewards can be automatically blocked if they remain in the flagged fraud queue for more than 30 days. This field is only present if the status is not `flagged`.
|
@@ -69,6 +72,7 @@ module Tremendous
|
|
69
72
|
def self.attribute_map
|
70
73
|
{
|
71
74
|
:'status' => :'status',
|
75
|
+
:'risk' => :'risk',
|
72
76
|
:'reasons' => :'reasons',
|
73
77
|
:'reviewed_by' => :'reviewed_by',
|
74
78
|
:'reviewed_at' => :'reviewed_at',
|
@@ -90,6 +94,7 @@ module Tremendous
|
|
90
94
|
def self.openapi_types
|
91
95
|
{
|
92
96
|
:'status' => :'String',
|
97
|
+
:'risk' => :'String',
|
93
98
|
:'reasons' => :'Array<String>',
|
94
99
|
:'reviewed_by' => :'String',
|
95
100
|
:'reviewed_at' => :'Time',
|
@@ -127,6 +132,10 @@ module Tremendous
|
|
127
132
|
self.status = attributes[:'status']
|
128
133
|
end
|
129
134
|
|
135
|
+
if attributes.key?(:'risk')
|
136
|
+
self.risk = attributes[:'risk']
|
137
|
+
end
|
138
|
+
|
130
139
|
if attributes.key?(:'reasons')
|
131
140
|
if (value = attributes[:'reasons']).is_a?(Array)
|
132
141
|
self.reasons = value
|
@@ -180,6 +189,8 @@ module Tremendous
|
|
180
189
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
181
190
|
status_validator = EnumAttributeValidator.new('String', ["flagged", "blocked", "released"])
|
182
191
|
return false unless status_validator.valid?(@status)
|
192
|
+
risk_validator = EnumAttributeValidator.new('String', ["high", "medium", "low"])
|
193
|
+
return false unless risk_validator.valid?(@risk)
|
183
194
|
redemption_method_validator = EnumAttributeValidator.new('String', ["paypal", "bank", "merchant card", "visa card", "charity", "venmo"])
|
184
195
|
return false unless redemption_method_validator.valid?(@redemption_method)
|
185
196
|
true
|
@@ -195,6 +206,16 @@ module Tremendous
|
|
195
206
|
@status = status
|
196
207
|
end
|
197
208
|
|
209
|
+
# Custom attribute writer method checking allowed values (enum).
|
210
|
+
# @param [Object] risk Object to be assigned
|
211
|
+
def risk=(risk)
|
212
|
+
validator = EnumAttributeValidator.new('String', ["high", "medium", "low"])
|
213
|
+
unless validator.valid?(risk)
|
214
|
+
fail ArgumentError, "invalid value for \"risk\", must be one of #{validator.allowable_values}."
|
215
|
+
end
|
216
|
+
@risk = risk
|
217
|
+
end
|
218
|
+
|
198
219
|
# Custom attribute writer method checking allowed values (enum).
|
199
220
|
# @param [Object] redemption_method Object to be assigned
|
200
221
|
def redemption_method=(redemption_method)
|
@@ -211,6 +232,7 @@ module Tremendous
|
|
211
232
|
return true if self.equal?(o)
|
212
233
|
self.class == o.class &&
|
213
234
|
status == o.status &&
|
235
|
+
risk == o.risk &&
|
214
236
|
reasons == o.reasons &&
|
215
237
|
reviewed_by == o.reviewed_by &&
|
216
238
|
reviewed_at == o.reviewed_at &&
|
@@ -231,7 +253,7 @@ module Tremendous
|
|
231
253
|
# Calculates hash code according to all attributes.
|
232
254
|
# @return [Integer] Hash code
|
233
255
|
def hash
|
234
|
-
[status, reasons, reviewed_by, reviewed_at, related_rewards, device_id, redemption_method, redeemed_at, geo, reward].hash
|
256
|
+
[status, risk, reasons, reviewed_by, reviewed_at, related_rewards, device_id, redemption_method, redeemed_at, geo, reward].hash
|
235
257
|
end
|
236
258
|
|
237
259
|
# Builds the object from hash
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|
@@ -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 dollar limit` * `Over reward count limit` * `VPN detected` * `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` * `IP 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`
|
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 dollar limit` * `Over reward count limit` * `VPN detected` * `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` * `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`
|
23
23
|
attr_accessor :reasons
|
24
24
|
|
25
25
|
attr_accessor :reward
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|
@@ -29,6 +29,7 @@ module Tremendous
|
|
29
29
|
EMAIL_ON_A_TREMENDOUS_FRAUD_LIST = "Email on a Tremendous fraud list".freeze
|
30
30
|
PHONE_ON_A_TREMENDOUS_FRAUD_LIST = "Phone on a Tremendous fraud list".freeze
|
31
31
|
IP_RELATED_TO_A_BLOCKED_REWARD = "IP related to a blocked reward".freeze
|
32
|
+
DEVICE_RELATED_TO_A_BLOCKED_REWARD = "Device related to a blocked reward".freeze
|
32
33
|
BANK_ACCOUNT_RELATED_TO_A_BLOCKED_REWARD = "Bank account related to a blocked reward".freeze
|
33
34
|
FINGERPRINT_RELATED_TO_A_BLOCKED_REWARD = "Fingerprint related to a blocked reward".freeze
|
34
35
|
EMAIL_RELATED_TO_A_BLOCKED_REWARD = "Email related to a blocked reward".freeze
|
@@ -37,7 +38,7 @@ module Tremendous
|
|
37
38
|
ALLOWED_EMAIL = "Allowed email".freeze
|
38
39
|
|
39
40
|
def self.all_vars
|
40
|
-
@all_vars ||= [DISALLOWED_IP, DISALLOWED_EMAIL, DISALLOWED_COUNTRY, OVER_REWARD_DOLLAR_LIMIT, OVER_REWARD_COUNT_LIMIT, VPN_DETECTED, 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, IP_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].freeze
|
41
|
+
@all_vars ||= [DISALLOWED_IP, DISALLOWED_EMAIL, DISALLOWED_COUNTRY, OVER_REWARD_DOLLAR_LIMIT, OVER_REWARD_COUNT_LIMIT, VPN_DETECTED, 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, 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].freeze
|
41
42
|
end
|
42
43
|
|
43
44
|
# Builds the enum from string
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|
@@ -0,0 +1,41 @@
|
|
1
|
+
=begin
|
2
|
+
#API Endpoints
|
3
|
+
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2
|
7
|
+
Contact: developers@tremendous.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.8.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Tremendous
|
17
|
+
class FraudReviewRisk
|
18
|
+
HIGH = "high".freeze
|
19
|
+
MEDIUM = "medium".freeze
|
20
|
+
LOW = "low".freeze
|
21
|
+
|
22
|
+
def self.all_vars
|
23
|
+
@all_vars ||= [HIGH, MEDIUM, LOW].freeze
|
24
|
+
end
|
25
|
+
|
26
|
+
# Builds the enum from string
|
27
|
+
# @param [String] The enum value in the form of the string
|
28
|
+
# @return [String] The enum value
|
29
|
+
def self.build_from_hash(value)
|
30
|
+
new.build_from_hash(value)
|
31
|
+
end
|
32
|
+
|
33
|
+
# Builds the enum from string
|
34
|
+
# @param [String] The enum value in the form of the string
|
35
|
+
# @return [String] The enum value
|
36
|
+
def build_from_hash(value)
|
37
|
+
return value if FraudReviewRisk.all_vars.include?(value)
|
38
|
+
raise "Invalid ENUM value #{value} for class #FraudReviewRisk"
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|
@@ -19,7 +19,10 @@ 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
|
22
|
+
# The fraud risk associated with the reward.
|
23
|
+
attr_accessor :risk
|
24
|
+
|
25
|
+
# 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 dollar limit` * `Over reward count limit` * `VPN detected` * `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` * `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`
|
23
26
|
attr_accessor :reasons
|
24
27
|
|
25
28
|
# The name of the person who reviewed the reward, or `Automatic Review` if the reward was blocked automatically. Rewards can be automatically blocked if they remain in the flagged fraud queue for more than 30 days. This field is only present if the status is not `flagged`.
|
@@ -69,6 +72,7 @@ module Tremendous
|
|
69
72
|
def self.attribute_map
|
70
73
|
{
|
71
74
|
:'status' => :'status',
|
75
|
+
:'risk' => :'risk',
|
72
76
|
:'reasons' => :'reasons',
|
73
77
|
:'reviewed_by' => :'reviewed_by',
|
74
78
|
:'reviewed_at' => :'reviewed_at',
|
@@ -90,6 +94,7 @@ module Tremendous
|
|
90
94
|
def self.openapi_types
|
91
95
|
{
|
92
96
|
:'status' => :'String',
|
97
|
+
:'risk' => :'String',
|
93
98
|
:'reasons' => :'Array<String>',
|
94
99
|
:'reviewed_by' => :'String',
|
95
100
|
:'reviewed_at' => :'Time',
|
@@ -127,6 +132,10 @@ module Tremendous
|
|
127
132
|
self.status = attributes[:'status']
|
128
133
|
end
|
129
134
|
|
135
|
+
if attributes.key?(:'risk')
|
136
|
+
self.risk = attributes[:'risk']
|
137
|
+
end
|
138
|
+
|
130
139
|
if attributes.key?(:'reasons')
|
131
140
|
if (value = attributes[:'reasons']).is_a?(Array)
|
132
141
|
self.reasons = value
|
@@ -180,6 +189,8 @@ module Tremendous
|
|
180
189
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
181
190
|
status_validator = EnumAttributeValidator.new('String', ["flagged", "blocked", "released"])
|
182
191
|
return false unless status_validator.valid?(@status)
|
192
|
+
risk_validator = EnumAttributeValidator.new('String', ["high", "medium", "low"])
|
193
|
+
return false unless risk_validator.valid?(@risk)
|
183
194
|
redemption_method_validator = EnumAttributeValidator.new('String', ["paypal", "bank", "merchant card", "visa card", "charity", "venmo"])
|
184
195
|
return false unless redemption_method_validator.valid?(@redemption_method)
|
185
196
|
true
|
@@ -195,6 +206,16 @@ module Tremendous
|
|
195
206
|
@status = status
|
196
207
|
end
|
197
208
|
|
209
|
+
# Custom attribute writer method checking allowed values (enum).
|
210
|
+
# @param [Object] risk Object to be assigned
|
211
|
+
def risk=(risk)
|
212
|
+
validator = EnumAttributeValidator.new('String', ["high", "medium", "low"])
|
213
|
+
unless validator.valid?(risk)
|
214
|
+
fail ArgumentError, "invalid value for \"risk\", must be one of #{validator.allowable_values}."
|
215
|
+
end
|
216
|
+
@risk = risk
|
217
|
+
end
|
218
|
+
|
198
219
|
# Custom attribute writer method checking allowed values (enum).
|
199
220
|
# @param [Object] redemption_method Object to be assigned
|
200
221
|
def redemption_method=(redemption_method)
|
@@ -211,6 +232,7 @@ module Tremendous
|
|
211
232
|
return true if self.equal?(o)
|
212
233
|
self.class == o.class &&
|
213
234
|
status == o.status &&
|
235
|
+
risk == o.risk &&
|
214
236
|
reasons == o.reasons &&
|
215
237
|
reviewed_by == o.reviewed_by &&
|
216
238
|
reviewed_at == o.reviewed_at &&
|
@@ -231,7 +253,7 @@ module Tremendous
|
|
231
253
|
# Calculates hash code according to all attributes.
|
232
254
|
# @return [Integer] Hash code
|
233
255
|
def hash
|
234
|
-
[status, reasons, reviewed_by, reviewed_at, related_rewards, device_id, redemption_method, redeemed_at, geo, reward].hash
|
256
|
+
[status, risk, reasons, reviewed_by, reviewed_at, related_rewards, device_id, redemption_method, redeemed_at, geo, reward].hash
|
235
257
|
end
|
236
258
|
|
237
259
|
# Builds the object from hash
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#API Endpoints
|
3
3
|
|
4
|
-
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and
|
4
|
+
#Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and its members within Tremendous, please see the Tremendous Organizational API.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 2
|
7
7
|
Contact: developers@tremendous.com
|