Skip to content

Commit 2dcd14f

Browse files
committed
Remove get_transfer from hand-maintained inventory client; fix Gemfile.lock platform
- lib/square/inventory/client.rb is in .fernignore (manual pagination fix), so Fern's regeneration did not drop Inventory#get_transfer even though GET /v2/inventory/transfers/{transfer_id} is no longer in the spec and the override was removed in square-fern-config#139. Remove it by hand. - Gemfile.lock: x86_64-linux-musl -> x86_64-linux (Fern generates on Alpine; CI runs glibc). Recurring, see previous release PRs.
1 parent 03edff6 commit 2dcd14f

2 files changed

Lines changed: 1 addition & 26 deletions

File tree

‎Gemfile.lock‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ GEM
6969

7070
PLATFORMS
7171
ruby
72-
x86_64-linux-musl
72+
x86_64-linux
7373

7474
DEPENDENCIES
7575
minitest (~> 5.16)

‎lib/square/inventory/client.rb‎

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -296,31 +296,6 @@ def get_physical_count(request_options: {}, **params)
296296
end
297297
end
298298

299-
# Returns the [InventoryTransfer](entity:InventoryTransfer) object
300-
# with the provided `transfer_id`.
301-
#
302-
# @return [Square::Types::GetInventoryTransferResponse]
303-
def get_transfer(request_options: {}, **params)
304-
_request = Square::Internal::JSON::Request.new(
305-
base_url: request_options[:base_url],
306-
method: "GET",
307-
path: "v2/inventory/transfers/#{params[:transfer_id]}",
308-
request_options: request_options
309-
)
310-
begin
311-
_response = @client.send(_request)
312-
rescue Net::HTTPRequestTimeout
313-
raise Square::Errors::TimeoutError
314-
end
315-
code = _response.code.to_i
316-
if code.between?(200, 299)
317-
Square::Types::GetInventoryTransferResponse.load(_response.body)
318-
else
319-
error_class = Square::Errors::ResponseError.subclass_for_code(code)
320-
raise error_class.new(_response.body, code: code)
321-
end
322-
end
323-
324299
# Retrieves the current calculated stock count for a given
325300
# [CatalogObject](entity:CatalogObject) at a given set of
326301
# [Location](entity:Location)s. Responses are paginated and unsorted.

0 commit comments

Comments
 (0)