Class: Cetustek::Models::InvoiceData
- Inherits:
-
Object
- Object
- Cetustek::Models::InvoiceData
- Defined in:
- lib/cetustek/models/invoice_data.rb
Instance Attribute Summary collapse
-
#buyer_email ⇒ Object
readonly
Returns the value of attribute buyer_email.
-
#buyer_identifier ⇒ Object
readonly
Returns the value of attribute buyer_identifier.
-
#buyer_name ⇒ Object
readonly
Returns the value of attribute buyer_name.
-
#carrier_id ⇒ Object
readonly
Returns the value of attribute carrier_id.
-
#carrier_type ⇒ Object
readonly
Returns the value of attribute carrier_type.
-
#coupon_discount ⇒ Object
readonly
Returns the value of attribute coupon_discount.
-
#delivery_fee ⇒ Object
readonly
Returns the value of attribute delivery_fee.
-
#donate_mark ⇒ Object
readonly
Returns the value of attribute donate_mark.
-
#handling_fee ⇒ Object
readonly
Returns the value of attribute handling_fee.
-
#items ⇒ Object
readonly
Returns the value of attribute items.
-
#npo_ban ⇒ Object
readonly
Returns the value of attribute npo_ban.
-
#order_date ⇒ Object
readonly
Returns the value of attribute order_date.
-
#order_id ⇒ Object
readonly
Returns the value of attribute order_id.
-
#payment_type ⇒ Object
readonly
Returns the value of attribute payment_type.
-
#total_discount ⇒ Object
readonly
Returns the value of attribute total_discount.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ InvoiceData
constructor
A new instance of InvoiceData.
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_email ⇒ Object (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_identifier ⇒ Object (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_name ⇒ Object (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_id ⇒ Object (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_type ⇒ Object (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_discount ⇒ Object (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_fee ⇒ Object (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 |
#donate_mark ⇒ Object (readonly)
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_fee ⇒ Object (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 |
#items ⇒ Object (readonly)
Returns the value of attribute items.
6 7 8 |
# File 'lib/cetustek/models/invoice_data.rb', line 6 def items @items end |
#npo_ban ⇒ Object (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_date ⇒ Object (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_id ⇒ Object (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_type ⇒ Object (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_discount ⇒ Object (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 |