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

Sync updates not ported from 3.x client #671

Merged
merged 67 commits into from
Mar 8, 2021
Merged

Sync updates not ported from 3.x client #671

merged 67 commits into from
Mar 8, 2021

Conversation

douglasmiller
Copy link
Contributor

Some updates added to the 3.x client were missed when creating the 4.x client.

douglasmiller and others added 30 commits July 8, 2020 20:14
Latest Changes for 2019-10-10 (usage, measured units, etc)
# Changelog

## [Unreleased](https://github.com/recurly/recurly-client-ruby/tree/HEAD)

[Full Changelog](3.9.0...HEAD)

**Implemented enhancements:**

- Latest Changes for 2019-10-10 \(usage, measured units, etc\) [\#621](#621) ([bhelx](https://github.com/bhelx))
- Adding hierarchical errors [\#610](#610) ([douglasmiller](https://github.com/douglasmiller))
Fri Aug 21 16:17:28 UTC 2020 Upgrade API version v2019-10-10
# Changelog

## [Unreleased](https://github.com/recurly/recurly-client-ruby/tree/HEAD)

[Full Changelog](3.10.0...HEAD)

**Implemented enhancements:**

- Fri Aug 21 16:17:28 UTC 2020 Upgrade API version v2019-10-10 [\#629](#629) ([douglasmiller](https://github.com/douglasmiller))
Mon Aug 31 19:44:58 UTC 2020 Upgrade API version v2019-10-10
* Code of Conduct

* Add badges
# Changelog

## [Unreleased](https://github.com/recurly/recurly-client-ruby/tree/HEAD)

[Full Changelog](3.11.0...HEAD)

**Implemented enhancements:**

- Mon Aug 31 19:44:58 UTC 2020 Upgrade API version v2019-10-10 [\#632](#632) ([douglasmiller](https://github.com/douglasmiller))

**Merged pull requests:**

- Code of Conduct [\#631](#631) ([bhelx](https://github.com/bhelx))
Latest Changes for 2019-10-10 (Automated Exports, additional resource data attributes)
# Changelog

## [Unreleased](https://github.com/recurly/recurly-client-ruby/tree/HEAD)

[Full Changelog](3.12.0...HEAD)

**Implemented enhancements:**

- Latest Changes for 2019-10-10 \(Automated Exports, additional resource data attributes\) [\#638](#638) ([douglasmiller](https://github.com/douglasmiller))
`Recurly::Errors::ServiceNotAvailableError`.
Fixes uninitialized constant `Recurly::Errors::ServiceNotAvailableError`
chrissrogers and others added 17 commits November 23, 2020 17:41
Latest Changes for 2019-10-10
# Changelog

## [Unreleased](https://github.com/recurly/recurly-client-ruby/tree/HEAD)

[Full Changelog](3.16.0...HEAD)

**Implemented enhancements:**

- Latest Changes for 2019-10-10 [\#657](#657) ([douglasmiller](https://github.com/douglasmiller))
Latest Changes for 2019-10-10
# Changelog

## [Unreleased](https://github.com/recurly/recurly-client-ruby/tree/HEAD)

[Full Changelog](3.17.0...HEAD)

**Implemented enhancements:**

- Latest Changes for 2019-10-10 [\#660](#660) ([douglasmiller](https://github.com/douglasmiller))
# Changelog

## [Unreleased](https://github.com/recurly/recurly-client-ruby/tree/HEAD)

[Full Changelog](3.18.0...HEAD)

**Fixed bugs:**

- Fixing issues with ruby 3.0 [\#665](#665) ([douglasmiller](https://github.com/douglasmiller))
@douglasmiller douglasmiller added the V4 v2021-02-25 Client label Mar 8, 2021
@chrissrogers chrissrogers merged commit 463ee8d into master Mar 8, 2021
@chrissrogers chrissrogers deleted the sync-2019 branch March 8, 2021 23:37
douglasmiller added a commit that referenced this pull request Mar 19, 2021
# Changelog

## [Unreleased](https://github.com/recurly/recurly-client-ruby/tree/HEAD)

[Full Changelog](3.18.1...HEAD)

# 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](https://developers.recurly.com/api/changelog.html#v2021-02-25---current-ga-version)

## Breaking Changes in Client

- Remove `site_id` and `subdomain` from client initializer.  [#624]
- Remove `set_site_id` method from client.  [#627]
- Classify unexpected error responses from Recurly API via an HTTP status code mapping provided in `Recurly::Errors::ERROR_MAP`.  [#616]
- Remove `NetworkError` class. All error classes now extend the `APIError`. This means that the order of multiple rescue blocks will need to be re-considered.  [#616]

    ### 3.x

    ```ruby
    rescue Recurly::Errors::ValidationError => ex
      # catch a validation error
    rescue Recurly::Errors::APIError => ex
      # catch a generic api error
    rescue Recurly::Errors::TimeoutError => ex
      # catch a specific network error
    ```

    ### 4.x

    ```ruby
    rescue Recurly::Errors::ValidationError => ex
      # catch a validation error
    rescue Recurly::Errors::TimeoutError => ex
      # catch a specific network error
    rescue Recurly::Errors::APIError => ex
      # catch a generic api error
    ```

- Rename `InvalidResponseError` to `InvalidContentTypeError`.  [#616]
- Rename `UnavailableError` to `ServiceUnavailableError`.  [#616]
- Reorganize top-level keys of the optional parameters hash to improve clarity and create space for additional options.  [#619]

    ### 3.x

    ```ruby
    options = {
      limit: 200,
      headers: {
        'Accept-Language' => 'fr'
      }
    }
    accounts = @client.list_accounts(options)
    ```

    ### 4.x

    ```ruby
    options = {
      params: {
          limit: 200
      }
      headers: {
        'Accept-Language' => 'fr'
      }
    }
    accounts = @client.list_accounts(options)
    ```

**Implemented enhancements:**

- Remove site\_id and subdomain from client initializer [\#624](#624) ([joannasese](https://github.com/joannasese))

**Fixed bugs:**

- Every method is returning wrong number of arguments [\#664](#664)

**Merged pull requests:**

- Sync updates not ported from 3.x client [\#671](#671) ([douglasmiller](https://github.com/douglasmiller))
- Release 4.0.0 [\#669](#669) ([douglasmiller](https://github.com/douglasmiller))
- Updating changelog script and changelog generator config for 4.x release [\#663](#663) ([douglasmiller](https://github.com/douglasmiller))
- Removing unused method 'set\_site\_id' [\#627](#627) ([douglasmiller](https://github.com/douglasmiller))
- Updating 4.x client to expect query string params as \['params'\] [\#619](#619) ([douglasmiller](https://github.com/douglasmiller))
- Updating error mapping based on status code [\#616](#616) ([douglasmiller](https://github.com/douglasmiller))
@douglasmiller douglasmiller mentioned this pull request Mar 19, 2021
douglasmiller added a commit that referenced this pull request Mar 19, 2021
# Changelog

## [Unreleased](https://github.com/recurly/recurly-client-ruby/tree/HEAD)

[Full Changelog](4.0.0...HEAD)

**Merged pull requests:**

- More ruby 3.0 [\#680](#680) ([douglasmiller](https://github.com/douglasmiller))
- Additional fix for ruby 3.x [\#679](#679) ([douglasmiller](https://github.com/douglasmiller))
- Generated Latest Changes for v2021-02-25 [\#678](#678) ([recurly-integrations](https://github.com/recurly-integrations))
- Sync updates not ported from 3.x client [\#671](#671) ([douglasmiller](https://github.com/douglasmiller))
@douglasmiller douglasmiller mentioned this pull request Mar 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
V4 v2021-02-25 Client
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants