PHP 클래스 PayPal\Api\Template

Invoicing Template
상속: extends PayPal\Common\PayPalResourceModel
파일 보기 프로젝트 열기: paypal/rest-api-sdk-php 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

addSetting() 공개 메소드

Append Settings to the list.
public addSetting ( TemplateSettings $templateSettings )
$templateSettings TemplateSettings

create() 공개 메소드

Creates a template.
public create ( ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : Template
$apiContext PayPal\Rest\ApiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
$restCall PayPal\Transport\PayPalRestCall is the Rest Call Service that is used to make rest calls
리턴 Template

delete() 공개 메소드

Delete a particular template by passing the template ID to the request URI.
public delete ( ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : boolean
$apiContext PayPal\Rest\ApiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
$restCall PayPal\Transport\PayPalRestCall is the Rest Call Service that is used to make rest calls
리턴 boolean

get() 공개 정적인 메소드

Retrieve the details for a particular template by passing the template ID to the request URI.
public static get ( string $templateId, ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : Template
$templateId string
$apiContext PayPal\Rest\ApiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
$restCall PayPal\Transport\PayPalRestCall is the Rest Call Service that is used to make rest calls
리턴 Template

getCustom() 공개 메소드

Indicates whether this is a custom template created by the merchant. Non custom templates are system generated
public getCustom ( ) : boolean
리턴 boolean

getDefault() 공개 메소드

Indicates that this template is merchant's default. There can be only one template which can be a default.
public getDefault ( ) : boolean
리턴 boolean

getName() 공개 메소드

Name of the template.
public getName ( ) : string
리턴 string

getSettings() 공개 메소드

Settings for each template
public getSettings ( ) : TemplateSettings[]
리턴 TemplateSettings[]

getTemplateData() 공개 메소드

Customized invoice data which is saved as template
public getTemplateData ( ) : TemplateData
리턴 TemplateData

getTemplateId() 공개 메소드

Unique identifier id of the template.
public getTemplateId ( ) : string
리턴 string

getUnitOfMeasure() 공개 메소드

Unit of measure for the template, possible values are Quantity, Hours, Amount.
public getUnitOfMeasure ( ) : string
리턴 string

removeSetting() 공개 메소드

Remove Settings from the list.
public removeSetting ( TemplateSettings $templateSettings )
$templateSettings TemplateSettings

setCustom() 공개 메소드

Indicates whether this is a custom template created by the merchant. Non custom templates are system generated
public setCustom ( boolean $custom )
$custom boolean

setDefault() 공개 메소드

Indicates that this template is merchant's default. There can be only one template which can be a default.
public setDefault ( boolean $default )
$default boolean

setName() 공개 메소드

Name of the template.
public setName ( string $name )
$name string

setSettings() 공개 메소드

Settings for each template
public setSettings ( TemplateSettings[] $settings )
$settings TemplateSettings[]

setTemplateData() 공개 메소드

Customized invoice data which is saved as template
public setTemplateData ( TemplateData $template_data )
$template_data TemplateData

setTemplateId() 공개 메소드

Unique identifier id of the template.
public setTemplateId ( string $template_id )
$template_id string

setUnitOfMeasure() 공개 메소드

Unit of measure for the template, possible values are Quantity, Hours, Amount.
public setUnitOfMeasure ( string $unit_of_measure )
$unit_of_measure string

update() 공개 메소드

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.
public update ( ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : Template
$apiContext PayPal\Rest\ApiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
$restCall PayPal\Transport\PayPalRestCall is the Rest Call Service that is used to make rest calls
리턴 Template