<commit_before><?php

class ChargeBee_Invoice extends ChargeBee_Model
{

  protected $allowed = array('id', 'subscriptionId', 'status', 'startDate', 'endDate', 'amount', 'paidOn',
'nextRetry', 'subTotal', 'lineItems', 'discounts');



  # OPERATIONS
  #-----------

  public static function all($params = array(), $env = null)
  {
    return ChargeBee_Request::send(ChargeBee_Request::GET, "/invoices", $params, $env);
  }

  public static function retrieve($id, $env = null)
  {
    return ChargeBee_Request::send(ChargeBee_Request::GET, "/invoices/$id", array(), $env);
  }

  public static function invoicesForSubscription($id, $params = array(), $env = null)
  {
    return ChargeBee_Request::send(ChargeBee_Request::GET, "/subscriptions/$id/invoices", $params, $env);
  }

 }

?><commit_msg>added recurring attribute<commit_after><?php

class ChargeBee_Invoice extends ChargeBee_Model
{

  protected $allowed = array('id', 'subscriptionId', 'recurring', 'status', 'startDate', 'endDate', 'amount',
'paidOn', 'nextRetry', 'subTotal', 'lineItems', 'discounts');



  # OPERATIONS
  #-----------

  public static function all($params = array(), $env = null)
  {
    return ChargeBee_Request::send(ChargeBee_Request::GET, "/invoices", $params, $env);
  }

  public static function retrieve($id, $env = null)
  {
    return ChargeBee_Request::send(ChargeBee_Request::GET, "/invoices/$id", array(), $env);
  }

  public static function invoicesForSubscription($id, $params = array(), $env = null)
  {
    return ChargeBee_Request::send(ChargeBee_Request::GET, "/subscriptions/$id/invoices", $params, $env);
  }

  public static function charge($params, $env = null)
  {
    return ChargeBee_Request::send(ChargeBee_Request::POST, "/invoices/charge", $params, $env);
  }

  public static function chargeAddon($params, $env = null)
  {
    return ChargeBee_Request::send(ChargeBee_Request::POST, "/invoices/charge_addon", $params, $env);
  }

 }

?>
{'fraction_non_alphanumeric': 0.1721479958890031, 'fraction_numerical': 0.0, 'mean_word_length': 4.935975609756097, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7637418', 'n_tokens_mistral': 674, 'n_tokens_neox': 646, 'n_words': 135}