Rev 6482 | Blame | Compare with Previous | Last modification | View Log | RSS feed
/*** Autogenerated by Thrift Compiler (0.7.0)** DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING*/package in.shop2020.payments;import java.util.Map;import java.util.HashMap;import org.apache.thrift.TEnum;public enum PaymentStatus implements org.apache.thrift.TEnum {INIT(0),PENDING(1),SUCCESS(2),FAILED(3),AUTHORIZED(4),PARTIALLY_CAPTURED(5),CAPTURE_IN_PROCESS(6),PROVISIONALLY_CAPTURED(7),REFUNDED(8),PENDING_APPROVAL(9);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.*/public static PaymentStatus findByValue(int value) {switch (value) {case 0:return INIT;case 1:return PENDING;case 2:return SUCCESS;case 3:return FAILED;case 4:return AUTHORIZED;case 5:return PARTIALLY_CAPTURED;case 6:return CAPTURE_IN_PROCESS;case 7:return PROVISIONALLY_CAPTURED;case 8:return REFUNDED;case 9:return PENDING_APPROVAL;default:return null;}}}