-
Notifications
You must be signed in to change notification settings - Fork 34
added StakeHolder-Upload-Multi-Part-Document #48
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
added StakeHolder-Upload-Multi-Part-Document #48
Conversation
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.
Please make the changes.
$this->assertEquals('businessToken is required!', $e->getMessage()); | ||
} | ||
} | ||
public function testuploadDocumentsForBusinessUser() { |
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.
Please indicate if this is for 'success scenario' or 'with all parameters'
src/Hyperwallet/Hyperwallet.php
Outdated
@@ -2079,5 +2080,104 @@ public function listVenmoAccountStatusTransitions($userToken, $venmoAccountToken | |||
return new VenmoAccountStatusTransition($entry); | |||
}); | |||
} | |||
/** | |||
* Upload documents for user endpoint |
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.
Please change the name of the model to BusinessStakeholder
Also, please update the comment for Business Stakeholder
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.
Pls fix the one comment.
src/Hyperwallet/Hyperwallet.php
Outdated
if (empty($businessToken)) { | ||
throw new HyperwalletArgumentException('businessToken is required!'); | ||
} | ||
$body = $this->client->putMultipartData('/rest/v4/users/{user-token}/business-stakeholders/{business-stakeholders}', array('user-token' => $userToken,'business-stakeholders' => $businessToken), $options); |
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.
{business-stakeholders} can be renamed.
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.
Reviewed the changes. Ready to be reviewed by Peter.
i have added stakeholder upload multi part documents