dev.vality.damsel.analytics.PaymentStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of analytics-proto Show documentation
Show all versions of analytics-proto Show documentation
Generates jar artifact containing compiled thrift classes based on generated thrift IDL files
/**
* Autogenerated by Thrift Compiler (0.14.2)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package dev.vality.damsel.analytics;
/**
* Статусы платежей.
*
*/
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.14.2)", date = "2022-11-14")
public enum PaymentStatus implements org.apache.thrift.TEnum {
PENDING(0),
PROCESSED(1),
CAPTURED(2),
CANCELLED(3),
REFUNDED(4),
FAILED(5);
private final int value;
private PaymentStatus(int value) {
this.value = value;
}
/**
* Get the integer value of this enum value, as defined in the Thrift IDL.
*/
public int getValue() {
return value;
}
/**
* Find a the enum type by its integer value, as defined in the Thrift IDL.
* @return null if the value is not found.
*/
@org.apache.thrift.annotation.Nullable
public static PaymentStatus findByValue(int value) {
switch (value) {
case 0:
return PENDING;
case 1:
return PROCESSED;
case 2:
return CAPTURED;
case 3:
return CANCELLED;
case 4:
return REFUNDED;
case 5:
return FAILED;
default:
return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy