tremendous_ruby 5.16.0 → 5.17.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/models/create_order200_response_order.rb +3 -3
- data/lib/tremendous/models/list_orders200_response_orders_inner.rb +3 -3
- data/lib/tremendous/models/order.rb +3 -3
- data/lib/tremendous/models/order_base.rb +3 -3
- data/lib/tremendous/models/order_status.rb +2 -2
- data/lib/tremendous/models/order_with_link.rb +3 -3
- data/lib/tremendous/models/order_without_link.rb +3 -3
- data/lib/tremendous/models/single_reward_order_with_link_order.rb +3 -3
- data/lib/tremendous/models/single_reward_order_without_link_order.rb +3 -3
- data/lib/tremendous/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ba83ec634c489a1fcffd481e1a3f8e9822aedf61d6bc8ec76a9e811902331c66
|
|
4
|
+
data.tar.gz: c601b6698cd27bc43f3ae2f8c52fade741664059b41bab1d5ae2328d8612a4f8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5f79b3589811948faf56650e2aa3d31e14823c04c3a521026b2392966df0d8fe2df0ec175de115ce500978664130e08e94a9de8e2e3c95d786b909eba321973e
|
|
7
|
+
data.tar.gz: 119fd378c697d8592ad5a296ebf08322480226753612449ff95c94e643ed94d9dfc9a6a9ed37e9fadb2ce859d2a1aad900725a7d0315b5cd958b8f02d8a921f1
|
|
@@ -28,7 +28,7 @@ module Tremendous
|
|
|
28
28
|
# Date the order has been created
|
|
29
29
|
attr_accessor :created_at
|
|
30
30
|
|
|
31
|
-
# Execution status of a given order <table> <thead> <tr> <th> Status </th> <th> Description </th> </tr> </thead> <tbody> <tr> <td> <code> CANCELED </code> </td> <td> The order and all of its rewards were canceled. </td> </tr> <tr> <td> <code>
|
|
31
|
+
# Execution status of a given order <table> <thead> <tr> <th> Status </th> <th> Description </th> </tr> </thead> <tbody> <tr> <td> <code> CANCELED </code> </td> <td> The order and all of its rewards were canceled. </td> </tr> <tr> <td> <code> OPEN </code> </td> <td> The order has been created, but hasn't yet been processed. </td> </tr> <tr> <td> <code> EXECUTED </code> </td> <td> The order has been executed. Payment has been handled and rewards are being delivered (if applicable). </td> </tr> <tr> <td> <code> FAILED </code> </td> <td> The order could not be processed due to an error. E.g. due to insufficient funds in the account. </td> </tr> <tr> <td> <code> PENDING APPROVAL </code> </td> <td> The order has been created but needs approval to be executed. </td> </tr> <tr> <td> <code> PENDING INTERNAL PAYMENT APPROVAL </code> </td> <td> The order has been created but it is under review and requires approval from our team. </td> </tr> </tbody> </table>
|
|
32
32
|
attr_accessor :status
|
|
33
33
|
|
|
34
34
|
# Name of the channel in which the order was created
|
|
@@ -211,7 +211,7 @@ module Tremendous
|
|
|
211
211
|
return false if !@campaign_id.nil? && @campaign_id !~ Regexp.new(/[A-Z0-9]{4,20}/)
|
|
212
212
|
return false if @created_at.nil?
|
|
213
213
|
return false if @status.nil?
|
|
214
|
-
status_validator = EnumAttributeValidator.new('String', ["CANCELED", "
|
|
214
|
+
status_validator = EnumAttributeValidator.new('String', ["CANCELED", "OPEN", "EXECUTED", "FAILED", "PENDING APPROVAL", "PENDING INTERNAL PAYMENT APPROVAL"])
|
|
215
215
|
return false unless status_validator.valid?(@status)
|
|
216
216
|
channel_validator = EnumAttributeValidator.new('String', ["UI", "API", "EMBED", "DECIPHER", "QUALTRICS", "TYPEFORM", "SURVEY MONKEY", "YOTPO"])
|
|
217
217
|
return false unless channel_validator.valid?(@channel)
|
|
@@ -257,7 +257,7 @@ module Tremendous
|
|
|
257
257
|
# Custom attribute writer method checking allowed values (enum).
|
|
258
258
|
# @param [Object] status Object to be assigned
|
|
259
259
|
def status=(status)
|
|
260
|
-
validator = EnumAttributeValidator.new('String', ["CANCELED", "
|
|
260
|
+
validator = EnumAttributeValidator.new('String', ["CANCELED", "OPEN", "EXECUTED", "FAILED", "PENDING APPROVAL", "PENDING INTERNAL PAYMENT APPROVAL"])
|
|
261
261
|
unless validator.valid?(status)
|
|
262
262
|
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
|
263
263
|
end
|
|
@@ -28,7 +28,7 @@ module Tremendous
|
|
|
28
28
|
# Date the order has been created
|
|
29
29
|
attr_accessor :created_at
|
|
30
30
|
|
|
31
|
-
# Execution status of a given order <table> <thead> <tr> <th> Status </th> <th> Description </th> </tr> </thead> <tbody> <tr> <td> <code> CANCELED </code> </td> <td> The order and all of its rewards were canceled. </td> </tr> <tr> <td> <code>
|
|
31
|
+
# Execution status of a given order <table> <thead> <tr> <th> Status </th> <th> Description </th> </tr> </thead> <tbody> <tr> <td> <code> CANCELED </code> </td> <td> The order and all of its rewards were canceled. </td> </tr> <tr> <td> <code> OPEN </code> </td> <td> The order has been created, but hasn't yet been processed. </td> </tr> <tr> <td> <code> EXECUTED </code> </td> <td> The order has been executed. Payment has been handled and rewards are being delivered (if applicable). </td> </tr> <tr> <td> <code> FAILED </code> </td> <td> The order could not be processed due to an error. E.g. due to insufficient funds in the account. </td> </tr> <tr> <td> <code> PENDING APPROVAL </code> </td> <td> The order has been created but needs approval to be executed. </td> </tr> <tr> <td> <code> PENDING INTERNAL PAYMENT APPROVAL </code> </td> <td> The order has been created but it is under review and requires approval from our team. </td> </tr> </tbody> </table>
|
|
32
32
|
attr_accessor :status
|
|
33
33
|
|
|
34
34
|
# Name of the channel in which the order was created
|
|
@@ -211,7 +211,7 @@ module Tremendous
|
|
|
211
211
|
return false if !@campaign_id.nil? && @campaign_id !~ Regexp.new(/[A-Z0-9]{4,20}/)
|
|
212
212
|
return false if @created_at.nil?
|
|
213
213
|
return false if @status.nil?
|
|
214
|
-
status_validator = EnumAttributeValidator.new('String', ["CANCELED", "
|
|
214
|
+
status_validator = EnumAttributeValidator.new('String', ["CANCELED", "OPEN", "EXECUTED", "FAILED", "PENDING APPROVAL", "PENDING INTERNAL PAYMENT APPROVAL"])
|
|
215
215
|
return false unless status_validator.valid?(@status)
|
|
216
216
|
channel_validator = EnumAttributeValidator.new('String', ["UI", "API", "EMBED", "DECIPHER", "QUALTRICS", "TYPEFORM", "SURVEY MONKEY", "YOTPO"])
|
|
217
217
|
return false unless channel_validator.valid?(@channel)
|
|
@@ -257,7 +257,7 @@ module Tremendous
|
|
|
257
257
|
# Custom attribute writer method checking allowed values (enum).
|
|
258
258
|
# @param [Object] status Object to be assigned
|
|
259
259
|
def status=(status)
|
|
260
|
-
validator = EnumAttributeValidator.new('String', ["CANCELED", "
|
|
260
|
+
validator = EnumAttributeValidator.new('String', ["CANCELED", "OPEN", "EXECUTED", "FAILED", "PENDING APPROVAL", "PENDING INTERNAL PAYMENT APPROVAL"])
|
|
261
261
|
unless validator.valid?(status)
|
|
262
262
|
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
|
263
263
|
end
|
|
@@ -28,7 +28,7 @@ module Tremendous
|
|
|
28
28
|
# Date the order has been created
|
|
29
29
|
attr_accessor :created_at
|
|
30
30
|
|
|
31
|
-
# Execution status of a given order <table> <thead> <tr> <th> Status </th> <th> Description </th> </tr> </thead> <tbody> <tr> <td> <code> CANCELED </code> </td> <td> The order and all of its rewards were canceled. </td> </tr> <tr> <td> <code>
|
|
31
|
+
# Execution status of a given order <table> <thead> <tr> <th> Status </th> <th> Description </th> </tr> </thead> <tbody> <tr> <td> <code> CANCELED </code> </td> <td> The order and all of its rewards were canceled. </td> </tr> <tr> <td> <code> OPEN </code> </td> <td> The order has been created, but hasn't yet been processed. </td> </tr> <tr> <td> <code> EXECUTED </code> </td> <td> The order has been executed. Payment has been handled and rewards are being delivered (if applicable). </td> </tr> <tr> <td> <code> FAILED </code> </td> <td> The order could not be processed due to an error. E.g. due to insufficient funds in the account. </td> </tr> <tr> <td> <code> PENDING APPROVAL </code> </td> <td> The order has been created but needs approval to be executed. </td> </tr> <tr> <td> <code> PENDING INTERNAL PAYMENT APPROVAL </code> </td> <td> The order has been created but it is under review and requires approval from our team. </td> </tr> </tbody> </table>
|
|
32
32
|
attr_accessor :status
|
|
33
33
|
|
|
34
34
|
# Name of the channel in which the order was created
|
|
@@ -211,7 +211,7 @@ module Tremendous
|
|
|
211
211
|
return false if !@campaign_id.nil? && @campaign_id !~ Regexp.new(/[A-Z0-9]{4,20}/)
|
|
212
212
|
return false if @created_at.nil?
|
|
213
213
|
return false if @status.nil?
|
|
214
|
-
status_validator = EnumAttributeValidator.new('String', ["CANCELED", "
|
|
214
|
+
status_validator = EnumAttributeValidator.new('String', ["CANCELED", "OPEN", "EXECUTED", "FAILED", "PENDING APPROVAL", "PENDING INTERNAL PAYMENT APPROVAL"])
|
|
215
215
|
return false unless status_validator.valid?(@status)
|
|
216
216
|
channel_validator = EnumAttributeValidator.new('String', ["UI", "API", "EMBED", "DECIPHER", "QUALTRICS", "TYPEFORM", "SURVEY MONKEY", "YOTPO"])
|
|
217
217
|
return false unless channel_validator.valid?(@channel)
|
|
@@ -257,7 +257,7 @@ module Tremendous
|
|
|
257
257
|
# Custom attribute writer method checking allowed values (enum).
|
|
258
258
|
# @param [Object] status Object to be assigned
|
|
259
259
|
def status=(status)
|
|
260
|
-
validator = EnumAttributeValidator.new('String', ["CANCELED", "
|
|
260
|
+
validator = EnumAttributeValidator.new('String', ["CANCELED", "OPEN", "EXECUTED", "FAILED", "PENDING APPROVAL", "PENDING INTERNAL PAYMENT APPROVAL"])
|
|
261
261
|
unless validator.valid?(status)
|
|
262
262
|
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
|
263
263
|
end
|
|
@@ -28,7 +28,7 @@ module Tremendous
|
|
|
28
28
|
# Date the order has been created
|
|
29
29
|
attr_accessor :created_at
|
|
30
30
|
|
|
31
|
-
# Execution status of a given order <table> <thead> <tr> <th> Status </th> <th> Description </th> </tr> </thead> <tbody> <tr> <td> <code> CANCELED </code> </td> <td> The order and all of its rewards were canceled. </td> </tr> <tr> <td> <code>
|
|
31
|
+
# Execution status of a given order <table> <thead> <tr> <th> Status </th> <th> Description </th> </tr> </thead> <tbody> <tr> <td> <code> CANCELED </code> </td> <td> The order and all of its rewards were canceled. </td> </tr> <tr> <td> <code> OPEN </code> </td> <td> The order has been created, but hasn't yet been processed. </td> </tr> <tr> <td> <code> EXECUTED </code> </td> <td> The order has been executed. Payment has been handled and rewards are being delivered (if applicable). </td> </tr> <tr> <td> <code> FAILED </code> </td> <td> The order could not be processed due to an error. E.g. due to insufficient funds in the account. </td> </tr> <tr> <td> <code> PENDING APPROVAL </code> </td> <td> The order has been created but needs approval to be executed. </td> </tr> <tr> <td> <code> PENDING INTERNAL PAYMENT APPROVAL </code> </td> <td> The order has been created but it is under review and requires approval from our team. </td> </tr> </tbody> </table>
|
|
32
32
|
attr_accessor :status
|
|
33
33
|
|
|
34
34
|
# Name of the channel in which the order was created
|
|
@@ -201,7 +201,7 @@ module Tremendous
|
|
|
201
201
|
return false if !@campaign_id.nil? && @campaign_id !~ Regexp.new(/[A-Z0-9]{4,20}/)
|
|
202
202
|
return false if @created_at.nil?
|
|
203
203
|
return false if @status.nil?
|
|
204
|
-
status_validator = EnumAttributeValidator.new('String', ["CANCELED", "
|
|
204
|
+
status_validator = EnumAttributeValidator.new('String', ["CANCELED", "OPEN", "EXECUTED", "FAILED", "PENDING APPROVAL", "PENDING INTERNAL PAYMENT APPROVAL"])
|
|
205
205
|
return false unless status_validator.valid?(@status)
|
|
206
206
|
channel_validator = EnumAttributeValidator.new('String', ["UI", "API", "EMBED", "DECIPHER", "QUALTRICS", "TYPEFORM", "SURVEY MONKEY", "YOTPO"])
|
|
207
207
|
return false unless channel_validator.valid?(@channel)
|
|
@@ -247,7 +247,7 @@ module Tremendous
|
|
|
247
247
|
# Custom attribute writer method checking allowed values (enum).
|
|
248
248
|
# @param [Object] status Object to be assigned
|
|
249
249
|
def status=(status)
|
|
250
|
-
validator = EnumAttributeValidator.new('String', ["CANCELED", "
|
|
250
|
+
validator = EnumAttributeValidator.new('String', ["CANCELED", "OPEN", "EXECUTED", "FAILED", "PENDING APPROVAL", "PENDING INTERNAL PAYMENT APPROVAL"])
|
|
251
251
|
unless validator.valid?(status)
|
|
252
252
|
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
|
253
253
|
end
|
|
@@ -16,14 +16,14 @@ require 'time'
|
|
|
16
16
|
module Tremendous
|
|
17
17
|
class OrderStatus
|
|
18
18
|
CANCELED = "CANCELED".freeze
|
|
19
|
-
|
|
19
|
+
OPEN = "OPEN".freeze
|
|
20
20
|
EXECUTED = "EXECUTED".freeze
|
|
21
21
|
FAILED = "FAILED".freeze
|
|
22
22
|
PENDING_APPROVAL = "PENDING APPROVAL".freeze
|
|
23
23
|
PENDING_INTERNAL_PAYMENT_APPROVAL = "PENDING INTERNAL PAYMENT APPROVAL".freeze
|
|
24
24
|
|
|
25
25
|
def self.all_vars
|
|
26
|
-
@all_vars ||= [CANCELED,
|
|
26
|
+
@all_vars ||= [CANCELED, OPEN, EXECUTED, FAILED, PENDING_APPROVAL, PENDING_INTERNAL_PAYMENT_APPROVAL].freeze
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
# Builds the enum from string
|
|
@@ -28,7 +28,7 @@ module Tremendous
|
|
|
28
28
|
# Date the order has been created
|
|
29
29
|
attr_accessor :created_at
|
|
30
30
|
|
|
31
|
-
# Execution status of a given order <table> <thead> <tr> <th> Status </th> <th> Description </th> </tr> </thead> <tbody> <tr> <td> <code> CANCELED </code> </td> <td> The order and all of its rewards were canceled. </td> </tr> <tr> <td> <code>
|
|
31
|
+
# Execution status of a given order <table> <thead> <tr> <th> Status </th> <th> Description </th> </tr> </thead> <tbody> <tr> <td> <code> CANCELED </code> </td> <td> The order and all of its rewards were canceled. </td> </tr> <tr> <td> <code> OPEN </code> </td> <td> The order has been created, but hasn't yet been processed. </td> </tr> <tr> <td> <code> EXECUTED </code> </td> <td> The order has been executed. Payment has been handled and rewards are being delivered (if applicable). </td> </tr> <tr> <td> <code> FAILED </code> </td> <td> The order could not be processed due to an error. E.g. due to insufficient funds in the account. </td> </tr> <tr> <td> <code> PENDING APPROVAL </code> </td> <td> The order has been created but needs approval to be executed. </td> </tr> <tr> <td> <code> PENDING INTERNAL PAYMENT APPROVAL </code> </td> <td> The order has been created but it is under review and requires approval from our team. </td> </tr> </tbody> </table>
|
|
32
32
|
attr_accessor :status
|
|
33
33
|
|
|
34
34
|
# Name of the channel in which the order was created
|
|
@@ -211,7 +211,7 @@ module Tremendous
|
|
|
211
211
|
return false if !@campaign_id.nil? && @campaign_id !~ Regexp.new(/[A-Z0-9]{4,20}/)
|
|
212
212
|
return false if @created_at.nil?
|
|
213
213
|
return false if @status.nil?
|
|
214
|
-
status_validator = EnumAttributeValidator.new('String', ["CANCELED", "
|
|
214
|
+
status_validator = EnumAttributeValidator.new('String', ["CANCELED", "OPEN", "EXECUTED", "FAILED", "PENDING APPROVAL", "PENDING INTERNAL PAYMENT APPROVAL"])
|
|
215
215
|
return false unless status_validator.valid?(@status)
|
|
216
216
|
channel_validator = EnumAttributeValidator.new('String', ["UI", "API", "EMBED", "DECIPHER", "QUALTRICS", "TYPEFORM", "SURVEY MONKEY", "YOTPO"])
|
|
217
217
|
return false unless channel_validator.valid?(@channel)
|
|
@@ -257,7 +257,7 @@ module Tremendous
|
|
|
257
257
|
# Custom attribute writer method checking allowed values (enum).
|
|
258
258
|
# @param [Object] status Object to be assigned
|
|
259
259
|
def status=(status)
|
|
260
|
-
validator = EnumAttributeValidator.new('String', ["CANCELED", "
|
|
260
|
+
validator = EnumAttributeValidator.new('String', ["CANCELED", "OPEN", "EXECUTED", "FAILED", "PENDING APPROVAL", "PENDING INTERNAL PAYMENT APPROVAL"])
|
|
261
261
|
unless validator.valid?(status)
|
|
262
262
|
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
|
263
263
|
end
|
|
@@ -28,7 +28,7 @@ module Tremendous
|
|
|
28
28
|
# Date the order has been created
|
|
29
29
|
attr_accessor :created_at
|
|
30
30
|
|
|
31
|
-
# Execution status of a given order <table> <thead> <tr> <th> Status </th> <th> Description </th> </tr> </thead> <tbody> <tr> <td> <code> CANCELED </code> </td> <td> The order and all of its rewards were canceled. </td> </tr> <tr> <td> <code>
|
|
31
|
+
# Execution status of a given order <table> <thead> <tr> <th> Status </th> <th> Description </th> </tr> </thead> <tbody> <tr> <td> <code> CANCELED </code> </td> <td> The order and all of its rewards were canceled. </td> </tr> <tr> <td> <code> OPEN </code> </td> <td> The order has been created, but hasn't yet been processed. </td> </tr> <tr> <td> <code> EXECUTED </code> </td> <td> The order has been executed. Payment has been handled and rewards are being delivered (if applicable). </td> </tr> <tr> <td> <code> FAILED </code> </td> <td> The order could not be processed due to an error. E.g. due to insufficient funds in the account. </td> </tr> <tr> <td> <code> PENDING APPROVAL </code> </td> <td> The order has been created but needs approval to be executed. </td> </tr> <tr> <td> <code> PENDING INTERNAL PAYMENT APPROVAL </code> </td> <td> The order has been created but it is under review and requires approval from our team. </td> </tr> </tbody> </table>
|
|
32
32
|
attr_accessor :status
|
|
33
33
|
|
|
34
34
|
# Name of the channel in which the order was created
|
|
@@ -211,7 +211,7 @@ module Tremendous
|
|
|
211
211
|
return false if !@campaign_id.nil? && @campaign_id !~ Regexp.new(/[A-Z0-9]{4,20}/)
|
|
212
212
|
return false if @created_at.nil?
|
|
213
213
|
return false if @status.nil?
|
|
214
|
-
status_validator = EnumAttributeValidator.new('String', ["CANCELED", "
|
|
214
|
+
status_validator = EnumAttributeValidator.new('String', ["CANCELED", "OPEN", "EXECUTED", "FAILED", "PENDING APPROVAL", "PENDING INTERNAL PAYMENT APPROVAL"])
|
|
215
215
|
return false unless status_validator.valid?(@status)
|
|
216
216
|
channel_validator = EnumAttributeValidator.new('String', ["UI", "API", "EMBED", "DECIPHER", "QUALTRICS", "TYPEFORM", "SURVEY MONKEY", "YOTPO"])
|
|
217
217
|
return false unless channel_validator.valid?(@channel)
|
|
@@ -257,7 +257,7 @@ module Tremendous
|
|
|
257
257
|
# Custom attribute writer method checking allowed values (enum).
|
|
258
258
|
# @param [Object] status Object to be assigned
|
|
259
259
|
def status=(status)
|
|
260
|
-
validator = EnumAttributeValidator.new('String', ["CANCELED", "
|
|
260
|
+
validator = EnumAttributeValidator.new('String', ["CANCELED", "OPEN", "EXECUTED", "FAILED", "PENDING APPROVAL", "PENDING INTERNAL PAYMENT APPROVAL"])
|
|
261
261
|
unless validator.valid?(status)
|
|
262
262
|
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
|
263
263
|
end
|
|
@@ -28,7 +28,7 @@ module Tremendous
|
|
|
28
28
|
# Date the order has been created
|
|
29
29
|
attr_accessor :created_at
|
|
30
30
|
|
|
31
|
-
# Execution status of a given order <table> <thead> <tr> <th> Status </th> <th> Description </th> </tr> </thead> <tbody> <tr> <td> <code> CANCELED </code> </td> <td> The order and all of its rewards were canceled. </td> </tr> <tr> <td> <code>
|
|
31
|
+
# Execution status of a given order <table> <thead> <tr> <th> Status </th> <th> Description </th> </tr> </thead> <tbody> <tr> <td> <code> CANCELED </code> </td> <td> The order and all of its rewards were canceled. </td> </tr> <tr> <td> <code> OPEN </code> </td> <td> The order has been created, but hasn't yet been processed. </td> </tr> <tr> <td> <code> EXECUTED </code> </td> <td> The order has been executed. Payment has been handled and rewards are being delivered (if applicable). </td> </tr> <tr> <td> <code> FAILED </code> </td> <td> The order could not be processed due to an error. E.g. due to insufficient funds in the account. </td> </tr> <tr> <td> <code> PENDING APPROVAL </code> </td> <td> The order has been created but needs approval to be executed. </td> </tr> <tr> <td> <code> PENDING INTERNAL PAYMENT APPROVAL </code> </td> <td> The order has been created but it is under review and requires approval from our team. </td> </tr> </tbody> </table>
|
|
32
32
|
attr_accessor :status
|
|
33
33
|
|
|
34
34
|
# Name of the channel in which the order was created
|
|
@@ -211,7 +211,7 @@ module Tremendous
|
|
|
211
211
|
return false if !@campaign_id.nil? && @campaign_id !~ Regexp.new(/[A-Z0-9]{4,20}/)
|
|
212
212
|
return false if @created_at.nil?
|
|
213
213
|
return false if @status.nil?
|
|
214
|
-
status_validator = EnumAttributeValidator.new('String', ["CANCELED", "
|
|
214
|
+
status_validator = EnumAttributeValidator.new('String', ["CANCELED", "OPEN", "EXECUTED", "FAILED", "PENDING APPROVAL", "PENDING INTERNAL PAYMENT APPROVAL"])
|
|
215
215
|
return false unless status_validator.valid?(@status)
|
|
216
216
|
channel_validator = EnumAttributeValidator.new('String', ["UI", "API", "EMBED", "DECIPHER", "QUALTRICS", "TYPEFORM", "SURVEY MONKEY", "YOTPO"])
|
|
217
217
|
return false unless channel_validator.valid?(@channel)
|
|
@@ -257,7 +257,7 @@ module Tremendous
|
|
|
257
257
|
# Custom attribute writer method checking allowed values (enum).
|
|
258
258
|
# @param [Object] status Object to be assigned
|
|
259
259
|
def status=(status)
|
|
260
|
-
validator = EnumAttributeValidator.new('String', ["CANCELED", "
|
|
260
|
+
validator = EnumAttributeValidator.new('String', ["CANCELED", "OPEN", "EXECUTED", "FAILED", "PENDING APPROVAL", "PENDING INTERNAL PAYMENT APPROVAL"])
|
|
261
261
|
unless validator.valid?(status)
|
|
262
262
|
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
|
263
263
|
end
|
|
@@ -28,7 +28,7 @@ module Tremendous
|
|
|
28
28
|
# Date the order has been created
|
|
29
29
|
attr_accessor :created_at
|
|
30
30
|
|
|
31
|
-
# Execution status of a given order <table> <thead> <tr> <th> Status </th> <th> Description </th> </tr> </thead> <tbody> <tr> <td> <code> CANCELED </code> </td> <td> The order and all of its rewards were canceled. </td> </tr> <tr> <td> <code>
|
|
31
|
+
# Execution status of a given order <table> <thead> <tr> <th> Status </th> <th> Description </th> </tr> </thead> <tbody> <tr> <td> <code> CANCELED </code> </td> <td> The order and all of its rewards were canceled. </td> </tr> <tr> <td> <code> OPEN </code> </td> <td> The order has been created, but hasn't yet been processed. </td> </tr> <tr> <td> <code> EXECUTED </code> </td> <td> The order has been executed. Payment has been handled and rewards are being delivered (if applicable). </td> </tr> <tr> <td> <code> FAILED </code> </td> <td> The order could not be processed due to an error. E.g. due to insufficient funds in the account. </td> </tr> <tr> <td> <code> PENDING APPROVAL </code> </td> <td> The order has been created but needs approval to be executed. </td> </tr> <tr> <td> <code> PENDING INTERNAL PAYMENT APPROVAL </code> </td> <td> The order has been created but it is under review and requires approval from our team. </td> </tr> </tbody> </table>
|
|
32
32
|
attr_accessor :status
|
|
33
33
|
|
|
34
34
|
# Name of the channel in which the order was created
|
|
@@ -211,7 +211,7 @@ module Tremendous
|
|
|
211
211
|
return false if !@campaign_id.nil? && @campaign_id !~ Regexp.new(/[A-Z0-9]{4,20}/)
|
|
212
212
|
return false if @created_at.nil?
|
|
213
213
|
return false if @status.nil?
|
|
214
|
-
status_validator = EnumAttributeValidator.new('String', ["CANCELED", "
|
|
214
|
+
status_validator = EnumAttributeValidator.new('String', ["CANCELED", "OPEN", "EXECUTED", "FAILED", "PENDING APPROVAL", "PENDING INTERNAL PAYMENT APPROVAL"])
|
|
215
215
|
return false unless status_validator.valid?(@status)
|
|
216
216
|
channel_validator = EnumAttributeValidator.new('String', ["UI", "API", "EMBED", "DECIPHER", "QUALTRICS", "TYPEFORM", "SURVEY MONKEY", "YOTPO"])
|
|
217
217
|
return false unless channel_validator.valid?(@channel)
|
|
@@ -257,7 +257,7 @@ module Tremendous
|
|
|
257
257
|
# Custom attribute writer method checking allowed values (enum).
|
|
258
258
|
# @param [Object] status Object to be assigned
|
|
259
259
|
def status=(status)
|
|
260
|
-
validator = EnumAttributeValidator.new('String', ["CANCELED", "
|
|
260
|
+
validator = EnumAttributeValidator.new('String', ["CANCELED", "OPEN", "EXECUTED", "FAILED", "PENDING APPROVAL", "PENDING INTERNAL PAYMENT APPROVAL"])
|
|
261
261
|
unless validator.valid?(status)
|
|
262
262
|
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
|
263
263
|
end
|
data/lib/tremendous/version.rb
CHANGED