lib/patch_ruby/models/order.rb in patch_ruby-1.16.0 vs lib/patch_ruby/models/order.rb in patch_ruby-1.16.1
- old
+ new
@@ -4,11 +4,11 @@
#The core API used to integrate with Patch's service
The version of the OpenAPI document: v1
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
-OpenAPI Generator version: 5.2.1
+OpenAPI Generator version: 5.3.1
=end
require 'date'
require 'time'
@@ -244,11 +244,11 @@
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)
return false if @allocation_state.nil?
- allocation_state_validator = EnumAttributeValidator.new('String', ["pending", "partially_allocated", "allocated"])
+ allocation_state_validator = EnumAttributeValidator.new('String', ["pending", "allocated"])
return false unless allocation_state_validator.valid?(@allocation_state)
return false if @allocations.nil?
return false if @metadata.nil?
true
end
@@ -282,10 +282,10 @@
end
# Custom attribute writer method checking allowed values (enum).
# @param [Object] allocation_state Object to be assigned
def allocation_state=(allocation_state)
- validator = EnumAttributeValidator.new('String', ["pending", "partially_allocated", "allocated"])
+ validator = EnumAttributeValidator.new('String', ["pending", "allocated"])
unless validator.valid?(allocation_state)
fail ArgumentError, "invalid value for \"allocation_state\", must be one of #{validator.allowable_values}."
end
@allocation_state = allocation_state
end