com.fireblocks.sdk.model.PayoutStatus 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;
/**
* - REQUESTED payout requested with all its details - VERIFIED payout instruction set details were
* verified - PROCESSING payout instruction set executed and is processing - FINALIZED payout done
* (all payout instructions completed 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 PayoutStatus {
REGISTERED("REGISTERED"),
VERIFYING("VERIFYING"),
IN_PROGRESS("IN_PROGRESS"),
DONE("DONE"),
INSUFFICIENT_BALANCE("INSUFFICIENT_BALANCE"),
FAILED("FAILED");
private String value;
PayoutStatus(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static PayoutStatus fromValue(String value) {
for (PayoutStatus b : PayoutStatus.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());
}
}