Skip to content

Commit

Permalink
Merge pull request #66 from pokepay/feature/update-createbankpay
Browse files Browse the repository at this point in the history
createBankPay: Add `kana` to params and `paytreeCustomerNumber` to response
  • Loading branch information
DanRidh authored Oct 6, 2023
2 parents cc6f767 + bbfaf11 commit d6c6734
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pokepaylib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ android {
minSdkVersion 26
targetSdkVersion 32
versionCode 0
versionName "2.0.8"
versionName "2.0.9"

testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'

Expand Down Expand Up @@ -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/") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -38,6 +40,10 @@ protected final Map<String, Object> parameters() {
return new HashMap<String, Object>() {{
put("callback_url", callbackUrl);
put("private_money_id", privateMoneyId);

if (kana != null) {
put("kana", kana);
}
}};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
public class BankPayRedirectUrl extends Response {
@NonNull
public String redirectUrl;
public String paytreeCustomerNumber;
}

0 comments on commit d6c6734

Please sign in to comment.