Skip to content

Commit da19a9d

Browse files
Merge pull request #85 from SLASCONE/native_client
Switched okhttp-gson to native http client
2 parents 21a5370 + fb563b0 commit da19a9d

File tree

462 files changed

+130889
-84997
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

462 files changed

+130889
-84997
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,11 @@ You can provide a `config.json` file to configure the generator. To generate the
295295
"modelPackage": "com.slascone.model",
296296
"groupId": "com.slascone",
297297
"artifactId": "slascone-client",
298+
"library": "native",
298299
"dateLibrary": "java8",
299-
"hideGenerationTimestamp": true
300+
"useJakartaEe": true,
301+
"hideGenerationTimestamp": true,
302+
"disallowAdditionalPropertiesIfNotPresent": false
300303
}
301304
```
302305

slascone-client/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
SLASCONE API
44
- API version: v2
5-
- Generator version: 7.14.0
5+
6+
- Generator version: 7.21.0-SNAPSHOT
67

78
Please visit our official [Documentation](https://support.slascone.com/hc/en-us/sections/360004685737-API) and/or our [GitHub repository](https://github.com/slascone/) and/or our [NuGet package](https://www.nuget.org/packages/Slascone.Client/). Always use Version 2 of this API (Version 1.3 is deprecated).
89

slascone-client/docs/AdministrationApi.md

Lines changed: 3935 additions & 1254 deletions
Large diffs are not rendered by default.

slascone-client/docs/ConsumptionBalanceDto.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
|------------ | ------------- | ------------- | -------------|
1010
|**limit** | **BigDecimal** | | [optional] |
1111
|**remaining** | **BigDecimal** | | [optional] |
12+
|**balance** | **BigDecimal** | | [optional] |
1213
|**lastResetDateUtc** | **OffsetDateTime** | | [optional] |
1314
|**assignmentId** | **UUID** | | [optional] |
1415
|**licenseId** | **UUID** | | [optional] |

slascone-client/docs/ConsumptionDto.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
|**transactionId** | **UUID** | | [optional] |
1111
|**limitationId** | **UUID** | | [optional] |
1212
|**remaining** | **BigDecimal** | | [optional] |
13+
|**balance** | **BigDecimal** | | [optional] |
1314
|**limit** | **BigDecimal** | | [optional] |
1415
|**goodwill** | **BigDecimal** | | [optional] |
1516
|**lastResetDateUtc** | **OffsetDateTime** | | [optional] |

slascone-client/docs/ConsumptionHeartbeatDto.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
|**id** | **UUID** | | [optional] |
1111
|**value** | **BigDecimal** | | [optional] |
1212
|**remaining** | **BigDecimal** | | [optional] |
13+
|**balance** | **BigDecimal** | | [optional] |
1314
|**assignmentId** | **UUID** | | [optional] |
1415
|**clientId** | **String** | | [optional] |
1516
|**licenseId** | **UUID** | | [optional] |

slascone-client/docs/CustomerApi.md

Lines changed: 3187 additions & 956 deletions
Large diffs are not rendered by default.

slascone-client/docs/CustomerPortalApi.md

Lines changed: 122 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,18 @@ All URIs are relative to *http://localhost*
55
| Method | HTTP request | Description |
66
|------------- | ------------- | -------------|
77
| [**getCustomerContactByUserIdCP**](CustomerPortalApi.md#getCustomerContactByUserIdCP) | **GET** /api/v2/isv/{isv_id}/customer_portal/customer/contact | Returns a customer portal user |
8+
| [**getCustomerContactByUserIdCPWithHttpInfo**](CustomerPortalApi.md#getCustomerContactByUserIdCPWithHttpInfo) | **GET** /api/v2/isv/{isv_id}/customer_portal/customer/contact | Returns a customer portal user |
89

910

10-
<a id="getCustomerContactByUserIdCP"></a>
11-
# **getCustomerContactByUserIdCP**
12-
> List&lt;CustomerContactDto&gt; getCustomerContactByUserIdCP(isvId)
11+
12+
## getCustomerContactByUserIdCP
13+
14+
> List<CustomerContactDto> getCustomerContactByUserIdCP(isvId)
1315
1416
Returns a customer portal user
1517

1618
### Example
19+
1720
```java
1821
// Import classes:
1922
import com.slascone.ApiClient;
@@ -24,40 +27,41 @@ import com.slascone.models.*;
2427
import com.slascone.api.CustomerPortalApi;
2528

2629
public class Example {
27-
public static void main(String[] args) {
28-
ApiClient defaultClient = Configuration.getDefaultApiClient();
29-
defaultClient.setBasePath("http://localhost");
30-
31-
// Configure API key authorization: AdminKey
32-
ApiKeyAuth AdminKey = (ApiKeyAuth) defaultClient.getAuthentication("AdminKey");
33-
AdminKey.setApiKey("YOUR API KEY");
34-
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
35-
//AdminKey.setApiKeyPrefix("Token");
36-
37-
// Configure API key authorization: Bearer
38-
ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
39-
Bearer.setApiKey("YOUR API KEY");
40-
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
41-
//Bearer.setApiKeyPrefix("Token");
42-
43-
CustomerPortalApi apiInstance = new CustomerPortalApi(defaultClient);
44-
UUID isvId = UUID.randomUUID(); // UUID |
45-
try {
46-
List<CustomerContactDto> result = apiInstance.getCustomerContactByUserIdCP(isvId);
47-
System.out.println(result);
48-
} catch (ApiException e) {
49-
System.err.println("Exception when calling CustomerPortalApi#getCustomerContactByUserIdCP");
50-
System.err.println("Status code: " + e.getCode());
51-
System.err.println("Reason: " + e.getResponseBody());
52-
System.err.println("Response headers: " + e.getResponseHeaders());
53-
e.printStackTrace();
30+
public static void main(String[] args) {
31+
ApiClient defaultClient = Configuration.getDefaultApiClient();
32+
defaultClient.setBasePath("http://localhost");
33+
34+
// Configure API key authorization: AdminKey
35+
ApiKeyAuth AdminKey = (ApiKeyAuth) defaultClient.getAuthentication("AdminKey");
36+
AdminKey.setApiKey("YOUR API KEY");
37+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
38+
//AdminKey.setApiKeyPrefix("Token");
39+
40+
// Configure API key authorization: Bearer
41+
ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
42+
Bearer.setApiKey("YOUR API KEY");
43+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
44+
//Bearer.setApiKeyPrefix("Token");
45+
46+
CustomerPortalApi apiInstance = new CustomerPortalApi(defaultClient);
47+
UUID isvId = UUID.randomUUID(); // UUID |
48+
try {
49+
List<CustomerContactDto> result = apiInstance.getCustomerContactByUserIdCP(isvId);
50+
System.out.println(result);
51+
} catch (ApiException e) {
52+
System.err.println("Exception when calling CustomerPortalApi#getCustomerContactByUserIdCP");
53+
System.err.println("Status code: " + e.getCode());
54+
System.err.println("Reason: " + e.getResponseBody());
55+
System.err.println("Response headers: " + e.getResponseHeaders());
56+
e.printStackTrace();
57+
}
5458
}
55-
}
5659
}
5760
```
5861

5962
### Parameters
6063

64+
6165
| Name | Type | Description | Notes |
6266
|------------- | ------------- | ------------- | -------------|
6367
| **isvId** | **UUID**| | |
@@ -66,22 +70,107 @@ public class Example {
6670

6771
[**List&lt;CustomerContactDto&gt;**](CustomerContactDto.md)
6872

73+
6974
### Authorization
7075

7176
[AdminKey](../README.md#AdminKey), [Bearer](../README.md#Bearer)
7277

7378
### HTTP request headers
7479

75-
- **Content-Type**: Not defined
76-
- **Accept**: application/json
80+
- **Content-Type**: Not defined
81+
- **Accept**: application/json
7782

7883
### HTTP response details
7984
| Status code | Description | Response headers |
8085
|-------------|-------------|------------------|
8186
| **200** | OK | - |
8287
| **401** | Unauthorized | - |
8388
| **403** | Forbidden | - |
89+
| **500** | Internal server error | - |
90+
| **503** | Service unavailable | - |
8491
| **409** | Conflict | - |
92+
93+
## getCustomerContactByUserIdCPWithHttpInfo
94+
95+
> ApiResponse<List<CustomerContactDto>> getCustomerContactByUserIdCP getCustomerContactByUserIdCPWithHttpInfo(isvId)
96+
97+
Returns a customer portal user
98+
99+
### Example
100+
101+
```java
102+
// Import classes:
103+
import com.slascone.ApiClient;
104+
import com.slascone.ApiException;
105+
import com.slascone.ApiResponse;
106+
import com.slascone.Configuration;
107+
import com.slascone.auth.*;
108+
import com.slascone.models.*;
109+
import com.slascone.api.CustomerPortalApi;
110+
111+
public class Example {
112+
public static void main(String[] args) {
113+
ApiClient defaultClient = Configuration.getDefaultApiClient();
114+
defaultClient.setBasePath("http://localhost");
115+
116+
// Configure API key authorization: AdminKey
117+
ApiKeyAuth AdminKey = (ApiKeyAuth) defaultClient.getAuthentication("AdminKey");
118+
AdminKey.setApiKey("YOUR API KEY");
119+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
120+
//AdminKey.setApiKeyPrefix("Token");
121+
122+
// Configure API key authorization: Bearer
123+
ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
124+
Bearer.setApiKey("YOUR API KEY");
125+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
126+
//Bearer.setApiKeyPrefix("Token");
127+
128+
CustomerPortalApi apiInstance = new CustomerPortalApi(defaultClient);
129+
UUID isvId = UUID.randomUUID(); // UUID |
130+
try {
131+
ApiResponse<List<CustomerContactDto>> response = apiInstance.getCustomerContactByUserIdCPWithHttpInfo(isvId);
132+
System.out.println("Status code: " + response.getStatusCode());
133+
System.out.println("Response headers: " + response.getHeaders());
134+
System.out.println("Response body: " + response.getData());
135+
} catch (ApiException e) {
136+
System.err.println("Exception when calling CustomerPortalApi#getCustomerContactByUserIdCP");
137+
System.err.println("Status code: " + e.getCode());
138+
System.err.println("Response headers: " + e.getResponseHeaders());
139+
System.err.println("Reason: " + e.getResponseBody());
140+
e.printStackTrace();
141+
}
142+
}
143+
}
144+
```
145+
146+
### Parameters
147+
148+
149+
| Name | Type | Description | Notes |
150+
|------------- | ------------- | ------------- | -------------|
151+
| **isvId** | **UUID**| | |
152+
153+
### Return type
154+
155+
ApiResponse<[**List&lt;CustomerContactDto&gt;**](CustomerContactDto.md)>
156+
157+
158+
### Authorization
159+
160+
[AdminKey](../README.md#AdminKey), [Bearer](../README.md#Bearer)
161+
162+
### HTTP request headers
163+
164+
- **Content-Type**: Not defined
165+
- **Accept**: application/json
166+
167+
### HTTP response details
168+
| Status code | Description | Response headers |
169+
|-------------|-------------|------------------|
170+
| **200** | OK | - |
171+
| **401** | Unauthorized | - |
172+
| **403** | Forbidden | - |
85173
| **500** | Internal server error | - |
86174
| **503** | Service unavailable | - |
175+
| **409** | Conflict | - |
87176

0 commit comments

Comments
 (0)