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

Generate stripe-php with breaking changes #1334

Merged
merged 14 commits into from
Jul 28, 2022

Conversation

kamil-stripe
Copy link
Contributor

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

Changelog

Added

  • Add alternate_statement_descriptors, authorization_code, and level3 properties to Charge resource.
  • Add previewLines method to CreditNote resource.
  • Add params parameter to close method in Dispute resource.
    • No changes are necessary if the method was invoked like below:
    $dispute->close();
    • Following adjustment has to be made if opts parameter was used:
    // If "params" parameter is not used, change
    $dispute->close([/* opts */]);
    // to
    $dispute->close(null, [/* opts */]);
  • Add transfer_data property to Subscription resource.
  • Add SOURCE_TYPE_FPX constant to Transfer resource.

Changed

  • Change type of source property on Charge resource to no longer accept an instance of AlipayAccount or BitcoinReceiver.
  • Change type of default_source property on Customer resource to no longer accept an instance of AlipayAccount or BitcoinReceiver.
  • Change return type of allSources, createSource, deleteSource, retrieveSource, and updateSource methods on Customer resource and CustomerService service. They no longer return an instance of AlipayAccount or BitcoinReceiver.
  • Change type of default_source property on Invoice resource to no longer accept an instance of AlipayAccount or BitcoinReceiver.
  • Change type of source property on PaymentIntent resource to no longer accept an instance of AlipayAccount or BitcoinReceiver.
  • Change type of default_source property on Subscription resource to no longer accept an instance of AlipayAccount or BitcoinReceiver.

Fixed

  • Fix return type of allLineItems method in SessionService.

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 persons method from Account resource. Please use allPersons method instead.

    // change
    Account::persons("acct_1234")
    // to
    Account::allPersons("acct_1234")
  • Remove AssociatedObjects array property from EphemeralKey resource. The field was undocumented and unsupported.

  • Remove 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 webhook event constants. The events are deprecated and no longer trigger by Stripe.

  • 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 sources property from Card resource. The property was deprecated.

  • Remove FAILURE_REASON constant from Customer resource. The value was deprecated.

  • Remove Recipient resource. The resource was deprecated.

  • Remove allTransactions method from SourceService service. Please use allSourceTransactions method instead.

    // change
    $stripe->sources->allTransactions("src_12345");
    // to
    $stripe->sources->allSourceTransactions("src_12345");
  • Remove sourceTransactions method from Source resource. Please use allSourceTransactions method instead.

    // change
    Source::sourceTransactions("src_12345");
    // to
    Source::allSourceTransactions("src_12345");
  • Remove usageRecordSummaries method from SubscriptionItem resource. Please use allUsageRecordSummaries method instead.

    // change
    SubscriptionItem::usageRecordSummaries("sub_12345");
    // to
    SubscriptionItem::allUsageRecordSummaries("sub_12345");
  • Remove SOURCE_TYPE_ALIPAY_ACCOUNT and SOURCE_TYPE_FINANCING constants from Transfer resource. The values were deprecated and are no longer in use.

@kamil-stripe kamil-stripe merged commit 6f7a472 into sdk-release/next-major 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.

3 participants