Skip to content

Commit

Permalink
Add Installment UOB and Installment TTB source types (#143)
Browse files Browse the repository at this point in the history
* added

* release files

* added tests
  • Loading branch information
kan98 authored Sep 16, 2022
1 parent df451d4 commit 6af71b7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CHANGE LOG

## v4.2.0

* **NEW** Added `Installment UOB` and `Installment TTB` source types (#141)
* **REMOVED** `Installment Citi`

## v4.1.0

* **NEW** Added `Mobile Banking Bay`, `Mobile Banking BBL`, `Mobile Banking KBank` and `Mobile Banking OCBC PAO` source types (#141)
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'com.github.ben-manes.versions'

group 'co.omise'
version '4.1.0'
version '4.2.0'

sourceCompatibility = 1.8
targetCompatibility = 1.8
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/co/omise/models/SourceType.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ public enum SourceType {
InstallmentKtc,
@JsonProperty("installment_scb")
InstallmentScb,
@JsonProperty("installment_citi")
InstallmentCiti,
@JsonProperty("installment_uob")
InstallmentUob,
@JsonProperty("installment_ttb")
InstallmentTtb,
@JsonProperty("internet_banking_bay")
InternetBankingBay,
@JsonProperty("internet_banking_bbl")
Expand Down
2 changes: 2 additions & 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,8 @@ 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("installment_uob", SourceType.InstallmentUob.toString());
assertEquals("installment_ttb", SourceType.InstallmentTtb.toString());
assertEquals("mobile_banking_bay", SourceType.MobileBankingBay.toString());
assertEquals("mobile_banking_bbl", SourceType.MobileBankingBbl.toString());
assertEquals("mobile_banking_kbank", SourceType.MobileBankingKbank.toString());
Expand Down

0 comments on commit 6af71b7

Please sign in to comment.