File tree Expand file tree Collapse file tree 6 files changed +13
-11
lines changed Expand file tree Collapse file tree 6 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
66and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
77
8+ ## [ 1.17.0] - 2022-01-11
9+
10+ ### Changed
11+
12+ - Set the order allocatations array as optional.
13+
814## [ 1.16.1] - 2022-01-07
915
1016### Changed
Original file line number Diff line number Diff line change 11PATH
22 remote: .
33 specs:
4- patch_ruby (1.16.1 )
4+ patch_ruby (1.17.0 )
55 typhoeus (~> 1.0 , >= 1.0.1 )
66
77GEM
2222 ffi (>= 1.15.0 )
2323 factory_bot (6.2.0 )
2424 activesupport (>= 5.0.0 )
25- ffi (1.15.4 )
25+ ffi (1.15.5 )
2626 i18n (1.8.10 )
2727 concurrent-ruby (~> 1.0 )
2828 jaro_winkler (1.5.4 )
7171
7272PLATFORMS
7373 arm64-darwin-20
74+ arm64-darwin-21
7475 x86_64-darwin-20
7576
7677DEPENDENCIES
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class ApiClient
3131 # @option config [Configuration] Configuration for initializing the object, default to Configuration.default
3232 def initialize ( config = Configuration . default )
3333 @config = config
34- @user_agent = "patch-ruby/1.16.1 "
34+ @user_agent = "patch-ruby/1.17.0 "
3535 @default_headers = {
3636 'Content-Type' => 'application/json' ,
3737 'User-Agent' => @user_agent
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class Order
3939 # The Patch Fee in cents USD for this order.
4040 attr_accessor :patch_fee_cents_usd
4141
42- # An array containing the inventory allocations for this order.
42+ # DEPRECATED. An array containing the inventory allocations for this order.
4343 attr_accessor :allocations
4444
4545 # The url of this order in the public registry.
@@ -223,10 +223,6 @@ def list_invalid_properties
223223 invalid_properties . push ( 'invalid value for "allocation_state", allocation_state cannot be nil.' )
224224 end
225225
226- if @allocations . nil?
227- invalid_properties . push ( 'invalid value for "allocations", allocations cannot be nil.' )
228- end
229-
230226 if @metadata . nil?
231227 invalid_properties . push ( 'invalid value for "metadata", metadata cannot be nil.' )
232228 end
@@ -248,7 +244,6 @@ def valid?
248244 return false if @allocation_state . nil?
249245 allocation_state_validator = EnumAttributeValidator . new ( 'String' , [ "pending" , "allocated" ] )
250246 return false unless allocation_state_validator . valid? ( @allocation_state )
251- return false if @allocations . nil?
252247 return false if @metadata . nil?
253248 true
254249 end
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class Project
2727 # The description of the project.
2828 attr_accessor :description
2929
30- # Deprecated . Favor the technology_type field instead.
30+ # DEPRECATED . Favor the technology_type field instead.
3131 attr_accessor :type
3232
3333 # The mechanism of the project. Either removal or avoidance.
Original file line number Diff line number Diff line change 1111=end
1212
1313module Patch
14- VERSION = '1.16.1 '
14+ VERSION = '1.17.0 '
1515end
You can’t perform that action at this time.
0 commit comments