From 8ab448b44d3637981f4d93e568e3d6218614678c Mon Sep 17 00:00:00 2001 From: SuelenGC Date: Thu, 28 Sep 2017 14:11:52 -0300 Subject: [PATCH 1/4] feat(bank_account_check_number) Added accountCheckNumber property to BankAccount --- src/main/java/br/com/moip/resource/BankAccount.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/br/com/moip/resource/BankAccount.java b/src/main/java/br/com/moip/resource/BankAccount.java index 712dc94..54debf9 100644 --- a/src/main/java/br/com/moip/resource/BankAccount.java +++ b/src/main/java/br/com/moip/resource/BankAccount.java @@ -10,6 +10,7 @@ public class BankAccount { private String bankName; private String bankNumber; private String accountNumber; + private String accountCheckNumber; private Holder holder; private Type type; private String status; @@ -40,6 +41,10 @@ public String getAccountNumber() { return accountNumber; } + public String getAccountCheckNumber() { + return accountCheckNumber; + } + public Holder getHolder() { return holder; } @@ -88,4 +93,4 @@ public String toString() { ", _links=" + links + '}'; } -} +} \ No newline at end of file From 29fc77ac385b8db1ce4fc02ea194004bb8b8cecf Mon Sep 17 00:00:00 2001 From: Caio Gaspar Date: Thu, 28 Sep 2017 15:03:26 -0300 Subject: [PATCH 2/4] refactor(BankAccount): change 'toString' method --- .../br/com/moip/resource/BankAccount.java | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/main/java/br/com/moip/resource/BankAccount.java b/src/main/java/br/com/moip/resource/BankAccount.java index 54debf9..f1aeba4 100644 --- a/src/main/java/br/com/moip/resource/BankAccount.java +++ b/src/main/java/br/com/moip/resource/BankAccount.java @@ -79,18 +79,19 @@ private enum Type { @Override public String toString() { - return "BankAccount{" + - "id='" + id + '\'' + - ", agencyNumber='" + agencyNumber + '\'' + - ", agencyCheckNumber='" + agencyCheckNumber + '\'' + - ", bankName='" + bankName + '\'' + - ", bankNumber='" + bankNumber + '\'' + - ", accountNumber='" + accountNumber + '\'' + - ", holder=" + holder + - ", type=" + type + - ", status='" + status + '\'' + - ", createdAt=" + createdAt + - ", _links=" + links + - '}'; + return new StringBuilder("BankAccount{") + .append("id='").append(id).append('\'') + .append(", agencyNumber='").append(agencyNumber).append('\'') + .append(", agencyCheckNumber='").append(agencyCheckNumber).append('\'') + .append(", bankName='").append(bankName).append('\'') + .append(", bankNumber='").append(bankNumber).append('\'') + .append(", accountNumber='").append(accountNumber).append('\'') + .append(", accountCheckNumber='").append(accountCheckNumber).append('\'') + .append(", holder=").append(holder) + .append(", type=").append(type) + .append(", status='").append(status).append('\'') + .append(", createdAt=").append(createdAt) + .append(", _links=").append(links) + .append('}').toString(); } } \ No newline at end of file From 679dcc597e7412c75dcbda1ab56955e5d4ff2efb Mon Sep 17 00:00:00 2001 From: Caio Gaspar Date: Thu, 28 Sep 2017 15:34:37 -0300 Subject: [PATCH 3/4] chore: release v3.2.0 --- CHANGELOG.md | 18 +++++++++++++----- README.md | 2 +- build.gradle | 2 +- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 65bb45d..c32f1c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,18 +1,26 @@ + +# [](https://github.com/moip/moip-sdk-java/compare/v3.1.0...v3.2.0) (2017-09-28) + +### Features + +* **BankAccount:** Added accountCheckNumber property to BankAccount([8ab448b](https://github.com/moip/moip-sdk-java/commit/8ab448b)) + + -# [](https://github.com/caiogaspar/moip-sdk-java/compare/v3.0.0...v3.1.0) (2017-09-18) +# [](https://github.com/moip/moip-sdk-java/compare/v3.0.0...v3.1.0) (2017-09-18) ### Bug Fixes -* **ConnectAPI:** Fix a bug in method to generate authorize URL ([851aa2a](https://github.com/caiogaspar/moip-sdk-java/commit/851aa2a)) +* **ConnectAPI:** Fix a bug in method to generate authorize URL ([851aa2a](https://github.com/moip/moip-sdk-java/commit/851aa2a)) ### Features -* Create structure to HATEOAS links in Payment and fix toString methods to some Link Resources ([cf6c46f](https://github.com/caiogaspar/moip-sdk-java/commit/cf6c46f)) - +* Create structure to HATEOAS links in Payment a -# [3.0.0](https://github.com/moip/moip-sdk-java/compare/v2.0.0-RC6...v3.0.0) (2017-09-11) +# [3.0.0](https://github.com/moip/moip-sdk-java/compare/v2.0.0-RC6...v3.0.0) (201nd fix toString methods to some Link Resources ([cf6c46f](https://github.com/moip/moip-sdk-java/commit/cf6c46f)) +7-09-11) ### Bug Fixes diff --git a/README.md b/README.md index 5477f6c..0e9963e 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ Adicionar no seu pom.xml: br.com.moip java-sdk - 3.1.0 + 3.2.0 ``` diff --git a/build.gradle b/build.gradle index e3f01e1..9ac0dd9 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ apply plugin: 'signing' group = 'br.com.moip' archivesBaseName = "java-sdk" -version = '3.1.0' +version = '3.2.0' description = "Moip v2 SDK" From f0d8ce294cd8957d537ce953b4f6e31659eb0b58 Mon Sep 17 00:00:00 2001 From: Caio Gaspar Date: Thu, 28 Sep 2017 15:38:08 -0300 Subject: [PATCH 4/4] docs: Fix changelog --- CHANGELOG.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c32f1c7..beb6138 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,11 +16,11 @@ ### Features -* Create structure to HATEOAS links in Payment a +* Create structure to HATEOAS links in Payment and fix toString methods to some Link Resources ([cf6c46f](https://github.com/caiogaspar/moip-sdk-java/commit/cf6c46f)) + -# [3.0.0](https://github.com/moip/moip-sdk-java/compare/v2.0.0-RC6...v3.0.0) (201nd fix toString methods to some Link Resources ([cf6c46f](https://github.com/moip/moip-sdk-java/commit/cf6c46f)) -7-09-11) +# [3.0.0](https://github.com/moip/moip-sdk-java/compare/v2.0.0-RC6...v3.0.0) (2017-09-11) ### Bug Fixes