tremendous_ruby 5.10.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 +8 -5
- 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 +30 -4
- data/lib/tremendous/models/connected_organization_member.rb +20 -4
- data/lib/tremendous/models/connected_organization_member_member.rb +20 -4
- data/lib/tremendous/models/connected_organization_member_session.rb +50 -4
- data/lib/tremendous/models/connected_organization_organization.rb +30 -4
- data/lib/tremendous/models/create_api_key200_response.rb +10 -4
- data/lib/tremendous/models/create_campaign200_response.rb +20 -4
- data/lib/tremendous/models/create_campaign_request.rb +30 -4
- data/lib/tremendous/models/create_connected_organization200_response.rb +20 -4
- data/lib/tremendous/models/create_connected_organization_member200_response.rb +20 -4
- data/lib/tremendous/models/create_connected_organization_member_request.rb +20 -4
- data/lib/tremendous/models/create_connected_organization_member_session200_response.rb +20 -4
- data/lib/tremendous/models/create_connected_organization_member_session200_response_connected_organization_member_session.rb +50 -4
- data/lib/tremendous/models/create_connected_organization_member_session_request.rb +20 -4
- data/lib/tremendous/models/create_connected_organization_request.rb +20 -4
- 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 +10 -4
- 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 +10 -4
- data/lib/tremendous/models/create_report200_response.rb +20 -4
- data/lib/tremendous/models/create_report200_response_report.rb +10 -4
- 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 +10 -4
- data/lib/tremendous/models/delivery_details_with_link.rb +10 -4
- 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 +22 -6
- 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 +30 -4
- data/lib/tremendous/models/list_connected_organization_members200_response_connected_organization_members_inner.rb +20 -4
- data/lib/tremendous/models/list_connected_organization_members200_response_connected_organization_members_inner_member.rb +20 -4
- data/lib/tremendous/models/list_connected_organizations200_response.rb +30 -4
- data/lib/tremendous/models/list_connected_organizations200_response_connected_organizations_inner.rb +30 -4
- data/lib/tremendous/models/list_connected_organizations200_response_connected_organizations_inner_organization.rb +30 -4
- 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 +22 -6
- 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 +40 -4
- 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 +10 -4
- data/lib/tremendous/models/list_products_response_products_inner_images_inner.rb +20 -4
- 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 +10 -4
- 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 +40 -4
- data/lib/tremendous/models/product_documents.rb +10 -4
- 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 +10 -4
- data/lib/tremendous/models/reward_without_link.rb +10 -4
- data/lib/tremendous/models/reward_without_link_delivery.rb +10 -4
- 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 +4 -1
- metadata +5 -2
@@ -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
|
|
@@ -46,9 +46,14 @@ module Tremendous
|
|
46
46
|
}
|
47
47
|
end
|
48
48
|
|
49
|
+
# Returns attribute mapping this model knows about
|
50
|
+
def self.acceptable_attribute_map
|
51
|
+
attribute_map
|
52
|
+
end
|
53
|
+
|
49
54
|
# Returns all the JSON keys this model knows about
|
50
55
|
def self.acceptable_attributes
|
51
|
-
|
56
|
+
acceptable_attribute_map.values
|
52
57
|
end
|
53
58
|
|
54
59
|
# Attribute type mapping.
|
@@ -83,9 +88,10 @@ module Tremendous
|
|
83
88
|
end
|
84
89
|
|
85
90
|
# check to see if the attribute exists and convert string to symbol for hash key
|
91
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
86
92
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
87
|
-
if (!
|
88
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListCampaigns200ResponseCampaignsInnerEmailStyle`. Please check the name to make sure it's valid. List of attributes: " +
|
93
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
94
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListCampaigns200ResponseCampaignsInnerEmailStyle`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
89
95
|
end
|
90
96
|
h[k.to_sym] = v
|
91
97
|
}
|
@@ -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
|
|
@@ -46,9 +46,14 @@ module Tremendous
|
|
46
46
|
}
|
47
47
|
end
|
48
48
|
|
49
|
+
# Returns attribute mapping this model knows about
|
50
|
+
def self.acceptable_attribute_map
|
51
|
+
attribute_map
|
52
|
+
end
|
53
|
+
|
49
54
|
# Returns all the JSON keys this model knows about
|
50
55
|
def self.acceptable_attributes
|
51
|
-
|
56
|
+
acceptable_attribute_map.values
|
52
57
|
end
|
53
58
|
|
54
59
|
# Attribute type mapping.
|
@@ -82,9 +87,10 @@ module Tremendous
|
|
82
87
|
end
|
83
88
|
|
84
89
|
# check to see if the attribute exists and convert string to symbol for hash key
|
90
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
85
91
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
86
|
-
if (!
|
87
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListCampaigns200ResponseCampaignsInnerWebpageStyle`. Please check the name to make sure it's valid. List of attributes: " +
|
92
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
93
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListCampaigns200ResponseCampaignsInnerWebpageStyle`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
88
94
|
end
|
89
95
|
h[k.to_sym] = v
|
90
96
|
}
|
@@ -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.
|
@@ -55,9 +60,10 @@ module Tremendous
|
|
55
60
|
end
|
56
61
|
|
57
62
|
# check to see if the attribute exists and convert string to symbol for hash key
|
63
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
58
64
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
59
|
-
if (!
|
60
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListConnectedOrganizationMembers200Response`. Please check the name to make sure it's valid. List of attributes: " +
|
65
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
66
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListConnectedOrganizationMembers200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
61
67
|
end
|
62
68
|
h[k.to_sym] = v
|
63
69
|
}
|
@@ -102,6 +108,26 @@ module Tremendous
|
|
102
108
|
true
|
103
109
|
end
|
104
110
|
|
111
|
+
# Custom attribute writer method with validation
|
112
|
+
# @param [Object] connected_organization_members Value to be assigned
|
113
|
+
def connected_organization_members=(connected_organization_members)
|
114
|
+
if connected_organization_members.nil?
|
115
|
+
fail ArgumentError, 'connected_organization_members cannot be nil'
|
116
|
+
end
|
117
|
+
|
118
|
+
@connected_organization_members = connected_organization_members
|
119
|
+
end
|
120
|
+
|
121
|
+
# Custom attribute writer method with validation
|
122
|
+
# @param [Object] total_count Value to be assigned
|
123
|
+
def total_count=(total_count)
|
124
|
+
if total_count.nil?
|
125
|
+
fail ArgumentError, 'total_count cannot be nil'
|
126
|
+
end
|
127
|
+
|
128
|
+
@total_count = total_count
|
129
|
+
end
|
130
|
+
|
105
131
|
# Checks equality by comparing each attribute.
|
106
132
|
# @param [Object] Object to be compared
|
107
133
|
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
|
|
@@ -44,9 +44,14 @@ module Tremendous
|
|
44
44
|
}
|
45
45
|
end
|
46
46
|
|
47
|
+
# Returns attribute mapping this model knows about
|
48
|
+
def self.acceptable_attribute_map
|
49
|
+
attribute_map
|
50
|
+
end
|
51
|
+
|
47
52
|
# Returns all the JSON keys this model knows about
|
48
53
|
def self.acceptable_attributes
|
49
|
-
|
54
|
+
acceptable_attribute_map.values
|
50
55
|
end
|
51
56
|
|
52
57
|
# Attribute type mapping.
|
@@ -78,9 +83,10 @@ module Tremendous
|
|
78
83
|
end
|
79
84
|
|
80
85
|
# check to see if the attribute exists and convert string to symbol for hash key
|
86
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
81
87
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
82
|
-
if (!
|
83
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListConnectedOrganizationMembers200ResponseConnectedOrganizationMembersInner`. Please check the name to make sure it's valid. List of attributes: " +
|
88
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
89
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListConnectedOrganizationMembers200ResponseConnectedOrganizationMembersInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
84
90
|
end
|
85
91
|
h[k.to_sym] = v
|
86
92
|
}
|
@@ -173,6 +179,16 @@ module Tremendous
|
|
173
179
|
@id = id
|
174
180
|
end
|
175
181
|
|
182
|
+
# Custom attribute writer method with validation
|
183
|
+
# @param [Object] created_at Value to be assigned
|
184
|
+
def created_at=(created_at)
|
185
|
+
if created_at.nil?
|
186
|
+
fail ArgumentError, 'created_at cannot be nil'
|
187
|
+
end
|
188
|
+
|
189
|
+
@created_at = created_at
|
190
|
+
end
|
191
|
+
|
176
192
|
# Custom attribute writer method with validation
|
177
193
|
# @param [Object] connected_organization_id Value to be assigned
|
178
194
|
def connected_organization_id=(connected_organization_id)
|
@@ -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
|
|
@@ -75,9 +75,14 @@ module Tremendous
|
|
75
75
|
}
|
76
76
|
end
|
77
77
|
|
78
|
+
# Returns attribute mapping this model knows about
|
79
|
+
def self.acceptable_attribute_map
|
80
|
+
attribute_map
|
81
|
+
end
|
82
|
+
|
78
83
|
# Returns all the JSON keys this model knows about
|
79
84
|
def self.acceptable_attributes
|
80
|
-
|
85
|
+
acceptable_attribute_map.values
|
81
86
|
end
|
82
87
|
|
83
88
|
# Attribute type mapping.
|
@@ -111,9 +116,10 @@ module Tremendous
|
|
111
116
|
end
|
112
117
|
|
113
118
|
# check to see if the attribute exists and convert string to symbol for hash key
|
119
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
114
120
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
115
|
-
if (!
|
116
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListConnectedOrganizationMembers200ResponseConnectedOrganizationMembersInnerMember`. Please check the name to make sure it's valid. List of attributes: " +
|
121
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
122
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListConnectedOrganizationMembers200ResponseConnectedOrganizationMembersInnerMember`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
117
123
|
end
|
118
124
|
h[k.to_sym] = v
|
119
125
|
}
|
@@ -212,6 +218,16 @@ module Tremendous
|
|
212
218
|
@id = id
|
213
219
|
end
|
214
220
|
|
221
|
+
# Custom attribute writer method with validation
|
222
|
+
# @param [Object] email Value to be assigned
|
223
|
+
def email=(email)
|
224
|
+
if email.nil?
|
225
|
+
fail ArgumentError, 'email cannot be nil'
|
226
|
+
end
|
227
|
+
|
228
|
+
@email = email
|
229
|
+
end
|
230
|
+
|
215
231
|
# Custom attribute writer method checking allowed values (enum).
|
216
232
|
# @param [Object] status Object to be assigned
|
217
233
|
def status=(status)
|
@@ -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.
|
@@ -55,9 +60,10 @@ module Tremendous
|
|
55
60
|
end
|
56
61
|
|
57
62
|
# check to see if the attribute exists and convert string to symbol for hash key
|
63
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
58
64
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
59
|
-
if (!
|
60
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListConnectedOrganizations200Response`. Please check the name to make sure it's valid. List of attributes: " +
|
65
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
66
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListConnectedOrganizations200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
61
67
|
end
|
62
68
|
h[k.to_sym] = v
|
63
69
|
}
|
@@ -102,6 +108,26 @@ module Tremendous
|
|
102
108
|
true
|
103
109
|
end
|
104
110
|
|
111
|
+
# Custom attribute writer method with validation
|
112
|
+
# @param [Object] connected_organizations Value to be assigned
|
113
|
+
def connected_organizations=(connected_organizations)
|
114
|
+
if connected_organizations.nil?
|
115
|
+
fail ArgumentError, 'connected_organizations cannot be nil'
|
116
|
+
end
|
117
|
+
|
118
|
+
@connected_organizations = connected_organizations
|
119
|
+
end
|
120
|
+
|
121
|
+
# Custom attribute writer method with validation
|
122
|
+
# @param [Object] total_count Value to be assigned
|
123
|
+
def total_count=(total_count)
|
124
|
+
if total_count.nil?
|
125
|
+
fail ArgumentError, 'total_count cannot be nil'
|
126
|
+
end
|
127
|
+
|
128
|
+
@total_count = total_count
|
129
|
+
end
|
130
|
+
|
105
131
|
# Checks equality by comparing each attribute.
|
106
132
|
# @param [Object] Object to be compared
|
107
133
|
def ==(o)
|
data/lib/tremendous/models/list_connected_organizations200_response_connected_organizations_inner.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
|
|
@@ -36,9 +36,14 @@ module Tremendous
|
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
39
|
+
# Returns attribute mapping this model knows about
|
40
|
+
def self.acceptable_attribute_map
|
41
|
+
attribute_map
|
42
|
+
end
|
43
|
+
|
39
44
|
# Returns all the JSON keys this model knows about
|
40
45
|
def self.acceptable_attributes
|
41
|
-
|
46
|
+
acceptable_attribute_map.values
|
42
47
|
end
|
43
48
|
|
44
49
|
# Attribute type mapping.
|
@@ -66,9 +71,10 @@ module Tremendous
|
|
66
71
|
end
|
67
72
|
|
68
73
|
# check to see if the attribute exists and convert string to symbol for hash key
|
74
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
69
75
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
70
|
-
if (!
|
71
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListConnectedOrganizations200ResponseConnectedOrganizationsInner`. Please check the name to make sure it's valid. List of attributes: " +
|
76
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
77
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListConnectedOrganizations200ResponseConnectedOrganizationsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
72
78
|
end
|
73
79
|
h[k.to_sym] = v
|
74
80
|
}
|
@@ -147,6 +153,26 @@ module Tremendous
|
|
147
153
|
@id = id
|
148
154
|
end
|
149
155
|
|
156
|
+
# Custom attribute writer method with validation
|
157
|
+
# @param [Object] client_id Value to be assigned
|
158
|
+
def client_id=(client_id)
|
159
|
+
if client_id.nil?
|
160
|
+
fail ArgumentError, 'client_id cannot be nil'
|
161
|
+
end
|
162
|
+
|
163
|
+
@client_id = client_id
|
164
|
+
end
|
165
|
+
|
166
|
+
# Custom attribute writer method with validation
|
167
|
+
# @param [Object] created_at Value to be assigned
|
168
|
+
def created_at=(created_at)
|
169
|
+
if created_at.nil?
|
170
|
+
fail ArgumentError, 'created_at cannot be nil'
|
171
|
+
end
|
172
|
+
|
173
|
+
@created_at = created_at
|
174
|
+
end
|
175
|
+
|
150
176
|
# Checks equality by comparing each attribute.
|
151
177
|
# @param [Object] Object to be compared
|
152
178
|
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
|
|
@@ -63,9 +63,14 @@ module Tremendous
|
|
63
63
|
}
|
64
64
|
end
|
65
65
|
|
66
|
+
# Returns attribute mapping this model knows about
|
67
|
+
def self.acceptable_attribute_map
|
68
|
+
attribute_map
|
69
|
+
end
|
70
|
+
|
66
71
|
# Returns all the JSON keys this model knows about
|
67
72
|
def self.acceptable_attributes
|
68
|
-
|
73
|
+
acceptable_attribute_map.values
|
69
74
|
end
|
70
75
|
|
71
76
|
# Attribute type mapping.
|
@@ -93,9 +98,10 @@ module Tremendous
|
|
93
98
|
end
|
94
99
|
|
95
100
|
# check to see if the attribute exists and convert string to symbol for hash key
|
101
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
96
102
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
97
|
-
if (!
|
98
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListConnectedOrganizations200ResponseConnectedOrganizationsInnerOrganization`. Please check the name to make sure it's valid. List of attributes: " +
|
103
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
104
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListConnectedOrganizations200ResponseConnectedOrganizationsInnerOrganization`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
99
105
|
end
|
100
106
|
h[k.to_sym] = v
|
101
107
|
}
|
@@ -173,6 +179,26 @@ module Tremendous
|
|
173
179
|
@id = id
|
174
180
|
end
|
175
181
|
|
182
|
+
# Custom attribute writer method with validation
|
183
|
+
# @param [Object] name Value to be assigned
|
184
|
+
def name=(name)
|
185
|
+
if name.nil?
|
186
|
+
fail ArgumentError, 'name cannot be nil'
|
187
|
+
end
|
188
|
+
|
189
|
+
@name = name
|
190
|
+
end
|
191
|
+
|
192
|
+
# Custom attribute writer method with validation
|
193
|
+
# @param [Object] website Value to be assigned
|
194
|
+
def website=(website)
|
195
|
+
if website.nil?
|
196
|
+
fail ArgumentError, 'website cannot be nil'
|
197
|
+
end
|
198
|
+
|
199
|
+
@website = website
|
200
|
+
end
|
201
|
+
|
176
202
|
# Custom attribute writer method checking allowed values (enum).
|
177
203
|
# @param [Object] status Object to be assigned
|
178
204
|
def status=(status)
|
@@ -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
|
|
@@ -24,9 +24,14 @@ module Tremendous
|
|
24
24
|
}
|
25
25
|
end
|
26
26
|
|
27
|
+
# Returns attribute mapping this model knows about
|
28
|
+
def self.acceptable_attribute_map
|
29
|
+
attribute_map
|
30
|
+
end
|
31
|
+
|
27
32
|
# Returns all the JSON keys this model knows about
|
28
33
|
def self.acceptable_attributes
|
29
|
-
|
34
|
+
acceptable_attribute_map.values
|
30
35
|
end
|
31
36
|
|
32
37
|
# Attribute type mapping.
|
@@ -50,9 +55,10 @@ module Tremendous
|
|
50
55
|
end
|
51
56
|
|
52
57
|
# check to see if the attribute exists and convert string to symbol for hash key
|
58
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
53
59
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
|
-
if (!
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListFields200Response`. Please check the name to make sure it's valid. List of attributes: " +
|
60
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListFields200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
56
62
|
end
|
57
63
|
h[k.to_sym] = v
|
58
64
|
}
|
@@ -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.
|
@@ -74,9 +79,10 @@ module Tremendous
|
|
74
79
|
end
|
75
80
|
|
76
81
|
# check to see if the attribute exists and convert string to symbol for hash key
|
82
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
77
83
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
78
|
-
if (!
|
79
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListFields200ResponseFieldsInner`. Please check the name to make sure it's valid. List of attributes: " +
|
84
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
85
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListFields200ResponseFieldsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
80
86
|
end
|
81
87
|
h[k.to_sym] = v
|
82
88
|
}
|
@@ -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
|
|
@@ -24,9 +24,14 @@ module Tremendous
|
|
24
24
|
}
|
25
25
|
end
|
26
26
|
|
27
|
+
# Returns attribute mapping this model knows about
|
28
|
+
def self.acceptable_attribute_map
|
29
|
+
attribute_map
|
30
|
+
end
|
31
|
+
|
27
32
|
# Returns all the JSON keys this model knows about
|
28
33
|
def self.acceptable_attributes
|
29
|
-
|
34
|
+
acceptable_attribute_map.values
|
30
35
|
end
|
31
36
|
|
32
37
|
# Attribute type mapping.
|
@@ -50,9 +55,10 @@ module Tremendous
|
|
50
55
|
end
|
51
56
|
|
52
57
|
# check to see if the attribute exists and convert string to symbol for hash key
|
58
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
53
59
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
|
-
if (!
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListForexResponse`. Please check the name to make sure it's valid. List of attributes: " +
|
60
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListForexResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
56
62
|
end
|
57
63
|
h[k.to_sym] = v
|
58
64
|
}
|
@@ -86,6 +92,16 @@ module Tremendous
|
|
86
92
|
true
|
87
93
|
end
|
88
94
|
|
95
|
+
# Custom attribute writer method with validation
|
96
|
+
# @param [Object] forex Value to be assigned
|
97
|
+
def forex=(forex)
|
98
|
+
if forex.nil?
|
99
|
+
fail ArgumentError, 'forex cannot be nil'
|
100
|
+
end
|
101
|
+
|
102
|
+
@forex = forex
|
103
|
+
end
|
104
|
+
|
89
105
|
# Checks equality by comparing each attribute.
|
90
106
|
# @param [Object] Object to be compared
|
91
107
|
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
|
|
@@ -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.
|
@@ -55,9 +60,10 @@ module Tremendous
|
|
55
60
|
end
|
56
61
|
|
57
62
|
# check to see if the attribute exists and convert string to symbol for hash key
|
63
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
58
64
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
59
|
-
if (!
|
60
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListFraudReviews200Response`. Please check the name to make sure it's valid. List of attributes: " +
|
65
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
66
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListFraudReviews200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
61
67
|
end
|
62
68
|
h[k.to_sym] = v
|
63
69
|
}
|
@@ -102,6 +108,26 @@ module Tremendous
|
|
102
108
|
true
|
103
109
|
end
|
104
110
|
|
111
|
+
# Custom attribute writer method with validation
|
112
|
+
# @param [Object] fraud_reviews Value to be assigned
|
113
|
+
def fraud_reviews=(fraud_reviews)
|
114
|
+
if fraud_reviews.nil?
|
115
|
+
fail ArgumentError, 'fraud_reviews cannot be nil'
|
116
|
+
end
|
117
|
+
|
118
|
+
@fraud_reviews = fraud_reviews
|
119
|
+
end
|
120
|
+
|
121
|
+
# Custom attribute writer method with validation
|
122
|
+
# @param [Object] total_count Value to be assigned
|
123
|
+
def total_count=(total_count)
|
124
|
+
if total_count.nil?
|
125
|
+
fail ArgumentError, 'total_count cannot be nil'
|
126
|
+
end
|
127
|
+
|
128
|
+
@total_count = total_count
|
129
|
+
end
|
130
|
+
|
105
131
|
# Checks equality by comparing each attribute.
|
106
132
|
# @param [Object] Object to be compared
|
107
133
|
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
|
|
@@ -55,9 +55,14 @@ module Tremendous
|
|
55
55
|
}
|
56
56
|
end
|
57
57
|
|
58
|
+
# Returns attribute mapping this model knows about
|
59
|
+
def self.acceptable_attribute_map
|
60
|
+
attribute_map
|
61
|
+
end
|
62
|
+
|
58
63
|
# Returns all the JSON keys this model knows about
|
59
64
|
def self.acceptable_attributes
|
60
|
-
|
65
|
+
acceptable_attribute_map.values
|
61
66
|
end
|
62
67
|
|
63
68
|
# Attribute type mapping.
|
@@ -83,9 +88,10 @@ module Tremendous
|
|
83
88
|
end
|
84
89
|
|
85
90
|
# check to see if the attribute exists and convert string to symbol for hash key
|
91
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
86
92
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
87
|
-
if (!
|
88
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListFraudReviews200ResponseFraudReviewsInner`. Please check the name to make sure it's valid. List of attributes: " +
|
93
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
94
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListFraudReviews200ResponseFraudReviewsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
89
95
|
end
|
90
96
|
h[k.to_sym] = v
|
91
97
|
}
|