Class: PayPal::SDK::ButtonManagerRails::DataTypes::InvoiceItemType

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

Overview

Describes an individual item for an invoice.

Class Method Summary collapse

Class Method Details

.load_membersObject



3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
# File 'lib/paypal-sdk/button_manager_rails/data_types.rb', line 3178

def self.load_members
  # a human readable item nameOptional Character length and limits: 127 single-byte characters 
  object_of :Name, String, :namespace => :ebl
  # a human readable item descriptionOptional Character length and limits: 127 single-byte characters 
  object_of :Description, String, :namespace => :ebl
  # The International Article Number or Universal Product Code (UPC) for the item. Empty string is allowed. Character length and limits: 17 single-byte characters 
  object_of :EAN, String, :namespace => :ebl
  # The Stock-Keeping Unit or other identification code assigned to the item. Character length and limits: 64 single-byte characters 
  object_of :SKU, String, :namespace => :ebl
  # A retailer could apply different return policies on different items. Each return policy would be identified using a label or identifier. This return policy identifier should be set here. This identifier will be displayed next to the item in the e-Receipt. Character length and limits: 8 single-byte characters 
  object_of :ReturnPolicyIdentifier, String, :namespace => :ebl
  # total price of this item 
  object_of :Price, BasicAmountType, :namespace => :ebl
  # price per item quantity 
  object_of :ItemPrice, BasicAmountType, :namespace => :ebl
  # quantity of the item (non-negative) 
  object_of :ItemCount, Float, :namespace => :ebl
  # Unit of measure for the itemCount 
  object_of :ItemCountUnit, UnitOfMeasure, :namespace => :ebl
  # discount applied to this item 
  array_of :Discount, DiscountType, :namespace => :ebl
  # identifies whether this item is taxable or not. If not passed, this will be assumed to be true. 
  object_of :Taxable, Boolean, :namespace => :ebl
  # The tax percentage applied to the item. This is only used for displaying in the receipt, it is not used in pricing calculations. Note: we have totalTax at invoice level. It's up to the caller to do the calculations for setting that other element. 
  object_of :TaxRate, Float, :namespace => :ebl
  # Additional fees to this item 
  array_of :AdditionalFees, AdditionalFeeType, :namespace => :ebl
  # identifies whether this is reimbursable or not. If not pass, this will be assumed to be true. 
  object_of :Reimbursable, Boolean, :namespace => :ebl
  # Manufacturer part number. 
  object_of :MPN, String, :namespace => :ebl
  # International Standard Book Number. Reference http://en.wikipedia.org/wiki/ISBN Character length and limits: 32 single-byte characters 
  object_of :ISBN, String, :namespace => :ebl
  # Price Look-Up code Reference http://en.wikipedia.org/wiki/Price_Look-Up_code Character length and limits: 5 single-byte characters 
  object_of :PLU, String, :namespace => :ebl
  # Character length and limits: 32 single-byte characters 
  object_of :ModelNumber, String, :namespace => :ebl
  # Character length and limits: 32 single-byte characters 
  object_of :StyleNumber, String, :namespace => :ebl
end