com.github.GBSEcom.model.Items Maven / Gradle / Ivy
/*
* Payment Gateway API Specification.
* The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway.
*
* The version of the OpenAPI document: 21.2.0.20210406.001
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.github.GBSEcom.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* Network information.
*/
@ApiModel(description = "Network information.")
public class Items {
/**
* Defines the type of network associated with the device.
*/
@JsonAdapter(NetworkTypeEnum.Adapter.class)
public enum NetworkTypeEnum {
MOBILE("network/mobile"),
WIFI("network/wifi");
private String value;
NetworkTypeEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static NetworkTypeEnum fromValue(String value) {
for (NetworkTypeEnum b : NetworkTypeEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final NetworkTypeEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public NetworkTypeEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return NetworkTypeEnum.fromValue(value);
}
}
}
public static final String SERIALIZED_NAME_NETWORK_TYPE = "networkType";
@SerializedName(SERIALIZED_NAME_NETWORK_TYPE)
private NetworkTypeEnum networkType;
public static final String SERIALIZED_NAME_IP = "ip";
@SerializedName(SERIALIZED_NAME_IP)
private String ip;
public static final String SERIALIZED_NAME_PHONE_NUMBER = "phoneNumber";
@SerializedName(SERIALIZED_NAME_PHONE_NUMBER)
private String phoneNumber;
public static final String SERIALIZED_NAME_CARRIER_NAME = "carrierName";
@SerializedName(SERIALIZED_NAME_CARRIER_NAME)
private String carrierName;
public static final String SERIALIZED_NAME_MOBILE_COUNTRY_CODE = "mobileCountryCode";
@SerializedName(SERIALIZED_NAME_MOBILE_COUNTRY_CODE)
private String mobileCountryCode;
public static final String SERIALIZED_NAME_MOBILE_NETWORK_CODE = "mobileNetworkCode";
@SerializedName(SERIALIZED_NAME_MOBILE_NETWORK_CODE)
private String mobileNetworkCode;
public static final String SERIALIZED_NAME_SUBSCRIPTION_IDENTIFICATION_NUMBER = "subscriptionIdentificationNumber";
@SerializedName(SERIALIZED_NAME_SUBSCRIPTION_IDENTIFICATION_NUMBER)
private String subscriptionIdentificationNumber;
public static final String SERIALIZED_NAME_LOCATION_AREA_CODE = "locationAreaCode";
@SerializedName(SERIALIZED_NAME_LOCATION_AREA_CODE)
private String locationAreaCode;
public static final String SERIALIZED_NAME_CELL_ID = "cellId";
@SerializedName(SERIALIZED_NAME_CELL_ID)
private String cellId;
public static final String SERIALIZED_NAME_STANDARD = "standard";
@SerializedName(SERIALIZED_NAME_STANDARD)
private String standard;
public static final String SERIALIZED_NAME_MAC = "mac";
@SerializedName(SERIALIZED_NAME_MAC)
private String mac;
public static final String SERIALIZED_NAME_SSID = "ssid";
@SerializedName(SERIALIZED_NAME_SSID)
private String ssid;
public static final String SERIALIZED_NAME_BSSID = "bssid";
@SerializedName(SERIALIZED_NAME_BSSID)
private String bssid;
public static final String SERIALIZED_NAME_USER_DEFINED = "userDefined";
@SerializedName(SERIALIZED_NAME_USER_DEFINED)
private Object userDefined;
public Items networkType(NetworkTypeEnum networkType) {
this.networkType = networkType;
return this;
}
/**
* Defines the type of network associated with the device.
* @return networkType
**/
@ApiModelProperty(example = "network/wifi", required = true, value = "Defines the type of network associated with the device.")
public NetworkTypeEnum getNetworkType() {
return networkType;
}
public void setNetworkType(NetworkTypeEnum networkType) {
this.networkType = networkType;
}
public Items ip(String ip) {
this.ip = ip;
return this;
}
/**
* The IPv4 or IPv6 address of the device if the network assigned one.
* @return ip
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "10.201.0.244", value = "The IPv4 or IPv6 address of the device if the network assigned one.")
public String getIp() {
return ip;
}
public void setIp(String ip) {
this.ip = ip;
}
public Items phoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
return this;
}
/**
* The devices primary phone number. This value should be supplied directly without any transformation (e.g. removal of spaces, hyphens or parentheses). If this data is available in segregated fields, it should be concatenated using a blank space (\" \") as a separator.
* @return phoneNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "302-123-4567", value = "The devices primary phone number. This value should be supplied directly without any transformation (e.g. removal of spaces, hyphens or parentheses). If this data is available in segregated fields, it should be concatenated using a blank space (\" \") as a separator.")
public String getPhoneNumber() {
return phoneNumber;
}
public void setPhoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
}
public Items carrierName(String carrierName) {
this.carrierName = carrierName;
return this;
}
/**
* The network carrier name.
* @return carrierName
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "T-Mobile", value = "The network carrier name.")
public String getCarrierName() {
return carrierName;
}
public void setCarrierName(String carrierName) {
this.carrierName = carrierName;
}
public Items mobileCountryCode(String mobileCountryCode) {
this.mobileCountryCode = mobileCountryCode;
return this;
}
/**
* The Mobile Country Code (MCC) as described in the ITUs E.212 specification.
* @return mobileCountryCode
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "310", value = "The Mobile Country Code (MCC) as described in the ITUs E.212 specification.")
public String getMobileCountryCode() {
return mobileCountryCode;
}
public void setMobileCountryCode(String mobileCountryCode) {
this.mobileCountryCode = mobileCountryCode;
}
public Items mobileNetworkCode(String mobileNetworkCode) {
this.mobileNetworkCode = mobileNetworkCode;
return this;
}
/**
* The Mobile Network Code (MNC) as described in the ITUs E.212 specification.
* @return mobileNetworkCode
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "004", value = "The Mobile Network Code (MNC) as described in the ITUs E.212 specification.")
public String getMobileNetworkCode() {
return mobileNetworkCode;
}
public void setMobileNetworkCode(String mobileNetworkCode) {
this.mobileNetworkCode = mobileNetworkCode;
}
public Items subscriptionIdentificationNumber(String subscriptionIdentificationNumber) {
this.subscriptionIdentificationNumber = subscriptionIdentificationNumber;
return this;
}
/**
* The Mobile Subscription Identification Number code (MSIN) as described in the ITUs E.212 specification.
* @return subscriptionIdentificationNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "123456789", value = "The Mobile Subscription Identification Number code (MSIN) as described in the ITUs E.212 specification.")
public String getSubscriptionIdentificationNumber() {
return subscriptionIdentificationNumber;
}
public void setSubscriptionIdentificationNumber(String subscriptionIdentificationNumber) {
this.subscriptionIdentificationNumber = subscriptionIdentificationNumber;
}
public Items locationAreaCode(String locationAreaCode) {
this.locationAreaCode = locationAreaCode;
return this;
}
/**
* The Location Area Code (LAC) is a 16-bit identifier for a region that is covered by a set of network antennas.
* @return locationAreaCode
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "12345", value = "The Location Area Code (LAC) is a 16-bit identifier for a region that is covered by a set of network antennas.")
public String getLocationAreaCode() {
return locationAreaCode;
}
public void setLocationAreaCode(String locationAreaCode) {
this.locationAreaCode = locationAreaCode;
}
public Items cellId(String cellId) {
this.cellId = cellId;
return this;
}
/**
* The Cell ID (CID) is identifier for a specific Base Transceiver Station (BTS) within a specific Location Area Code (LAC).
* @return cellId
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "2224", value = "The Cell ID (CID) is identifier for a specific Base Transceiver Station (BTS) within a specific Location Area Code (LAC).")
public String getCellId() {
return cellId;
}
public void setCellId(String cellId) {
this.cellId = cellId;
}
public Items standard(String standard) {
this.standard = standard;
return this;
}
/**
* An identifier of the network standard used.
* @return standard
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "GSM", value = "An identifier of the network standard used.")
public String getStandard() {
return standard;
}
public void setStandard(String standard) {
this.standard = standard;
}
public Items mac(String mac) {
this.mac = mac;
return this;
}
/**
* The MAC address of the device that is connected to the Wi-Fi network.
* @return mac
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "02:00:00:00:00:00", value = "The MAC address of the device that is connected to the Wi-Fi network.")
public String getMac() {
return mac;
}
public void setMac(String mac) {
this.mac = mac;
}
public Items ssid(String ssid) {
this.ssid = ssid;
return this;
}
/**
* The Wi-Fi networks Service Set Identifier (SSID).
* @return ssid
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "Boston-5G-1", value = "The Wi-Fi networks Service Set Identifier (SSID).")
public String getSsid() {
return ssid;
}
public void setSsid(String ssid) {
this.ssid = ssid;
}
public Items bssid(String bssid) {
this.bssid = bssid;
return this;
}
/**
* The Wi-Fi networks Basic Service Set Identifier (BSSID).
* @return bssid
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "e8:fc:af:fb:4b:8c", value = "The Wi-Fi networks Basic Service Set Identifier (BSSID).")
public String getBssid() {
return bssid;
}
public void setBssid(String bssid) {
this.bssid = bssid;
}
public Items userDefined(Object userDefined) {
this.userDefined = userDefined;
return this;
}
/**
* A JSON object that can carry any additional information about the network that might be helpful for fraud detection.
* @return userDefined
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "{\"usedData\":\"50MB\"}", value = "A JSON object that can carry any additional information about the network that might be helpful for fraud detection.")
public Object getUserDefined() {
return userDefined;
}
public void setUserDefined(Object userDefined) {
this.userDefined = userDefined;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Items items = (Items) o;
return Objects.equals(this.networkType, items.networkType) &&
Objects.equals(this.ip, items.ip) &&
Objects.equals(this.phoneNumber, items.phoneNumber) &&
Objects.equals(this.carrierName, items.carrierName) &&
Objects.equals(this.mobileCountryCode, items.mobileCountryCode) &&
Objects.equals(this.mobileNetworkCode, items.mobileNetworkCode) &&
Objects.equals(this.subscriptionIdentificationNumber, items.subscriptionIdentificationNumber) &&
Objects.equals(this.locationAreaCode, items.locationAreaCode) &&
Objects.equals(this.cellId, items.cellId) &&
Objects.equals(this.standard, items.standard) &&
Objects.equals(this.mac, items.mac) &&
Objects.equals(this.ssid, items.ssid) &&
Objects.equals(this.bssid, items.bssid) &&
Objects.equals(this.userDefined, items.userDefined);
}
@Override
public int hashCode() {
return Objects.hash(networkType, ip, phoneNumber, carrierName, mobileCountryCode, mobileNetworkCode, subscriptionIdentificationNumber, locationAreaCode, cellId, standard, mac, ssid, bssid, userDefined);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Items {\n");
sb.append(" networkType: ").append(toIndentedString(networkType)).append("\n");
sb.append(" ip: ").append(toIndentedString(ip)).append("\n");
sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n");
sb.append(" carrierName: ").append(toIndentedString(carrierName)).append("\n");
sb.append(" mobileCountryCode: ").append(toIndentedString(mobileCountryCode)).append("\n");
sb.append(" mobileNetworkCode: ").append(toIndentedString(mobileNetworkCode)).append("\n");
sb.append(" subscriptionIdentificationNumber: ").append(toIndentedString(subscriptionIdentificationNumber)).append("\n");
sb.append(" locationAreaCode: ").append(toIndentedString(locationAreaCode)).append("\n");
sb.append(" cellId: ").append(toIndentedString(cellId)).append("\n");
sb.append(" standard: ").append(toIndentedString(standard)).append("\n");
sb.append(" mac: ").append(toIndentedString(mac)).append("\n");
sb.append(" ssid: ").append(toIndentedString(ssid)).append("\n");
sb.append(" bssid: ").append(toIndentedString(bssid)).append("\n");
sb.append(" userDefined: ").append(toIndentedString(userDefined)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy