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

io.voucherify.client.model.voucher.CodeConfig Maven / Gradle / Ivy

Go to download

Voucherify-java-sdk is a Java client (can be used in Android application as well) which was created to simplify integration with Voucherify backend (http://www.voucherify.io)

There is a newer version: 16.0.2
Show newest version
package io.voucherify.client.model.voucher;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.ToString;

import static lombok.AccessLevel.PRIVATE;

@NoArgsConstructor(access = PRIVATE)
@AllArgsConstructor(access = PRIVATE)
@Getter
@Builder
@ToString
public class CodeConfig {

  public final static char PATTERN_PLACEHOLDER = '#';
  public final static int DEFAULT_LENGTH = 8;

  public static class Charset {
    public static final String ALPHABETIC = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
    public static final String ALPHANUMERIC = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
    public static final String NUMBERS = "0123456789";
  }

  private Integer length;

  private String charset;

  private String prefix;

  private String postfix;

  private String pattern;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy