From 6dda1ca4b4e31e8d2c8943511f93583220193ab3 Mon Sep 17 00:00:00 2001 From: Pavel Krymets Date: Thu, 10 Feb 2022 13:24:05 -0800 Subject: [PATCH 1/4] Add generic parameter to \Stripe\Collection usages --- lib/Account.php | 10 +++---- lib/ApplicationFee.php | 4 +-- lib/BitcoinReceiver.php | 2 +- lib/Charge.php | 2 +- lib/Checkout/Session.php | 4 +-- lib/Collection.php | 26 ++++++++++++++----- lib/CreditNote.php | 4 +-- lib/Customer.php | 14 +++++----- lib/File.php | 2 +- lib/Invoice.php | 4 +-- lib/Order.php | 2 +- lib/PaymentIntent.php | 2 +- lib/PaymentLink.php | 4 +-- lib/Quote.php | 6 ++--- lib/Radar/ValueList.php | 2 +- lib/Recipient.php | 2 +- lib/Service/AccountService.php | 8 +++--- lib/Service/ApplePayDomainService.php | 2 +- lib/Service/ApplicationFeeService.php | 4 +-- lib/Service/BalanceTransactionService.php | 2 +- .../BillingPortal/ConfigurationService.php | 2 +- lib/Service/ChargeService.php | 2 +- lib/Service/Checkout/SessionService.php | 4 +-- lib/Service/CountrySpecService.php | 2 +- lib/Service/CouponService.php | 2 +- lib/Service/CreditNoteService.php | 6 ++--- lib/Service/CustomerService.php | 10 +++---- lib/Service/DisputeService.php | 2 +- lib/Service/EventService.php | 2 +- lib/Service/ExchangeRateService.php | 2 +- lib/Service/FileLinkService.php | 2 +- lib/Service/FileService.php | 2 +- .../Identity/VerificationReportService.php | 2 +- .../Identity/VerificationSessionService.php | 2 +- lib/Service/InvoiceItemService.php | 2 +- lib/Service/InvoiceService.php | 6 ++--- lib/Service/Issuing/AuthorizationService.php | 2 +- lib/Service/Issuing/CardService.php | 2 +- lib/Service/Issuing/CardholderService.php | 2 +- lib/Service/Issuing/DisputeService.php | 2 +- lib/Service/Issuing/TransactionService.php | 2 +- lib/Service/OrderReturnService.php | 2 +- lib/Service/OrderService.php | 2 +- lib/Service/PaymentIntentService.php | 2 +- lib/Service/PaymentLinkService.php | 4 +-- lib/Service/PaymentMethodService.php | 2 +- lib/Service/PayoutService.php | 2 +- lib/Service/PlanService.php | 2 +- lib/Service/PriceService.php | 2 +- lib/Service/ProductService.php | 2 +- lib/Service/PromotionCodeService.php | 2 +- lib/Service/QuoteService.php | 6 ++--- .../Radar/EarlyFraudWarningService.php | 2 +- lib/Service/Radar/ValueListItemService.php | 2 +- lib/Service/Radar/ValueListService.php | 2 +- lib/Service/RefundService.php | 2 +- lib/Service/Reporting/ReportRunService.php | 2 +- lib/Service/Reporting/ReportTypeService.php | 2 +- lib/Service/ReviewService.php | 2 +- lib/Service/SetupAttemptService.php | 2 +- lib/Service/SetupIntentService.php | 2 +- lib/Service/ShippingRateService.php | 2 +- .../Sigma/ScheduledQueryRunService.php | 2 +- lib/Service/SkuService.php | 2 +- lib/Service/SubscriptionItemService.php | 4 +-- lib/Service/SubscriptionScheduleService.php | 2 +- lib/Service/SubscriptionService.php | 2 +- lib/Service/TaxCodeService.php | 2 +- lib/Service/TaxRateService.php | 2 +- lib/Service/Terminal/LocationService.php | 2 +- lib/Service/Terminal/ReaderService.php | 2 +- lib/Service/TopupService.php | 2 +- lib/Service/TransferService.php | 4 +-- lib/Service/WebhookEndpointService.php | 2 +- lib/Subscription.php | 2 +- lib/SubscriptionItem.php | 2 +- lib/Transfer.php | 4 +-- 77 files changed, 132 insertions(+), 118 deletions(-) diff --git a/lib/Account.php b/lib/Account.php index 9be2b82ca..e5d846b0f 100644 --- a/lib/Account.php +++ b/lib/Account.php @@ -26,7 +26,7 @@ * @property string $default_currency Three-letter ISO currency code representing the default currency for the account. This must be a currency that Stripe supports in the account's country. * @property bool $details_submitted Whether account details have been submitted. Standard accounts cannot receive payouts before this is true. * @property null|string $email An email address associated with the account. You can treat this as metadata: it is not used for authentication or messaging account holders. - * @property \Stripe\Collection $external_accounts External accounts (bank accounts and debit cards) currently attached to this account + * @property \Stripe\Collection<\Stripe\BankAccount|\Stripe\Card> $external_accounts External accounts (bank accounts and debit cards) currently attached to this account * @property \Stripe\StripeObject $future_requirements * @property \Stripe\Person $individual

This is an object representing a person associated with a Stripe account.

A platform cannot access a Standard or Express account's persons after the account starts onboarding, such as after generating an account link for the account. See the Standard onboarding or Express onboarding documentation for information about platform pre-filling and account onboarding steps.

Related guide: Handling Identity Verification with the API.

* @property \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. @@ -184,7 +184,7 @@ public function deauthorize($clientId = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection the list of persons + * @return \Stripe\Collection<\Stripe\Person> the list of persons */ public function persons($params = null, $opts = null) { @@ -228,7 +228,7 @@ public function reject($params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection the list of capabilities + * @return \Stripe\Collection<\Stripe\Capability> the list of capabilities */ public static function allCapabilities($id, $params = null, $opts = null) { @@ -273,7 +273,7 @@ public static function updateCapability($id, $capabilityId, $params = null, $opt * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection the list of external accounts (BankAccount or Card) + * @return \Stripe\Collection<\Stripe\BankAccount|\Stripe\Card> the list of external accounts (BankAccount or Card) */ public static function allExternalAccounts($id, $params = null, $opts = null) { @@ -362,7 +362,7 @@ public static function createLoginLink($id, $params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection the list of persons + * @return \Stripe\Collection<\Stripe\Person> the list of persons */ public static function allPersons($id, $params = null, $opts = null) { diff --git a/lib/ApplicationFee.php b/lib/ApplicationFee.php index 88aeed645..2a53204a8 100644 --- a/lib/ApplicationFee.php +++ b/lib/ApplicationFee.php @@ -18,7 +18,7 @@ * @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\Charge $originating_transaction ID of the corresponding charge on the platform account, if this fee was the result of a charge using the destination parameter. * @property bool $refunded Whether the fee has been fully refunded. If the fee is only partially refunded, this attribute will still be false. - * @property \Stripe\Collection $refunds A list of refunds that have been applied to the fee. + * @property \Stripe\Collection<\Stripe\StripeObject> $refunds A list of refunds that have been applied to the fee. */ class ApplicationFee extends ApiResource { @@ -37,7 +37,7 @@ class ApplicationFee extends ApiResource * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection the list of fee refunds + * @return \Stripe\Collection<\Stripe\ApplicationFeeRefund> the list of fee refunds */ public static function allRefunds($id, $params = null, $opts = null) { diff --git a/lib/BitcoinReceiver.php b/lib/BitcoinReceiver.php index 208610a0f..1a0353b40 100644 --- a/lib/BitcoinReceiver.php +++ b/lib/BitcoinReceiver.php @@ -27,7 +27,7 @@ * @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 $payment The ID of the payment created from the receiver, if any. Hidden when viewing the receiver with a publishable key. * @property null|string $refund_address The refund address of this bitcoin receiver. - * @property \Stripe\Collection $transactions A list with one entry for each time that the customer sent bitcoin to the receiver. Hidden when viewing the receiver with a publishable key. + * @property \Stripe\Collection<\Stripe\BitcoinTransaction> $transactions A list with one entry for each time that the customer sent bitcoin to the receiver. Hidden when viewing the receiver with a publishable key. * @property bool $uncaptured_funds This receiver contains uncaptured funds that can be used for a payment or refunded. * @property null|bool $used_for_payment Indicate if this source is used for payment. */ diff --git a/lib/Charge.php b/lib/Charge.php index b9fc301c7..0737d20ad 100644 --- a/lib/Charge.php +++ b/lib/Charge.php @@ -49,7 +49,7 @@ * @property null|string $receipt_number This is the transaction number that appears on email receipts sent for this charge. This attribute will be null until a receipt has been sent. * @property null|string $receipt_url This is the URL to view the receipt for this charge. The receipt is kept up-to-date to the latest state of the charge, including any refunds. If the charge is for an Invoice, the receipt will be stylized as an Invoice receipt. * @property bool $refunded Whether the charge has been fully refunded. If the charge is only partially refunded, this attribute will still be false. - * @property \Stripe\Collection $refunds A list of refunds that have been applied to the charge. + * @property \Stripe\Collection<\Stripe\Refund> $refunds A list of refunds that have been applied to the charge. * @property null|string|\Stripe\Review $review ID of the review associated with this charge if one exists. * @property null|\Stripe\StripeObject $shipping Shipping information for the charge. * @property null|\Stripe\Account|\Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source $source This is a legacy field that will be removed in the future. It contains the Source, Card, or BankAccount object used for the charge. For details about the payment method used for this charge, refer to payment_method or payment_method_details instead. diff --git a/lib/Checkout/Session.php b/lib/Checkout/Session.php index 729287db7..392b99cbd 100644 --- a/lib/Checkout/Session.php +++ b/lib/Checkout/Session.php @@ -41,7 +41,7 @@ * @property null|\Stripe\StripeObject $customer_details The customer details including the customer's tax exempt status and the customer's tax IDs. Only present on Sessions in payment or subscription mode. * @property null|string $customer_email If provided, this value will be used when the Customer object is created. If not provided, customers will be asked to enter their email address. Use this parameter to prefill customer data if you already have an email on file. To access information about the customer once the payment flow is complete, use the customer attribute. * @property int $expires_at The timestamp at which the Checkout Session will expire. - * @property \Stripe\Collection $line_items The line items purchased by the customer. + * @property \Stripe\Collection<\Stripe\LineItem> $line_items The line items purchased by 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|string $locale The IETF language tag of the locale Checkout is displayed in. If blank or auto, the browser's locale is used. * @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. @@ -124,7 +124,7 @@ public function expire($params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection the list of items + * @return \Stripe\Collection<\Stripe\item> the list of items */ public static function allLineItems($id, $params = null, $opts = null) { diff --git a/lib/Collection.php b/lib/Collection.php index 294ea9ddf..768bafbb2 100644 --- a/lib/Collection.php +++ b/lib/Collection.php @@ -5,10 +5,12 @@ /** * Class Collection. * + * @template TStripeObject of StripeObject + * @template-implements \IteratorAggregate * @property string $object * @property string $url * @property bool $has_more - * @property \Stripe\StripeObject[] $data + * @property TStripeObject[] $data */ class Collection extends StripeObject implements \Countable, \IteratorAggregate { @@ -61,6 +63,10 @@ public function offsetGet($k) throw new Exception\InvalidArgumentException($msg); } + /** + * @throws Exception\ApiErrorException + * @return Collection + */ public function all($params = null, $opts = null) { self::_validateParams($params); @@ -78,6 +84,10 @@ public function all($params = null, $opts = null) return $obj; } + /** + * @throws Exception\ApiErrorException + * @return TStripeObject + */ public function create($params = null, $opts = null) { self::_validateParams($params); @@ -88,6 +98,10 @@ public function create($params = null, $opts = null) return Util\Util::convertToStripeObject($response, $opts); } + /** + * @throws Exception\ApiErrorException + * @return TStripeObject + */ public function retrieve($id, $params = null, $opts = null) { self::_validateParams($params); @@ -134,7 +148,7 @@ public function getReverseIterator() } /** - * @return \Generator|StripeObject[] A generator that can be used to + * @return \Generator|TStripeObject[] A generator that can be used to * iterate across all objects across all pages. As page boundaries are * encountered, the next page will be fetched automatically for * continued iteration. @@ -197,7 +211,7 @@ public function isEmpty() * @param null|array $params * @param null|array|string $opts * - * @return Collection + * @return Collection */ public function nextPage($params = null, $opts = null) { @@ -225,7 +239,7 @@ public function nextPage($params = null, $opts = null) * @param null|array $params * @param null|array|string $opts * - * @return Collection + * @return Collection */ public function previousPage($params = null, $opts = null) { @@ -247,7 +261,7 @@ public function previousPage($params = null, $opts = null) /** * Gets the first item from the current page. Returns `null` if the current page is empty. * - * @return null|\Stripe\StripeObject + * @return null|TStripeObject */ public function first() { @@ -257,7 +271,7 @@ public function first() /** * Gets the last item from the current page. Returns `null` if the current page is empty. * - * @return null|\Stripe\StripeObject + * @return null|TStripeObject */ public function last() { diff --git a/lib/CreditNote.php b/lib/CreditNote.php index 591c5d746..85f869d1a 100644 --- a/lib/CreditNote.php +++ b/lib/CreditNote.php @@ -21,7 +21,7 @@ * @property int $discount_amount The integer amount in %s representing the total amount of discount that was credited. * @property \Stripe\StripeObject[] $discount_amounts The aggregate amounts calculated per discount for all line items. * @property string|\Stripe\Invoice $invoice ID of the invoice. - * @property \Stripe\Collection $lines Line items that make up the credit note + * @property \Stripe\Collection<\Stripe\CreditNoteLineItem> $lines Line items that make up the credit note * @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 $memo Customer-facing text that appears on the credit note PDF. * @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. @@ -102,7 +102,7 @@ public function voidCreditNote($params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection the list of credit note line items + * @return \Stripe\Collection<\Stripe\credit_note_line_item> the list of credit note line items */ public static function allLines($id, $params = null, $opts = null) { diff --git a/lib/Customer.php b/lib/Customer.php index 3e4221376..6887e4479 100644 --- a/lib/Customer.php +++ b/lib/Customer.php @@ -32,11 +32,11 @@ * @property null|string $phone The customer's phone number. * @property null|string[] $preferred_locales The customer's preferred locales (languages), ordered by preference. * @property null|\Stripe\StripeObject $shipping Mailing and shipping address for the customer. Appears on invoices emailed to this customer. - * @property \Stripe\Collection $sources The customer's payment sources, if any. - * @property \Stripe\Collection $subscriptions The customer's current subscriptions, if any. + * @property \Stripe\Collection<\Stripe\Account|\Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source> $sources The customer's payment sources, if any. + * @property \Stripe\Collection<\Stripe\Subscription> $subscriptions The customer's current subscriptions, if any. * @property \Stripe\StripeObject $tax * @property null|string $tax_exempt Describes the customer's tax exemption status. One of none, exempt, or reverse. When set to reverse, invoice and receipt PDFs include the text "Reverse charge". - * @property \Stripe\Collection $tax_ids The customer's tax IDs. + * @property \Stripe\Collection<\Stripe\TaxId> $tax_ids The customer's tax IDs. */ class Customer extends ApiResource { @@ -87,7 +87,7 @@ public function deleteDiscount($params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection list of PaymentMethods + * @return \Stripe\Collection<\Stripe\Customer> list of PaymentMethods */ public static function allPaymentMethods($id, $params = null, $opts = null) { @@ -108,7 +108,7 @@ public static function allPaymentMethods($id, $params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection the list of customer balance transactions + * @return \Stripe\Collection<\Stripe\CustomerBalanceTransaction> the list of customer balance transactions */ public static function allBalanceTransactions($id, $params = null, $opts = null) { @@ -167,7 +167,7 @@ public static function updateBalanceTransaction($id, $balanceTransactionId, $par * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection the list of payment sources (AlipayAccount, BankAccount, BitcoinReceiver, Card or Source) + * @return \Stripe\Collection<\Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source> the list of payment sources (AlipayAccount, BankAccount, BitcoinReceiver, Card or Source) */ public static function allSources($id, $params = null, $opts = null) { @@ -241,7 +241,7 @@ public static function updateSource($id, $sourceId, $params = null, $opts = null * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection the list of tax ids + * @return \Stripe\Collection<\Stripe\TaxId> the list of tax ids */ public static function allTaxIds($id, $params = null, $opts = null) { diff --git a/lib/File.php b/lib/File.php index 9f605641e..04646d303 100644 --- a/lib/File.php +++ b/lib/File.php @@ -20,7 +20,7 @@ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. * @property null|int $expires_at The time at which the file expires and is no longer available in epoch seconds. * @property null|string $filename A filename for the file, suitable for saving to a filesystem. - * @property null|\Stripe\Collection $links A list of file links that point at this file. + * @property null|\Stripe\Collection<\Stripe\FileLink> $links A list of file links that point at this file. * @property string $purpose The purpose of the uploaded file. * @property int $size The size in bytes of the file object. * @property null|string $title A user friendly title for the document. diff --git a/lib/Invoice.php b/lib/Invoice.php index 7c2649d4a..f5360a111 100644 --- a/lib/Invoice.php +++ b/lib/Invoice.php @@ -80,7 +80,7 @@ * @property null|string $hosted_invoice_url The URL for the hosted invoice page, which allows customers to view and pay an invoice. If the invoice has not been finalized yet, this will be null. * @property null|string $invoice_pdf The link to download the PDF for the invoice. If the invoice has not been finalized yet, this will be null. * @property null|\Stripe\ErrorObject $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 \Stripe\Collection $lines The individual line items that make up the invoice. lines is sorted as follows: invoice items in reverse chronological order, followed by the subscription, if any. + * @property \Stripe\Collection<\Stripe\InvoiceLineItem> $lines The individual line items that make up the invoice. lines is sorted as follows: invoice items in reverse chronological order, followed by the subscription, 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 $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. @@ -153,7 +153,7 @@ class Invoice extends ApiResource * * @throws StripeExceptionApiErrorException if the request fails * - * @return \Stripe\Collection the list of lines (InvoiceLineItem) + * @return \Stripe\Collection<\Stripe\InvoiceLineItem> the list of lines (InvoiceLineItem) */ public static function allLines($id, $params = null, $opts = null) { diff --git a/lib/Order.php b/lib/Order.php index 52fa2c7de..fbbb90611 100644 --- a/lib/Order.php +++ b/lib/Order.php @@ -28,7 +28,7 @@ * @property \Stripe\OrderItem[] $items List of items constituting the order. An order can have up to 25 items. * @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|\Stripe\Collection $returns A list of returns that have taken place for this order. + * @property null|\Stripe\Collection<\Stripe\OrderReturn> $returns A list of returns that have taken place for this order. * @property null|string $selected_shipping_method The shipping method that is currently selected for this order, if any. If present, it is equal to one of the ids of shipping methods in the shipping_methods array. At order creation time, if there are multiple shipping methods, Stripe will automatically selected the first method. * @property null|\Stripe\StripeObject $shipping The shipping address for the order. Present if the order is for goods to be shipped. * @property null|\Stripe\StripeObject[] $shipping_methods A list of supported shipping methods for this order. The desired shipping method can be specified either by updating the order, or when paying it. diff --git a/lib/PaymentIntent.php b/lib/PaymentIntent.php index e70ee10d6..63f30bd0e 100644 --- a/lib/PaymentIntent.php +++ b/lib/PaymentIntent.php @@ -29,7 +29,7 @@ * @property null|int $canceled_at Populated when status is canceled, this is the time at which the PaymentIntent was canceled. Measured in seconds since the Unix epoch. * @property null|string $cancellation_reason Reason for cancellation of this PaymentIntent, either user-provided (duplicate, fraudulent, requested_by_customer, or abandoned) or generated by Stripe internally (failed_invoice, void_invoice, or automatic). * @property string $capture_method Controls when the funds will be captured from the customer's account. - * @property \Stripe\Collection $charges Charges that were created by this PaymentIntent, if any. + * @property \Stripe\Collection<\Stripe\Charge> $charges Charges that were created by this PaymentIntent, if any. * @property null|string $client_secret

The client secret of this PaymentIntent. Used for client-side retrieval using a publishable key.

The client secret can be used to complete a payment from your frontend. It should not be stored, logged, embedded in URLs, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.

Refer to our docs to accept a payment and learn about how client_secret should be handled.

* @property string $confirmation_method * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. diff --git a/lib/PaymentLink.php b/lib/PaymentLink.php index c0399fe2c..8062c5374 100644 --- a/lib/PaymentLink.php +++ b/lib/PaymentLink.php @@ -26,7 +26,7 @@ * @property null|float $application_fee_percent This represents the percentage of the subscription invoice subtotal that will be transferred to the application owner's Stripe account. * @property \Stripe\StripeObject $automatic_tax * @property string $billing_address_collection Configuration for collecting the customer's billing address. - * @property \Stripe\Collection $line_items The line items representing what is being sold. + * @property \Stripe\Collection<\Stripe\LineItem> $line_items The line items representing what is being sold. * @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 \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|\Stripe\Account $on_behalf_of The account on behalf of which to charge. See the Connect documentation for details. @@ -56,7 +56,7 @@ class PaymentLink extends ApiResource * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection list of LineItems + * @return \Stripe\Collection<\Stripe\PaymentLink> list of LineItems */ public static function allLineItems($id, $params = null, $opts = null) { diff --git a/lib/Quote.php b/lib/Quote.php index 67fc62723..fd6b4eee0 100644 --- a/lib/Quote.php +++ b/lib/Quote.php @@ -30,7 +30,7 @@ * @property null|string $header A header that will be displayed on the quote PDF. * @property null|string|\Stripe\Invoice $invoice The invoice that was created from this quote. * @property null|\Stripe\StripeObject $invoice_settings All invoices will be billed using the specified settings. - * @property \Stripe\Collection $line_items A list of items the customer is being quoted for. + * @property \Stripe\Collection<\Stripe\LineItem> $line_items A list of items the customer is being quoted for. * @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 \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 $number A unique number that identifies this particular quote. This number is assigned once the quote is finalized. @@ -136,7 +136,7 @@ public function finalizeQuote($params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection list of LineItems + * @return \Stripe\Collection<\Stripe\Quote> list of LineItems */ public static function allComputedUpfrontLineItems($id, $params = null, $opts = null) { @@ -155,7 +155,7 @@ public static function allComputedUpfrontLineItems($id, $params = null, $opts = * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection list of LineItems + * @return \Stripe\Collection<\Stripe\Quote> list of LineItems */ public static function allLineItems($id, $params = null, $opts = null) { diff --git a/lib/Radar/ValueList.php b/lib/Radar/ValueList.php index ad374325d..8cd62236f 100644 --- a/lib/Radar/ValueList.php +++ b/lib/Radar/ValueList.php @@ -18,7 +18,7 @@ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. * @property string $created_by The name or email address of the user who created this value list. * @property string $item_type The type of items in the value list. One of card_fingerprint, card_bin, email, ip_address, country, string, case_sensitive_string, or customer_id. - * @property \Stripe\Collection $list_items List of items contained within this value list. + * @property \Stripe\Collection<\Stripe\Radar\ValueListItem> $list_items List of items contained within this value list. * @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 \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 string $name The name of the value list. diff --git a/lib/Recipient.php b/lib/Recipient.php index 8d5ad4c0a..75155b53b 100644 --- a/lib/Recipient.php +++ b/lib/Recipient.php @@ -19,7 +19,7 @@ * @property string $id Unique identifier for the object. * @property string $object String representing the object's type. Objects of the same type share the same value. * @property null|\Stripe\BankAccount $active_account Hash describing the current account on the recipient, if there is one. - * @property null|\Stripe\Collection $cards + * @property null|\Stripe\Collection<\Stripe\Card> $cards * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. * @property null|string|\Stripe\Card $default_card The default card to use for creating transfers to this recipient. * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users. diff --git a/lib/Service/AccountService.php b/lib/Service/AccountService.php index 28d094ec2..4ef217d57 100644 --- a/lib/Service/AccountService.php +++ b/lib/Service/AccountService.php @@ -15,7 +15,7 @@ class AccountService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Account> */ public function all($params = null, $opts = null) { @@ -33,7 +33,7 @@ public function all($params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Capability> */ public function allCapabilities($parentId, $params = null, $opts = null) { @@ -49,7 +49,7 @@ public function allCapabilities($parentId, $params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\BankAccount|\Stripe\Card> */ public function allExternalAccounts($parentId, $params = null, $opts = null) { @@ -67,7 +67,7 @@ public function allExternalAccounts($parentId, $params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Person> */ public function allPersons($parentId, $params = null, $opts = null) { diff --git a/lib/Service/ApplePayDomainService.php b/lib/Service/ApplePayDomainService.php index 6577b6b62..3a076f472 100644 --- a/lib/Service/ApplePayDomainService.php +++ b/lib/Service/ApplePayDomainService.php @@ -14,7 +14,7 @@ class ApplePayDomainService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\ApplePayDomain> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/ApplicationFeeService.php b/lib/Service/ApplicationFeeService.php index c05c3cd59..138c3794e 100644 --- a/lib/Service/ApplicationFeeService.php +++ b/lib/Service/ApplicationFeeService.php @@ -15,7 +15,7 @@ class ApplicationFeeService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\ApplicationFee> */ public function all($params = null, $opts = null) { @@ -35,7 +35,7 @@ public function all($params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\ApplicationFeeRefund> */ public function allRefunds($parentId, $params = null, $opts = null) { diff --git a/lib/Service/BalanceTransactionService.php b/lib/Service/BalanceTransactionService.php index fb1da5018..9e6d37c04 100644 --- a/lib/Service/BalanceTransactionService.php +++ b/lib/Service/BalanceTransactionService.php @@ -19,7 +19,7 @@ class BalanceTransactionService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\BalanceTransaction> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/BillingPortal/ConfigurationService.php b/lib/Service/BillingPortal/ConfigurationService.php index 5a0d70db7..11d1a5a3a 100644 --- a/lib/Service/BillingPortal/ConfigurationService.php +++ b/lib/Service/BillingPortal/ConfigurationService.php @@ -15,7 +15,7 @@ class ConfigurationService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\BillingPortal\Configuration> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/ChargeService.php b/lib/Service/ChargeService.php index f8960edfb..568254589 100644 --- a/lib/Service/ChargeService.php +++ b/lib/Service/ChargeService.php @@ -15,7 +15,7 @@ class ChargeService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Charge> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/Checkout/SessionService.php b/lib/Service/Checkout/SessionService.php index b42ab8a17..5a0b2aa85 100644 --- a/lib/Service/Checkout/SessionService.php +++ b/lib/Service/Checkout/SessionService.php @@ -14,7 +14,7 @@ class SessionService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Checkout\Session> */ public function all($params = null, $opts = null) { @@ -33,7 +33,7 @@ public function all($params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\item> */ public function allLineItems($parentId, $params = null, $opts = null) { diff --git a/lib/Service/CountrySpecService.php b/lib/Service/CountrySpecService.php index 573444fd3..8f3869fee 100644 --- a/lib/Service/CountrySpecService.php +++ b/lib/Service/CountrySpecService.php @@ -14,7 +14,7 @@ class CountrySpecService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\CountrySpec> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/CouponService.php b/lib/Service/CouponService.php index 82a880f53..89eb2c7d1 100644 --- a/lib/Service/CouponService.php +++ b/lib/Service/CouponService.php @@ -14,7 +14,7 @@ class CouponService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Coupon> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/CreditNoteService.php b/lib/Service/CreditNoteService.php index 23681402e..06d7de526 100644 --- a/lib/Service/CreditNoteService.php +++ b/lib/Service/CreditNoteService.php @@ -14,7 +14,7 @@ class CreditNoteService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\CreditNote> */ public function all($params = null, $opts = null) { @@ -32,7 +32,7 @@ public function all($params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\credit_note_line_item> */ public function allLines($parentId, $params = null, $opts = null) { @@ -98,7 +98,7 @@ public function preview($params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\CreditNote> */ public function previewLines($params = null, $opts = null) { diff --git a/lib/Service/CustomerService.php b/lib/Service/CustomerService.php index c05633cde..fbe3a3d6e 100644 --- a/lib/Service/CustomerService.php +++ b/lib/Service/CustomerService.php @@ -15,7 +15,7 @@ class CustomerService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Customer> */ public function all($params = null, $opts = null) { @@ -32,7 +32,7 @@ public function all($params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\CustomerBalanceTransaction> */ public function allBalanceTransactions($parentId, $params = null, $opts = null) { @@ -48,7 +48,7 @@ public function allBalanceTransactions($parentId, $params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Customer> */ public function allPaymentMethods($id, $params = null, $opts = null) { @@ -64,7 +64,7 @@ public function allPaymentMethods($id, $params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source> */ public function allSources($parentId, $params = null, $opts = null) { @@ -80,7 +80,7 @@ public function allSources($parentId, $params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\TaxId> */ public function allTaxIds($parentId, $params = null, $opts = null) { diff --git a/lib/Service/DisputeService.php b/lib/Service/DisputeService.php index 4eb1542bf..86d3584a0 100644 --- a/lib/Service/DisputeService.php +++ b/lib/Service/DisputeService.php @@ -14,7 +14,7 @@ class DisputeService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Dispute> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/EventService.php b/lib/Service/EventService.php index 430b35abf..9e779dd9a 100644 --- a/lib/Service/EventService.php +++ b/lib/Service/EventService.php @@ -18,7 +18,7 @@ class EventService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Event> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/ExchangeRateService.php b/lib/Service/ExchangeRateService.php index fc78410c7..fe010b00d 100644 --- a/lib/Service/ExchangeRateService.php +++ b/lib/Service/ExchangeRateService.php @@ -15,7 +15,7 @@ class ExchangeRateService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\ExchangeRate> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/FileLinkService.php b/lib/Service/FileLinkService.php index 7a3a435dd..06929a9c6 100644 --- a/lib/Service/FileLinkService.php +++ b/lib/Service/FileLinkService.php @@ -14,7 +14,7 @@ class FileLinkService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\FileLink> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/FileService.php b/lib/Service/FileService.php index 148428849..82ef0e500 100644 --- a/lib/Service/FileService.php +++ b/lib/Service/FileService.php @@ -16,7 +16,7 @@ class FileService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\File> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/Identity/VerificationReportService.php b/lib/Service/Identity/VerificationReportService.php index 0393cd565..9289d9dfd 100644 --- a/lib/Service/Identity/VerificationReportService.php +++ b/lib/Service/Identity/VerificationReportService.php @@ -14,7 +14,7 @@ class VerificationReportService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Identity\VerificationReport> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/Identity/VerificationSessionService.php b/lib/Service/Identity/VerificationSessionService.php index 1a763bef3..24bb4e063 100644 --- a/lib/Service/Identity/VerificationSessionService.php +++ b/lib/Service/Identity/VerificationSessionService.php @@ -14,7 +14,7 @@ class VerificationSessionService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Identity\VerificationSession> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/InvoiceItemService.php b/lib/Service/InvoiceItemService.php index 0f0b9e91f..45e207218 100644 --- a/lib/Service/InvoiceItemService.php +++ b/lib/Service/InvoiceItemService.php @@ -15,7 +15,7 @@ class InvoiceItemService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\InvoiceItem> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/InvoiceService.php b/lib/Service/InvoiceService.php index 4e2efe696..a932447e8 100644 --- a/lib/Service/InvoiceService.php +++ b/lib/Service/InvoiceService.php @@ -16,7 +16,7 @@ class InvoiceService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Invoice> */ public function all($params = null, $opts = null) { @@ -35,7 +35,7 @@ public function all($params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\line_item> */ public function allLines($parentId, $params = null, $opts = null) { @@ -221,7 +221,7 @@ public function upcoming($params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Invoice> */ public function upcomingLines($params = null, $opts = null) { diff --git a/lib/Service/Issuing/AuthorizationService.php b/lib/Service/Issuing/AuthorizationService.php index 6fff70e7e..6517688f6 100644 --- a/lib/Service/Issuing/AuthorizationService.php +++ b/lib/Service/Issuing/AuthorizationService.php @@ -16,7 +16,7 @@ class AuthorizationService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Issuing\Authorization> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/Issuing/CardService.php b/lib/Service/Issuing/CardService.php index 346d54afa..22b7e5412 100644 --- a/lib/Service/Issuing/CardService.php +++ b/lib/Service/Issuing/CardService.php @@ -16,7 +16,7 @@ class CardService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Issuing\Card> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/Issuing/CardholderService.php b/lib/Service/Issuing/CardholderService.php index 5731b1bf1..65e675b36 100644 --- a/lib/Service/Issuing/CardholderService.php +++ b/lib/Service/Issuing/CardholderService.php @@ -16,7 +16,7 @@ class CardholderService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Issuing\Cardholder> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/Issuing/DisputeService.php b/lib/Service/Issuing/DisputeService.php index ab5df5f3e..45c252888 100644 --- a/lib/Service/Issuing/DisputeService.php +++ b/lib/Service/Issuing/DisputeService.php @@ -16,7 +16,7 @@ class DisputeService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Issuing\Dispute> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/Issuing/TransactionService.php b/lib/Service/Issuing/TransactionService.php index 8fb0ee2ac..dd83b1820 100644 --- a/lib/Service/Issuing/TransactionService.php +++ b/lib/Service/Issuing/TransactionService.php @@ -16,7 +16,7 @@ class TransactionService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Issuing\Transaction> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/OrderReturnService.php b/lib/Service/OrderReturnService.php index 6183166c5..b98af5f3f 100644 --- a/lib/Service/OrderReturnService.php +++ b/lib/Service/OrderReturnService.php @@ -15,7 +15,7 @@ class OrderReturnService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\OrderReturn> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/OrderService.php b/lib/Service/OrderService.php index fa658fa7b..9da8a3dbb 100644 --- a/lib/Service/OrderService.php +++ b/lib/Service/OrderService.php @@ -15,7 +15,7 @@ class OrderService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Order> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/PaymentIntentService.php b/lib/Service/PaymentIntentService.php index 912cec14d..21935c7ea 100644 --- a/lib/Service/PaymentIntentService.php +++ b/lib/Service/PaymentIntentService.php @@ -14,7 +14,7 @@ class PaymentIntentService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\PaymentIntent> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/PaymentLinkService.php b/lib/Service/PaymentLinkService.php index 323d997b7..902cee09c 100644 --- a/lib/Service/PaymentLinkService.php +++ b/lib/Service/PaymentLinkService.php @@ -14,7 +14,7 @@ class PaymentLinkService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\PaymentLink> */ public function all($params = null, $opts = null) { @@ -33,7 +33,7 @@ public function all($params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\PaymentLink> */ public function allLineItems($id, $params = null, $opts = null) { diff --git a/lib/Service/PaymentMethodService.php b/lib/Service/PaymentMethodService.php index e7f341a0b..33ba21179 100644 --- a/lib/Service/PaymentMethodService.php +++ b/lib/Service/PaymentMethodService.php @@ -16,7 +16,7 @@ class PaymentMethodService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\PaymentMethod> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/PayoutService.php b/lib/Service/PayoutService.php index 547e22da6..4ca3561c8 100644 --- a/lib/Service/PayoutService.php +++ b/lib/Service/PayoutService.php @@ -16,7 +16,7 @@ class PayoutService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Payout> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/PlanService.php b/lib/Service/PlanService.php index 16625d27a..6c0a8d47a 100644 --- a/lib/Service/PlanService.php +++ b/lib/Service/PlanService.php @@ -14,7 +14,7 @@ class PlanService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Plan> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/PriceService.php b/lib/Service/PriceService.php index cc44f69c9..e1c850c52 100644 --- a/lib/Service/PriceService.php +++ b/lib/Service/PriceService.php @@ -14,7 +14,7 @@ class PriceService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Price> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/ProductService.php b/lib/Service/ProductService.php index 850cea56f..0e2eae7a9 100644 --- a/lib/Service/ProductService.php +++ b/lib/Service/ProductService.php @@ -15,7 +15,7 @@ class ProductService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Product> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/PromotionCodeService.php b/lib/Service/PromotionCodeService.php index e4c3d202a..17461b4bf 100644 --- a/lib/Service/PromotionCodeService.php +++ b/lib/Service/PromotionCodeService.php @@ -14,7 +14,7 @@ class PromotionCodeService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\PromotionCode> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/QuoteService.php b/lib/Service/QuoteService.php index 96f12a5c3..d6d20c0b4 100644 --- a/lib/Service/QuoteService.php +++ b/lib/Service/QuoteService.php @@ -30,7 +30,7 @@ public function accept($id, $params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Quote> */ public function all($params = null, $opts = null) { @@ -49,7 +49,7 @@ public function all($params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Quote> */ public function allComputedUpfrontLineItems($id, $params = null, $opts = null) { @@ -67,7 +67,7 @@ public function allComputedUpfrontLineItems($id, $params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Quote> */ public function allLineItems($id, $params = null, $opts = null) { diff --git a/lib/Service/Radar/EarlyFraudWarningService.php b/lib/Service/Radar/EarlyFraudWarningService.php index 7b0973483..be119b4c8 100644 --- a/lib/Service/Radar/EarlyFraudWarningService.php +++ b/lib/Service/Radar/EarlyFraudWarningService.php @@ -14,7 +14,7 @@ class EarlyFraudWarningService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Radar\EarlyFraudWarning> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/Radar/ValueListItemService.php b/lib/Service/Radar/ValueListItemService.php index 89eba2a7a..b9da3dd8b 100644 --- a/lib/Service/Radar/ValueListItemService.php +++ b/lib/Service/Radar/ValueListItemService.php @@ -16,7 +16,7 @@ class ValueListItemService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Radar\ValueListItem> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/Radar/ValueListService.php b/lib/Service/Radar/ValueListService.php index 64ac2ee79..70d9b4863 100644 --- a/lib/Service/Radar/ValueListService.php +++ b/lib/Service/Radar/ValueListService.php @@ -16,7 +16,7 @@ class ValueListService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Radar\ValueList> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/RefundService.php b/lib/Service/RefundService.php index 49b4267e4..cfbef54c5 100644 --- a/lib/Service/RefundService.php +++ b/lib/Service/RefundService.php @@ -17,7 +17,7 @@ class RefundService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Refund> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/Reporting/ReportRunService.php b/lib/Service/Reporting/ReportRunService.php index 692420cd4..b62898fdb 100644 --- a/lib/Service/Reporting/ReportRunService.php +++ b/lib/Service/Reporting/ReportRunService.php @@ -14,7 +14,7 @@ class ReportRunService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Reporting\ReportRun> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/Reporting/ReportTypeService.php b/lib/Service/Reporting/ReportTypeService.php index e1b4ea521..7fa503821 100644 --- a/lib/Service/Reporting/ReportTypeService.php +++ b/lib/Service/Reporting/ReportTypeService.php @@ -14,7 +14,7 @@ class ReportTypeService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Reporting\ReportType> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/ReviewService.php b/lib/Service/ReviewService.php index ea152f23e..3bcd325b6 100644 --- a/lib/Service/ReviewService.php +++ b/lib/Service/ReviewService.php @@ -16,7 +16,7 @@ class ReviewService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Review> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/SetupAttemptService.php b/lib/Service/SetupAttemptService.php index 7376ea13e..8657441ec 100644 --- a/lib/Service/SetupAttemptService.php +++ b/lib/Service/SetupAttemptService.php @@ -14,7 +14,7 @@ class SetupAttemptService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\SetupAttempt> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/SetupIntentService.php b/lib/Service/SetupIntentService.php index 3cbec506f..99a06c825 100644 --- a/lib/Service/SetupIntentService.php +++ b/lib/Service/SetupIntentService.php @@ -14,7 +14,7 @@ class SetupIntentService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\SetupIntent> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/ShippingRateService.php b/lib/Service/ShippingRateService.php index d7b55a8b3..d141e484e 100644 --- a/lib/Service/ShippingRateService.php +++ b/lib/Service/ShippingRateService.php @@ -14,7 +14,7 @@ class ShippingRateService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\ShippingRate> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/Sigma/ScheduledQueryRunService.php b/lib/Service/Sigma/ScheduledQueryRunService.php index 92641751b..0fa8cd9ca 100644 --- a/lib/Service/Sigma/ScheduledQueryRunService.php +++ b/lib/Service/Sigma/ScheduledQueryRunService.php @@ -14,7 +14,7 @@ class ScheduledQueryRunService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Sigma\ScheduledQueryRun> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/SkuService.php b/lib/Service/SkuService.php index 8934f2064..c00194ea3 100644 --- a/lib/Service/SkuService.php +++ b/lib/Service/SkuService.php @@ -15,7 +15,7 @@ class SkuService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\SKU> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/SubscriptionItemService.php b/lib/Service/SubscriptionItemService.php index 3b2aa2b12..60267ee93 100644 --- a/lib/Service/SubscriptionItemService.php +++ b/lib/Service/SubscriptionItemService.php @@ -14,7 +14,7 @@ class SubscriptionItemService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\SubscriptionItem> */ public function all($params = null, $opts = null) { @@ -39,7 +39,7 @@ public function all($params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\usage_record_summary> */ public function allUsageRecordSummaries($parentId, $params = null, $opts = null) { diff --git a/lib/Service/SubscriptionScheduleService.php b/lib/Service/SubscriptionScheduleService.php index 9eed46060..42aaf6bbe 100644 --- a/lib/Service/SubscriptionScheduleService.php +++ b/lib/Service/SubscriptionScheduleService.php @@ -14,7 +14,7 @@ class SubscriptionScheduleService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\SubscriptionSchedule> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/SubscriptionService.php b/lib/Service/SubscriptionService.php index f3ac768c8..8369e9975 100644 --- a/lib/Service/SubscriptionService.php +++ b/lib/Service/SubscriptionService.php @@ -15,7 +15,7 @@ class SubscriptionService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Subscription> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/TaxCodeService.php b/lib/Service/TaxCodeService.php index 007b77136..1e5bbfeb4 100644 --- a/lib/Service/TaxCodeService.php +++ b/lib/Service/TaxCodeService.php @@ -15,7 +15,7 @@ class TaxCodeService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\TaxCode> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/TaxRateService.php b/lib/Service/TaxRateService.php index 7cee1fead..0d67eec33 100644 --- a/lib/Service/TaxRateService.php +++ b/lib/Service/TaxRateService.php @@ -15,7 +15,7 @@ class TaxRateService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\TaxRate> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/Terminal/LocationService.php b/lib/Service/Terminal/LocationService.php index 5a217bea4..74a776eb9 100644 --- a/lib/Service/Terminal/LocationService.php +++ b/lib/Service/Terminal/LocationService.php @@ -14,7 +14,7 @@ class LocationService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Terminal\Location> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/Terminal/ReaderService.php b/lib/Service/Terminal/ReaderService.php index 765015c83..413bc8715 100644 --- a/lib/Service/Terminal/ReaderService.php +++ b/lib/Service/Terminal/ReaderService.php @@ -14,7 +14,7 @@ class ReaderService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Terminal\Reader> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/TopupService.php b/lib/Service/TopupService.php index 059dc2090..bd486b9e2 100644 --- a/lib/Service/TopupService.php +++ b/lib/Service/TopupService.php @@ -14,7 +14,7 @@ class TopupService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Topup> */ public function all($params = null, $opts = null) { diff --git a/lib/Service/TransferService.php b/lib/Service/TransferService.php index 150bbf731..4a78545e0 100644 --- a/lib/Service/TransferService.php +++ b/lib/Service/TransferService.php @@ -16,7 +16,7 @@ class TransferService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\Transfer> */ public function all($params = null, $opts = null) { @@ -36,7 +36,7 @@ public function all($params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\TransferReversal> */ public function allReversals($parentId, $params = null, $opts = null) { diff --git a/lib/Service/WebhookEndpointService.php b/lib/Service/WebhookEndpointService.php index 01e642249..baa15bd24 100644 --- a/lib/Service/WebhookEndpointService.php +++ b/lib/Service/WebhookEndpointService.php @@ -14,7 +14,7 @@ class WebhookEndpointService extends \Stripe\Service\AbstractService * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection + * @return \Stripe\Collection<\Stripe\WebhookEndpoint> */ public function all($params = null, $opts = null) { diff --git a/lib/Subscription.php b/lib/Subscription.php index a96b53bce..1b91e384d 100644 --- a/lib/Subscription.php +++ b/lib/Subscription.php @@ -31,7 +31,7 @@ * @property null|\Stripe\TaxRate[] $default_tax_rates The tax rates that will apply to any subscription item that does not have tax_rates set. Invoices created will have their default_tax_rates populated from the subscription. * @property null|\Stripe\Discount $discount Describes the current discount applied to this subscription, if there is one. When billing, a discount applied to a subscription overrides a discount applied on a customer-wide basis. * @property null|int $ended_at If the subscription has ended, the date the subscription ended. - * @property \Stripe\Collection $items List of subscription items, each with an attached price. + * @property \Stripe\Collection<\Stripe\SubscriptionItem> $items List of subscription items, each with an attached price. * @property null|string|\Stripe\Invoice $latest_invoice The most recent invoice this subscription has generated. * @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 \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. diff --git a/lib/SubscriptionItem.php b/lib/SubscriptionItem.php index 5bd25b252..e7b16b31e 100644 --- a/lib/SubscriptionItem.php +++ b/lib/SubscriptionItem.php @@ -75,7 +75,7 @@ public function usageRecordSummaries($params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection the list of usage record summaries + * @return \Stripe\Collection<\Stripe\usage_record_summary> the list of usage record summaries */ public static function allUsageRecordSummaries($id, $params = null, $opts = null) { diff --git a/lib/Transfer.php b/lib/Transfer.php index 4fb0c6a64..fed09bb97 100644 --- a/lib/Transfer.php +++ b/lib/Transfer.php @@ -30,7 +30,7 @@ * @property string|\Stripe\Charge $destination_payment If the destination is a Stripe account, this will be the ID of the payment that the destination account received for the transfer. * @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 \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\Collection $reversals A list of reversals that have been applied to the transfer. + * @property \Stripe\Collection<\Stripe\TransferReversal> $reversals A list of reversals that have been applied to the transfer. * @property bool $reversed Whether the transfer has been fully reversed. If the transfer is only partially reversed, this attribute will still be false. * @property null|string|\Stripe\Charge $source_transaction ID of the charge or payment that was used to fund the transfer. If null, the transfer was funded from the available balance. * @property null|string $source_type The source balance this transfer came from. One of card, fpx, or bank_account. @@ -77,7 +77,7 @@ public function cancel($params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection the list of transfer reversals + * @return \Stripe\Collection<\Stripe\TransferReversal> the list of transfer reversals */ public static function allReversals($id, $params = null, $opts = null) { From 0ce647739b642609b3650a0be2854667732e6738 Mon Sep 17 00:00:00 2001 From: Pavel Krymets Date: Thu, 10 Feb 2022 14:21:04 -0800 Subject: [PATCH 2/4] fix formatting errors --- lib/Collection.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/Collection.php b/lib/Collection.php index 768bafbb2..4de2f9d73 100644 --- a/lib/Collection.php +++ b/lib/Collection.php @@ -7,6 +7,7 @@ * * @template TStripeObject of StripeObject * @template-implements \IteratorAggregate + * * @property string $object * @property string $url * @property bool $has_more @@ -64,7 +65,11 @@ public function offsetGet($k) } /** + * @param null|array $params + * @param null|array|string $opts + * * @throws Exception\ApiErrorException + * * @return Collection */ public function all($params = null, $opts = null) @@ -85,7 +90,11 @@ public function all($params = null, $opts = null) } /** + * @param null|array $params + * @param null|array|string $opts + * * @throws Exception\ApiErrorException + * * @return TStripeObject */ public function create($params = null, $opts = null) @@ -99,7 +108,12 @@ public function create($params = null, $opts = null) } /** + * @param string $id + * @param null|array $params + * @param null|array|string $opts + * * @throws Exception\ApiErrorException + * * @return TStripeObject */ public function retrieve($id, $params = null, $opts = null) From 2d0531a2c15b0348354ea502f5e6b309da64b130 Mon Sep 17 00:00:00 2001 From: Pavel Krymets Date: Fri, 11 Feb 2022 08:55:22 -0800 Subject: [PATCH 3/4] Fix type references --- lib/CreditNote.php | 2 +- lib/Service/CreditNoteService.php | 2 +- lib/Service/InvoiceService.php | 2 +- lib/Service/SubscriptionItemService.php | 2 +- lib/SubscriptionItem.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/CreditNote.php b/lib/CreditNote.php index 85f869d1a..4ee660aa1 100644 --- a/lib/CreditNote.php +++ b/lib/CreditNote.php @@ -102,7 +102,7 @@ public function voidCreditNote($params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection<\Stripe\credit_note_line_item> the list of credit note line items + * @return \Stripe\Collection<\Stripe\CreditNoteLineItem> the list of credit note line items */ public static function allLines($id, $params = null, $opts = null) { diff --git a/lib/Service/CreditNoteService.php b/lib/Service/CreditNoteService.php index 06d7de526..5c631328a 100644 --- a/lib/Service/CreditNoteService.php +++ b/lib/Service/CreditNoteService.php @@ -32,7 +32,7 @@ public function all($params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection<\Stripe\credit_note_line_item> + * @return \Stripe\Collection<\Stripe\CreditNoteLineItem> */ public function allLines($parentId, $params = null, $opts = null) { diff --git a/lib/Service/InvoiceService.php b/lib/Service/InvoiceService.php index a932447e8..73c1a8fe2 100644 --- a/lib/Service/InvoiceService.php +++ b/lib/Service/InvoiceService.php @@ -35,7 +35,7 @@ public function all($params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection<\Stripe\line_item> + * @return \Stripe\Collection<\Stripe\LineItem> */ public function allLines($parentId, $params = null, $opts = null) { diff --git a/lib/Service/SubscriptionItemService.php b/lib/Service/SubscriptionItemService.php index 60267ee93..e18c8de41 100644 --- a/lib/Service/SubscriptionItemService.php +++ b/lib/Service/SubscriptionItemService.php @@ -39,7 +39,7 @@ public function all($params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection<\Stripe\usage_record_summary> + * @return \Stripe\Collection<\Stripe\UsageRecordSummary> */ public function allUsageRecordSummaries($parentId, $params = null, $opts = null) { diff --git a/lib/SubscriptionItem.php b/lib/SubscriptionItem.php index e7b16b31e..b900b3fd2 100644 --- a/lib/SubscriptionItem.php +++ b/lib/SubscriptionItem.php @@ -75,7 +75,7 @@ public function usageRecordSummaries($params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection<\Stripe\usage_record_summary> the list of usage record summaries + * @return \Stripe\Collection<\Stripe\UsageRecordSummary> the list of usage record summaries */ public static function allUsageRecordSummaries($id, $params = null, $opts = null) { From 4797a6169f5ab381ef3d5608cb747c6e055c3a0b Mon Sep 17 00:00:00 2001 From: Pavel Krymets Date: Fri, 11 Feb 2022 09:29:30 -0800 Subject: [PATCH 4/4] Item alias --- lib/Checkout/Session.php | 2 +- lib/Service/Checkout/SessionService.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Checkout/Session.php b/lib/Checkout/Session.php index 392b99cbd..c3fbaae37 100644 --- a/lib/Checkout/Session.php +++ b/lib/Checkout/Session.php @@ -124,7 +124,7 @@ public function expire($params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection<\Stripe\item> the list of items + * @return \Stripe\Collection<\Stripe\LineItem> the list of items */ public static function allLineItems($id, $params = null, $opts = null) { diff --git a/lib/Service/Checkout/SessionService.php b/lib/Service/Checkout/SessionService.php index 5a0b2aa85..a2938d0a9 100644 --- a/lib/Service/Checkout/SessionService.php +++ b/lib/Service/Checkout/SessionService.php @@ -33,7 +33,7 @@ public function all($params = null, $opts = null) * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection<\Stripe\item> + * @return \Stripe\Collection<\Stripe\LineItem> */ public function allLineItems($parentId, $params = null, $opts = null) {