Class: ErpIntegration::SalesOrderLine
- Defined in:
- lib/erp_integration/sales_order_line.rb
Overview
The ‘ErpIntegration::SalesOrderLine` exposes an uniformed API for interaction with third-party ERP vendors.
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#attachments ⇒ Object
Returns the value of attribute attachments.
-
#channel_identifier ⇒ Object
Returns the value of attribute channel_identifier.
-
#create_date ⇒ Object
Returns the value of attribute create_date.
-
#create_uid ⇒ Object
Returns the value of attribute create_uid.
-
#delivery_address ⇒ Object
Returns the value of attribute delivery_address.
-
#delivery_date ⇒ Object
Returns the value of attribute delivery_date.
-
#delivery_mode ⇒ Object
Returns the value of attribute delivery_mode.
-
#description ⇒ Object
Returns the value of attribute description.
-
#discount ⇒ Object
Returns the value of attribute discount.
-
#gift_message ⇒ Object
Returns the value of attribute gift_message.
-
#gross_profit_cpny_cc ⇒ Object
Returns the value of attribute gross_profit_cpny_cc.
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_gift_card ⇒ Object
Returns the value of attribute is_gift_card.
-
#list_price ⇒ Object
Returns the value of attribute list_price.
-
#listing_sku ⇒ Object
Returns the value of attribute listing_sku.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#note ⇒ Object
Returns the value of attribute note.
-
#options ⇒ Object
Returns the value of attribute options.
-
#product ⇒ Object
Returns the value of attribute product.
-
#purhcase_request ⇒ Object
Returns the value of attribute purhcase_request.
-
#quantity ⇒ Object
Returns the value of attribute quantity.
-
#quantity_canceled ⇒ Object
Returns the value of attribute quantity_canceled.
-
#quantity_reserved ⇒ Object
Returns the value of attribute quantity_reserved.
-
#quantity_shipped ⇒ Object
Returns the value of attribute quantity_shipped.
-
#return_reason ⇒ Object
Returns the value of attribute return_reason.
-
#sale ⇒ Object
Returns the value of attribute sale.
-
#sequence ⇒ Object
Returns the value of attribute sequence.
-
#shipping_date ⇒ Object
Returns the value of attribute shipping_date.
-
#taxes ⇒ Object
Returns the value of attribute taxes.
-
#type ⇒ Object
Returns the value of attribute type.
-
#unit ⇒ Object
Returns the value of attribute unit.
-
#unit_price ⇒ Object
Returns the value of attribute unit_price.
-
#warehouse ⇒ Object
Returns the value of attribute warehouse.
-
#write_date ⇒ Object
Returns the value of attribute write_date.
-
#write_uid ⇒ Object
Returns the value of attribute write_uid.
Attributes inherited from Resource
Instance Method Summary collapse
- #adjust_quantity(sales_channel, channel_identifier, sku, quantity, quantity_canceled) ⇒ Object
- #cancel(id) ⇒ Object
Methods inherited from Resource
adapter, adapter_klass, adapter_path, adapter_type, #assign_attributes, #initialize, #method_missing, resource_name, respond_to_missing?
Methods included from Resources::Persistence
#destroy, included, #persisted?, #update
Methods included from Resources::Validations
#errors, #valid?, #validate_with
Constructor Details
This class inherits a constructor from ErpIntegration::Resource
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ErpIntegration::Resource
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def amount @amount end |
#attachments ⇒ Object
Returns the value of attribute attachments.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def @attachments end |
#channel_identifier ⇒ Object
Returns the value of attribute channel_identifier.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def channel_identifier @channel_identifier end |
#create_date ⇒ Object
Returns the value of attribute create_date.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def create_date @create_date end |
#create_uid ⇒ Object
Returns the value of attribute create_uid.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def create_uid @create_uid end |
#delivery_address ⇒ Object
Returns the value of attribute delivery_address.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def delivery_address @delivery_address end |
#delivery_date ⇒ Object
Returns the value of attribute delivery_date.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def delivery_date @delivery_date end |
#delivery_mode ⇒ Object
Returns the value of attribute delivery_mode.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def delivery_mode @delivery_mode end |
#description ⇒ Object
Returns the value of attribute description.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def description @description end |
#discount ⇒ Object
Returns the value of attribute discount.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def discount @discount end |
#gift_message ⇒ Object
Returns the value of attribute gift_message.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def @gift_message end |
#gross_profit_cpny_cc ⇒ Object
Returns the value of attribute gross_profit_cpny_cc.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def gross_profit_cpny_cc @gross_profit_cpny_cc end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def id @id end |
#is_gift_card ⇒ Object
Returns the value of attribute is_gift_card.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def is_gift_card @is_gift_card end |
#list_price ⇒ Object
Returns the value of attribute list_price.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def list_price @list_price end |
#listing_sku ⇒ Object
Returns the value of attribute listing_sku.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def listing_sku @listing_sku end |
#metadata ⇒ Object
Returns the value of attribute metadata.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def @metadata end |
#note ⇒ Object
Returns the value of attribute note.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def note @note end |
#options ⇒ Object
Returns the value of attribute options.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def @options end |
#product ⇒ Object
Returns the value of attribute product.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def product @product end |
#purhcase_request ⇒ Object
Returns the value of attribute purhcase_request.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def purhcase_request @purhcase_request end |
#quantity ⇒ Object
Returns the value of attribute quantity.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def quantity @quantity end |
#quantity_canceled ⇒ Object
Returns the value of attribute quantity_canceled.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def quantity_canceled @quantity_canceled end |
#quantity_reserved ⇒ Object
Returns the value of attribute quantity_reserved.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def quantity_reserved @quantity_reserved end |
#quantity_shipped ⇒ Object
Returns the value of attribute quantity_shipped.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def quantity_shipped @quantity_shipped end |
#return_reason ⇒ Object
Returns the value of attribute return_reason.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def return_reason @return_reason end |
#sale ⇒ Object
Returns the value of attribute sale.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def sale @sale end |
#sequence ⇒ Object
Returns the value of attribute sequence.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def sequence @sequence end |
#shipping_date ⇒ Object
Returns the value of attribute shipping_date.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def shipping_date @shipping_date end |
#taxes ⇒ Object
Returns the value of attribute taxes.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def taxes @taxes end |
#type ⇒ Object
Returns the value of attribute type.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def type @type end |
#unit ⇒ Object
Returns the value of attribute unit.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def unit @unit end |
#unit_price ⇒ Object
Returns the value of attribute unit_price.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def unit_price @unit_price end |
#warehouse ⇒ Object
Returns the value of attribute warehouse.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def warehouse @warehouse end |
#write_date ⇒ Object
Returns the value of attribute write_date.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def write_date @write_date end |
#write_uid ⇒ Object
Returns the value of attribute write_uid.
7 8 9 |
# File 'lib/erp_integration/sales_order_line.rb', line 7 def write_uid @write_uid end |
Instance Method Details
#adjust_quantity(sales_channel, channel_identifier, sku, quantity, quantity_canceled) ⇒ Object
20 21 22 |
# File 'lib/erp_integration/sales_order_line.rb', line 20 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 |
#cancel(id) ⇒ Object
16 17 18 |
# File 'lib/erp_integration/sales_order_line.rb', line 16 def cancel(id) self.class.adapter.cancel(id) end |