Skip to content

Commit

Permalink
Merge pull request #1705 from stripe/latest-codegen-beta
Browse files Browse the repository at this point in the history
Update generated code for beta
  • Loading branch information
stripe-openapi[bot] authored Jun 13, 2024
2 parents dd2df00 + 5093822 commit 958e0e1
Show file tree
Hide file tree
Showing 135 changed files with 33 additions and 263 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
# Changelog

## 14.10.0 - 2024-06-13
* [#1706](https://github.com/stripe/stripe-php/pull/1706) Update generated code
* Add support for `multibanco` on `PaymentMethodConfiguration` and `PaymentMethod`
* Add support for `twint` on `PaymentMethod`
* Add support for new values `multibanco` and `twint` on enum `PaymentMethod.type`
* Add support for `invoice_settings` on `Subscription`
* Add support for new value `de_stn` on enum `TaxId.type`

## 14.10.0-beta.1 - 2024-05-30
* [#1699](https://github.com/stripe/stripe-php/pull/1699) Update generated code for beta
* Keeping up with the changes from version 14.9.0

## 14.9.0 - 2024-05-30
* [#1702](https://github.com/stripe/stripe-php/pull/1702) Update generated code
* Add support for new values `issuing_personalization_design.activated`, `issuing_personalization_design.deactivated`, `issuing_personalization_design.rejected`, and `issuing_personalization_design.updated` on enum `Event.type`
* [#1701](https://github.com/stripe/stripe-php/pull/1701) Added PHPDocs for `create`, `update`, `delete`, `all`, `retrieve` methods after moving them out of traits.
* [#1700](https://github.com/stripe/stripe-php/pull/1700) Add optional appInfo to StripeClient config
* `StripeClient` can now accept `$appInfo` as a `$config` option, so AppInfo can be set per-client. If not passed in, will fall back on the global AppInfo set by `Stripe::setAppInfo()`.
* The config expects `$appInfo` to be of type `array{name: string, version?: string, url?: string, partner_id?: string}`

## 14.9.0-beta.1 - 2024-05-23
* [#1696](https://github.com/stripe/stripe-php/pull/1696) Update generated code for beta

Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1058
v1077
3 changes: 1 addition & 2 deletions lib/BankAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
* These bank accounts are payment methods on <code>Customer</code> objects.
*
* On the other hand <a href="/api#external_accounts">External Accounts</a> are transfer
* destinations on <code>Account</code> objects for accounts where <a href="/api/accounts/object#account_object-controller-requirement_collection">controller.requirement_collection</a>
* is <code>application</code>, which includes <a href="/connect/custom-accounts">Custom accounts</a>.
* destinations on <code>Account</code> objects for connected accounts.
* They can be bank accounts or debit cards as well, and are documented in the links above.
*
* Related guide: <a href="/payments/bank-debits-transfers">Bank debits and transfers</a>
Expand Down
4 changes: 2 additions & 2 deletions lib/Checkout/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
* @property null|string $locale The IETF language tag of the locale Checkout is displayed in. If blank or <code>auto</code>, the browser's locale is used.
* @property null|\Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
* @property string $mode The mode of the Checkout Session.
* @property null|string|\Stripe\PaymentIntent $payment_intent The ID of the PaymentIntent for Checkout Sessions in <code>payment</code> mode.
* @property null|string|\Stripe\PaymentIntent $payment_intent The ID of the PaymentIntent for Checkout Sessions in <code>payment</code> mode. You can't confirm or cancel the PaymentIntent for a Checkout Session. To cancel, <a href="https://stripe.com/docs/api/checkout/sessions/expire">expire the Checkout Session</a> instead.
* @property null|string|\Stripe\PaymentLink $payment_link The ID of the Payment Link that created this Session.
* @property null|string $payment_method_collection Configure whether a Checkout Session should collect a payment method. Defaults to <code>always</code>.
* @property null|\Stripe\StripeObject $payment_method_configuration_details Information about the payment method configuration used for this Checkout session if using dynamic payment methods.
Expand All @@ -62,7 +62,7 @@
* @property null|string $redirect_on_completion This parameter applies to <code>ui_mode: embedded</code>. Learn more about the <a href="https://stripe.com/docs/payments/checkout/custom-redirect-behavior">redirect behavior</a> of embedded sessions. Defaults to <code>always</code>.
* @property null|string $return_url Applies to Checkout Sessions with <code>ui_mode: embedded</code>. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site.
* @property null|\Stripe\StripeObject $saved_payment_method_options Controls saved payment method settings for the session. Only available in <code>payment</code> and <code>subscription</code> mode.
* @property null|string|\Stripe\SetupIntent $setup_intent The ID of the SetupIntent for Checkout Sessions in <code>setup</code> mode.
* @property null|string|\Stripe\SetupIntent $setup_intent The ID of the SetupIntent for Checkout Sessions in <code>setup</code> mode. You can't confirm or cancel the SetupIntent for a Checkout Session. To cancel, <a href="https://stripe.com/docs/api/checkout/sessions/expire">expire the Checkout Session</a> instead.
* @property null|\Stripe\StripeObject $shipping_address_collection When set, provides configuration for Checkout to collect a shipping address from a customer.
* @property null|\Stripe\StripeObject $shipping_cost The details of the customer cost of shipping, including the customer chosen ShippingRate.
* @property null|\Stripe\StripeObject $shipping_details Shipping information for this Checkout Session.
Expand Down
2 changes: 1 addition & 1 deletion lib/QuoteLine.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @property string $object String representing the object's type. Objects of the same type share the same value.
* @property null|\Stripe\StripeObject[] $actions A list of items the customer is being quoted for.
* @property null|\Stripe\StripeObject $applies_to Details to identify the subscription schedule the quote line applies to.
* @property null|string $billing_cycle_anchor For a point-in-time operation, this attribute lets you set or update whether the subscription's billing cycle anchor is reset at the <code>starts_at</code> timestamp.
* @property null|string $billing_cycle_anchor For point-in-time quote lines (having no <code>ends_at</code> timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line <code>starts_at</code> timestamp.For time-span based quote lines (having both <code>starts_at</code> and <code>ends_at</code>), the only valid value is <code>automatic</code>, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line.
* @property null|\Stripe\StripeObject $cancel_subscription_schedule A point-in-time operation that cancels an existing subscription schedule at the line's starts_at timestamp. Currently only compatible with <code>quote_acceptance_date</code> for <code>starts_at</code>. When using cancel_subscription_schedule, the subscription schedule on the quote remains unalterable, except for modifications to the metadata, collection_method or invoice_settings.
* @property null|\Stripe\StripeObject $ends_at Details to identify the end of the time range modified by the proposed change. If not supplied, the quote line is considered a point-in-time operation that only affects the exact timestamp at <code>starts_at</code>, and a restricted set of attributes is supported on the quote line.
* @property null|string $proration_behavior Changes to how Stripe handles prorations during the quote line's time span. Affects if and how prorations are created when a future phase starts.
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/AccountLinkService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class AccountLinkService extends \Stripe\Service\AbstractService
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/AccountNoticeService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class AccountNoticeService extends \Stripe\Service\AbstractService
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/AccountService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class AccountService extends \Stripe\Service\AbstractService
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/AccountSessionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class AccountSessionService extends \Stripe\Service\AbstractService
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/ApplePayDomainService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class ApplePayDomainService extends \Stripe\Service\AbstractService
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/ApplicationFeeService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class ApplicationFeeService extends \Stripe\Service\AbstractService
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/Apps/SecretService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class SecretService extends \Stripe\Service\AbstractService
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/BalanceService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class BalanceService extends \Stripe\Service\AbstractService
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/BalanceTransactionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class BalanceTransactionService extends \Stripe\Service\AbstractService
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/Billing/MeterEventAdjustmentService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class MeterEventAdjustmentService extends \Stripe\Service\AbstractService
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/Billing/MeterEventService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class MeterEventService extends \Stripe\Service\AbstractService
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/Billing/MeterService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class MeterService extends \Stripe\Service\AbstractService
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/BillingPortal/ConfigurationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class ConfigurationService extends \Stripe\Service\AbstractService
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/BillingPortal/SessionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class SessionService extends \Stripe\Service\AbstractService
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/Capital/FinancingOfferService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class FinancingOfferService extends \Stripe\Service\AbstractService
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/Capital/FinancingSummaryService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class FinancingSummaryService extends \Stripe\Service\AbstractService
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/Capital/FinancingTransactionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class FinancingTransactionService extends \Stripe\Service\AbstractService
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/ChargeService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class ChargeService extends \Stripe\Service\AbstractService
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/Checkout/SessionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class SessionService extends \Stripe\Service\AbstractService
Expand Down
4 changes: 1 addition & 3 deletions lib/Service/Climate/OrderService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class OrderService extends \Stripe\Service\AbstractService
Expand All @@ -29,7 +27,7 @@ public function all($params = null, $opts = null)
}

/**
* Cancels a Climate order. You can cancel an order within 30 days of creation.
* Cancels a Climate order. You can cancel an order within 24 hours of creation.
* Stripe refunds the reservation <code>amount_subtotal</code>, but not the
* <code>amount_fees</code> for user-triggered cancellations. Frontier might cancel
* reservations if suppliers fail to deliver. If Frontier cancels the reservation,
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/Climate/ProductService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class ProductService extends \Stripe\Service\AbstractService
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/Climate/SupplierService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class SupplierService extends \Stripe\Service\AbstractService
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/ConfirmationTokenService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class ConfirmationTokenService extends \Stripe\Service\AbstractService
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/CountrySpecService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class CountrySpecService extends \Stripe\Service\AbstractService
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/CouponService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class CouponService extends \Stripe\Service\AbstractService
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/CreditNoteService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class CreditNoteService extends \Stripe\Service\AbstractService
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/CustomerService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class CustomerService extends \Stripe\Service\AbstractService
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/CustomerSessionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class CustomerSessionService extends \Stripe\Service\AbstractService
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/DisputeService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class DisputeService extends \Stripe\Service\AbstractService
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/Entitlements/ActiveEntitlementService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class ActiveEntitlementService extends \Stripe\Service\AbstractService
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/Entitlements/FeatureService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class FeatureService extends \Stripe\Service\AbstractService
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/EphemeralKeyService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class EphemeralKeyService extends \Stripe\Service\AbstractService
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/EventService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class EventService extends \Stripe\Service\AbstractService
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/ExchangeRateService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class ExchangeRateService extends \Stripe\Service\AbstractService
Expand Down
2 changes: 0 additions & 2 deletions lib/Service/FileLinkService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
/**
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class FileLinkService extends \Stripe\Service\AbstractService
Expand Down
Loading

0 comments on commit 958e0e1

Please sign in to comment.