com.paypal.api.openidconnect.CreateFromAuthorizationCodeParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.commerce.payment.method.paypal
Show all versions of com.liferay.commerce.payment.method.paypal
Liferay Commerce Payment Method PayPal
The newest version!
package com.paypal.api.openidconnect;
import com.paypal.base.ClientCredentials;
import java.util.HashMap;
import java.util.Map;
public class CreateFromAuthorizationCodeParameters extends ClientCredentials {
/**
* Code
*/
private static final String CODE = "code";
/**
* Redirect URI
*/
private static final String REDIRECTURI = "redirect_uri";
/**
* Grant Type
*/
private static final String GRANTTYPE = "grant_type";
// Map backing QueryParameters intended to processed
// by SDK library 'RESTUtil'
private Map containerMap;
public CreateFromAuthorizationCodeParameters() {
containerMap = new HashMap();
containerMap.put(GRANTTYPE, "authorization_code");
}
/**
* @return the containerMap
*/
public Map getContainerMap() {
return containerMap;
}
/**
* Set the code
*
* @param code
*/
public void setCode(String code) {
containerMap.put(CODE, code);
}
/**
* Set the redirect URI
*
* @param redirectURI
*/
public void setRedirectURI(String redirectURI) {
containerMap.put(REDIRECTURI, redirectURI);
}
/**
* Set the Grant Type
*
* @param grantType
*/
public void setGrantType(String grantType) {
containerMap.put(GRANTTYPE, grantType);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy