
com.securionpay.request.CustomerRequest 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.request;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
@JsonInclude(Include.NON_NULL)
public class CustomerRequest {
private String email;
private String description;
private CardRequest card;
private Map metadata;
@JsonIgnore
private final Map other = new HashMap<>();
public CustomerRequest() {
}
public CustomerRequest(String email) {
this.email = email;
}
public String getEmail() {
return email;
}
public String getDescription() {
return description;
}
public CardRequest getCard() {
return card;
}
public Map getMetadata() {
return metadata;
}
public CustomerRequest email(String email) {
this.email = email;
return this;
}
public CustomerRequest description(String description) {
this.description = description;
return this;
}
public CustomerRequest card(CardRequest card) {
this.card = card;
return this;
}
public CustomerRequest metadata(Map metadata) {
this.metadata = metadata;
return this;
}
@JsonAnyGetter
private Map getOtherMap() {
return other;
}
@JsonAnySetter
public CustomerRequest set(String name, Object value) {
other.put(name, value);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy