\Einvoicing\Payments\Payment¶
getId()
¶
Get payment ID
public getId(): string|null
Returns
string
|null
— Payment ID
setId()
¶
Set payment ID
public setId($id: string|null): \Einvoicing\Payments\Payment
Parameters
$id
:string
|null
— Payment ID
Returns
\Einvoicing\Payments\Payment
— Payment instance
getMeansCode()
¶
Get payment means code
public getMeansCode(): string|null
Returns
string
|null
— Payment means code
setMeansCode()
¶
Set payment means code
public setMeansCode($meansCode: string): \Einvoicing\Payments\Payment
Parameters
$meansCode
:string
— Payment means code
Returns
\Einvoicing\Payments\Payment
— Payment instance
getMeansText()
¶
Get payment means text
public getMeansText(): string|null
Returns
string
|null
— Payment means text
setMeansText()
¶
Set payment means text
public setMeansText($meansText: string|null): \Einvoicing\Payments\Payment
Parameters
$meansText
:string
|null
— Payment means text
Returns
\Einvoicing\Payments\Payment
— Payment instance
getTerms()
¶
Get payment terms
public getTerms(): string|null
Returns
string
|null
— Payment terms
setTerms()
¶
Set payment terms
public setTerms($terms: string|null): \Einvoicing\Payments\Payment
Parameters
$terms
:string
|null
— Payment terms
Returns
\Einvoicing\Payments\Payment
— Payment instance
getTransfers()
¶
Get payment transfers
public getTransfers(): \Einvoicing\Payments\Transfer[]
Returns
\Einvoicing\Payments\Transfer
[] — Array of transfers
addTransfer()
¶
Add payment transfers
public addTransfer($transfer: \Einvoicing\Payments\Transfer): \Einvoicing\Payments\Payment
Parameters
$transfer
:\Einvoicing\Payments\Transfer
— Transfer instance
Returns
\Einvoicing\Payments\Payment
— Payment instance
removeTransfer()
¶
Remove payment transfer
public removeTransfer($index: int): \Einvoicing\Payments\Payment
Parameters
$index
:int
— Transfer index
Returns
\Einvoicing\Payments\Payment
— Payment instance
Throws
\OutOfBoundsException
if transfer index is out of bounds
clearTransfers()
¶
Clear all payment transfers
public clearTransfers(): \Einvoicing\Payments\Payment
Returns
\Einvoicing\Payments\Payment
— Payment instance
getCard()
¶
Get payment card
public getCard(): \Einvoicing\Payments\Card|null
Returns
\Einvoicing\Payments\Card
|null
— Card instance
setCard()
¶
Set payment card
public setCard($card: \Einvoicing\Payments\Card|null): \Einvoicing\Payments\Payment
Parameters
$card
:\Einvoicing\Payments\Card
|null
— Card instance
Returns
\Einvoicing\Payments\Payment
— Payment instance
getMandate()
¶
Get payment mandate
public getMandate(): \Einvoicing\Payments\Mandate|null
Returns
\Einvoicing\Payments\Mandate
|null
— Mandate instance
setMandate()
¶
Set payment mandate
public setMandate($mandate: \Einvoicing\Payments\Mandate|null): \Einvoicing\Payments\Payment
Parameters
$mandate
:\Einvoicing\Payments\Mandate
|null
— Mandate instance
Returns
\Einvoicing\Payments\Payment
— Payment instance