Documentation

InvoiceService
in package

Table of Contents

$whmcs_api  : IWhmcsHttpClient
__construct()  : mixed
details()  : InvoiceObject
exists()  : bool
fetchByProductIdAndUserAndStatus()  : Collection
fetchInvoiceStatusById()  : string
Retrieves the invoice status from WHMCS
store()  : InvoiceObject
update()  : InvoiceObject
updatePaymentMethod()  : bool
Update the paymentMethod of the invoice

Properties

Methods

exists()

public exists(int $invoiceId) : bool
Parameters
$invoiceId : int
Return values
bool

fetchByProductIdAndUserAndStatus()

public fetchByProductIdAndUserAndStatus(int $product_id[, int|null $userid = null ][, InvoiceStatus|null $status = null ]) : Collection
Parameters
$product_id : int
$userid : int|null = null
$status : InvoiceStatus|null = null
Return values
Collection

fetchInvoiceStatusById()

Retrieves the invoice status from WHMCS

public fetchInvoiceStatusById(int $invoiceId) : string
Parameters
$invoiceId : int
Return values
string

the invoice status

updatePaymentMethod()

Update the paymentMethod of the invoice

public updatePaymentMethod(int $invoiceId, PaymentGateway $paymentGateway) : bool
Parameters
$invoiceId : int
$paymentGateway : PaymentGateway
Return values
bool

Search results