Subversion Repositories SmartDukaan

Rev

Blame | 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.model.v1.order;


import java.util.Map;
import java.util.HashMap;
import org.apache.thrift.TEnum;

public enum ReturnTxnResolutionStatus implements org.apache.thrift.TEnum {
  PENDING(0),
  AWAITING_PICKUP(1),
  QUALITY_CHECK(2),
  REPLACEMENT_ORDER_CREATED(3),
  REPLACEMENT_DONE(4),
  REFUND_IN_PROCESS(5),
  REFUND_DONE(6),
  CLOSED(7);

  private final int value;

  private ReturnTxnResolutionStatus(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 ReturnTxnResolutionStatus findByValue(int value) { 
    switch (value) {
      case 0:
        return PENDING;
      case 1:
        return AWAITING_PICKUP;
      case 2:
        return QUALITY_CHECK;
      case 3:
        return REPLACEMENT_ORDER_CREATED;
      case 4:
        return REPLACEMENT_DONE;
      case 5:
        return REFUND_IN_PROCESS;
      case 6:
        return REFUND_DONE;
      case 7:
        return CLOSED;
      default:
        return null;
    }
  }
}