Sha256: 3fe57f51a827a21f72b1180bde6af9e548188e068a055afa468de8a716edc49c

Contents?: true

Size: 509 Bytes

Versions: 7

Compression:

Stored size: 509 Bytes

Contents

# frozen_string_literal: true

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

module LightspeedRestaurantClient
  class CustomerEstablishmentOrder < LightspeedRestaurantClient::Base
    include Operations::Create

    def initialize(customer_id)
      super
    end

    def self.resource_name
      'EstablishmentOrder'
    end

    def default_resource_path
      "/rest/onlineordering/customer/#{customer_id}/#{self.class.resource_name.downcase}"
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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