Skip to content
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

Request money on Sandbox if balance zero. (bunq/tinker_php#14) #15

Merged
merged 3 commits into from
Apr 12, 2018

Conversation

JordyHeemskerk
Copy link
Contributor

@JordyHeemskerk JordyHeemskerk commented Apr 4, 2018

#14

@JordyHeemskerk JordyHeemskerk requested a review from OGKevin April 4, 2018 21:40
Copy link
Contributor

@OGKevin OGKevin left a comment

Choose a reason for hiding this comment

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

Some minor changes.

src/BunqLib.php Outdated
@@ -19,6 +19,7 @@
use bunq\Model\Generated\Object\Pointer;
use bunq\Util\BunqEnumApiEnvironmentType;
use bunq\Util\InstallationUtil;
use Habitat\Environment\Environment;
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be removed right ? :P

Choose a reason for hiding this comment

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

Ja

@@ -85,6 +97,7 @@ public function __construct(BunqEnumApiEnvironmentType $bunqEnumApiEnvironmentTy
$this->environment = $bunqEnumApiEnvironmentType;
$this->setupContext();
$this->setupCurrentUser();
$this->requestSpendingMoneyIfNeeded();
Copy link
Contributor

Choose a reason for hiding this comment

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

TODO: bunq/sdk_php#122

After sdk update.

src/BunqLib.php Outdated
*/
private function requestSpendingMoneyIfNeeded()
{
if (BunqEnumApiEnvironmentType::SANDBOX()->equals($this->environment)
Copy link
Contributor

Choose a reason for hiding this comment

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

This logic can be extracted in its own separate method.

@OGKevin OGKevin added the enhancement New feature or request label Apr 5, 2018
@OGKevin OGKevin added this to the 0.9.3 milestone Apr 5, 2018
@JordyHeemskerk
Copy link
Contributor Author

@OGKevin moving UserContext refresh to new issue. Implemented comments.

@OGKevin OGKevin merged commit baa8fc5 into develop Apr 12, 2018
@OGKevin OGKevin deleted the feature/bunq/tinker_php#14_automatic_money_request branch April 12, 2018 17:19
@OGKevin
Copy link
Contributor

OGKevin commented Apr 12, 2018

@andrederoos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants