Skip to content

Commit

Permalink
Refactored receipt endpoint method names to a more standardized version
Browse files Browse the repository at this point in the history
  • Loading branch information
fkrauthan-hyperwallet committed Jul 25, 2016
1 parent 20ab438 commit 97924f0
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 47 deletions.
18 changes: 9 additions & 9 deletions src/main/java/com/hyperwallet/clientsdk/Hyperwallet.java
Original file line number Diff line number Diff line change
Expand Up @@ -760,8 +760,8 @@ public HyperwalletList<HyperwalletTransferMethodConfiguration> listTransferMetho
* @param accountToken Program account token
* @return HyperwalletList of HyperwalletReceipt
*/
public HyperwalletList<HyperwalletReceipt> listProgramAccountReceipts(String programToken, String accountToken) {
return listProgramAccountReceipts(programToken, accountToken, null);
public HyperwalletList<HyperwalletReceipt> listReceiptsForProgramAccount(String programToken, String accountToken) {
return listReceiptsForProgramAccount(programToken, accountToken, null);
}

/**
Expand All @@ -772,7 +772,7 @@ public HyperwalletList<HyperwalletReceipt> listProgramAccountReceipts(String pro
* @param options List filter options
* @return HyperwalletList of HyperwalletReceipt
*/
public HyperwalletList<HyperwalletReceipt> listProgramAccountReceipts(String programToken, String accountToken, HyperwalletReceiptPaginationOptions options) {
public HyperwalletList<HyperwalletReceipt> listReceiptsForProgramAccount(String programToken, String accountToken, HyperwalletReceiptPaginationOptions options) {
if (StringUtils.isEmpty(programToken)) {
throw new HyperwalletException("Program token is required");
}
Expand All @@ -793,8 +793,8 @@ public HyperwalletList<HyperwalletReceipt> listProgramAccountReceipts(String pro
* @param userToken User token
* @return HyperwalletList of HyperwalletReceipt
*/
public HyperwalletList<HyperwalletReceipt> listUserReceipts(String userToken) {
return listUserReceipts(userToken, null);
public HyperwalletList<HyperwalletReceipt> listReceiptsForUser(String userToken) {
return listReceiptsForUser(userToken, null);
}

/**
Expand All @@ -804,7 +804,7 @@ public HyperwalletList<HyperwalletReceipt> listUserReceipts(String userToken) {
* @param options List filter options
* @return HyperwalletList of HyperwalletReceipt
*/
public HyperwalletList<HyperwalletReceipt> listUserReceipts(String userToken, HyperwalletReceiptPaginationOptions options) {
public HyperwalletList<HyperwalletReceipt> listReceiptsForUser(String userToken, HyperwalletReceiptPaginationOptions options) {
if (StringUtils.isEmpty(userToken)) {
throw new HyperwalletException("User token is required");
}
Expand All @@ -823,8 +823,8 @@ public HyperwalletList<HyperwalletReceipt> listUserReceipts(String userToken, Hy
* @param prepaidCardToken Prepaid card token
* @return HyperwalletList of HyperwalletReceipt
*/
public HyperwalletList<HyperwalletReceipt> listPrepaidCardReceipts(String userToken, String prepaidCardToken) {
return listPrepaidCardReceipts(userToken, prepaidCardToken, null);
public HyperwalletList<HyperwalletReceipt> listReceiptsForPrepaidCard(String userToken, String prepaidCardToken) {
return listReceiptsForPrepaidCard(userToken, prepaidCardToken, null);
}

/**
Expand All @@ -835,7 +835,7 @@ public HyperwalletList<HyperwalletReceipt> listPrepaidCardReceipts(String userTo
* @param options List filter options
* @return HyperwalletList of HyperwalletReceipt
*/
public HyperwalletList<HyperwalletReceipt> listPrepaidCardReceipts(String userToken, String prepaidCardToken, HyperwalletReceiptPaginationOptions options) {
public HyperwalletList<HyperwalletReceipt> listReceiptsForPrepaidCard(String userToken, String prepaidCardToken, HyperwalletReceiptPaginationOptions options) {
if (StringUtils.isEmpty(userToken)) {
throw new HyperwalletException("User token is required");
}
Expand Down

0 comments on commit 97924f0

Please sign in to comment.