<commit_before><?php

/**
  * WARNING: Do not edit by hand, this file was generated by Crank:
  *
  * https://github.com/gocardless/crank
  */

namespace GoCardless\Services;



/**
  *  Publishable API keys are designed to be used by the [js
  *  flow](https://developer.gocardless.com/pro/#api-endpoints-customer-bank-account-tokens).
  *  You should generate a key and then use it to make requests to the API. They
  *  do not expire, but can be disabled.
  *  
  *  Publishable API keys only
  *  have permissions to create [customer bank account
  *  tokens](https://developer.gocardless.com/pro/#api-endpoints-customer-bank-account-tokens).
  */
class PublishableApiKey extends Base
{
  
  /**
    *  Creates a publishable API key object.
    *
    *  Example URL: /publishable_api_keys
    **/
    public function create($options = array())
    {

      return $this->makeRequest("post", "/publishable_api_keys", $options);
    }

  /**
    *  Returns a
    *  [cursor-paginated](https://developer.gocardless.com/pro/#overview-cursor-pagination)
    *  list of your publishable API keys
    *
    *  Example URL: /publishable_api_keys
    **/
    public function all($options = array())
    {

      return $this->makeRequest("get", "/publishable_api_keys", $options);
    }

  /**
    *  Returns all details about a single publishable API key
    *
    *  Example URL: /publishable_api_key/:identity
    *  
    *  @param identity:  Unique identifier, beginning with "PK"
    **/
    public function get($identity, $options = array())
    {

      $path = $this->subUrl("/publishable_api_key/:identity", array(
        "identity" => $identity
      ));

      return $this->makeRequest("get", $path, $options);
    }

  /**
    *  Updates a publishable API key. Only the `name` fields are supported. Any
    *  other fields passed will be ignored.
    *
    *  Example URL: /publishable_api_keys/:identity
    *  
    *  @param identity:  Unique identifier, beginning with "PK"
    **/
    public function update($identity, $options = array())
    {

      $path = $this->subUrl("/publishable_api_keys/:identity", array(
        "identity" => $identity
      ));

      return $this->makeRequest("put", $path, $options);
    }

  /**
    *  Disables a publishable API key. Once disabled, the publishable API key<commit_msg>Crankshaft Build #BU000000A4SH7D @ 2015-04-07 14:53:43 +0000<commit_after><?php

/**
  * WARNING: Do not edit by hand, this file was generated by Crank:
  *
  * https://github.com/gocardless/crank
  */

namespace GoCardless\Services;



/**
  *  Publishable API keys are designed to be used by the [js
  *  flow](https://developer.gocardless.com/pro/#api-endpoints-customer-bank-account-tokens).
  *  You should generate a key and then use it to make requests to the API. They
  *  do not expire, but can be disabled.
  *  
  *  Publishable API keys only
  *  have permissions to create [customer bank account
  *  tokens](https://developer.gocardless.com/pro/#api-endpoints-customer-bank-account-tokens).
  */
class PublishableApiKey extends Base
{
  
  /**
    *  Creates a publishable API key object.
    *
    *  Example URL: /publishable_api_keys
    **/
    public function create($options = array())
    {

      return $this->makeRequest("post", "/publishable_api_keys", $options);
    }

  /**
    *  Returns a
    *  [cursor-paginated](https://developer.gocardless.com/pro/#overview-cursor-pagination)
    *  list of your publishable API keys
    *
    *  Example URL: /publishable_api_keys
    **/
    public function all($options = array())
    {

      return $this->makeRequest("get", "/publishable_api_keys", $options);
    }

  /**
    *  Returns all details about a single publishable API key
    *
    *  Example URL: /publishable_api_keys/:identity
    *  
    *  @param identity:  Unique identifier, beginning with "PK"
    **/
    public function get($identity, $options = array())
    {

      $path = $this->subUrl("/publishable_api_keys/:identity", array(
        "identity" => $identity
      ));

      return $this->makeRequest("get", $path, $options);
    }

  /**
    *  Updates a publishable API key. Only the `name` fields are supported. Any
    *  other fields passed will be ignored.
    *
    *  Example URL: /publishable_api_keys/:identity
    *  
    *  @param identity:  Unique identifier, beginning with "PK"
    **/
    public function update($identity, $options = array())
    {

      $path = $this->subUrl("/publishable_api_keys/:identity", array(
        "identity" => $identity
      ));

      return $this->makeRequest("put", $path, $options);
    }

  /**
    *  Disables a publishable API key. Once disabled, the publishable API key
{'fraction_non_alphanumeric': 0.12842284016132455, 'fraction_numerical': 0.005518998089577585, 'mean_word_length': 2.7726180944755803, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, 'https://': 8, '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': '3424893', 'n_tokens_mistral': 1486, 'n_tokens_neox': 1447, 'n_words': 384}