com.netki.Product Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of netki-partner-client Show documentation
Show all versions of netki-partner-client Show documentation
Library used to access Netki's Partner API
The newest version!
package com.netki;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class Product {
private String id;
private String name;
private String currentTierName;
private Map currentPrice = new HashMap();
private int term;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getCurrentTierName() {
return currentTierName;
}
public void setCurrentTierName(String currentTierName) {
this.currentTierName = currentTierName;
}
public Map getCurrentPrice() {
return currentPrice;
}
public List getCountries() {
return new ArrayList(currentPrice.keySet());
}
public Integer getCurrentPrice(String country) {
return currentPrice.get(country);
}
public void setCurrentPrice(Map currentPrice) {
this.currentPrice = currentPrice;
}
public void setCurrentPrice(String country, Integer price) {
this.currentPrice.put(country, price);
}
public int getTerm() {
return term;
}
public void setTerm(int term) {
this.term = term;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy