stripe-ruby v8.0.0 Release Notes

Release Date: 2022-11-16 // over 1 year ago
    • ๐Ÿš€ #1144 Next major release changes

    ๐Ÿ’ฅ Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the Stripe products, read more at https://stripe.com/docs/upgrades#2022-11-15.

    "โš ๏ธ" symbol highlights breaking changes.

    ๐Ÿ—„ Deprecated

    • โšก๏ธ The save method is deprecated. Prefer the static update method that doesn't require retrieval of the resource to update it. ``` ruby # before refund = Stripe::Refund.retrieve("re_123") refund.description = "Refund description" refund.save

    # after Stripe::Refund.update("re_123", description: "Refund description")

    
    ### ๐Ÿšš โš ๏ธ Removed
    - โœ‚ Removed deprecated `Sku` resource.
    - โœ‚ Removed deprecated `Orders` resource.
    - โœ‚ Removed deprecated `delete` method on `Subscription` resource. Please use `cancel` method instead.
      ```ruby
      # before
      Stripe::Subscription::delete("sub_12345")
    
      # after
      Stripe::Subscription::cancel("sub_12345")
    

Previous changes from v7.1.0

    • โšก๏ธ #1116 API Updates
      • Add support for new resource CustomerCashBalanceTransaction
    • โšก๏ธ #1118 Update AllowedChars in rubocop config
    • ๐Ÿ’Ž #1117 Refresh rubocop config.
    • ๐Ÿ’Ž #1115 Add a support section to the readme