From 66676ced6638436bc21758be616c8e8defaeb7f4 Mon Sep 17 00:00:00 2001 From: DanRidh Date: Thu, 5 Oct 2023 13:47:44 +0900 Subject: [PATCH 1/2] add kana to createBankPay params and paytreeCustomerNumber to response --- .../jp/pokepay/pokepaylib/BankAPI/User/CreateBankPay.java | 8 +++++++- .../pokepay/pokepaylib/Responses/BankPayRedirectUrl.java | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/User/CreateBankPay.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/User/CreateBankPay.java index ef37f41..e2d1eef 100644 --- a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/User/CreateBankPay.java +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/User/CreateBankPay.java @@ -18,11 +18,13 @@ public class CreateBankPay extends BankRequest { public String callbackUrl; @NonNull public String privateMoneyId; + public String kana; - public CreateBankPay(@NonNull String id, String callbackUrl, String privateMoneyId) { + public CreateBankPay(@NonNull String id, @NonNull String callbackUrl, @NonNull String privateMoneyId, String kana) { this.id = id; this.callbackUrl = callbackUrl; this.privateMoneyId = privateMoneyId; + this.kana = kana; } protected final String path() { @@ -38,6 +40,10 @@ protected final Map parameters() { return new HashMap() {{ put("callback_url", callbackUrl); put("private_money_id", privateMoneyId); + + if (kana != null) { + put("kana", kana); + } }}; } diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/Responses/BankPayRedirectUrl.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/Responses/BankPayRedirectUrl.java index 5973d5f..e6cfd2f 100644 --- a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/Responses/BankPayRedirectUrl.java +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/Responses/BankPayRedirectUrl.java @@ -7,4 +7,5 @@ public class BankPayRedirectUrl extends Response { @NonNull public String redirectUrl; + public String paytreeCustomerNumber; } From bbfaf116912560847f5be7542ad6c1deb0de8ca4 Mon Sep 17 00:00:00 2001 From: DanRidh Date: Fri, 6 Oct 2023 11:05:15 +0900 Subject: [PATCH 2/2] update version to 2.0.9 --- pokepaylib/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pokepaylib/build.gradle b/pokepaylib/build.gradle index 733636f..012a9de 100644 --- a/pokepaylib/build.gradle +++ b/pokepaylib/build.gradle @@ -16,7 +16,7 @@ android { minSdkVersion 26 targetSdkVersion 32 versionCode 0 - versionName "2.0.8" + versionName "2.0.9" testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner' @@ -65,7 +65,7 @@ uploadArchives { repositories { mavenDeployer { repository url: "file://${repo.absolutePath}" - pom.version = '2.0.8' // version + pom.version = '2.0.9' // version beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } repository(url: "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/") {