diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index dbdf3c1cb..af6e36838 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1116 \ No newline at end of file +v1123 \ No newline at end of file diff --git a/lib/BillingPortal/Session.php b/lib/BillingPortal/Session.php index a6554278c..a94d5f9af 100644 --- a/lib/BillingPortal/Session.php +++ b/lib/BillingPortal/Session.php @@ -18,7 +18,7 @@ * Create sessions on-demand when customers intend to manage their subscriptions * and billing details. * - * Learn more in the integration guide. + * Related guide: Customer management * * @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. diff --git a/lib/ConfirmationToken.php b/lib/ConfirmationToken.php index ee78a3131..0ef4b8a99 100644 --- a/lib/ConfirmationToken.php +++ b/lib/ConfirmationToken.php @@ -20,6 +20,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|\Stripe\StripeObject $mandate_data Data used for generating a Mandate. * @property null|string $payment_intent ID of the PaymentIntent that this ConfirmationToken was used to confirm, or null if this ConfirmationToken has not yet been used. + * @property null|\Stripe\StripeObject $payment_method_options Payment-method-specific configuration for this ConfirmationToken. * @property null|\Stripe\StripeObject $payment_method_preview Payment details collected by the Payment Element, used to create a PaymentMethod when a PaymentIntent or SetupIntent is confirmed with this ConfirmationToken. * @property null|string $return_url Return URL used to confirm the Intent. * @property null|string $setup_future_usage

Indicates that you intend to make future payments with this ConfirmationToken's payment method.

The presence of this property will attach the payment method to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete.

diff --git a/lib/ErrorObject.php b/lib/ErrorObject.php index 47ffa0cbe..6aa55fafa 100644 --- a/lib/ErrorObject.php +++ b/lib/ErrorObject.php @@ -66,10 +66,6 @@ class ErrorObject extends StripeObject const CODE_BANK_ACCOUNT_UNVERIFIED = 'bank_account_unverified'; const CODE_BANK_ACCOUNT_VERIFICATION_FAILED = 'bank_account_verification_failed'; const CODE_BILLING_INVALID_MANDATE = 'billing_invalid_mandate'; - const CODE_BILLING_POLICY_REMOTE_FUNCTION_RESPONSE_INVALID = 'billing_policy_remote_function_response_invalid'; - const CODE_BILLING_POLICY_REMOTE_FUNCTION_TIMEOUT = 'billing_policy_remote_function_timeout'; - const CODE_BILLING_POLICY_REMOTE_FUNCTION_UNEXPECTED_STATUS_CODE = 'billing_policy_remote_function_unexpected_status_code'; - const CODE_BILLING_POLICY_REMOTE_FUNCTION_UNREACHABLE = 'billing_policy_remote_function_unreachable'; const CODE_BITCOIN_UPGRADE_REQUIRED = 'bitcoin_upgrade_required'; const CODE_CAPTURE_CHARGE_AUTHORIZATION_EXPIRED = 'capture_charge_authorization_expired'; const CODE_CAPTURE_UNAUTHORIZED_PAYMENT = 'capture_unauthorized_payment'; @@ -143,7 +139,6 @@ class ErrorObject extends StripeObject const CODE_PARAMETERS_EXCLUSIVE = 'parameters_exclusive'; const CODE_PAYMENT_INTENT_ACTION_REQUIRED = 'payment_intent_action_required'; const CODE_PAYMENT_INTENT_AUTHENTICATION_FAILURE = 'payment_intent_authentication_failure'; - const CODE_PAYMENT_INTENT_FX_QUOTE_INVALID = 'payment_intent_fx_quote_invalid'; const CODE_PAYMENT_INTENT_INCOMPATIBLE_PAYMENT_METHOD = 'payment_intent_incompatible_payment_method'; const CODE_PAYMENT_INTENT_INVALID_PARAMETER = 'payment_intent_invalid_parameter'; const CODE_PAYMENT_INTENT_KONBINI_REJECTED_CONFIRMATION_NUMBER = 'payment_intent_konbini_rejected_confirmation_number'; diff --git a/lib/Service/SubscriptionService.php b/lib/Service/SubscriptionService.php index ba7dcc729..fae6df831 100644 --- a/lib/Service/SubscriptionService.php +++ b/lib/Service/SubscriptionService.php @@ -162,8 +162,8 @@ public function search($params = null, $opts = null) * Updates an existing subscription to match the specified parameters. When * changing prices or quantities, we optionally prorate the price we charge next * month to make up for any price changes. To preview how the proration is - * calculated, use the upcoming invoice - * endpoint. + * calculated, use the create + * preview endpoint. * * By default, we prorate subscription changes. For example, if a customer signs up * on May 1 for a 100 price, they’ll be billed @@ -179,11 +179,14 @@ public function search($params = null, $opts = null) * immediate charge unless: * * + * yearly).
  • The subscription moves from free to paid.
  • A trial + * starts or ends.
  • * * In these cases, we apply a credit for the unused time on the previous price, * immediately charge the customer using the new price, and reset the billing date. + * Learn about how Stripe + * immediately attempts payment for subscription changes. * * If you want to charge for an upgrade immediately, pass * proration_behavior as always_invoice to create diff --git a/lib/Subscription.php b/lib/Subscription.php index 89233a9b0..1dae9385a 100644 --- a/lib/Subscription.php +++ b/lib/Subscription.php @@ -149,8 +149,8 @@ public static function retrieve($id, $opts = null) * Updates an existing subscription to match the specified parameters. When * changing prices or quantities, we optionally prorate the price we charge next * month to make up for any price changes. To preview how the proration is - * calculated, use the upcoming invoice - * endpoint. + * calculated, use the create + * preview endpoint. * * By default, we prorate subscription changes. For example, if a customer signs up * on May 1 for a 100 price, they’ll be billed @@ -166,11 +166,14 @@ public static function retrieve($id, $opts = null) * immediate charge unless: * * + * yearly).
  • The subscription moves from free to paid.
  • A trial + * starts or ends.
  • * * In these cases, we apply a credit for the unused time on the previous price, * immediately charge the customer using the new price, and reset the billing date. + * Learn about how Stripe + * immediately attempts payment for subscription changes. * * If you want to charge for an upgrade immediately, pass * proration_behavior as always_invoice to create