Skip to content
New issue

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

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

Already on GitHub? # to your account

split-pay Add AccountManagementService / transfer capability to SDK #1

Merged
merged 5 commits into from
Sep 1, 2017

Conversation

PayLeaseBrian
Copy link
Owner

@PayLeaseBrian PayLeaseBrian commented Aug 29, 2017

The goal of this PR is to add the capability to transfer funds among linked accounts to the paysafe SDK. As transfers are part of the Account Management API, this required adding Account Management to the SDK.

Highlights:

  • Add incomplete implementation of AccountManagementService
    • The AccountManagementService added in this PR only implements three methods:
      • monitor - verifies that account management api is active and responding
      • transferDebit - Move funds from the account identified in the API endpoint URI to the linked account in the body of the request
      • transferCredit - Move funds from the linked account in the body of the request to the account identified in the API endpoint URI.
  • Add new class Transfer that extends JSONObject
    • this new class is used as the value object for new transferDebit and transferCredit methods
  • Add PHPUnit tests for all of the above

jbPayLease and others added 4 commits August 29, 2017 14:33
Adding a new service to the SDK for Account Management. This commit
includes the functions ping, transferCredit, and transferDebit. Transfer
functions can be used to move money between PaySafe master and
sub-accounts. The ping function can be used to determine if the
Account Management service is available.
@PayLeaseBrian PayLeaseBrian changed the title DO NOT MERGE YET split-pay Add AccountManagementService to SDK split-pay Add AccountManagementService / transfer capability to SDK Aug 30, 2017
@PayLeaseBrian
Copy link
Owner Author

@jbPayLease Please take a look at this PR and let me know what you think. Most of the work is from your original commit. I mostly just added some tests, and cleaned up a couple of minor items revealed in testing.

Copy link
Collaborator

@jbPayLease jbPayLease left a comment

Choose a reason for hiding this comment

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

I went through these changes and everything looks good to me. Thank you for adding tests for the new paysafe classes.

@PayLeaseBrian PayLeaseBrian merged commit 32ccbc6 into split-pay Sep 1, 2017
@PayLeaseBrian PayLeaseBrian deleted the acct-mgmt-service branch November 30, 2017 15:27
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants