Class: Cetustek::Models::InvoiceData

Inherits:
Object
  • Object
show all
Defined in:
lib/cetustek/models/invoice_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ InvoiceData

Returns a new instance of InvoiceData.



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/cetustek/models/invoice_data.rb', line 11

def initialize(attributes = {})
  @order_id = attributes[:order_id]
  @order_date = attributes[:order_date]
  @buyer_identifier = attributes[:buyer_identifier]
  @buyer_name = attributes[:buyer_name]
  @buyer_email = attributes[:buyer_email]
  @donate_mark = attributes[:donate_mark]
  @carrier_type = attributes[:carrier_type]
  @carrier_id = attributes[:carrier_id]
  @npo_ban = attributes[:npo_ban]
  @items = attributes[:items] || []
  @payment_type = attributes[:payment_type]
  @total_discount = attributes[:total_discount] || 0
  @coupon_discount = attributes[:coupon_discount] || 0
  @delivery_fee = attributes[:delivery_fee] || 0
  @handling_fee = attributes[:handling_fee] || 0
end

Instance Attribute Details

#buyer_emailObject (readonly)

Returns the value of attribute buyer_email.



6
7
8
# File 'lib/cetustek/models/invoice_data.rb', line 6

def buyer_email
  @buyer_email
end

#buyer_identifierObject (readonly)

Returns the value of attribute buyer_identifier.



6
7
8
# File 'lib/cetustek/models/invoice_data.rb', line 6

def buyer_identifier
  @buyer_identifier
end

#buyer_nameObject (readonly)

Returns the value of attribute buyer_name.



6
7
8
# File 'lib/cetustek/models/invoice_data.rb', line 6

def buyer_name
  @buyer_name
end

#carrier_idObject (readonly)

Returns the value of attribute carrier_id.



6
7
8
# File 'lib/cetustek/models/invoice_data.rb', line 6

def carrier_id
  @carrier_id
end

#carrier_typeObject (readonly)

Returns the value of attribute carrier_type.



6
7
8
# File 'lib/cetustek/models/invoice_data.rb', line 6

def carrier_type
  @carrier_type
end

#coupon_discountObject (readonly)

Returns the value of attribute coupon_discount.



6
7
8
# File 'lib/cetustek/models/invoice_data.rb', line 6

def coupon_discount
  @coupon_discount
end

#delivery_feeObject (readonly)

Returns the value of attribute delivery_fee.



6
7
8
# File 'lib/cetustek/models/invoice_data.rb', line 6

def delivery_fee
  @delivery_fee
end

Returns the value of attribute donate_mark.



6
7
8
# File 'lib/cetustek/models/invoice_data.rb', line 6

def donate_mark
  @donate_mark
end

#handling_feeObject (readonly)

Returns the value of attribute handling_fee.



6
7
8
# File 'lib/cetustek/models/invoice_data.rb', line 6

def handling_fee
  @handling_fee
end

#itemsObject (readonly)

Returns the value of attribute items.



6
7
8
# File 'lib/cetustek/models/invoice_data.rb', line 6

def items
  @items
end

#npo_banObject (readonly)

Returns the value of attribute npo_ban.



6
7
8
# File 'lib/cetustek/models/invoice_data.rb', line 6

def npo_ban
  @npo_ban
end

#order_dateObject (readonly)

Returns the value of attribute order_date.



6
7
8
# File 'lib/cetustek/models/invoice_data.rb', line 6

def order_date
  @order_date
end

#order_idObject (readonly)

Returns the value of attribute order_id.



6
7
8
# File 'lib/cetustek/models/invoice_data.rb', line 6

def order_id
  @order_id
end

#payment_typeObject (readonly)

Returns the value of attribute payment_type.



6
7
8
# File 'lib/cetustek/models/invoice_data.rb', line 6

def payment_type
  @payment_type
end

#total_discountObject (readonly)

Returns the value of attribute total_discount.



6
7
8
# File 'lib/cetustek/models/invoice_data.rb', line 6

def total_discount
  @total_discount
end