PHP Класс PayPal\Api\Templates

List of templates belonging to merchant.
Наследование: extends PayPal\Common\PayPalResourceModel
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
addAddress ( Address $address ) Append Addresses to the list.
addEmail ( string $string ) Append Emails to the list.
addPhone ( Phone $phone ) Append Phones to the list.
addTemplate ( Template $template ) Append Templates to the list.
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.
getAddresses ( ) : Address[] List of addresses in merchant's profile.
getAll ( array $params = [], ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : Templates Retrieves the template information of the merchant.
getEmails ( ) : string[] List of emails in merchant's profile.
getPhones ( ) : Phone[] List of phone numbers in merchant's profile.
getTemplates ( ) : Template[] Array of templates.
removeAddress ( Address $address ) Remove Addresses from the list.
removeEmail ( string $string ) Remove Emails from the list.
removePhone ( Phone $phone ) Remove Phones from the list.
removeTemplate ( Template $template ) Remove Templates from the list.
setAddresses ( Address[] $addresses ) List of addresses in merchant's profile.
setEmails ( string[] $emails ) List of emails in merchant's profile.
setPhones ( Phone[] $phones ) List of phone numbers in merchant's profile.
setTemplates ( Template[] $templates ) Array of templates.

Описание методов

addAddress() публичный Метод

Append Addresses to the list.
public addAddress ( Address $address )
$address Address

addEmail() публичный Метод

Append Emails to the list.
public addEmail ( string $string )
$string string

addPhone() публичный Метод

Append Phones to the list.
public addPhone ( Phone $phone )
$phone Phone

addTemplate() публичный Метод

Append Templates to the list.
public addTemplate ( Template $template )
$template Template

get() публичный статический Метод

Retrieve the details for a particular template by passing the template ID to the request URI.
См. также: Template::get
Устаревший: Please use `Template::get()` instead.
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

getAddresses() публичный Метод

List of addresses in merchant's profile.
public getAddresses ( ) : Address[]
Результат Address[]

getAll() публичный статический Метод

Retrieves the template information of the merchant.
public static getAll ( array $params = [], ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : Templates
$params array
$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
Результат Templates

getEmails() публичный Метод

List of emails in merchant's profile.
public getEmails ( ) : string[]
Результат string[]

getPhones() публичный Метод

List of phone numbers in merchant's profile.
public getPhones ( ) : Phone[]
Результат Phone[]

getTemplates() публичный Метод

Array of templates.
public getTemplates ( ) : Template[]
Результат Template[]

removeAddress() публичный Метод

Remove Addresses from the list.
public removeAddress ( Address $address )
$address Address

removeEmail() публичный Метод

Remove Emails from the list.
public removeEmail ( string $string )
$string string

removePhone() публичный Метод

Remove Phones from the list.
public removePhone ( Phone $phone )
$phone Phone

removeTemplate() публичный Метод

Remove Templates from the list.
public removeTemplate ( Template $template )
$template Template

setAddresses() публичный Метод

List of addresses in merchant's profile.
public setAddresses ( Address[] $addresses )
$addresses Address[]

setEmails() публичный Метод

List of emails in merchant's profile.
public setEmails ( string[] $emails )
$emails string[]

setPhones() публичный Метод

List of phone numbers in merchant's profile.
public setPhones ( Phone[] $phones )
$phones Phone[]

setTemplates() публичный Метод

Array of templates.
public setTemplates ( Template[] $templates )
$templates Template[]