class Lightspeed::API::Sales::SaleLines
Attributes
client[R]
Public Class Methods
new(client)
click to toggle source
# File lib/lightspeed/api/sales/sale_lines.rb, line 5 def initialize(client) @client = client end
Public Instance Methods
all(sale_id)
click to toggle source
# File lib/lightspeed/api/sales/sale_lines.rb, line 9 def all(sale_id) client. get("Account/#{client.account_id}/Sale/#{sale_id}/SaleLine.json"). body end
create(attributes = {})
click to toggle source
# File lib/lightspeed/api/sales/sale_lines.rb, line 15 def create(attributes = {}) client.post("Account/#{client.account_id}/Sale/#{attributes[:saleID]}/SaleLine.json", body: attributes).body end