@@ -41,7 +41,8 @@ def get_adjustment(request_options: {}, **params)
4141 # @return [Square::Types::BatchChangeInventoryResponse]
4242 def deprecated_batch_change ( request_options : { } , **params )
4343 _request = Square ::Internal ::JSON ::Request . new (
44- method : POST ,
44+ base_url : request_options [ :base_url ] || Square ::Environment ::SANDBOX ,
45+ method : "POST" ,
4546 path : "v2/inventory/batch-change" ,
4647 body : Square ::Types ::BatchChangeInventoryRequest . new ( params [ :request ] ) . to_h ,
4748 )
@@ -59,7 +60,8 @@ def deprecated_batch_change(request_options: {}, **params)
5960 # @return [Square::Types::BatchGetInventoryChangesResponse]
6061 def deprecated_batch_get_changes ( request_options : { } , **params )
6162 _request = Square ::Internal ::JSON ::Request . new (
62- method : POST ,
63+ base_url : request_options [ :base_url ] || Square ::Environment ::SANDBOX ,
64+ method : "POST" ,
6365 path : "v2/inventory/batch-retrieve-changes" ,
6466 body : Square ::Types ::BatchRetrieveInventoryChangesRequest . new ( params [ :request ] ) . to_h ,
6567 )
@@ -77,7 +79,8 @@ def deprecated_batch_get_changes(request_options: {}, **params)
7779 # @return [Square::Types::BatchGetInventoryCountsResponse]
7880 def deprecated_batch_get_counts ( request_options : { } , **params )
7981 _request = Square ::Internal ::JSON ::Request . new (
80- method : POST ,
82+ base_url : request_options [ :base_url ] || Square ::Environment ::SANDBOX ,
83+ method : "POST" ,
8184 path : "v2/inventory/batch-retrieve-counts" ,
8285 body : Square ::Types ::BatchGetInventoryCountsRequest . new ( params [ :request ] ) . to_h ,
8386 )
@@ -98,7 +101,8 @@ def deprecated_batch_get_counts(request_options: {}, **params)
98101 # @return [Square::Types::BatchChangeInventoryResponse]
99102 def batch_create_changes ( request_options : { } , **params )
100103 _request = Square ::Internal ::JSON ::Request . new (
101- method : POST ,
104+ base_url : request_options [ :base_url ] || Square ::Environment ::SANDBOX ,
105+ method : "POST" ,
102106 path : "v2/inventory/changes/batch-create" ,
103107 body : Square ::Types ::BatchChangeInventoryRequest . new ( params [ :request ] ) . to_h ,
104108 )
@@ -122,7 +126,8 @@ def batch_create_changes(request_options: {}, **params)
122126 # @return [Square::Types::BatchGetInventoryChangesResponse]
123127 def batch_get_changes ( request_options : { } , **params )
124128 _request = Square ::Internal ::JSON ::Request . new (
125- method : POST ,
129+ base_url : request_options [ :base_url ] || Square ::Environment ::SANDBOX ,
130+ method : "POST" ,
126131 path : "v2/inventory/changes/batch-retrieve" ,
127132 body : Square ::Types ::BatchRetrieveInventoryChangesRequest . new ( params [ :request ] ) . to_h ,
128133 )
@@ -149,7 +154,8 @@ def batch_get_changes(request_options: {}, **params)
149154 # @return [Square::Types::BatchGetInventoryCountsResponse]
150155 def batch_get_counts ( request_options : { } , **params )
151156 _request = Square ::Internal ::JSON ::Request . new (
152- method : POST ,
157+ base_url : request_options [ :base_url ] || Square ::Environment ::SANDBOX ,
158+ method : "POST" ,
153159 path : "v2/inventory/counts/batch-retrieve" ,
154160 body : Square ::Types ::BatchGetInventoryCountsRequest . new ( params [ :request ] ) . to_h ,
155161 )
0 commit comments