Skip to content

Commit

Permalink
Add invoice.voided event
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Ogilvie committed Dec 2, 2019
1 parent 81569ef commit af74432
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Model/AbstractInvoiceModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@

abstract class AbstractInvoiceModel extends StripeModel
{

/**
* @StripeObjectParam(name="amount_paid")
*
* @var int
*/
protected $amountPaid;

/**
* @StripeObjectParam(name="amount_due")
*
Expand Down Expand Up @@ -258,6 +266,26 @@ abstract class AbstractInvoiceModel extends StripeModel
*/
protected $invoicePdf;

/**
* @return int
*/
public function getAmountPaid()
{
return $this->amountPaid;
}

/**
* @param int $amountPaid
*
* @return $this
*/
public function setAmountPaid($amountPaid)
{
$this->amountPaid = $amountPaid;

return $this;
}

/**
* @return int
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

<mapped-superclass name="Miracode\StripeBundle\Model\AbstractInvoiceModel">
<field name="amountDue" column="amount_due" type="integer" nullable="true" />
<field name="amountPaid" column="amount_paid" type="integer" nullable="true" />
<field name="applicationFee" column="application_fee" type="integer" nullable="true" />
<field name="attemptCount" column="attempt_count" type="integer" nullable="true" />
<field name="attempted" column="attempted" type="boolean" nullable="true" />
Expand Down

0 comments on commit af74432

Please sign in to comment.