/home/techb158/exp.abdallabala.com/vendor/stripe/stripe-php/lib/Service
NameSizeModeActions
BillingPortal/-0755rm
Checkout/-0755rm
Issuing/-0755rm
Radar/-0755rm
Reporting/-0755rm
Sigma/-0755rm
Terminal/-0755rm
AbstractService.php19800644editdlrm
AbstractServiceFactory.php14760644editdlrm
AccountLinkService.php7180644editdlrm
AccountService.php134960644editdlrm
ApplePayDomainService.php19570644editdlrm
ApplicationFeeService.php47240644editdlrm
BalanceService.php7810644editdlrm
BalanceTransactionService.php15500644editdlrm
ChargeService.php35790644editdlrm
CoreServiceFactory.php52920644editdlrm
CountrySpecService.php10850644editdlrm
CouponService.php36760644editdlrm
CreditNoteService.php55930644editdlrm
CustomerService.php128760644editdlrm
DisputeService.php28640644editdlrm
EphemeralKeyService.php12890644editdlrm
EventService.php14240644editdlrm
ExchangeRateService.php12430644editdlrm
FileLinkService.php19760644editdlrm
FileService.php20910644editdlrm
InvoiceItemService.php30300644editdlrm
InvoiceService.php106960644editdlrm
MandateService.php6040644editdlrm
OAuthService.php48590644editdlrm
OrderReturnService.php13560644editdlrm
OrderService.php35260644editdlrm
PaymentIntentService.php74650644editdlrm
PaymentMethodService.php43010644editdlrm
PayoutService.php46740644editdlrm
PlanService.php27620644editdlrm
PriceService.php20580644editdlrm
ProductService.php29680644editdlrm
PromotionCodeService.php21990644editdlrm
RefundService.php23150644editdlrm
ReviewService.php17730644editdlrm
SetupAttemptService.php6110644editdlrm
SetupIntentService.php44600644editdlrm
SkuService.php29810644editdlrm
SourceService.php34930644editdlrm
SubscriptionItemService.php58220644editdlrm
SubscriptionScheduleService.php39990644editdlrm
SubscriptionService.php45830644editdlrm
TaxRateService.php20260644editdlrm
TokenService.php12540644editdlrm
TopupService.php26280644editdlrm
TransferService.php63380644editdlrm
WebhookEndpointService.php33640644editdlrm
Edit: /home/techb158/exp.abdallabala.com/vendor/stripe/stripe-php/lib/Service/InvoiceService.php (10696B)
requestCollection('get', '/v1/invoices', $params, $opts); } /** * When retrieving an invoice, you’ll get a lines property * containing the total count of line items and the first handful of those items. * There is also a URL where you can retrieve the full (paginated) list of line * items. * * @param string $parentId * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Collection */ public function allLines($parentId, $params = null, $opts = null) { return $this->requestCollection('get', $this->buildPath('/v1/invoices/%s/lines', $parentId), $params, $opts); } /** * This endpoint creates a draft invoice for a given customer. The draft invoice * created pulls in all pending invoice items on that customer, including * prorations. The invoice remains a draft until you finalize the invoice, which allows you to pay or send the invoice to * your customers. * * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Invoice */ public function create($params = null, $opts = null) { return $this->request('post', '/v1/invoices', $params, $opts); } /** * Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to * delete invoices that are no longer in a draft state will fail; once an invoice * has been finalized or if an invoice is for a subscription, it must be voided. * * @param string $id * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Invoice */ public function delete($id, $params = null, $opts = null) { return $this->request('delete', $this->buildPath('/v1/invoices/%s', $id), $params, $opts); } /** * Stripe automatically finalizes drafts before sending and attempting payment on * invoices. However, if you’d like to finalize a draft invoice manually, you can * do so using this method. * * @param string $id * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Invoice */ public function finalizeInvoice($id, $params = null, $opts = null) { return $this->request('post', $this->buildPath('/v1/invoices/%s/finalize', $id), $params, $opts); } /** * Marking an invoice as uncollectible is useful for keeping track of bad debts * that can be written off for accounting purposes. * * @param string $id * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Invoice */ public function markUncollectible($id, $params = null, $opts = null) { return $this->request('post', $this->buildPath('/v1/invoices/%s/mark_uncollectible', $id), $params, $opts); } /** * Stripe automatically creates and then attempts to collect payment on invoices * for customers on subscriptions according to your subscriptions * settings. However, if you’d like to attempt payment on an invoice out of the * normal collection schedule or for some other reason, you can do so. * * @param string $id * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Invoice */ public function pay($id, $params = null, $opts = null) { return $this->request('post', $this->buildPath('/v1/invoices/%s/pay', $id), $params, $opts); } /** * Retrieves the invoice with the given ID. * * @param string $id * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Invoice */ public function retrieve($id, $params = null, $opts = null) { return $this->request('get', $this->buildPath('/v1/invoices/%s', $id), $params, $opts); } /** * Stripe will automatically send invoices to customers according to your subscriptions * settings. However, if you’d like to manually send an invoice to your * customer out of the normal schedule, you can do so. When sending invoices that * have already been paid, there will be no reference to the payment in the email. * * Requests made in test-mode result in no emails being sent, despite sending an * invoice.sent event. * * @param string $id * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Invoice */ public function sendInvoice($id, $params = null, $opts = null) { return $this->request('post', $this->buildPath('/v1/invoices/%s/send', $id), $params, $opts); } /** * At any time, you can preview the upcoming invoice for a customer. This will show * you all the charges that are pending, including subscription renewal charges, * invoice item charges, etc. It will also show you any discounts that are * applicable to the invoice. * * Note that when you are viewing an upcoming invoice, you are simply viewing a * preview – the invoice has not yet been created. As such, the upcoming invoice * will not show up in invoice listing calls, and you cannot use the API to pay or * edit the invoice. If you want to change the amount that your customer will be * billed, you can add, remove, or update pending invoice items, or update the * customer’s discount. * * You can preview the effects of updating a subscription, including a preview of * what proration will take place. To ensure that the actual proration is * calculated exactly the same as the previewed proration, you should pass a * proration_date parameter when doing the actual subscription update. * The value passed in should be the same as the * subscription_proration_date returned on the upcoming invoice * resource. The recommended way to get only the prorations being previewed is to * consider only proration line items where period[start] is equal to * the subscription_proration_date on the upcoming invoice resource. * * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Invoice */ public function upcoming($params = null, $opts = null) { return $this->request('get', '/v1/invoices/upcoming', $params, $opts); } /** * When retrieving an upcoming invoice, you’ll get a lines * property containing the total count of line items and the first handful of those * items. There is also a URL where you can retrieve the full (paginated) list of * line items. * * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Invoice */ public function upcomingLines($params = null, $opts = null) { return $this->request('get', '/v1/invoices/upcoming/lines', $params, $opts); } /** * Draft invoices are fully editable. Once an invoice is finalized, monetary values, * as well as collection_method, become uneditable. * * If you would like to stop the Stripe Billing engine from automatically * finalizing, reattempting payments on, sending reminders for, or automatically reconciling * invoices, pass auto_advance=false. * * @param string $id * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Invoice */ public function update($id, $params = null, $opts = null) { return $this->request('post', $this->buildPath('/v1/invoices/%s', $id), $params, $opts); } /** * Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is * similar to deletion, however it only applies to * finalized invoices and maintains a papertrail where the invoice can still be * found. * * @param string $id * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Invoice */ public function voidInvoice($id, $params = null, $opts = null) { return $this->request('post', $this->buildPath('/v1/invoices/%s/void', $id), $params, $opts); } }