메소드 |
설명 |
|
applyCoupon ( string $coupon, string $subscription = 'default', boolean $removeOthers = false ) : void |
Apply a coupon to the billable entity. |
|
asBraintreeCustomer ( ) : Customer |
Get the Braintree customer for the user. |
|
charge ( integer $amount, array $options = [] ) : Transaction |
Make a "one off" charge on the customer for the given amount. |
|
createAsBraintreeCustomer ( string $token, array $options = [] ) : Customer |
Create a Braintree customer for the given user. |
|
downloadInvoice ( string $id, array $data, string $storagePath = null ) : Response |
Create an invoice download Response. |
|
findInvoice ( string $id ) : Invoice | null |
Find an invoice by ID. |
|
findInvoiceOrFail ( string $id ) : Invoice |
Find an invoice or throw a 404 error. |
|
hasBraintreeId ( ) : boolean |
Determine if the entity has a Braintree customer ID. |
|
invoiceFor ( string $description, integer $amount, array $options = [] ) : Transaction |
Invoice the customer for the given amount. |
|
invoices ( boolean $includePending = false, array $parameters = [] ) : Collection |
Get a collection of the entity's invoices. |
|
invoicesIncludingPending ( array $parameters = [] ) : Collection |
Get an array of the entity's invoices. |
|
newSubscription ( string $subscription, string $plan ) : SubscriptionBuilder |
Begin creating a new subscription. |
|
onGenericTrial ( ) : boolean |
Determine if the user is on a "generic" trial at the user level. |
|
onPlan ( string $plan ) : boolean |
Determine if the entity is on the given plan. |
|
onTrial ( string $subscription = 'default', string | null $plan = null ) : boolean |
Determine if the user is on trial. |
|
subscribed ( string $subscription = 'default', string | null $plan = null ) : boolean |
Determine if the user has a given subscription. |
|
subscribedToPlan ( array | string $plans, string $subscription = 'default' ) : boolean |
Determine if the user is actively subscribed to one of the given plans. |
|
subscription ( string $subscription = 'default' ) : Subscription | null |
Get a subscription instance by name. |
|
subscriptions ( ) : Illuminate\Database\Eloquent\Collection |
Get all of the subscriptions for the user. |
|
taxPercentage ( ) : integer |
Get the tax percentage to apply to the subscription. |
|
updateCard ( string $token, array $options = [] ) : void |
Update customer's credit card. |
|