PATH:
home
/
lab2454c
/
omvstudio.com
/
vendor
/
stripe
/
stripe-php
/
lib
/
Service
<?php // File generated from our OpenAPI spec namespace Stripe\Service; class OrderService extends \Stripe\Service\AbstractService { /** * Returns a list of your orders. The orders are returned sorted by creation date, * with the most recently created orders appearing first. * * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Collection<\Stripe\Order> */ public function all($params = null, $opts = null) { return $this->requestCollection('get', '/v1/orders', $params, $opts); } /** * When retrieving an order, there is an includable <strong>line_items</strong> * property containing the first handful of those items. There is also a URL where * you can retrieve the full (paginated) list of line items. * * @param string $id * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Collection<\Stripe\LineItem> */ public function allLineItems($id, $params = null, $opts = null) { return $this->requestCollection('get', $this->buildPath('/v1/orders/%s/line_items', $id), $params, $opts); } /** * Cancels the order as well as the payment intent if one is attached. * * @param string $id * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Order */ public function cancel($id, $params = null, $opts = null) { return $this->request('post', $this->buildPath('/v1/orders/%s/cancel', $id), $params, $opts); } /** * Creates a new <code>open</code> order object. * * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Order */ public function create($params = null, $opts = null) { return $this->request('post', '/v1/orders', $params, $opts); } /** * Reopens a <code>submitted</code> order. * * @param string $id * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Order */ public function reopen($id, $params = null, $opts = null) { return $this->request('post', $this->buildPath('/v1/orders/%s/reopen', $id), $params, $opts); } /** * Retrieves the details of an existing order. Supply the unique order ID from * either an order creation request or the order list, and Stripe will return the * corresponding order information. * * @param string $id * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Order */ public function retrieve($id, $params = null, $opts = null) { return $this->request('get', $this->buildPath('/v1/orders/%s', $id), $params, $opts); } /** * Submitting an Order transitions the status to <code>processing</code> and * creates a PaymentIntent object so the order can be paid. If the Order has an * <code>amount_total</code> of 0, no PaymentIntent object will be created. Once * the order is submitted, its contents cannot be changed, unless the <a * href="#reopen_order">reopen</a> method is called. * * @param string $id * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Order */ public function submit($id, $params = null, $opts = null) { return $this->request('post', $this->buildPath('/v1/orders/%s/submit', $id), $params, $opts); } /** * Updates the specific order by setting the values of the parameters passed. Any * parameters not provided will be left unchanged. * * @param string $id * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Order */ public function update($id, $params = null, $opts = null) { return $this->request('post', $this->buildPath('/v1/orders/%s', $id), $params, $opts); } }
[-] PaymentIntentService.php
[edit]
[-] SubscriptionService.php
[edit]
[+]
Terminal
[-] AbstractService.php
[edit]
[-] PaymentMethodService.php
[edit]
[-] ReviewService.php
[edit]
[-] AccountLinkService.php
[edit]
[-] DisputeService.php
[edit]
[-] ExchangeRateService.php
[edit]
[-] EventService.php
[edit]
[-] WebhookEndpointService.php
[edit]
[+]
Sigma
[-] PriceService.php
[edit]
[+]
..
[-] EphemeralKeyService.php
[edit]
[-] PayoutService.php
[edit]
[-] SubscriptionScheduleService.php
[edit]
[-] SubscriptionItemService.php
[edit]
[-] ChargeService.php
[edit]
[-] CreditNoteService.php
[edit]
[-] PlanService.php
[edit]
[-] ShippingRateService.php
[edit]
[-] BalanceService.php
[edit]
[-] RefundService.php
[edit]
[-] OAuthService.php
[edit]
[-] SourceService.php
[edit]
[+]
Apps
[+]
FinancialConnections
[+]
Issuing
[-] TaxCodeService.php
[edit]
[-] PaymentLinkService.php
[edit]
[-] TokenService.php
[edit]
[-] ApplicationFeeService.php
[edit]
[-] PromotionCodeService.php
[edit]
[-] FileService.php
[edit]
[-] BalanceTransactionService.php
[edit]
[-] QuoteService.php
[edit]
[-] SkuService.php
[edit]
[+]
Checkout
[-] CountrySpecService.php
[edit]
[-] SetupAttemptService.php
[edit]
[-] MandateService.php
[edit]
[+]
Radar
[-] ProductService.php
[edit]
[-] InvoiceService.php
[edit]
[-] FileLinkService.php
[edit]
[-] TransferService.php
[edit]
[-] SetupIntentService.php
[edit]
[-] AbstractServiceFactory.php
[edit]
[+]
BillingPortal
[-] TaxRateService.php
[edit]
[-] TopupService.php
[edit]
[-] CoreServiceFactory.php
[edit]
[-] CustomerService.php
[edit]
[+]
Reporting
[-] CouponService.php
[edit]
[-] AccountService.php
[edit]
[+]
TestHelpers
[-] InvoiceItemService.php
[edit]
[-] OrderService.php
[edit]
[+]
Treasury
[+]
Identity
[-] ApplePayDomainService.php
[edit]