Class: PayPal::SDK::AdaptiveAccounts::DataTypes::CreateAccountRequest

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

Overview

Valid values are: Personal, Premier, and Business. Flag=“2” corresponds to java.util.regex.Pattern.CASE_INSENSITIVE, meaning the strings are not case-sensitive

Class Method Summary collapse

Class Method Details

.load_membersObject



231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
# File 'lib/paypal-sdk/adaptive_accounts/data_types.rb', line 231

def self.load_members
  object_of :requestEnvelope, RequestEnvelope, :required => true
  object_of :clientDetails, ClientDetailsType
  # Valid values are: Personal, Premier, and Business. Flag="2" corresponds to java.util.regex.Pattern.CASE_INSENSITIVE, meaning the strings are not case-sensitive 
  object_of :accountType, String
  object_of :name, NameType, :required => true
  object_of :dateOfBirth, Date
  object_of :address, AddressType, :required => true
  # Must provide at least one of contactPhoneNumber, homePhoneNumber, or mobilePhoneNumber 
  object_of :contactPhoneNumber, String
  # Must provide at least one of contactPhoneNumber, homePhoneNumber, or mobilePhoneNumber 
  object_of :homePhoneNumber, String
  # Must provide at least one of contactPhoneNumber, homePhoneNumber, or mobilePhoneNumber 
  object_of :mobilePhoneNumber, String
  object_of :currencyCode, String
  object_of :citizenshipCountryCode, String
  object_of :preferredLanguageCode, String, :required => true
  object_of :notificationURL, String
  object_of :emailAddress, String
  # Valid values are: Mobile and Web. Mobile: Returns a key to complete the registration. Web: Returns a URL to complete the registration. 
  object_of :registrationType, String
  object_of :createAccountWebOptions, CreateAccountWebOptionsType
  object_of :suppressWelcomeEmail, Boolean
  # Set to true if you want this account to undergo extra vetting by PayPal before becoming usable. 
  object_of :performExtraVettingOnThisAccount, Boolean
  # tax id, ssn, itin, pan, cpf, acn, abn, etc. 
  object_of :taxId, String
  object_of :partnerField1, String
  object_of :partnerField2, String
  object_of :partnerField3, String
  object_of :partnerField4, String
  object_of :partnerField5, String
  # Required for business account creation 
  object_of :businessInfo, BusinessInfoType
  # An ID representing a unique value, such as SSN, TIN, SIN, TaxID, etc. generally issued by a Government. Currently supports only SIN for Canada. 
  array_of :governmentId, GovernmentIDPair
  # Account Holder's profession, values such as: Accountant, Actuary, Advocate, Architect, Business Owner, Doctor, Dentist, Engineer, Financial Analyst, Lawyer, Librarian, Nurse, Pilot, Pharmacist, Physician, Physicial Therapist, Professor, Psychologist, Scientist, Teacher, Webmaster, Writer, Student, Other 
  object_of :profession, String
  # Account Holder's occupation. For business accounts only. Values: Executive, President, Vice President, Director, Manager, Staff, Other. 
  object_of :occupation, String
  # Account Holder's functional area. For business accounts only. Values: Finance, Operations, Technology, Sales, Marketing, Other 
  object_of :functionalArea, String
  # Boolean value, indicates whether user has agreed for a particular agreement or not. 
  array_of :legalAgreement, LegalAgreementType
  # Expected Value: 0|1|2|3|4|5 according to the description below: 0 - "Send payments for goods and/or services to domestic merchants" 1 - "Send payments for goods and/or services to cross-border merchants" 2 - "Send payments for goods and/or services to domestic and cross-border merchants" 3 - "Receive payments for goods and/or services from domestic buyers" 4 - "Receive payments for goods and/or services from cross-border buyers" 5 - "Receive payments for goods and/or service from domestic/cross-border buyers" 
  object_of :purposeOfAccount, String
end