Class: ErpIntegration::CustomerShipmentReturn
- Defined in:
- lib/erp_integration/customer_shipment_return.rb
Overview
The ‘ErpIntegration::CustomerShipmentReturn` exposes an uniformed API for interaction with third-party ERP vendors.
Instance Attribute Summary collapse
-
#aes_itn ⇒ Object
Returns the value of attribute aes_itn.
-
#attachments ⇒ Object
Returns the value of attribute attachments.
-
#available_carrier_services ⇒ Object
Returns the value of attribute available_carrier_services.
-
#carrier ⇒ Object
Returns the value of attribute carrier.
-
#carrier_billing_account ⇒ Object
Returns the value of attribute carrier_billing_account.
-
#carrier_cost_method ⇒ Object
Returns the value of attribute carrier_cost_method.
-
#carrier_duties_account ⇒ Object
Returns the value of attribute carrier_duties_account.
-
#carrier_service ⇒ Object
Returns the value of attribute carrier_service.
-
#channels ⇒ Object
Returns the value of attribute channels.
-
#company ⇒ Object
Returns the value of attribute company.
-
#contents_explanation ⇒ Object
Returns the value of attribute contents_explanation.
-
#contents_type ⇒ Object
Returns the value of attribute contents_type.
-
#cost ⇒ Object
Returns the value of attribute cost.
-
#cost_currency ⇒ Object
Returns the value of attribute cost_currency.
-
#cost_currency_digits ⇒ Object
Returns the value of attribute cost_currency_digits.
-
#create_date ⇒ Object
Returns the value of attribute create_date.
-
#create_uid ⇒ Object
Returns the value of attribute create_uid.
-
#customer ⇒ Object
Returns the value of attribute customer.
-
#customer_location ⇒ Object
Returns the value of attribute customer_location.
-
#customs_items ⇒ Object
Returns the value of attribute customs_items.
-
#delivery_address ⇒ Object
Returns the value of attribute delivery_address.
-
#delivery_mode ⇒ Object
Returns the value of attribute delivery_mode.
-
#done_by ⇒ Object
Returns the value of attribute done_by.
-
#duties_tax_id ⇒ Object
Returns the value of attribute duties_tax_id.
-
#duties_tax_id_type ⇒ Object
Returns the value of attribute duties_tax_id_type.
-
#eel_pfc ⇒ Object
Returns the value of attribute eel_pfc.
-
#effective_date ⇒ Object
Returns the value of attribute effective_date.
-
#eori_number ⇒ Object
Returns the value of attribute eori_number.
-
#id ⇒ Object
Returns the value of attribute id.
-
#incoming_moves ⇒ Object
Returns the value of attribute incoming_moves.
-
#inventory_moves ⇒ Object
Returns the value of attribute inventory_moves.
-
#is_international_shipping ⇒ Object
Returns the value of attribute is_international_shipping.
-
#is_shippo ⇒ Object
Returns the value of attribute is_shippo.
-
#last_modification ⇒ Object
Returns the value of attribute last_modification.
-
#license_plates ⇒ Object
Returns the value of attribute license_plates.
-
#messages ⇒ Object
Returns the value of attribute messages.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#moves ⇒ Object
Returns the value of attribute moves.
-
#number ⇒ Object
Returns the value of attribute number.
-
#origins ⇒ Object
Returns the value of attribute origins.
-
#packages ⇒ Object
Returns the value of attribute packages.
-
#planned_date ⇒ Object
Returns the value of attribute planned_date.
-
#private_notes ⇒ Object
Returns the value of attribute private_notes.
-
#public_notes ⇒ Object
Returns the value of attribute public_notes.
-
#putaway_by ⇒ Object
Returns the value of attribute putaway_by.
-
#rec_blurb ⇒ Object
Returns the value of attribute rec_blurb.
-
#rec_name ⇒ Object
Returns the value of attribute rec_name.
-
#received_by ⇒ Object
Returns the value of attribute received_by.
-
#reference ⇒ Object
Returns the value of attribute reference.
-
#require_customs ⇒ Object
Returns the value of attribute require_customs.
-
#root_packages ⇒ Object
Returns the value of attribute root_packages.
-
#sales ⇒ Object
Returns the value of attribute sales.
-
#sent_to_3pl_at ⇒ Object
Returns the value of attribute sent_to_3pl_at.
-
#shipping_instructions ⇒ Object
Returns the value of attribute shipping_instructions.
-
#shipping_manifest ⇒ Object
Returns the value of attribute shipping_manifest.
-
#sscc_code ⇒ Object
Returns the value of attribute sscc_code.
-
#state ⇒ Object
Returns the value of attribute state.
-
#total_customs_value ⇒ Object
Returns the value of attribute total_customs_value.
-
#tpl_status ⇒ Object
Returns the value of attribute tpl_status.
-
#tracking_number ⇒ Object
Returns the value of attribute tracking_number.
-
#tsv ⇒ Object
Returns the value of attribute tsv.
-
#warehouse ⇒ Object
Returns the value of attribute warehouse.
-
#warehouse_input ⇒ Object
Returns the value of attribute warehouse_input.
-
#warehouse_storage ⇒ Object
Returns the value of attribute warehouse_storage.
-
#warehouse_type ⇒ Object
Returns the value of attribute warehouse_type.
-
#weight ⇒ Object
Returns the value of attribute weight.
-
#weight_digits ⇒ Object
Returns the value of attribute weight_digits.
-
#weight_uom ⇒ Object
Returns the value of attribute weight_uom.
-
#weight_uom_symbol ⇒ Object
Returns the value of attribute weight_uom_symbol.
-
#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
-
#create_default_package(id) ⇒ Object
Generate a default package for a CustomerShipmentReturn.
-
#create_package(id, options) ⇒ Object
Create a package for a CustomerShipmentReturn.
-
#generate_shipping_label(id) ⇒ Object
Generate a shipping label for a CustomerShipmentReturn.
-
#mark_as_done!(id) ⇒ Object
TODO: We don’t need to send the id here as is part of the object.
-
#receive!(id) ⇒ Object
Mark a CustomerShipmentRetun as received.
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
#aes_itn ⇒ Object
Returns the value of attribute aes_itn.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def aes_itn @aes_itn end |
#attachments ⇒ Object
Returns the value of attribute attachments.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def @attachments end |
#available_carrier_services ⇒ Object
Returns the value of attribute available_carrier_services.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def available_carrier_services @available_carrier_services end |
#carrier ⇒ Object
Returns the value of attribute carrier.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def carrier @carrier end |
#carrier_billing_account ⇒ Object
Returns the value of attribute carrier_billing_account.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def carrier_billing_account @carrier_billing_account end |
#carrier_cost_method ⇒ Object
Returns the value of attribute carrier_cost_method.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def carrier_cost_method @carrier_cost_method end |
#carrier_duties_account ⇒ Object
Returns the value of attribute carrier_duties_account.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def carrier_duties_account @carrier_duties_account end |
#carrier_service ⇒ Object
Returns the value of attribute carrier_service.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def carrier_service @carrier_service end |
#channels ⇒ Object
Returns the value of attribute channels.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def channels @channels end |
#company ⇒ Object
Returns the value of attribute company.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def company @company end |
#contents_explanation ⇒ Object
Returns the value of attribute contents_explanation.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def contents_explanation @contents_explanation end |
#contents_type ⇒ Object
Returns the value of attribute contents_type.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def contents_type @contents_type end |
#cost ⇒ Object
Returns the value of attribute cost.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def cost @cost end |
#cost_currency ⇒ Object
Returns the value of attribute cost_currency.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def cost_currency @cost_currency end |
#cost_currency_digits ⇒ Object
Returns the value of attribute cost_currency_digits.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def cost_currency_digits @cost_currency_digits end |
#create_date ⇒ Object
Returns the value of attribute create_date.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.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/customer_shipment_return.rb', line 7 def create_uid @create_uid end |
#customer ⇒ Object
Returns the value of attribute customer.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def customer @customer end |
#customer_location ⇒ Object
Returns the value of attribute customer_location.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def customer_location @customer_location end |
#customs_items ⇒ Object
Returns the value of attribute customs_items.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def customs_items @customs_items end |
#delivery_address ⇒ Object
Returns the value of attribute delivery_address.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def delivery_address @delivery_address end |
#delivery_mode ⇒ Object
Returns the value of attribute delivery_mode.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def delivery_mode @delivery_mode end |
#done_by ⇒ Object
Returns the value of attribute done_by.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def done_by @done_by end |
#duties_tax_id ⇒ Object
Returns the value of attribute duties_tax_id.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def duties_tax_id @duties_tax_id end |
#duties_tax_id_type ⇒ Object
Returns the value of attribute duties_tax_id_type.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def duties_tax_id_type @duties_tax_id_type end |
#eel_pfc ⇒ Object
Returns the value of attribute eel_pfc.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def eel_pfc @eel_pfc end |
#effective_date ⇒ Object
Returns the value of attribute effective_date.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def effective_date @effective_date end |
#eori_number ⇒ Object
Returns the value of attribute eori_number.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def eori_number @eori_number end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def id @id end |
#incoming_moves ⇒ Object
Returns the value of attribute incoming_moves.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def incoming_moves @incoming_moves end |
#inventory_moves ⇒ Object
Returns the value of attribute inventory_moves.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def inventory_moves @inventory_moves end |
#is_international_shipping ⇒ Object
Returns the value of attribute is_international_shipping.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def is_international_shipping @is_international_shipping end |
#is_shippo ⇒ Object
Returns the value of attribute is_shippo.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def is_shippo @is_shippo end |
#last_modification ⇒ Object
Returns the value of attribute last_modification.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def last_modification @last_modification end |
#license_plates ⇒ Object
Returns the value of attribute license_plates.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def license_plates @license_plates end |
#messages ⇒ Object
Returns the value of attribute messages.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def @messages end |
#metadata ⇒ Object
Returns the value of attribute metadata.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def @metadata end |
#moves ⇒ Object
Returns the value of attribute moves.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def moves @moves end |
#number ⇒ Object
Returns the value of attribute number.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def number @number end |
#origins ⇒ Object
Returns the value of attribute origins.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def origins @origins end |
#packages ⇒ Object
Returns the value of attribute packages.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def packages @packages end |
#planned_date ⇒ Object
Returns the value of attribute planned_date.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def planned_date @planned_date end |
#private_notes ⇒ Object
Returns the value of attribute private_notes.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def private_notes @private_notes end |
#public_notes ⇒ Object
Returns the value of attribute public_notes.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def public_notes @public_notes end |
#putaway_by ⇒ Object
Returns the value of attribute putaway_by.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def putaway_by @putaway_by end |
#rec_blurb ⇒ Object
Returns the value of attribute rec_blurb.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def rec_blurb @rec_blurb end |
#rec_name ⇒ Object
Returns the value of attribute rec_name.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def rec_name @rec_name end |
#received_by ⇒ Object
Returns the value of attribute received_by.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def received_by @received_by end |
#reference ⇒ Object
Returns the value of attribute reference.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def reference @reference end |
#require_customs ⇒ Object
Returns the value of attribute require_customs.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def require_customs @require_customs end |
#root_packages ⇒ Object
Returns the value of attribute root_packages.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def root_packages @root_packages end |
#sales ⇒ Object
Returns the value of attribute sales.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def sales @sales end |
#sent_to_3pl_at ⇒ Object
Returns the value of attribute sent_to_3pl_at.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def sent_to_3pl_at @sent_to_3pl_at end |
#shipping_instructions ⇒ Object
Returns the value of attribute shipping_instructions.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def shipping_instructions @shipping_instructions end |
#shipping_manifest ⇒ Object
Returns the value of attribute shipping_manifest.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def shipping_manifest @shipping_manifest end |
#sscc_code ⇒ Object
Returns the value of attribute sscc_code.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def sscc_code @sscc_code end |
#state ⇒ Object
Returns the value of attribute state.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def state @state end |
#total_customs_value ⇒ Object
Returns the value of attribute total_customs_value.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def total_customs_value @total_customs_value end |
#tpl_status ⇒ Object
Returns the value of attribute tpl_status.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def tpl_status @tpl_status end |
#tracking_number ⇒ Object
Returns the value of attribute tracking_number.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def tracking_number @tracking_number end |
#tsv ⇒ Object
Returns the value of attribute tsv.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def tsv @tsv end |
#warehouse ⇒ Object
Returns the value of attribute warehouse.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def warehouse @warehouse end |
#warehouse_input ⇒ Object
Returns the value of attribute warehouse_input.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def warehouse_input @warehouse_input end |
#warehouse_storage ⇒ Object
Returns the value of attribute warehouse_storage.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def warehouse_storage @warehouse_storage end |
#warehouse_type ⇒ Object
Returns the value of attribute warehouse_type.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def warehouse_type @warehouse_type end |
#weight ⇒ Object
Returns the value of attribute weight.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def weight @weight end |
#weight_digits ⇒ Object
Returns the value of attribute weight_digits.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def weight_digits @weight_digits end |
#weight_uom ⇒ Object
Returns the value of attribute weight_uom.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def weight_uom @weight_uom end |
#weight_uom_symbol ⇒ Object
Returns the value of attribute weight_uom_symbol.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 7 def weight_uom_symbol @weight_uom_symbol end |
#write_date ⇒ Object
Returns the value of attribute write_date.
7 8 9 |
# File 'lib/erp_integration/customer_shipment_return.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/customer_shipment_return.rb', line 7 def write_uid @write_uid end |
Instance Method Details
#create_default_package(id) ⇒ Object
Generate a default package for a ErpIntegration::CustomerShipmentReturn.
32 33 34 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 32 def create_default_package(id) self.class.adapter.create_default_package(id) end |
#create_package(id, options) ⇒ Object
Create a package for a ErpIntegration::CustomerShipmentReturn.
40 41 42 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 40 def create_package(id, ) self.class.adapter.create_package(id, ) end |
#generate_shipping_label(id) ⇒ Object
Generate a shipping label for a ErpIntegration::CustomerShipmentReturn.
25 26 27 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 25 def generate_shipping_label(id) self.class.adapter.generate_shipping_label(id) end |
#mark_as_done!(id) ⇒ Object
TODO: We don’t need to send the id here as is part of the object. Fix this and the rest of the methods doing the same
SBE-965
56 57 58 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 56 def mark_as_done!(id) self.class.adapter.mark_as_done!(id) end |
#receive!(id) ⇒ Object
Mark a CustomerShipmentRetun as received.
47 48 49 |
# File 'lib/erp_integration/customer_shipment_return.rb', line 47 def receive!(id) self.class.adapter.receive!(id) end |