Sha256: 90d02fd797aa0cc269134c04fb8de1b4ed59ce27b73a3013a4fff1b29e18ef20

Contents?: true

Size: 562 Bytes

Versions: 2

Compression:

Stored size: 562 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 resource_path
      "#{Customer.resource_path}/#{customer_id}/#{self.class.resource_name.downcase}"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lightspeed_restaurant-3.0.0 lib/lightspeed_restaurant/customer_credit_change.rb
lightspeed_restaurant-2.0.0 lib/lightspeed_restaurant/customer_credit_change.rb