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

io.electrum.cardaccount.model.Operation Maven / Gradle / Ivy

The newest version!
package io.electrum.cardaccount.model;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * The types of operations supported by the Card-Account API.
 */
public enum Operation {
   ACCOUNT_CREDIT("ACCOUNT_CREDIT"),

   ACCOUNT_DEBIT("ACCOUNT_DEBIT"),

   FUNDS_TRANSFER("FUNDS_TRANSFER"),

   APPLY_ACCOUNT_FEE("APPLY_ACCOUNT_FEE"),

   APPLY_CARD_FEE("APPLY_CARD_FEE"),

   GET_ACCOUNT_BALANCE("GET_ACCOUNT_BALANCE"),

   GET_ACCOUNT_STATEMENT("GET_ACCOUNT_STATEMENT"),

   GET_CARD_STATEMENT("GET_CARD_STATEMENT"),

   LINK_MULTIPLE_ISSUER_CARDS("LINK_MULTIPLE_ISSUER_CARDS"),

   LINK_SINGLE_ISSUER_CARD("LINK_SINGLE_ISSUER_CARD"),

   LINK_CARD_ACCOUNT("LINK_CARD_ACCOUNT"),

   PUT_CARD_HOLD("PUT_CARD_HOLD"),

   REMOVE_CARD_HOLD("REMOVE_CARD_HOLD"),

   RESET_CARD_PIN("RESET_CARD_PIN"),

   GET_CARD_BALANCE("GET_CARD_BALANCE"),

   UPDATE_CUSTOMER_DETAILS("UPDATE_CUSTOMER_DETAILS");

   private String value;

   Operation(String value) {
      this.value = value;
   }

   @Override
   @JsonValue
   public String toString() {
      return String.valueOf(value);
   }

   @JsonCreator
   public static Operation fromValue(String text) {
      for (Operation b : Operation.values()) {
         if (String.valueOf(b.value).equals(text)) {
            return b;
         }
      }
      return null;
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy