Class: PayPal::AdaptivePayments::InvoiceData

Inherits:
Object
  • Object
show all
Includes:
Common::Base
Defined in:
lib/paypal/adaptive_payments/invoice_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Common::Base

#after_initialize, #build_datetime, #build_value, #camelize, #hash_keys, #initialize, #request, #to_hash, #to_json, #underscore

Instance Attribute Details

#itemObject

Returns the value of attribute item.



5
6
7
# File 'lib/paypal/adaptive_payments/invoice_data.rb', line 5

def item
  @item
end

#total_shippingObject

Returns the value of attribute total_shipping.



7
8
9
# File 'lib/paypal/adaptive_payments/invoice_data.rb', line 7

def total_shipping
  @total_shipping
end

#total_taxObject

Returns the value of attribute total_tax.



6
7
8
# File 'lib/paypal/adaptive_payments/invoice_data.rb', line 6

def total_tax
  @total_tax
end

Instance Method Details

#set_item(value) ⇒ Object



9
10
11
# File 'lib/paypal/adaptive_payments/invoice_data.rb', line 9

def set_item(value)
  self.item = build_value(InvoiceItem, value)
end