PHP 클래스 PayPal\Api\PaymentDetail

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

공개 메소드들

메소드 설명
getAmount ( ) : PayPal\Api\Currency The amount to record as payment against invoice. If you omit this parameter, the total invoice amount is recorded as payment.
getDate ( ) : string The date when the invoice was paid. The date format is *yyyy*-*MM*-*dd* *z* as defined in Internet Date/Time Format.
getMethod ( ) : string The payment mode or method. Required with the EXTERNAL payment type.
getNote ( ) : string Optional. A note associated with the payment.
getTransactionId ( ) : string The PayPal payment transaction ID. Required with the PAYPAL payment type.
getTransactionType ( ) : string Type of the transaction.
getType ( ) : string The PayPal payment detail. Indicates whether payment was made in an invoicing flow through PayPal or externally. In the case of the mark-as-paid API, the supported payment type is EXTERNAL. For backward compatibility, the PAYPAL payment type is still supported.
setAmount ( PayPal\Api\Currency $amount ) The amount to record as payment against invoice. If you omit this parameter, the total invoice amount is recorded as payment.
setDate ( string $date ) The date when the invoice was paid. The date format is *yyyy*-*MM*-*dd* *z* as defined in Internet Date/Time Format.
setMethod ( string $method ) The payment mode or method. Required with the EXTERNAL payment type.
setNote ( string $note ) Optional. A note associated with the payment.
setTransactionId ( string $transaction_id ) The PayPal payment transaction ID. Required with the PAYPAL payment type.
setTransactionType ( string $transaction_type ) Type of the transaction.
setType ( string $type ) The PayPal payment detail. Indicates whether payment was made in an invoicing flow through PayPal or externally. In the case of the mark-as-paid API, the supported payment type is EXTERNAL. For backward compatibility, the PAYPAL payment type is still supported.

메소드 상세

getAmount() 공개 메소드

The amount to record as payment against invoice. If you omit this parameter, the total invoice amount is recorded as payment.
public getAmount ( ) : PayPal\Api\Currency
리턴 PayPal\Api\Currency

getDate() 공개 메소드

The date when the invoice was paid. The date format is *yyyy*-*MM*-*dd* *z* as defined in Internet Date/Time Format.
public getDate ( ) : string
리턴 string

getMethod() 공개 메소드

The payment mode or method. Required with the EXTERNAL payment type.
public getMethod ( ) : string
리턴 string

getNote() 공개 메소드

Optional. A note associated with the payment.
public getNote ( ) : string
리턴 string

getTransactionId() 공개 메소드

The PayPal payment transaction ID. Required with the PAYPAL payment type.
public getTransactionId ( ) : string
리턴 string

getTransactionType() 공개 메소드

Type of the transaction.
public getTransactionType ( ) : string
리턴 string

getType() 공개 메소드

The PayPal payment detail. Indicates whether payment was made in an invoicing flow through PayPal or externally. In the case of the mark-as-paid API, the supported payment type is EXTERNAL. For backward compatibility, the PAYPAL payment type is still supported.
public getType ( ) : string
리턴 string

setAmount() 공개 메소드

The amount to record as payment against invoice. If you omit this parameter, the total invoice amount is recorded as payment.
public setAmount ( PayPal\Api\Currency $amount )
$amount PayPal\Api\Currency

setDate() 공개 메소드

The date when the invoice was paid. The date format is *yyyy*-*MM*-*dd* *z* as defined in Internet Date/Time Format.
public setDate ( string $date )
$date string

setMethod() 공개 메소드

Valid Values: ["BANK_TRANSFER", "CASH", "CHECK", "CREDIT_CARD", "DEBIT_CARD", "PAYPAL", "WIRE_TRANSFER", "OTHER"]
public setMethod ( string $method )
$method string

setNote() 공개 메소드

Optional. A note associated with the payment.
public setNote ( string $note )
$note string

setTransactionId() 공개 메소드

The PayPal payment transaction ID. Required with the PAYPAL payment type.
public setTransactionId ( string $transaction_id )
$transaction_id string

setTransactionType() 공개 메소드

Valid Values: ["SALE", "AUTHORIZATION", "CAPTURE"]
public setTransactionType ( string $transaction_type )
$transaction_type string

setType() 공개 메소드

Valid Values: ["PAYPAL", "EXTERNAL"]
public setType ( string $type )
$type string