Module: LightspeedRestaurantClient
- Defined in:
- lib/lightspeed_restaurant.rb,
lib/lightspeed_restaurant/base.rb,
lib/lightspeed_restaurant/company.rb,
lib/lightspeed_restaurant/receipt.rb,
lib/lightspeed_restaurant/request.rb,
lib/lightspeed_restaurant/version.rb,
lib/lightspeed_restaurant/customer.rb,
lib/lightspeed_restaurant/payment_type.rb,
lib/lightspeed_restaurant/configuration.rb,
lib/lightspeed_restaurant/product_group.rb,
lib/lightspeed_restaurant/operations/find.rb,
lib/lightspeed_restaurant/operations/list.rb,
lib/lightspeed_restaurant/operations/save.rb,
lib/lightspeed_restaurant/errors/api_error.rb,
lib/lightspeed_restaurant/operations/create.rb,
lib/lightspeed_restaurant/operations/update.rb,
lib/lightspeed_restaurant/operations/destroy.rb,
lib/lightspeed_restaurant/customer_loyalty_card.rb,
lib/lightspeed_restaurant/product_group_product.rb,
lib/lightspeed_restaurant/customer_credit_change.rb,
lib/lightspeed_restaurant/errors/not_found_error.rb,
lib/lightspeed_restaurant/errors/rate_limit_error.rb,
lib/lightspeed_restaurant/errors/unauthorized_error.rb,
lib/lightspeed_restaurant/errors/authentication_error.rb,
lib/lightspeed_restaurant/customer_establishment_order.rb,
lib/lightspeed_restaurant/errors/invalid_request_error.rb,
lib/lightspeed_restaurant/errors/lightspeed_restaurant_error.rb
Defined Under Namespace
Modules: Operations
Classes: APIError, AuthenticationError, Base, Company, Configuration, Customer, CustomerCreditChange, CustomerEstablishmentOrder, CustomerLoyaltyCard, InvalidRequestError, LightspeedRestaurantClientError, NotFoundError, PaymentType, ProductGroup, ProductGroupProduct, RateLimitError, Receipt, Request, UnauthorizedError
Constant Summary
collapse
- VERSION =
'3.3.3'
Class Attribute Summary collapse
Class Method Summary
collapse
-
.default_configuration ⇒ Object
-
.delete(path, query = {}, configuration = nil) ⇒ Object
-
.get(path, query = {}, configuration = nil) ⇒ Object
-
.post(path, body = {}, query = {}, configuration = nil) ⇒ Object
-
.put(path, body = {}, query = {}, configuration = nil) ⇒ Object
Class Attribute Details
.api_token ⇒ Object
Returns the value of attribute api_token.
25
26
27
|
# File 'lib/lightspeed_restaurant.rb', line 25
def api_token
@api_token
end
|
.base_uri ⇒ Object
Returns the value of attribute base_uri.
25
26
27
|
# File 'lib/lightspeed_restaurant.rb', line 25
def base_uri
@base_uri
end
|
.logger ⇒ Object
Returns the value of attribute logger.
25
26
27
|
# File 'lib/lightspeed_restaurant.rb', line 25
def logger
@logger
end
|
Class Method Details
.default_configuration ⇒ Object
27
28
29
|
# File 'lib/lightspeed_restaurant.rb', line 27
def default_configuration
Configuration.new(@api_token, @base_uri)
end
|
.delete(path, query = {}, configuration = nil) ⇒ Object
43
44
45
|
# File 'lib/lightspeed_restaurant.rb', line 43
def delete(path, query = {}, configuration = nil)
request(path, {}, query, configuration).perform(method: :delete)
end
|
.get(path, query = {}, configuration = nil) ⇒ Object
31
32
33
|
# File 'lib/lightspeed_restaurant.rb', line 31
def get(path, query = {}, configuration = nil)
request(path, {}, query, configuration).perform(method: :get)
end
|
.post(path, body = {}, query = {}, configuration = nil) ⇒ Object
35
36
37
|
# File 'lib/lightspeed_restaurant.rb', line 35
def post(path, body = {}, query = {}, configuration = nil)
request(path, body, query, configuration).perform(method: :post)
end
|
.put(path, body = {}, query = {}, configuration = nil) ⇒ Object
39
40
41
|
# File 'lib/lightspeed_restaurant.rb', line 39
def put(path, body = {}, query = {}, configuration = nil)
request(path, body, query, configuration).perform(method: :put)
end
|