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

com.konduto.sdk.models.KondutoBusTravelLeg Maven / Gradle / Ivy

Go to download

Easily integrate with Konduto (https://konduto.com), a fraud prevention service.

There is a newer version: 2.17.4
Show newest version
package com.konduto.sdk.models;

import com.konduto.sdk.annotations.Required;

/**
 * Bus travel leg model.
 * @see Konduto API Spec
 */
public class KondutoBusTravelLeg extends KondutoTravelLeg {
    @Required
    private String originCity;
    @Required
    private String destinationCity;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;

        KondutoBusTravelLeg that = (KondutoBusTravelLeg) o;

        if (!originCity.equals(that.originCity)) return false;
        return destinationCity.equals(that.destinationCity);

    }

    @Override
    public int hashCode() {
        int result = super.hashCode();
        result = 31 * result + originCity.hashCode();
        result = 31 * result + destinationCity.hashCode();
        return result;
    }

    public String getOriginCity() {
        return originCity;
    }

    public void setOriginCity(String originCity) {
        this.originCity = originCity;
    }

    public String getDestinationCity() {
        return destinationCity;
    }

    public void setDestinationCity(String destinationCity) {
        this.destinationCity = destinationCity;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy