com.checkout.common.Resource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of checkout-sdk-java Show documentation
Show all versions of checkout-sdk-java Show documentation
Checkout SDK for Java https://checkout.com
package com.checkout.common;
import com.checkout.HttpMetadata;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import java.util.HashMap;
import java.util.Map;
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
public abstract class Resource extends HttpMetadata {
@SerializedName("_links")
private Map links = new HashMap<>();
public Link getSelfLink() {
return getLink("self");
}
public Link getLink(final String relation) {
return links.get(relation);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy