Skip to content

Commit d6c6734

Browse files
authored
Merge pull request #66 from pokepay/feature/update-createbankpay
createBankPay: Add `kana` to params and `paytreeCustomerNumber` to response
2 parents cc6f767 + bbfaf11 commit d6c6734

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

pokepaylib/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ android {
1616
minSdkVersion 26
1717
targetSdkVersion 32
1818
versionCode 0
19-
versionName "2.0.8"
19+
versionName "2.0.9"
2020

2121
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
2222

@@ -65,7 +65,7 @@ uploadArchives {
6565
repositories {
6666
mavenDeployer {
6767
repository url: "file://${repo.absolutePath}"
68-
pom.version = '2.0.8' // version
68+
pom.version = '2.0.9' // version
6969
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
7070

7171
repository(url: "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/") {

pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/User/CreateBankPay.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ public class CreateBankPay extends BankRequest {
1818
public String callbackUrl;
1919
@NonNull
2020
public String privateMoneyId;
21+
public String kana;
2122

22-
public CreateBankPay(@NonNull String id, String callbackUrl, String privateMoneyId) {
23+
public CreateBankPay(@NonNull String id, @NonNull String callbackUrl, @NonNull String privateMoneyId, String kana) {
2324
this.id = id;
2425
this.callbackUrl = callbackUrl;
2526
this.privateMoneyId = privateMoneyId;
27+
this.kana = kana;
2628
}
2729

2830
protected final String path() {
@@ -38,6 +40,10 @@ protected final Map<String, Object> parameters() {
3840
return new HashMap<String, Object>() {{
3941
put("callback_url", callbackUrl);
4042
put("private_money_id", privateMoneyId);
43+
44+
if (kana != null) {
45+
put("kana", kana);
46+
}
4147
}};
4248
}
4349

pokepaylib/src/main/java/jp/pokepay/pokepaylib/Responses/BankPayRedirectUrl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
public class BankPayRedirectUrl extends Response {
88
@NonNull
99
public String redirectUrl;
10+
public String paytreeCustomerNumber;
1011
}

0 commit comments

Comments
 (0)