Sha256: 5a34e8e9dfab132b55124ba64bbbd9880c3dd8acfe4f8bad5ddae16ef4c3a507

Contents?: true

Size: 1.09 KB

Versions: 49

Compression:

Stored size: 1.09 KB

Contents

# frozen_string_literal: true

module ErpIntegration
  # The `ErpIntegration::SalesOrderLine` exposes an uniformed API for interaction with
  # third-party ERP vendors.
  class SalesOrderLine < Resource
    attr_accessor :id, :product, :quantity, :unit, :unit_price, :amount, :attachments,
                  :channel_identifier, :create_date, :create_uid, :delivery_address,
                  :delivery_date, :delivery_mode, :description, :discount, :gift_message,
                  :gross_profit_cpny_cc, :is_gift_card, :list_price, :listing_sku,
                  :metadata, :note, :options, :purhcase_request, :quantity_canceled,
                  :quantity_reserved, :quantity_shipped, :return_reason, :sale,
                  :sequence, :shipping_date, :taxes, :type, :warehouse, :write_date,
                  :write_uid

    def cancel(id)
      self.class.adapter.cancel(id)
    end

    def adjust_quantity(sales_channel, channel_identifier, sku, quantity, quantity_canceled)
      self.class.adapter.adjust_quantity(sales_channel, channel_identifier, sku, quantity, quantity_canceled)
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
erp_integration-0.57.0 lib/erp_integration/sales_order_line.rb
erp_integration-0.56.0 lib/erp_integration/sales_order_line.rb
erp_integration-0.55.0 lib/erp_integration/sales_order_line.rb
erp_integration-0.54.0 lib/erp_integration/sales_order_line.rb
erp_integration-0.53.1 lib/erp_integration/sales_order_line.rb
erp_integration-0.53.0 lib/erp_integration/sales_order_line.rb
erp_integration-0.52.0 lib/erp_integration/sales_order_line.rb
erp_integration-0.50.0 lib/erp_integration/sales_order_line.rb
erp_integration-0.49.0 lib/erp_integration/sales_order_line.rb
erp_integration-0.48.0 lib/erp_integration/sales_order_line.rb
erp_integration-0.43.0 lib/erp_integration/sales_order_line.rb
erp_integration-0.42.0 lib/erp_integration/sales_order_line.rb
erp_integration-0.41.0 lib/erp_integration/sales_order_line.rb
erp_integration-0.40.0 lib/erp_integration/sales_order_line.rb
erp_integration-0.39.0 lib/erp_integration/sales_order_line.rb
erp_integration-0.38.0 lib/erp_integration/sales_order_line.rb
erp_integration-0.37.0 lib/erp_integration/sales_order_line.rb
erp_integration-0.36.1 lib/erp_integration/sales_order_line.rb
erp_integration-0.36.0 lib/erp_integration/sales_order_line.rb
erp_integration-0.35.0 lib/erp_integration/sales_order_line.rb