io.voucherify.client.model.voucher.response.VouchersResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of voucherify-java-sdk Show documentation
Show all versions of voucherify-java-sdk Show documentation
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)
package io.voucherify.client.model.voucher.response;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.ToString;
import java.util.List;
@NoArgsConstructor(access = AccessLevel.PRIVATE)
@AllArgsConstructor(access = AccessLevel.PRIVATE)
@Getter
@ToString
public class VouchersResponse {
private String object;
private Integer total;
@JsonProperty("data_ref")
private String dataRef;
private List vouchers;
public static VouchersResponse of(String object, Integer total, String dataRef, List vouchers) {
return new VouchersResponse(object, total, dataRef, vouchers);
}
public static VouchersResponse of(List vouchers) {
return new VouchersResponse(null, null, null, vouchers);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy