From b991fd3570d05806d136bd61a97bab11c10c5620 Mon Sep 17 00:00:00 2001 From: Iulian Masar Date: Wed, 15 Nov 2023 14:07:13 +0200 Subject: [PATCH] version bump 3.20.0 --- CHANGELOG.md | 23 +++++++++++++++++++++++ README.md | 19 +++++++++++++++++++ lib/mangopay/version.rb | 2 +- 3 files changed, 43 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 714f65b..fc50a0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,26 @@ +## [3.20.0] - 2023-11-15 +### Added + +Now, our SDK enables seamless integration with multiple clientIDs, offering enhanced flexibility and customization. + +You can effortlessly create multiple configuration objects tailored to your specific needs: + +``` +config = MangoPay::Configuration.new +config.client_id = 'your-client-id' +config.client_apiKey = 'your-api-key' +config.preproduction = true +``` +add them using : + +`MangoPay.add_config('config1', config)` + +and perform a call with them using : + +`MangoPay.get_config('config1').apply_configuration` + +The previous method configure() is still working. + ## [3.19.0] - 2023-11-02 ### Updated diff --git a/README.md b/README.md index 670dbfc..a467bdb 100644 --- a/README.md +++ b/README.md @@ -85,6 +85,25 @@ rescue MangoPay::ResponseError => ex end ``` +### Using multiple clientIDs +You can effortlessly create multiple configuration objects tailored to your specific needs: + +``` +config = MangoPay::Configuration.new +config.client_id = 'your-client-id' +config.client_apiKey = 'your-api-key' +config.preproduction = true +``` +add them using : + +`MangoPay.add_config('config1', config)` + +and perform a call with them using : + +`MangoPay.get_config('config1').apply_configuration` + +The previous method configure() is still working. + ### Accessing RateLimit Headers Along with each request, the rate limiting headers are automatically updated in MangoPay object: diff --git a/lib/mangopay/version.rb b/lib/mangopay/version.rb index a42d3fa..2be18bf 100644 --- a/lib/mangopay/version.rb +++ b/lib/mangopay/version.rb @@ -1,3 +1,3 @@ module MangoPay - VERSION = '3.19.0' + VERSION = '3.20.0' end