Skip to content
This repository was archived by the owner on Feb 17, 2026. It is now read-only.

Commit dc2da62

Browse files
committed
Update client to newest version
1 parent af944c7 commit dc2da62

45 files changed

Lines changed: 188 additions & 197 deletions

Some content is hidden

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

README.md

Lines changed: 14 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -59,32 +59,21 @@ OriginStamp has now become a commercial product and the leading platform for blo
5959
Please follow the [installation](#installation) instruction and execute the following Java code:
6060

6161
```java
62-
63-
import com.originstamp.api.client.*;
64-
import com.originstamp.api.client.auth.*;
65-
import com.originstamp.model.*;
66-
import com.originstamp.api.SchedulerApi;
67-
68-
import java.io.File;
69-
import java.util.*;
70-
71-
public class SchedulerApiExample {
72-
73-
public static void main(String[] args) {
74-
75-
SchedulerApi apiInstance = new SchedulerApi();
76-
SchedulerRequest schedulerRequest = new SchedulerRequest(); // SchedulerRequest | Request DTO for next schedules.
77-
String authorization = "authorization_example"; // String | A valid API key is essential for authorization to handle the request.
78-
try {
79-
DefaultSchedulerResponse result = apiInstance.getNextSchedulingTime(schedulerRequest, authorization);
80-
System.out.println(result);
81-
} catch (ApiException e) {
82-
System.err.println("Exception when calling SchedulerApi#getNextSchedulingTime");
83-
e.printStackTrace();
84-
}
85-
}
62+
// Import classes:
63+
//import com.originstamp.api.client.ApiException;
64+
//import com.originstamp.api.TimestampApi;
65+
66+
67+
TimestampApi apiInstance = new TimestampApi();
68+
String authorization = "authorization_example"; // String | A valid API key is essential for authorization to handle the request.
69+
TimestampRequest timestampRequest = new TimestampRequest(); // TimestampRequest | DTO for the hash submission. Add all relevant information concerning your hash submission.
70+
try {
71+
DefaultTimestampResponse result = apiInstance.createTimestamp(authorization, timestampRequest);
72+
System.out.println(result);
73+
} catch (ApiException e) {
74+
System.err.println("Exception when calling TimestampApi#createTimestamp");
75+
e.printStackTrace();
8676
}
87-
8877
```
8978

9079
## Documentation for API Endpoints

docs/DefaultSchedulerResponse.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**data** | [**SchedulerResponse**](SchedulerResponse.md) | generic response object, which contains the response data, e.g. timestamp information |
8-
**errorCode** | **Integer** | contains the error of the request. if the error code is 0, everything is fine. |
9-
**errorMessage** | **String** | contains the error message, that occurred. If it is empty, everything is fine |
7+
**data** | [**SchedulerResponse**](SchedulerResponse.md) | Generic response object which contains the response data, e.g. timestamp information. |
8+
**errorCode** | **Integer** | Contains the error of the request. If the error code is 0, everything is fine. |
9+
**errorMessage** | **String** | Contains the error message, that possibly occurred. If it is empty, everything is fine. |
1010

1111

1212

docs/DefaultTimestampResponse.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**data** | [**TimestampResponse**](TimestampResponse.md) | generic response object, which contains the response data, e.g. timestamp information |
8-
**errorCode** | **Integer** | contains the error of the request. if the error code is 0, everything is fine. |
9-
**errorMessage** | **String** | contains the error message, that occurred. If it is empty, everything is fine |
7+
**data** | [**TimestampResponse**](TimestampResponse.md) | Generic response object which contains the response data, e.g. timestamp information. |
8+
**errorCode** | **Integer** | Contains the error of the request. If the error code is 0, everything is fine. |
9+
**errorMessage** | **String** | Contains the error message, that possibly occurred. If it is empty, everything is fine. |
1010

1111

1212

docs/DefaultUsageResponse.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**data** | [**UsageResponse**](UsageResponse.md) | generic response object, which contains the response data, e.g. timestamp information |
8-
**errorCode** | **Integer** | contains the error of the request. if the error code is 0, everything is fine. |
9-
**errorMessage** | **String** | contains the error message, that occurred. If it is empty, everything is fine |
7+
**data** | [**UsageResponse**](UsageResponse.md) | Generic response object which contains the response data, e.g. timestamp information. |
8+
**errorCode** | **Integer** | Contains the error of the request. If the error code is 0, everything is fine. |
9+
**errorMessage** | **String** | Contains the error message, that possibly occurred. If it is empty, everything is fine. |
1010

1111

1212

docs/Defaultstring.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**data** | **String** | generic response object, which contains the response data, e.g. timestamp information |
8-
**errorCode** | **Integer** | contains the error of the request. if the error code is 0, everything is fine. |
9-
**errorMessage** | **String** | contains the error message, that occurred. If it is empty, everything is fine |
7+
**data** | **String** | Generic response object which contains the response data, e.g. timestamp information. |
8+
**errorCode** | **Integer** | Contains the error of the request. If the error code is 0, everything is fine. |
9+
**errorMessage** | **String** | Contains the error message, that possibly occurred. If it is empty, everything is fine. |
1010

1111

1212

docs/Notification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**currency** | **Integer** | 0: Bitcoin 1: Ethereum |
7+
**currency** | **Integer** | 0: Bitcoin |
88
**notificationType** | **Integer** | 0: notify via email 1: notify a webhook |
99
**target** | **String** | Depending on the notification type, specify the target for the notification (e.g. email address or webhook url). The webhook url will reveive a POST request after timestamp was successfully created. |
1010

docs/ProofRequest.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**currency** | **Integer** | 0: Bitcoin 1: Ethereum |
8-
**hashString** | **String** | Hash in HEX representation. We allow the use of SHA-256. Note: We handle the hashes in lower-case. |
9-
**proofType** | **Integer** | Specifies which type of file should be returned. Possible value(s): 0: proof with a seed file (txt) or proof with a merkle tree (xml) Other formats will follow. |
7+
**currency** | **Integer** | 0: Bitcoin |
8+
**hashString** | **String** | Hash in HEX representation for which the proof should be created. We allow the use of SHA-256. Note: We handle the hashes in lower-case. |
9+
**proofType** | **Integer** | Specifies which type of file should be returned. Possible value(s): 0: proof with a seed file (txt) or proof with a merkle tree (xml) 1: proof with a PDF file Other formats will follow. |
1010

1111

1212

docs/SchedulerApi.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ Method | HTTP request | Description
99

1010
<a name="getNextSchedulingTime"></a>
1111
# **getNextSchedulingTime**
12-
> DefaultSchedulerResponse getNextSchedulingTime(schedulerRequest, authorization)
12+
> DefaultSchedulerResponse getNextSchedulingTime(authorization, schedulerRequest)
1313
1414
NextSchedule
1515

16-
Get the next scheduling time for submissions.
16+
Get the next scheduling time for hash submissions to the blockchain.
1717

1818
### Example
1919
```java
@@ -23,10 +23,10 @@ Get the next scheduling time for submissions.
2323

2424

2525
SchedulerApi apiInstance = new SchedulerApi();
26-
SchedulerRequest schedulerRequest = new SchedulerRequest(); // SchedulerRequest | Request DTO for next schedules.
2726
String authorization = "authorization_example"; // String | A valid API key is essential for authorization to handle the request.
27+
SchedulerRequest schedulerRequest = new SchedulerRequest(); // SchedulerRequest | Request DTO for next schedules.
2828
try {
29-
DefaultSchedulerResponse result = apiInstance.getNextSchedulingTime(schedulerRequest, authorization);
29+
DefaultSchedulerResponse result = apiInstance.getNextSchedulingTime(authorization, schedulerRequest);
3030
System.out.println(result);
3131
} catch (ApiException e) {
3232
System.err.println("Exception when calling SchedulerApi#getNextSchedulingTime");
@@ -38,8 +38,8 @@ try {
3838

3939
Name | Type | Description | Notes
4040
------------- | ------------- | ------------- | -------------
41-
**schedulerRequest** | [**SchedulerRequest**](SchedulerRequest.md)| Request DTO for next schedules. |
4241
**authorization** | **String**| A valid API key is essential for authorization to handle the request. |
42+
**schedulerRequest** | [**SchedulerRequest**](SchedulerRequest.md)| Request DTO for next schedules. |
4343

4444
### Return type
4545

docs/SchedulerRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**currency** | **Integer** | Currency for which the next submission time should be retrieved. | [optional]
7+
**currency** | **Integer** | Currency for which the next submission time should be retrieved. 0: Bitcoin | [optional]
88

99

1010

docs/SchedulerResponse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**submissionTime** | **Long** | Next submission time. | [optional]
7+
**submissionTime** | **Long** | Next submission time. The date is returned in the following format: [ms] since 1.1.1970 (unix epoch), timezone: UTC. The timezone is UTC. | [optional]
88

99

1010

0 commit comments

Comments
 (0)