Class: PaymentItemType

Inherits:
Object
  • Object
show all
Defined in:
lib/paypal-business/default.rb

Overview

urn:ebay:apis:eBLBaseComponentsPaymentItemType

Constant Summary collapse

@@schema_type =
"PaymentItemType"
@@schema_ns =
"urn:ebay:apis:eBLBaseComponents"
@@schema_element =
[
  ["name", ["SOAP::SOAPString", XSD::QName.new("urn:ebay:apis:eBLBaseComponents", "Name")]],
  ["number", ["SOAP::SOAPString", XSD::QName.new("urn:ebay:apis:eBLBaseComponents", "Number")]],
  ["quantity", ["SOAP::SOAPString", XSD::QName.new("urn:ebay:apis:eBLBaseComponents", "Quantity")]],
  ["salesTax", ["SOAP::SOAPString", XSD::QName.new("urn:ebay:apis:eBLBaseComponents", "SalesTax")]],
  ["amount", ["BasicAmountType", XSD::QName.new("urn:ebay:apis:eBLBaseComponents", "Amount")]],
  ["options", ["OptionType[]", XSD::QName.new("urn:ebay:apis:eBLBaseComponents", "Options")]]
]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, number = nil, quantity = nil, salesTax = nil, amount = nil, options = []) ⇒ PaymentItemType

Returns a new instance of PaymentItemType.



3925
3926
3927
3928
3929
3930
3931
3932
# File 'lib/paypal-business/default.rb', line 3925

def initialize(name = nil, number = nil, quantity = nil, salesTax = nil, amount = nil, options = [])
  @name = name
  @number = number
  @quantity = quantity
  @salesTax = salesTax
  @amount = amount
  @options = options
end

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



3922
3923
3924
# File 'lib/paypal-business/default.rb', line 3922

def amount
  @amount
end

#nameObject

Returns the value of attribute name.



3918
3919
3920
# File 'lib/paypal-business/default.rb', line 3918

def name
  @name
end

#numberObject

Returns the value of attribute number.



3919
3920
3921
# File 'lib/paypal-business/default.rb', line 3919

def number
  @number
end

#optionsObject

Returns the value of attribute options.



3923
3924
3925
# File 'lib/paypal-business/default.rb', line 3923

def options
  @options
end

#quantityObject

Returns the value of attribute quantity.



3920
3921
3922
# File 'lib/paypal-business/default.rb', line 3920

def quantity
  @quantity
end

#salesTaxObject

Returns the value of attribute salesTax.



3921
3922
3923
# File 'lib/paypal-business/default.rb', line 3921

def salesTax
  @salesTax
end