Skip to content

Instantly share code, notes, and snippets.

Last active Oct 23, 2019
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.math.BigDecimal;
public class MyNPayBean extends AbstractBean implements Serializable {
private static final Logger logger = LoggerFactory.getLogger(MyNPayBean.class);
private NpayService npayService;
protected void init() throws BGException {
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