lib/ultracart_api/models/webhook.rb in ultracart_api-4.0.232 vs lib/ultracart_api/models/webhook.rb in ultracart_api-4.0.233
- old
+ new
@@ -258,11 +258,11 @@
# Check to see if the all the properties in the model are valid
# @return true if the model is valid
def valid?
api_version_validator = EnumAttributeValidator.new('String', ["2017-03-01"])
return false unless api_version_validator.valid?(@api_version)
- authentication_type_validator = EnumAttributeValidator.new('String', ["none", "basic"])
+ authentication_type_validator = EnumAttributeValidator.new('String', ["none", "basic", "api user", "aws iam"])
return false unless authentication_type_validator.valid?(@authentication_type)
true
end
# Custom attribute writer method checking allowed values (enum).
@@ -276,10 +276,10 @@
end
# Custom attribute writer method checking allowed values (enum).
# @param [Object] authentication_type Object to be assigned
def authentication_type=(authentication_type)
- validator = EnumAttributeValidator.new('String', ["none", "basic"])
+ validator = EnumAttributeValidator.new('String', ["none", "basic", "api user", "aws iam"])
unless validator.valid?(authentication_type)
fail ArgumentError, "invalid value for \"authentication_type\", must be one of #{validator.allowable_values}."
end
@authentication_type = authentication_type
end