Skip to content

Commit

Permalink
release: v1.0.20230714
Browse files Browse the repository at this point in the history
  • Loading branch information
flemzord committed Jul 14, 2023
1 parent bb1a22e commit 39bc217
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 17 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
### Gradle

```groovy
implementation 'com.formance.formance_sdk:formance-sdk-java:v1.0.20230713.1'
implementation 'com.formance.formance_sdk:formance-sdk-java:v1.0.20230714.1'
```
<!-- End SDK Installation -->

## SDK Example Usage
<!-- Start SDK Example Usage -->


```java
package hello.world;

Expand Down
2 changes: 2 additions & 0 deletions USAGE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<!-- Start SDK Example Usage -->


```java
package hello.world;

Expand Down
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ generation:
singleTagPerOp: true
telemetryEnabled: false
java:
version: v1.0.20230713.1
version: v1.0.20230714.1
artifactID: formance-sdk
companyEmail: [email protected]
companyName: Formance
Expand Down
10 changes: 9 additions & 1 deletion lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ plugins {
// Apply the java-library plugin for API and implementation separation.
id 'java-library'
id 'maven-publish'
id 'signing'
}

compileJava.options.encoding = "UTF-8"
Expand Down Expand Up @@ -40,7 +41,7 @@ publishing {
maven(MavenPublication) {
groupId = 'com.formance'
artifactId = 'formance-sdk'
version = 'v1.0.20230713.1'
version = 'v1.0.20230714.1'

from components.java

Expand Down Expand Up @@ -74,6 +75,13 @@ publishing {
}
}

signing {
def signingKey = findProperty("signingKey")
def signingPassphrase = findProperty("signingPassphrase")
useInMemoryPgpKeys(signingKey, signingPassphrase)
sign publishing.publications.maven
}

javadoc {
options.encoding = "UTF-8"

Expand Down
22 changes: 11 additions & 11 deletions lib/src/main/java/com/formance/formance_sdk/Flows.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public Flows(SDKConfiguration sdkConfiguration) {
*/
public com.formance.formance_sdk.models.operations.FlowsgetServerInfoResponse flowsgetServerInfo() throws Exception {
String baseUrl = com.formance.formance_sdk.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
String url = com.formance.formance_sdk.utils.Utils.generateURL(baseUrl, "/api/Flows/_info");
String url = com.formance.formance_sdk.utils.Utils.generateURL(baseUrl, "/api/orchestration/_info");

HTTPRequest req = new HTTPRequest();
req.setMethod("GET");
Expand Down Expand Up @@ -76,7 +76,7 @@ public com.formance.formance_sdk.models.operations.FlowsgetServerInfoResponse fl
*/
public com.formance.formance_sdk.models.operations.CancelEventResponse cancelEvent(com.formance.formance_sdk.models.operations.CancelEventRequest request) throws Exception {
String baseUrl = com.formance.formance_sdk.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
String url = com.formance.formance_sdk.utils.Utils.generateURL(com.formance.formance_sdk.models.operations.CancelEventRequest.class, baseUrl, "/api/Flows/instances/{instanceID}/abort", request, null);
String url = com.formance.formance_sdk.utils.Utils.generateURL(com.formance.formance_sdk.models.operations.CancelEventRequest.class, baseUrl, "/api/orchestration/instances/{instanceID}/abort", request, null);

HTTPRequest req = new HTTPRequest();
req.setMethod("PUT");
Expand Down Expand Up @@ -118,7 +118,7 @@ public com.formance.formance_sdk.models.operations.CancelEventResponse cancelEve
*/
public com.formance.formance_sdk.models.operations.CreateWorkflowResponse createWorkflow(com.formance.formance_sdk.models.shared.CreateWorkflowRequest request) throws Exception {
String baseUrl = com.formance.formance_sdk.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
String url = com.formance.formance_sdk.utils.Utils.generateURL(baseUrl, "/api/Flows/workflows");
String url = com.formance.formance_sdk.utils.Utils.generateURL(baseUrl, "/api/orchestration/workflows");

HTTPRequest req = new HTTPRequest();
req.setMethod("POST");
Expand Down Expand Up @@ -168,7 +168,7 @@ public com.formance.formance_sdk.models.operations.CreateWorkflowResponse create
*/
public com.formance.formance_sdk.models.operations.GetInstanceResponse getInstance(com.formance.formance_sdk.models.operations.GetInstanceRequest request) throws Exception {
String baseUrl = com.formance.formance_sdk.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
String url = com.formance.formance_sdk.utils.Utils.generateURL(com.formance.formance_sdk.models.operations.GetInstanceRequest.class, baseUrl, "/api/Flows/instances/{instanceID}", request, null);
String url = com.formance.formance_sdk.utils.Utils.generateURL(com.formance.formance_sdk.models.operations.GetInstanceRequest.class, baseUrl, "/api/orchestration/instances/{instanceID}", request, null);

HTTPRequest req = new HTTPRequest();
req.setMethod("GET");
Expand Down Expand Up @@ -216,7 +216,7 @@ public com.formance.formance_sdk.models.operations.GetInstanceResponse getInstan
*/
public com.formance.formance_sdk.models.operations.GetInstanceHistoryResponse getInstanceHistory(com.formance.formance_sdk.models.operations.GetInstanceHistoryRequest request) throws Exception {
String baseUrl = com.formance.formance_sdk.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
String url = com.formance.formance_sdk.utils.Utils.generateURL(com.formance.formance_sdk.models.operations.GetInstanceHistoryRequest.class, baseUrl, "/api/Flows/instances/{instanceID}/history", request, null);
String url = com.formance.formance_sdk.utils.Utils.generateURL(com.formance.formance_sdk.models.operations.GetInstanceHistoryRequest.class, baseUrl, "/api/orchestration/instances/{instanceID}/history", request, null);

HTTPRequest req = new HTTPRequest();
req.setMethod("GET");
Expand Down Expand Up @@ -264,7 +264,7 @@ public com.formance.formance_sdk.models.operations.GetInstanceHistoryResponse ge
*/
public com.formance.formance_sdk.models.operations.GetInstanceStageHistoryResponse getInstanceStageHistory(com.formance.formance_sdk.models.operations.GetInstanceStageHistoryRequest request) throws Exception {
String baseUrl = com.formance.formance_sdk.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
String url = com.formance.formance_sdk.utils.Utils.generateURL(com.formance.formance_sdk.models.operations.GetInstanceStageHistoryRequest.class, baseUrl, "/api/Flows/instances/{instanceID}/stages/{number}/history", request, null);
String url = com.formance.formance_sdk.utils.Utils.generateURL(com.formance.formance_sdk.models.operations.GetInstanceStageHistoryRequest.class, baseUrl, "/api/orchestration/instances/{instanceID}/stages/{number}/history", request, null);

HTTPRequest req = new HTTPRequest();
req.setMethod("GET");
Expand Down Expand Up @@ -312,7 +312,7 @@ public com.formance.formance_sdk.models.operations.GetInstanceStageHistoryRespon
*/
public com.formance.formance_sdk.models.operations.GetWorkflowResponse getWorkflow(com.formance.formance_sdk.models.operations.GetWorkflowRequest request) throws Exception {
String baseUrl = com.formance.formance_sdk.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
String url = com.formance.formance_sdk.utils.Utils.generateURL(com.formance.formance_sdk.models.operations.GetWorkflowRequest.class, baseUrl, "/api/Flows/workflows/{flowId}", request, null);
String url = com.formance.formance_sdk.utils.Utils.generateURL(com.formance.formance_sdk.models.operations.GetWorkflowRequest.class, baseUrl, "/api/orchestration/workflows/{flowId}", request, null);

HTTPRequest req = new HTTPRequest();
req.setMethod("GET");
Expand Down Expand Up @@ -360,7 +360,7 @@ public com.formance.formance_sdk.models.operations.GetWorkflowResponse getWorkfl
*/
public com.formance.formance_sdk.models.operations.ListInstancesResponse listInstances(com.formance.formance_sdk.models.operations.ListInstancesRequest request) throws Exception {
String baseUrl = com.formance.formance_sdk.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
String url = com.formance.formance_sdk.utils.Utils.generateURL(baseUrl, "/api/Flows/instances");
String url = com.formance.formance_sdk.utils.Utils.generateURL(baseUrl, "/api/orchestration/instances");

HTTPRequest req = new HTTPRequest();
req.setMethod("GET");
Expand Down Expand Up @@ -413,7 +413,7 @@ public com.formance.formance_sdk.models.operations.ListInstancesResponse listIns
*/
public com.formance.formance_sdk.models.operations.ListWorkflowsResponse listWorkflows() throws Exception {
String baseUrl = com.formance.formance_sdk.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
String url = com.formance.formance_sdk.utils.Utils.generateURL(baseUrl, "/api/Flows/workflows");
String url = com.formance.formance_sdk.utils.Utils.generateURL(baseUrl, "/api/orchestration/workflows");

HTTPRequest req = new HTTPRequest();
req.setMethod("GET");
Expand Down Expand Up @@ -461,7 +461,7 @@ public com.formance.formance_sdk.models.operations.ListWorkflowsResponse listWor
*/
public com.formance.formance_sdk.models.operations.RunWorkflowResponse runWorkflow(com.formance.formance_sdk.models.operations.RunWorkflowRequest request) throws Exception {
String baseUrl = com.formance.formance_sdk.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
String url = com.formance.formance_sdk.utils.Utils.generateURL(com.formance.formance_sdk.models.operations.RunWorkflowRequest.class, baseUrl, "/api/Flows/workflows/{workflowID}/instances", request, null);
String url = com.formance.formance_sdk.utils.Utils.generateURL(com.formance.formance_sdk.models.operations.RunWorkflowRequest.class, baseUrl, "/api/orchestration/workflows/{workflowID}/instances", request, null);

HTTPRequest req = new HTTPRequest();
req.setMethod("POST");
Expand Down Expand Up @@ -517,7 +517,7 @@ public com.formance.formance_sdk.models.operations.RunWorkflowResponse runWorkfl
*/
public com.formance.formance_sdk.models.operations.SendEventResponse sendEvent(com.formance.formance_sdk.models.operations.SendEventRequest request) throws Exception {
String baseUrl = com.formance.formance_sdk.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults());
String url = com.formance.formance_sdk.utils.Utils.generateURL(com.formance.formance_sdk.models.operations.SendEventRequest.class, baseUrl, "/api/Flows/instances/{instanceID}/events", request, null);
String url = com.formance.formance_sdk.utils.Utils.generateURL(com.formance.formance_sdk.models.operations.SendEventRequest.class, baseUrl, "/api/orchestration/instances/{instanceID}/events", request, null);

HTTPRequest req = new HTTPRequest();
req.setMethod("POST");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ class SDKConfiguration {
}});
}};
public String language = "java";
public String openapiDocVersion = "v1.0.20230713";
public String sdkVersion = "v1.0.20230713.1";
public String genVersion = "2.64.0";
public String openapiDocVersion = "v1.0.20230714";
public String sdkVersion = "v1.0.20230714.1";
public String genVersion = "2.65.0";

public Map<String, String> getServerVariableDefaults() {
return serverDefaults.get(this.serverIdx);
Expand Down

0 comments on commit 39bc217

Please sign in to comment.