Skip to content

Commit 9ef19db

Browse files
committed
adds support for apiKey-less calls in obth closeDispute and updateDispute
1 parent 6c75e2f commit 9ef19db

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/main/java/com/stripe/model/Charge.java

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,18 @@ public Charge capture() throws AuthenticationException,
213213
return this.capture(null, null);
214214
}
215215

216+
public Dispute updateDispute(Map<String, Object> params)
217+
throws AuthenticationException, InvalidRequestException,
218+
APIConnectionException, CardException, APIException {
219+
return this.updateDispute(params, null)
220+
}
221+
222+
public Dispute closeDispute() throws AuthenticationException,
223+
InvalidRequestException, APIConnectionException, CardException,
224+
APIException {
225+
return this.closeDispute(null);
226+
}
227+
216228
public Charge refund(Map<String, Object> params)
217229
throws AuthenticationException, InvalidRequestException,
218230
APIConnectionException, CardException, APIException {
@@ -292,7 +304,7 @@ public Dispute closeDispute(String apiKey)
292304
APIConnectionException, CardException, APIException {
293305
return request(
294306
RequestMethod.POST,
295-
String.format("%s/dispute/close", instanceURL(Charge.class, this.id)),
307+
String.format("%s/dispute/close", instanceURL(Charge.class, this.getId())),
296308
null, Dispute.class, apiKey);
297309
}
298310
}

0 commit comments

Comments
 (0)