Skip to content

Commit

Permalink
Add mobile banking scb to 2.7.8 for omise-ui lib dependency (#124)
Browse files Browse the repository at this point in the history
* add mobile banking

* indent fix

Co-authored-by: ponpol <[email protected]>
  • Loading branch information
tookaa2 and ponpol authored Dec 18, 2020
1 parent 2898586 commit 33b64b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/co/omise/models/SourceType.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ public enum SourceType {
InternetBankingScb,
@JsonProperty("internet_banking_bbl")
InternetBankingBbl,
@JsonProperty("mobile_banking_scb")
MobileBankingScb,
@JsonProperty("alipay")
Alipay,
@JsonProperty("bill_payment_tesco_lotus")
Expand All @@ -34,6 +36,8 @@ public String toString() {
return "internet_banking_scb";
case InternetBankingBbl:
return "internet_banking_bbl";
case MobileBankingScb:
return "mobile_banking_scb";
case BillPaymentTescoLotus:
return "bill_payment_tesco_lotus";
case Alipay:
Expand Down
1 change: 1 addition & 0 deletions src/test/java/co/omise/models/SourceTypeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public void checkStringValue() {
assertEquals("internet_banking_ktb", SourceType.InternetBankingKtb.toString());
assertEquals("internet_banking_bbl", SourceType.InternetBankingBbl.toString());
assertEquals("internet_banking_scb", SourceType.InternetBankingScb.toString());
assertEquals("mobile_banking_scb", SourceType.MobileBankingScb.toString());
assertEquals("bill_payment_tesco_lotus", SourceType.BillPaymentTescoLotus.toString());
assertEquals("alipay", SourceType.Alipay.toString());
assertEquals("barcode_alipay", SourceType.BarcodeAlipay.toString());
Expand Down

0 comments on commit 33b64b3

Please sign in to comment.