lib/ultracart_api/models/webhook.rb in ultracart_api-4.0.79.rc vs lib/ultracart_api/models/webhook.rb in ultracart_api-4.0.80.rc
- old
+ new
@@ -30,10 +30,13 @@
attr_accessor :basic_password
# Basic authentication user name
attr_accessor :basic_username
+ # Compress events with GZIP then base 64 encode them as a string
+ attr_accessor :compress_events
+
# The number of consecutive failures that have occurred trying to deliver notifications to the target server
attr_accessor :consecutive_failures
# True if the webhook has been disabled
attr_accessor :disabled
@@ -97,10 +100,11 @@
:'api_version' => :'api_version',
:'application_profile' => :'application_profile',
:'authentication_type' => :'authentication_type',
:'basic_password' => :'basic_password',
:'basic_username' => :'basic_username',
+ :'compress_events' => :'compress_events',
:'consecutive_failures' => :'consecutive_failures',
:'disabled' => :'disabled',
:'event_categories' => :'event_categories',
:'iam_access_key' => :'iam_access_key',
:'iam_secret_key' => :'iam_secret_key',
@@ -126,10 +130,11 @@
:'api_version' => :'String',
:'application_profile' => :'ApiUserApplicationProfile',
:'authentication_type' => :'String',
:'basic_password' => :'String',
:'basic_username' => :'String',
+ :'compress_events' => :'Boolean',
:'consecutive_failures' => :'Integer',
:'disabled' => :'Boolean',
:'event_categories' => :'Array<WebhookEventCategory>',
:'iam_access_key' => :'String',
:'iam_secret_key' => :'String',
@@ -186,10 +191,14 @@
if attributes.key?(:'basic_username')
self.basic_username = attributes[:'basic_username']
end
+ if attributes.key?(:'compress_events')
+ self.compress_events = attributes[:'compress_events']
+ end
+
if attributes.key?(:'consecutive_failures')
self.consecutive_failures = attributes[:'consecutive_failures']
end
if attributes.key?(:'disabled')
@@ -285,10 +294,11 @@
api_version == o.api_version &&
application_profile == o.application_profile &&
authentication_type == o.authentication_type &&
basic_password == o.basic_password &&
basic_username == o.basic_username &&
+ compress_events == o.compress_events &&
consecutive_failures == o.consecutive_failures &&
disabled == o.disabled &&
event_categories == o.event_categories &&
iam_access_key == o.iam_access_key &&
iam_secret_key == o.iam_secret_key &&
@@ -308,10 +318,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [api_user_oid, api_version, application_profile, authentication_type, basic_password, basic_username, consecutive_failures, disabled, event_categories, iam_access_key, iam_secret_key, maximum_events, maximum_size, merchant_id, next_retry_after, pending, webhook_oid, webhook_url].hash
+ [api_user_oid, api_version, application_profile, authentication_type, basic_password, basic_username, compress_events, consecutive_failures, disabled, event_categories, iam_access_key, iam_secret_key, maximum_events, maximum_size, merchant_id, next_retry_after, pending, webhook_oid, webhook_url].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself