PHP 클래스 Laravel\Cashier\Invoice

파일 보기 프로젝트 열기: laravel/cashier-braintree 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$transaction Braintree\Transaction The Braintree transaction instance.
$user Illuminate\Database\Eloquent\Model The user instance.

공개 메소드들

메소드 설명
__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.

보호된 메소드들

메소드 설명
formatAmount ( integer $amount ) : string Format the given amount into a string based on the user's preferences.

메소드 상세

__construct() 공개 메소드

Create a new invoice instance.
public __construct ( Model $user, Transaction $transaction ) : void
$user Illuminate\Database\Eloquent\Model
$transaction Braintree\Transaction
리턴 void

__get() 공개 메소드

Dynamically get values from the Braintree transaction.
public __get ( string $key ) : mixed
$key string
리턴 mixed

addOn() 공개 메소드

Get the discount amount.
public addOn ( ) : string
리턴 string

addOnAmount() 공개 메소드

Get the raw add-on amount.
public addOnAmount ( ) : float
리턴 float

addOns() 공개 메소드

Get the add-on codes applied to the invoice.
public addOns ( ) : array
리턴 array

amountOff() 공개 메소드

Get the discount amount for the invoice.
public amountOff ( ) : string
리턴 string

asBraintreeTransaction() 공개 메소드

Get the Braintree transaction instance.
public asBraintreeTransaction ( ) : Transaction
리턴 Braintree\Transaction

coupons() 공개 메소드

Get the coupon codes applied to the invoice.
public coupons ( ) : array
리턴 array

date() 공개 메소드

Get a Carbon date for the invoice.
public date ( DateTimeZone | string $timezone = null ) : Carbon\Carbon
$timezone DateTimeZone | string
리턴 Carbon\Carbon

discount() 공개 메소드

Get the discount amount.
public discount ( ) : string
리턴 string

discountAmount() 공개 메소드

Get the raw discount amount.
public discountAmount ( ) : float
리턴 float

download() 공개 메소드

Create an invoice download response.
public download ( array $data ) : Response
$data array
리턴 Symfony\Component\HttpFoundation\Response

formatAmount() 보호된 메소드

Format the given amount into a string based on the user's preferences.
protected formatAmount ( integer $amount ) : string
$amount integer
리턴 string

hasAddon() 공개 메소드

Determine if the invoice has any add-ons.
public hasAddon ( ) : boolean
리턴 boolean

hasDiscount() 공개 메소드

Determine if the invoice has a discount.
public hasDiscount ( ) : boolean
리턴 boolean

pdf() 공개 메소드

Capture the invoice as a PDF and return the raw bytes.
public pdf ( array $data ) : string
$data array
리턴 string

rawTotal() 공개 메소드

Get the raw total amount that was paid (or will be paid).
public rawTotal ( ) : float
리턴 float

subtotal() 공개 메소드

Get the total of the invoice (before discounts).
public subtotal ( ) : string
리턴 string

total() 공개 메소드

Get the total amount that was paid (or will be paid).
public total ( ) : string
리턴 string

view() 공개 메소드

Get the View instance for the invoice.
public view ( array $data ) : Illuminate\View\View
$data array
리턴 Illuminate\View\View

프로퍼티 상세

$transaction 보호되어 있는 프로퍼티

The Braintree transaction instance.
protected Transaction,Braintree $transaction
리턴 Braintree\Transaction

$user 보호되어 있는 프로퍼티

The user instance.
protected Model,Illuminate\Database\Eloquent $user
리턴 Illuminate\Database\Eloquent\Model