com.minlessika.membership.integration.Organization Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of membership-integration Show documentation
Show all versions of membership-integration Show documentation
It's a library to help developers to integration membership services to another project.
package com.minlessika.membership.integration;
import java.util.UUID;
public interface Organization {
UUID uid();
String name();
Currency currency();
boolean hasApplicationInstalled(String module);
boolean applicationIsAvailable(String module);
void startApplicationInstallation(String module);
void finalizeApplicationInstallation(String module);
boolean hasCharacteristic(String code);
boolean hasOwner(final User user);
User defaultOwner();
String logo();
String phone1();
String phone2();
String headquarter();
String addressLine1();
String addressLine2();
Currency currency(UUID id);
Iterable currencies();
Contacts contacts();
MeasureUnits measureUnits();
Taxes taxes();
Services services();
Sequences sequences();
PaymentMethods paymentMethods();
Organization EMPTY = new Organization() {
@Override
public UUID uid() {
return null;
}
@Override
public String name() {
return null;
}
@Override
public Currency currency() {
return null;
}
@Override
public boolean hasApplicationInstalled(String module) {
return false;
}
@Override
public boolean applicationIsAvailable(String module) {
return false;
}
@Override
public void startApplicationInstallation(String module) {
}
@Override
public void finalizeApplicationInstallation(String module) {
}
@Override
public boolean hasCharacteristic(String code) {
return false;
}
@Override
public boolean hasOwner(User user) {
return false;
}
@Override
public User defaultOwner() {
return null;
}
@Override
public String logo() {
return null;
}
@Override
public String phone1() {
return null;
}
@Override
public String phone2() {
return null;
}
@Override
public String headquarter() {
return null;
}
@Override
public String addressLine1() {
return null;
}
@Override
public String addressLine2() {
return null;
}
@Override
public Currency currency(UUID id) {
return null;
}
@Override
public Iterable currencies() {
return null;
}
@Override
public Contacts contacts() {
return null;
}
@Override
public MeasureUnits measureUnits() {
return null;
}
@Override
public Taxes taxes() {
return null;
}
@Override
public Services services() {
return null;
}
@Override
public Sequences sequences() {
return null;
}
@Override
public PaymentMethods paymentMethods() {
return null;
}
};
}