com.fireblocks.sdk.model.PayoutState Maven / Gradle / Ivy
/*
* Fireblocks API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.6.2
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.fireblocks.sdk.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* - CREATED - payout instruction set created with all its details - FILE_FOUND - new file found in
* the FTP - REQUESTED - payout requested with all its details - TRANSLATED - payout instruction
* account IDs identified and translated - PROCESSING - payout instruction set executed and is
* processing - SUBMITTED - transactions submitted for payout instructions - FINALIZED - payout
* finished processing, all transactions processed successfully - INSUFFICIENT_BALANCE -
* insufficient balance in the payment account (can be a temporary state) - FAILED - one or more of
* the payout instructions failed
*/
public enum PayoutState {
CREATED("CREATED"),
FILE_FOUND("FILE_FOUND"),
REQUESTED("REQUESTED"),
TRANSLATED("TRANSLATED"),
PROCESSING("PROCESSING"),
SUBMITTED("SUBMITTED"),
FINALIZED("FINALIZED"),
INSUFFICIENT_BALANCE("INSUFFICIENT_BALANCE"),
FAILED("FAILED");
private String value;
PayoutState(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static PayoutState fromValue(String value) {
for (PayoutState b : PayoutState.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
/**
* Convert the instance into URL query string.
*
* @param prefix prefix of the query string
* @return URL query string
*/
public String toUrlQueryString(String prefix) {
if (prefix == null) {
prefix = "";
}
return String.format("%s=%s", prefix, this.toString());
}
}