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
|
@@ -24,6 +24,9 @@ module Tremendous
|
|
24
24
|
# Fees for the order (in USD)
|
25
25
|
attr_accessor :fees
|
26
26
|
|
27
|
+
# Discount for the order (in USD)
|
28
|
+
attr_accessor :discount
|
29
|
+
|
27
30
|
attr_accessor :refund
|
28
31
|
|
29
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -32,6 +35,7 @@ module Tremendous
|
|
32
35
|
:'subtotal' => :'subtotal',
|
33
36
|
:'total' => :'total',
|
34
37
|
:'fees' => :'fees',
|
38
|
+
:'discount' => :'discount',
|
35
39
|
:'refund' => :'refund'
|
36
40
|
}
|
37
41
|
end
|
@@ -47,6 +51,7 @@ module Tremendous
|
|
47
51
|
:'subtotal' => :'Float',
|
48
52
|
:'total' => :'Float',
|
49
53
|
:'fees' => :'Float',
|
54
|
+
:'discount' => :'Float',
|
50
55
|
:'refund' => :'PaymentDetailsRefund'
|
51
56
|
}
|
52
57
|
end
|
@@ -74,14 +79,26 @@ module Tremendous
|
|
74
79
|
|
75
80
|
if attributes.key?(:'subtotal')
|
76
81
|
self.subtotal = attributes[:'subtotal']
|
82
|
+
else
|
83
|
+
self.subtotal = nil
|
77
84
|
end
|
78
85
|
|
79
86
|
if attributes.key?(:'total')
|
80
87
|
self.total = attributes[:'total']
|
88
|
+
else
|
89
|
+
self.total = nil
|
81
90
|
end
|
82
91
|
|
83
92
|
if attributes.key?(:'fees')
|
84
93
|
self.fees = attributes[:'fees']
|
94
|
+
else
|
95
|
+
self.fees = nil
|
96
|
+
end
|
97
|
+
|
98
|
+
if attributes.key?(:'discount')
|
99
|
+
self.discount = attributes[:'discount']
|
100
|
+
else
|
101
|
+
self.discount = nil
|
85
102
|
end
|
86
103
|
|
87
104
|
if attributes.key?(:'refund')
|
@@ -94,18 +111,38 @@ module Tremendous
|
|
94
111
|
def list_invalid_properties
|
95
112
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
96
113
|
invalid_properties = Array.new
|
97
|
-
if
|
114
|
+
if @subtotal.nil?
|
115
|
+
invalid_properties.push('invalid value for "subtotal", subtotal cannot be nil.')
|
116
|
+
end
|
117
|
+
|
118
|
+
if @subtotal < 0
|
98
119
|
invalid_properties.push('invalid value for "subtotal", must be greater than or equal to 0.')
|
99
120
|
end
|
100
121
|
|
101
|
-
if
|
122
|
+
if @total.nil?
|
123
|
+
invalid_properties.push('invalid value for "total", total cannot be nil.')
|
124
|
+
end
|
125
|
+
|
126
|
+
if @total < 0
|
102
127
|
invalid_properties.push('invalid value for "total", must be greater than or equal to 0.')
|
103
128
|
end
|
104
129
|
|
105
|
-
if
|
130
|
+
if @fees.nil?
|
131
|
+
invalid_properties.push('invalid value for "fees", fees cannot be nil.')
|
132
|
+
end
|
133
|
+
|
134
|
+
if @fees < 0
|
106
135
|
invalid_properties.push('invalid value for "fees", must be greater than or equal to 0.')
|
107
136
|
end
|
108
137
|
|
138
|
+
if @discount.nil?
|
139
|
+
invalid_properties.push('invalid value for "discount", discount cannot be nil.')
|
140
|
+
end
|
141
|
+
|
142
|
+
if @discount < 0
|
143
|
+
invalid_properties.push('invalid value for "discount", must be greater than or equal to 0.')
|
144
|
+
end
|
145
|
+
|
109
146
|
invalid_properties
|
110
147
|
end
|
111
148
|
|
@@ -113,9 +150,14 @@ module Tremendous
|
|
113
150
|
# @return true if the model is valid
|
114
151
|
def valid?
|
115
152
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
116
|
-
return false if
|
117
|
-
return false if
|
118
|
-
return false if
|
153
|
+
return false if @subtotal.nil?
|
154
|
+
return false if @subtotal < 0
|
155
|
+
return false if @total.nil?
|
156
|
+
return false if @total < 0
|
157
|
+
return false if @fees.nil?
|
158
|
+
return false if @fees < 0
|
159
|
+
return false if @discount.nil?
|
160
|
+
return false if @discount < 0
|
119
161
|
true
|
120
162
|
end
|
121
163
|
|
@@ -161,6 +203,20 @@ module Tremendous
|
|
161
203
|
@fees = fees
|
162
204
|
end
|
163
205
|
|
206
|
+
# Custom attribute writer method with validation
|
207
|
+
# @param [Object] discount Value to be assigned
|
208
|
+
def discount=(discount)
|
209
|
+
if discount.nil?
|
210
|
+
fail ArgumentError, 'discount cannot be nil'
|
211
|
+
end
|
212
|
+
|
213
|
+
if discount < 0
|
214
|
+
fail ArgumentError, 'invalid value for "discount", must be greater than or equal to 0.'
|
215
|
+
end
|
216
|
+
|
217
|
+
@discount = discount
|
218
|
+
end
|
219
|
+
|
164
220
|
# Checks equality by comparing each attribute.
|
165
221
|
# @param [Object] Object to be compared
|
166
222
|
def ==(o)
|
@@ -169,6 +225,7 @@ module Tremendous
|
|
169
225
|
subtotal == o.subtotal &&
|
170
226
|
total == o.total &&
|
171
227
|
fees == o.fees &&
|
228
|
+
discount == o.discount &&
|
172
229
|
refund == o.refund
|
173
230
|
end
|
174
231
|
|
@@ -181,7 +238,7 @@ module Tremendous
|
|
181
238
|
# Calculates hash code according to all attributes.
|
182
239
|
# @return [Integer] Hash code
|
183
240
|
def hash
|
184
|
-
[subtotal, total, fees, refund].hash
|
241
|
+
[subtotal, total, fees, discount, refund].hash
|
185
242
|
end
|
186
243
|
|
187
244
|
# 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
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module Tremendous
|
17
|
-
# A product represents one way to payout a reward to
|
17
|
+
# A product represents one way to payout a reward to its recipient. Think: * Amazon.com gift card (ID: `OKMHM2X2OHYV`) * Donations to Save the Children (ID: `ESRNAD533W5A`) * Virtual Visa debit card (ID: `Q24BD9EZ332JT`) each of which is one specific product on Tremendous. > 📘 All available products > > See this [list](https://www.tremendous.com/catalog) Products can be limited in their availability to recipients by * geography (field `countries`) * currency (field `currencies`) * amount of the reward (field `skus`) * e.g. adidas gift cards accept any amount between 5 and 200 USD. See the description of each respective parameter for further details.
|
18
18
|
class Product
|
19
19
|
attr_accessor :id
|
20
20
|
|
@@ -30,7 +30,7 @@ module Tremendous
|
|
30
30
|
# Legal disclosures for this product. Can be in HTML format.
|
31
31
|
attr_accessor :disclosure
|
32
32
|
|
33
|
-
# Products
|
33
|
+
# 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.
|
34
34
|
attr_accessor :skus
|
35
35
|
|
36
36
|
# Available currencies for this product
|
@@ -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
|
@@ -25,7 +25,7 @@ module Tremendous
|
|
25
25
|
# Timestamp of when the report was created
|
26
26
|
attr_accessor :created_at
|
27
27
|
|
28
|
-
# Timestamp of when the report is expected to finish generating. If the report
|
28
|
+
# Timestamp of when the report is expected to finish generating. If the report is complete, this will return the time the report completed generating at.
|
29
29
|
attr_accessor :expected_completion_at
|
30
30
|
|
31
31
|
# URL to download the report. Only returned when the report generation is complete and report is ready for download. URL is valid for 7 days from generation completion
|
@@ -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
|
@@ -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
|