assets
data
dependencies
amphp
berlindb
composer
daverandom
delight-im
doctrine
guzzlehttp
hashids
ifsnop
jasny
kelunik
league
mexitek
mpdf
myclabs
nesbot
nyholm
pablo-sg-pacheco
paragonie
phpdocumentor
phpseclib
phpstan
psr
rakit
ralouphie
remotelyliving
rpnzl
scssphp
setasign
spatie
stripe
stripe-php
data
lib
ApiOperations
Apps
BillingPortal
Checkout
Exception
FinancialConnections
HttpClient
Identity
Issuing
Radar
Reporting
Service
Apps
BillingPortal
Checkout
FinancialConnections
Identity
Issuing
Radar
Reporting
Sigma
Tax
Terminal
TestHelpers
Treasury
AbstractService.php
AbstractServiceFactory.php
AccountLinkService.php
AccountService.php
ApplePayDomainService.php
ApplicationFeeService.php
BalanceService.php
BalanceTransactionService.php
ChargeService.php
CoreServiceFactory.php
CountrySpecService.php
CouponService.php
CreditNoteService.php
CustomerService.php
DisputeService.php
EphemeralKeyService.php
EventService.php
ExchangeRateService.php
FileLinkService.php
FileService.php
InvoiceItemService.php
InvoiceService.php
MandateService.php
OAuthService.php
PaymentIntentService.php
PaymentLinkService.php
PaymentMethodService.php
PayoutService.php
PlanService.php
PriceService.php
ProductService.php
PromotionCodeService.php
QuoteService.php
RefundService.php
ReviewService.php
SetupAttemptService.php
SetupIntentService.php
ShippingRateService.php
SourceService.php
SubscriptionItemService.php
SubscriptionScheduleService.php
SubscriptionService.php
TaxCodeService.php
TaxRateService.php
TokenService.php
TopupService.php
TransferService.php
WebhookEndpointService.php
Sigma
Tax
Terminal
TestHelpers
Treasury
Util
Account.php
AccountLink.php
ApiRequestor.php
ApiResource.php
ApiResponse.php
ApplePayDomain.php
ApplicationFee.php
ApplicationFeeRefund.php
Balance.php
BalanceTransaction.php
BankAccount.php
BaseStripeClient.php
BaseStripeClientInterface.php
Capability.php
Card.php
CashBalance.php
Charge.php
Collection.php
CountrySpec.php
Coupon.php
CreditNote.php
CreditNoteLineItem.php
Customer.php
CustomerBalanceTransaction.php
CustomerCashBalanceTransaction.php
Discount.php
Dispute.php
EphemeralKey.php
ErrorObject.php
Event.php
ExchangeRate.php
File.php
FileLink.php
FundingInstructions.php
Invoice.php
InvoiceItem.php
InvoiceLineItem.php
LineItem.php
LoginLink.php
Mandate.php
OAuth.php
OAuthErrorObject.php
PaymentIntent.php
PaymentLink.php
PaymentMethod.php
Payout.php
Person.php
Plan.php
Price.php
Product.php
PromotionCode.php
Quote.php
RecipientTransfer.php
Refund.php
RequestTelemetry.php
Review.php
SearchResult.php
SetupAttempt.php
SetupIntent.php
ShippingRate.php
SingletonApiResource.php
Source.php
SourceTransaction.php
Stripe.php
StripeClient.php
StripeClientInterface.php
StripeObject.php
StripeStreamingClientInterface.php
Subscription.php
SubscriptionItem.php
SubscriptionSchedule.php
TaxCode.php
TaxId.php
TaxRate.php
Token.php
Topup.php
Transfer.php
TransferReversal.php
UsageRecord.php
UsageRecordSummary.php
Webhook.php
WebhookEndpoint.php
WebhookSignature.php
OPENAPI_VERSION
VERSION
init.php
symfony
webmozart
woocommerce
yahnis-elsts
autoload.php
scoper-autoload.php
inc
lang
views
.gitignore
LICENSE
autoload.php
constants.php
loco.xml
readme.txt
sunrise.php
uninstall.php
wp-multisite-waas.php
108 lines
4.0 KiB
PHP
108 lines
4.0 KiB
PHP
<?php
|
||
|
||
// File generated from our OpenAPI spec
|
||
namespace WP_Ultimo\Dependencies\Stripe\Service;
|
||
|
||
class SubscriptionScheduleService extends \WP_Ultimo\Dependencies\Stripe\Service\AbstractService
|
||
{
|
||
/**
|
||
* Retrieves the list of your subscription schedules.
|
||
*
|
||
* @param null|array $params
|
||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||
*
|
||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||
*
|
||
* @return \Stripe\Collection<\Stripe\SubscriptionSchedule>
|
||
*/
|
||
public function all($params = null, $opts = null)
|
||
{
|
||
return $this->requestCollection('get', '/v1/subscription_schedules', $params, $opts);
|
||
}
|
||
/**
|
||
* Cancels a subscription schedule and its associated subscription immediately (if
|
||
* the subscription schedule has an active subscription). A subscription schedule
|
||
* can only be canceled if its status is <code>not_started</code> or
|
||
* <code>active</code>.
|
||
*
|
||
* @param string $id
|
||
* @param null|array $params
|
||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||
*
|
||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||
*
|
||
* @return \Stripe\SubscriptionSchedule
|
||
*/
|
||
public function cancel($id, $params = null, $opts = null)
|
||
{
|
||
return $this->request('post', $this->buildPath('/v1/subscription_schedules/%s/cancel', $id), $params, $opts);
|
||
}
|
||
/**
|
||
* Creates a new subscription schedule object. Each customer can have up to 500
|
||
* active or scheduled subscriptions.
|
||
*
|
||
* @param null|array $params
|
||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||
*
|
||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||
*
|
||
* @return \Stripe\SubscriptionSchedule
|
||
*/
|
||
public function create($params = null, $opts = null)
|
||
{
|
||
return $this->request('post', '/v1/subscription_schedules', $params, $opts);
|
||
}
|
||
/**
|
||
* Releases the subscription schedule immediately, which will stop scheduling of
|
||
* its phases, but leave any existing subscription in place. A schedule can only be
|
||
* released if its status is <code>not_started</code> or <code>active</code>. If
|
||
* the subscription schedule is currently associated with a subscription, releasing
|
||
* it will remove its <code>subscription</code> property and set the subscription’s
|
||
* ID to the <code>released_subscription</code> property.
|
||
*
|
||
* @param string $id
|
||
* @param null|array $params
|
||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||
*
|
||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||
*
|
||
* @return \Stripe\SubscriptionSchedule
|
||
*/
|
||
public function release($id, $params = null, $opts = null)
|
||
{
|
||
return $this->request('post', $this->buildPath('/v1/subscription_schedules/%s/release', $id), $params, $opts);
|
||
}
|
||
/**
|
||
* Retrieves the details of an existing subscription schedule. You only need to
|
||
* supply the unique subscription schedule identifier that was returned upon
|
||
* subscription schedule creation.
|
||
*
|
||
* @param string $id
|
||
* @param null|array $params
|
||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||
*
|
||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||
*
|
||
* @return \Stripe\SubscriptionSchedule
|
||
*/
|
||
public function retrieve($id, $params = null, $opts = null)
|
||
{
|
||
return $this->request('get', $this->buildPath('/v1/subscription_schedules/%s', $id), $params, $opts);
|
||
}
|
||
/**
|
||
* Updates an existing subscription schedule.
|
||
*
|
||
* @param string $id
|
||
* @param null|array $params
|
||
* @param null|array|\Stripe\Util\RequestOptions $opts
|
||
*
|
||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||
*
|
||
* @return \Stripe\SubscriptionSchedule
|
||
*/
|
||
public function update($id, $params = null, $opts = null)
|
||
{
|
||
return $this->request('post', $this->buildPath('/v1/subscription_schedules/%s', $id), $params, $opts);
|
||
}
|
||
}
|