lib/lightspeed_restaurant/customer_loyalty_card.rb
# frozen_string_literal: true
require 'lightspeed_restaurant/base'
require 'lightspeed_restaurant/operations/create'
require 'lightspeed_restaurant/operations/list'
module LightspeedRestaurantClient
class CustomerLoyaltyCard < LightspeedRestaurantClient::Base
include Operations::List
include Operations::Create
def initialize(customer_id)
super
end
def self.resource_name
'LoyaltyCard'
end
def default_resource_path
"#{Customer.default_resource_path}/#{customer_id}/#{self.class.resource_name.downcase}"
end
end
end