public class Template extends PayPalResource
| Constructor and Description |
|---|
Template()
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
Template |
create(APIContext apiContext)
Creates a template.
|
void |
delete(APIContext apiContext)
Delete a particular template by passing the template ID to the request URI.
|
boolean |
equals(java.lang.Object o) |
static Template |
get(APIContext apiContext,
java.lang.String templateId)
Retrieve the details for a particular template by passing the template ID to the request URI.
|
static Templates |
getAll(APIContext apiContext)
Retrieves the template information of the merchant.
|
java.lang.Boolean |
getCustom()
Indicates whether this is a custom template created by the merchant.
|
java.lang.Boolean |
getIsDefault()
Indicates that this template is merchant's default.
|
java.lang.String |
getName()
Name of the template.
|
java.util.List<TemplateSettings> |
getSettings()
Settings for each template
|
TemplateData |
getTemplateData()
Customized invoice data which is saved as template
|
java.lang.String |
getTemplateId()
Unique identifier id of the template.
|
java.lang.String |
getUnitOfMeasure()
Unit of measure for the template, possible values are Quantity, Hours, Amount.
|
int |
hashCode() |
Template |
setCustom(java.lang.Boolean custom)
Indicates whether this is a custom template created by the merchant.
|
Template |
setIsDefault(java.lang.Boolean isDefault)
Indicates that this template is merchant's default.
|
Template |
setName(java.lang.String name)
Name of the template.
|
Template |
setSettings(java.util.List<TemplateSettings> settings)
Settings for each template
|
Template |
setTemplateData(TemplateData templateData)
Customized invoice data which is saved as template
|
Template |
setTemplateId(java.lang.String templateId)
Unique identifier id of the template.
|
Template |
setUnitOfMeasure(java.lang.String unitOfMeasure)
Unit of measure for the template, possible values are Quantity, Hours, Amount.
|
Template |
update(APIContext apiContext)
Update an existing template by passing the template ID to the request URI.
|
configureAndExecute, configureAndExecute, configureAndExecute, configureAndExecute, createAPICallPreHandler, getClientCredential, getClientID, getClientSecret, getConfigurations, getCredential, getLastRequest, getLastResponse, getOAuthTokenCredential, initConfig, initConfig, initConfig, initializeToDefaulttoJSON, toStringpublic static Template get(APIContext apiContext, java.lang.String templateId) throws PayPalRESTException
apiContext - APIContext used for the API call.templateId - StringPayPalRESTExceptionpublic static Templates getAll(APIContext apiContext) throws PayPalRESTException
apiContext - APIContext used for the API call.PayPalRESTExceptionpublic void delete(APIContext apiContext) throws PayPalRESTException
apiContext - APIContext used for the API call.PayPalRESTExceptionpublic Template create(APIContext apiContext) throws PayPalRESTException
apiContext - APIContext used for the API call.PayPalRESTExceptionpublic Template update(APIContext apiContext) throws PayPalRESTException
apiContext - APIContext used for the API call.
TemplatePayPalRESTExceptionpublic java.lang.String getTemplateId()
public java.lang.String getName()
public java.lang.Boolean getIsDefault()
public TemplateData getTemplateData()
public java.util.List<TemplateSettings> getSettings()
public java.lang.String getUnitOfMeasure()
public java.lang.Boolean getCustom()
public Template setTemplateId(java.lang.String templateId)
public Template setName(java.lang.String name)
public Template setIsDefault(java.lang.Boolean isDefault)
public Template setTemplateData(TemplateData templateData)
public Template setSettings(java.util.List<TemplateSettings> settings)
public Template setUnitOfMeasure(java.lang.String unitOfMeasure)
public Template setCustom(java.lang.Boolean custom)
public boolean equals(java.lang.Object o)
equals in class PayPalModelprotected boolean canEqual(java.lang.Object other)
canEqual in class PayPalModelpublic int hashCode()
hashCode in class PayPalModel