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

Feature/fix draft payment object #63 #66

Merged
merged 2 commits into from
Nov 8, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions src/Model/Generated/Endpoint/DraftPayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use bunq\Http\ApiClient;
use bunq\Http\BunqResponse;
use bunq\Model\Core\BunqModel;
use bunq\Model\Generated\Object\DraftPaymentAnchorObject;
use bunq\Model\Generated\Object\DraftPaymentEntry;
use bunq\Model\Generated\Object\DraftPaymentResponse;
use bunq\Model\Generated\Object\LabelUser;
Expand Down Expand Up @@ -39,7 +40,7 @@ class DraftPayment extends BunqModel
const OBJECT_TYPE = 'DraftPayment';

/**
* The id of the DraftPayment.
* The id of the created DrafPayment.
*
* @var int
*/
Expand Down Expand Up @@ -91,7 +92,7 @@ class DraftPayment extends BunqModel
* The Payment or PaymentBatch. This will only be present after the
* DraftPayment has been accepted.
*
* @var BunqModel
* @var DraftPaymentAnchorObject
*/
protected $object;

Expand Down Expand Up @@ -212,7 +213,7 @@ public static function get(ApiContext $apiContext, int $userId, int $monetaryAcc
}

/**
* The id of the DraftPayment.
* The id of the created DrafPayment.
*
* @return int
*/
Expand Down Expand Up @@ -341,15 +342,15 @@ public function setEntries($entries)
* The Payment or PaymentBatch. This will only be present after the
* DraftPayment has been accepted.
*
* @return BunqModel
* @return DraftPaymentAnchorObject
*/
public function getObject()
{
return $this->object;
}

/**
* @param BunqModel $object
* @param DraftPaymentAnchorObject $object
*/
public function setObject($object)
{
Expand Down
54 changes: 54 additions & 0 deletions src/Model/Generated/Object/DraftPaymentAnchorObject.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?php
namespace bunq\Model\Generated\Object;

use bunq\Model\Core\BunqModel;
use bunq\Model\Generated\Endpoint\Payment;
use bunq\Model\Generated\Endpoint\PaymentBatch;

/**
* @generated
*/
class DraftPaymentAnchorObject extends BunqModel
{
/**
* @var Payment
*/
protected $payment;

/**
* @var PaymentBatch
*/
protected $paymentBatch;

/**
* @return Payment
*/
public function getPayment()
{
return $this->payment;
}

/**
* @param Payment $payment
*/
public function setPayment($payment)
{
$this->payment = $payment;
}

/**
* @return PaymentBatch
*/
public function getPaymentBatch()
{
return $this->paymentBatch;
}

/**
* @param PaymentBatch $paymentBatch
*/
public function setPaymentBatch($paymentBatch)
{
$this->paymentBatch = $paymentBatch;
}
}