Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next major release changes #1341

Merged
merged 21 commits into from
Aug 1, 2022
Merged

Next major release changes #1341

merged 21 commits into from
Aug 1, 2022

Conversation

kamil-stripe
Copy link
Contributor

@kamil-stripe kamil-stripe commented Jul 28, 2022

Changelog

9.0.0 - 2022-08-01

Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the SDK, read more detailed description at https://github.com/stripe/stripe-php/wiki/Migration-guide-for-v9. For changes to the Stripe products, read more at https://stripe.com/docs/upgrades#2022-08-01.

"⚠️" symbol highlights breaking changes.

Added

  • Add alternate_statement_descriptors, authorization_code, and level3 properties to Charge resource.
  • Add previewLines method to CreditNote resource.
  • Add transfer_data property to Subscription resource.
  • Add SOURCE_TYPE_FPX constant to Transfer resource.
  • Add new error code constants to ErrorObject.

⚠️ Changed

  • Updated certificate bundle (#1314)
  • Add params parameter to close method in Dispute resource.

⚠️ Removed

  • Remove deprecated AlipayAccount, BitcoinReceiver, BitcoinTransaction, Recipient, RecipientTransfer, and ThreeDSecure resources.
  • Remove CAPABILITY_CARD_PAYMENTS, CAPABILITY_LEGACY_PAYMENTS, CAPABILITY_PLATFORM_PAYMENTS, CAPABILITY_TRANSFERS, CAPABILITY_STATUS_ACTIVE, CAPABILITY_STATUS_INACTIVE, and CAPABILITY_STATUS_PENDING constants from Account resource. Please use up-to-date values from https://stripe.com/docs/connect/account-capabilities.
  • Remove AssociatedObjects array property from EphemeralKey resource. The field was undocumented and unsupported.
  • Remove details method from Card resource. The endpoint was deprecated and no longer exists.
  • Remove recipient property from Card resource. The property was deprecated.
  • Remove ability to list Card resources for a particular Recipient.
  • Remove sources property from Card resource. The property was deprecated.
  • Remove FAILURE_REASON constant from Refund resource. The value was deprecated.
  • Remove Recipient resource. The resource was deprecated.
  • Remove OrderItem resource. The resource was deprecated.
  • Remove all method from LineItem.
  • Remove cancel method from Transfer and TransferService. This method is deprecated.
  • Remove allTransactions method from SourceService service. Please use allSourceTransactions method instead.
  • Remove persons method from Account resource. Please use allPersons method instead.
  • Remove sourceTransactions method from Source resource. Please use allSourceTransactions method instead.
  • Remove usageRecordSummaries method from SubscriptionItem resource. Please use allUsageRecordSummaries method instead.
  • Remove SOURCE_TYPE_ALIPAY_ACCOUNT and SOURCE_TYPE_FINANCING constants from Transfer resource. The values were deprecated and are no longer in use.
  • Remove deprecated error code constants from ErrorObject: CODE_ACCOUNT_ALREADY_EXISTS, CODE_ORDER_CREATION_FAILED, CODE_ORDER_REQUIRED_SETTINGS, CODE_ORDER_STATUS_INVALID, CODE_ORDER_UPSTREAM_TIMEOUT, and CODE_UPSTREAM_ORDER_CREATION_FAILED.
  • Remove deprecated event constants from Webhook: ISSUER_FRAUD_RECORD_CREATED, ORDER_PAYMENT_FAILED, ORDER_PAYMENT_SUCCEEDED, ORDER_UPDATED, ORDER_RETURN_CREATED, PAYMENT_METHOD_CARD_AUTOMATICALLY_UPDATED, PING, PROMOTION_CODE_DELETED, and TREASURY_RECEIVED_CREDIT_REVERSED. The events are deprecated and no longer sent by Stripe.

dcr-stripe and others added 20 commits June 28, 2022 18:23
r? @dcr-stripe 

## Summary
Update error codes based on https://stripe.com/docs/error-codes.

## Changelog
- ⚠️ Remove deprecated error codes:
  - `'account_already_exists'`
  - `'order_creation_failed'`
  - `'order_required_settings'`
  - `'order_status_invalid'`
  - `'order_upstream_timeout'`
  - `'upstream_order_creation_failed'`
- Add error codes:
  - `'account_error_country_change_requires_additional_steps'`
  - `'account_information_mismatch'`
  - `'acss_debit_session_incomplete'`
  - `'authentication_required'`
  - `'bank_account_bad_routing_numbers'`
  - `'bank_account_declined'`
  - `'bank_account_verification_failed'`
  - `'billing_invalid_mandate'`
  - `'card_decline_rate_limit_exceeded'`
  - `'cardholder_phone_number_required'`
  - `'charge_invalid_parameter'`
  - `'clearing_code_unsupported'`
  - `'country_code_invalid'`
  - `'customer_max_payment_methods'`
  - `'debit_not_authorized'`
  - `'instant_payouts_limit_exceeded'`
  - `'insufficient_funds'`
  - `'intent_invalid_state'`
  - `'intent_verification_method_missing'`
  - `'invalid_characters'`
  - `'invoice_no_payment_method_types'`
  - `'invoice_on_behalf_of_not_editable'`
  - `'no_account'`
  - `'payment_intent_action_required'`
  - `'payment_intent_konbini_rejected_confirmation_number'`
  - `'payment_intent_mandate_invalid'`
  - `'payment_intent_payment_attempt_expired'`
  - `'payment_method_bank_account_already_verified'`
  - `'payment_method_bank_account_blocked'`
  - `'payment_method_billing_details_address_missing'`
  - `'payment_method_currency_mismatch'`
  - `'payment_method_invalid_parameter'`
  - `'payment_method_invalid_parameter_testmode'`
  - `'payment_method_microdeposit_failed'`
  - `'payment_method_microdeposit_verification_amounts_invalid'`
  - `'payment_method_microdeposit_verification_amounts_mismatch'`
  - `'payment_method_microdeposit_verification_attempts_exceeded'`
  - `'payment_method_microdeposit_verification_descriptor_code_mismatch'`
  - `'payment_method_microdeposit_verification_timeout'`
  - `'payment_method_provider_decline'`
  - `'payment_method_provider_timeout'`
  - `'payment_method_unsupported_type'`
  - `'platform_account_required'`
  - `'refer_to_customer'`
  - `'refund_disputed_payment'`
  - `'return_intent_already_processed'`
  - `'setup_intent_invalid_parameter'`
  - `'setup_intent_setup_attempt_expired'`
  - `'terminal_location_country_unsupported'`
  - `'transfer_source_balance_parameters_mismatch'`
Generate stripe-php with breaking changes
@kamil-stripe kamil-stripe changed the title Sdk release/next major Next major release changes Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants