Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Use restCall object for functions that makes requests #841

Merged
merged 2 commits into from
May 11, 2017
Merged

Use restCall object for functions that makes requests #841

merged 2 commits into from
May 11, 2017

Conversation

rusan
Copy link
Contributor

@rusan rusan commented May 4, 2017

No description provided.

Copy link
Contributor

@jaypatel512 jaypatel512 left a comment

Choose a reason for hiding this comment

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

Thank you so much @rusan for your PR. Really appreciated. I have one or two very minor things that we could do, to make it into an awesome PR. 👍

@@ -20,7 +20,7 @@ class FuturePayment extends Payment
* @param string|null $clientMetadataId
* @return $this
*/
public function create($apiContext = null, $clientMetadataId = null)
public function create($apiContext = null, $clientMetadataId = null, $call = null)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we please name this $restCall too, just for consistency.

@@ -32,7 +32,7 @@ public function create($apiContext = null, $clientMetadataId = null)
);
}
$payLoad = $this->toJSON();
$call = new PayPalRestCall($apiContext);
$call = $call ? $call : new PayPalRestCall($apiContext);
Copy link
Contributor

Choose a reason for hiding this comment

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

Curious, if we could just replace this with executeCall itself. Maybe we can do that as a separate PR.

@rusan
Copy link
Contributor Author

rusan commented May 8, 2017

@jaypatel512 - Done.

@jaypatel512
Copy link
Contributor

You are awesome @rusan !

We will do a quick test on this PR, and merge it soon. Thank you again for your contribution. 🎆

@jaypatel512 jaypatel512 merged commit 8d157c3 into paypal:master May 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants