Sha256: 3437daf10b000c6da97c69f04affd11f491f1571488daaed73c103ec1b4c303a

Contents?: true

Size: 578 Bytes

Versions: 6

Compression:

Stored size: 578 Bytes

Contents

# frozen_string_literal: true

require 'lightspeed_restaurant/base'
require 'lightspeed_restaurant/operations/list'
require 'lightspeed_restaurant/operations/create'

module LightspeedRestaurantClient
  class CustomerCreditChange < LightspeedRestaurantClient::Base
    include Operations::List
    include Operations::Create

    def initialize(customer_id)
      super
    end

    def self.resource_name
      'CreditChange'
    end

    def default_resource_path
      "#{Customer.default_resource_path}/#{customer_id}/#{self.class.resource_name.downcase}"
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lightspeed_restaurant-3.3.3 lib/lightspeed_restaurant/customer_credit_change.rb
lightspeed_restaurant-3.3.2 lib/lightspeed_restaurant/customer_credit_change.rb
lightspeed_restaurant-3.3.1 lib/lightspeed_restaurant/customer_credit_change.rb
lightspeed_restaurant-3.3.0 lib/lightspeed_restaurant/customer_credit_change.rb
lightspeed_restaurant-3.2.0 lib/lightspeed_restaurant/customer_credit_change.rb
lightspeed_restaurant-3.1.0 lib/lightspeed_restaurant/customer_credit_change.rb