Class: Cadooz::Mutable::Order

Inherits:
Object
  • Object
show all
Includes:
Mixins
Defined in:
lib/cadooz/models/mutable/order.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Mixins

#cadooz_class, #default_value_for_nil, #instance_variables_empty?, #serialize

Constructor Details

#initialize(args = {}) ⇒ Order

Returns a new instance of Order.



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/cadooz/models/mutable/order.rb', line 10

def initialize(args={})
  @client = args[:client]
  @commission = args[:commission]
  @cost_owner = args[:cost_owner]
  @cost_unit = args[:cost_unit]
  @credit_or_number = args[:credit_or_number]
  @customer_reference_number = args[:customer_reference_number]
  @delivery_address = args[:delivery_address] # Cadooz::Mutable::Address.new
  @generation_profile = args[:generation_profile]
  @greeting_card = args[:greeting_card] # Cadooz::Mutable::GreetingCard.new
  @invoice_address = args[:invoice_address] # Cadooz::Mutable::Address.new
  @invoice_information = Array(args[:invoice_information]) # Cadooz::Mutable::InvoiceInformation
  @language = args[:language]
  @order_attributes = args[:order_attributes]
  @order_description = args[:order_description]
  @order_positions = Array(args[:order_positions]) # Cadooz::Mutable::OrderPosition
  @payment_informations = Array(args[:payment_informations]) # Cadooz::Mutable::Payment
  @queue = args[:queue]
  @send_mail = args[:send_mail]
  @test = args[:test]
  @website = args[:website]
end

Instance Attribute Details

#clientObject

Returns the value of attribute client.



4
5
6
# File 'lib/cadooz/models/mutable/order.rb', line 4

def client
  @client
end

#commissionObject

Returns the value of attribute commission.



4
5
6
# File 'lib/cadooz/models/mutable/order.rb', line 4

def commission
  @commission
end

#cost_ownerObject

Returns the value of attribute cost_owner.



4
5
6
# File 'lib/cadooz/models/mutable/order.rb', line 4

def cost_owner
  @cost_owner
end

#cost_unitObject

Returns the value of attribute cost_unit.



4
5
6
# File 'lib/cadooz/models/mutable/order.rb', line 4

def cost_unit
  @cost_unit
end

#credit_or_numberObject

Returns the value of attribute credit_or_number.



4
5
6
# File 'lib/cadooz/models/mutable/order.rb', line 4

def credit_or_number
  @credit_or_number
end

#customer_reference_numberObject

Returns the value of attribute customer_reference_number.



4
5
6
# File 'lib/cadooz/models/mutable/order.rb', line 4

def customer_reference_number
  @customer_reference_number
end

#delivery_addressObject

Returns the value of attribute delivery_address.



4
5
6
# File 'lib/cadooz/models/mutable/order.rb', line 4

def delivery_address
  @delivery_address
end

#generation_profileObject

Returns the value of attribute generation_profile.



4
5
6
# File 'lib/cadooz/models/mutable/order.rb', line 4

def generation_profile
  @generation_profile
end

#greeting_cardObject

Returns the value of attribute greeting_card.



4
5
6
# File 'lib/cadooz/models/mutable/order.rb', line 4

def greeting_card
  @greeting_card
end

#invoice_addressObject

Returns the value of attribute invoice_address.



4
5
6
# File 'lib/cadooz/models/mutable/order.rb', line 4

def invoice_address
  @invoice_address
end

#invoice_informationObject

Returns the value of attribute invoice_information.



4
5
6
# File 'lib/cadooz/models/mutable/order.rb', line 4

def invoice_information
  @invoice_information
end

#languageObject

Returns the value of attribute language.



4
5
6
# File 'lib/cadooz/models/mutable/order.rb', line 4

def language
  @language
end

#order_attributesObject

Returns the value of attribute order_attributes.



4
5
6
# File 'lib/cadooz/models/mutable/order.rb', line 4

def order_attributes
  @order_attributes
end

#order_descriptionObject

Returns the value of attribute order_description.



4
5
6
# File 'lib/cadooz/models/mutable/order.rb', line 4

def order_description
  @order_description
end

#order_positionsObject

Returns the value of attribute order_positions.



4
5
6
# File 'lib/cadooz/models/mutable/order.rb', line 4

def order_positions
  @order_positions
end

#payment_informationsObject

Returns the value of attribute payment_informations.



4
5
6
# File 'lib/cadooz/models/mutable/order.rb', line 4

def payment_informations
  @payment_informations
end

#queueObject

Returns the value of attribute queue.



4
5
6
# File 'lib/cadooz/models/mutable/order.rb', line 4

def queue
  @queue
end

#send_mailObject

Returns the value of attribute send_mail.



4
5
6
# File 'lib/cadooz/models/mutable/order.rb', line 4

def send_mail
  @send_mail
end

#testObject

Returns the value of attribute test.



4
5
6
# File 'lib/cadooz/models/mutable/order.rb', line 4

def test
  @test
end

#websiteObject

Returns the value of attribute website.



4
5
6
# File 'lib/cadooz/models/mutable/order.rb', line 4

def website
  @website
end