class Square::Inventory
docs.connect.squareup.com/api/connect/v1/#navsection-inventory
Public Class Methods
adjust(variation_id, params = {})
click to toggle source
Adjust inventory for a varation.
@param variation_id [String] Variation
ID. @param params [Hash] Params hash. Optional.
@return [Square::DataType]
# File lib/square/inventory.rb, line 15 def self.adjust(variation_id, params = {}) response = Square.make_request( method: 'POST', endpoint: self.generate_endpoint_url(variation_id), payload: params ) response = Square.parse_response(response) @data_type.new(response) end