Skip to content

Commit

Permalink
release(sdk): v2.0.0-beta.13
Browse files Browse the repository at this point in the history
  • Loading branch information
NumaryBot committed Jan 23, 2024
1 parent 1b94b76 commit 022d837
Show file tree
Hide file tree
Showing 17 changed files with 315 additions and 14 deletions.
16 changes: 11 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: f8052f55-6142-48c9-a8be-700e600d3130
id: d8bda9b8-93ac-4876-bd7c-9b8e17b87b14
management:
docChecksum: 62528734db388452295a3642ad792516
docVersion: v2.0.0-beta.12
docChecksum: e3879c02fea2e4914c9d924447572b5d
docVersion: v2.0.0-beta.13
speakeasyVersion: internal
generationVersion: 2.237.2
releaseVersion: v2.0.0-beta.12
configChecksum: 95673ea5b2d0c9566ac5b987492e3f7f
releaseVersion: v2.0.0-beta.13
configChecksum: 3279db4eb9c555eb324f1cd7ed03718d
features:
java:
core: 3.2.2
Expand Down Expand Up @@ -277,6 +277,8 @@ generatedFiles:
- lib/src/main/java/com/formance/formance_sdk/models/operations/ResetConnectorV1Response.java
- lib/src/main/java/com/formance/formance_sdk/models/operations/RetryTransferInitiationRequest.java
- lib/src/main/java/com/formance/formance_sdk/models/operations/RetryTransferInitiationResponse.java
- lib/src/main/java/com/formance/formance_sdk/models/operations/ReverseTransferInitiationRequest.java
- lib/src/main/java/com/formance/formance_sdk/models/operations/ReverseTransferInitiationResponse.java
- lib/src/main/java/com/formance/formance_sdk/models/operations/UdpateTransferInitiationStatusRequest.java
- lib/src/main/java/com/formance/formance_sdk/models/operations/UdpateTransferInitiationStatusResponse.java
- lib/src/main/java/com/formance/formance_sdk/models/operations/UninstallConnectorRequest.java
Expand Down Expand Up @@ -637,6 +639,7 @@ generatedFiles:
- lib/src/main/java/com/formance/formance_sdk/models/shared/Cursor.java
- lib/src/main/java/com/formance/formance_sdk/models/shared/AccountsCursor.java
- lib/src/main/java/com/formance/formance_sdk/models/shared/ConnectorConfigResponse.java
- lib/src/main/java/com/formance/formance_sdk/models/shared/ReverseTransferInitiationRequest.java
- lib/src/main/java/com/formance/formance_sdk/models/shared/Status.java
- lib/src/main/java/com/formance/formance_sdk/models/shared/UpdateTransferInitiationStatusRequest.java
- lib/src/main/java/com/formance/formance_sdk/models/shared/ReconciliationErrorResponse.java
Expand Down Expand Up @@ -912,6 +915,8 @@ generatedFiles:
- docs/models/operations/ResetConnectorV1Response.md
- docs/models/operations/RetryTransferInitiationRequest.md
- docs/models/operations/RetryTransferInitiationResponse.md
- docs/models/operations/ReverseTransferInitiationRequest.md
- docs/models/operations/ReverseTransferInitiationResponse.md
- docs/models/operations/UdpateTransferInitiationStatusRequest.md
- docs/models/operations/UdpateTransferInitiationStatusResponse.md
- docs/models/operations/UninstallConnectorRequest.md
Expand Down Expand Up @@ -1272,6 +1277,7 @@ generatedFiles:
- docs/models/shared/Cursor.md
- docs/models/shared/AccountsCursor.md
- docs/models/shared/ConnectorConfigResponse.md
- docs/models/shared/ReverseTransferInitiationRequest.md
- docs/models/shared/Status.md
- docs/models/shared/UpdateTransferInitiationStatusRequest.md
- docs/models/shared/ReconciliationErrorResponse.md
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ It has been generated successfully based on your OpenAPI spec. However, it is no
### Gradle

```groovy
implementation 'com.formance.formance_sdk:formance-sdk-java:v2.0.0-beta.12'
implementation 'com.formance.formance_sdk:formance-sdk-java:v2.0.0-beta.13'
```
<!-- End SDK Installation [installation] -->

Expand Down Expand Up @@ -199,6 +199,7 @@ public class Application {
* [~~resetConnector~~](docs/sdks/payments/README.md#resetconnector) - Reset a connector :warning: **Deprecated**
* [resetConnectorV1](docs/sdks/payments/README.md#resetconnectorv1) - Reset a connector
* [retryTransferInitiation](docs/sdks/payments/README.md#retrytransferinitiation) - Retry a failed transfer initiation
* [reverseTransferInitiation](docs/sdks/payments/README.md#reversetransferinitiation) - Reverse a transfer initiation
* [udpateTransferInitiationStatus](docs/sdks/payments/README.md#udpatetransferinitiationstatus) - Update the status of a transfer initiation
* [~~uninstallConnector~~](docs/sdks/payments/README.md#uninstallconnector) - Uninstall a connector :warning: **Deprecated**
* [uninstallConnectorV1](docs/sdks/payments/README.md#uninstallconnectorv1) - Uninstall a connector
Expand Down
9 changes: 9 additions & 0 deletions docs/models/operations/ReverseTransferInitiationRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# ReverseTransferInitiationRequest


## Fields

| Field | Type | Required | Description |
| ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| `reverseTransferInitiationRequest` | [com.formance.formance_sdk.models.shared.ReverseTransferInitiationRequest](../../models/shared/ReverseTransferInitiationRequest.md) | :heavy_check_mark: | N/A |
| `transferId` | *String* | :heavy_check_mark: | The transfer ID. |
10 changes: 10 additions & 0 deletions docs/models/operations/ReverseTransferInitiationResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# ReverseTransferInitiationResponse


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation |
| `statusCode` | *Integer* | :heavy_check_mark: | HTTP response status code for this operation |
| `rawResponse` | [HttpResponse<byte[]>](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
12 changes: 12 additions & 0 deletions docs/models/shared/ReverseTransferInitiationRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# ReverseTransferInitiationRequest


## Fields

| Field | Type | Required | Description | Example |
| --------------------- | --------------------- | --------------------- | --------------------- | --------------------- |
| `amount` | *Long* | :heavy_check_mark: | N/A | |
| `asset` | *String* | :heavy_check_mark: | N/A | USD |
| `description` | *String* | :heavy_check_mark: | N/A | |
| `metadata` | Map<String, *String*> | :heavy_check_mark: | N/A | |
| `reference` | *String* | :heavy_check_mark: | N/A | XXX |
1 change: 1 addition & 0 deletions docs/models/shared/TransferInitiation.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
| `destinationAccountID` | *String* | :heavy_check_mark: | N/A | |
| `error` | *String* | :heavy_check_mark: | N/A | |
| `id` | *String* | :heavy_check_mark: | N/A | XXX |
| `initialAmount` | *Long* | :heavy_check_mark: | N/A | |
| `metadata` | Map<String, *String*> | :heavy_minus_sign: | N/A | |
| `reference` | *String* | :heavy_check_mark: | N/A | |
| `relatedAdjustments` | List<[com.formance.formance_sdk.models.shared.TransferInitiationAdjusments](../../models/shared/TransferInitiationAdjusments.md)> | :heavy_minus_sign: | N/A | |
Expand Down
7 changes: 6 additions & 1 deletion docs/models/shared/TransferInitiationStatus.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,9 @@
| `FAILED` | FAILED |
| `REJECTED` | REJECTED |
| `VALIDATED` | VALIDATED |
| `RETRIED` | RETRIED |
| `ASK_RETRIED` | ASK_RETRIED |
| `ASK_REVERSED` | ASK_REVERSED |
| `REVERSE_PROCESSING` | REVERSE_PROCESSING |
| `REVERSE_FAILED` | REVERSE_FAILED |
| `PARTIALLY_REVERSED` | PARTIALLY_REVERSED |
| `REVERSED` | REVERSED |
62 changes: 62 additions & 0 deletions docs/sdks/payments/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
* [~~resetConnector~~](#resetconnector) - Reset a connector :warning: **Deprecated**
* [resetConnectorV1](#resetconnectorv1) - Reset a connector
* [retryTransferInitiation](#retrytransferinitiation) - Retry a failed transfer initiation
* [reverseTransferInitiation](#reversetransferinitiation) - Reverse a transfer initiation
* [udpateTransferInitiationStatus](#udpatetransferinitiationstatus) - Update the status of a transfer initiation
* [~~uninstallConnector~~](#uninstallconnector) - Uninstall a connector :warning: **Deprecated**
* [uninstallConnectorV1](#uninstallconnectorv1) - Uninstall a connector
Expand Down Expand Up @@ -1895,6 +1896,67 @@ public class Application {
**[com.formance.formance_sdk.models.operations.RetryTransferInitiationResponse](../../models/operations/RetryTransferInitiationResponse.md)**


## reverseTransferInitiation

Reverse transfer initiation

### Example Usage

```java
package hello.world;

import com.formance.formance_sdk.SDK;
import com.formance.formance_sdk.models.operations.ReverseTransferInitiationRequest;
import com.formance.formance_sdk.models.operations.ReverseTransferInitiationResponse;
import com.formance.formance_sdk.models.shared.ReverseTransferInitiationRequest;
import com.formance.formance_sdk.models.shared.Security;

public class Application {
public static void main(String[] args) {
try {
SDK sdk = SDK.builder()
.setSecurity(new Security(
"string"){{
authorization = "Bearer <YOUR_ACCESS_TOKEN_HERE>";
}})
.build();

com.formance.formance_sdk.models.operations.ReverseTransferInitiationRequest req = new ReverseTransferInitiationRequest(
new ReverseTransferInitiationRequest(
327549L,
"USD",
"string",
new java.util.HashMap<String, String>(
){{
put("key", "string");
}},
"XXX"),
"string");

com.formance.formance_sdk.models.operations.ReverseTransferInitiationResponse res = sdk.payments.reverseTransferInitiation(req);

if (res.statusCode == 200) {
// handle response
}
} catch (Exception e) {
// handle exception
}
}
}
```

### Parameters

| Parameter | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| `request` | [com.formance.formance_sdk.models.operations.ReverseTransferInitiationRequest](../../models/operations/ReverseTransferInitiationRequest.md) | :heavy_check_mark: | The request object to use for the request. |


### Response

**[com.formance.formance_sdk.models.operations.ReverseTransferInitiationResponse](../../models/operations/ReverseTransferInitiationResponse.md)**


## udpateTransferInitiationStatus

Update a transfer initiation status
Expand Down
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ generation:
comments: {}
telemetryEnabled: false
java:
version: v2.0.0-beta.12
version: v2.0.0-beta.13
artifactID: formance-sdk
companyEmail: [email protected]
companyName: Formance
Expand Down
2 changes: 1 addition & 1 deletion lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ publishing {
maven(MavenPublication) {
groupId = 'com.formance'
artifactId = 'formance-sdk'
version = 'v2.0.0-beta.12'
version = 'v2.0.0-beta.13'

from components.java

Expand Down
Loading

0 comments on commit 022d837

Please sign in to comment.