From 86dc232ad67f90a3cb15fc2611c1c96f75888611 Mon Sep 17 00:00:00 2001 From: nonz250 Date: Tue, 14 Apr 2026 14:27:53 +0900 Subject: [PATCH 1/5] feat(card): add isJp property to Card model MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/main/java/jp/pay/model/Card.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/jp/pay/model/Card.java b/src/main/java/jp/pay/model/Card.java index 488ae14..88a6c1b 100644 --- a/src/main/java/jp/pay/model/Card.java +++ b/src/main/java/jp/pay/model/Card.java @@ -54,6 +54,7 @@ public class Card extends ExternalAccount implements MetadataStore { String email; String phone; String threeDSecureStatus; + Boolean isJp; public Card update(Map params) throws AuthenticationException, InvalidRequestException, @@ -206,4 +207,8 @@ public String getThreeDSecureStatus() { return threeDSecureStatus; } + public Boolean getIsJp() { + return isJp; + } + } From 2ca063b52a0c34d2d968dcac305fc5c6eb78f22c Mon Sep 17 00:00:00 2001 From: nonz250 Date: Tue, 14 Apr 2026 14:28:01 +0900 Subject: [PATCH 2/5] test(card): add isJp deserialization tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/test/java/jp/pay/model/ChargeTest.java | 1 + src/test/java/jp/pay/model/TokenTest.java | 1 + src/test/resources/jp/pay/model/charge.json | 3 ++- src/test/resources/jp/pay/model/token.json | 3 ++- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/test/java/jp/pay/model/ChargeTest.java b/src/test/java/jp/pay/model/ChargeTest.java index 9321cc1..2107ef5 100644 --- a/src/test/java/jp/pay/model/ChargeTest.java +++ b/src/test/java/jp/pay/model/ChargeTest.java @@ -107,6 +107,7 @@ public void testDeserialize() throws PayjpException, IOException { assertEquals("liveaccount@example.com", ca.getEmail()); assertEquals("+81301234567", ca.getPhone()); assertNull(ca.getThreeDSecureStatus()); + assertTrue(ca.getIsJp()); assertEquals("Visa", ca.getBrand()); } diff --git a/src/test/java/jp/pay/model/TokenTest.java b/src/test/java/jp/pay/model/TokenTest.java index f34fa18..81fa3e7 100644 --- a/src/test/java/jp/pay/model/TokenTest.java +++ b/src/test/java/jp/pay/model/TokenTest.java @@ -47,6 +47,7 @@ public void testDeserialize() throws PayjpException, IOException { assertEquals(Boolean.FALSE, token.getLivemode()); assertEquals(Boolean.FALSE, token.getUsed()); assertEquals("card", token.getCard().getObject()); + assertEquals(Boolean.FALSE, token.getCard().getIsJp()); } @Test diff --git a/src/test/resources/jp/pay/model/charge.json b/src/test/resources/jp/pay/model/charge.json index 7331be4..1d239bd 100755 --- a/src/test/resources/jp/pay/model/charge.json +++ b/src/test/resources/jp/pay/model/charge.json @@ -24,7 +24,8 @@ "object": "card", "email": "liveaccount@example.com", "phone": "+81301234567", - "three_d_secure_status": null + "three_d_secure_status": null, + "is_jp": true }, "created": 1578372537, "currency": "jpy", diff --git a/src/test/resources/jp/pay/model/token.json b/src/test/resources/jp/pay/model/token.json index da53f87..3be10c7 100755 --- a/src/test/resources/jp/pay/model/token.json +++ b/src/test/resources/jp/pay/model/token.json @@ -22,7 +22,8 @@ "object": "card", "three_d_secure_status": "verified", "email": "liveaccount@example.com", - "phone": "+81301234567" + "phone": "+81301234567", + "is_jp": false }, "created": 1442290383, "id": "tok_5ca06b51685e001723a2c3b4aeb4", From 3b7a08889c7966b0736d9ce9f7906150ccdf4f81 Mon Sep 17 00:00:00 2001 From: nonz250 Date: Tue, 14 Apr 2026 14:39:44 +0900 Subject: [PATCH 3/5] feat: update gitignore. --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index bb3441c..30bb4db 100755 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ target .idea *.iml +.claude/*.local.* \ No newline at end of file From 6a3be4e3b2a5da68cf5d376ca21fd9a8a98b98a1 Mon Sep 17 00:00:00 2001 From: nonz250 Date: Tue, 14 Apr 2026 14:42:05 +0900 Subject: [PATCH 4/5] chore: bump version to 0.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 85beaec..5ed1b9a 100755 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ jp.pay payjp-java jar - 0.8.0 + 0.9.0 pay-java https://github.com/payjp/payjp-java From f91510c1af3500db95de2912110401c793495630 Mon Sep 17 00:00:00 2001 From: nonz250 Date: Tue, 14 Apr 2026 14:43:23 +0900 Subject: [PATCH 5/5] chore: bump version references to 0.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- README.md | 4 ++-- VERSION | 2 +- src/main/java/jp/pay/Payjp.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0e3f2fd..fd1aa6b 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Add this dependency to your project's POM: jp.pay payjp-java - 0.8.0 + 0.9.0 ``` @@ -27,7 +27,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "jp.pay:payjp-java:0.8.0" +compile "jp.pay:payjp-java:0.9.0" ``` ### Others diff --git a/VERSION b/VERSION index a3df0a6..ac39a10 100755 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.8.0 +0.9.0 diff --git a/src/main/java/jp/pay/Payjp.java b/src/main/java/jp/pay/Payjp.java index 732d9bb..9c5065b 100644 --- a/src/main/java/jp/pay/Payjp.java +++ b/src/main/java/jp/pay/Payjp.java @@ -25,7 +25,7 @@ public abstract class Payjp { public static final String LIVE_API_BASE = "https://api.pay.jp"; - public static final String VERSION = "0.8.0"; + public static final String VERSION = "0.9.0"; public static volatile String apiKey; public static volatile String apiVersion; public static volatile Integer maxRetry = 0;