kh.gov.nbc.bakong_khqr.model.MerchantInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-java Show documentation
Show all versions of sdk-java Show documentation
The standardization of KHQR code specifications will help promote wider use of
mobile retail payments in Cambodia and provide consistent user experience for merchants
and consumers. It can enable interoperability in the payment industry. A common QR code
would facilitate payments among different schemes, e-wallets and banks and would
encourage small merchants to adopt KHQR code as payment method.
KHQR is created for retail or remittance in Cambodia and Cross-Border. It only
requires a single QR for receiving transactions from any payment provider through Bakong
including Bakong App.
The newest version!
package kh.gov.nbc.bakong_khqr.model;
import kh.gov.nbc.bakong_khqr.utils.StringUtils;
public class MerchantInfo {
private String bakongAccountId;
private KHQRCurrency currency = KHQRCurrency.KHR;
private Double amount;
private String merchantName;
private String merchantCity;
private String merchantId;
private String acquiringBank;
private String upiAccountInformation;
private String billNumber;
private String storeLabel;
private String terminalLabel;
private String mobileNumber;
private String purposeOfTransaction;
private String merchantAlternateLanguagePreference;
private String merchantNameAlternateLanguage;
private String merchantCityAlternateLanguage;
public MerchantInfo(String bakongAccountId, String merchantId, String acquiringBank, String merchantName, String merchantCity, KHQRCurrency currency, Double amount, String billNumber, String mobileNumber, String storeLabel, String terminalLabel, String upiAccountInformation, String purposeOfTransaction, String merchantAlternateLanguagePreference, String merchantNameAlternateLanguage, String merchantCityAlternateLanguage) {
this.bakongAccountId = bakongAccountId;
if (currency != null) this.currency = currency;
this.amount = amount;
this.merchantName = merchantName;
this.merchantCity = merchantCity;
this.merchantId = merchantId;
this.acquiringBank = acquiringBank;
this.billNumber = billNumber;
this.storeLabel = storeLabel;
this.terminalLabel = terminalLabel;
this.mobileNumber = mobileNumber;
this.upiAccountInformation = upiAccountInformation;
this.purposeOfTransaction = purposeOfTransaction;
this.merchantAlternateLanguagePreference = merchantAlternateLanguagePreference;
this.merchantNameAlternateLanguage = merchantNameAlternateLanguage;
this.merchantCityAlternateLanguage = merchantCityAlternateLanguage;
}
public MerchantInfo() {
}
public String getBakongAccountId() {
return bakongAccountId;
}
public void setBakongAccountId(String bakongAccountId) {
this.bakongAccountId = bakongAccountId;
}
public KHQRCurrency getCurrency() {
return currency;
}
public void setCurrency(KHQRCurrency currency) {
if (currency != null) this.currency = currency;
}
public Double getAmount() {
return amount;
}
public void setAmount(Double amount) {
this.amount = amount;
}
public String getMerchantName() {
return merchantName;
}
public void setMerchantName(String merchantName) {
this.merchantName = merchantName;
}
public String getMerchantCity() {
if (StringUtils.isBlank(merchantCity))
return "Phnom Penh";
else
return merchantCity;
}
public void setMerchantCity(String merchantCity) {
this.merchantCity = merchantCity;
}
public String getBillNumber() {
return billNumber;
}
public void setBillNumber(String billNumber) {
this.billNumber = billNumber;
}
public String getStoreLabel() {
return storeLabel;
}
public void setStoreLabel(String storeLabel) {
this.storeLabel = storeLabel;
}
public String getTerminalLabel() {
return terminalLabel;
}
public void setTerminalLabel(String terminalLabel) {
this.terminalLabel = terminalLabel;
}
public String getMobileNumber() {
return mobileNumber;
}
public void setMobileNumber(String mobileNumber) {
this.mobileNumber = mobileNumber;
}
public String getMerchantId() {
return merchantId;
}
public void setMerchantId(String merchantId) {
this.merchantId = merchantId;
}
public String getAcquiringBank() {
return acquiringBank;
}
public void setAcquiringBank(String acquiringBank) {
this.acquiringBank = acquiringBank;
}
public String getPurposeOfTransaction() {
return purposeOfTransaction;
}
public String getUpiAccountInformation() {
return upiAccountInformation;
}
public void setUpiAccountInformation(String upiAccountInformation) {
this.upiAccountInformation = upiAccountInformation;
}
public void setPurposeOfTransaction(String purposeOfTransaction) {
this.purposeOfTransaction = purposeOfTransaction;
}
public String getMerchantAlternateLanguagePreference() {
return merchantAlternateLanguagePreference;
}
public void setMerchantAlternateLanguagePreference(String merchantAlternateLanguagePreference) {
this.merchantAlternateLanguagePreference = merchantAlternateLanguagePreference;
}
public String getMerchantNameAlternateLanguage() {
return merchantNameAlternateLanguage;
}
public void setMerchantNameAlternateLanguage(String merchantNameAlternateLanguage) {
this.merchantNameAlternateLanguage = merchantNameAlternateLanguage;
}
public String getMerchantCityAlternateLanguage() {
return merchantCityAlternateLanguage;
}
public void setMerchantCityAlternateLanguage(String merchantCityAlternateLanguage) {
this.merchantCityAlternateLanguage = merchantCityAlternateLanguage;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy