jp.gopay.sdk.models.common.IdempotencyKey Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gopay-java-sdk Show documentation
Show all versions of gopay-java-sdk Show documentation
Official Gyro-n Payments Java SDK
package jp.gopay.sdk.models.common;
import java.util.UUID;
public class IdempotencyKey {
private String key = null;
public IdempotencyKey(String key) {
this.key = key;
}
public IdempotencyKey(UUID uuid){
this.key = uuid.toString();
}
public String getKey() {
return key;
}
public static IdempotencyKey randomFromUUID() {
return new IdempotencyKey(UUID.randomUUID().toString());
}
}