{"size": 667, "ext": "js", "max_stars_repo_path": "src/common/models/Subscription.js", "max_stars_repo_name": "micahroberson/node-boilerplate", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/common/models/Subscription.js", "max_issues_repo_name": "micahroberson/node-boilerplate", "max_issues_repo_issues_event_min_datetime": "2016-09-28T03:14:09.000Z", "max_issues_repo_issues_event_max_datetime": "2016-10-07T21:09:39.000Z", "max_forks_repo_path": "src/common/models/Subscription.js", "max_forks_repo_name": "micahroberson/node-boilerplate", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 6, "max_forks_count": null, "avg_line_length": 23.0, "max_line_length": 72, "alphanum_fraction": 0.6971514243}
import Base from './Base';
import Team from './Team';
import SubscriptionPlan from './SubscriptionPlan';

class Subscription extends Base {
  static belongsTo() {
    return {
      team: {
        class: Team
      },
      subscription_plan: {
        class: SubscriptionPlan
      }
    };
  };

  constructor(values) {
    super(values);

    this.status = values.status;
    this.current_period_start = values.current_period_start;
    this.current_period_end = values.current_period_end;
    this.stripe_subscription_id = values.stripe_subscription_id;
    this.stripe_subscription_object = values.stripe_subscription_object;
  }
}

export default Subscription
