lib/ultracart_api/models/order.rb in ultracart_api-4.0.70.rc vs lib/ultracart_api/models/order.rb in ultracart_api-4.0.71.rc

- old
+ new

@@ -389,11 +389,11 @@ # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if !@currency_code.nil? && @currency_code.to_s.length > 3 - current_stage_validator = EnumAttributeValidator.new('String', ["Accounts Receivable", "Pending Clearance", "Fraud Review", "Rejected", "Shipping Department", "Completed Order", "Quote Request", "Quote Sent", "Least Cost Routing", "Unknown", "Pre-ordered"]) + current_stage_validator = EnumAttributeValidator.new('String', ["Accounts Receivable", "Pending Clearance", "Fraud Review", "Rejected", "Shipping Department", "Completed Order", "Quote Request", "Quote Sent", "Least Cost Routing", "Unknown", "Pre-ordered", "Advanced Order Routing"]) return false unless current_stage_validator.valid?(@current_stage) return false if !@language_iso_code.nil? && @language_iso_code.to_s.length > 3 true end @@ -408,10 +408,10 @@ end # Custom attribute writer method checking allowed values (enum). # @param [Object] current_stage Object to be assigned def current_stage=(current_stage) - validator = EnumAttributeValidator.new('String', ["Accounts Receivable", "Pending Clearance", "Fraud Review", "Rejected", "Shipping Department", "Completed Order", "Quote Request", "Quote Sent", "Least Cost Routing", "Unknown", "Pre-ordered"]) + validator = EnumAttributeValidator.new('String', ["Accounts Receivable", "Pending Clearance", "Fraud Review", "Rejected", "Shipping Department", "Completed Order", "Quote Request", "Quote Sent", "Least Cost Routing", "Unknown", "Pre-ordered", "Advanced Order Routing"]) unless validator.valid?(current_stage) fail ArgumentError, "invalid value for \"current_stage\", must be one of #{validator.allowable_values}." end @current_stage = current_stage end