Sha256: a2574123f7b0cfc1cf077b29d21fee9d81c7b32171b83fc4ab5dcef3c54c5f17

Contents?: true

Size: 1.07 KB

Versions: 13

Compression:

Stored size: 1.07 KB

Contents

# frozen_string_literal: true

module ErpIntegration
  # The `ErpIntegration::SalesOrder` exposes an uniformed API for interaction with
  # third-party ERP vendors.
  class SalesOrder < Resource
    attr_accessor :id, :channel, :number, :party, :sale_date, :shipment_address,
                  :amount_invoiced, :attachments, :carrier, :carrier_service,
                  :channel_identifier, :comment, :company, :confirmation_time,
                  :create_date, :currency, :description, :gateway_transaction,
                  :invoice_address, :invoice_method, :invoice_state, :invoices,
                  :lines, :metadata, :payment_term, :payment_total, :price_list,
                  :reference, :sales_person, :shipment_amount, :shipment_method,
                  :shipment_state, :shipments, :shipping_start_date, :state,
                  :tax_amount, :total_amount, :total_quantity, :total_shipment_cost,
                  :untaxed_amount, :warehouse, :weight, :weight_uom, :write_date,
                  :write_uid

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
erp_integration-0.11.0 lib/erp_integration/sales_order.rb
erp_integration-0.10.0 lib/erp_integration/sales_order.rb
erp_integration-0.9.0 lib/erp_integration/sales_order.rb
erp_integration-0.8.0 lib/erp_integration/sales_order.rb
erp_integration-0.7.0 lib/erp_integration/sales_order.rb
erp_integration-0.6.0 lib/erp_integration/sales_order.rb
erp_integration-0.5.5 lib/erp_integration/sales_order.rb
erp_integration-0.5.4 lib/erp_integration/sales_order.rb
erp_integration-0.5.3 lib/erp_integration/sales_order.rb
erp_integration-0.5.2 lib/erp_integration/sales_order.rb
erp_integration-0.5.1 lib/erp_integration/sales_order.rb
erp_integration-0.5.0 lib/erp_integration/sales_order.rb
erp_integration-0.4.0 lib/erp_integration/sales_order.rb