PHP 클래스 PayPal\Api\Templates

List of templates belonging to merchant.
상속: extends PayPal\Common\PayPalResourceModel
파일 보기 프로젝트 열기: paypal/rest-api-sdk-php 1 사용 예제들

공개 메소드들

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