Commit c1c1aaf1 authored by Bert T.'s avatar Bert T.

Add a way to determine a shop's currency

parent ae83538a
package co.melondev.cubedpay.data;
public class Currency {
private String iso = "";
private String name = "";
private int decimals = 0;
private String format = "";
public String getCode() {
return iso;
}
public String getName() {
return name;
}
public int getDecimals() {
return decimals;
}
public String getFormat() {
return format;
}
}
......@@ -17,6 +17,7 @@ public class Shop {
private List<User> members = new ArrayList<>();
private List<Gateway> gateways = new ArrayList<>();
private ShopPlan plan;
private Currency currency;
public String getId() {
return id;
......@@ -66,6 +67,10 @@ public class Shop {
return plan;
}
public Currency getCurrency() {
return currency;
}
@Override
public String toString() {
return "Shop{" +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment