Skip to content

Commit

Permalink
remove deprecated model attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared King committed Sep 29, 2016
1 parent dec243f commit 8c6283b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
14 changes: 0 additions & 14 deletions src/Models/BillableModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,49 +18,35 @@ abstract class BillableModel extends ACLModel
],
'stripe_customer' => [
'null' => true,
'admin_html' => '<a href="https://manage.stripe.com/customers/{stripe_customer}" target="_blank">{stripe_customer}</a>',
],
'renews_next' => [
'type' => Model::TYPE_DATE,
'null' => true,
'admin_type' => 'datepicker',
'admin_hidden_property' => true,
],
'trial_ends' => [
'type' => Model::TYPE_DATE,
'null' => true,
'admin_type' => 'datepicker',
'admin_hidden_property' => true,
],
'past_due' => [
'type' => Model::TYPE_BOOLEAN,
'default' => false,
'admin_type' => 'checkbox',
'admin_hidden_property' => true,
],
'canceled' => [
'type' => Model::TYPE_BOOLEAN,
'default' => false,
'admin_type' => 'checkbox',
'default' => false,
],
'canceled_at' => [
'type' => Model::TYPE_DATE,
'null' => true,
'admin_type' => 'datepicker',
'admin_hidden_property' => true,
],
'not_charged' => [
'type' => Model::TYPE_BOOLEAN,
'default' => false,
'admin_type' => 'checkbox',
'admin_hidden_property' => true,
],
'last_trial_reminder' => [
'type' => Model::TYPE_DATE,
'null' => true,
'admin_type' => 'datepicker',
'admin_hidden_property' => true,
],
];

Expand Down
9 changes: 0 additions & 9 deletions src/Models/BillingHistory.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,41 +17,32 @@

class BillingHistory extends Model
{
public static $scaffoldApi;

protected static $properties = [
'user_id' => [
'type' => Model::TYPE_NUMBER,
],
'payment_time' => [
'type' => Model::TYPE_DATE,
'admin_type' => 'datepicker',
],
'amount' => [
'type' => Model::TYPE_NUMBER,
'searchable' => true,
'admin_html' => '${amount}',
],
'stripe_customer' => [
'searchable' => true,
'admin_html' => '<a href="https://manage.stripe.com/customers/{stripe_customer}" target="_blank">{stripe_customer}</a>',
],
'stripe_transaction' => [
'searchable' => true,
'admin_html' => '<a href="https://manage.stripe.com/payments/{stripe_transaction}" target="_blank">{stripe_transaction}</a>',
],
'description' => [
'searchable' => true,
'admin_hidden_property' => true,
],
'success' => [
'type' => Model::TYPE_BOOLEAN,
'admin_type' => 'checkbox',
],
'error' => [
'null' => true,
'searchable' => true,
'admin_hidden_property' => true,
],
];
}

0 comments on commit 8c6283b

Please sign in to comment.