-
Notifications
You must be signed in to change notification settings - Fork 32
HW-51698 add paypal account status transitions java #47
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
HW-51698 add paypal account status transitions java #47
Conversation
transition.setCreatedOn(null); | ||
transition.setFromStatus(null); | ||
transition.setToStatus(null); | ||
return apiClient.post(url + "/users/" + userToken + "/PayPal-accounts/" + payPalAccountToken + "/status-transitions", transition, HyperwalletStatusTransition.class); |
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.
why do we need upper case in url, instead of "/paypal-accounts/"
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.
I was confused with incorrect example, I have already corrected it
} | ||
|
||
@Test | ||
public void testDeactivatePayPalAccountStatusTransition_noPaperCheckToken() throws Exception { |
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.
noPayPalAccountToken
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.
corrected
* Deactivate a PayPal Account | ||
* | ||
* @param userToken User token | ||
* @param payPalAccountToken PayPal Account token |
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.
@param notes is missing here
* | ||
* @param userToken User token | ||
* @param payPalAccountToken PayPal Account token | ||
* @return The status transition |
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.
@return HyperwalletStatusTransition deactivated PayPal account
} | ||
|
||
@Test | ||
public void testCreatePayPalAccountStatusTransition_noPaperCheckToken() { |
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.
_noPayPalAccountToken
} | ||
|
||
@Test | ||
public void testGetPayPalAccountStatusTransition_noPaperCheckToken() { |
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.
_noPayPalAccountToken
} | ||
|
||
@Test | ||
public void testListPayPalAccountStatusTransitions_noParameters_noPaperCheckToken() throws Exception { |
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.
_noPayPalAccountToken
} | ||
|
||
@Test | ||
public void testListPayPalAccountStatusTransitions_withParameters_noPaperCheckToken() throws Exception { |
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.
_noPayPalAccountToken
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.
Fixed everything. Thank you a lot!
https://jira.site1.hyperwallet.local/browse/HW-51698