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

com.riskified.models.CustomerUpdate Maven / Gradle / Ivy

The newest version!
package com.riskified.models;

import com.riskified.validations.*;

import java.util.List;

public class CustomerUpdate implements IValidated {
    private String customerId;
    private Boolean passwordChanged;
    private Boolean phoneMandatory;
    private String referrerCustomerId;
    private SocialType socialSignupType;
    private ClientDetails clientDetails;
    private SessionDetails sessionDetails;
    private Customer customer;
    private List paymentDetails;
    private List
billingAddress; private List
shippingAddress; public CustomerUpdate(String customerId, Boolean passwordChanged, ClientDetails clientDetails, SessionDetails sessionDetails, Customer customer) { this.customerId = customerId; this.passwordChanged = passwordChanged; this.clientDetails = clientDetails; this.sessionDetails = sessionDetails; this.customer = customer; } public void validate(Validation validationType) throws FieldBadFormatException { if (validationType == Validation.ALL) { Validate.notNullOrEmpty(this, this.customerId, "Customer ID"); Validate.notNull(this, this.clientDetails, "Client Details"); Validate.notNull(this, this.sessionDetails, "Session Details"); Validate.notNull(this, this.customer, "Customer"); } } public String getCustomerId() { return customerId; } public void setCustomerId(String customerId) { this.customerId = customerId; } public Boolean getPasswordChanged() { return passwordChanged; } public void setPasswordChanged(Boolean passwordChanged) { this.passwordChanged = passwordChanged; } public Boolean getPhoneMandatory() { return phoneMandatory; } public void setPhoneMandatory(Boolean phoneMandatory) { this.phoneMandatory = phoneMandatory; } public String getReferrerCustomerId() { return referrerCustomerId; } public void setReferrerCustomerId(String referrerCustomerId) { this.referrerCustomerId = referrerCustomerId; } public SocialType getSocialSignupType() { return socialSignupType; } public void setSocialSignupType(SocialType socialSignupType) { this.socialSignupType = socialSignupType; } public ClientDetails getClientDetails() { return clientDetails; } public void setClientDetails(ClientDetails clientDetails) { this.clientDetails = clientDetails; } public SessionDetails getSessionDetails() { return sessionDetails; } public void setSessionDetails(SessionDetails sessionDetails) { this.sessionDetails = sessionDetails; } public Customer getCustomer() { return customer; } public void setCustomer(Customer customer) { this.customer = customer; } public List getPaymentDetails() { return paymentDetails; } public void setPaymentDetails(List paymentDetails) { this.paymentDetails = paymentDetails; } public List
getBillingAddress() { return billingAddress; } public void setBillingAddress(List
billingAddress) { this.billingAddress = billingAddress; } public List
getShippingAddress() { return shippingAddress; } public void setShippingAddress(List
shippingAddress) { this.shippingAddress = shippingAddress; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy