From 33b64b327d3bc72cc47f0020478dab3a577c6db3 Mon Sep 17 00:00:00 2001 From: tookaa2 Date: Fri, 18 Dec 2020 17:15:27 +0700 Subject: [PATCH] Add mobile banking scb to 2.7.8 for omise-ui lib dependency (#124) * add mobile banking * indent fix Co-authored-by: ponpol --- src/main/java/co/omise/models/SourceType.java | 4 ++++ src/test/java/co/omise/models/SourceTypeTest.java | 1 + 2 files changed, 5 insertions(+) diff --git a/src/main/java/co/omise/models/SourceType.java b/src/main/java/co/omise/models/SourceType.java index a58036ef..bce06539 100644 --- a/src/main/java/co/omise/models/SourceType.java +++ b/src/main/java/co/omise/models/SourceType.java @@ -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") @@ -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: diff --git a/src/test/java/co/omise/models/SourceTypeTest.java b/src/test/java/co/omise/models/SourceTypeTest.java index c07d0d3c..55be821b 100644 --- a/src/test/java/co/omise/models/SourceTypeTest.java +++ b/src/test/java/co/omise/models/SourceTypeTest.java @@ -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());