Skip to content

Conversation

Rrathinasabapath
Copy link
Contributor

Please verify and approve this PR for the following change:

  • Made changes to Hyperwallet to accommodate the search criterion clientUserId for ListUser method

@coveralls
Copy link

coveralls commented Apr 9, 2021

Coverage Status

Coverage increased (+0.01%) to 98.161% when pulling 75eb8f1 on V3-missing-clientUserId-filter into b2f3567 on support/SDK-V3.

@@ -0,0 +1,3 @@
curl -X "GET" "https://api.sandbox.hyperwallet.com/rest/v3/users" \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls add some query parameters for filtering options here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed before this couldnt be done as testing dynamically with query parameters is not feasible in the current mock test setup.

@@ -0,0 +1,22 @@
package com.hyperwallet.clientsdk.model;

import java.util.Date;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls remove this unused import

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -1334,7 +1376,7 @@ public void uploadUserDocuments_invalidDocumentStatus() throws Exception {

//
// Transfer Refunds
//
//f
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

assertThat(userOne.getCreatedOn(), is(equalTo(dateFormat.parse("2019-10-30T22:15:35 UTC"))));
assertThat(userOne.getStatus(), is(equalTo(HyperwalletUser.Status.PRE_ACTIVATED)));
assertThat(userOne.getVerificationStatus(), is(equalTo(HyperwalletUser.VerificationStatus.NOT_REQUIRED)));
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls add assert statement for the 2nd index as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -0,0 +1,80 @@
package com.hyperwallet.clientsdk.model;

import java.util.Date;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls remove this unused import

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

mockServer.verify(parseRequest(functionality));
throw e;
}
assertThat(returnValue.getCount(), is(equalTo(2)));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls add assert statement for the 2nd index as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Collaborator

@ramahalingam ramahalingam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls remove all the .DS_store files from this PR.

…element in the users list, deleted .DS_store files
@jportner-hw jportner-hw removed their request for review April 27, 2021 20:44
@arao6 arao6 requested review from peter-joseph and vkorotchenko May 4, 2021 05:31
@@ -0,0 +1,78 @@
package com.hyperwallet.clientsdk.model;

public class HyperwalletUsersListPaginationOptions extends HyperwalletPaginationOptions{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: is your formatter turned on? there should be a space between HyperwalletPaginationOptions and {

public void setProgramToken(String programToken) {
this.programToken = programToken;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: redundant newLine

@arao6 arao6 merged commit 1eadd90 into support/SDK-V3 May 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants