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

com.payu.sdk.api.model.termsconditions.TermsConditionsVersion Maven / Gradle / Ivy

The newest version!
package com.payu.sdk.api.model.termsconditions;

import java.util.List;

public class TermsConditionsVersion {

  private TermsConditionsType termsAndConditionsType;

  private String version;

  private List links;

  public TermsConditionsType getTermsAndConditionsType() {
    return termsAndConditionsType;
  }

  public String getVersion() {
    return version;
  }

  public List getLinks() {
    return links;
  }

  /**
   * Returns a link corresponding with a specific relationship
   *
   * @return The link corresponding to a relationship
   */
  public Link getLinkRel(Link.Rel rel) {

    if (links != null && !links.isEmpty() && rel != null) {
      for (Link link : links) {
        if (link.getRel() != null && rel.equals(link.getRel())) {
          return link;
        }
      }
    }

    return null;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy