Méthode |
Description |
|
addSetting ( TemplateSettings $templateSettings ) |
Append Settings to the list. |
|
create ( ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : Template |
Creates a template. |
|
delete ( ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : boolean |
Delete a particular template by passing the template ID to the request URI. |
|
get ( string $templateId, ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : Template |
Retrieve the details for a particular template by passing the template ID to the request URI. |
|
getCustom ( ) : boolean |
Indicates whether this is a custom template created by the merchant. Non custom templates are system generated |
|
getDefault ( ) : boolean |
Indicates that this template is merchant's default. There can be only one template which can be a default. |
|
getName ( ) : string |
Name of the template. |
|
getSettings ( ) : TemplateSettings[] |
Settings for each template |
|
getTemplateData ( ) : TemplateData |
Customized invoice data which is saved as template |
|
getTemplateId ( ) : string |
Unique identifier id of the template. |
|
getUnitOfMeasure ( ) : string |
Unit of measure for the template, possible values are Quantity, Hours, Amount. |
|
removeSetting ( TemplateSettings $templateSettings ) |
Remove Settings from the list. |
|
setCustom ( boolean $custom ) |
Indicates whether this is a custom template created by the merchant. Non custom templates are system generated |
|
setDefault ( boolean $default ) |
Indicates that this template is merchant's default. There can be only one template which can be a default. |
|
setName ( string $name ) |
Name of the template. |
|
setSettings ( TemplateSettings[] $settings ) |
Settings for each template |
|
setTemplateData ( TemplateData $template_data ) |
Customized invoice data which is saved as template |
|
setTemplateId ( string $template_id ) |
Unique identifier id of the template. |
|
setUnitOfMeasure ( string $unit_of_measure ) |
Unit of measure for the template, possible values are Quantity, Hours, Amount. |
|
update ( ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : Template |
Update an existing template by passing the template ID to the request URI. In addition, pass a complete template object in the request JSON. Partial updates are not supported. |
|