Skip to content

Commit

Permalink
add @Property annotations to coupon and tax rates
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared King committed Dec 9, 2020
1 parent 5d2f3fc commit 289517e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Coupon.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

namespace Invoiced;

/**
* @property string $id
* @property string $object
* @property string $name
* @property string $currency
* @property bool $is_percent
* @property bool $exclusive
* @property int|null $duration
* @property int|null $expiration_date
* @property int|null $max_redemptions
* @property int $created_at
* @property object $metadata
*/
class Coupon extends BaseObject
{
use Operations\Create;
Expand Down
10 changes: 10 additions & 0 deletions src/TaxRate.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

namespace Invoiced;

/**
* @property string $id
* @property string $object
* @property string $name
* @property string $currency
* @property bool $is_percent
* @property bool $inclusive
* @property int $created_at
* @property object $metadata
*/
class TaxRate extends BaseObject
{
use Operations\Create;
Expand Down

0 comments on commit 289517e

Please sign in to comment.