Class: PayPal::SDK::Invoice::DataTypes::InvoiceItemType

Inherits:
DataType
  • Object
show all
Defined in:
lib/paypal-sdk/invoice/data_types.rb

Overview

Item information about a service or product listed in the invoice.

Class Method Summary collapse

Class Method Details

.load_membersObject



209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
# File 'lib/paypal-sdk/invoice/data_types.rb', line 209

def self.load_members
  # SKU or item name. 
  object_of :name, String, :required => true
  # Description of the item. 
  object_of :description, String
  # Date on which the product or service was provided. 
  object_of :date, DateTime
  # Item count. 
  object_of :quantity, Float, :required => true
  # Price of the item, in the currency specified by the invoice. 
  object_of :unitPrice, Float, :required => true
  # A discount percent applied to the item, if any. 
  object_of :discountPercent, Float
  # A discount amount applied to the item, if any. If DiscountPercent is provided, DiscountAmount is ignored. 
  object_of :discountAmount, Float
  # Name of an applicable tax, if any. 
  object_of :taxName, String
  # Rate of an applicable tax, if any. 
  object_of :taxRate, Float
  # The tax amount on the item, either included or on top of it. 
  object_of :taxAmount, Float
  # Image URL of the item, if any. 
  object_of :imageUrl, String
end