|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.paypal.api.payments.Plan
public class Plan
| Constructor Summary | |
|---|---|
Plan()
Default Constructor |
|
Plan(String name,
String description,
String type)
Parameterized Constructor |
|
| Method Summary | |
|---|---|
Plan |
create(APIContext apiContext)
Create a new billing plan by passing the details for the plan, including the plan name, description, and type, to the request URI. |
Plan |
create(String accessToken)
Create a new billing plan by passing the details for the plan, including the plan name, description, and type, to the request URI. |
static Plan |
get(APIContext apiContext,
String planId)
Retrieve the details for a particular billing plan by passing the billing plan ID to the request URI. |
static Plan |
get(String accessToken,
String planId)
Retrieve the details for a particular billing plan by passing the billing plan ID to the request URI. |
String |
getCreateTime()
Getter for createTime |
String |
getDescription()
Getter for description |
String |
getId()
Getter for id |
static String |
getLastRequest()
Returns the last request sent to the Service |
static String |
getLastResponse()
Returns the last response returned by the Service |
List<Links> |
getLinks()
Getter for links |
MerchantPreferences |
getMerchantPreferences()
Getter for merchantPreferences |
String |
getName()
Getter for name |
List<PaymentDefinition> |
getPaymentDefinitions()
Getter for paymentDefinitions |
String |
getState()
Getter for state |
List<Terms> |
getTerms()
Getter for terms |
String |
getType()
Getter for type |
String |
getUpdateTime()
Getter for updateTime |
static OAuthTokenCredential |
initConfig(File file)
Initialize using a File(Properties file) |
static OAuthTokenCredential |
initConfig(InputStream is)
Initialize using InputStream(of a Properties file) |
static OAuthTokenCredential |
initConfig(Properties properties)
Initialize using Properties |
static PlanList |
list(APIContext apiContext,
Map<String,String> containerMap)
List billing plans according to optional query string parameters specified. |
static PlanList |
list(String accessToken,
Map<String,String> containerMap)
List billing plans according to optional query string parameters specified. |
Plan |
setCreateTime(String createTime)
Setter for createTime |
Plan |
setDescription(String description)
Setter for description |
Plan |
setId(String id)
Setter for id |
Plan |
setLinks(List<Links> links)
Setter for links |
Plan |
setMerchantPreferences(MerchantPreferences merchantPreferences)
Setter for merchantPreferences |
Plan |
setName(String name)
Setter for name |
Plan |
setPaymentDefinitions(List<PaymentDefinition> paymentDefinitions)
Setter for paymentDefinitions |
Plan |
setState(String state)
Setter for state |
Plan |
setTerms(List<Terms> terms)
Setter for terms |
Plan |
setType(String type)
Setter for type |
Plan |
setUpdateTime(String updateTime)
Setter for updateTime |
String |
toJSON()
Returns a JSON string corresponding to object state |
String |
toString()
|
void |
update(APIContext apiContext,
List<Patch> patchRequest)
Replace specific fields within a billing plan by passing the ID of the billing plan to the request URI. |
void |
update(String accessToken,
List<Patch> patchRequest)
Replace specific fields within a billing plan by passing the ID of the billing plan to the request URI. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Plan()
public Plan(String name,
String description,
String type)
| Method Detail |
|---|
public static String getLastRequest()
public static String getLastResponse()
public static OAuthTokenCredential initConfig(InputStream is)
throws PayPalRESTException
is - InputStream
PayPalRESTException
public static OAuthTokenCredential initConfig(File file)
throws PayPalRESTException
file - File object of a properties entity
PayPalRESTExceptionpublic static OAuthTokenCredential initConfig(Properties properties)
properties - Properties object
public Plan setId(String id)
public String getId()
public Plan setName(String name)
public String getName()
public Plan setDescription(String description)
public String getDescription()
public Plan setType(String type)
public String getType()
public Plan setState(String state)
public String getState()
public Plan setCreateTime(String createTime)
public String getCreateTime()
public Plan setUpdateTime(String updateTime)
public String getUpdateTime()
public Plan setPaymentDefinitions(List<PaymentDefinition> paymentDefinitions)
public List<PaymentDefinition> getPaymentDefinitions()
public Plan setTerms(List<Terms> terms)
public List<Terms> getTerms()
public Plan setMerchantPreferences(MerchantPreferences merchantPreferences)
public MerchantPreferences getMerchantPreferences()
public Plan setLinks(List<Links> links)
public List<Links> getLinks()
public static Plan get(String accessToken,
String planId)
throws PayPalRESTException
accessToken - Access Token used for the API call.planId - String
PayPalRESTException
public static Plan get(APIContext apiContext,
String planId)
throws PayPalRESTException
apiContext - APIContext used for the API call.planId - String
PayPalRESTException
public Plan create(String accessToken)
throws PayPalRESTException
accessToken - Access Token used for the API call.
PayPalRESTException
public Plan create(APIContext apiContext)
throws PayPalRESTException
apiContext - APIContext used for the API call.
PayPalRESTException
public void update(String accessToken,
List<Patch> patchRequest)
throws PayPalRESTException
accessToken - Access Token used for the API call.patchRequest - PatchRequest
PayPalRESTException
public void update(APIContext apiContext,
List<Patch> patchRequest)
throws PayPalRESTException
apiContext - APIContext used for the API call.patchRequest - PatchRequest
PayPalRESTException
public static PlanList list(String accessToken,
Map<String,String> containerMap)
throws PayPalRESTException
accessToken - Access Token used for the API call.containerMap - MapPayPalRESTException
public static PlanList list(APIContext apiContext,
Map<String,String> containerMap)
throws PayPalRESTException
apiContext - APIContext used for the API call.containerMap - MapPayPalRESTExceptionpublic String toJSON()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||