/// <summary>
 /// Constructor with arguments
 /// </summary>
 public AddBankAccountRequest(RequestEnvelope requestEnvelope, string bankCountryCode, ConfirmationType? confirmationType)
 {
     this.requestEnvelope = requestEnvelope;
     this.bankCountryCode = bankCountryCode;
     this.confirmationType = confirmationType;
 }
 /// <summary>
 /// Constructor with arguments
 /// </summary>
 public SetFundingSourceConfirmedRequest(RequestEnvelope requestEnvelope, string fundingSourceKey)
 {
     this.requestEnvelope = requestEnvelope;
     this.fundingSourceKey = fundingSourceKey;
 }
 /// <summary>
 /// Constructor with arguments
 /// </summary>
 public UpdateComplianceStatusRequest(RequestEnvelope requestEnvelope, AuditeeInfoType auditeeInfo, AuditDetailsType auditDetails)
 {
     this.requestEnvelope = requestEnvelope;
     this.auditeeInfo = auditeeInfo;
     this.auditDetails = auditDetails;
 }
 /// <summary>
 /// Constructor with arguments
 /// </summary>
 public GetUserAgreementRequest(RequestEnvelope requestEnvelope)
 {
     this.requestEnvelope = requestEnvelope;
 }
 /// <summary>
 /// Constructor with arguments
 /// </summary>
 public GetVerifiedStatusRequest(RequestEnvelope requestEnvelope, string matchCriteria)
 {
     this.requestEnvelope = requestEnvelope;
     this.matchCriteria = matchCriteria;
 }
 /// <summary>
 /// Constructor with arguments
 /// </summary>
 public ActivateProductRequest(RequestEnvelope requestEnvelope, AccountIdentifierType accountIdentifier)
 {
     this.requestEnvelope = requestEnvelope;
     this.accountIdentifier = accountIdentifier;
 }
 /// <summary>
 /// Constructor with arguments
 /// </summary>
 public CreateAccountRequest(RequestEnvelope requestEnvelope, NameType name, AddressType address, string preferredLanguageCode)
 {
     this.requestEnvelope = requestEnvelope;
     this.name = name;
     this.address = address;
     this.preferredLanguageCode = preferredLanguageCode;
 }
 /// <summary>
 /// Constructor with arguments
 /// </summary>
 public CheckComplianceStatusRequest(RequestEnvelope requestEnvelope, AccountIdentifierType accountIdentifier)
 {
     this.requestEnvelope = requestEnvelope;
     this.accountIdentifier = accountIdentifier;
 }
 /// <summary>
 /// Constructor with arguments
 /// </summary>
 public AddPaymentCardRequest(RequestEnvelope requestEnvelope, NameType nameOnCard, AddressType billingAddress, string cardNumber, CardTypeType? cardType, ConfirmationType? confirmationType)
 {
     this.requestEnvelope = requestEnvelope;
     this.nameOnCard = nameOnCard;
     this.billingAddress = billingAddress;
     this.cardNumber = cardNumber;
     this.cardType = cardType;
     this.confirmationType = confirmationType;
 }
 /// <summary>
 /// Constructor with arguments
 /// </summary>
 public AddPartnerFinancialProductRequest(RequestEnvelope requestEnvelope, AccountIdentifierType accountIdentifier, string cardNumber, string financialProductCategory, CardDateType expirationDate)
 {
     this.requestEnvelope = requestEnvelope;
     this.accountIdentifier = accountIdentifier;
     this.cardNumber = cardNumber;
     this.financialProductCategory = financialProductCategory;
     this.expirationDate = expirationDate;
 }
示例#11
0
 public GetVerifiedStatusRequest(RequestEnvelope requestEnvelope, string emailAddress, string matchCriteria)
 {
     this.requestEnvelope = requestEnvelope;
     this.emailAddress = emailAddress;
     this.matchCriteria = matchCriteria;
 }
    // # Create Account   	
    public CreateAccountRequest CreateAccount() 
    {
        // Request envelope object
        RequestEnvelope envelopeRequest = new RequestEnvelope();	
	
        // The name of the person for whom the PayPal account is created:
        //  
        // * FirstName  		
        // * LastName   		
        NameType name = new NameType("John", "David");	
	
        // The address to be associated with the PayPal account:    
        //      
        // * Street1    		
        // * countrycode    		
        // * city   		
        // * state  		
        // * postalcode 		
        AddressType address = new AddressType("Ape Way", "US");		
        address.city = "Austin";		
        address.state = "TX";		
        address.postalCode ="78750";

        // The CreateAccountRequest contains the information required    
        // to create a PayPal account for a business customer   
        // Instantiating createAccountRequest with mandatory arguments: 
		//      
        // * requesteEvelope    		
        // * name   		
        // * address    		
        // * preferredlanguagecode  	
        CreateAccountRequest createAccountRequest = new CreateAccountRequest(envelopeRequest, name, address, "en_US");		
        
        // The type of account to be created    
        // Allowable values:   
 		//      
        // * Personal    	
        // * Premier        	
        // * Business         		        
        createAccountRequest.accountType = "Personal";
		
        // The code of the country to be associated with the account       		
        createAccountRequest.citizenshipCountryCode = "US";		
        
        // Phone Number to be associated with the account   		
        createAccountRequest.contactPhoneNumber ="5126914160";		

        // The three letter code for the currency to be associated with the account 	
        createAccountRequest.currencyCode ="USD";   		
        
        // Email address of person for whom the PayPal account is created   		
        createAccountRequest.emailAddress = "*****@*****.**";  	
	
        // This attribute determines whether a key or a URL is returned for the redirect URL          
        createAccountRequest.registrationType = "Web";

        // IPN URL
        //      
        // * PayPal Instant Payment Notification is a call back system that is initiated when a transaction is completed        
        // * The transaction related IPN variables will be received on the call back URL specified in the request       
        // * The IPN variables have to be sent back to the PayPal system for validation, upon validation PayPal will send a response string "VERIFIED" or "INVALID"     
        // * PayPal would continuously resend IPN if a wrong IPN is sent        
        createAccountRequest.notificationURL = "http://IPNhost";

        return createAccountRequest;
    }