-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a8fb17a
commit c85c7ad
Showing
2 changed files
with
33 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
package com.razorpay; | ||
|
||
import org.json.JSONException; | ||
|
||
import java.io.IOException; | ||
import java.net.URISyntaxException; | ||
|
||
public class CardClient extends ApiClient { | ||
|
||
CardClient(String auth) { | ||
super(auth); | ||
CardClient(String auth, ApiUtils apiUtils) { | ||
super(auth,apiUtils); | ||
} | ||
|
||
public Card fetch(String id) throws RazorpayException { | ||
public Card fetch(String id) throws RazorpayException, JSONException, IOException, URISyntaxException { | ||
return get(String.format(Constants.CARD_GET, id), null); | ||
} | ||
|
||
public Card fetchCardDetails(String id) throws RazorpayException{ | ||
public Card fetchCardDetails(String id) throws RazorpayException, JSONException, IOException, URISyntaxException { | ||
return get(String.format(Constants.FETCH_CARD_DETAILS, id), null); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters