Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/public/./../app/.././../../finland.picotech.app/public_html/storage/../vendor/./phpoption/../laravel/../nikic/../telnyx/../unicodeveloper/../league/../spatie/../vonage/../authorizenet/./../dompdf/.././voku/.././stripe/../laminas/../phpunit/./../stripe/stripe-php/lib/Service
الملفات الموجودة في هذا الـ Path:
.
..
AbstractService.php
AbstractServiceFactory.php
AccountLinkService.php
AccountService.php
ApplePayDomainService.php
ApplicationFeeService.php
BalanceService.php
BalanceTransactionService.php
BillingPortal
ChargeService.php
Checkout
CoreServiceFactory.php
CountrySpecService.php
CouponService.php
CreditNoteService.php
CustomerService.php
DisputeService.php
EphemeralKeyService.php
EventService.php
ExchangeRateService.php
FileLinkService.php
FileService.php
FinancialConnections
Identity
InvoiceItemService.php
InvoiceService.php
Issuing
MandateService.php
OAuthService.php
OrderReturnService.php
OrderService.php
PaymentIntentService.php
PaymentLinkService.php
PaymentMethodService.php
PayoutService.php
PlanService.php
PriceService.php
ProductService.php
PromotionCodeService.php
QuoteService.php
Radar
RefundService.php
Reporting
ReviewService.php
SetupAttemptService.php
SetupIntentService.php
ShippingRateService.php
Sigma
SkuService.php
SourceService.php
SubscriptionItemService.php
SubscriptionScheduleService.php
SubscriptionService.php
TaxCodeService.php
TaxRateService.php
Terminal
TestHelpers
TokenService.php
TopupService.php
TransferService.php
WebhookEndpointService.php

مشاهدة ملف: ReviewService.php

<?php

// File generated from our OpenAPI spec

namespace Stripe\Service;

class ReviewService extends \Stripe\Service\AbstractService
{
    /**
     * Returns a list of <code>Review</code> objects that have <code>open</code> set to
     * <code>true</code>. The objects are sorted in descending order by creation date,
     * with the most recently created object 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\Review>
     */
    public function all($params = null, $opts = null)
    {
        return $this->requestCollection('get', '/v1/reviews', $params, $opts);
    }

    /**
     * Approves a <code>Review</code> object, closing it and removing it from the list
     * of reviews.
     *
     * @param string $id
     * @param null|array $params
     * @param null|array|\Stripe\Util\RequestOptions $opts
     *
     * @throws \Stripe\Exception\ApiErrorException if the request fails
     *
     * @return \Stripe\Review
     */
    public function approve($id, $params = null, $opts = null)
    {
        return $this->request('post', $this->buildPath('/v1/reviews/%s/approve', $id), $params, $opts);
    }

    /**
     * Retrieves a <code>Review</code> object.
     *
     * @param string $id
     * @param null|array $params
     * @param null|array|\Stripe\Util\RequestOptions $opts
     *
     * @throws \Stripe\Exception\ApiErrorException if the request fails
     *
     * @return \Stripe\Review
     */
    public function retrieve($id, $params = null, $opts = null)
    {
        return $this->request('get', $this->buildPath('/v1/reviews/%s', $id), $params, $opts);
    }
}