Class: ErpIntegration::PurchaseOrder

Inherits:
Resource
  • Object
show all
Defined in:
lib/erp_integration/purchase_order.rb

Overview

The ‘ErpIntegration::PurchaseOrder` exposes an uniformed API for interaction with third-party ERP vendors.

Instance Attribute Summary collapse

Attributes inherited from Resource

#raw_api_response

Method Summary

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

#approval_statusObject

Returns the value of attribute approval_status.



7
8
9
# File 'lib/erp_integration/purchase_order.rb', line 7

def approval_status
  @approval_status
end

#attachmentsObject

Returns the value of attribute attachments.



7
8
9
# File 'lib/erp_integration/purchase_order.rb', line 7

def attachments
  @attachments
end

#companyObject

Returns the value of attribute company.



7
8
9
# File 'lib/erp_integration/purchase_order.rb', line 7

def company
  @company
end

#create_dateObject

Returns the value of attribute create_date.



7
8
9
# File 'lib/erp_integration/purchase_order.rb', line 7

def create_date
  @create_date
end

#create_uidObject

Returns the value of attribute create_uid.



7
8
9
# File 'lib/erp_integration/purchase_order.rb', line 7

def create_uid
  @create_uid
end

#currencyObject

Returns the value of attribute currency.



7
8
9
# File 'lib/erp_integration/purchase_order.rb', line 7

def currency
  @currency
end

#customerObject

Returns the value of attribute customer.



7
8
9
# File 'lib/erp_integration/purchase_order.rb', line 7

def customer
  @customer
end

#delivery_addressObject

Returns the value of attribute delivery_address.



7
8
9
# File 'lib/erp_integration/purchase_order.rb', line 7

def delivery_address
  @delivery_address
end

#descriptionObject

Returns the value of attribute description.



7
8
9
# File 'lib/erp_integration/purchase_order.rb', line 7

def description
  @description
end

#idObject

Returns the value of attribute id.



7
8
9
# File 'lib/erp_integration/purchase_order.rb', line 7

def id
  @id
end

#invoice_addressObject

Returns the value of attribute invoice_address.



7
8
9
# File 'lib/erp_integration/purchase_order.rb', line 7

def invoice_address
  @invoice_address
end

#invoice_methodObject

Returns the value of attribute invoice_method.



7
8
9
# File 'lib/erp_integration/purchase_order.rb', line 7

def invoice_method
  @invoice_method
end

#invoice_stateObject

Returns the value of attribute invoice_state.



7
8
9
# File 'lib/erp_integration/purchase_order.rb', line 7

def invoice_state
  @invoice_state
end

#invoicesObject

Returns the value of attribute invoices.



7
8
9
# File 'lib/erp_integration/purchase_order.rb', line 7

def invoices
  @invoices
end

#linesObject

Returns the value of attribute lines.



7
8
9
# File 'lib/erp_integration/purchase_order.rb', line 7

def lines
  @lines
end

#metadataObject

Returns the value of attribute metadata.



7
8
9
# File 'lib/erp_integration/purchase_order.rb', line 7

def 
  @metadata
end

#numberObject

Returns the value of attribute number.



7
8
9
# File 'lib/erp_integration/purchase_order.rb', line 7

def number
  @number
end

#partyObject

Returns the value of attribute party.



7
8
9
# File 'lib/erp_integration/purchase_order.rb', line 7

def party
  @party
end

#payment_termObject

Returns the value of attribute payment_term.



7
8
9
# File 'lib/erp_integration/purchase_order.rb', line 7

def payment_term
  @payment_term
end

#purchase_dateObject

Returns the value of attribute purchase_date.



7
8
9
# File 'lib/erp_integration/purchase_order.rb', line 7

def purchase_date
  @purchase_date
end

#purchase_personObject

Returns the value of attribute purchase_person.



7
8
9
# File 'lib/erp_integration/purchase_order.rb', line 7

def purchase_person
  @purchase_person
end

#referenceObject

Returns the value of attribute reference.



7
8
9
# File 'lib/erp_integration/purchase_order.rb', line 7

def reference
  @reference
end

#shipment_methodObject

Returns the value of attribute shipment_method.



7
8
9
# File 'lib/erp_integration/purchase_order.rb', line 7

def shipment_method
  @shipment_method
end

#shipmentsObject

Returns the value of attribute shipments.



7
8
9
# File 'lib/erp_integration/purchase_order.rb', line 7

def shipments
  @shipments
end

#stateObject

Returns the value of attribute state.



7
8
9
# File 'lib/erp_integration/purchase_order.rb', line 7

def state
  @state
end

#tax_amountObject

Returns the value of attribute tax_amount.



7
8
9
# File 'lib/erp_integration/purchase_order.rb', line 7

def tax_amount
  @tax_amount
end

#total_amountObject

Returns the value of attribute total_amount.



7
8
9
# File 'lib/erp_integration/purchase_order.rb', line 7

def total_amount
  @total_amount
end

#total_quantityObject

Returns the value of attribute total_quantity.



7
8
9
# File 'lib/erp_integration/purchase_order.rb', line 7

def total_quantity
  @total_quantity
end

#untaxed_amountObject

Returns the value of attribute untaxed_amount.



7
8
9
# File 'lib/erp_integration/purchase_order.rb', line 7

def untaxed_amount
  @untaxed_amount
end

#warehouseObject

Returns the value of attribute warehouse.



7
8
9
# File 'lib/erp_integration/purchase_order.rb', line 7

def warehouse
  @warehouse
end

#write_dateObject

Returns the value of attribute write_date.



7
8
9
# File 'lib/erp_integration/purchase_order.rb', line 7

def write_date
  @write_date
end

#write_uidObject

Returns the value of attribute write_uid.



7
8
9
# File 'lib/erp_integration/purchase_order.rb', line 7

def write_uid
  @write_uid
end