PHP Class PayPal\Api\PaymentDetail

Invoicing payment information.
Inheritance: extends PayPal\Common\PayPalModel
Afficher le fichier Open project: paypal/rest-api-sdk-php Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

getAmount() public méthode

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
Résultat PayPal\Api\Currency

getDate() public méthode

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
Résultat string

getMethod() public méthode

The payment mode or method. Required with the EXTERNAL payment type.
public getMethod ( ) : string
Résultat string

getNote() public méthode

Optional. A note associated with the payment.
public getNote ( ) : string
Résultat string

getTransactionId() public méthode

The PayPal payment transaction ID. Required with the PAYPAL payment type.
public getTransactionId ( ) : string
Résultat string

getTransactionType() public méthode

Type of the transaction.
public getTransactionType ( ) : string
Résultat string

getType() public méthode

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
Résultat string

setAmount() public méthode

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() public méthode

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() public méthode

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

setNote() public méthode

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

setTransactionId() public méthode

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

setTransactionType() public méthode

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

setType() public méthode

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