tremendous_ruby 5.9.0 → 5.11.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 +530 -58
- 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 +20 -4
- data/lib/tremendous/models/allow_email1.rb +20 -4
- data/lib/tremendous/models/allow_ip.rb +20 -4
- data/lib/tremendous/models/allow_ip1.rb +20 -4
- data/lib/tremendous/models/balance_transaction.rb +60 -4
- data/lib/tremendous/models/balance_transaction_order.rb +10 -4
- data/lib/tremendous/models/balance_transaction_order_payment.rb +10 -4
- data/lib/tremendous/models/base_order_for_create.rb +20 -4
- data/lib/tremendous/models/campaign.rb +30 -4
- data/lib/tremendous/models/campaign_base.rb +10 -4
- data/lib/tremendous/models/channel.rb +3 -2
- data/lib/tremendous/models/connected_organization.rb +313 -0
- data/lib/tremendous/models/connected_organization_member.rb +346 -0
- data/lib/tremendous/models/connected_organization_member_member.rb +382 -0
- data/lib/tremendous/models/connected_organization_member_session.rb +357 -0
- data/lib/tremendous/models/connected_organization_organization.rb +350 -0
- data/lib/tremendous/models/create_api_key200_response.rb +10 -4
- data/lib/tremendous/models/create_campaign200_response.rb +237 -0
- data/lib/tremendous/models/create_campaign_request.rb +30 -4
- data/lib/tremendous/models/create_connected_organization200_response.rb +237 -0
- data/lib/tremendous/models/create_connected_organization_member200_response.rb +237 -0
- data/lib/tremendous/models/create_connected_organization_member_request.rb +238 -0
- data/lib/tremendous/models/create_connected_organization_member_session200_response.rb +237 -0
- data/lib/tremendous/models/create_connected_organization_member_session200_response_connected_organization_member_session.rb +357 -0
- data/lib/tremendous/models/create_connected_organization_member_session_request.rb +238 -0
- data/lib/tremendous/models/create_connected_organization_request.rb +238 -0
- data/lib/tremendous/models/create_invoice200_response.rb +20 -4
- data/lib/tremendous/models/create_invoice_request.rb +20 -4
- data/lib/tremendous/models/create_member.rb +30 -4
- data/lib/tremendous/models/create_member200_response.rb +20 -4
- data/lib/tremendous/models/create_member_request.rb +30 -4
- data/lib/tremendous/models/create_order200_response.rb +20 -4
- data/lib/tremendous/models/create_order200_response_order.rb +22 -6
- data/lib/tremendous/models/create_order200_response_order_rewards_inner.rb +10 -4
- data/lib/tremendous/models/create_order200_response_order_rewards_inner_delivery.rb +11 -5
- data/lib/tremendous/models/create_order_request.rb +1 -1
- data/lib/tremendous/models/create_organization.rb +40 -4
- data/lib/tremendous/models/create_organization200_response.rb +10 -4
- data/lib/tremendous/models/create_organization200_response_organization.rb +30 -4
- data/lib/tremendous/models/create_organization_for_response.rb +30 -4
- data/lib/tremendous/models/create_organization_properties.rb +10 -4
- data/lib/tremendous/models/create_organization_request.rb +40 -4
- data/lib/tremendous/models/create_organization_request_copy_settings.rb +26 -8
- data/lib/tremendous/models/create_report200_response.rb +247 -0
- data/lib/tremendous/models/create_report200_response_report.rb +297 -0
- data/lib/tremendous/models/create_report_request.rb +10 -4
- data/lib/tremendous/models/create_report_request_filters.rb +10 -4
- data/lib/tremendous/models/create_report_request_filters_digital_rewards.rb +10 -4
- data/lib/tremendous/models/create_report_request_filters_digital_rewards_amount.rb +10 -4
- data/lib/tremendous/models/create_report_request_filters_digital_rewards_created_at.rb +10 -4
- data/lib/tremendous/models/create_webhook200_response.rb +10 -4
- data/lib/tremendous/models/create_webhook_request.rb +20 -4
- data/lib/tremendous/models/currency_codes.rb +1 -1
- data/lib/tremendous/models/custom_field.rb +10 -4
- data/lib/tremendous/models/delete_fraud_rule200_response.rb +20 -4
- data/lib/tremendous/models/delivery_details.rb +11 -5
- data/lib/tremendous/models/delivery_details_with_link.rb +11 -5
- data/lib/tremendous/models/delivery_metadata.rb +10 -4
- 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 +20 -4
- data/lib/tremendous/models/field.rb +10 -4
- data/lib/tremendous/models/fraud_config_allow_email.rb +20 -4
- data/lib/tremendous/models/fraud_config_country.rb +20 -4
- data/lib/tremendous/models/fraud_config_country_update_list.rb +20 -4
- data/lib/tremendous/models/fraud_config_ip.rb +20 -4
- data/lib/tremendous/models/fraud_config_redeemed_rewards_amount.rb +10 -4
- data/lib/tremendous/models/fraud_config_redeemed_rewards_count.rb +10 -4
- data/lib/tremendous/models/fraud_config_review_email.rb +10 -4
- data/lib/tremendous/models/fraud_generic_response.rb +20 -4
- data/lib/tremendous/models/fraud_review.rb +10 -4
- data/lib/tremendous/models/fraud_review_geo.rb +10 -4
- data/lib/tremendous/models/fraud_review_list_item.rb +10 -4
- 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 +10 -4
- data/lib/tremendous/models/fraud_review_risk.rb +1 -1
- data/lib/tremendous/models/fraud_review_status.rb +1 -1
- data/lib/tremendous/models/fraud_rule200_response.rb +20 -4
- data/lib/tremendous/models/fraud_rule400_response.rb +20 -4
- data/lib/tremendous/models/fraud_rule422_response.rb +20 -4
- data/lib/tremendous/models/fraud_rule_request.rb +10 -4
- 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 +10 -4
- data/lib/tremendous/models/funding_source.rb +55 -5
- data/lib/tremendous/models/generate_reward_link200_response.rb +20 -4
- data/lib/tremendous/models/generate_reward_link200_response_reward.rb +10 -4
- data/lib/tremendous/models/generate_reward_link403_response.rb +20 -4
- data/lib/tremendous/models/get_fraud_review200_response.rb +20 -4
- data/lib/tremendous/models/get_fraud_review200_response_fraud_review.rb +10 -4
- data/lib/tremendous/models/get_fraud_review200_response_fraud_review_geo.rb +10 -4
- data/lib/tremendous/models/get_fraud_review200_response_fraud_review_related_rewards.rb +10 -4
- data/lib/tremendous/models/get_funding_source200_response.rb +20 -4
- data/lib/tremendous/models/get_member200_response.rb +20 -4
- data/lib/tremendous/models/get_member200_response_member.rb +20 -4
- data/lib/tremendous/models/get_member200_response_member_events_inner.rb +10 -4
- data/lib/tremendous/models/get_order200_response.rb +20 -4
- data/lib/tremendous/models/get_organization200_response.rb +10 -4
- data/lib/tremendous/models/get_product_response.rb +20 -4
- data/lib/tremendous/models/get_reward200_response.rb +20 -4
- data/lib/tremendous/models/inline_object.rb +231 -0
- data/lib/tremendous/models/inline_object1.rb +237 -0
- data/lib/tremendous/models/inline_object1_reward.rb +263 -0
- data/lib/tremendous/models/invoice.rb +40 -4
- data/lib/tremendous/models/list_balance_transactions200_response.rb +20 -4
- data/lib/tremendous/models/list_balance_transactions200_response_transactions_inner.rb +60 -4
- data/lib/tremendous/models/list_balance_transactions200_response_transactions_inner_order.rb +10 -4
- data/lib/tremendous/models/list_balance_transactions200_response_transactions_inner_order_payment.rb +10 -4
- data/lib/tremendous/models/list_campaigns200_response.rb +20 -4
- data/lib/tremendous/models/list_campaigns200_response_campaigns_inner.rb +30 -4
- data/lib/tremendous/models/list_campaigns200_response_campaigns_inner_email_style.rb +10 -4
- data/lib/tremendous/models/list_campaigns200_response_campaigns_inner_webpage_style.rb +10 -4
- data/lib/tremendous/models/list_connected_organization_members200_response.rb +266 -0
- data/lib/tremendous/models/list_connected_organization_members200_response_connected_organization_members_inner.rb +346 -0
- data/lib/tremendous/models/list_connected_organization_members200_response_connected_organization_members_inner_member.rb +382 -0
- data/lib/tremendous/models/list_connected_organizations200_response.rb +266 -0
- data/lib/tremendous/models/list_connected_organizations200_response_connected_organizations_inner.rb +313 -0
- data/lib/tremendous/models/list_connected_organizations200_response_connected_organizations_inner_organization.rb +350 -0
- data/lib/tremendous/models/list_fields200_response.rb +10 -4
- data/lib/tremendous/models/list_fields200_response_fields_inner.rb +10 -4
- data/lib/tremendous/models/list_forex_response.rb +20 -4
- data/lib/tremendous/models/list_fraud_reviews200_response.rb +30 -4
- data/lib/tremendous/models/list_fraud_reviews200_response_fraud_reviews_inner.rb +10 -4
- data/lib/tremendous/models/list_fraud_rules200_response.rb +20 -4
- data/lib/tremendous/models/list_fraud_rules200_response_fraud_rules_inner.rb +10 -4
- data/lib/tremendous/models/list_funding_sources200_response.rb +20 -4
- data/lib/tremendous/models/list_funding_sources200_response_funding_sources_inner.rb +55 -5
- data/lib/tremendous/models/list_funding_sources200_response_funding_sources_inner_meta.rb +144 -6
- data/lib/tremendous/models/list_funding_sources200_response_funding_sources_inner_meta_failure_details.rb +10 -4
- data/lib/tremendous/models/list_invoices200_response.rb +30 -4
- data/lib/tremendous/models/list_invoices200_response_invoices_inner.rb +40 -4
- data/lib/tremendous/models/list_members200_response.rb +20 -4
- data/lib/tremendous/models/list_members200_response_members_inner.rb +20 -4
- data/lib/tremendous/models/list_orders200_response.rb +30 -4
- data/lib/tremendous/models/list_orders200_response_orders_inner.rb +22 -6
- data/lib/tremendous/models/list_orders200_response_orders_inner_payment.rb +10 -4
- data/lib/tremendous/models/list_orders200_response_orders_inner_payment_refund.rb +10 -4
- data/lib/tremendous/models/list_organizations200_response.rb +10 -4
- data/lib/tremendous/models/list_organizations200_response_organizations_inner.rb +30 -4
- data/lib/tremendous/models/list_products_response.rb +20 -4
- data/lib/tremendous/models/list_products_response_products_inner.rb +67 -11
- data/lib/tremendous/models/list_products_response_products_inner_countries_inner.rb +20 -4
- data/lib/tremendous/models/list_products_response_products_inner_documents.rb +242 -0
- data/lib/tremendous/models/list_products_response_products_inner_images_inner.rb +35 -8
- data/lib/tremendous/models/list_products_response_products_inner_skus_inner.rb +10 -4
- data/lib/tremendous/models/list_rewards200_response.rb +10 -4
- data/lib/tremendous/models/list_rewards200_response_rewards_inner.rb +10 -4
- data/lib/tremendous/models/list_rewards200_response_rewards_inner_custom_fields_inner.rb +10 -4
- data/lib/tremendous/models/list_rewards200_response_rewards_inner_delivery.rb +11 -5
- data/lib/tremendous/models/list_rewards200_response_rewards_inner_recipient.rb +10 -4
- data/lib/tremendous/models/list_rewards200_response_rewards_inner_value.rb +20 -4
- data/lib/tremendous/models/list_rewards401_response.rb +20 -4
- data/lib/tremendous/models/list_rewards401_response_errors.rb +10 -4
- data/lib/tremendous/models/list_rewards429_response.rb +20 -4
- data/lib/tremendous/models/list_roles200_response.rb +20 -4
- data/lib/tremendous/models/list_roles200_response_roles_inner.rb +30 -4
- data/lib/tremendous/models/list_webhook_events200_response.rb +10 -4
- data/lib/tremendous/models/list_webhooks200_response.rb +10 -4
- data/lib/tremendous/models/list_webhooks200_response_webhooks_inner.rb +10 -4
- data/lib/tremendous/models/member.rb +20 -4
- data/lib/tremendous/models/member_base.rb +20 -4
- data/lib/tremendous/models/member_with_events.rb +20 -4
- data/lib/tremendous/models/member_without_events.rb +20 -4
- data/lib/tremendous/models/order.rb +22 -6
- data/lib/tremendous/models/order_base.rb +22 -6
- data/lib/tremendous/models/order_base_payment.rb +10 -4
- data/lib/tremendous/models/order_status.rb +1 -1
- data/lib/tremendous/models/order_with_link.rb +22 -6
- data/lib/tremendous/models/order_with_link_rewards_inner.rb +10 -4
- data/lib/tremendous/models/order_without_link.rb +22 -6
- data/lib/tremendous/models/order_without_link_rewards_inner.rb +10 -4
- data/lib/tremendous/models/organization.rb +30 -4
- data/lib/tremendous/models/payment_details.rb +10 -4
- data/lib/tremendous/models/payment_details_refund.rb +10 -4
- data/lib/tremendous/models/payout.rb +10 -4
- data/lib/tremendous/models/product.rb +67 -11
- data/lib/tremendous/models/product_documents.rb +242 -0
- data/lib/tremendous/models/recipient.rb +10 -4
- data/lib/tremendous/models/refund_details.rb +10 -4
- data/lib/tremendous/models/report.rb +10 -4
- data/lib/tremendous/models/resend_reward422_response.rb +20 -4
- data/lib/tremendous/models/resend_reward_request.rb +10 -4
- data/lib/tremendous/models/review_country.rb +20 -4
- data/lib/tremendous/models/review_country1.rb +20 -4
- data/lib/tremendous/models/review_email.rb +10 -4
- data/lib/tremendous/models/review_email1.rb +10 -4
- data/lib/tremendous/models/review_ip.rb +20 -4
- data/lib/tremendous/models/review_ip1.rb +20 -4
- data/lib/tremendous/models/review_redeemed_rewards_amount.rb +10 -4
- data/lib/tremendous/models/review_redeemed_rewards_count.rb +10 -4
- data/lib/tremendous/models/reward.rb +10 -4
- data/lib/tremendous/models/reward_base.rb +10 -4
- data/lib/tremendous/models/reward_base_custom_fields_inner.rb +10 -4
- data/lib/tremendous/models/reward_for_order_create.rb +10 -4
- data/lib/tremendous/models/reward_link.rb +10 -4
- data/lib/tremendous/models/reward_token.rb +10 -4
- data/lib/tremendous/models/reward_value.rb +20 -4
- data/lib/tremendous/models/reward_with_link.rb +10 -4
- data/lib/tremendous/models/reward_with_link_delivery.rb +11 -5
- data/lib/tremendous/models/reward_without_link.rb +10 -4
- data/lib/tremendous/models/reward_without_link_delivery.rb +11 -5
- data/lib/tremendous/models/role.rb +30 -4
- data/lib/tremendous/models/simulate_webhook_request.rb +20 -4
- data/lib/tremendous/models/single_reward_order.rb +20 -4
- data/lib/tremendous/models/single_reward_order_payment.rb +20 -4
- data/lib/tremendous/models/single_reward_order_reward.rb +10 -4
- data/lib/tremendous/models/single_reward_order_reward_custom_fields_inner.rb +10 -4
- data/lib/tremendous/models/single_reward_order_reward_delivery.rb +10 -4
- data/lib/tremendous/models/single_reward_order_reward_delivery_meta.rb +10 -4
- data/lib/tremendous/models/single_reward_order_with_link.rb +20 -4
- data/lib/tremendous/models/single_reward_order_with_link_order.rb +22 -6
- data/lib/tremendous/models/single_reward_order_without_link.rb +20 -4
- data/lib/tremendous/models/single_reward_order_without_link_order.rb +22 -6
- data/lib/tremendous/models/update_campaign.rb +10 -4
- data/lib/tremendous/models/update_campaign_request.rb +10 -4
- data/lib/tremendous/models/update_fraud_rule_list200_response.rb +20 -4
- data/lib/tremendous/models/update_fraud_rule_list_request.rb +20 -4
- data/lib/tremendous/models/update_fraud_rule_list_request_config.rb +1 -1
- data/lib/tremendous/models/webhook.rb +10 -4
- data/lib/tremendous/models/webhook_post.rb +20 -4
- data/lib/tremendous/version.rb +1 -1
- data/lib/tremendous.rb +27 -6
- metadata +29 -7
data/lib/tremendous/api_error.rb
CHANGED
@@ -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
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -26,9 +26,14 @@ module Tremendous
|
|
26
26
|
}
|
27
27
|
end
|
28
28
|
|
29
|
+
# Returns attribute mapping this model knows about
|
30
|
+
def self.acceptable_attribute_map
|
31
|
+
attribute_map
|
32
|
+
end
|
33
|
+
|
29
34
|
# Returns all the JSON keys this model knows about
|
30
35
|
def self.acceptable_attributes
|
31
|
-
|
36
|
+
acceptable_attribute_map.values
|
32
37
|
end
|
33
38
|
|
34
39
|
# Attribute type mapping.
|
@@ -52,9 +57,10 @@ module Tremendous
|
|
52
57
|
end
|
53
58
|
|
54
59
|
# check to see if the attribute exists and convert string to symbol for hash key
|
60
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
55
61
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
56
|
-
if (!
|
57
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::AllowEmail`. Please check the name to make sure it's valid. List of attributes: " +
|
62
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::AllowEmail`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
58
64
|
end
|
59
65
|
h[k.to_sym] = v
|
60
66
|
}
|
@@ -88,6 +94,16 @@ module Tremendous
|
|
88
94
|
true
|
89
95
|
end
|
90
96
|
|
97
|
+
# Custom attribute writer method with validation
|
98
|
+
# @param [Object] emails Value to be assigned
|
99
|
+
def emails=(emails)
|
100
|
+
if emails.nil?
|
101
|
+
fail ArgumentError, 'emails cannot be nil'
|
102
|
+
end
|
103
|
+
|
104
|
+
@emails = emails
|
105
|
+
end
|
106
|
+
|
91
107
|
# Checks equality by comparing each attribute.
|
92
108
|
# @param [Object] Object to be compared
|
93
109
|
def ==(o)
|
@@ -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
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -26,9 +26,14 @@ module Tremendous
|
|
26
26
|
}
|
27
27
|
end
|
28
28
|
|
29
|
+
# Returns attribute mapping this model knows about
|
30
|
+
def self.acceptable_attribute_map
|
31
|
+
attribute_map
|
32
|
+
end
|
33
|
+
|
29
34
|
# Returns all the JSON keys this model knows about
|
30
35
|
def self.acceptable_attributes
|
31
|
-
|
36
|
+
acceptable_attribute_map.values
|
32
37
|
end
|
33
38
|
|
34
39
|
# Attribute type mapping.
|
@@ -52,9 +57,10 @@ module Tremendous
|
|
52
57
|
end
|
53
58
|
|
54
59
|
# check to see if the attribute exists and convert string to symbol for hash key
|
60
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
55
61
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
56
|
-
if (!
|
57
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::AllowEmail1`. Please check the name to make sure it's valid. List of attributes: " +
|
62
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::AllowEmail1`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
58
64
|
end
|
59
65
|
h[k.to_sym] = v
|
60
66
|
}
|
@@ -88,6 +94,16 @@ module Tremendous
|
|
88
94
|
true
|
89
95
|
end
|
90
96
|
|
97
|
+
# Custom attribute writer method with validation
|
98
|
+
# @param [Object] emails Value to be assigned
|
99
|
+
def emails=(emails)
|
100
|
+
if emails.nil?
|
101
|
+
fail ArgumentError, 'emails cannot be nil'
|
102
|
+
end
|
103
|
+
|
104
|
+
@emails = emails
|
105
|
+
end
|
106
|
+
|
91
107
|
# Checks equality by comparing each attribute.
|
92
108
|
# @param [Object] Object to be compared
|
93
109
|
def ==(o)
|
@@ -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
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -26,9 +26,14 @@ module Tremendous
|
|
26
26
|
}
|
27
27
|
end
|
28
28
|
|
29
|
+
# Returns attribute mapping this model knows about
|
30
|
+
def self.acceptable_attribute_map
|
31
|
+
attribute_map
|
32
|
+
end
|
33
|
+
|
29
34
|
# Returns all the JSON keys this model knows about
|
30
35
|
def self.acceptable_attributes
|
31
|
-
|
36
|
+
acceptable_attribute_map.values
|
32
37
|
end
|
33
38
|
|
34
39
|
# Attribute type mapping.
|
@@ -52,9 +57,10 @@ module Tremendous
|
|
52
57
|
end
|
53
58
|
|
54
59
|
# check to see if the attribute exists and convert string to symbol for hash key
|
60
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
55
61
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
56
|
-
if (!
|
57
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::AllowIp`. Please check the name to make sure it's valid. List of attributes: " +
|
62
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::AllowIp`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
58
64
|
end
|
59
65
|
h[k.to_sym] = v
|
60
66
|
}
|
@@ -88,6 +94,16 @@ module Tremendous
|
|
88
94
|
true
|
89
95
|
end
|
90
96
|
|
97
|
+
# Custom attribute writer method with validation
|
98
|
+
# @param [Object] ips Value to be assigned
|
99
|
+
def ips=(ips)
|
100
|
+
if ips.nil?
|
101
|
+
fail ArgumentError, 'ips cannot be nil'
|
102
|
+
end
|
103
|
+
|
104
|
+
@ips = ips
|
105
|
+
end
|
106
|
+
|
91
107
|
# Checks equality by comparing each attribute.
|
92
108
|
# @param [Object] Object to be compared
|
93
109
|
def ==(o)
|
@@ -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
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -26,9 +26,14 @@ module Tremendous
|
|
26
26
|
}
|
27
27
|
end
|
28
28
|
|
29
|
+
# Returns attribute mapping this model knows about
|
30
|
+
def self.acceptable_attribute_map
|
31
|
+
attribute_map
|
32
|
+
end
|
33
|
+
|
29
34
|
# Returns all the JSON keys this model knows about
|
30
35
|
def self.acceptable_attributes
|
31
|
-
|
36
|
+
acceptable_attribute_map.values
|
32
37
|
end
|
33
38
|
|
34
39
|
# Attribute type mapping.
|
@@ -52,9 +57,10 @@ module Tremendous
|
|
52
57
|
end
|
53
58
|
|
54
59
|
# check to see if the attribute exists and convert string to symbol for hash key
|
60
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
55
61
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
56
|
-
if (!
|
57
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::AllowIp1`. Please check the name to make sure it's valid. List of attributes: " +
|
62
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::AllowIp1`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
58
64
|
end
|
59
65
|
h[k.to_sym] = v
|
60
66
|
}
|
@@ -88,6 +94,16 @@ module Tremendous
|
|
88
94
|
true
|
89
95
|
end
|
90
96
|
|
97
|
+
# Custom attribute writer method with validation
|
98
|
+
# @param [Object] ips Value to be assigned
|
99
|
+
def ips=(ips)
|
100
|
+
if ips.nil?
|
101
|
+
fail ArgumentError, 'ips cannot be nil'
|
102
|
+
end
|
103
|
+
|
104
|
+
@ips = ips
|
105
|
+
end
|
106
|
+
|
91
107
|
# Checks equality by comparing each attribute.
|
92
108
|
# @param [Object] Object to be compared
|
93
109
|
def ==(o)
|
@@ -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
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -45,9 +45,14 @@ module Tremendous
|
|
45
45
|
}
|
46
46
|
end
|
47
47
|
|
48
|
+
# Returns attribute mapping this model knows about
|
49
|
+
def self.acceptable_attribute_map
|
50
|
+
attribute_map
|
51
|
+
end
|
52
|
+
|
48
53
|
# Returns all the JSON keys this model knows about
|
49
54
|
def self.acceptable_attributes
|
50
|
-
|
55
|
+
acceptable_attribute_map.values
|
51
56
|
end
|
52
57
|
|
53
58
|
# Attribute type mapping.
|
@@ -76,9 +81,10 @@ module Tremendous
|
|
76
81
|
end
|
77
82
|
|
78
83
|
# check to see if the attribute exists and convert string to symbol for hash key
|
84
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
79
85
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
80
|
-
if (!
|
81
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::BalanceTransaction`. Please check the name to make sure it's valid. List of attributes: " +
|
86
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
87
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::BalanceTransaction`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
82
88
|
end
|
83
89
|
h[k.to_sym] = v
|
84
90
|
}
|
@@ -158,6 +164,56 @@ module Tremendous
|
|
158
164
|
true
|
159
165
|
end
|
160
166
|
|
167
|
+
# Custom attribute writer method with validation
|
168
|
+
# @param [Object] created_at Value to be assigned
|
169
|
+
def created_at=(created_at)
|
170
|
+
if created_at.nil?
|
171
|
+
fail ArgumentError, 'created_at cannot be nil'
|
172
|
+
end
|
173
|
+
|
174
|
+
@created_at = created_at
|
175
|
+
end
|
176
|
+
|
177
|
+
# Custom attribute writer method with validation
|
178
|
+
# @param [Object] amount Value to be assigned
|
179
|
+
def amount=(amount)
|
180
|
+
if amount.nil?
|
181
|
+
fail ArgumentError, 'amount cannot be nil'
|
182
|
+
end
|
183
|
+
|
184
|
+
@amount = amount
|
185
|
+
end
|
186
|
+
|
187
|
+
# Custom attribute writer method with validation
|
188
|
+
# @param [Object] balance Value to be assigned
|
189
|
+
def balance=(balance)
|
190
|
+
if balance.nil?
|
191
|
+
fail ArgumentError, 'balance cannot be nil'
|
192
|
+
end
|
193
|
+
|
194
|
+
@balance = balance
|
195
|
+
end
|
196
|
+
|
197
|
+
# Custom attribute writer method with validation
|
198
|
+
# @param [Object] action Value to be assigned
|
199
|
+
def action=(action)
|
200
|
+
if action.nil?
|
201
|
+
fail ArgumentError, 'action cannot be nil'
|
202
|
+
end
|
203
|
+
|
204
|
+
@action = action
|
205
|
+
end
|
206
|
+
|
207
|
+
# Custom attribute writer method with validation
|
208
|
+
# @param [Object] description Value to be assigned
|
209
|
+
def description=(description)
|
210
|
+
if description.nil?
|
211
|
+
fail ArgumentError, 'description cannot be nil'
|
212
|
+
end
|
213
|
+
|
214
|
+
@description = description
|
215
|
+
end
|
216
|
+
|
161
217
|
# Checks equality by comparing each attribute.
|
162
218
|
# @param [Object] Object to be compared
|
163
219
|
def ==(o)
|
@@ -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
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -32,9 +32,14 @@ module Tremendous
|
|
32
32
|
}
|
33
33
|
end
|
34
34
|
|
35
|
+
# Returns attribute mapping this model knows about
|
36
|
+
def self.acceptable_attribute_map
|
37
|
+
attribute_map
|
38
|
+
end
|
39
|
+
|
35
40
|
# Returns all the JSON keys this model knows about
|
36
41
|
def self.acceptable_attributes
|
37
|
-
|
42
|
+
acceptable_attribute_map.values
|
38
43
|
end
|
39
44
|
|
40
45
|
# Attribute type mapping.
|
@@ -61,9 +66,10 @@ module Tremendous
|
|
61
66
|
end
|
62
67
|
|
63
68
|
# check to see if the attribute exists and convert string to symbol for hash key
|
69
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
64
70
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
65
|
-
if (!
|
66
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::BalanceTransactionOrder`. Please check the name to make sure it's valid. List of attributes: " +
|
71
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
72
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::BalanceTransactionOrder`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
67
73
|
end
|
68
74
|
h[k.to_sym] = v
|
69
75
|
}
|
@@ -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
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -40,9 +40,14 @@ module Tremendous
|
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
43
|
+
# Returns attribute mapping this model knows about
|
44
|
+
def self.acceptable_attribute_map
|
45
|
+
attribute_map
|
46
|
+
end
|
47
|
+
|
43
48
|
# Returns all the JSON keys this model knows about
|
44
49
|
def self.acceptable_attributes
|
45
|
-
|
50
|
+
acceptable_attribute_map.values
|
46
51
|
end
|
47
52
|
|
48
53
|
# Attribute type mapping.
|
@@ -70,9 +75,10 @@ module Tremendous
|
|
70
75
|
end
|
71
76
|
|
72
77
|
# check to see if the attribute exists and convert string to symbol for hash key
|
78
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
73
79
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
74
|
-
if (!
|
75
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::BalanceTransactionOrderPayment`. Please check the name to make sure it's valid. List of attributes: " +
|
80
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
81
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::BalanceTransactionOrderPayment`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
76
82
|
end
|
77
83
|
h[k.to_sym] = v
|
78
84
|
}
|
@@ -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
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -28,9 +28,14 @@ module Tremendous
|
|
28
28
|
}
|
29
29
|
end
|
30
30
|
|
31
|
+
# Returns attribute mapping this model knows about
|
32
|
+
def self.acceptable_attribute_map
|
33
|
+
attribute_map
|
34
|
+
end
|
35
|
+
|
31
36
|
# Returns all the JSON keys this model knows about
|
32
37
|
def self.acceptable_attributes
|
33
|
-
|
38
|
+
acceptable_attribute_map.values
|
34
39
|
end
|
35
40
|
|
36
41
|
# Attribute type mapping.
|
@@ -56,9 +61,10 @@ module Tremendous
|
|
56
61
|
end
|
57
62
|
|
58
63
|
# check to see if the attribute exists and convert string to symbol for hash key
|
64
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
59
65
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
60
|
-
if (!
|
61
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::BaseOrderForCreate`. Please check the name to make sure it's valid. List of attributes: " +
|
66
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::BaseOrderForCreate`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
62
68
|
end
|
63
69
|
h[k.to_sym] = v
|
64
70
|
}
|
@@ -94,6 +100,16 @@ module Tremendous
|
|
94
100
|
true
|
95
101
|
end
|
96
102
|
|
103
|
+
# Custom attribute writer method with validation
|
104
|
+
# @param [Object] payment Value to be assigned
|
105
|
+
def payment=(payment)
|
106
|
+
if payment.nil?
|
107
|
+
fail ArgumentError, 'payment cannot be nil'
|
108
|
+
end
|
109
|
+
|
110
|
+
@payment = payment
|
111
|
+
end
|
112
|
+
|
97
113
|
# Checks equality by comparing each attribute.
|
98
114
|
# @param [Object] Object to be compared
|
99
115
|
def ==(o)
|
@@ -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
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -43,9 +43,14 @@ module Tremendous
|
|
43
43
|
}
|
44
44
|
end
|
45
45
|
|
46
|
+
# Returns attribute mapping this model knows about
|
47
|
+
def self.acceptable_attribute_map
|
48
|
+
attribute_map
|
49
|
+
end
|
50
|
+
|
46
51
|
# Returns all the JSON keys this model knows about
|
47
52
|
def self.acceptable_attributes
|
48
|
-
|
53
|
+
acceptable_attribute_map.values
|
49
54
|
end
|
50
55
|
|
51
56
|
# Attribute type mapping.
|
@@ -75,9 +80,10 @@ module Tremendous
|
|
75
80
|
end
|
76
81
|
|
77
82
|
# check to see if the attribute exists and convert string to symbol for hash key
|
83
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
78
84
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
79
|
-
if (!
|
80
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::Campaign`. Please check the name to make sure it's valid. List of attributes: " +
|
85
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
86
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::Campaign`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
81
87
|
end
|
82
88
|
h[k.to_sym] = v
|
83
89
|
}
|
@@ -161,6 +167,26 @@ module Tremendous
|
|
161
167
|
@id = id
|
162
168
|
end
|
163
169
|
|
170
|
+
# Custom attribute writer method with validation
|
171
|
+
# @param [Object] name Value to be assigned
|
172
|
+
def name=(name)
|
173
|
+
if name.nil?
|
174
|
+
fail ArgumentError, 'name cannot be nil'
|
175
|
+
end
|
176
|
+
|
177
|
+
@name = name
|
178
|
+
end
|
179
|
+
|
180
|
+
# Custom attribute writer method with validation
|
181
|
+
# @param [Object] products Value to be assigned
|
182
|
+
def products=(products)
|
183
|
+
if products.nil?
|
184
|
+
fail ArgumentError, 'products cannot be nil'
|
185
|
+
end
|
186
|
+
|
187
|
+
@products = products
|
188
|
+
end
|
189
|
+
|
164
190
|
# Checks equality by comparing each attribute.
|
165
191
|
# @param [Object] Object to be compared
|
166
192
|
def ==(o)
|
@@ -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
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -43,9 +43,14 @@ module Tremendous
|
|
43
43
|
}
|
44
44
|
end
|
45
45
|
|
46
|
+
# Returns attribute mapping this model knows about
|
47
|
+
def self.acceptable_attribute_map
|
48
|
+
attribute_map
|
49
|
+
end
|
50
|
+
|
46
51
|
# Returns all the JSON keys this model knows about
|
47
52
|
def self.acceptable_attributes
|
48
|
-
|
53
|
+
acceptable_attribute_map.values
|
49
54
|
end
|
50
55
|
|
51
56
|
# Attribute type mapping.
|
@@ -75,9 +80,10 @@ module Tremendous
|
|
75
80
|
end
|
76
81
|
|
77
82
|
# check to see if the attribute exists and convert string to symbol for hash key
|
83
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
78
84
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
79
|
-
if (!
|
80
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::CampaignBase`. Please check the name to make sure it's valid. List of attributes: " +
|
85
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
86
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::CampaignBase`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
81
87
|
end
|
82
88
|
h[k.to_sym] = v
|
83
89
|
}
|
@@ -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
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,9 +22,10 @@ module Tremendous
|
|
22
22
|
QUALTRICS = "QUALTRICS".freeze
|
23
23
|
TYPEFORM = "TYPEFORM".freeze
|
24
24
|
SURVEY_MONKEY = "SURVEY MONKEY".freeze
|
25
|
+
YOTPO = "YOTPO".freeze
|
25
26
|
|
26
27
|
def self.all_vars
|
27
|
-
@all_vars ||= [UI, API, EMBED, DECIPHER, QUALTRICS, TYPEFORM, SURVEY_MONKEY].freeze
|
28
|
+
@all_vars ||= [UI, API, EMBED, DECIPHER, QUALTRICS, TYPEFORM, SURVEY_MONKEY, YOTPO].freeze
|
28
29
|
end
|
29
30
|
|
30
31
|
# Builds the enum from string
|