stripe / stripe-go

Go library for the Stripe API.
https://stripe.com
MIT License
2.17k stars 460 forks source link

Remove rawrequest Post, Get, and Delete #1933

Closed jar-stripe closed 1 month ago

jar-stripe commented 1 month ago

Why?

The rawrequests functions for Post, Get, and Delete methods rely on global configuration which can be cumbersome when using these methods to call /v2/ APIs. Instead, the recommendation is to use the client model (introduced in https://github.com/stripe/stripe-go/pull/1929) which allows local configuration of backend and api key, which enables more flexible calls to new/preview/unsupported APIs.

What?

See also

This is a follow up to https://github.com/stripe/stripe-go/pull/1929

Changelog

The individual rawrequests functions for Post, Get, and Delete methods are removed in favor of the client model which allows local configuration of backend and api key, which enables more flexible calls to new/preview/unsupported APIs.