Skip to content

Releases: recurly/recurly-client-go

Release 4.0.0

01 Mar 21:33
db8a94e
Compare
Choose a tag to compare

Changelog

Unreleased

Full Changelog

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 of Context/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:

Release 3.13.0

22 Jan 18:11
7281b1a
Compare
Choose a tag to compare

Changelog

Unreleased

Full Changelog

Implemented enhancements:

Release 3.12.0

09 Dec 00:02
5d65ce4
Compare
Choose a tag to compare

Changelog

Unreleased

Full Changelog

Implemented enhancements:

Release 3.11.0

24 Nov 17:59
594d2bd
Compare
Choose a tag to compare

Changelog

Unreleased

Full Changelog

Implemented enhancements:

Merged pull requests:

Release 3.10.0

06 Nov 21:45
41ef7a6
Compare
Choose a tag to compare

Changelog

Unreleased

Full Changelog

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

20 Oct 20:06
eeac22b
Compare
Choose a tag to compare

Changelog

Unreleased

Full Changelog

Implemented enhancements:

  • Mon Oct 19 20:43:56 UTC 2020 Upgrade API version v2019-10-10 #61 (douglasmiller)

Merged pull requests:

Release 3.8.0

22 Sep 20:23
f4d23f4
Compare
Choose a tag to compare

Changelog

Unreleased

Full Changelog

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

31 Aug 21:44
cbcf71e
Compare
Choose a tag to compare

Changelog

Unreleased

Full Changelog

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

21 Aug 20:59
a502200
Compare
Choose a tag to compare

Changelog

Unreleased

Full Changelog

Implemented enhancements:

  • Fri Aug 21 16:27:20 UTC 2020 Upgrade API version v2019-10-10 #48 (douglasmiller)

Merged pull requests:

  • Provide interface for testing #47 (bhelx)

Release 3.5.0

31 Jul 20:06
5335f49
Compare
Choose a tag to compare

Changelog

Unreleased

Full Changelog

Implemented enhancements:

  • Latest Changes for 2019-10-10 (usage, measured units, etc) #45 (bhelx)