Skip to content

Feature/hw 58097 v3 python sdk for transfer refunds#36

Merged
akalichety-hw merged 3 commits intoV3from
feature/HW-58097-V3-Python-SDK-for-Transfer-Refunds
Oct 5, 2020
Merged

Feature/hw 58097 v3 python sdk for transfer refunds#36
akalichety-hw merged 3 commits intoV3from
feature/HW-58097-V3-Python-SDK-for-Transfer-Refunds

Conversation

@madhankumar3103
Copy link
Copy Markdown
Contributor

Changes has been done for transfer refunds

Copy link
Copy Markdown
Contributor

@Rrathinasabapath Rrathinasabapath left a comment

Choose a reason for hiding this comment

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

Please make necessary changes

Comment thread hyperwallet/tests/test_api.py Outdated
'''

@mock.patch('hyperwallet.utils.ApiClient._makeRequest')
def test_transfer_refunds_success(self, mock_post):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please follow the convention of method names. This should be test_create_transfer_refund_successful. Dont forget to have the type of operation(Create/get/list/update) mentioned in the method's name.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

method name has been changed.

Upload Documents

'''
def test_uploadDocumentsForUser_fail_need_user_token(self):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It looks like that you added this method. Pls check. this doesn't look related to transfer refund.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

v3 merged code

Comment thread hyperwallet/tests/test_api.py Outdated
response = self.api.createTransferRefund('token',self.data)
self.assertTrue(response.token, self.data.get('token'))

def test_transfer_refunds_fail_need_payment_token(self):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please follow the convention of method names. This should be test_create_transfer_refund.... Dont forget to have the type of operation(Create/get/list/update) mentioned in the method's name.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

method name has been changed.

Comment thread hyperwallet/tests/test_api.py Outdated

self.assertEqual(exc.exception.message, 'transferToken is required')

def test_transfer_refunds_fail_need_data(self):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please follow the convention of method names. This should be test_create_transfer_refunds.... Dont forget to have the type of operation(Create/get/list/update) mentioned in the method's name.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

method name has been changed.

Comment thread hyperwallet/tests/test_api.py Outdated

'''

def test_transfer_spend_back_refunds_user_token(self):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please follow the convention of method names. This should be test_create_transfer_spend.... Dont forget to have the type of operation(Create/get/list/update) mentioned in the method's name.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

method name has been changed.

Comment thread hyperwallet/api.py
def __buildUrl(self, *paths):
return '/'.join(s.strip('/') for s in paths)

def uploadDocumentsForUser(self,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It looks like you have added this method. Pls check if there is any code duplication and find out why its appearing so.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

v3 merged code


return (data if data is None else self.encryption.encrypt(data)) if self.encrypted else data

def putDocument(self, partialUrl, data, files):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please verify if the method has been added by you or if there is any duplication.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

v3 merged code

@arao6
Copy link
Copy Markdown
Contributor

arao6 commented Sep 30, 2020

Please change the "branch to merge into" to V3 (not master).

@madhankumar3103 madhankumar3103 changed the base branch from master to V3 September 30, 2020 14:01
Copy link
Copy Markdown
Contributor

@Rrathinasabapath Rrathinasabapath left a comment

Choose a reason for hiding this comment

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

Reviewed changes. They can be reviewed by Peter.

@arao6
Copy link
Copy Markdown
Contributor

arao6 commented Oct 5, 2020

Madhan, the 'foreignExchanges' part need to be added to this.

@akalichety-hw akalichety-hw merged commit ea051af into V3 Oct 5, 2020
@arao6 arao6 deleted the feature/HW-58097-V3-Python-SDK-for-Transfer-Refunds branch February 1, 2021 23:29
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.

5 participants