lib/patch_ruby/models/order.rb in patch_ruby-1.15.2 vs lib/patch_ruby/models/order.rb in patch_ruby-1.16.0

- old
+ new

@@ -2,11 +2,11 @@ #Patch API V1 #The core API used to integrate with Patch's service The version of the OpenAPI document: v1 -Contact: developers@usepatch.com +Contact: engineering@usepatch.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.2.1 =end @@ -201,12 +201,12 @@ if @mass_g.nil? invalid_properties.push('invalid value for "mass_g", mass_g cannot be nil.') end - if @mass_g > 2000000000 - invalid_properties.push('invalid value for "mass_g", must be smaller than or equal to 2000000000.') + if @mass_g > 100000000000 + invalid_properties.push('invalid value for "mass_g", must be smaller than or equal to 100000000000.') end if @mass_g < 0 invalid_properties.push('invalid value for "mass_g", must be greater than or equal to 0.') end @@ -237,11 +237,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 @id.nil? return false if @mass_g.nil? - return false if @mass_g > 2000000000 + return false if @mass_g > 100000000000 return false if @mass_g < 0 return false if @production.nil? return false if @state.nil? state_validator = EnumAttributeValidator.new('String', ["draft", "placed", "processing", "complete", "cancelled"]) return false unless state_validator.valid?(@state) @@ -258,11 +258,11 @@ def mass_g=(mass_g) if mass_g.nil? fail ArgumentError, 'mass_g cannot be nil' end - if mass_g > 2000000000 - fail ArgumentError, 'invalid value for "mass_g", must be smaller than or equal to 2000000000.' + if mass_g > 100000000000 + fail ArgumentError, 'invalid value for "mass_g", must be smaller than or equal to 100000000000.' end if mass_g < 0 fail ArgumentError, 'invalid value for "mass_g", must be greater than or equal to 0.' end