PHP 클래스 PayPal\Api\CurrencyConversion

Object used to store the currency conversion rate.
상속: extends PayPal\Common\PayPalModel
파일 보기 프로젝트 열기: paypal/rest-api-sdk-php 1 사용 예제들

공개 메소드들

메소드 설명
addLink ( PayPal\Api\Links $links ) Append Links to the list.
getConversionDate ( ) : string Date of validity for the conversion rate.
getConversionType ( ) : string Field indicating conversion type applied.
getConversionTypeChangeable ( ) : boolean Allow Payer to change conversion type.
getFromAmount ( ) : string Amount participating in currency conversion, set to 1 as default
getFromCurrency ( ) : string 3 letter currency code
getLinks ( ) : PayPal\Api\Links[] Gets Links
getToAmount ( ) : string Amount resulting from currency conversion.
getToCurrency ( ) : string 3 letter currency code
getWebUrl ( ) : string Base URL to web applications endpoint
removeLink ( PayPal\Api\Links $links ) Remove Links from the list.
setConversionDate ( string $conversion_date ) Date of validity for the conversion rate.
setConversionType ( string $conversion_type ) Field indicating conversion type applied.
setConversionTypeChangeable ( boolean $conversion_type_changeable ) Allow Payer to change conversion type.
setFromAmount ( string $from_amount ) Amount participating in currency conversion, set to 1 as default
setFromCurrency ( string $from_currency ) 3 letter currency code
setLinks ( PayPal\Api\Links[] $links ) Sets Links
setToAmount ( string $to_amount ) Amount resulting from currency conversion.
setToCurrency ( string $to_currency ) 3 letter currency code
setWebUrl ( string $web_url ) Base URL to web applications endpoint Valid Values: ["https://www.paypal.com/{country_code}/webapps/xocspartaweb/webflow/sparta/proxwebflow", "https://www.paypal.com/{country_code}/proxflow"]

메소드 상세

getConversionDate() 공개 메소드

Date of validity for the conversion rate.
public getConversionDate ( ) : string
리턴 string

getConversionType() 공개 메소드

Field indicating conversion type applied.
public getConversionType ( ) : string
리턴 string

getConversionTypeChangeable() 공개 메소드

Allow Payer to change conversion type.

getFromAmount() 공개 메소드

Amount participating in currency conversion, set to 1 as default
public getFromAmount ( ) : string
리턴 string

getFromCurrency() 공개 메소드

3 letter currency code
public getFromCurrency ( ) : string
리턴 string

getToAmount() 공개 메소드

Amount resulting from currency conversion.
public getToAmount ( ) : string
리턴 string

getToCurrency() 공개 메소드

3 letter currency code
public getToCurrency ( ) : string
리턴 string

getWebUrl() 공개 메소드

Base URL to web applications endpoint
사용 중단: Not publicly available
public getWebUrl ( ) : string
리턴 string

setConversionDate() 공개 메소드

Date of validity for the conversion rate.
public setConversionDate ( string $conversion_date )
$conversion_date string

setConversionType() 공개 메소드

Valid Values: ["PAYPAL", "VENDOR"]
public setConversionType ( string $conversion_type )
$conversion_type string

setConversionTypeChangeable() 공개 메소드

Allow Payer to change conversion type.
public setConversionTypeChangeable ( boolean $conversion_type_changeable )
$conversion_type_changeable boolean

setFromAmount() 공개 메소드

Amount participating in currency conversion, set to 1 as default
public setFromAmount ( string $from_amount )
$from_amount string

setFromCurrency() 공개 메소드

3 letter currency code
public setFromCurrency ( string $from_currency )
$from_currency string

setToAmount() 공개 메소드

Amount resulting from currency conversion.
public setToAmount ( string $to_amount )
$to_amount string

setToCurrency() 공개 메소드

3 letter currency code
public setToCurrency ( string $to_currency )
$to_currency string

setWebUrl() 공개 메소드

Base URL to web applications endpoint Valid Values: ["https://www.paypal.com/{country_code}/webapps/xocspartaweb/webflow/sparta/proxwebflow", "https://www.paypal.com/{country_code}/proxflow"]
사용 중단: Not publicly available
public setWebUrl ( string $web_url )
$web_url string