Class: PayPal::SDK::ButtonManager::DataTypes::InvoiceItemType

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

Overview

Describes an individual item for an invoice.

Class Method Summary collapse

Class Method Details

.load_membersObject



3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
# File 'lib/paypal-sdk/button_manager/data_types.rb', line 3143

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