-
Notifications
You must be signed in to change notification settings - Fork 32
HW-57146 java sdk for transfer refunds #44
HW-57146 java sdk for transfer refunds #44
Conversation
assertThat(returnValue.getStatus(), is(Status.COMPLETED)); | ||
assertThat(returnValue.getClientRefundId(), is("1573548663")); | ||
assertThat(returnValue.getSourceToken(), is("act-ba4e8fdd-614b-11e5-af23-0faa28ca7c0f")); | ||
assertThat(returnValue.getSourceAmount(), is(50.0)); | ||
assertThat(returnValue.getSourceCurrency(), is("USD")); | ||
assertThat(returnValue.getDestinationToken(), is("usr-3deb34a0-ffd1-487d-8860-6d69435cea6c")); | ||
assertThat(returnValue.getDestinationAmount(), is(50.0)); | ||
assertThat(returnValue.getDestinationCurrency(), is("USD")); | ||
assertThat(returnValue.getNotes(), is("Merchant Payment return to Wallet Balance")); | ||
assertThat(returnValue.getMemo(), is("TransferReturn123456")); | ||
assertThat(returnValue.getCreatedOn(), is(dateFormat.parse("2019-11-12T11:51:05 UTC"))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to extract this to a common re-usable method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
assertThat(e.getErrorCode(), is(nullValue())); | ||
assertThat(e.getResponse(), is(nullValue())); | ||
assertThat(e.getErrorMessage(), is(equalTo("Transfer Refund is required"))); | ||
assertThat(e.getMessage(), is(equalTo("Transfer Refund is required"))); | ||
assertThat(e.getHyperwalletErrors(), is(nullValue())); | ||
assertThat(e.getRelatedResources(), is(nullValue())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same with this, is it possible to extract this to a common re-usable method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
…/HW-57146_java_sdk_for_transfer_refunds
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.