
com.securionpay.response.FileUpload Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of securionpay-java Show documentation
Show all versions of securionpay-java Show documentation
Java client library for SecurionPay API
The newest version!
package com.securionpay.response;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.securionpay.enums.FileUploadPurpose;
import com.securionpay.enums.FileUploadType;
import java.util.HashMap;
import java.util.Map;
import static com.securionpay.util.SecurionPayUtils.toStringNullSafe;
public class FileUpload {
private String id;
private Long created;
private String purpose;
private Integer size;
private String type;
private String url;
@JsonIgnore
private final Map other = new HashMap<>();
public String getId() {
return id;
}
public Long getCreated() {
return created;
}
public FileUploadPurpose getPurpose() {
return FileUploadPurpose.fromValue(purpose);
}
public String getPurposeAsString() {
return purpose;
}
public Integer getSize() {
return size;
}
public FileUploadType getType() {
return FileUploadType.fromValue(type);
}
public String getTypeAsString() {
return type;
}
public String getUrl() {
return url;
}
public String get(String name) {
return toStringNullSafe(other.get(name));
}
@JsonAnySetter
private void set(String name, Object value) {
other.put(name, value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy