PHP 클래스 Bitpay\Client\Client

상속: implements Bitpay\Client\ClientInterface
파일 보기 프로젝트 열기: bitpay/php-client 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$adapter Bitpay\Client\Adapter\AdapterInterface
$network Bitpay\Network\NetworkInterface
$privateKey Bitpay\PrivateKey
$publicKey Bitpay\PublicKey
$request Bitpay\Client\RequestInterface
$response Bitpay\Client\ResponseInterface
$token Bitpay\TokenInterface

공개 메소드들

메소드 설명
createInvoice ( Bitpay\InvoiceInterface $invoice )
createPayout ( Bitpay\PayoutInterface $payout )
createToken ( array $payload = [] )
deletePayout ( Bitpay\PayoutInterface $payout )
getCurrencies ( )
getInvoice ( $invoiceId )
getPayout ( $payoutId )
getPayouts ( $status = null )
getRequest ( ) : Bitpay\Client\RequestInterface Returns the request object that was sent to BitPay
getResponse ( ) : Bitpay\Client\ResponseInterface Returns the Response object that BitPay returned from the request that was sent
getTokens ( )
sendRequest ( Bitpay\Client\RequestInterface $request ) : Bitpay\Client\ResponseInterface
setAdapter ( Bitpay\Client\Adapter\AdapterInterface $adapter )
setNetwork ( Bitpay\Network\NetworkInterface $network ) The network is either livenet or testnet and tells the client where to send the requests.
setPrivateKey ( PrivateKey $key ) Set the Private Key to use, this is used when signing request strings
setPublicKey ( PublicKey $key ) Set the Public Key to use to help identify who you are to BitPay. Please note that you must first pair your keys and get a token in return to use.
setToken ( Bitpay\TokenInterface $token ) : Bitpay\Client\ClientInterface

보호된 메소드들

메소드 설명
addIdentityHeader ( Bitpay\Client\RequestInterface $request )
addSignatureHeader ( Bitpay\Client\RequestInterface $request )
checkPriceAndCurrency ( $price, $currency )
createNewRequest ( ) : Bitpay\Client\RequestInterface
prepareRequestHeaders ( Bitpay\Client\RequestInterface $request ) Prepares the request object by adding additional headers

메소드 상세

addIdentityHeader() 보호된 메소드

protected addIdentityHeader ( Bitpay\Client\RequestInterface $request )
$request Bitpay\Client\RequestInterface

addSignatureHeader() 보호된 메소드

protected addSignatureHeader ( Bitpay\Client\RequestInterface $request )
$request Bitpay\Client\RequestInterface

checkPriceAndCurrency() 보호된 메소드

protected checkPriceAndCurrency ( $price, $currency )

createInvoice() 공개 메소드

public createInvoice ( Bitpay\InvoiceInterface $invoice )
$invoice Bitpay\InvoiceInterface

createNewRequest() 보호된 메소드

protected createNewRequest ( ) : Bitpay\Client\RequestInterface
리턴 Bitpay\Client\RequestInterface

createPayout() 공개 메소드

public createPayout ( Bitpay\PayoutInterface $payout )
$payout Bitpay\PayoutInterface

createToken() 공개 메소드

public createToken ( array $payload = [] )
$payload array

deletePayout() 공개 메소드

public deletePayout ( Bitpay\PayoutInterface $payout )
$payout Bitpay\PayoutInterface

getCurrencies() 공개 메소드

public getCurrencies ( )

getInvoice() 공개 메소드

public getInvoice ( $invoiceId )

getPayout() 공개 메소드

public getPayout ( $payoutId )

getPayouts() 공개 메소드

public getPayouts ( $status = null )

getRequest() 공개 메소드

Returns the request object that was sent to BitPay
public getRequest ( ) : Bitpay\Client\RequestInterface
리턴 Bitpay\Client\RequestInterface

getResponse() 공개 메소드

Returns the Response object that BitPay returned from the request that was sent
public getResponse ( ) : Bitpay\Client\ResponseInterface
리턴 Bitpay\Client\ResponseInterface

getTokens() 공개 메소드

public getTokens ( )

prepareRequestHeaders() 보호된 메소드

Prepares the request object by adding additional headers
protected prepareRequestHeaders ( Bitpay\Client\RequestInterface $request )
$request Bitpay\Client\RequestInterface

sendRequest() 공개 메소드

public sendRequest ( Bitpay\Client\RequestInterface $request ) : Bitpay\Client\ResponseInterface
$request Bitpay\Client\RequestInterface
리턴 Bitpay\Client\ResponseInterface

setAdapter() 공개 메소드

public setAdapter ( Bitpay\Client\Adapter\AdapterInterface $adapter )
$adapter Bitpay\Client\Adapter\AdapterInterface

setNetwork() 공개 메소드

The network is either livenet or testnet and tells the client where to send the requests.
public setNetwork ( Bitpay\Network\NetworkInterface $network )
$network Bitpay\Network\NetworkInterface

setPrivateKey() 공개 메소드

Set the Private Key to use, this is used when signing request strings
public setPrivateKey ( PrivateKey $key )
$key Bitpay\PrivateKey

setPublicKey() 공개 메소드

Set the Public Key to use to help identify who you are to BitPay. Please note that you must first pair your keys and get a token in return to use.
public setPublicKey ( PublicKey $key )
$key Bitpay\PublicKey

setToken() 공개 메소드

public setToken ( Bitpay\TokenInterface $token ) : Bitpay\Client\ClientInterface
$token Bitpay\TokenInterface
리턴 Bitpay\Client\ClientInterface

프로퍼티 상세

$adapter 보호되어 있는 프로퍼티

protected AdapterInterface,Bitpay\Client\Adapter $adapter
리턴 Bitpay\Client\Adapter\AdapterInterface

$network 보호되어 있는 프로퍼티

protected NetworkInterface,Bitpay\Network $network
리턴 Bitpay\Network\NetworkInterface

$privateKey 보호되어 있는 프로퍼티

protected PrivateKey,Bitpay $privateKey
리턴 Bitpay\PrivateKey

$publicKey 보호되어 있는 프로퍼티

protected PublicKey,Bitpay $publicKey
리턴 Bitpay\PublicKey

$request 보호되어 있는 프로퍼티

protected RequestInterface,Bitpay\Client $request
리턴 Bitpay\Client\RequestInterface

$response 보호되어 있는 프로퍼티

protected ResponseInterface,Bitpay\Client $response
리턴 Bitpay\Client\ResponseInterface

$token 보호되어 있는 프로퍼티

protected TokenInterface,Bitpay $token
리턴 Bitpay\TokenInterface