kh.gov.nbc.bakong_khqr.model.MerchantInformationLanguage 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.core.TagLengthString;
import kh.gov.nbc.bakong_khqr.utils.BakongKHQRUtils;
import java.io.Serializable;
import static kh.gov.nbc.bakong_khqr.model.KHQRMerchantPresentedCodes.*;
public class MerchantInformationLanguage implements Serializable {
private TagLengthString languagePreference;
private TagLengthString merchantName;
private TagLengthString merchantCity;
public void setLanguagePreference(String languagePreference) {
this.languagePreference = new TagLengthString(MERCHANT_INFORMATION_LANGUAGE_LANGUAGE_PREFERENCE, languagePreference);
}
public void setMerchantName(String merchantName) {
this.merchantName = new TagLengthString(MERCHANT_INFORMATION_LANGUAGE_MERCHANT_NAME, merchantName);
}
public void setMerchantCity(String merchantCity) {
this.merchantCity = new TagLengthString(MERCHANT_INFORMATION_LANGUAGE_MERCHANT_CITY, merchantCity);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(BakongKHQRUtils.ofNullable(languagePreference));
sb.append(BakongKHQRUtils.ofNullable(merchantName));
sb.append(BakongKHQRUtils.ofNullable(merchantCity));
return BakongKHQRUtils.ofNullable(sb);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy