diff --git a/CHANGELOG.md b/CHANGELOG.md
index 26851c62a..b126790cf 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,14 @@
# Changelog
+## 13.11.0 - 2024-02-15
+* [#1639](https://github.com/stripe/stripe-php/pull/1639) Update generated code
+ * Add support for `networks` on `Card`
+ * Add support for new value `financial_connections.account.refreshed_ownership` on enum `Event.type`
+* [#1648](https://github.com/stripe/stripe-php/pull/1648) Remove broken methods on CustomerCashBalanceTransaction
+ * Bugfix: remove support for `CustomerCashBalanceTransaction::all` and `CustomerCashBalanceTransaction::retrieve`. These methods were included in the library unintentionally and never functioned.
+* [#1647](https://github.com/stripe/stripe-php/pull/1647) Fix \Stripe\Tax\Settings::update
+* [#1646](https://github.com/stripe/stripe-php/pull/1646) Add more specific PHPDoc and Psalm type for RequestOptions arrays on services
+
## 13.11.0-beta.1 - 2024-02-01
* [#1637](https://github.com/stripe/stripe-php/pull/1637) Update generated code for beta
* Add support for new resources `Entitlements.Event` and `Entitlements.Feature`
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 4ee3ea09e..ca9946295 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v808
\ No newline at end of file
+v831
\ No newline at end of file
diff --git a/init.php b/init.php
index 239ea8287..9c29f941b 100644
--- a/init.php
+++ b/init.php
@@ -114,8 +114,6 @@
require __DIR__ . '/lib/Customer.php';
require __DIR__ . '/lib/CustomerBalanceTransaction.php';
require __DIR__ . '/lib/CustomerCashBalanceTransaction.php';
-require __DIR__ . '/lib/CustomerEntitlement.php';
-require __DIR__ . '/lib/CustomerEntitlementSummary.php';
require __DIR__ . '/lib/CustomerSession.php';
require __DIR__ . '/lib/Discount.php';
require __DIR__ . '/lib/Dispute.php';
@@ -127,7 +125,6 @@
require __DIR__ . '/lib/File.php';
require __DIR__ . '/lib/FileLink.php';
require __DIR__ . '/lib/FinancialConnections/Account.php';
-require __DIR__ . '/lib/FinancialConnections/AccountInferredBalance.php';
require __DIR__ . '/lib/FinancialConnections/AccountOwner.php';
require __DIR__ . '/lib/FinancialConnections/AccountOwnership.php';
require __DIR__ . '/lib/FinancialConnections/Session.php';
@@ -140,7 +137,6 @@
require __DIR__ . '/lib/Invoice.php';
require __DIR__ . '/lib/InvoiceItem.php';
require __DIR__ . '/lib/InvoiceLineItem.php';
-require __DIR__ . '/lib/InvoicePayment.php';
require __DIR__ . '/lib/Issuing/Authorization.php';
require __DIR__ . '/lib/Issuing/Card.php';
require __DIR__ . '/lib/Issuing/Cardholder.php';
@@ -169,8 +165,6 @@
require __DIR__ . '/lib/Quote.php';
require __DIR__ . '/lib/QuoteLine.php';
require __DIR__ . '/lib/QuotePhase.php';
-require __DIR__ . '/lib/QuotePreviewInvoice.php';
-require __DIR__ . '/lib/QuotePreviewSubscriptionSchedule.php';
require __DIR__ . '/lib/Radar/EarlyFraudWarning.php';
require __DIR__ . '/lib/Radar/ValueList.php';
require __DIR__ . '/lib/Radar/ValueListItem.php';
diff --git a/lib/Card.php b/lib/Card.php
index 3c3748be0..4ba948c39 100644
--- a/lib/Card.php
+++ b/lib/Card.php
@@ -37,6 +37,7 @@
* @property string $last4 The last four digits of the card.
* @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
* @property null|string $name Cardholder name.
+ * @property null|\Stripe\StripeObject $networks
* @property null|string $status For external accounts that are cards, possible values are new
and errored
. If a payout fails, the status is set to errored
and scheduled payouts are stopped until account details are updated.
* @property null|string $tokenization_method If the card number is tokenized, this is the method that was used. Can be android_pay
(includes Google Pay), apple_pay
, masterpass
, visa_checkout
, or null.
*/
diff --git a/lib/ConfirmationToken.php b/lib/ConfirmationToken.php
index e86ed6685..cb4ab45da 100644
--- a/lib/ConfirmationToken.php
+++ b/lib/ConfirmationToken.php
@@ -19,6 +19,7 @@
* @property null|\Stripe\StripeObject $mandate_data Data used for generating a Mandate.
* @property null|string $payment_intent ID of the PaymentIntent that this ConfirmationToken was used to confirm, or null if this ConfirmationToken has not yet been used.
* @property null|string|\Stripe\PaymentMethod $payment_method ID of an existing PaymentMethod.
+ * @property null|\Stripe\StripeObject $payment_method_options Payment-method-specific configuration for this ConfirmationToken.
* @property null|\Stripe\StripeObject $payment_method_preview Payment details collected by the Payment Element, used to create a PaymentMethod when a PaymentIntent or SetupIntent is confirmed with this ConfirmationToken.
* @property null|string $return_url Return URL used to confirm the Intent.
* @property null|string $setup_future_usage
Indicates that you intend to make future payments with this ConfirmationToken's payment method.
The presence of this property will attach the payment method to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete.
diff --git a/lib/Customer.php b/lib/Customer.php index 62d8bb52a..263434f48 100644 --- a/lib/Customer.php +++ b/lib/Customer.php @@ -134,37 +134,6 @@ public static function search($params = null, $opts = null) return static::_requestPage($url, \Stripe\SearchResult::class, $params, $opts); } - const PATH_CASH_BALANCE = '/cash_balance'; - - /** - * @param string $id the ID of the customer to which the cash balance belongs - * @param null|array $params - * @param null|array|string $opts - * @param mixed $cashBalanceId - * - * @throws \Stripe\Exception\ApiErrorException if the request fails - * - * @return \Stripe\CashBalance - */ - public static function retrieveCashBalance($id, $cashBalanceId, $params = null, $opts = null) - { - return self::_retrieveNestedResource($id, static::PATH_CASH_BALANCE, $params, $opts); - } - - /** - * @param string $id the ID of the customer to which the cash balance belongs - * @param null|array $params - * @param null|array|string $opts - * @param mixed $cashBalanceId - * - * @throws \Stripe\Exception\ApiErrorException if the request fails - * - * @return \Stripe\CashBalance - */ - public static function updateCashBalance($id, $cashBalanceId, $params = null, $opts = null) - { - return self::_updateNestedResource($id, static::PATH_CASH_BALANCE, $params, $opts); - } const PATH_BALANCE_TRANSACTIONS = '/balance_transactions'; /** @@ -254,37 +223,6 @@ public static function retrieveCashBalanceTransaction($id, $cashBalanceTransacti { return self::_retrieveNestedResource($id, static::PATH_CASH_BALANCE_TRANSACTIONS, $cashBalanceTransactionId, $params, $opts); } - const PATH_ENTITLEMENTS = '/entitlements'; - - /** - * @param string $id the ID of the customer on which to retrieve the customer entitlements - * @param null|array $params - * @param null|array|string $opts - * - * @throws \Stripe\Exception\ApiErrorException if the request fails - * - * @return \Stripe\Collection<\Stripe\CustomerEntitlement> the list of customer entitlements - */ - public static function allEntitlements($id, $params = null, $opts = null) - { - return self::_allNestedResources($id, static::PATH_ENTITLEMENTS, $params, $opts); - } - const PATH_ENTITLEMENT_SUMMARY = '/entitlement_summary'; - - /** - * @param string $id the ID of the customer to which the customer entitlement summary belongs - * @param null|array $params - * @param null|array|string $opts - * @param mixed $entitlementSummaryId - * - * @throws \Stripe\Exception\ApiErrorException if the request fails - * - * @return \Stripe\CustomerEntitlementSummary - */ - public static function retrieveEntitlementSummary($id, $entitlementSummaryId, $params = null, $opts = null) - { - return self::_retrieveNestedResource($id, static::PATH_ENTITLEMENT_SUMMARY, $params, $opts); - } const PATH_SOURCES = '/sources'; /** @@ -359,6 +297,37 @@ public static function updateSource($id, $sourceId, $params = null, $opts = null { return self::_updateNestedResource($id, static::PATH_SOURCES, $sourceId, $params, $opts); } + const PATH_CASH_BALANCE = '/cash_balance'; + + /** + * @param string $id the ID of the customer to which the cash balance belongs + * @param null|array $params + * @param null|array|string $opts + * @param mixed $cashBalanceId + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + * + * @return \Stripe\CashBalance + */ + public static function retrieveCashBalance($id, $cashBalanceId, $params = null, $opts = null) + { + return self::_retrieveNestedResource($id, static::PATH_CASH_BALANCE, $params, $opts); + } + + /** + * @param string $id the ID of the customer to which the cash balance belongs + * @param null|array $params + * @param null|array|string $opts + * @param mixed $cashBalanceId + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + * + * @return \Stripe\CashBalance + */ + public static function updateCashBalance($id, $cashBalanceId, $params = null, $opts = null) + { + return self::_updateNestedResource($id, static::PATH_CASH_BALANCE, $params, $opts); + } const PATH_TAX_IDS = '/tax_ids'; /** @@ -418,4 +387,35 @@ public static function retrieveTaxId($id, $taxIdId, $params = null, $opts = null { return self::_retrieveNestedResource($id, static::PATH_TAX_IDS, $taxIdId, $params, $opts); } + const PATH_ENTITLEMENTS = '/entitlements'; + + /** + * @param string $id the ID of the customer on which to retrieve the customer entitlements + * @param null|array $params + * @param null|array|string $opts + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + * + * @return \Stripe\Collection<\Stripe\CustomerEntitlement> the list of customer entitlements + */ + public static function allEntitlements($id, $params = null, $opts = null) + { + return self::_allNestedResources($id, static::PATH_ENTITLEMENTS, $params, $opts); + } + const PATH_ENTITLEMENT_SUMMARY = '/entitlement_summary'; + + /** + * @param string $id the ID of the customer to which the customer entitlement summary belongs + * @param null|array $params + * @param null|array|string $opts + * @param mixed $entitlementSummaryId + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + * + * @return \Stripe\CustomerEntitlementSummary + */ + public static function retrieveEntitlementSummary($id, $entitlementSummaryId, $params = null, $opts = null) + { + return self::_retrieveNestedResource($id, static::PATH_ENTITLEMENT_SUMMARY, $params, $opts); + } } diff --git a/lib/CustomerCashBalanceTransaction.php b/lib/CustomerCashBalanceTransaction.php index b430b0136..aa8819e15 100644 --- a/lib/CustomerCashBalanceTransaction.php +++ b/lib/CustomerCashBalanceTransaction.php @@ -30,9 +30,6 @@ class CustomerCashBalanceTransaction extends ApiResource { const OBJECT_NAME = 'customer_cash_balance_transaction'; - use ApiOperations\All; - use ApiOperations\Retrieve; - const TYPE_ADJUSTED_FOR_OVERDRAFT = 'adjusted_for_overdraft'; const TYPE_APPLIED_TO_PAYMENT = 'applied_to_payment'; const TYPE_FUNDED = 'funded'; diff --git a/lib/CustomerEntitlement.php b/lib/CustomerEntitlement.php deleted file mode 100644 index 3c9ab4841..000000000 --- a/lib/CustomerEntitlement.php +++ /dev/null @@ -1,26 +0,0 @@ -true if the object exists in live mode or the valuefalse
if the object exists in test mode.
- * @property string $lookup_key A unique key you provide as your own system identifier. This may be up to 80 characters.
- * @property null|\Stripe\StripeObject $quantity Contains information about entitlements relating to features with type=quantity. Required when the feature has type=quantity.
- * @property string $type The type of feature.
- */
-class CustomerEntitlement extends ApiResource
-{
- const OBJECT_NAME = 'customer_entitlement';
-
- use ApiOperations\All;
-
- const TYPE_QUANTITY = 'quantity';
- const TYPE_SWITCH = 'switch';
-}
diff --git a/lib/CustomerEntitlementSummary.php b/lib/CustomerEntitlementSummary.php
deleted file mode 100644
index 174151fdc..000000000
--- a/lib/CustomerEntitlementSummary.php
+++ /dev/null
@@ -1,20 +0,0 @@
- $entitlements The list of entitlements this customer has.
- * @property bool $livemode Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
- */
-class CustomerEntitlementSummary extends ApiResource
-{
- const OBJECT_NAME = 'customer_entitlement_summary';
-
- use ApiOperations\Retrieve;
-}
diff --git a/lib/FinancialConnections/AccountInferredBalance.php b/lib/FinancialConnections/AccountInferredBalance.php
deleted file mode 100644
index 36e3a39c9..000000000
--- a/lib/FinancialConnections/AccountInferredBalance.php
+++ /dev/null
@@ -1,20 +0,0 @@
-The balances owed to (or by) the account holder.Each key is a three-letter ISO currency code, in lowercase.
Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder.
- */ -class AccountInferredBalance extends \Stripe\ApiResource -{ - const OBJECT_NAME = 'financial_connections.account_inferred_balance'; - - use \Stripe\ApiOperations\All; -} diff --git a/lib/Invoice.php b/lib/Invoice.php index b00ce9807..808bda1db 100644 --- a/lib/Invoice.php +++ b/lib/Invoice.php @@ -95,7 +95,7 @@ * @property bool $paid_out_of_band Returns true if the invoice was manually marked paid, returns false if the invoice hasn't been paid yet or was paid on Stripe. * @property null|string|\Stripe\PaymentIntent $payment_intent The PaymentIntent associated with this invoice. The PaymentIntent is generated when the invoice is finalized, and can then be used to pay the invoice. Note that voiding an invoice will cancel the PaymentIntent. * @property \Stripe\StripeObject $payment_settings - * @property null|\Stripe\Collection<\Stripe\InvoicePayment> $payments Payments for this invoice + * @property null|\Stripe\Collection<\Stripe\StripeObject> $payments Payments for this invoice * @property int $period_end End of the usage period during which invoice items were added to this invoice. * @property int $period_start Start of the usage period during which invoice items were added to this invoice. * @property int $post_payment_credit_notes_amount Total amount of all post-payment credit notes issued for this invoice. @@ -335,49 +335,49 @@ public static function search($params = null, $opts = null) return static::_requestPage($url, \Stripe\SearchResult::class, $params, $opts); } - const PATH_PAYMENTS = '/payments'; + const PATH_LINES = '/lines'; /** - * @param string $id the ID of the invoice on which to retrieve the invoice payments + * @param string $id the ID of the invoice on which to retrieve the invoice line items * @param null|array $params * @param null|array|string $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection<\Stripe\InvoicePayment> the list of invoice payments + * @return \Stripe\Collection<\Stripe\InvoiceLineItem> the list of invoice line items */ - public static function allPayments($id, $params = null, $opts = null) + public static function allLines($id, $params = null, $opts = null) { - return self::_allNestedResources($id, static::PATH_PAYMENTS, $params, $opts); + return self::_allNestedResources($id, static::PATH_LINES, $params, $opts); } + const PATH_PAYMENTS = '/payments'; /** - * @param string $id the ID of the invoice to which the invoice payment belongs - * @param string $paymentId the ID of the invoice payment to retrieve + * @param string $id the ID of the invoice on which to retrieve the invoice payments * @param null|array $params * @param null|array|string $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\InvoicePayment + * @return \Stripe\Collection<\Stripe\InvoicePayment> the list of invoice payments */ - public static function retrievePayment($id, $paymentId, $params = null, $opts = null) + public static function allPayments($id, $params = null, $opts = null) { - return self::_retrieveNestedResource($id, static::PATH_PAYMENTS, $paymentId, $params, $opts); + return self::_allNestedResources($id, static::PATH_PAYMENTS, $params, $opts); } - const PATH_LINES = '/lines'; /** - * @param string $id the ID of the invoice on which to retrieve the invoice line items + * @param string $id the ID of the invoice to which the invoice payment belongs + * @param string $paymentId the ID of the invoice payment to retrieve * @param null|array $params * @param null|array|string $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection<\Stripe\InvoiceLineItem> the list of invoice line items + * @return \Stripe\InvoicePayment */ - public static function allLines($id, $params = null, $opts = null) + public static function retrievePayment($id, $paymentId, $params = null, $opts = null) { - return self::_allNestedResources($id, static::PATH_LINES, $params, $opts); + return self::_retrieveNestedResource($id, static::PATH_PAYMENTS, $paymentId, $params, $opts); } } diff --git a/lib/InvoiceLineItem.php b/lib/InvoiceLineItem.php index 8a6c353ed..e9886bece 100644 --- a/lib/InvoiceLineItem.php +++ b/lib/InvoiceLineItem.php @@ -14,6 +14,7 @@ * @property null|\Stripe\StripeObject[] $discount_amounts The amount of discount calculated per discount for this line item. * @property bool $discountable If true, discounts will apply to this line item. Always false for prorations. * @property null|(string|\Stripe\Discount)[] $discounts The discounts applied to the invoice line item. Line item discounts are applied before invoice discounts. Useexpand[]=discounts
to expand each discount.
+ * @property null|string $invoice The ID of the invoice that contains this line item.
* @property null|string|\Stripe\InvoiceItem $invoice_item The ID of the invoice item associated with this line item if any.
* @property bool $livemode Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
* @property null|\Stripe\StripeObject[] $margin_amounts The amount of margin calculated per margin for this line item.
diff --git a/lib/InvoicePayment.php b/lib/InvoicePayment.php
deleted file mode 100644
index 53aec689e..000000000
--- a/lib/InvoicePayment.php
+++ /dev/null
@@ -1,31 +0,0 @@
-invoice_credit_balance. This field is null until the payment is paid
. Overpayment can happen when you attach more than one PaymentIntent to the invoice, and each of them succeeds. To avoid overpayment, cancel any PaymentIntents that you do not need before attaching more.
- * @property null|int $amount_paid Amount that was actually paid for this invoice, in cents (or local equivalent). This field is null until the payment is paid
. This amount can be less than the amount_requested
if the PaymentIntent’s amount_received
is not sufficient to pay all of the invoices that it is attached to.
- * @property int $amount_requested Amount intended to be paid toward this invoice, in cents (or local equivalent)
- * @property null|string|\Stripe\Charge $charge ID of the successful charge for this payment. This field is null when the payment is open
or canceled
.
- * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
- * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
- * @property string|\Stripe\Invoice $invoice The invoice that was paid.
- * @property null|bool $is_default Stripe automatically creates a default InvoicePayment when the invoice is finalized, and keeps it synchronized with the invoice’s amount_remaining
. The PaymentIntent associated with the default payment can’t be edited or canceled directly.
- * @property bool $livemode Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
- * @property null|string|\Stripe\PaymentIntent $payment_intent ID of the PaymentIntent associated with this payment. Note: This property is only populated for invoices finalized on or after March 15th, 2019.
- * @property string $status The status of the payment, one of open
, paid
, or canceled
.
- * @property \Stripe\StripeObject $status_transitions
- */
-class InvoicePayment extends ApiResource
-{
- const OBJECT_NAME = 'invoice_payment';
-
- use ApiOperations\All;
- use ApiOperations\Retrieve;
-}
diff --git a/lib/PaymentIntent.php b/lib/PaymentIntent.php
index a3bcaa483..4e6104632 100644
--- a/lib/PaymentIntent.php
+++ b/lib/PaymentIntent.php
@@ -167,6 +167,23 @@ public function confirm($params = null, $opts = null)
return $this;
}
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentIntent the decremented payment intent
+ */
+ public function decrementAuthorization($params = null, $opts = null)
+ {
+ $url = $this->instanceUrl() . '/decrement_authorization';
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
+ $this->refreshFrom($response, $opts);
+
+ return $this;
+ }
+
/**
* @param null|array $params
* @param null|array|string $opts
diff --git a/lib/PaymentMethod.php b/lib/PaymentMethod.php
index 1724496a7..045407865 100644
--- a/lib/PaymentMethod.php
+++ b/lib/PaymentMethod.php
@@ -44,6 +44,7 @@
* @property null|\Stripe\StripeObject $p24
* @property null|\Stripe\StripeObject $paynow
* @property null|\Stripe\StripeObject $paypal
+ * @property null|\Stripe\StripeObject $payto
* @property null|\Stripe\StripeObject $pix
* @property null|\Stripe\StripeObject $promptpay
* @property null|\Stripe\StripeObject $radar_options Options to configure Radar. See Radar Session for more information.
@@ -51,6 +52,7 @@
* @property null|\Stripe\StripeObject $sepa_debit
* @property null|\Stripe\StripeObject $sofort
* @property null|\Stripe\StripeObject $swish
+ * @property null|\Stripe\StripeObject $twint
* @property string $type The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
* @property null|\Stripe\StripeObject $us_bank_account
* @property null|\Stripe\StripeObject $wechat_pay
@@ -91,12 +93,14 @@ class PaymentMethod extends ApiResource
const TYPE_P24 = 'p24';
const TYPE_PAYNOW = 'paynow';
const TYPE_PAYPAL = 'paypal';
+ const TYPE_PAYTO = 'payto';
const TYPE_PIX = 'pix';
const TYPE_PROMPTPAY = 'promptpay';
const TYPE_REVOLUT_PAY = 'revolut_pay';
const TYPE_SEPA_DEBIT = 'sepa_debit';
const TYPE_SOFORT = 'sofort';
const TYPE_SWISH = 'swish';
+ const TYPE_TWINT = 'twint';
const TYPE_US_BANK_ACCOUNT = 'us_bank_account';
const TYPE_WECHAT_PAY = 'wechat_pay';
const TYPE_ZIP = 'zip';
diff --git a/lib/QuotePreviewInvoice.php b/lib/QuotePreviewInvoice.php
deleted file mode 100644
index c10d756ed..000000000
--- a/lib/QuotePreviewInvoice.php
+++ /dev/null
@@ -1,153 +0,0 @@
-invoice items, and proration adjustments
- * that may be caused by subscription upgrades/downgrades (if necessary).
- *
- * If your invoice is configured to be billed through automatic charges,
- * Stripe automatically finalizes your invoice and attempts payment. Note
- * that finalizing the invoice,
- * when automatic, does
- * not happen immediately as the invoice is created. Stripe waits
- * until one hour after the last webhook was successfully sent (or the last
- * webhook timed out after failing). If you (and the platforms you may have
- * connected to) have no webhooks configured, Stripe waits one hour after
- * creation to finalize the invoice.
- *
- * If your invoice is configured to be billed by sending an email, then based on your
- * email settings,
- * Stripe will email the invoice to your customer and await payment. These
- * emails can contain a link to a hosted page to pay the invoice.
- *
- * Stripe applies any customer credit on the account before determining the
- * amount due for the invoice (i.e., the amount that will be actually
- * charged). If the amount due for the invoice is less than Stripe's minimum allowed charge
- * per currency, the
- * invoice is automatically marked paid, and we add the amount due to the
- * customer's credit balance which is applied to the next invoice.
- *
- * More details on the customer's credit balance are
- * here.
- *
- * Related guide: Send invoices to customers
- *
- * @property string $id Unique identifier for the object. This property is always present unless the invoice is an upcoming invoice. See Retrieve an upcoming invoice for more details.
- * @property string $object String representing the object's type. Objects of the same type share the same value.
- * @property null|string $account_country The country of the business associated with this invoice, most often the business creating the invoice.
- * @property null|string $account_name The public name of the business associated with this invoice, most often the business creating the invoice.
- * @property null|(string|\Stripe\TaxId)[] $account_tax_ids The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
- * @property int $amount_due Final amount due at this time for this invoice. If the invoice's total is smaller than the minimum charge amount, for example, or if there is account credit that can be applied to the invoice, the amount_due
may be 0. If there is a positive starting_balance
for the invoice (the customer owes money), the amount_due
will also take that into account. The charge that gets generated for the invoice will be for the amount specified in amount_due
.
- * @property int $amount_paid The amount, in cents (or local equivalent), that was paid.
- * @property int $amount_remaining The difference between amount_due and amount_paid, in cents (or local equivalent).
- * @property int $amount_shipping This is the sum of all the shipping amounts.
- * @property null|\Stripe\StripeObject[] $amounts_due List of expected payments and corresponding due dates. This value will be null for invoices where collection_method=charge_automatically.
- * @property null|string|\Stripe\StripeObject $application ID of the Connect Application that created the invoice.
- * @property null|int $application_fee_amount The fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account when the invoice is paid.
- * @property \Stripe\StripeObject $applies_to
- * @property int $attempt_count Number of payment attempts made for this invoice, from the perspective of the payment retry schedule. Any payment attempt counts as the first attempt, and subsequently only automatic retries increment the attempt count. In other words, manual payment attempts after the first attempt do not affect the retry schedule.
- * @property bool $attempted Whether an attempt has been made to pay the invoice. An invoice is not attempted until 1 hour after the invoice.created
webhook, for example, so you might not want to display that invoice as unpaid to your users.
- * @property \Stripe\StripeObject $automatic_tax
- * @property null|string $billing_reason Indicates the reason why the invoice was created.
* manual
: Unrelated to a subscription, for example, created via the invoice editor. * subscription
: No longer in use. Applies to subscriptions from before May 2018 where no distinction was made between updates, cycles, and thresholds. * subscription_create
: A new subscription was created. * subscription_cycle
: A subscription advanced into a new period. * subscription_threshold
: A subscription reached a billing threshold. * subscription_update
: A subscription was updated. * upcoming
: Reserved for simulated invoices, per the upcoming invoice endpoint.
charge_automatically
, or send_invoice
. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions.
- * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
- * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
- * @property null|\Stripe\StripeObject[] $custom_fields Custom fields displayed on the invoice.
- * @property null|\Stripe\StripeObject $customer_address The customer's address. Until the invoice is finalized, this field will equal customer.address
. Once the invoice is finalized, this field will no longer be updated.
- * @property null|string $customer_email The customer's email. Until the invoice is finalized, this field will equal customer.email
. Once the invoice is finalized, this field will no longer be updated.
- * @property null|string $customer_name The customer's name. Until the invoice is finalized, this field will equal customer.name
. Once the invoice is finalized, this field will no longer be updated.
- * @property null|string $customer_phone The customer's phone number. Until the invoice is finalized, this field will equal customer.phone
. Once the invoice is finalized, this field will no longer be updated.
- * @property null|\Stripe\StripeObject $customer_shipping The customer's shipping information. Until the invoice is finalized, this field will equal customer.shipping
. Once the invoice is finalized, this field will no longer be updated.
- * @property null|string $customer_tax_exempt The customer's tax exempt status. Until the invoice is finalized, this field will equal customer.tax_exempt
. Once the invoice is finalized, this field will no longer be updated.
- * @property null|\Stripe\StripeObject[] $customer_tax_ids The customer's tax IDs. Until the invoice is finalized, this field will contain the same tax IDs as customer.tax_ids
. Once the invoice is finalized, this field will no longer be updated.
- * @property null|(string|\Stripe\Margin)[] $default_margins The margins applied to the invoice. Can be overridden by line item margins
. Use expand[]=default_margins
to expand each margin.
- * @property null|string|\Stripe\PaymentMethod $default_payment_method ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
- * @property null|string|\Stripe\Account|\Stripe\BankAccount|\Stripe\Card|\Stripe\Source $default_source ID of the default payment source for the invoice. It must belong to the customer associated with the invoice and be in a chargeable state. If not set, defaults to the subscription's default source, if any, or to the customer's default source.
- * @property \Stripe\TaxRate[] $default_tax_rates The tax rates applied to this invoice, if any.
- * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users. Referenced as 'memo' in the Dashboard.
- * @property null|\Stripe\Discount $discount Describes the current discount applied to this invoice, if there is one. Not populated if there are multiple discounts.
- * @property null|(string|\Stripe\Discount)[] $discounts The discounts applied to the invoice. Line item discounts are applied before invoice discounts. Use expand[]=discounts
to expand each discount.
- * @property null|int $due_date The date on which payment for this invoice is due. This value will be null
for invoices where collection_method=charge_automatically
.
- * @property null|int $effective_at The date when this invoice is in effect. Same as finalized_at
unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the invoice PDF and receipt.
- * @property null|int $ending_balance Ending customer balance after the invoice is finalized. Invoices are finalized approximately an hour after successful webhook delivery or when payment collection is attempted for the invoice. If the invoice has not been finalized yet, this will be null.
- * @property null|string $footer Footer displayed on the invoice.
- * @property null|\Stripe\StripeObject $from_invoice Details of the invoice that was cloned. See the revision documentation for more details.
- * @property \Stripe\StripeObject $issuer
- * @property null|\Stripe\StripeObject $last_finalization_error The error encountered during the previous attempt to finalize the invoice. This field is cleared when the invoice is successfully finalized.
- * @property null|string|\Stripe\Invoice $latest_revision The ID of the most recent non-draft revision of this invoice
- * @property \Stripe\Collection<\Stripe\InvoiceLineItem> $lines The individual line items that make up the invoice. lines
is sorted as follows: (1) pending invoice items (including prorations) in reverse chronological order, (2) subscription items in reverse chronological order, and (3) invoice items added after invoice creation in chronological order.
- * @property bool $livemode Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
- * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- * @property null|int $next_payment_attempt The time at which payment will next be attempted. This value will be null
for invoices where collection_method=send_invoice
.
- * @property null|string $number A unique, identifying string that appears on emails sent to the customer for this invoice. This starts with the customer's unique invoice_prefix if it is specified.
- * @property null|string|\Stripe\Account $on_behalf_of The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the Invoices with Connect documentation for details.
- * @property bool $paid Whether payment was successfully collected for this invoice. An invoice can be paid (most commonly) with a charge or with credit from the customer's account balance.
- * @property bool $paid_out_of_band Returns true if the invoice was manually marked paid, returns false if the invoice hasn't been paid yet or was paid on Stripe.
- * @property null|string|\Stripe\PaymentIntent $payment_intent The PaymentIntent associated with this invoice. The PaymentIntent is generated when the invoice is finalized, and can then be used to pay the invoice. Note that voiding an invoice will cancel the PaymentIntent.
- * @property \Stripe\StripeObject $payment_settings
- * @property null|\Stripe\Collection<\Stripe\InvoicePayment> $payments Payments for this invoice
- * @property int $period_end End of the usage period during which invoice items were added to this invoice.
- * @property int $period_start Start of the usage period during which invoice items were added to this invoice.
- * @property int $post_payment_credit_notes_amount Total amount of all post-payment credit notes issued for this invoice.
- * @property int $pre_payment_credit_notes_amount Total amount of all pre-payment credit notes issued for this invoice.
- * @property null|string|\Stripe\Quote $quote The quote this invoice was generated from.
- * @property null|string $receipt_number This is the transaction number that appears on email receipts sent for this invoice.
- * @property null|\Stripe\StripeObject $rendering The rendering-related settings that control how the invoice is displayed on customer-facing surfaces such as PDF and Hosted Invoice Page.
- * @property null|\Stripe\StripeObject $rendering_options This is a legacy field that will be removed soon. For details about rendering_options
, refer to rendering
instead. Options for invoice PDF rendering.
- * @property null|\Stripe\StripeObject $shipping_cost The details of the cost of shipping, including the ShippingRate applied on the invoice.
- * @property null|\Stripe\StripeObject $shipping_details Shipping details for the invoice. The Invoice PDF will use the shipping_details
value if it is set, otherwise the PDF will render the shipping address from the customer.
- * @property int $starting_balance Starting customer balance before the invoice is finalized. If the invoice has not been finalized yet, this will be the current customer balance. For revision invoices, this also includes any customer balance that was applied to the original invoice.
- * @property null|string $statement_descriptor Extra information about an invoice for the customer's credit card statement.
- * @property null|string $status The status of the invoice, one of draft
, open
, paid
, uncollectible
, or void
. Learn more
- * @property \Stripe\StripeObject $status_transitions
- * @property null|string|\Stripe\Subscription $subscription The subscription that this invoice was prepared for, if any.
- * @property null|\Stripe\StripeObject $subscription_details Details about the subscription that created this invoice.
- * @property null|int $subscription_proration_date Only set for upcoming invoices that preview prorations. The time used to calculate prorations.
- * @property int $subtotal Total of all subscriptions, invoice items, and prorations on the invoice before any invoice level discount or exclusive tax is applied. Item discounts are already incorporated
- * @property null|int $subtotal_excluding_tax The integer amount in cents (or local equivalent) representing the subtotal of the invoice before any invoice level discount or tax is applied. Item discounts are already incorporated
- * @property null|int $tax The amount of tax on this invoice. This is the sum of all the tax amounts on this invoice.
- * @property null|string|\Stripe\TestHelpers\TestClock $test_clock ID of the test clock this invoice belongs to.
- * @property null|\Stripe\StripeObject $threshold_reason
- * @property int $total Total after discounts and taxes.
- * @property null|\Stripe\StripeObject[] $total_discount_amounts The aggregate amounts calculated per discount across all line items.
- * @property null|int $total_excluding_tax The integer amount in cents (or local equivalent) representing the total amount of the invoice including all discounts but excluding all tax.
- * @property null|\Stripe\StripeObject[] $total_margin_amounts The aggregate amounts calculated per margin across all line items.
- * @property \Stripe\StripeObject[] $total_tax_amounts The aggregate amounts calculated per tax rate for all line items.
- * @property null|\Stripe\StripeObject $transfer_data The account (if any) the payment will be attributed to for tax reporting, and where funds from the payment will be transferred to for the invoice.
- * @property null|int $webhooks_delivered_at Invoices are automatically paid or sent 1 hour after webhooks are delivered, or until all webhook delivery attempts have been exhausted. This field tracks the time when webhooks for this invoice were successfully delivered. If the invoice had no webhooks to deliver, this will be set while the invoice is being created.
- */
-class QuotePreviewInvoice extends ApiResource
-{
- const OBJECT_NAME = 'quote_preview_invoice';
-
- use ApiOperations\All;
-
- const BILLING_REASON_AUTOMATIC_PENDING_INVOICE_ITEM_INVOICE = 'automatic_pending_invoice_item_invoice';
- const BILLING_REASON_MANUAL = 'manual';
- const BILLING_REASON_QUOTE_ACCEPT = 'quote_accept';
- const BILLING_REASON_SUBSCRIPTION = 'subscription';
- const BILLING_REASON_SUBSCRIPTION_CREATE = 'subscription_create';
- const BILLING_REASON_SUBSCRIPTION_CYCLE = 'subscription_cycle';
- const BILLING_REASON_SUBSCRIPTION_THRESHOLD = 'subscription_threshold';
- const BILLING_REASON_SUBSCRIPTION_UPDATE = 'subscription_update';
- const BILLING_REASON_UPCOMING = 'upcoming';
-
- const COLLECTION_METHOD_CHARGE_AUTOMATICALLY = 'charge_automatically';
- const COLLECTION_METHOD_SEND_INVOICE = 'send_invoice';
-
- const CUSTOMER_TAX_EXEMPT_EXEMPT = 'exempt';
- const CUSTOMER_TAX_EXEMPT_NONE = 'none';
- const CUSTOMER_TAX_EXEMPT_REVERSE = 'reverse';
-
- const STATUS_DRAFT = 'draft';
- const STATUS_OPEN = 'open';
- const STATUS_PAID = 'paid';
- const STATUS_UNCOLLECTIBLE = 'uncollectible';
- const STATUS_VOID = 'void';
-}
diff --git a/lib/QuotePreviewSubscriptionSchedule.php b/lib/QuotePreviewSubscriptionSchedule.php
deleted file mode 100644
index 94d81905f..000000000
--- a/lib/QuotePreviewSubscriptionSchedule.php
+++ /dev/null
@@ -1,49 +0,0 @@
-prorate_on_next_phase or prorate_up_front
with the default being prorate_on_next_phase
. prorate_on_next_phase
will apply phase changes and generate prorations at transition time. prorate_up_front
will bill for all phases within the current billing cycle up front.
- * @property null|int $canceled_at Time at which the subscription schedule was canceled. Measured in seconds since the Unix epoch.
- * @property null|int $completed_at Time at which the subscription schedule was completed. Measured in seconds since the Unix epoch.
- * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
- * @property null|\Stripe\StripeObject $current_phase Object representing the start and end dates for the current phase of the subscription schedule, if it is active
.
- * @property string|\Stripe\Customer $customer ID of the customer who owns the subscription schedule.
- * @property \Stripe\StripeObject $default_settings
- * @property string $end_behavior Behavior of the subscription schedule and underlying subscription when it ends. Possible values are release
or cancel
with the default being release
. release
will end the subscription schedule and keep the underlying subscription running. cancel
will end the subscription schedule and cancel the underlying subscription.
- * @property bool $livemode Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
- * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- * @property \Stripe\StripeObject[] $phases Configuration for the subscription schedule's phases.
- * @property null|\Stripe\StripeObject $prebilling Time period and invoice for a Subscription billed in advance.
- * @property null|int $released_at Time at which the subscription schedule was released. Measured in seconds since the Unix epoch.
- * @property null|string $released_subscription ID of the subscription once managed by the subscription schedule (if it is released).
- * @property string $status The present status of the subscription schedule. Possible values are not_started
, active
, completed
, released
, and canceled
. You can read more about the different states in our behavior guide.
- * @property null|string|\Stripe\Subscription $subscription ID of the subscription managed by the subscription schedule.
- * @property null|string|\Stripe\TestHelpers\TestClock $test_clock ID of the test clock this subscription schedule belongs to.
- */
-class QuotePreviewSubscriptionSchedule extends ApiResource
-{
- const OBJECT_NAME = 'quote_preview_subscription_schedule';
-
- use ApiOperations\All;
-
- const BILLING_BEHAVIOR_PRORATE_ON_NEXT_PHASE = 'prorate_on_next_phase';
- const BILLING_BEHAVIOR_PRORATE_UP_FRONT = 'prorate_up_front';
-
- const END_BEHAVIOR_CANCEL = 'cancel';
- const END_BEHAVIOR_NONE = 'none';
- const END_BEHAVIOR_RELEASE = 'release';
- const END_BEHAVIOR_RENEW = 'renew';
-
- const STATUS_ACTIVE = 'active';
- const STATUS_CANCELED = 'canceled';
- const STATUS_COMPLETED = 'completed';
- const STATUS_NOT_STARTED = 'not_started';
- const STATUS_RELEASED = 'released';
-}
diff --git a/lib/Service/AccountLinkService.php b/lib/Service/AccountLinkService.php
index 2e9049239..0e72d20c2 100644
--- a/lib/Service/AccountLinkService.php
+++ b/lib/Service/AccountLinkService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class AccountLinkService extends \Stripe\Service\AbstractService
{
/**
@@ -12,7 +18,7 @@ class AccountLinkService extends \Stripe\Service\AbstractService
* Onboarding flow.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/AccountNoticeService.php b/lib/Service/AccountNoticeService.php
index 242aa4001..1e9a07df3 100644
--- a/lib/Service/AccountNoticeService.php
+++ b/lib/Service/AccountNoticeService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class AccountNoticeService extends \Stripe\Service\AbstractService
{
/**
@@ -12,7 +18,7 @@ class AccountNoticeService extends \Stripe\Service\AbstractService
* appearing first.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -28,7 +34,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -44,7 +50,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/AccountService.php b/lib/Service/AccountService.php
index deb0bda2e..59dd4cd5b 100644
--- a/lib/Service/AccountService.php
+++ b/lib/Service/AccountService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class AccountService extends \Stripe\Service\AbstractService
{
/**
@@ -11,7 +17,7 @@ class AccountService extends \Stripe\Service\AbstractService
* href="/docs/connect">Connect. If you’re not a platform, the list is empty.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -29,7 +35,7 @@ public function all($params = null, $opts = null)
*
* @param string $parentId
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -45,7 +51,7 @@ public function allCapabilities($parentId, $params = null, $opts = null)
*
* @param string $parentId
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -63,7 +69,7 @@ public function allExternalAccounts($parentId, $params = null, $opts = null)
*
* @param string $parentId
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -87,7 +93,7 @@ public function allPersons($parentId, $params = null, $opts = null)
* account.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -103,7 +109,7 @@ public function create($params = null, $opts = null)
*
* @param string $parentId
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -124,7 +130,7 @@ public function createExternalAccount($parentId, $params = null, $opts = null)
*
* @param string $parentId
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -140,7 +146,7 @@ public function createLoginLink($parentId, $params = null, $opts = null)
*
* @param string $parentId
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -165,7 +171,7 @@ public function createPerson($parentId, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -182,7 +188,7 @@ public function delete($id, $params = null, $opts = null)
* @param string $parentId
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -203,7 +209,7 @@ public function deleteExternalAccount($parentId, $id, $params = null, $opts = nu
* @param string $parentId
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -222,7 +228,7 @@ public function deletePerson($parentId, $id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -239,7 +245,7 @@ public function reject($id, $params = null, $opts = null)
* @param string $parentId
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -256,7 +262,7 @@ public function retrieveCapability($parentId, $id, $params = null, $opts = null)
* @param string $parentId
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -273,7 +279,7 @@ public function retrieveExternalAccount($parentId, $id, $params = null, $opts =
* @param string $parentId
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -302,7 +308,7 @@ public function retrievePerson($parentId, $id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -320,7 +326,7 @@ public function update($id, $params = null, $opts = null)
* @param string $parentId
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -343,7 +349,7 @@ public function updateCapability($parentId, $id, $params = null, $opts = null)
* @param string $parentId
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -360,7 +366,7 @@ public function updateExternalAccount($parentId, $id, $params = null, $opts = nu
* @param string $parentId
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/AccountSessionService.php b/lib/Service/AccountSessionService.php
index e7d8a1f9f..7c1dba0a3 100644
--- a/lib/Service/AccountSessionService.php
+++ b/lib/Service/AccountSessionService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class AccountSessionService extends \Stripe\Service\AbstractService
{
/**
@@ -11,7 +17,7 @@ class AccountSessionService extends \Stripe\Service\AbstractService
* platform can use on their front-end to grant client-side API access.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/ApplePayDomainService.php b/lib/Service/ApplePayDomainService.php
index 3a076f472..e15852b22 100644
--- a/lib/Service/ApplePayDomainService.php
+++ b/lib/Service/ApplePayDomainService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class ApplePayDomainService extends \Stripe\Service\AbstractService
{
/**
* List apple pay domains.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -25,7 +31,7 @@ public function all($params = null, $opts = null)
* Create an apple pay domain.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -41,7 +47,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -57,7 +63,7 @@ public function delete($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/ApplicationFeeService.php b/lib/Service/ApplicationFeeService.php
index 138c3794e..aa0fc3087 100644
--- a/lib/Service/ApplicationFeeService.php
+++ b/lib/Service/ApplicationFeeService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class ApplicationFeeService extends \Stripe\Service\AbstractService
{
/**
@@ -11,7 +17,7 @@ class ApplicationFeeService extends \Stripe\Service\AbstractService
* fees are returned in sorted order, with the most recent fees appearing first.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -31,7 +37,7 @@ public function all($params = null, $opts = null)
*
* @param string $parentId
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -56,7 +62,7 @@ public function allRefunds($parentId, $params = null, $opts = null)
*
* @param string $parentId
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -73,7 +79,7 @@ public function createRefund($parentId, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -92,7 +98,7 @@ public function retrieve($id, $params = null, $opts = null)
* @param string $parentId
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -112,7 +118,7 @@ public function retrieveRefund($parentId, $id, $params = null, $opts = null)
* @param string $parentId
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Apps/SecretService.php b/lib/Service/Apps/SecretService.php
index 8c9c74b48..db3e777f4 100644
--- a/lib/Service/Apps/SecretService.php
+++ b/lib/Service/Apps/SecretService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\Apps;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class SecretService extends \Stripe\Service\AbstractService
{
/**
* List all secrets stored on the given scope.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -25,7 +31,7 @@ public function all($params = null, $opts = null)
* Create or replace a secret in the secret store.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -40,7 +46,7 @@ public function create($params = null, $opts = null)
* Deletes a secret from the secret store by name and scope.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -55,7 +61,7 @@ public function deleteWhere($params = null, $opts = null)
* Finds a secret in the secret store by name and scope.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/BalanceService.php b/lib/Service/BalanceService.php
index 0f55385f1..3785c205a 100644
--- a/lib/Service/BalanceService.php
+++ b/lib/Service/BalanceService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class BalanceService extends \Stripe\Service\AbstractService
{
/**
@@ -13,7 +19,7 @@ class BalanceService extends \Stripe\Service\AbstractService
* for negative balances.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/BalanceTransactionService.php b/lib/Service/BalanceTransactionService.php
index 9e6d37c04..49a486a18 100644
--- a/lib/Service/BalanceTransactionService.php
+++ b/lib/Service/BalanceTransactionService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class BalanceTransactionService extends \Stripe\Service\AbstractService
{
/**
@@ -15,7 +21,7 @@ class BalanceTransactionService extends \Stripe\Service\AbstractService
* path /v1/balance/history
.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -34,7 +40,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/BillingPortal/ConfigurationService.php b/lib/Service/BillingPortal/ConfigurationService.php
index 11d1a5a3a..983c83d63 100644
--- a/lib/Service/BillingPortal/ConfigurationService.php
+++ b/lib/Service/BillingPortal/ConfigurationService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\BillingPortal;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class ConfigurationService extends \Stripe\Service\AbstractService
{
/**
@@ -11,7 +17,7 @@ class ConfigurationService extends \Stripe\Service\AbstractService
* portal.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -27,7 +33,7 @@ public function all($params = null, $opts = null)
* PortalSession.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -44,7 +50,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -60,7 +66,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/BillingPortal/SessionService.php b/lib/Service/BillingPortal/SessionService.php
index 6b3e60263..33eef5898 100644
--- a/lib/Service/BillingPortal/SessionService.php
+++ b/lib/Service/BillingPortal/SessionService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\BillingPortal;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class SessionService extends \Stripe\Service\AbstractService
{
/**
* Creates a session of the customer portal.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Capital/FinancingOfferService.php b/lib/Service/Capital/FinancingOfferService.php
index b36d7e3c4..94fb1f1e4 100644
--- a/lib/Service/Capital/FinancingOfferService.php
+++ b/lib/Service/Capital/FinancingOfferService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\Capital;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class FinancingOfferService extends \Stripe\Service\AbstractService
{
/**
@@ -11,7 +17,7 @@ class FinancingOfferService extends \Stripe\Service\AbstractService
* your platform.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -28,7 +34,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -44,7 +50,7 @@ public function markDelivered($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Capital/FinancingSummaryService.php b/lib/Service/Capital/FinancingSummaryService.php
index 2b8ac73f5..155f97722 100644
--- a/lib/Service/Capital/FinancingSummaryService.php
+++ b/lib/Service/Capital/FinancingSummaryService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\Capital;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class FinancingSummaryService extends \Stripe\Service\AbstractService
{
/**
@@ -11,7 +17,7 @@ class FinancingSummaryService extends \Stripe\Service\AbstractService
* request.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Capital/FinancingTransactionService.php b/lib/Service/Capital/FinancingTransactionService.php
index e17cf083c..56f8a79dc 100644
--- a/lib/Service/Capital/FinancingTransactionService.php
+++ b/lib/Service/Capital/FinancingTransactionService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\Capital;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class FinancingTransactionService extends \Stripe\Service\AbstractService
{
/**
@@ -11,7 +17,7 @@ class FinancingTransactionService extends \Stripe\Service\AbstractService
* sorted order, with the most recent transactions appearing first.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -27,7 +33,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/ChargeService.php b/lib/Service/ChargeService.php
index dc23b6834..0610db842 100644
--- a/lib/Service/ChargeService.php
+++ b/lib/Service/ChargeService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class ChargeService extends \Stripe\Service\AbstractService
{
/**
@@ -11,7 +17,7 @@ class ChargeService extends \Stripe\Service\AbstractService
* sorted order, with the most recent charges appearing first.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -35,7 +41,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -53,7 +59,7 @@ public function capture($id, $params = null, $opts = null)
* Charge
object used to request payment.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -72,7 +78,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -92,7 +98,7 @@ public function retrieve($id, $params = null, $opts = null)
* during outages. Search functionality is not available to merchants in India.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -109,7 +115,7 @@ public function search($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Checkout/SessionService.php b/lib/Service/Checkout/SessionService.php
index 2291ccd50..f6e8e7acc 100644
--- a/lib/Service/Checkout/SessionService.php
+++ b/lib/Service/Checkout/SessionService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\Checkout;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class SessionService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of Checkout Sessions.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -29,7 +35,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -44,7 +50,7 @@ public function allLineItems($id, $params = null, $opts = null)
* Creates a Session object.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -63,7 +69,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -79,7 +85,7 @@ public function expire($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Climate/OrderService.php b/lib/Service/Climate/OrderService.php
index 7cb1bd36e..385f266e6 100644
--- a/lib/Service/Climate/OrderService.php
+++ b/lib/Service/Climate/OrderService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\Climate;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class OrderService extends \Stripe\Service\AbstractService
{
/**
@@ -11,7 +17,7 @@ class OrderService extends \Stripe\Service\AbstractService
* date, with the most recently created orders appearing first.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -32,7 +38,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -49,7 +55,7 @@ public function cancel($id, $params = null, $opts = null)
* balance.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -65,7 +71,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -81,7 +87,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Climate/ProductService.php b/lib/Service/Climate/ProductService.php
index 0a3d14642..210473d14 100644
--- a/lib/Service/Climate/ProductService.php
+++ b/lib/Service/Climate/ProductService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\Climate;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class ProductService extends \Stripe\Service\AbstractService
{
/**
* Lists all available Climate product objects.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -26,7 +32,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Climate/SupplierService.php b/lib/Service/Climate/SupplierService.php
index 40eac85f6..988c9688a 100644
--- a/lib/Service/Climate/SupplierService.php
+++ b/lib/Service/Climate/SupplierService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\Climate;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class SupplierService extends \Stripe\Service\AbstractService
{
/**
* Lists all available Climate supplier objects.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -26,7 +32,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/ConfirmationTokenService.php b/lib/Service/ConfirmationTokenService.php
index 2f40acc71..a31b18d79 100644
--- a/lib/Service/ConfirmationTokenService.php
+++ b/lib/Service/ConfirmationTokenService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class ConfirmationTokenService extends \Stripe\Service\AbstractService
{
/**
@@ -11,7 +17,7 @@ class ConfirmationTokenService extends \Stripe\Service\AbstractService
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/CountrySpecService.php b/lib/Service/CountrySpecService.php
index 8f3869fee..4c29d0489 100644
--- a/lib/Service/CountrySpecService.php
+++ b/lib/Service/CountrySpecService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class CountrySpecService extends \Stripe\Service\AbstractService
{
/**
* Lists all Country Spec objects available in the API.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -26,7 +32,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/CouponService.php b/lib/Service/CouponService.php
index 89eb2c7d1..faa3ce5a2 100644
--- a/lib/Service/CouponService.php
+++ b/lib/Service/CouponService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class CouponService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of your coupons.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -38,7 +44,7 @@ public function all($params = null, $opts = null)
* it.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -58,7 +64,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -74,7 +80,7 @@ public function delete($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -91,7 +97,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/CreditNoteService.php b/lib/Service/CreditNoteService.php
index a00f010aa..9886f9dcd 100644
--- a/lib/Service/CreditNoteService.php
+++ b/lib/Service/CreditNoteService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class CreditNoteService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of credit notes.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -28,7 +34,7 @@ public function all($params = null, $opts = null)
*
* @param string $parentId
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -62,7 +68,7 @@ public function allLines($parentId, $params = null, $opts = null)
* status
at the time of credit note creation.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -77,7 +83,7 @@ public function create($params = null, $opts = null)
* Get a preview of a credit note without creating it.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -94,7 +100,7 @@ public function preview($params = null, $opts = null)
* the full (paginated) list of line items.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -110,7 +116,7 @@ public function previewLines($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -126,7 +132,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -143,7 +149,7 @@ public function update($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/CustomerService.php b/lib/Service/CustomerService.php
index 418074147..3d0f0911c 100644
--- a/lib/Service/CustomerService.php
+++ b/lib/Service/CustomerService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class CustomerService extends \Stripe\Service\AbstractService
{
/**
@@ -11,7 +17,7 @@ class CustomerService extends \Stripe\Service\AbstractService
* date, with the most recent customers appearing first.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -28,7 +34,7 @@ public function all($params = null, $opts = null)
*
* @param string $parentId
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -45,7 +51,7 @@ public function allBalanceTransactions($parentId, $params = null, $opts = null)
*
* @param string $parentId
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -61,11 +67,11 @@ public function allCashBalanceTransactions($parentId, $params = null, $opts = nu
*
* @param string $parentId
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection<\Stripe\CustomerEntitlement>
+ * @return \Stripe\Collection<\Stripe\StripeObject>
*/
public function allEntitlements($parentId, $params = null, $opts = null)
{
@@ -77,7 +83,7 @@ public function allEntitlements($parentId, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -93,7 +99,7 @@ public function allPaymentMethods($id, $params = null, $opts = null)
*
* @param string $parentId
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -109,7 +115,7 @@ public function allSources($parentId, $params = null, $opts = null)
*
* @param string $parentId
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -124,7 +130,7 @@ public function allTaxIds($parentId, $params = null, $opts = null)
* Creates a new customer object.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -141,7 +147,7 @@ public function create($params = null, $opts = null)
*
* @param string $parentId
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -161,7 +167,7 @@ public function createBalanceTransaction($parentId, $params = null, $opts = null
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -183,7 +189,7 @@ public function createFundingInstructions($id, $params = null, $opts = null)
*
* @param string $parentId
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -199,7 +205,7 @@ public function createSource($parentId, $params = null, $opts = null)
*
* @param string $parentId
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -216,7 +222,7 @@ public function createTaxId($parentId, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -232,7 +238,7 @@ public function delete($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -249,7 +255,7 @@ public function deleteDiscount($id, $params = null, $opts = null)
* @param string $parentId
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -266,7 +272,7 @@ public function deleteSource($parentId, $id, $params = null, $opts = null)
* @param string $parentId
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -282,7 +288,7 @@ public function deleteTaxId($parentId, $id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -300,7 +306,7 @@ public function retrieve($id, $params = null, $opts = null)
* @param string $parentId
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -316,7 +322,7 @@ public function retrieveBalanceTransaction($parentId, $id, $params = null, $opts
*
* @param string $parentId
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -334,7 +340,7 @@ public function retrieveCashBalance($parentId, $params = null, $opts = null)
* @param string $parentId
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -350,11 +356,11 @@ public function retrieveCashBalanceTransaction($parentId, $id, $params = null, $
*
* @param string $parentId
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\CustomerEntitlementSummary
+ * @return \Stripe\StripeObject
*/
public function retrieveEntitlementSummary($parentId, $params = null, $opts = null)
{
@@ -367,7 +373,7 @@ public function retrieveEntitlementSummary($parentId, $params = null, $opts = nu
* @param string $parentId
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -384,7 +390,7 @@ public function retrievePaymentMethod($parentId, $id, $params = null, $opts = nu
* @param string $parentId
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -401,7 +407,7 @@ public function retrieveSource($parentId, $id, $params = null, $opts = null)
* @param string $parentId
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -421,7 +427,7 @@ public function retrieveTaxId($parentId, $id, $params = null, $opts = null)
* during outages. Search functionality is not available to merchants in India.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -449,7 +455,7 @@ public function search($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -467,7 +473,7 @@ public function update($id, $params = null, $opts = null)
* @param string $parentId
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -483,7 +489,7 @@ public function updateBalanceTransaction($parentId, $id, $params = null, $opts =
*
* @param string $parentId
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -500,7 +506,7 @@ public function updateCashBalance($parentId, $params = null, $opts = null)
* @param string $parentId
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -517,7 +523,7 @@ public function updateSource($parentId, $id, $params = null, $opts = null)
* @param string $parentId
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/CustomerSessionService.php b/lib/Service/CustomerSessionService.php
index 57dcba609..b0c19b201 100644
--- a/lib/Service/CustomerSessionService.php
+++ b/lib/Service/CustomerSessionService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class CustomerSessionService extends \Stripe\Service\AbstractService
{
/**
@@ -12,7 +18,7 @@ class CustomerSessionService extends \Stripe\Service\AbstractService
* customer resources.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/DisputeService.php b/lib/Service/DisputeService.php
index 86d3584a0..24d8d8d91 100644
--- a/lib/Service/DisputeService.php
+++ b/lib/Service/DisputeService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class DisputeService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of your disputes.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -30,7 +36,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -46,7 +52,7 @@ public function close($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -70,7 +76,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Entitlements/EventService.php b/lib/Service/Entitlements/EventService.php
index 0837beef6..4753fa0a4 100644
--- a/lib/Service/Entitlements/EventService.php
+++ b/lib/Service/Entitlements/EventService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\Entitlements;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class EventService extends \Stripe\Service\AbstractService
{
/**
@@ -11,7 +17,7 @@ class EventService extends \Stripe\Service\AbstractService
* automatically created by Stripe lifecycle events.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Entitlements/FeatureService.php b/lib/Service/Entitlements/FeatureService.php
index 3d8ae9022..873fc6420 100644
--- a/lib/Service/Entitlements/FeatureService.php
+++ b/lib/Service/Entitlements/FeatureService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\Entitlements;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class FeatureService extends \Stripe\Service\AbstractService
{
/**
* Retrieve a list of features.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -25,7 +31,7 @@ public function all($params = null, $opts = null)
* Creates a feature.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/EphemeralKeyService.php b/lib/Service/EphemeralKeyService.php
index 3ca14c904..dcfd17bc7 100644
--- a/lib/Service/EphemeralKeyService.php
+++ b/lib/Service/EphemeralKeyService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class EphemeralKeyService extends \Stripe\Service\AbstractService
{
/**
@@ -11,7 +17,7 @@ class EphemeralKeyService extends \Stripe\Service\AbstractService
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/EventService.php b/lib/Service/EventService.php
index 9e779dd9a..0994c505c 100644
--- a/lib/Service/EventService.php
+++ b/lib/Service/EventService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class EventService extends \Stripe\Service\AbstractService
{
/**
@@ -14,7 +20,7 @@ class EventService extends \Stripe\Service\AbstractService
* Stripe-Version
header).
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -31,7 +37,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/ExchangeRateService.php b/lib/Service/ExchangeRateService.php
index fe010b00d..a7b6ce36f 100644
--- a/lib/Service/ExchangeRateService.php
+++ b/lib/Service/ExchangeRateService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class ExchangeRateService extends \Stripe\Service\AbstractService
{
/**
@@ -11,7 +17,7 @@ class ExchangeRateService extends \Stripe\Service\AbstractService
* converted to one another. Only shows the currencies for which Stripe supports.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -28,7 +34,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/FileLinkService.php b/lib/Service/FileLinkService.php
index 06929a9c6..ffd0890b5 100644
--- a/lib/Service/FileLinkService.php
+++ b/lib/Service/FileLinkService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class FileLinkService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of file links.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -25,7 +31,7 @@ public function all($params = null, $opts = null)
* Creates a new file link object.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -41,7 +47,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -57,7 +63,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/FileService.php b/lib/Service/FileService.php
index ef76f8f77..fe015f0f6 100644
--- a/lib/Service/FileService.php
+++ b/lib/Service/FileService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class FileService extends \Stripe\Service\AbstractService
{
/**
@@ -12,7 +18,7 @@ class FileService extends \Stripe\Service\AbstractService
* files at the top.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -30,7 +36,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/FinancialConnections/AccountService.php b/lib/Service/FinancialConnections/AccountService.php
index 9f95f967a..eb4ce0e26 100644
--- a/lib/Service/FinancialConnections/AccountService.php
+++ b/lib/Service/FinancialConnections/AccountService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\FinancialConnections;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class AccountService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of Financial Connections Account
objects.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -27,11 +33,11 @@ public function all($params = null, $opts = null)
*
* @param string $parentId
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection<\Stripe\FinancialConnections\AccountInferredBalance>
+ * @return \Stripe\Collection<\Stripe\StripeObject>
*/
public function allInferredBalances($parentId, $params = null, $opts = null)
{
@@ -43,7 +49,7 @@ public function allInferredBalances($parentId, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -61,7 +67,7 @@ public function allOwners($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -77,7 +83,7 @@ public function disconnect($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -93,7 +99,7 @@ public function refresh($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -110,7 +116,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -127,7 +133,7 @@ public function subscribe($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/FinancialConnections/SessionService.php b/lib/Service/FinancialConnections/SessionService.php
index eab589cda..eee05c915 100644
--- a/lib/Service/FinancialConnections/SessionService.php
+++ b/lib/Service/FinancialConnections/SessionService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\FinancialConnections;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class SessionService extends \Stripe\Service\AbstractService
{
/**
@@ -12,7 +18,7 @@ class SessionService extends \Stripe\Service\AbstractService
* launch the flow using Stripe.js.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -28,7 +34,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/FinancialConnections/TransactionService.php b/lib/Service/FinancialConnections/TransactionService.php
index 846662ee6..2e31075e5 100644
--- a/lib/Service/FinancialConnections/TransactionService.php
+++ b/lib/Service/FinancialConnections/TransactionService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\FinancialConnections;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class TransactionService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of Financial Connections Transaction
objects.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -26,7 +32,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/GiftCards/CardService.php b/lib/Service/GiftCards/CardService.php
index e2e0b1fa2..2a4d4a298 100644
--- a/lib/Service/GiftCards/CardService.php
+++ b/lib/Service/GiftCards/CardService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\GiftCards;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class CardService extends \Stripe\Service\AbstractService
{
/**
* List gift cards for an account.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -25,7 +31,7 @@ public function all($params = null, $opts = null)
* Creates a new gift card object.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -41,7 +47,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -57,7 +63,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -73,7 +79,7 @@ public function update($id, $params = null, $opts = null)
* exists.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/GiftCards/TransactionService.php b/lib/Service/GiftCards/TransactionService.php
index 8891799f0..5f3e41015 100644
--- a/lib/Service/GiftCards/TransactionService.php
+++ b/lib/Service/GiftCards/TransactionService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\GiftCards;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class TransactionService extends \Stripe\Service\AbstractService
{
/**
* List gift card transactions for a gift card.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -26,7 +32,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -42,7 +48,7 @@ public function cancel($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -57,7 +63,7 @@ public function confirm($id, $params = null, $opts = null)
* Create a gift card transaction.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -73,7 +79,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -89,7 +95,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Identity/VerificationReportService.php b/lib/Service/Identity/VerificationReportService.php
index 9289d9dfd..0a3b55942 100644
--- a/lib/Service/Identity/VerificationReportService.php
+++ b/lib/Service/Identity/VerificationReportService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\Identity;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class VerificationReportService extends \Stripe\Service\AbstractService
{
/**
* List all verification reports.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -26,7 +32,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Identity/VerificationSessionService.php b/lib/Service/Identity/VerificationSessionService.php
index 96ccb4ded..90ed10b6d 100644
--- a/lib/Service/Identity/VerificationSessionService.php
+++ b/lib/Service/Identity/VerificationSessionService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\Identity;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class VerificationSessionService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of VerificationSessions.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -31,7 +37,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -56,7 +62,7 @@ public function cancel($id, $params = null, $opts = null)
* users’ identity documents
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -94,7 +100,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -114,7 +120,7 @@ public function redact($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -133,7 +139,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/InvoiceItemService.php b/lib/Service/InvoiceItemService.php
index 45e207218..9ee425bbb 100644
--- a/lib/Service/InvoiceItemService.php
+++ b/lib/Service/InvoiceItemService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class InvoiceItemService extends \Stripe\Service\AbstractService
{
/**
@@ -11,7 +17,7 @@ class InvoiceItemService extends \Stripe\Service\AbstractService
* creation date, with the most recently created invoice items appearing first.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -28,7 +34,7 @@ public function all($params = null, $opts = null)
* customer specified.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -46,7 +52,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -62,7 +68,7 @@ public function delete($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -80,7 +86,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/InvoiceService.php b/lib/Service/InvoiceService.php
index 0daef2595..46581252f 100644
--- a/lib/Service/InvoiceService.php
+++ b/lib/Service/InvoiceService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class InvoiceService extends \Stripe\Service\AbstractService
{
/**
@@ -12,7 +18,7 @@ class InvoiceService extends \Stripe\Service\AbstractService
* invoices appearing first.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -31,7 +37,7 @@ public function all($params = null, $opts = null)
*
* @param string $parentId
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -49,11 +55,11 @@ public function allLines($parentId, $params = null, $opts = null)
*
* @param string $parentId
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection<\Stripe\InvoicePayment>
+ * @return \Stripe\Collection<\Stripe\StripeObject>
*/
public function allPayments($parentId, $params = null, $opts = null)
{
@@ -75,7 +81,7 @@ public function allPayments($parentId, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -93,7 +99,7 @@ public function attachPaymentIntent($id, $params = null, $opts = null)
* the invoice to your customers.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -128,7 +134,7 @@ public function create($params = null, $opts = null)
* the subscription_proration_date
on the upcoming invoice resource.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -147,7 +153,7 @@ public function createPreview($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -165,7 +171,7 @@ public function delete($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -182,7 +188,7 @@ public function finalizeInvoice($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -202,7 +208,7 @@ public function markUncollectible($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -218,7 +224,7 @@ public function pay($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -235,11 +241,11 @@ public function retrieve($id, $params = null, $opts = null)
* @param string $parentId
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\InvoicePayment
+ * @return \Stripe\StripeObject
*/
public function retrievePayment($parentId, $id, $params = null, $opts = null)
{
@@ -255,7 +261,7 @@ public function retrievePayment($parentId, $id, $params = null, $opts = null)
* during outages. Search functionality is not available to merchants in India.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -278,7 +284,7 @@ public function search($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -313,7 +319,7 @@ public function sendInvoice($id, $params = null, $opts = null)
* the subscription_proration_date
on the upcoming invoice resource.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -331,7 +337,7 @@ public function upcoming($params = null, $opts = null)
* line items.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -354,7 +360,7 @@ public function upcomingLines($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -373,7 +379,7 @@ public function update($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Issuing/AuthorizationService.php b/lib/Service/Issuing/AuthorizationService.php
index c3bcbc57f..0275a8907 100644
--- a/lib/Service/Issuing/AuthorizationService.php
+++ b/lib/Service/Issuing/AuthorizationService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\Issuing;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class AuthorizationService extends \Stripe\Service\AbstractService
{
/**
@@ -12,7 +18,7 @@ class AuthorizationService extends \Stripe\Service\AbstractService
* object appearing first.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -33,7 +39,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -54,7 +60,7 @@ public function approve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -70,7 +76,7 @@ public function decline($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -88,7 +94,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Issuing/CardService.php b/lib/Service/Issuing/CardService.php
index 22b7e5412..278264caa 100644
--- a/lib/Service/Issuing/CardService.php
+++ b/lib/Service/Issuing/CardService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\Issuing;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class CardService extends \Stripe\Service\AbstractService
{
/**
@@ -12,7 +18,7 @@ class CardService extends \Stripe\Service\AbstractService
* appearing first.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -27,7 +33,7 @@ public function all($params = null, $opts = null)
* Creates an Issuing Card
object.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -43,7 +49,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -60,7 +66,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Issuing/CardholderService.php b/lib/Service/Issuing/CardholderService.php
index 65e675b36..40930d5f1 100644
--- a/lib/Service/Issuing/CardholderService.php
+++ b/lib/Service/Issuing/CardholderService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\Issuing;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class CardholderService extends \Stripe\Service\AbstractService
{
/**
@@ -12,7 +18,7 @@ class CardholderService extends \Stripe\Service\AbstractService
* object appearing first.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -27,7 +33,7 @@ public function all($params = null, $opts = null)
* Creates a new Issuing Cardholder
object that can be issued cards.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -43,7 +49,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -61,7 +67,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Issuing/CreditUnderwritingRecordService.php b/lib/Service/Issuing/CreditUnderwritingRecordService.php
index c3a27435a..a1b5985d7 100644
--- a/lib/Service/Issuing/CreditUnderwritingRecordService.php
+++ b/lib/Service/Issuing/CreditUnderwritingRecordService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\Issuing;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class CreditUnderwritingRecordService extends \Stripe\Service\AbstractService
{
/**
@@ -12,7 +18,7 @@ class CreditUnderwritingRecordService extends \Stripe\Service\AbstractService
* object appearing first.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -28,7 +34,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -44,7 +50,7 @@ public function correct($id, $params = null, $opts = null)
* credit application submission.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -60,7 +66,7 @@ public function createFromApplication($params = null, $opts = null)
* decision coming from a proactive review of an existing accountholder.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -77,7 +83,7 @@ public function createFromProactiveReview($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -93,7 +99,7 @@ public function reportDecision($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Issuing/DisputeService.php b/lib/Service/Issuing/DisputeService.php
index 45c252888..a90372bcc 100644
--- a/lib/Service/Issuing/DisputeService.php
+++ b/lib/Service/Issuing/DisputeService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\Issuing;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class DisputeService extends \Stripe\Service\AbstractService
{
/**
@@ -12,7 +18,7 @@ class DisputeService extends \Stripe\Service\AbstractService
* appearing first.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -31,7 +37,7 @@ public function all($params = null, $opts = null)
* reasons and evidence for more details about evidence requirements.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -47,7 +53,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -67,7 +73,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -86,7 +92,7 @@ public function submit($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Issuing/PersonalizationDesignService.php b/lib/Service/Issuing/PersonalizationDesignService.php
index 74a7ab67d..7c35f6478 100644
--- a/lib/Service/Issuing/PersonalizationDesignService.php
+++ b/lib/Service/Issuing/PersonalizationDesignService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\Issuing;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class PersonalizationDesignService extends \Stripe\Service\AbstractService
{
/**
@@ -12,7 +18,7 @@ class PersonalizationDesignService extends \Stripe\Service\AbstractService
* appearing first.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -27,7 +33,7 @@ public function all($params = null, $opts = null)
* Creates a personalization design object.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -43,7 +49,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -59,7 +65,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Issuing/PhysicalBundleService.php b/lib/Service/Issuing/PhysicalBundleService.php
index 0e6ff3863..558abffdd 100644
--- a/lib/Service/Issuing/PhysicalBundleService.php
+++ b/lib/Service/Issuing/PhysicalBundleService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\Issuing;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class PhysicalBundleService extends \Stripe\Service\AbstractService
{
/**
@@ -11,7 +17,7 @@ class PhysicalBundleService extends \Stripe\Service\AbstractService
* order by creation date, with the most recently created object appearing first.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -27,7 +33,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Issuing/TokenService.php b/lib/Service/Issuing/TokenService.php
index da60d4f06..9a6832889 100644
--- a/lib/Service/Issuing/TokenService.php
+++ b/lib/Service/Issuing/TokenService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\Issuing;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class TokenService extends \Stripe\Service\AbstractService
{
/**
* Lists all Issuing Token
objects for a given card.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -26,7 +32,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -43,7 +49,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Issuing/TransactionService.php b/lib/Service/Issuing/TransactionService.php
index dd83b1820..2d7c6fa28 100644
--- a/lib/Service/Issuing/TransactionService.php
+++ b/lib/Service/Issuing/TransactionService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\Issuing;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class TransactionService extends \Stripe\Service\AbstractService
{
/**
@@ -12,7 +18,7 @@ class TransactionService extends \Stripe\Service\AbstractService
* object appearing first.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -28,7 +34,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -46,7 +52,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/MandateService.php b/lib/Service/MandateService.php
index 156bff0a0..c9c0ab7e2 100644
--- a/lib/Service/MandateService.php
+++ b/lib/Service/MandateService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class MandateService extends \Stripe\Service\AbstractService
{
/**
@@ -11,7 +17,7 @@ class MandateService extends \Stripe\Service\AbstractService
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/MarginService.php b/lib/Service/MarginService.php
index 41b2b41ce..89cfca8a6 100644
--- a/lib/Service/MarginService.php
+++ b/lib/Service/MarginService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class MarginService extends \Stripe\Service\AbstractService
{
/**
* Retrieve a list of your margins.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -30,7 +36,7 @@ public function all($params = null, $opts = null)
* on the original invoice item.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -46,7 +52,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -63,7 +69,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/OrderService.php b/lib/Service/OrderService.php
index 89de15fe8..9f6491b08 100644
--- a/lib/Service/OrderService.php
+++ b/lib/Service/OrderService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class OrderService extends \Stripe\Service\AbstractService
{
/**
@@ -11,7 +17,7 @@ class OrderService extends \Stripe\Service\AbstractService
* with the most recently created orders appearing first.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -29,7 +35,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -45,7 +51,7 @@ public function allLineItems($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -60,7 +66,7 @@ public function cancel($id, $params = null, $opts = null)
* Creates a new open
order object.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -76,7 +82,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -94,7 +100,7 @@ public function reopen($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -114,7 +120,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -131,7 +137,7 @@ public function submit($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/PaymentIntentService.php b/lib/Service/PaymentIntentService.php
index 468b72db0..07c3eda93 100644
--- a/lib/Service/PaymentIntentService.php
+++ b/lib/Service/PaymentIntentService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class PaymentIntentService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of PaymentIntents.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -27,7 +33,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -55,7 +61,7 @@ public function applyCustomerBalance($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -78,7 +84,7 @@ public function cancel($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -111,13 +117,11 @@ public function capture($id, $params = null, $opts = null)
* If any actions are required for the payment, the PaymentIntent will return to
* the requires_confirmation
state after those actions are completed.
* Your server needs to then explicitly re-confirm the PaymentIntent to initiate
- * the next payment attempt. Read the expanded documentation to
- * learn more about manual confirmation.
+ * the next payment attempt.
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -142,7 +146,7 @@ public function confirm($id, $params = null, $opts = null)
* API when you supply confirm=true
.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -153,6 +157,38 @@ public function create($params = null, $opts = null)
return $this->request('post', '/v1/payment_intents', $params, $opts);
}
+ /**
+ * Perform an decremental authorization on an eligible PaymentIntent. To be eligible, the
+ * PaymentIntent’s status must be requires_capture
and decremental_authorization.status
+ * must be available
.
+ *
+ * Decremental authorizations decrease the authorized amount on your customer’s
+ * card to the new, lower amount
provided. A single PaymentIntent can
+ * call this endpoint multiple times to further decrease the authorized amount.
+ *
+ * After decrement, the PaymentIntent object returns with the updated amount.
+ * The PaymentIntent will now be capturable up to the new authorized amount.
+ *
+ * Each PaymentIntent can have a maximum of 10 decremental or incremental
+ * authorization attempts, including declines. After it’s captured, a PaymentIntent
+ * can no longer be decremented.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentIntent
+ */
+ public function decrementAuthorization($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/payment_intents/%s/decrement_authorization', $id), $params, $opts);
+ }
+
/**
* Perform an incremental authorization on an eligible PaymentIntent. To be eligible, the
@@ -184,7 +220,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -207,7 +243,7 @@ public function incrementAuthorization($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -227,7 +263,7 @@ public function retrieve($id, $params = null, $opts = null)
* during outages. Search functionality is not available to merchants in India.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -249,7 +285,7 @@ public function search($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -265,7 +301,7 @@ public function update($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/PaymentLinkService.php b/lib/Service/PaymentLinkService.php
index e5008d7a8..8fd3744e5 100644
--- a/lib/Service/PaymentLinkService.php
+++ b/lib/Service/PaymentLinkService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class PaymentLinkService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of your payment links.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -29,7 +35,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -44,7 +50,7 @@ public function allLineItems($id, $params = null, $opts = null)
* Creates a payment link.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -60,7 +66,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -76,7 +82,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/PaymentMethodConfigurationService.php b/lib/Service/PaymentMethodConfigurationService.php
index 8bdf4e8e7..570232646 100644
--- a/lib/Service/PaymentMethodConfigurationService.php
+++ b/lib/Service/PaymentMethodConfigurationService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class PaymentMethodConfigurationService extends \Stripe\Service\AbstractService
{
/**
* List payment method configurations.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -25,7 +31,7 @@ public function all($params = null, $opts = null)
* Creates a payment method configuration.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -41,7 +47,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -57,7 +63,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/PaymentMethodDomainService.php b/lib/Service/PaymentMethodDomainService.php
index aabcd9885..96eb4e0ca 100644
--- a/lib/Service/PaymentMethodDomainService.php
+++ b/lib/Service/PaymentMethodDomainService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class PaymentMethodDomainService extends \Stripe\Service\AbstractService
{
/**
* Lists the details of existing payment method domains.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -25,7 +31,7 @@ public function all($params = null, $opts = null)
* Creates a payment method domain.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -41,7 +47,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -57,7 +63,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -84,7 +90,7 @@ public function update($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/PaymentMethodService.php b/lib/Service/PaymentMethodService.php
index 70944daa9..88540f7db 100644
--- a/lib/Service/PaymentMethodService.php
+++ b/lib/Service/PaymentMethodService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class PaymentMethodService extends \Stripe\Service\AbstractService
{
/**
@@ -13,7 +19,7 @@ class PaymentMethodService extends \Stripe\Service\AbstractService
* PaymentMethods API instead.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -46,7 +52,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -69,7 +75,7 @@ public function attach($id, $params = null, $opts = null)
* method details ahead of a future payment.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -86,7 +92,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -105,7 +111,7 @@ public function detach($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -122,7 +128,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/PayoutService.php b/lib/Service/PayoutService.php
index 47189f31a..79c0bada6 100644
--- a/lib/Service/PayoutService.php
+++ b/lib/Service/PayoutService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class PayoutService extends \Stripe\Service\AbstractService
{
/**
@@ -12,7 +18,7 @@ class PayoutService extends \Stripe\Service\AbstractService
* recently created payouts appearing first.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -30,7 +36,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -55,7 +61,7 @@ public function cancel($id, $params = null, $opts = null)
* pending amounts by source type.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -73,7 +79,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -96,7 +102,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -114,7 +120,7 @@ public function reverse($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/PlanService.php b/lib/Service/PlanService.php
index 6c0a8d47a..45f41e396 100644
--- a/lib/Service/PlanService.php
+++ b/lib/Service/PlanService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class PlanService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of your plans.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -27,7 +33,7 @@ public function all($params = null, $opts = null)
* migration.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -44,7 +50,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -60,7 +66,7 @@ public function delete($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -78,7 +84,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/PriceService.php b/lib/Service/PriceService.php
index 9117fb08e..805f081b0 100644
--- a/lib/Service/PriceService.php
+++ b/lib/Service/PriceService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class PriceService extends \Stripe\Service\AbstractService
{
/**
@@ -12,7 +18,7 @@ class PriceService extends \Stripe\Service\AbstractService
* For the list of inactive prices, set active
to false.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -28,7 +34,7 @@ public function all($params = null, $opts = null)
* one-time.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -44,7 +50,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -64,7 +70,7 @@ public function retrieve($id, $params = null, $opts = null)
* during outages. Search functionality is not available to merchants in India.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -81,7 +87,7 @@ public function search($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/ProductService.php b/lib/Service/ProductService.php
index 5eb6d82ce..da9485654 100644
--- a/lib/Service/ProductService.php
+++ b/lib/Service/ProductService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class ProductService extends \Stripe\Service\AbstractService
{
/**
@@ -11,7 +17,7 @@ class ProductService extends \Stripe\Service\AbstractService
* date, with the most recently created products appearing first.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -26,7 +32,7 @@ public function all($params = null, $opts = null)
* Creates a new product object.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -44,7 +50,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -62,7 +68,7 @@ public function delete($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -82,7 +88,7 @@ public function retrieve($id, $params = null, $opts = null)
* during outages. Search functionality is not available to merchants in India.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -99,7 +105,7 @@ public function search($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/PromotionCodeService.php b/lib/Service/PromotionCodeService.php
index 17461b4bf..39687d2b1 100644
--- a/lib/Service/PromotionCodeService.php
+++ b/lib/Service/PromotionCodeService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class PromotionCodeService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of your promotion codes.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -26,7 +32,7 @@ public function all($params = null, $opts = null)
* specific customer, redemption limit, and expiration date.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -45,7 +51,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -62,7 +68,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/QuotePhaseService.php b/lib/Service/QuotePhaseService.php
index d2925bb07..1bad2f0a5 100644
--- a/lib/Service/QuotePhaseService.php
+++ b/lib/Service/QuotePhaseService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class QuotePhaseService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of quote phases.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -29,7 +35,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -45,7 +51,7 @@ public function allLineItems($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/QuoteService.php b/lib/Service/QuoteService.php
index af7abdec5..39a5d163d 100644
--- a/lib/Service/QuoteService.php
+++ b/lib/Service/QuoteService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class QuoteService extends \Stripe\Service\AbstractService
{
/**
@@ -11,7 +17,7 @@ class QuoteService extends \Stripe\Service\AbstractService
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -26,7 +32,7 @@ public function accept($id, $params = null, $opts = null)
* Returns a list of your quotes.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -45,7 +51,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -63,7 +69,7 @@ public function allComputedUpfrontLineItems($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -81,7 +87,7 @@ public function allLineItems($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -98,7 +104,7 @@ public function allLines($id, $params = null, $opts = null)
* @param string $parentId
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -114,11 +120,11 @@ public function allPreviewInvoiceLines($parentId, $id, $params = null, $opts = n
*
* @param string $parentId
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection<\Stripe\QuotePreviewInvoice>
+ * @return \Stripe\Collection<\Stripe\StripeObject>
*/
public function allPreviewInvoices($parentId, $params = null, $opts = null)
{
@@ -130,11 +136,11 @@ public function allPreviewInvoices($parentId, $params = null, $opts = null)
*
* @param string $parentId
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection<\Stripe\QuotePreviewSubscriptionSchedule>
+ * @return \Stripe\Collection<\Stripe\StripeObject>
*/
public function allPreviewSubscriptionSchedules($parentId, $params = null, $opts = null)
{
@@ -146,7 +152,7 @@ public function allPreviewSubscriptionSchedules($parentId, $params = null, $opts
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -164,7 +170,7 @@ public function cancel($id, $params = null, $opts = null)
* href="https://dashboard.stripe.com/settings/billing/quote">quote template.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -180,7 +186,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -196,7 +202,7 @@ public function finalizeQuote($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -212,7 +218,7 @@ public function markDraft($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -229,7 +235,7 @@ public function markStale($id, $params = null, $opts = null)
* @param string $id
* @param callable $readBodyChunkCallable
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -250,7 +256,7 @@ public function pdf($id, $readBodyChunkCallable, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -266,7 +272,7 @@ public function reestimate($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -282,7 +288,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Radar/EarlyFraudWarningService.php b/lib/Service/Radar/EarlyFraudWarningService.php
index be119b4c8..332bd8489 100644
--- a/lib/Service/Radar/EarlyFraudWarningService.php
+++ b/lib/Service/Radar/EarlyFraudWarningService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\Radar;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class EarlyFraudWarningService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of early fraud warnings.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -30,7 +36,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Radar/ValueListItemService.php b/lib/Service/Radar/ValueListItemService.php
index b9da3dd8b..553501db0 100644
--- a/lib/Service/Radar/ValueListItemService.php
+++ b/lib/Service/Radar/ValueListItemService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\Radar;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class ValueListItemService extends \Stripe\Service\AbstractService
{
/**
@@ -12,7 +18,7 @@ class ValueListItemService extends \Stripe\Service\AbstractService
* appearing first.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -28,7 +34,7 @@ public function all($params = null, $opts = null)
* parent value list.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -45,7 +51,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -61,7 +67,7 @@ public function delete($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Radar/ValueListService.php b/lib/Service/Radar/ValueListService.php
index 70d9b4863..2fa3a463a 100644
--- a/lib/Service/Radar/ValueListService.php
+++ b/lib/Service/Radar/ValueListService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\Radar;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class ValueListService extends \Stripe\Service\AbstractService
{
/**
@@ -12,7 +18,7 @@ class ValueListService extends \Stripe\Service\AbstractService
* appearing first.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -28,7 +34,7 @@ public function all($params = null, $opts = null)
* rules.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -46,7 +52,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -62,7 +68,7 @@ public function delete($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -80,7 +86,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/RefundService.php b/lib/Service/RefundService.php
index cc7130adc..84517b48f 100644
--- a/lib/Service/RefundService.php
+++ b/lib/Service/RefundService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class RefundService extends \Stripe\Service\AbstractService
{
/**
@@ -12,7 +18,7 @@ class RefundService extends \Stripe\Service\AbstractService
* are always available by default on the Charge object.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -31,7 +37,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -58,7 +64,7 @@ public function cancel($id, $params = null, $opts = null)
* more money than is left on a charge.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -74,7 +80,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -93,7 +99,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Reporting/ReportRunService.php b/lib/Service/Reporting/ReportRunService.php
index b62898fdb..332a39608 100644
--- a/lib/Service/Reporting/ReportRunService.php
+++ b/lib/Service/Reporting/ReportRunService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\Reporting;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class ReportRunService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of Report Runs, with the most recent appearing first.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -26,7 +32,7 @@ public function all($params = null, $opts = null)
* a live-mode API key.).
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -42,7 +48,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Reporting/ReportTypeService.php b/lib/Service/Reporting/ReportTypeService.php
index 7fa503821..ca1db41d6 100644
--- a/lib/Service/Reporting/ReportTypeService.php
+++ b/lib/Service/Reporting/ReportTypeService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\Reporting;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class ReportTypeService extends \Stripe\Service\AbstractService
{
/**
* Returns a full list of Report Types.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -27,7 +33,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/ReviewService.php b/lib/Service/ReviewService.php
index 3bcd325b6..47c14bdd4 100644
--- a/lib/Service/ReviewService.php
+++ b/lib/Service/ReviewService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class ReviewService extends \Stripe\Service\AbstractService
{
/**
@@ -12,7 +18,7 @@ class ReviewService extends \Stripe\Service\AbstractService
* with the most recently created object appearing first.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -29,7 +35,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -45,7 +51,7 @@ public function approve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/SetupAttemptService.php b/lib/Service/SetupAttemptService.php
index 32c563760..4141eec2c 100644
--- a/lib/Service/SetupAttemptService.php
+++ b/lib/Service/SetupAttemptService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class SetupAttemptService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of SetupAttempts that associate with a provided SetupIntent.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/SetupIntentService.php b/lib/Service/SetupIntentService.php
index 17927a0f1..195d5616e 100644
--- a/lib/Service/SetupIntentService.php
+++ b/lib/Service/SetupIntentService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class SetupIntentService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of SetupIntents.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -31,7 +37,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -57,7 +63,7 @@ public function cancel($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -76,7 +82,7 @@ public function confirm($id, $params = null, $opts = null)
* permissions to charge the payment method later.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -99,7 +105,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -115,7 +121,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -131,7 +137,7 @@ public function update($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/ShippingRateService.php b/lib/Service/ShippingRateService.php
index d141e484e..1225d070b 100644
--- a/lib/Service/ShippingRateService.php
+++ b/lib/Service/ShippingRateService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class ShippingRateService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of your shipping rates.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -25,7 +31,7 @@ public function all($params = null, $opts = null)
* Creates a new shipping rate object.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -41,7 +47,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -57,7 +63,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Sigma/ScheduledQueryRunService.php b/lib/Service/Sigma/ScheduledQueryRunService.php
index 0fa8cd9ca..2a8376057 100644
--- a/lib/Service/Sigma/ScheduledQueryRunService.php
+++ b/lib/Service/Sigma/ScheduledQueryRunService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\Sigma;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class ScheduledQueryRunService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of scheduled query runs.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -26,7 +32,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/SourceService.php b/lib/Service/SourceService.php
index e3c2b6445..139c8d6f6 100644
--- a/lib/Service/SourceService.php
+++ b/lib/Service/SourceService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class SourceService extends \Stripe\Service\AbstractService
{
/**
@@ -11,7 +17,7 @@ class SourceService extends \Stripe\Service\AbstractService
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -26,7 +32,7 @@ public function allSourceTransactions($id, $params = null, $opts = null)
* Creates a new source object.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -43,7 +49,7 @@ public function create($params = null, $opts = null)
* @param string $parentId
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -61,7 +67,7 @@ public function detach($parentId, $id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -83,7 +89,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -99,7 +105,7 @@ public function update($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/SubscriptionItemService.php b/lib/Service/SubscriptionItemService.php
index e18c8de41..ffcc4db9e 100644
--- a/lib/Service/SubscriptionItemService.php
+++ b/lib/Service/SubscriptionItemService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class SubscriptionItemService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of your subscription items for a given subscription.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -35,7 +41,7 @@ public function all($params = null, $opts = null)
*
* @param string $parentId
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -51,7 +57,7 @@ public function allUsageRecordSummaries($parentId, $params = null, $opts = null)
* or replaced.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -89,7 +95,7 @@ public function create($params = null, $opts = null)
*
* @param string $parentId
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -106,7 +112,7 @@ public function createUsageRecord($parentId, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -122,7 +128,7 @@ public function delete($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -138,7 +144,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/SubscriptionScheduleService.php b/lib/Service/SubscriptionScheduleService.php
index 02a81a39c..30307adb0 100644
--- a/lib/Service/SubscriptionScheduleService.php
+++ b/lib/Service/SubscriptionScheduleService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class SubscriptionScheduleService extends \Stripe\Service\AbstractService
{
/**
* Retrieves the list of your subscription schedules.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -26,7 +32,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -45,7 +51,7 @@ public function amend($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -61,7 +67,7 @@ public function cancel($id, $params = null, $opts = null)
* active or scheduled subscriptions.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -82,7 +88,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -100,7 +106,7 @@ public function release($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -116,7 +122,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/SubscriptionService.php b/lib/Service/SubscriptionService.php
index 131a138d1..1185a369d 100644
--- a/lib/Service/SubscriptionService.php
+++ b/lib/Service/SubscriptionService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class SubscriptionService extends \Stripe\Service\AbstractService
{
/**
@@ -11,7 +17,7 @@ class SubscriptionService extends \Stripe\Service\AbstractService
* order to list canceled subscriptions, specify status=canceled
.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -43,7 +49,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -70,7 +76,7 @@ public function cancel($id, $params = null, $opts = null)
* billing configurations that change over time.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -86,7 +92,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -107,7 +113,7 @@ public function deleteDiscount($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -123,7 +129,7 @@ public function resume($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -143,7 +149,7 @@ public function retrieve($id, $params = null, $opts = null)
* during outages. Search functionality is not available to merchants in India.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -204,7 +210,7 @@ public function search($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Tax/CalculationService.php b/lib/Service/Tax/CalculationService.php
index dfb4b9046..a3ddf667f 100644
--- a/lib/Service/Tax/CalculationService.php
+++ b/lib/Service/Tax/CalculationService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\Tax;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class CalculationService extends \Stripe\Service\AbstractService
{
/**
@@ -11,7 +17,7 @@ class CalculationService extends \Stripe\Service\AbstractService
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -26,7 +32,7 @@ public function allLineItems($id, $params = null, $opts = null)
* Calculates tax based on input and returns a Tax Calculation
object.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Tax/FormService.php b/lib/Service/Tax/FormService.php
index b52ec904a..91c22fb40 100644
--- a/lib/Service/Tax/FormService.php
+++ b/lib/Service/Tax/FormService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\Tax;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class FormService extends \Stripe\Service\AbstractService
{
/**
@@ -11,7 +17,7 @@ class FormService extends \Stripe\Service\AbstractService
* returned in sorted order, with the oldest tax forms appearing first.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -28,7 +34,7 @@ public function all($params = null, $opts = null)
* @param string $id
* @param callable $readBodyChunkCallable
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -51,7 +57,7 @@ public function pdf($id, $readBodyChunkCallable, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Tax/RegistrationService.php b/lib/Service/Tax/RegistrationService.php
index bb9cde14c..a4b4f19f8 100644
--- a/lib/Service/Tax/RegistrationService.php
+++ b/lib/Service/Tax/RegistrationService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\Tax;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class RegistrationService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of Tax Registration
objects.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -25,7 +31,7 @@ public function all($params = null, $opts = null)
* Creates a new Tax Registration
object.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -41,7 +47,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -60,7 +66,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Tax/SettingsService.php b/lib/Service/Tax/SettingsService.php
index 90eebbfef..e7d359bd2 100644
--- a/lib/Service/Tax/SettingsService.php
+++ b/lib/Service/Tax/SettingsService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\Tax;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class SettingsService extends \Stripe\Service\AbstractService
{
/**
* Retrieves Tax Settings
for a merchant.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -26,7 +32,7 @@ public function retrieve($params = null, $opts = null)
* parameters are editable but none can be removed once set.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Tax/TransactionService.php b/lib/Service/Tax/TransactionService.php
index 5374b5665..156b38360 100644
--- a/lib/Service/Tax/TransactionService.php
+++ b/lib/Service/Tax/TransactionService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\Tax;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class TransactionService extends \Stripe\Service\AbstractService
{
/**
@@ -11,7 +17,7 @@ class TransactionService extends \Stripe\Service\AbstractService
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -26,7 +32,7 @@ public function allLineItems($id, $params = null, $opts = null)
* Creates a Tax Transaction
from a calculation.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -41,7 +47,7 @@ public function createFromCalculation($params = null, $opts = null)
* Partially or fully reverses a previously created Transaction
.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -57,7 +63,7 @@ public function createReversal($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/TaxCodeService.php b/lib/Service/TaxCodeService.php
index fd167a101..a75a8a356 100644
--- a/lib/Service/TaxCodeService.php
+++ b/lib/Service/TaxCodeService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class TaxCodeService extends \Stripe\Service\AbstractService
{
/**
@@ -11,7 +17,7 @@ class TaxCodeService extends \Stripe\Service\AbstractService
* available to add to Products in order to allow specific tax calculations.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -28,7 +34,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/TaxRateService.php b/lib/Service/TaxRateService.php
index 0d67eec33..78aa851e3 100644
--- a/lib/Service/TaxRateService.php
+++ b/lib/Service/TaxRateService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class TaxRateService extends \Stripe\Service\AbstractService
{
/**
@@ -11,7 +17,7 @@ class TaxRateService extends \Stripe\Service\AbstractService
* date, with the most recently created tax rates appearing first.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -26,7 +32,7 @@ public function all($params = null, $opts = null)
* Creates a new tax rate.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -42,7 +48,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -58,7 +64,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Terminal/ConfigurationService.php b/lib/Service/Terminal/ConfigurationService.php
index 97c7c2758..96bc7d38a 100644
--- a/lib/Service/Terminal/ConfigurationService.php
+++ b/lib/Service/Terminal/ConfigurationService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\Terminal;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class ConfigurationService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of Configuration
objects.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -25,7 +31,7 @@ public function all($params = null, $opts = null)
* Creates a new Configuration
object.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -41,7 +47,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -57,7 +63,7 @@ public function delete($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -73,7 +79,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Terminal/ConnectionTokenService.php b/lib/Service/Terminal/ConnectionTokenService.php
index 7b25b2315..e4ef6076e 100644
--- a/lib/Service/Terminal/ConnectionTokenService.php
+++ b/lib/Service/Terminal/ConnectionTokenService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\Terminal;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class ConnectionTokenService extends \Stripe\Service\AbstractService
{
/**
@@ -12,7 +18,7 @@ class ConnectionTokenService extends \Stripe\Service\AbstractService
* an endpoint that creates and returns a connection token.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Terminal/LocationService.php b/lib/Service/Terminal/LocationService.php
index 74a776eb9..12da4ed95 100644
--- a/lib/Service/Terminal/LocationService.php
+++ b/lib/Service/Terminal/LocationService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\Terminal;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class LocationService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of Location
objects.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -27,7 +33,7 @@ public function all($params = null, $opts = null)
* href="/docs/terminal/fleet/locations">Manage locations guide.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -43,7 +49,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -59,7 +65,7 @@ public function delete($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -76,7 +82,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Terminal/ReaderService.php b/lib/Service/Terminal/ReaderService.php
index 752068ce4..56bbc9ac4 100644
--- a/lib/Service/Terminal/ReaderService.php
+++ b/lib/Service/Terminal/ReaderService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\Terminal;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class ReaderService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of Reader
objects.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -26,7 +32,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -42,7 +48,7 @@ public function cancelAction($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -59,7 +65,7 @@ public function collectInputs($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -75,7 +81,7 @@ public function collectPaymentMethod($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -90,7 +96,7 @@ public function confirmPaymentIntent($id, $params = null, $opts = null)
* Creates a new Reader
object.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -106,7 +112,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -122,7 +128,7 @@ public function delete($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -138,7 +144,7 @@ public function processPaymentIntent($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -154,7 +160,7 @@ public function processSetupIntent($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -170,7 +176,7 @@ public function refundPayment($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -186,7 +192,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -203,7 +209,7 @@ public function setReaderDisplay($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/TestHelpers/CustomerService.php b/lib/Service/TestHelpers/CustomerService.php
index b65882838..ad461f21f 100644
--- a/lib/Service/TestHelpers/CustomerService.php
+++ b/lib/Service/TestHelpers/CustomerService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\TestHelpers;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class CustomerService extends \Stripe\Service\AbstractService
{
/**
@@ -11,7 +17,7 @@ class CustomerService extends \Stripe\Service\AbstractService
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/TestHelpers/Issuing/AuthorizationService.php b/lib/Service/TestHelpers/Issuing/AuthorizationService.php
index 73de27cb9..e621ee349 100644
--- a/lib/Service/TestHelpers/Issuing/AuthorizationService.php
+++ b/lib/Service/TestHelpers/Issuing/AuthorizationService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\TestHelpers\Issuing;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class AuthorizationService extends \Stripe\Service\AbstractService
{
/**
@@ -11,7 +17,7 @@ class AuthorizationService extends \Stripe\Service\AbstractService
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -26,7 +32,7 @@ public function capture($id, $params = null, $opts = null)
* Create a test-mode authorization.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -42,7 +48,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -58,7 +64,7 @@ public function expire($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -74,7 +80,7 @@ public function increment($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/TestHelpers/Issuing/CardService.php b/lib/Service/TestHelpers/Issuing/CardService.php
index 01d7080a4..651f93e8c 100644
--- a/lib/Service/TestHelpers/Issuing/CardService.php
+++ b/lib/Service/TestHelpers/Issuing/CardService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\TestHelpers\Issuing;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class CardService extends \Stripe\Service\AbstractService
{
/**
@@ -12,7 +18,7 @@ class CardService extends \Stripe\Service\AbstractService
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -29,7 +35,7 @@ public function deliverCard($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -46,7 +52,7 @@ public function failCard($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -63,7 +69,7 @@ public function returnCard($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/TestHelpers/Issuing/PersonalizationDesignService.php b/lib/Service/TestHelpers/Issuing/PersonalizationDesignService.php
index 4a331030b..e9051d729 100644
--- a/lib/Service/TestHelpers/Issuing/PersonalizationDesignService.php
+++ b/lib/Service/TestHelpers/Issuing/PersonalizationDesignService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\TestHelpers\Issuing;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class PersonalizationDesignService extends \Stripe\Service\AbstractService
{
/**
@@ -12,7 +18,7 @@ class PersonalizationDesignService extends \Stripe\Service\AbstractService
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -29,7 +35,7 @@ public function activate($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -46,7 +52,7 @@ public function deactivate($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/TestHelpers/Issuing/TransactionService.php b/lib/Service/TestHelpers/Issuing/TransactionService.php
index 5fb2965db..6093869c5 100644
--- a/lib/Service/TestHelpers/Issuing/TransactionService.php
+++ b/lib/Service/TestHelpers/Issuing/TransactionService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\TestHelpers\Issuing;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class TransactionService extends \Stripe\Service\AbstractService
{
/**
* Allows the user to capture an arbitrary amount, also known as a forced capture.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -25,7 +31,7 @@ public function createForceCapture($params = null, $opts = null)
* Allows the user to refund an arbitrary amount, also known as a unlinked refund.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -41,7 +47,7 @@ public function createUnlinkedRefund($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/TestHelpers/RefundService.php b/lib/Service/TestHelpers/RefundService.php
index de0e4d10b..497fe506d 100644
--- a/lib/Service/TestHelpers/RefundService.php
+++ b/lib/Service/TestHelpers/RefundService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\TestHelpers;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class RefundService extends \Stripe\Service\AbstractService
{
/**
@@ -11,7 +17,7 @@ class RefundService extends \Stripe\Service\AbstractService
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/TestHelpers/Terminal/ReaderService.php b/lib/Service/TestHelpers/Terminal/ReaderService.php
index 2eb4de496..183419aa6 100644
--- a/lib/Service/TestHelpers/Terminal/ReaderService.php
+++ b/lib/Service/TestHelpers/Terminal/ReaderService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\TestHelpers\Terminal;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class ReaderService extends \Stripe\Service\AbstractService
{
/**
@@ -12,7 +18,7 @@ class ReaderService extends \Stripe\Service\AbstractService
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/TestHelpers/TestClockService.php b/lib/Service/TestHelpers/TestClockService.php
index a4eee8c3e..5c22b779c 100644
--- a/lib/Service/TestHelpers/TestClockService.php
+++ b/lib/Service/TestHelpers/TestClockService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\TestHelpers;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class TestClockService extends \Stripe\Service\AbstractService
{
/**
@@ -12,7 +18,7 @@ class TestClockService extends \Stripe\Service\AbstractService
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -27,7 +33,7 @@ public function advance($id, $params = null, $opts = null)
* Returns a list of your test clocks.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -42,7 +48,7 @@ public function all($params = null, $opts = null)
* Creates a new test clock that can be attached to new customers and quotes.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -58,7 +64,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -74,7 +80,7 @@ public function delete($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/TestHelpers/Treasury/InboundTransferService.php b/lib/Service/TestHelpers/Treasury/InboundTransferService.php
index 1c8247625..b8f0582ed 100644
--- a/lib/Service/TestHelpers/Treasury/InboundTransferService.php
+++ b/lib/Service/TestHelpers/Treasury/InboundTransferService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\TestHelpers\Treasury;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class InboundTransferService extends \Stripe\Service\AbstractService
{
/**
@@ -13,7 +19,7 @@ class InboundTransferService extends \Stripe\Service\AbstractService
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -31,7 +37,7 @@ public function fail($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -49,7 +55,7 @@ public function returnInboundTransfer($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/TestHelpers/Treasury/OutboundPaymentService.php b/lib/Service/TestHelpers/Treasury/OutboundPaymentService.php
index 4981e6852..57f94c47e 100644
--- a/lib/Service/TestHelpers/Treasury/OutboundPaymentService.php
+++ b/lib/Service/TestHelpers/Treasury/OutboundPaymentService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\TestHelpers\Treasury;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class OutboundPaymentService extends \Stripe\Service\AbstractService
{
/**
@@ -13,7 +19,7 @@ class OutboundPaymentService extends \Stripe\Service\AbstractService
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -31,7 +37,7 @@ public function fail($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -49,7 +55,7 @@ public function post($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/TestHelpers/Treasury/OutboundTransferService.php b/lib/Service/TestHelpers/Treasury/OutboundTransferService.php
index 4b26bedf2..5dc9d2f7c 100644
--- a/lib/Service/TestHelpers/Treasury/OutboundTransferService.php
+++ b/lib/Service/TestHelpers/Treasury/OutboundTransferService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\TestHelpers\Treasury;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class OutboundTransferService extends \Stripe\Service\AbstractService
{
/**
@@ -13,7 +19,7 @@ class OutboundTransferService extends \Stripe\Service\AbstractService
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -31,7 +37,7 @@ public function fail($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -49,7 +55,7 @@ public function post($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/TestHelpers/Treasury/ReceivedCreditService.php b/lib/Service/TestHelpers/Treasury/ReceivedCreditService.php
index a90031a32..80051900a 100644
--- a/lib/Service/TestHelpers/Treasury/ReceivedCreditService.php
+++ b/lib/Service/TestHelpers/Treasury/ReceivedCreditService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\TestHelpers\Treasury;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class ReceivedCreditService extends \Stripe\Service\AbstractService
{
/**
@@ -12,7 +18,7 @@ class ReceivedCreditService extends \Stripe\Service\AbstractService
* third parties.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/TestHelpers/Treasury/ReceivedDebitService.php b/lib/Service/TestHelpers/Treasury/ReceivedDebitService.php
index 17f4c8276..d8810aa82 100644
--- a/lib/Service/TestHelpers/Treasury/ReceivedDebitService.php
+++ b/lib/Service/TestHelpers/Treasury/ReceivedDebitService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service\TestHelpers\Treasury;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class ReceivedDebitService extends \Stripe\Service\AbstractService
{
/**
@@ -12,7 +18,7 @@ class ReceivedDebitService extends \Stripe\Service\AbstractService
* parties.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/TokenService.php b/lib/Service/TokenService.php
index 63d2b2bbb..27cf56009 100644
--- a/lib/Service/TokenService.php
+++ b/lib/Service/TokenService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class TokenService extends \Stripe\Service\AbstractService
{
/**
@@ -13,7 +19,7 @@ class TokenService extends \Stripe\Service\AbstractService
* account.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -29,7 +35,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/TopupService.php b/lib/Service/TopupService.php
index bd486b9e2..ffb3de04c 100644
--- a/lib/Service/TopupService.php
+++ b/lib/Service/TopupService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class TopupService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of top-ups.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -26,7 +32,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -41,7 +47,7 @@ public function cancel($id, $params = null, $opts = null)
* Top up the balance of an account.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -59,7 +65,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -76,7 +82,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/TransferService.php b/lib/Service/TransferService.php
index b5113e9a8..fa6577881 100644
--- a/lib/Service/TransferService.php
+++ b/lib/Service/TransferService.php
@@ -4,6 +4,12 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class TransferService extends \Stripe\Service\AbstractService
{
/**
@@ -12,7 +18,7 @@ class TransferService extends \Stripe\Service\AbstractService
* first.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -32,7 +38,7 @@ public function all($params = null, $opts = null)
*
* @param string $parentId
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -49,7 +55,7 @@ public function allReversals($parentId, $params = null, $opts = null)
* cover the transfer amount, or you’ll receive an “Insufficient Funds” error.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -72,7 +78,7 @@ public function create($params = null, $opts = null)
*
* @param string $parentId
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -90,7 +96,7 @@ public function createReversal($parentId, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -109,7 +115,7 @@ public function retrieve($id, $params = null, $opts = null)
* @param string $parentId
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -128,7 +134,7 @@ public function retrieveReversal($parentId, $id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -148,7 +154,7 @@ public function update($id, $params = null, $opts = null)
* @param string $parentId
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Treasury/CreditReversalService.php b/lib/Service/Treasury/CreditReversalService.php
index 60bf900a9..804ee42b2 100644
--- a/lib/Service/Treasury/CreditReversalService.php
+++ b/lib/Service/Treasury/CreditReversalService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\Treasury;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class CreditReversalService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of CreditReversals.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -25,7 +31,7 @@ public function all($params = null, $opts = null)
* Reverses a ReceivedCredit and creates a CreditReversal object.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -43,7 +49,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Treasury/DebitReversalService.php b/lib/Service/Treasury/DebitReversalService.php
index 8887ee145..3f11899de 100644
--- a/lib/Service/Treasury/DebitReversalService.php
+++ b/lib/Service/Treasury/DebitReversalService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\Treasury;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class DebitReversalService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of DebitReversals.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -25,7 +31,7 @@ public function all($params = null, $opts = null)
* Reverses a ReceivedDebit and creates a DebitReversal object.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -41,7 +47,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Treasury/FinancialAccountService.php b/lib/Service/Treasury/FinancialAccountService.php
index 7aa4791ca..e61f5d44b 100644
--- a/lib/Service/Treasury/FinancialAccountService.php
+++ b/lib/Service/Treasury/FinancialAccountService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\Treasury;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class FinancialAccountService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of FinancialAccounts.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -26,7 +32,7 @@ public function all($params = null, $opts = null)
* one FinancialAccount.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -42,7 +48,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -58,7 +64,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -74,7 +80,7 @@ public function retrieveFeatures($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -90,7 +96,7 @@ public function update($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Treasury/InboundTransferService.php b/lib/Service/Treasury/InboundTransferService.php
index 49ea32ba9..8d81ba3dd 100644
--- a/lib/Service/Treasury/InboundTransferService.php
+++ b/lib/Service/Treasury/InboundTransferService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\Treasury;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class InboundTransferService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of InboundTransfers sent from the specified FinancialAccount.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -26,7 +32,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -41,7 +47,7 @@ public function cancel($id, $params = null, $opts = null)
* Creates an InboundTransfer.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -57,7 +63,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Treasury/OutboundPaymentService.php b/lib/Service/Treasury/OutboundPaymentService.php
index e6108e0c1..561231c3e 100644
--- a/lib/Service/Treasury/OutboundPaymentService.php
+++ b/lib/Service/Treasury/OutboundPaymentService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\Treasury;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class OutboundPaymentService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of OutboundPayments sent from the specified FinancialAccount.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -26,7 +32,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -41,7 +47,7 @@ public function cancel($id, $params = null, $opts = null)
* Creates an OutboundPayment.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -59,7 +65,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Treasury/OutboundTransferService.php b/lib/Service/Treasury/OutboundTransferService.php
index f61318657..253d56296 100644
--- a/lib/Service/Treasury/OutboundTransferService.php
+++ b/lib/Service/Treasury/OutboundTransferService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\Treasury;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class OutboundTransferService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of OutboundTransfers sent from the specified FinancialAccount.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -26,7 +32,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -41,7 +47,7 @@ public function cancel($id, $params = null, $opts = null)
* Creates an OutboundTransfer.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -59,7 +65,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Treasury/ReceivedCreditService.php b/lib/Service/Treasury/ReceivedCreditService.php
index 1355deb50..adf134cee 100644
--- a/lib/Service/Treasury/ReceivedCreditService.php
+++ b/lib/Service/Treasury/ReceivedCreditService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\Treasury;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class ReceivedCreditService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of ReceivedCredits.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -27,7 +33,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Treasury/ReceivedDebitService.php b/lib/Service/Treasury/ReceivedDebitService.php
index dfe3786b0..c9993dad5 100644
--- a/lib/Service/Treasury/ReceivedDebitService.php
+++ b/lib/Service/Treasury/ReceivedDebitService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\Treasury;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class ReceivedDebitService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of ReceivedDebits.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -27,7 +33,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Treasury/TransactionEntryService.php b/lib/Service/Treasury/TransactionEntryService.php
index 3943de1c6..c45d1193d 100644
--- a/lib/Service/Treasury/TransactionEntryService.php
+++ b/lib/Service/Treasury/TransactionEntryService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\Treasury;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class TransactionEntryService extends \Stripe\Service\AbstractService
{
/**
* Retrieves a list of TransactionEntry objects.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -26,7 +32,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/Treasury/TransactionService.php b/lib/Service/Treasury/TransactionService.php
index 232b2b1c2..92fd02f2c 100644
--- a/lib/Service/Treasury/TransactionService.php
+++ b/lib/Service/Treasury/TransactionService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service\Treasury;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class TransactionService extends \Stripe\Service\AbstractService
{
/**
* Retrieves a list of Transaction objects.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -26,7 +32,7 @@ public function all($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Service/WebhookEndpointService.php b/lib/Service/WebhookEndpointService.php
index baa15bd24..f86119cdb 100644
--- a/lib/Service/WebhookEndpointService.php
+++ b/lib/Service/WebhookEndpointService.php
@@ -4,13 +4,19 @@
namespace Stripe\Service;
+/**
+ * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
+/**
+ * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
+ */
class WebhookEndpointService extends \Stripe\Service\AbstractService
{
/**
* Returns a list of your webhook endpoints.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -33,7 +39,7 @@ public function all($params = null, $opts = null)
* section of the Dashboard.
*
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -51,7 +57,7 @@ public function create($params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -67,7 +73,7 @@ public function delete($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
@@ -84,7 +90,7 @@ public function retrieve($id, $params = null, $opts = null)
*
* @param string $id
* @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
diff --git a/lib/Tax/Settings.php b/lib/Tax/Settings.php
index 6a1e1d756..fe9638fa4 100644
--- a/lib/Tax/Settings.php
+++ b/lib/Tax/Settings.php
@@ -21,8 +21,27 @@ class Settings extends \Stripe\SingletonApiResource
const OBJECT_NAME = 'tax.settings';
use \Stripe\ApiOperations\SingletonRetrieve;
- use \Stripe\ApiOperations\Update;
const STATUS_ACTIVE = 'active';
const STATUS_PENDING = 'pending';
+
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return static the updated resource
+ */
+ public static function update($params = null, $opts = null)
+ {
+ self::_validateParams($params);
+ $url = '/v1/tax/settings';
+
+ list($response, $opts) = static::_staticRequest('post', $url, $params, $opts);
+ $obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts);
+ $obj->setLastResponse($response);
+
+ return $obj;
+ }
}
diff --git a/lib/TaxId.php b/lib/TaxId.php
index 91f30f23c..71ce1d710 100644
--- a/lib/TaxId.php
+++ b/lib/TaxId.php
@@ -17,7 +17,7 @@
* @property null|string|\Stripe\Customer $customer ID of the customer.
* @property bool $livemode Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
* @property null|\Stripe\StripeObject $owner The account or customer the tax ID belongs to.
- * @property string $type Type of the tax ID, one of ad_nrt
, ae_trn
, ar_cuit
, au_abn
, au_arn
, bg_uic
, bo_tin
, br_cnpj
, br_cpf
, ca_bn
, ca_gst_hst
, ca_pst_bc
, ca_pst_mb
, ca_pst_sk
, ca_qst
, ch_vat
, cl_tin
, cn_tin
, co_nit
, cr_tin
, do_rcn
, ec_ruc
, eg_tin
, es_cif
, eu_oss_vat
, eu_vat
, gb_vat
, ge_vat
, hk_br
, hu_tin
, id_npwp
, il_vat
, in_gst
, is_vat
, jp_cn
, jp_rn
, jp_trn
, ke_pin
, kr_brn
, li_uid
, mx_rfc
, my_frp
, my_itn
, my_sst
, no_vat
, nz_gst
, pe_ruc
, ph_tin
, ro_tin
, rs_pib
, ru_inn
, ru_kpp
, sa_vat
, sg_gst
, sg_uen
, si_tin
, sv_nit
, th_vat
, tr_tin
, tw_vat
, ua_vat
, us_ein
, uy_ruc
, ve_rif
, vn_tin
, or za_vat
. Note that some legacy tax IDs have type unknown
+ * @property string $type Type of the tax ID, one of ad_nrt
, ae_trn
, ar_cuit
, au_abn
, au_arn
, bg_uic
, bo_tin
, br_cnpj
, br_cpf
, ca_bn
, ca_gst_hst
, ca_pst_bc
, ca_pst_mb
, ca_pst_sk
, ca_qst
, ch_vat
, cl_tin
, cn_tin
, co_nit
, cr_tin
, do_rcn
, ec_ruc
, eg_tin
, es_cif
, eu_oss_vat
, eu_vat
, gb_vat
, ge_vat
, hk_br
, hu_tin
, id_npwp
, il_vat
, in_gst
, is_vat
, jp_cn
, jp_rn
, jp_trn
, ke_pin
, kr_brn
, li_uid
, mx_rfc
, my_frp
, my_itn
, my_sst
, no_vat
, no_voec
, nz_gst
, pe_ruc
, ph_tin
, ro_tin
, rs_pib
, ru_inn
, ru_kpp
, sa_vat
, sg_gst
, sg_uen
, si_tin
, sv_nit
, th_vat
, tr_tin
, tw_vat
, ua_vat
, us_ein
, uy_ruc
, ve_rif
, vn_tin
, or za_vat
. Note that some legacy tax IDs have type unknown
* @property string $value Value of the tax ID.
* @property null|\Stripe\StripeObject $verification Tax ID verification information.
*/
@@ -72,6 +72,7 @@ class TaxId extends ApiResource
const TYPE_MY_ITN = 'my_itn';
const TYPE_MY_SST = 'my_sst';
const TYPE_NO_VAT = 'no_vat';
+ const TYPE_NO_VOEC = 'no_voec';
const TYPE_NZ_GST = 'nz_gst';
const TYPE_PE_RUC = 'pe_ruc';
const TYPE_PH_TIN = 'ph_tin';
diff --git a/lib/Util/ObjectTypes.php b/lib/Util/ObjectTypes.php
index a28824c76..53164b3c7 100644
--- a/lib/Util/ObjectTypes.php
+++ b/lib/Util/ObjectTypes.php
@@ -46,8 +46,6 @@ class ObjectTypes
\Stripe\Customer::OBJECT_NAME => \Stripe\Customer::class,
\Stripe\CustomerBalanceTransaction::OBJECT_NAME => \Stripe\CustomerBalanceTransaction::class,
\Stripe\CustomerCashBalanceTransaction::OBJECT_NAME => \Stripe\CustomerCashBalanceTransaction::class,
- \Stripe\CustomerEntitlement::OBJECT_NAME => \Stripe\CustomerEntitlement::class,
- \Stripe\CustomerEntitlementSummary::OBJECT_NAME => \Stripe\CustomerEntitlementSummary::class,
\Stripe\CustomerSession::OBJECT_NAME => \Stripe\CustomerSession::class,
\Stripe\Discount::OBJECT_NAME => \Stripe\Discount::class,
\Stripe\Dispute::OBJECT_NAME => \Stripe\Dispute::class,
@@ -59,7 +57,6 @@ class ObjectTypes
\Stripe\File::OBJECT_NAME => \Stripe\File::class,
\Stripe\FileLink::OBJECT_NAME => \Stripe\FileLink::class,
\Stripe\FinancialConnections\Account::OBJECT_NAME => \Stripe\FinancialConnections\Account::class,
- \Stripe\FinancialConnections\AccountInferredBalance::OBJECT_NAME => \Stripe\FinancialConnections\AccountInferredBalance::class,
\Stripe\FinancialConnections\AccountOwner::OBJECT_NAME => \Stripe\FinancialConnections\AccountOwner::class,
\Stripe\FinancialConnections\AccountOwnership::OBJECT_NAME => \Stripe\FinancialConnections\AccountOwnership::class,
\Stripe\FinancialConnections\Session::OBJECT_NAME => \Stripe\FinancialConnections\Session::class,
@@ -72,7 +69,6 @@ class ObjectTypes
\Stripe\Invoice::OBJECT_NAME => \Stripe\Invoice::class,
\Stripe\InvoiceItem::OBJECT_NAME => \Stripe\InvoiceItem::class,
\Stripe\InvoiceLineItem::OBJECT_NAME => \Stripe\InvoiceLineItem::class,
- \Stripe\InvoicePayment::OBJECT_NAME => \Stripe\InvoicePayment::class,
\Stripe\Issuing\Authorization::OBJECT_NAME => \Stripe\Issuing\Authorization::class,
\Stripe\Issuing\Card::OBJECT_NAME => \Stripe\Issuing\Card::class,
\Stripe\Issuing\Cardholder::OBJECT_NAME => \Stripe\Issuing\Cardholder::class,
@@ -101,8 +97,6 @@ class ObjectTypes
\Stripe\Quote::OBJECT_NAME => \Stripe\Quote::class,
\Stripe\QuoteLine::OBJECT_NAME => \Stripe\QuoteLine::class,
\Stripe\QuotePhase::OBJECT_NAME => \Stripe\QuotePhase::class,
- \Stripe\QuotePreviewInvoice::OBJECT_NAME => \Stripe\QuotePreviewInvoice::class,
- \Stripe\QuotePreviewSubscriptionSchedule::OBJECT_NAME => \Stripe\QuotePreviewSubscriptionSchedule::class,
\Stripe\Radar\EarlyFraudWarning::OBJECT_NAME => \Stripe\Radar\EarlyFraudWarning::class,
\Stripe\Radar\ValueList::OBJECT_NAME => \Stripe\Radar\ValueList::class,
\Stripe\Radar\ValueListItem::OBJECT_NAME => \Stripe\Radar\ValueListItem::class,
diff --git a/lib/Util/RequestOptions.php b/lib/Util/RequestOptions.php
index cce3a521b..488d234cc 100644
--- a/lib/Util/RequestOptions.php
+++ b/lib/Util/RequestOptions.php
@@ -2,6 +2,10 @@
namespace Stripe\Util;
+/**
+ * @phpstan-type RequestOptionsArray array{api_key?: string, idempotency_key?: string, stripe_account?: string, stripe_version?: string, api_base?: string }
+ * @psalm-type RequestOptionsArray = array{api_key?: string, idempotency_key?: string, stripe_account?: string, stripe_version?: string, api_base?: string }
+ */
class RequestOptions
{
/**
diff --git a/tests/Stripe/Tax/SettingsTest.php b/tests/Stripe/Tax/SettingsTest.php
new file mode 100644
index 000000000..243401c23
--- /dev/null
+++ b/tests/Stripe/Tax/SettingsTest.php
@@ -0,0 +1,26 @@
+expectsRequest(
+ 'post',
+ '/v1/tax/settings'
+ );
+ $resource = Settings::update([
+ 'defaults' => [
+ 'tax_behavior' => 'exclusive',
+ ],
+ ]);
+ static::assertInstanceOf(\Stripe\Tax\Settings::class, $resource);
+ }
+}