Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes for handling transfer refund in v4 endpoint #62

Merged
merged 15 commits into from
Sep 11, 2020

Conversation

ramahalingam
Copy link
Collaborator

No description provided.

@coveralls
Copy link

coveralls commented Sep 1, 2020

Coverage Status

Coverage increased (+0.02%) to 99.509% when pulling af4f238 on feature/HW-66626-V4-SDKTransferRefunds into f760d52 on V4.

…66626-V4-SDKTransferRefunds

# Conflicts:
#	src/test/java/com/hyperwallet/clientsdk/HyperwalletTest.java
* Get Transfer Refund
*
* @param transferToken Transfer token assigned
* @param transferRefundToken Transfer Refund token assigned
Copy link
Contributor

Choose a reason for hiding this comment

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

Pls remove extra spaces

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

private HyperwalletTransferRefund copy(HyperwalletTransferRefund transferRefund) {
transferRefund = HyperwalletJsonUtil.fromJson(HyperwalletJsonUtil.toJson(transferRefund), HyperwalletTransferRefund.class);
return transferRefund;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can be changed to: return HyperwalletJsonUtil.fromJson(HyperwalletJsonUtil.toJson(transferRefund), HyperwalletTransferRefund.class);

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

}

transferRefund = copy(transferRefund);
transferRefund.setStatus(null);
Copy link
Contributor

Choose a reason for hiding this comment

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

can we use the clearStatus() method here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changed as suggested.


transferRefund = copy(transferRefund);
transferRefund.setStatus(null);
transferRefund.setCreatedOn(null);
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changed as suggested.

@akalichety-hw akalichety-hw merged commit 0008f3a into V4 Sep 11, 2020
@peter-joseph peter-joseph deleted the feature/HW-66626-V4-SDKTransferRefunds branch September 15, 2020 01:31
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.

None yet

5 participants