tremendous_ruby 5.4.0 → 5.6.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 +59 -399
- data/lib/tremendous/api_client.rb +31 -26
- data/lib/tremendous/api_error.rb +1 -1
- data/lib/tremendous/configuration.rb +2 -2
- 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 +37 -2
- data/lib/tremendous/models/base_order_for_create.rb +2 -2
- data/lib/tremendous/models/campaign.rb +1 -1
- data/lib/tremendous/models/campaign_base.rb +1 -1
- data/lib/tremendous/models/channel.rb +45 -0
- 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 +2 -2
- data/lib/tremendous/models/create_order200_response_order.rb +403 -0
- data/lib/tremendous/models/create_order200_response_order_rewards_inner.rb +326 -0
- data/lib/tremendous/models/create_order200_response_order_rewards_inner_delivery.rb +296 -0
- data/lib/tremendous/models/{create_public_key_request.rb → create_order201_response.rb} +15 -16
- data/lib/tremendous/models/create_order_request.rb +2 -2
- data/lib/tremendous/models/create_organization.rb +52 -5
- data/lib/tremendous/models/create_organization200_response.rb +1 -1
- data/lib/tremendous/models/create_organization200_response_organization.rb +21 -46
- data/lib/tremendous/models/{public_keys_response_public_keys_inner.rb → create_organization_for_response.rb} +73 -21
- data/lib/tremendous/models/{public_key.rb → create_organization_properties.rb} +58 -21
- data/lib/tremendous/models/create_organization_request.rb +8 -1
- data/lib/tremendous/models/create_organization_request_copy_settings.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 -15
- data/lib/tremendous/models/delivery_details_with_link.rb +296 -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 +12 -2
- 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 +2 -2
- 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 +1 -1
- 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_status.rb +1 -1
- data/lib/tremendous/models/fraud_rule200_response.rb +1 -1
- data/lib/tremendous/models/fraud_rule400_response.rb +12 -2
- data/lib/tremendous/models/fraud_rule422_response.rb +12 -2
- 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 +5 -3
- 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 +12 -2
- 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 +1 -1
- 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_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 +11 -2
- data/lib/tremendous/models/list_balance_transactions200_response.rb +16 -9
- data/lib/tremendous/models/{list_balance_transactions200_response_invoices_inner.rb → list_balance_transactions200_response_transactions_inner.rb} +40 -5
- 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 +1 -1
- data/lib/tremendous/models/list_campaigns200_response_campaigns_inner_webpage_style.rb +1 -1
- 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 +22 -5
- data/lib/tremendous/models/list_fraud_reviews200_response_fraud_reviews_inner.rb +1 -1
- data/lib/tremendous/models/list_fraud_rules200_response.rb +1 -1
- data/lib/tremendous/models/list_fraud_rules200_response_fraud_rules_inner.rb +5 -3
- 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_invoices200_response.rb +1 -1
- data/lib/tremendous/models/list_invoices200_response_invoices_inner.rb +11 -2
- 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 +32 -8
- data/lib/tremendous/models/list_orders200_response_orders_inner_payment.rb +5 -49
- 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 +1 -1
- 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 -15
- 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 +12 -2
- data/lib/tremendous/models/list_rewards401_response_errors.rb +5 -3
- data/lib/tremendous/models/list_rewards429_response.rb +12 -2
- 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 +32 -8
- data/lib/tremendous/models/order_base.rb +24 -2
- data/lib/tremendous/models/order_base_payment.rb +5 -49
- data/lib/tremendous/models/order_status.rb +1 -1
- data/lib/tremendous/models/order_with_link.rb +403 -0
- data/lib/tremendous/models/order_with_link_rewards_inner.rb +385 -0
- data/lib/tremendous/models/order_without_link.rb +32 -8
- data/lib/tremendous/models/{order_without_link_reward.rb → order_without_link_rewards_inner.rb} +4 -4
- data/lib/tremendous/models/organization.rb +1 -1
- data/lib/tremendous/models/payment_details.rb +5 -49
- data/lib/tremendous/models/payment_details_refund.rb +1 -1
- data/lib/tremendous/models/payout.rb +340 -0
- data/lib/tremendous/models/product.rb +1 -1
- data/lib/tremendous/models/recipient.rb +1 -1
- data/lib/tremendous/models/refund_details.rb +1 -1
- data/lib/tremendous/models/resend_reward422_response.rb +12 -2
- 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 +2 -2
- 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/{single_reward_order1_reward.rb → reward_with_link.rb} +79 -17
- data/lib/tremendous/models/reward_with_link_delivery.rb +296 -0
- data/lib/tremendous/models/reward_without_link.rb +1 -1
- data/lib/tremendous/models/reward_without_link_delivery.rb +1 -15
- 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 +2 -2
- data/lib/tremendous/models/{single_reward_order1_payment.rb → single_reward_order_payment.rb} +4 -4
- data/lib/tremendous/models/single_reward_order_reward.rb +4 -76
- data/lib/tremendous/models/{single_reward_order1_reward_custom_fields_inner.rb → single_reward_order_reward_custom_fields_inner.rb} +4 -4
- data/lib/tremendous/models/{single_reward_order1_reward_delivery.rb → single_reward_order_reward_delivery.rb} +4 -4
- data/lib/tremendous/models/{test_public_key.rb → single_reward_order_with_link.rb} +15 -16
- data/lib/tremendous/models/single_reward_order_with_link_order.rb +403 -0
- data/lib/tremendous/models/single_reward_order_without_link.rb +1 -1
- data/lib/tremendous/models/single_reward_order_without_link_order.rb +32 -8
- 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 +21 -17
- metadata +22 -18
- data/lib/tremendous/models/create_invoice.rb +0 -244
- data/lib/tremendous/models/create_public_key.rb +0 -222
- data/lib/tremendous/models/create_public_key200_response.rb +0 -221
- data/lib/tremendous/models/public_keys_response.rb +0 -223
- data/lib/tremendous/models/single_reward_order1.rb +0 -242
- data/lib/tremendous/models/test_public_key_request.rb +0 -222
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 2
|
|
7
7
|
Contact: developers@tremendous.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
|
|
9
|
+
Generator version: 7.8.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -15,12 +15,12 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Tremendous
|
|
17
17
|
class ListBalanceTransactions200Response
|
|
18
|
-
attr_accessor :
|
|
18
|
+
attr_accessor :transactions
|
|
19
19
|
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
21
|
def self.attribute_map
|
|
22
22
|
{
|
|
23
|
-
:'
|
|
23
|
+
:'transactions' => :'transactions'
|
|
24
24
|
}
|
|
25
25
|
end
|
|
26
26
|
|
|
@@ -32,7 +32,7 @@ module Tremendous
|
|
|
32
32
|
# Attribute type mapping.
|
|
33
33
|
def self.openapi_types
|
|
34
34
|
{
|
|
35
|
-
:'
|
|
35
|
+
:'transactions' => :'Array<ListBalanceTransactions200ResponseTransactionsInner>'
|
|
36
36
|
}
|
|
37
37
|
end
|
|
38
38
|
|
|
@@ -57,10 +57,12 @@ module Tremendous
|
|
|
57
57
|
h[k.to_sym] = v
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
if attributes.key?(:'
|
|
61
|
-
if (value = attributes[:'
|
|
62
|
-
self.
|
|
60
|
+
if attributes.key?(:'transactions')
|
|
61
|
+
if (value = attributes[:'transactions']).is_a?(Array)
|
|
62
|
+
self.transactions = value
|
|
63
63
|
end
|
|
64
|
+
else
|
|
65
|
+
self.transactions = nil
|
|
64
66
|
end
|
|
65
67
|
end
|
|
66
68
|
|
|
@@ -69,6 +71,10 @@ module Tremendous
|
|
|
69
71
|
def list_invalid_properties
|
|
70
72
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
71
73
|
invalid_properties = Array.new
|
|
74
|
+
if @transactions.nil?
|
|
75
|
+
invalid_properties.push('invalid value for "transactions", transactions cannot be nil.')
|
|
76
|
+
end
|
|
77
|
+
|
|
72
78
|
invalid_properties
|
|
73
79
|
end
|
|
74
80
|
|
|
@@ -76,6 +82,7 @@ module Tremendous
|
|
|
76
82
|
# @return true if the model is valid
|
|
77
83
|
def valid?
|
|
78
84
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
85
|
+
return false if @transactions.nil?
|
|
79
86
|
true
|
|
80
87
|
end
|
|
81
88
|
|
|
@@ -84,7 +91,7 @@ module Tremendous
|
|
|
84
91
|
def ==(o)
|
|
85
92
|
return true if self.equal?(o)
|
|
86
93
|
self.class == o.class &&
|
|
87
|
-
|
|
94
|
+
transactions == o.transactions
|
|
88
95
|
end
|
|
89
96
|
|
|
90
97
|
# @see the `==` method
|
|
@@ -96,7 +103,7 @@ module Tremendous
|
|
|
96
103
|
# Calculates hash code according to all attributes.
|
|
97
104
|
# @return [Integer] Hash code
|
|
98
105
|
def hash
|
|
99
|
-
[
|
|
106
|
+
[transactions].hash
|
|
100
107
|
end
|
|
101
108
|
|
|
102
109
|
# Builds the object from hash
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 2
|
|
7
7
|
Contact: developers@tremendous.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
|
|
9
|
+
Generator version: 7.8.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Tremendous
|
|
17
17
|
# A balance transaction represents a specific movement or change in an account's balance.
|
|
18
|
-
class
|
|
18
|
+
class ListBalanceTransactions200ResponseTransactionsInner
|
|
19
19
|
# Date that the transaction was created
|
|
20
20
|
attr_accessor :created_at
|
|
21
21
|
|
|
@@ -50,7 +50,7 @@ module Tremendous
|
|
|
50
50
|
# Attribute type mapping.
|
|
51
51
|
def self.openapi_types
|
|
52
52
|
{
|
|
53
|
-
:'created_at' => :'
|
|
53
|
+
:'created_at' => :'Time',
|
|
54
54
|
:'amount' => :'Float',
|
|
55
55
|
:'balance' => :'Float',
|
|
56
56
|
:'action' => :'String',
|
|
@@ -68,35 +68,45 @@ module Tremendous
|
|
|
68
68
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
69
69
|
def initialize(attributes = {})
|
|
70
70
|
if (!attributes.is_a?(Hash))
|
|
71
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Tremendous::
|
|
71
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Tremendous::ListBalanceTransactions200ResponseTransactionsInner` initialize method"
|
|
72
72
|
end
|
|
73
73
|
|
|
74
74
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
75
75
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
76
76
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
77
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::
|
|
77
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListBalanceTransactions200ResponseTransactionsInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
78
78
|
end
|
|
79
79
|
h[k.to_sym] = v
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
if attributes.key?(:'created_at')
|
|
83
83
|
self.created_at = attributes[:'created_at']
|
|
84
|
+
else
|
|
85
|
+
self.created_at = nil
|
|
84
86
|
end
|
|
85
87
|
|
|
86
88
|
if attributes.key?(:'amount')
|
|
87
89
|
self.amount = attributes[:'amount']
|
|
90
|
+
else
|
|
91
|
+
self.amount = nil
|
|
88
92
|
end
|
|
89
93
|
|
|
90
94
|
if attributes.key?(:'balance')
|
|
91
95
|
self.balance = attributes[:'balance']
|
|
96
|
+
else
|
|
97
|
+
self.balance = nil
|
|
92
98
|
end
|
|
93
99
|
|
|
94
100
|
if attributes.key?(:'action')
|
|
95
101
|
self.action = attributes[:'action']
|
|
102
|
+
else
|
|
103
|
+
self.action = nil
|
|
96
104
|
end
|
|
97
105
|
|
|
98
106
|
if attributes.key?(:'description')
|
|
99
107
|
self.description = attributes[:'description']
|
|
108
|
+
else
|
|
109
|
+
self.description = nil
|
|
100
110
|
end
|
|
101
111
|
end
|
|
102
112
|
|
|
@@ -105,6 +115,26 @@ module Tremendous
|
|
|
105
115
|
def list_invalid_properties
|
|
106
116
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
107
117
|
invalid_properties = Array.new
|
|
118
|
+
if @created_at.nil?
|
|
119
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if @amount.nil?
|
|
123
|
+
invalid_properties.push('invalid value for "amount", amount cannot be nil.')
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if @balance.nil?
|
|
127
|
+
invalid_properties.push('invalid value for "balance", balance cannot be nil.')
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if @action.nil?
|
|
131
|
+
invalid_properties.push('invalid value for "action", action cannot be nil.')
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
if @description.nil?
|
|
135
|
+
invalid_properties.push('invalid value for "description", description cannot be nil.')
|
|
136
|
+
end
|
|
137
|
+
|
|
108
138
|
invalid_properties
|
|
109
139
|
end
|
|
110
140
|
|
|
@@ -112,6 +142,11 @@ module Tremendous
|
|
|
112
142
|
# @return true if the model is valid
|
|
113
143
|
def valid?
|
|
114
144
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
145
|
+
return false if @created_at.nil?
|
|
146
|
+
return false if @amount.nil?
|
|
147
|
+
return false if @balance.nil?
|
|
148
|
+
return false if @action.nil?
|
|
149
|
+
return false if @description.nil?
|
|
115
150
|
true
|
|
116
151
|
end
|
|
117
152
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 2
|
|
7
7
|
Contact: developers@tremendous.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
|
|
9
|
+
Generator version: 7.8.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -17,10 +17,14 @@ module Tremendous
|
|
|
17
17
|
class ListFraudReviews200Response
|
|
18
18
|
attr_accessor :fraud_reviews
|
|
19
19
|
|
|
20
|
+
# The total number of fraud reviews
|
|
21
|
+
attr_accessor :total_count
|
|
22
|
+
|
|
20
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
24
|
def self.attribute_map
|
|
22
25
|
{
|
|
23
|
-
:'fraud_reviews' => :'fraud_reviews'
|
|
26
|
+
:'fraud_reviews' => :'fraud_reviews',
|
|
27
|
+
:'total_count' => :'total_count'
|
|
24
28
|
}
|
|
25
29
|
end
|
|
26
30
|
|
|
@@ -32,7 +36,8 @@ module Tremendous
|
|
|
32
36
|
# Attribute type mapping.
|
|
33
37
|
def self.openapi_types
|
|
34
38
|
{
|
|
35
|
-
:'fraud_reviews' => :'Array<ListFraudReviews200ResponseFraudReviewsInner>'
|
|
39
|
+
:'fraud_reviews' => :'Array<ListFraudReviews200ResponseFraudReviewsInner>',
|
|
40
|
+
:'total_count' => :'Integer'
|
|
36
41
|
}
|
|
37
42
|
end
|
|
38
43
|
|
|
@@ -64,6 +69,12 @@ module Tremendous
|
|
|
64
69
|
else
|
|
65
70
|
self.fraud_reviews = nil
|
|
66
71
|
end
|
|
72
|
+
|
|
73
|
+
if attributes.key?(:'total_count')
|
|
74
|
+
self.total_count = attributes[:'total_count']
|
|
75
|
+
else
|
|
76
|
+
self.total_count = nil
|
|
77
|
+
end
|
|
67
78
|
end
|
|
68
79
|
|
|
69
80
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -75,6 +86,10 @@ module Tremendous
|
|
|
75
86
|
invalid_properties.push('invalid value for "fraud_reviews", fraud_reviews cannot be nil.')
|
|
76
87
|
end
|
|
77
88
|
|
|
89
|
+
if @total_count.nil?
|
|
90
|
+
invalid_properties.push('invalid value for "total_count", total_count cannot be nil.')
|
|
91
|
+
end
|
|
92
|
+
|
|
78
93
|
invalid_properties
|
|
79
94
|
end
|
|
80
95
|
|
|
@@ -83,6 +98,7 @@ module Tremendous
|
|
|
83
98
|
def valid?
|
|
84
99
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
85
100
|
return false if @fraud_reviews.nil?
|
|
101
|
+
return false if @total_count.nil?
|
|
86
102
|
true
|
|
87
103
|
end
|
|
88
104
|
|
|
@@ -91,7 +107,8 @@ module Tremendous
|
|
|
91
107
|
def ==(o)
|
|
92
108
|
return true if self.equal?(o)
|
|
93
109
|
self.class == o.class &&
|
|
94
|
-
fraud_reviews == o.fraud_reviews
|
|
110
|
+
fraud_reviews == o.fraud_reviews &&
|
|
111
|
+
total_count == o.total_count
|
|
95
112
|
end
|
|
96
113
|
|
|
97
114
|
# @see the `==` method
|
|
@@ -103,7 +120,7 @@ module Tremendous
|
|
|
103
120
|
# Calculates hash code according to all attributes.
|
|
104
121
|
# @return [Integer] Hash code
|
|
105
122
|
def hash
|
|
106
|
-
[fraud_reviews].hash
|
|
123
|
+
[fraud_reviews, total_count].hash
|
|
107
124
|
end
|
|
108
125
|
|
|
109
126
|
# Builds the object from hash
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 2
|
|
7
7
|
Contact: developers@tremendous.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
|
|
9
|
+
Generator version: 7.8.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -61,7 +61,7 @@ module Tremendous
|
|
|
61
61
|
def self.openapi_types
|
|
62
62
|
{
|
|
63
63
|
:'rule_type' => :'String',
|
|
64
|
-
:'config' => :'Object'
|
|
64
|
+
:'config' => :'Hash<String, Object>'
|
|
65
65
|
}
|
|
66
66
|
end
|
|
67
67
|
|
|
@@ -92,7 +92,9 @@ module Tremendous
|
|
|
92
92
|
end
|
|
93
93
|
|
|
94
94
|
if attributes.key?(:'config')
|
|
95
|
-
|
|
95
|
+
if (value = attributes[:'config']).is_a?(Hash)
|
|
96
|
+
self.config = value
|
|
97
|
+
end
|
|
96
98
|
end
|
|
97
99
|
end
|
|
98
100
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 2
|
|
7
7
|
Contact: developers@tremendous.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
|
|
9
|
+
Generator version: 7.8.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -25,6 +25,8 @@ module Tremendous
|
|
|
25
25
|
# Amount of the invoice in USD
|
|
26
26
|
attr_accessor :amount
|
|
27
27
|
|
|
28
|
+
attr_accessor :international
|
|
29
|
+
|
|
28
30
|
# Status of this invoice <table> <thead> <tr> <th>Status</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>DELETED</code></td> <td>Invoice has been deleted by your organization</td> </tr> <tr> <td><code>PAID</code></td> <td>Invoice has been paid by your organization</td> </tr> <tr> <td><code>OPEN</code></td> <td>Invoice has been created by your organization but has not been paid, yet</td> </tr> </tbody> </table>
|
|
29
31
|
attr_accessor :status
|
|
30
32
|
|
|
@@ -68,6 +70,7 @@ module Tremendous
|
|
|
68
70
|
:'id' => :'id',
|
|
69
71
|
:'po_number' => :'po_number',
|
|
70
72
|
:'amount' => :'amount',
|
|
73
|
+
:'international' => :'international',
|
|
71
74
|
:'status' => :'status',
|
|
72
75
|
:'orders' => :'orders',
|
|
73
76
|
:'rewards' => :'rewards',
|
|
@@ -87,6 +90,7 @@ module Tremendous
|
|
|
87
90
|
:'id' => :'String',
|
|
88
91
|
:'po_number' => :'String',
|
|
89
92
|
:'amount' => :'Float',
|
|
93
|
+
:'international' => :'Boolean',
|
|
90
94
|
:'status' => :'String',
|
|
91
95
|
:'orders' => :'Array<String>',
|
|
92
96
|
:'rewards' => :'Array<String>',
|
|
@@ -134,6 +138,10 @@ module Tremendous
|
|
|
134
138
|
self.amount = nil
|
|
135
139
|
end
|
|
136
140
|
|
|
141
|
+
if attributes.key?(:'international')
|
|
142
|
+
self.international = attributes[:'international']
|
|
143
|
+
end
|
|
144
|
+
|
|
137
145
|
if attributes.key?(:'status')
|
|
138
146
|
self.status = attributes[:'status']
|
|
139
147
|
else
|
|
@@ -220,6 +228,7 @@ module Tremendous
|
|
|
220
228
|
id == o.id &&
|
|
221
229
|
po_number == o.po_number &&
|
|
222
230
|
amount == o.amount &&
|
|
231
|
+
international == o.international &&
|
|
223
232
|
status == o.status &&
|
|
224
233
|
orders == o.orders &&
|
|
225
234
|
rewards == o.rewards &&
|
|
@@ -236,7 +245,7 @@ module Tremendous
|
|
|
236
245
|
# Calculates hash code according to all attributes.
|
|
237
246
|
# @return [Integer] Hash code
|
|
238
247
|
def hash
|
|
239
|
-
[id, po_number, amount, status, orders, rewards, created_at, paid_at].hash
|
|
248
|
+
[id, po_number, amount, international, status, orders, rewards, created_at, paid_at].hash
|
|
240
249
|
end
|
|
241
250
|
|
|
242
251
|
# Builds the object from hash
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 2
|
|
7
7
|
Contact: developers@tremendous.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
|
|
9
|
+
Generator version: 7.8.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -31,12 +31,15 @@ module Tremendous
|
|
|
31
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> CART </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
|
+
# Name of the channel in which the order was created
|
|
35
|
+
attr_accessor :channel
|
|
36
|
+
|
|
34
37
|
attr_accessor :payment
|
|
35
38
|
|
|
36
39
|
# The ID for the invoice associated with this order
|
|
37
40
|
attr_accessor :invoice_id
|
|
38
41
|
|
|
39
|
-
attr_accessor :
|
|
42
|
+
attr_accessor :rewards
|
|
40
43
|
|
|
41
44
|
class EnumAttributeValidator
|
|
42
45
|
attr_reader :datatype
|
|
@@ -68,9 +71,10 @@ module Tremendous
|
|
|
68
71
|
:'campaign_id' => :'campaign_id',
|
|
69
72
|
:'created_at' => :'created_at',
|
|
70
73
|
:'status' => :'status',
|
|
74
|
+
:'channel' => :'channel',
|
|
71
75
|
:'payment' => :'payment',
|
|
72
76
|
:'invoice_id' => :'invoice_id',
|
|
73
|
-
:'
|
|
77
|
+
:'rewards' => :'rewards'
|
|
74
78
|
}
|
|
75
79
|
end
|
|
76
80
|
|
|
@@ -87,9 +91,10 @@ module Tremendous
|
|
|
87
91
|
:'campaign_id' => :'String',
|
|
88
92
|
:'created_at' => :'Time',
|
|
89
93
|
:'status' => :'String',
|
|
94
|
+
:'channel' => :'String',
|
|
90
95
|
:'payment' => :'ListOrders200ResponseOrdersInnerPayment',
|
|
91
96
|
:'invoice_id' => :'String',
|
|
92
|
-
:'
|
|
97
|
+
:'rewards' => :'Array<ListRewards200ResponseRewardsInner>'
|
|
93
98
|
}
|
|
94
99
|
end
|
|
95
100
|
|
|
@@ -142,6 +147,10 @@ module Tremendous
|
|
|
142
147
|
self.status = nil
|
|
143
148
|
end
|
|
144
149
|
|
|
150
|
+
if attributes.key?(:'channel')
|
|
151
|
+
self.channel = attributes[:'channel']
|
|
152
|
+
end
|
|
153
|
+
|
|
145
154
|
if attributes.key?(:'payment')
|
|
146
155
|
self.payment = attributes[:'payment']
|
|
147
156
|
end
|
|
@@ -150,8 +159,10 @@ module Tremendous
|
|
|
150
159
|
self.invoice_id = attributes[:'invoice_id']
|
|
151
160
|
end
|
|
152
161
|
|
|
153
|
-
if attributes.key?(:'
|
|
154
|
-
|
|
162
|
+
if attributes.key?(:'rewards')
|
|
163
|
+
if (value = attributes[:'rewards']).is_a?(Array)
|
|
164
|
+
self.rewards = value
|
|
165
|
+
end
|
|
155
166
|
end
|
|
156
167
|
end
|
|
157
168
|
|
|
@@ -196,6 +207,8 @@ module Tremendous
|
|
|
196
207
|
return false if @status.nil?
|
|
197
208
|
status_validator = EnumAttributeValidator.new('String', ["CANCELED", "CART", "EXECUTED", "FAILED", "PENDING APPROVAL", "PENDING INTERNAL PAYMENT APPROVAL"])
|
|
198
209
|
return false unless status_validator.valid?(@status)
|
|
210
|
+
channel_validator = EnumAttributeValidator.new('String', ["UI", "API", "EMBED", "DECIPHER", "QUALTRICS", "TYPEFORM", "SURVEY MONKEY"])
|
|
211
|
+
return false unless channel_validator.valid?(@channel)
|
|
199
212
|
true
|
|
200
213
|
end
|
|
201
214
|
|
|
@@ -235,6 +248,16 @@ module Tremendous
|
|
|
235
248
|
@status = status
|
|
236
249
|
end
|
|
237
250
|
|
|
251
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
252
|
+
# @param [Object] channel Object to be assigned
|
|
253
|
+
def channel=(channel)
|
|
254
|
+
validator = EnumAttributeValidator.new('String', ["UI", "API", "EMBED", "DECIPHER", "QUALTRICS", "TYPEFORM", "SURVEY MONKEY"])
|
|
255
|
+
unless validator.valid?(channel)
|
|
256
|
+
fail ArgumentError, "invalid value for \"channel\", must be one of #{validator.allowable_values}."
|
|
257
|
+
end
|
|
258
|
+
@channel = channel
|
|
259
|
+
end
|
|
260
|
+
|
|
238
261
|
# Checks equality by comparing each attribute.
|
|
239
262
|
# @param [Object] Object to be compared
|
|
240
263
|
def ==(o)
|
|
@@ -245,9 +268,10 @@ module Tremendous
|
|
|
245
268
|
campaign_id == o.campaign_id &&
|
|
246
269
|
created_at == o.created_at &&
|
|
247
270
|
status == o.status &&
|
|
271
|
+
channel == o.channel &&
|
|
248
272
|
payment == o.payment &&
|
|
249
273
|
invoice_id == o.invoice_id &&
|
|
250
|
-
|
|
274
|
+
rewards == o.rewards
|
|
251
275
|
end
|
|
252
276
|
|
|
253
277
|
# @see the `==` method
|
|
@@ -259,7 +283,7 @@ module Tremendous
|
|
|
259
283
|
# Calculates hash code according to all attributes.
|
|
260
284
|
# @return [Integer] Hash code
|
|
261
285
|
def hash
|
|
262
|
-
[id, external_id, campaign_id, created_at, status, payment, invoice_id,
|
|
286
|
+
[id, external_id, campaign_id, created_at, status, channel, payment, invoice_id, rewards].hash
|
|
263
287
|
end
|
|
264
288
|
|
|
265
289
|
# Builds the object from hash
|