diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 3d80054a..fc3b7588 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/README.md b/README.md index 61e5ef7f..70c2f1b6 100644 --- a/README.md +++ b/README.md @@ -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' ``` @@ -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 diff --git a/docs/models/operations/ReverseTransferInitiationRequest.md b/docs/models/operations/ReverseTransferInitiationRequest.md new file mode 100644 index 00000000..b3a56ccd --- /dev/null +++ b/docs/models/operations/ReverseTransferInitiationRequest.md @@ -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. | \ No newline at end of file diff --git a/docs/models/operations/ReverseTransferInitiationResponse.md b/docs/models/operations/ReverseTransferInitiationResponse.md new file mode 100644 index 00000000..8a049d8c --- /dev/null +++ b/docs/models/operations/ReverseTransferInitiationResponse.md @@ -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](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 | \ No newline at end of file diff --git a/docs/models/shared/ReverseTransferInitiationRequest.md b/docs/models/shared/ReverseTransferInitiationRequest.md new file mode 100644 index 00000000..baaa74b9 --- /dev/null +++ b/docs/models/shared/ReverseTransferInitiationRequest.md @@ -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 | :heavy_check_mark: | N/A | | +| `reference` | *String* | :heavy_check_mark: | N/A | XXX | \ No newline at end of file diff --git a/docs/models/shared/TransferInitiation.md b/docs/models/shared/TransferInitiation.md index 075c063a..3dc6434d 100644 --- a/docs/models/shared/TransferInitiation.md +++ b/docs/models/shared/TransferInitiation.md @@ -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 | :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 | | diff --git a/docs/models/shared/TransferInitiationStatus.md b/docs/models/shared/TransferInitiationStatus.md index ffb11294..9265a213 100644 --- a/docs/models/shared/TransferInitiationStatus.md +++ b/docs/models/shared/TransferInitiationStatus.md @@ -11,4 +11,9 @@ | `FAILED` | FAILED | | `REJECTED` | REJECTED | | `VALIDATED` | VALIDATED | -| `RETRIED` | RETRIED | \ No newline at end of file +| `ASK_RETRIED` | ASK_RETRIED | +| `ASK_REVERSED` | ASK_REVERSED | +| `REVERSE_PROCESSING` | REVERSE_PROCESSING | +| `REVERSE_FAILED` | REVERSE_FAILED | +| `PARTIALLY_REVERSED` | PARTIALLY_REVERSED | +| `REVERSED` | REVERSED | \ No newline at end of file diff --git a/docs/sdks/payments/README.md b/docs/sdks/payments/README.md index 84aad398..31abcdc3 100644 --- a/docs/sdks/payments/README.md +++ b/docs/sdks/payments/README.md @@ -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 @@ -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 "; + }}) + .build(); + + com.formance.formance_sdk.models.operations.ReverseTransferInitiationRequest req = new ReverseTransferInitiationRequest( + new ReverseTransferInitiationRequest( + 327549L, + "USD", + "string", + new java.util.HashMap( + ){{ + 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 diff --git a/gen.yaml b/gen.yaml index 34a27014..1bcc9ea3 100755 --- a/gen.yaml +++ b/gen.yaml @@ -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: support@formance.com companyName: Formance diff --git a/lib/build.gradle b/lib/build.gradle index c765323d..332bd235 100644 --- a/lib/build.gradle +++ b/lib/build.gradle @@ -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 diff --git a/lib/src/main/java/com/formance/formance_sdk/Payments.java b/lib/src/main/java/com/formance/formance_sdk/Payments.java index f57442a8..579dd761 100644 --- a/lib/src/main/java/com/formance/formance_sdk/Payments.java +++ b/lib/src/main/java/com/formance/formance_sdk/Payments.java @@ -1391,6 +1391,44 @@ public com.formance.formance_sdk.models.operations.RetryTransferInitiationRespon return res; } + /** + * Reverse a transfer initiation + * Reverse transfer initiation + * @param request the request object containing all of the parameters for the API call + * @return the response from the API call + * @throws Exception if the API call fails + */ + public com.formance.formance_sdk.models.operations.ReverseTransferInitiationResponse reverseTransferInitiation(com.formance.formance_sdk.models.operations.ReverseTransferInitiationRequest request) throws Exception { + String baseUrl = this.sdkConfiguration.serverUrl; + String url = com.formance.formance_sdk.utils.Utils.generateURL(com.formance.formance_sdk.models.operations.ReverseTransferInitiationRequest.class, baseUrl, "/api/payments/transfer-initiations/{transferId}/reverse", request, null); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("POST"); + req.setURL(url); + SerializedBody serializedRequestBody = com.formance.formance_sdk.utils.Utils.serializeRequestBody(request, "reverseTransferInitiationRequest", "json"); + if (serializedRequestBody == null) { + throw new Exception("Request body is required"); + } + req.setBody(serializedRequestBody); + + req.addHeader("Accept", "*/*"); + req.addHeader("user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + com.formance.formance_sdk.models.operations.ReverseTransferInitiationResponse res = new com.formance.formance_sdk.models.operations.ReverseTransferInitiationResponse(contentType, httpRes.statusCode(), httpRes) {{ + }}; + + if (httpRes.statusCode() == 204) { + } + + return res; + } + /** * Update the status of a transfer initiation * Update a transfer initiation status diff --git a/lib/src/main/java/com/formance/formance_sdk/SDKConfiguration.java b/lib/src/main/java/com/formance/formance_sdk/SDKConfiguration.java index 07d416ec..61e5f16e 100644 --- a/lib/src/main/java/com/formance/formance_sdk/SDKConfiguration.java +++ b/lib/src/main/java/com/formance/formance_sdk/SDKConfiguration.java @@ -14,10 +14,10 @@ class SDKConfiguration { public String serverUrl; public int serverIdx = 0; public String language = "java"; - public String openapiDocVersion = "v2.0.0-beta.12"; - public String sdkVersion = "v2.0.0-beta.12"; + public String openapiDocVersion = "v2.0.0-beta.13"; + public String sdkVersion = "v2.0.0-beta.13"; public String genVersion = "2.237.2"; - public String userAgent = "speakeasy-sdk/java v2.0.0-beta.12 2.237.2 v2.0.0-beta.12 com.formance.formance_sdk"; + public String userAgent = "speakeasy-sdk/java v2.0.0-beta.13 2.237.2 v2.0.0-beta.13 com.formance.formance_sdk"; } \ No newline at end of file diff --git a/lib/src/main/java/com/formance/formance_sdk/models/operations/ReverseTransferInitiationRequest.java b/lib/src/main/java/com/formance/formance_sdk/models/operations/ReverseTransferInitiationRequest.java new file mode 100644 index 00000000..71b8fd7b --- /dev/null +++ b/lib/src/main/java/com/formance/formance_sdk/models/operations/ReverseTransferInitiationRequest.java @@ -0,0 +1,35 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package com.formance.formance_sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.SpeakeasyMetadata; + + +public class ReverseTransferInitiationRequest { + @SpeakeasyMetadata("request:mediaType=application/json") + public com.formance.formance_sdk.models.shared.ReverseTransferInitiationRequest reverseTransferInitiationRequest; + + public ReverseTransferInitiationRequest withReverseTransferInitiationRequest(com.formance.formance_sdk.models.shared.ReverseTransferInitiationRequest reverseTransferInitiationRequest) { + this.reverseTransferInitiationRequest = reverseTransferInitiationRequest; + return this; + } + + /** + * The transfer ID. + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=transferId") + public String transferId; + + public ReverseTransferInitiationRequest withTransferId(String transferId) { + this.transferId = transferId; + return this; + } + + public ReverseTransferInitiationRequest(@JsonProperty("ReverseTransferInitiationRequest") com.formance.formance_sdk.models.shared.ReverseTransferInitiationRequest reverseTransferInitiationRequest, @JsonProperty("transferId") String transferId) { + this.reverseTransferInitiationRequest = reverseTransferInitiationRequest; + this.transferId = transferId; + } +} diff --git a/lib/src/main/java/com/formance/formance_sdk/models/operations/ReverseTransferInitiationResponse.java b/lib/src/main/java/com/formance/formance_sdk/models/operations/ReverseTransferInitiationResponse.java new file mode 100644 index 00000000..feb2e7c1 --- /dev/null +++ b/lib/src/main/java/com/formance/formance_sdk/models/operations/ReverseTransferInitiationResponse.java @@ -0,0 +1,50 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package com.formance.formance_sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class ReverseTransferInitiationResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public ReverseTransferInitiationResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public ReverseTransferInitiationResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public ReverseTransferInitiationResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + public ReverseTransferInitiationResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode, @JsonProperty("RawResponse") HttpResponse rawResponse) { + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } +} diff --git a/lib/src/main/java/com/formance/formance_sdk/models/shared/ReverseTransferInitiationRequest.java b/lib/src/main/java/com/formance/formance_sdk/models/shared/ReverseTransferInitiationRequest.java new file mode 100644 index 00000000..77971b24 --- /dev/null +++ b/lib/src/main/java/com/formance/formance_sdk/models/shared/ReverseTransferInitiationRequest.java @@ -0,0 +1,58 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package com.formance.formance_sdk.models.shared; + +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class ReverseTransferInitiationRequest { + @JsonProperty("amount") + public Long amount; + + public ReverseTransferInitiationRequest withAmount(Long amount) { + this.amount = amount; + return this; + } + + @JsonProperty("asset") + public String asset; + + public ReverseTransferInitiationRequest withAsset(String asset) { + this.asset = asset; + return this; + } + + @JsonProperty("description") + public String description; + + public ReverseTransferInitiationRequest withDescription(String description) { + this.description = description; + return this; + } + + @JsonProperty("metadata") + public java.util.Map metadata; + + public ReverseTransferInitiationRequest withMetadata(java.util.Map metadata) { + this.metadata = metadata; + return this; + } + + @JsonProperty("reference") + public String reference; + + public ReverseTransferInitiationRequest withReference(String reference) { + this.reference = reference; + return this; + } + + public ReverseTransferInitiationRequest(@JsonProperty("amount") Long amount, @JsonProperty("asset") String asset, @JsonProperty("description") String description, @JsonProperty("metadata") java.util.Map metadata, @JsonProperty("reference") String reference) { + this.amount = amount; + this.asset = asset; + this.description = description; + this.metadata = metadata; + this.reference = reference; + } +} diff --git a/lib/src/main/java/com/formance/formance_sdk/models/shared/TransferInitiation.java b/lib/src/main/java/com/formance/formance_sdk/models/shared/TransferInitiation.java index 7be04837..3df43840 100644 --- a/lib/src/main/java/com/formance/formance_sdk/models/shared/TransferInitiation.java +++ b/lib/src/main/java/com/formance/formance_sdk/models/shared/TransferInitiation.java @@ -81,6 +81,14 @@ public TransferInitiation withId(String id) { return this; } + @JsonProperty("initialAmount") + public Long initialAmount; + + public TransferInitiation withInitialAmount(Long initialAmount) { + this.initialAmount = initialAmount; + return this; + } + @JsonInclude(Include.NON_ABSENT) @JsonProperty("metadata") public java.util.Map metadata; @@ -150,7 +158,7 @@ public TransferInitiation withType(TransferInitiationType type) { return this; } - public TransferInitiation(@JsonProperty("amount") Long amount, @JsonProperty("asset") String asset, @JsonProperty("connectorID") String connectorID, @JsonProperty("createdAt") OffsetDateTime createdAt, @JsonProperty("description") String description, @JsonProperty("destinationAccountID") String destinationAccountID, @JsonProperty("error") String error, @JsonProperty("id") String id, @JsonProperty("reference") String reference, @JsonProperty("scheduledAt") OffsetDateTime scheduledAt, @JsonProperty("sourceAccountID") String sourceAccountID, @JsonProperty("status") TransferInitiationStatus status, @JsonProperty("type") TransferInitiationType type) { + public TransferInitiation(@JsonProperty("amount") Long amount, @JsonProperty("asset") String asset, @JsonProperty("connectorID") String connectorID, @JsonProperty("createdAt") OffsetDateTime createdAt, @JsonProperty("description") String description, @JsonProperty("destinationAccountID") String destinationAccountID, @JsonProperty("error") String error, @JsonProperty("id") String id, @JsonProperty("initialAmount") Long initialAmount, @JsonProperty("reference") String reference, @JsonProperty("scheduledAt") OffsetDateTime scheduledAt, @JsonProperty("sourceAccountID") String sourceAccountID, @JsonProperty("status") TransferInitiationStatus status, @JsonProperty("type") TransferInitiationType type) { this.amount = amount; this.asset = asset; this.connectorID = connectorID; @@ -159,6 +167,7 @@ public TransferInitiation(@JsonProperty("amount") Long amount, @JsonProperty("as this.destinationAccountID = destinationAccountID; this.error = error; this.id = id; + this.initialAmount = initialAmount; this.reference = reference; this.scheduledAt = scheduledAt; this.sourceAccountID = sourceAccountID; diff --git a/lib/src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationStatus.java b/lib/src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationStatus.java index 5eac6edc..ce202ce9 100644 --- a/lib/src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationStatus.java +++ b/lib/src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationStatus.java @@ -13,7 +13,12 @@ public enum TransferInitiationStatus { 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"); @JsonValue public final String value;