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 DelayReason implements org.apache.thrift.TEnum {INVENTORY_LOW_PHASED_OUT(0),INVENTORY_LOW_COLOR_NOT_AVAILABLE(1),INVENTORY_LOW_REVERSAL_NOT_ON_TIME(2),INVENTORY_LOW_PRODUCT_NOT_SEALED(3),COURIER_DELAY_NOT_DELIVERED_TO_COURIER_ON_TIME(4),COURIER_DELAY_DID_NOT_CONNECT(5),COURIER_DELAY_CUSTOMER_NOT_AVAILABLE(6),COURIER_DELAY_INCORRECT_ADDRESS(7),COURIER_DELAY_OCTROI_DELAY(8),COURIER_DELAY_FORCES_OF_NATURE(9),COD_VERIFICATION_DELAY(10),PAYMENT_FLAGGED(11),OTHERS(12);private final int value;private DelayReason(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 DelayReason findByValue(int value) {switch (value) {case 0:return INVENTORY_LOW_PHASED_OUT;case 1:return INVENTORY_LOW_COLOR_NOT_AVAILABLE;case 2:return INVENTORY_LOW_REVERSAL_NOT_ON_TIME;case 3:return INVENTORY_LOW_PRODUCT_NOT_SEALED;case 4:return COURIER_DELAY_NOT_DELIVERED_TO_COURIER_ON_TIME;case 5:return COURIER_DELAY_DID_NOT_CONNECT;case 6:return COURIER_DELAY_CUSTOMER_NOT_AVAILABLE;case 7:return COURIER_DELAY_INCORRECT_ADDRESS;case 8:return COURIER_DELAY_OCTROI_DELAY;case 9:return COURIER_DELAY_FORCES_OF_NATURE;case 10:return COD_VERIFICATION_DELAY;case 11:return PAYMENT_FLAGGED;case 12:return OTHERS;default:return null;}}}