Method |
Description |
|
__construct ( Model $user, Transaction $transaction ) : void |
Create a new invoice instance. |
|
__get ( string $key ) : mixed |
Dynamically get values from the Braintree transaction. |
|
addOn ( ) : string |
Get the discount amount. |
|
addOnAmount ( ) : float |
Get the raw add-on amount. |
|
addOns ( ) : array |
Get the add-on codes applied to the invoice. |
|
amountOff ( ) : string |
Get the discount amount for the invoice. |
|
asBraintreeTransaction ( ) : Transaction |
Get the Braintree transaction instance. |
|
coupons ( ) : array |
Get the coupon codes applied to the invoice. |
|
date ( DateTimeZone | string $timezone = null ) : Carbon\Carbon |
Get a Carbon date for the invoice. |
|
discount ( ) : string |
Get the discount amount. |
|
discountAmount ( ) : float |
Get the raw discount amount. |
|
download ( array $data ) : Response |
Create an invoice download response. |
|
hasAddon ( ) : boolean |
Determine if the invoice has any add-ons. |
|
hasDiscount ( ) : boolean |
Determine if the invoice has a discount. |
|
pdf ( array $data ) : string |
Capture the invoice as a PDF and return the raw bytes. |
|
rawTotal ( ) : float |
Get the raw total amount that was paid (or will be paid). |
|
subtotal ( ) : string |
Get the total of the invoice (before discounts). |
|
total ( ) : string |
Get the total amount that was paid (or will be paid). |
|
view ( array $data ) : Illuminate\View\View |
Get the View instance for the invoice. |
|