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
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/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
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;
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;
+ }
+
}
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",