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
@@ -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
|
|
@@ -41,9 +41,14 @@ module Tremendous
|
|
41
41
|
}
|
42
42
|
end
|
43
43
|
|
44
|
+
# Returns attribute mapping this model knows about
|
45
|
+
def self.acceptable_attribute_map
|
46
|
+
attribute_map
|
47
|
+
end
|
48
|
+
|
44
49
|
# Returns all the JSON keys this model knows about
|
45
50
|
def self.acceptable_attributes
|
46
|
-
|
51
|
+
acceptable_attribute_map.values
|
47
52
|
end
|
48
53
|
|
49
54
|
# Attribute type mapping.
|
@@ -71,9 +76,10 @@ module Tremendous
|
|
71
76
|
end
|
72
77
|
|
73
78
|
# check to see if the attribute exists and convert string to symbol for hash key
|
79
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
74
80
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
75
|
-
if (!
|
76
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListOrders200ResponseOrdersInnerPayment`. Please check the name to make sure it's valid. List of attributes: " +
|
81
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
82
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListOrders200ResponseOrdersInnerPayment`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
77
83
|
end
|
78
84
|
h[k.to_sym] = v
|
79
85
|
}
|
@@ -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::ListOrders200ResponseOrdersInnerPaymentRefund`. 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::ListOrders200ResponseOrdersInnerPaymentRefund`. 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
|
}
|
@@ -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::ListOrganizations200Response`. 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::ListOrganizations200Response`. 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
|
|
@@ -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::ListOrganizations200ResponseOrganizationsInner`. 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::ListOrganizations200ResponseOrganizationsInner`. 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::ListProductsResponse`. 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::ListProductsResponse`. 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] products Value to be assigned
|
97
|
+
def products=(products)
|
98
|
+
if products.nil?
|
99
|
+
fail ArgumentError, 'products cannot be nil'
|
100
|
+
end
|
101
|
+
|
102
|
+
@products = products
|
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
|
|
@@ -24,7 +24,7 @@ module Tremendous
|
|
24
24
|
# Detailed description of the product. Mostly used for products with a `category` of `charities`.
|
25
25
|
attr_accessor :description
|
26
26
|
|
27
|
-
# The category of this product <table> <thead> <tr> <th>Category</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>ach</code></td> <td>Bank transfer to the recipient</td> </tr> <tr> <td><code>charity</code></td> <td>Donations to a charity</td> </tr> <tr> <td><code>merchant_card</code></td> <td>A gift card for a certain merchant (e.g. Amazon)</td> </tr> <tr> <td><code>paypal</code></td> <td>Payout via PayPal</td> </tr> <tr> <td><code>venmo</code></td> <td>Payout via Venmo</td> </tr> <tr> <td><code>visa_card</code></td> <td>Payout in form of a Visa debit card</td> </tr> </tbody> </table>
|
27
|
+
# The category of this product <table> <thead> <tr> <th>Category</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>ach</code></td> <td>Bank transfer to the recipient</td> </tr> <tr> <td><code>charity</code></td> <td>Donations to a charity</td> </tr> <tr> <td><code>instant_debit_transfer</code></td> <td>Instant debit transfer to the recipient</td> </tr> <tr> <td><code>merchant_card</code></td> <td>A gift card for a certain merchant (e.g. Amazon)</td> </tr> <tr> <td><code>paypal</code></td> <td>Payout via PayPal</td> </tr> <tr> <td><code>venmo</code></td> <td>Payout via Venmo</td> </tr> <tr> <td><code>visa_card</code></td> <td>Payout in form of a Visa debit card</td> </tr> </tbody> </table>
|
28
28
|
attr_accessor :category
|
29
29
|
|
30
30
|
# Legal disclosures for this product. Can be in HTML format.
|
@@ -42,6 +42,11 @@ module Tremendous
|
|
42
42
|
# List of product images associated with this product (e.g. logos or images of the gift cards)
|
43
43
|
attr_accessor :images
|
44
44
|
|
45
|
+
# Instructions for how to use the product, if applicable. Mostly used for products with a `category` of `merchant_card`.
|
46
|
+
attr_accessor :usage_instructions
|
47
|
+
|
48
|
+
attr_accessor :documents
|
49
|
+
|
45
50
|
class EnumAttributeValidator
|
46
51
|
attr_reader :datatype
|
47
52
|
attr_reader :allowable_values
|
@@ -75,13 +80,20 @@ module Tremendous
|
|
75
80
|
:'skus' => :'skus',
|
76
81
|
:'currency_codes' => :'currency_codes',
|
77
82
|
:'countries' => :'countries',
|
78
|
-
:'images' => :'images'
|
83
|
+
:'images' => :'images',
|
84
|
+
:'usage_instructions' => :'usage_instructions',
|
85
|
+
:'documents' => :'documents'
|
79
86
|
}
|
80
87
|
end
|
81
88
|
|
89
|
+
# Returns attribute mapping this model knows about
|
90
|
+
def self.acceptable_attribute_map
|
91
|
+
attribute_map
|
92
|
+
end
|
93
|
+
|
82
94
|
# Returns all the JSON keys this model knows about
|
83
95
|
def self.acceptable_attributes
|
84
|
-
|
96
|
+
acceptable_attribute_map.values
|
85
97
|
end
|
86
98
|
|
87
99
|
# Attribute type mapping.
|
@@ -95,13 +107,16 @@ module Tremendous
|
|
95
107
|
:'skus' => :'Array<ListProductsResponseProductsInnerSkusInner>',
|
96
108
|
:'currency_codes' => :'Array<String>',
|
97
109
|
:'countries' => :'Array<ListProductsResponseProductsInnerCountriesInner>',
|
98
|
-
:'images' => :'Array<ListProductsResponseProductsInnerImagesInner>'
|
110
|
+
:'images' => :'Array<ListProductsResponseProductsInnerImagesInner>',
|
111
|
+
:'usage_instructions' => :'String',
|
112
|
+
:'documents' => :'ListProductsResponseProductsInnerDocuments'
|
99
113
|
}
|
100
114
|
end
|
101
115
|
|
102
116
|
# List of attributes with nullable: true
|
103
117
|
def self.openapi_nullable
|
104
118
|
Set.new([
|
119
|
+
:'documents'
|
105
120
|
])
|
106
121
|
end
|
107
122
|
|
@@ -113,9 +128,10 @@ module Tremendous
|
|
113
128
|
end
|
114
129
|
|
115
130
|
# check to see if the attribute exists and convert string to symbol for hash key
|
131
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
116
132
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
117
|
-
if (!
|
118
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListProductsResponseProductsInner`. Please check the name to make sure it's valid. List of attributes: " +
|
133
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
134
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListProductsResponseProductsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
119
135
|
end
|
120
136
|
h[k.to_sym] = v
|
121
137
|
}
|
@@ -179,6 +195,14 @@ module Tremendous
|
|
179
195
|
else
|
180
196
|
self.images = nil
|
181
197
|
end
|
198
|
+
|
199
|
+
if attributes.key?(:'usage_instructions')
|
200
|
+
self.usage_instructions = attributes[:'usage_instructions']
|
201
|
+
end
|
202
|
+
|
203
|
+
if attributes.key?(:'documents')
|
204
|
+
self.documents = attributes[:'documents']
|
205
|
+
end
|
182
206
|
end
|
183
207
|
|
184
208
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -247,7 +271,7 @@ module Tremendous
|
|
247
271
|
return false if @name.nil?
|
248
272
|
return false if @description.nil?
|
249
273
|
return false if @category.nil?
|
250
|
-
category_validator = EnumAttributeValidator.new('String', ["ach", "charity", "merchant_card", "paypal", "venmo", "visa_card"])
|
274
|
+
category_validator = EnumAttributeValidator.new('String', ["ach", "charity", "instant_debit_transfer", "merchant_card", "paypal", "venmo", "visa_card"])
|
251
275
|
return false unless category_validator.valid?(@category)
|
252
276
|
return false if @disclosure.nil?
|
253
277
|
return false if @currency_codes.nil?
|
@@ -274,16 +298,46 @@ module Tremendous
|
|
274
298
|
@id = id
|
275
299
|
end
|
276
300
|
|
301
|
+
# Custom attribute writer method with validation
|
302
|
+
# @param [Object] name Value to be assigned
|
303
|
+
def name=(name)
|
304
|
+
if name.nil?
|
305
|
+
fail ArgumentError, 'name cannot be nil'
|
306
|
+
end
|
307
|
+
|
308
|
+
@name = name
|
309
|
+
end
|
310
|
+
|
311
|
+
# Custom attribute writer method with validation
|
312
|
+
# @param [Object] description Value to be assigned
|
313
|
+
def description=(description)
|
314
|
+
if description.nil?
|
315
|
+
fail ArgumentError, 'description cannot be nil'
|
316
|
+
end
|
317
|
+
|
318
|
+
@description = description
|
319
|
+
end
|
320
|
+
|
277
321
|
# Custom attribute writer method checking allowed values (enum).
|
278
322
|
# @param [Object] category Object to be assigned
|
279
323
|
def category=(category)
|
280
|
-
validator = EnumAttributeValidator.new('String', ["ach", "charity", "merchant_card", "paypal", "venmo", "visa_card"])
|
324
|
+
validator = EnumAttributeValidator.new('String', ["ach", "charity", "instant_debit_transfer", "merchant_card", "paypal", "venmo", "visa_card"])
|
281
325
|
unless validator.valid?(category)
|
282
326
|
fail ArgumentError, "invalid value for \"category\", must be one of #{validator.allowable_values}."
|
283
327
|
end
|
284
328
|
@category = category
|
285
329
|
end
|
286
330
|
|
331
|
+
# Custom attribute writer method with validation
|
332
|
+
# @param [Object] disclosure Value to be assigned
|
333
|
+
def disclosure=(disclosure)
|
334
|
+
if disclosure.nil?
|
335
|
+
fail ArgumentError, 'disclosure cannot be nil'
|
336
|
+
end
|
337
|
+
|
338
|
+
@disclosure = disclosure
|
339
|
+
end
|
340
|
+
|
287
341
|
# Custom attribute writer method with validation
|
288
342
|
# @param [Object] countries Value to be assigned
|
289
343
|
def countries=(countries)
|
@@ -325,7 +379,9 @@ module Tremendous
|
|
325
379
|
skus == o.skus &&
|
326
380
|
currency_codes == o.currency_codes &&
|
327
381
|
countries == o.countries &&
|
328
|
-
images == o.images
|
382
|
+
images == o.images &&
|
383
|
+
usage_instructions == o.usage_instructions &&
|
384
|
+
documents == o.documents
|
329
385
|
end
|
330
386
|
|
331
387
|
# @see the `==` method
|
@@ -337,7 +393,7 @@ module Tremendous
|
|
337
393
|
# Calculates hash code according to all attributes.
|
338
394
|
# @return [Integer] Hash code
|
339
395
|
def hash
|
340
|
-
[id, name, description, category, disclosure, skus, currency_codes, countries, images].hash
|
396
|
+
[id, name, description, category, disclosure, skus, currency_codes, countries, images, usage_instructions, documents].hash
|
341
397
|
end
|
342
398
|
|
343
399
|
# 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
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -25,9 +25,14 @@ module Tremendous
|
|
25
25
|
}
|
26
26
|
end
|
27
27
|
|
28
|
+
# Returns attribute mapping this model knows about
|
29
|
+
def self.acceptable_attribute_map
|
30
|
+
attribute_map
|
31
|
+
end
|
32
|
+
|
28
33
|
# Returns all the JSON keys this model knows about
|
29
34
|
def self.acceptable_attributes
|
30
|
-
|
35
|
+
acceptable_attribute_map.values
|
31
36
|
end
|
32
37
|
|
33
38
|
# Attribute type mapping.
|
@@ -51,9 +56,10 @@ module Tremendous
|
|
51
56
|
end
|
52
57
|
|
53
58
|
# check to see if the attribute exists and convert string to symbol for hash key
|
59
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
54
60
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
55
|
-
if (!
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListProductsResponseProductsInnerCountriesInner`. Please check the name to make sure it's valid. List of attributes: " +
|
61
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListProductsResponseProductsInnerCountriesInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
57
63
|
end
|
58
64
|
h[k.to_sym] = v
|
59
65
|
}
|
@@ -85,6 +91,16 @@ module Tremendous
|
|
85
91
|
true
|
86
92
|
end
|
87
93
|
|
94
|
+
# Custom attribute writer method with validation
|
95
|
+
# @param [Object] abbr Value to be assigned
|
96
|
+
def abbr=(abbr)
|
97
|
+
if abbr.nil?
|
98
|
+
fail ArgumentError, 'abbr cannot be nil'
|
99
|
+
end
|
100
|
+
|
101
|
+
@abbr = abbr
|
102
|
+
end
|
103
|
+
|
88
104
|
# Checks equality by comparing each attribute.
|
89
105
|
# @param [Object] Object to be compared
|
90
106
|
def ==(o)
|