Skip to content

Version - 0.1.0

Compare
Choose a tag to compare
@YegorZh YegorZh released this 01 Aug 15:07
· 18 commits to main since this release
e9f25d8

What's Changed

  • Major update and version bump to 0.1.0 by @YegorZh in #33

Full Changelog: v0.0.7...v0.1.0

Tips for migration from 0.0.x

  1. All patches were renamed to updates. E.g. PatchApplication becomes UpdateApplication
  2. All data type fields are now stored as enums. If you where to use a data field for a customer you would do it as Customer.TypeEnum.INDIVIDUALCUSTOMER instead of manually writing "individualCustomer"
  3. All requests now have "Request" at the end of their naming. CreateRecurringRepayment => CreateRecurringRepaymentRequest
  4. Instead of having separate classes for each of the api endpoints they all grouped up in the unitApi class.

E.g.
Before refactor:

ApiClient apiClient = new ApiClient();

CreateIndividualApplication createIndividualApplication = new CreateIndividualApplication();
CreateIndividualApplicationAttributes attr = new CreateIndividualApplicationAttributes();
...

CreateApplication ca = new CreateApplication();
ca.data(new CreateApplicationData(createIndividualApplication));

CreateApplicationApi createApiClient = new CreateApplicationApi(apiClient);
UnitCreateApplicationResponse res = apiClient.execute(request);

After refactor:

ApiClient apiClient = new ApiClient();

CreateIndividualApplication createIndividualApplication = new CreateIndividualApplication();
CreateIndividualApplicationAttributes attr = new CreateIndividualApplicationAttributes();
...

CreateApplicationRequest ca = new CreateApplication();
ca.data(new CreateApplicationRequestData(createIndividualApplication));

UnitApi unitApi = new UnitApi(apiClient);
UnitCreateApplicationResponse res = unitApi.createApplication(request); 
// from here on unitApi can be used for 
// any requests as needed, e.g. unitApi.createRecurringRepayment(...);