Skip to content

Instantly share code, notes, and snippets.

@SinTeZWh1te
Last active Oct 23, 2019
Embed
What would you like to do?
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ru.bitel.bgbilling.common.BGException;
import ru.bitel.mybgbilling.kernel.common.AbstractBean;
import ru.bitel.mybgbilling.kernel.common.inject.BGInject;
import ru.bitel.mybgbilling.kernel.common.inject.BGInjection;
import ru.bitel.bgbilling.modules.npay.api.common.service.NpayService;
import javax.faces.bean.ViewScoped;
import javax.inject.Named;
import java.io.Serializable;
import java.math.BigDecimal;
@Named
@ViewScoped
@BGInjection
public class MyNPayBean extends AbstractBean implements Serializable {
private static final Logger logger = LoggerFactory.getLogger(MyNPayBean.class);
@BGInject
private NpayService npayService;
@Override
protected void init() throws BGException {
populate();
}
public void populate() throws BGException {
}
public BigDecimal getAmountForUnlock() throws BGException {
return this.npayService.getAmountForUnlock(this.getContractId(),<MODULE_ID>);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment