-
-
Save SinTeZWh1te/3d0b460bee645b6f511955e857d31c16 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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