Skip to content

Conversation

@vkorotchenko
Copy link
Contributor

We need to add the transfer methods endpoint to support the widget use case (it is important to support the json cache token and overriding of any transfer method field). We just need to support creation!

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.4%) to 99.626% when pulling 88dcbc7 on feature/create-transfer-method-endpoint into 20c86c5 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) to 99.925% when pulling 579e5c3 on feature/create-transfer-method-endpoint into 20c86c5 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) to 99.963% when pulling 0a4dfeb on feature/create-transfer-method-endpoint into 20c86c5 on master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 0dcf236 on feature/create-transfer-method-endpoint into 20c86c5 on master.

Copy link
Contributor

@peter-joseph peter-joseph left a comment

Choose a reason for hiding this comment

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

Done with review. Please take a look on my code review comments.


HashMap<String, String> headers = new HashMap<String, String>();
headers.put("Json-Cache-Token", jsonCacheToken);

Copy link
Contributor

Choose a reason for hiding this comment

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

give space before and after +

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
Contributor

Choose a reason for hiding this comment

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

I think to all + sign to make it balance.

throw new HyperwalletException("JSON token is required");
}

HyperwalletTransferMethod transferMethod = new HyperwalletTransferMethod();
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we cannot create TransferMethod without Type? i.e. PREPAID_CARD, BANK_ACCOUNT, WIRE_ACCOUNT or PAPER_CHECK

Copy link
Contributor Author

Choose a reason for hiding this comment

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

if that is the case we should either not provide this method, or have a default value.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yep this method for me should be removed since even if we set a default but in this context we cannot know for sure what are the users available transfer methods or the concept of default transfer method to a specific user given only the user token, please also confirm with @fkrauthan-hyperwallet thanks.


HashMap<String, String> headers = new HashMap<String, String>();
headers.put("Json-Cache-Token", jsonCacheToken);

Copy link
Contributor

Choose a reason for hiding this comment

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

give space before and after +

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
Contributor

Choose a reason for hiding this comment

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

I think to all + sign to make it balance.

}
if (StringUtils.isEmpty(jsonCacheToken)) {
throw new HyperwalletException("JSON token is required");
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need to check if transfer method type is set or we rely on service validators?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

according to the documentation i was following you are correct.
https://confluence.site1.hyperwallet.local/pages/viewpage.action?pageId=22299508

the other SDKs seem to handle it at the service level.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 0832584 on feature/create-transfer-method-endpoint into 20c86c5 on master.

@peter-joseph
Copy link
Contributor

Looks good...

@peter-joseph peter-joseph merged commit ed5158c into master Nov 26, 2016
@peter-joseph peter-joseph deleted the feature/create-transfer-method-endpoint branch November 26, 2016 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants