All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.vality.damsel.analytics.PaymentStatus Maven / Gradle / Ivy

Go to download

Generates jar artifact containing compiled thrift classes based on generated thrift IDL files

There is a newer version: 1.43-2d1fdc2
Show newest version
/**
 * 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