PHP Класс PayPal\Api\PaymentDetail

Invoicing payment information.
Наследование: extends PayPal\Common\PayPalModel
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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