Releases: recurly/recurly-client-go
Release 4.0.0
Changelog
Unreleased
Major Version Release
The 4.x major version of the client pairs with the v2021-02-25
API version. This version of the client and the API contain breaking changes that should be considered before upgrading your integration.
Breaking Changes in the API
All changes to the core API are documented in the Developer Portal changelog
Breaking Changes in Client
-
Empty path parameters are now explicitly invalid and cause an error to be returned. [#67] [#68]
-
Params
has been removed in favor ofContext
/RequestOptions
. [#70]3.x
headers := http.Header{"Accept-Language": []string{"fr"}} accountReq := &recurly.AccountCreate{ Params: recurly.Params{ Header: headers, }, } account, err := client.CreateAccount(accountReq)
4.x
headers := http.Header{"Accept-Language": []string{"fr"}} accountReq := &recurly.AccountCreate{} account, err := client.CreateAccount(accountReq, recurly.WithHeader(headers))
-
List operations return a pager interface instead of struct. [#80]
3.x
account, err := client.ListAccounts() for accounts.HasMore { err := accounts.Fetch() for i, account := range accounts.Data { fmt.Printf("Account 0", i) } }
4.x
account, err := client.ListAccounts() for accounts.HasMore() { err := accounts.Fetch() for i, account := range accounts.Data() { fmt.Printf("Account 0", i) } }
Implemented enhancements:
- FetchWithContext not exposed within ClientInterface #77
Merged pull requests:
- Updating changelog script and changelog generator config for 4.x release #82 (douglasmiller)
- Add pager interface #80 (jguidry-recurly)
- Adding options v4 #70 (douglasmiller)
- Validate path params #67 (douglasmiller)
Release 3.13.0
Release 3.12.0
Changelog
Unreleased
Implemented enhancements:
- Latest Changes for 2019-10-10 #74 (douglasmiller)
- Adding Context and RequestOptions support #69 (douglasmiller)
Release 3.11.0
Changelog
Unreleased
Implemented enhancements:
- Latest Changes for 2019-10-10 (tax_identifier / tax_identifier_type) #72 (douglasmiller)
- Latest Changes for 2019-10-10 #71 (douglasmiller)
Merged pull requests:
- Minor updates to facilitate 4.x changes #68 (douglasmiller)
Release 3.10.0
Changelog
Unreleased
Implemented enhancements:
- Latest Changes for 2019-10-10 (Wallet, Item Coupons) #65 (douglasmiller)
- Updating ErrorTypes and status code based error handling to be generated #64 (douglasmiller)
Release 3.9.0
Changelog
Unreleased
Implemented enhancements:
- Mon Oct 19 20:43:56 UTC 2020 Upgrade API version v2019-10-10 #61 (douglasmiller)
Merged pull requests:
- Splitting up large files into many smaller files #60 (douglasmiller)
Release 3.8.0
Changelog
Unreleased
Implemented enhancements:
- Latest Changes for 2019-10-10 (Automated Exports, additional resource data attributes) #56 (douglasmiller)
- Ensure that path parameters are not empty strings #21 (douglasmiller)
Merged pull requests:
- Revert "Ensure that path parameters are not empty strings" #53 (douglasmiller)
Release 3.7.0
Changelog
Unreleased
Implemented enhancements:
- Mon Aug 31 19:36:28 UTC 2020 Upgrade API version v2019-10-10 #51 (douglasmiller)
Merged pull requests:
Release 3.6.0
Changelog
Unreleased
Implemented enhancements:
- Fri Aug 21 16:27:20 UTC 2020 Upgrade API version v2019-10-10 #48 (douglasmiller)
Merged pull requests: