
com.riskified.models.Seller Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of riskified-sdk Show documentation
Show all versions of riskified-sdk Show documentation
Risikified rest api SDK for java
The newest version!
package com.riskified.models;
import com.riskified.validations.*;
public class Seller implements IValidated {
private Customer customer;
private int correspondence;
private boolean priceNegotiated;
private float startingPrice;
public Seller(Customer customer) {
this.customer = customer;
}
public Customer getCustomer() {
return customer;
}
public void setCustomer(Customer customer) {
this.customer = customer;
}
public int getCorrespondence() {
return correspondence;
}
public void setCorrespondence(int correspondence) {
this.correspondence = correspondence;
}
public boolean isPriceNegotiated() {
return priceNegotiated;
}
public void setPriceNegotiated(boolean priceNegotiated) {
this.priceNegotiated = priceNegotiated;
}
public float getStartingPrice() {
return startingPrice;
}
public void setStartingPrice(float startingPrice) {
this.startingPrice = startingPrice;
}
public void validate(Validation validationType)
throws FieldBadFormatException {
if (validationType == Validation.ALL) {
Validate.notNull(this, this.customer, "Customer");
}
if (customer != null) {
customer.validate(validationType);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy