Skip to content

Commit 80c6f9a

Browse files
committed
Version Bump 3.0.0
1 parent a431e8b commit 80c6f9a

File tree

3 files changed

+34
-13
lines changed

3 files changed

+34
-13
lines changed

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
## [3.0.0] - 2022.05.11
2+
The .Net SDK has been revamped in order to increase performances and improve the developer experience.
3+
4+
### Changed
5+
6+
#### Updated libraries
7+
8+
The SDK relies on .Net 5.0. You should update your project and librairies accordingly.
9+
If you use a lower/older version, we will not be able to provide any support.
10+
11+
#### Functions include idempotency management
12+
13+
Previously, if you wish to use idempotency, you had to use a dedicated function for idempotency. These functions have been removed.
14+
Now, each regular function can use idempotency, thanks to a new parameter.
15+
16+
For example :
17+
18+
`await this.Api.PayIns.CreateRefundAsync(payIn.Id, refund, idempotentKey: idempotencyKey);`
19+
20+
#### Requests efficiency
21+
22+
We have improved our request management. This version uses a singleton RestClient and changes only the RestRequest at each request. Therefore, requests are faster and have less impact on your server.
23+
124
## [2.11.0] - 2022.03.31
225
### Added
326

MangoPay.SDK/MangoPay.SDK.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
<TargetFrameworks>netstandard2.0;net5.0</TargetFrameworks>
44
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
55
<Company>MangoPay</Company>
6-
<Copyright>Copyright © 2020</Copyright>
7-
<Description>.Net SDK and .NET Core SDK for access to MANGOPAY API v2</Description>
6+
<Copyright>Copyright © 2022</Copyright>
7+
<Description>.Net 5.0 for access to MANGOPAY API v2</Description>
88
<Authors>MangoPay</Authors>
9-
<Version>2.11.0</Version>
10-
<AssemblyVersion>2.11.0.0</AssemblyVersion>
11-
<FileVersion>2.11.0.0</FileVersion>
9+
<Version>3.0.0</Version>
10+
<AssemblyVersion>3.0.0.0</AssemblyVersion>
11+
<FileVersion>3.0.0.0</FileVersion>
1212
<PackageId>mangopay2-sdk</PackageId>
1313
</PropertyGroup>
1414
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netstandard2.1|AnyCPU'">

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ MangopaySDK is a Microsoft .NET client library to work with
66

77
Installation and package dependencies
88
-------------------------------------------------
9-
This SDK is currently targeting **.NET Standard 2.0**, **.NET Core 3.1** and **.NET 5.0.** It has **4** dependencies on external packages.
9+
This SDK is currently targeting **.NET Standard 2.0** and **.NET 5.0.** It has **4** dependencies on external packages.
1010
These dependencies are:
1111
- Common.Logging library (version 3.4.1)
1212
- Newtonsoft.Json (version 13.0.1)
@@ -74,10 +74,10 @@ Sample usage (get, update and save an entity)
7474
api.Config.ClientPassword = "your-client-api-key";
7575

7676
// get some Natural user
77-
UserNaturalDTO user = api.Users.GetNatural(someUserId);
77+
var user = api.Users.GetNatural(someUserId);
7878

7979
// create update entity
80-
UserNaturalPutDTO userPut = new UserNaturalPutDTO
80+
var userPut = new UserNaturalPutDTO
8181
{
8282
Tag = user.Tag,
8383
Email = user.Email,
@@ -92,14 +92,12 @@ Sample usage (get, update and save an entity)
9292
};
9393

9494
// save updated user
95-
UserNaturalDTO userSaved = api.Users.UpdateNatural(userPut, user.Id);
95+
var userSaved = api.Users.UpdateNatural(userPut, user.Id);
9696

9797
// get his bank accounts
98-
Pagination pagination = new Pagination(2, 10); // get 2nd page, 10 items per page
99-
ListPaginated<BankAccountDTO> accounts = api.Users.GetBankAccounts(user.Id, pagination);
98+
var accounts = api.Users.GetBankAccounts(user.Id, new Pagination(2, 10));
10099

101100
// get all users (with pagination)
102-
Pagination pagination = new Pagination(1, 8); // get 1st page, 8 items per page
103-
ListPaginated<UserDTO> users = api.Users.GetAll(pagination);
101+
var users = api.Users.GetAll(new Pagination(1, 8));
104102

105103

0 commit comments

Comments
 (0)