Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.paypal.api.payments;
  
  
  public class MerchantPreferences  extends PayPalModel {

Identifier of the merchant_preferences. 128 characters max.
  
 	private String id;

Setup fee amount. Default is 0.
 
 	private Currency setupFee;

Redirect URL on cancellation of agreement request. 1000 characters max.
 
 	private String cancelUrl;

Redirect URL on creation of agreement request. 1000 characters max.
 
 	private String returnUrl;

Notify URL on agreement creation. 1000 characters max.
 
 	private String notifyUrl;

Total number of failed attempts allowed. Default is 0, representing an infinite number of failed attempts.
 
 	private String maxFailAttempts;

Allow auto billing for the outstanding amount of the agreement in the next cycle. Allowed values: `YES`, `NO`. Default is `NO`.
 
 	private String autoBillAmount;

Action to take if a failure occurs during initial payment. Allowed values: `CONTINUE`, `CANCEL`. Default is continue.
 
Payment types that are accepted for this plan.
 
char_set for this plan.
 
 	private String charSet;

Default Constructor
 
 	public MerchantPreferences() {
 	}

Parameterized Constructor
 
 	public MerchantPreferences(String cancelUrlString returnUrl) {
 		this. = cancelUrl;
 		this. = returnUrl;
 	}


Setter for id
 
 	public MerchantPreferences setId(String id) {
 		this. = id;
 		return this;
 	}

Getter for id
 
 	public String getId() {
 		return this.;
 	}


Setter for setupFee
 
 	public MerchantPreferences setSetupFee(Currency setupFee) {
 		this. = setupFee;
 		return this;
 	}

Getter for setupFee
 
 	public Currency getSetupFee() {
		return this.;
	}


Setter for cancelUrl
	public MerchantPreferences setCancelUrl(String cancelUrl) {
		this. = cancelUrl;
		return this;
	}

Getter for cancelUrl
	public String getCancelUrl() {
		return this.;
	}


Setter for returnUrl
	public MerchantPreferences setReturnUrl(String returnUrl) {
		this. = returnUrl;
		return this;
	}

Getter for returnUrl
	public String getReturnUrl() {
		return this.;
	}


Setter for notifyUrl
	public MerchantPreferences setNotifyUrl(String notifyUrl) {
		this. = notifyUrl;
		return this;
	}

Getter for notifyUrl
	public String getNotifyUrl() {
		return this.;
	}


Setter for maxFailAttempts
	public MerchantPreferences setMaxFailAttempts(String maxFailAttempts) {
		this. = maxFailAttempts;
		return this;
	}

Getter for maxFailAttempts
		return this.;
	}


Setter for autoBillAmount
	public MerchantPreferences setAutoBillAmount(String autoBillAmount) {
		this. = autoBillAmount;
		return this;
	}

Getter for autoBillAmount
		return this.;
	}


Setter for initialFailAmountAction
	public MerchantPreferences setInitialFailAmountAction(String initialFailAmountAction) {
		this. = initialFailAmountAction;
		return this;
	}

Getter for initialFailAmountAction
	}


Setter for acceptedPaymentType
	public MerchantPreferences setAcceptedPaymentType(String acceptedPaymentType) {
		this. = acceptedPaymentType;
		return this;
	}

Getter for acceptedPaymentType
		return this.;
	}


Setter for charSet
		this. = charSet;
		return this;
	}

Getter for charSet
	public String getCharSet() {
		return this.;
	}
New to GrepCode? Check out our FAQ X