Class: PayPal::SDK::Merchant::DataTypes::MassPayRequestType

Inherits:
AbstractRequestType show all
Defined in:
lib/paypal-sdk/merchant/data_types.rb

Overview

Subject line of the email sent to all recipients. This subject is not contained in the input file; you must create it with your application. Optional Character length and limitations: 255 single-byte alphanumeric characters

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ MassPayRequestType

Returns a new instance of MassPayRequestType.



4036
4037
4038
4039
# File 'lib/paypal-sdk/merchant/data_types.rb', line 4036

def initialize(options={})
  super
  self.ButtonSource ||= "PayPal_SDK"
end

Class Method Details

.load_membersObject



4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
# File 'lib/paypal-sdk/merchant/data_types.rb', line 4041

def self.load_members
  # Subject line of the email sent to all recipients. This subject is not contained in the input file; you must create it with your application. Optional Character length and limitations: 255 single-byte alphanumeric characters
  object_of :EmailSubject, String, :namespace => :ns
  # Indicates how you identify the recipients of payments in all MassPayItems: either by EmailAddress (ReceiverEmail in MassPayItem), PhoneNumber (ReceiverPhone in MassPayItem), or by UserID (ReceiverID in MassPayItem). Required. You must specify one or the other of EmailAddress or UserID.
  object_of :ReceiverType, ReceiverInfoCodeType, :namespace => :ns
  # Known as BN code, to track the partner referred merchant transactions. OptionalCharacter length and limitations: 32 single-byte alphanumeric characters
  object_of :ButtonSource, String, :namespace => :ns
  # Details of each payment. A single MassPayRequest can include up to 250 MassPayItems. Required 
  array_of :MassPayItem, MassPayRequestItemType, :namespace => :ns, :required => true
end