/**
  * v1CreditCardProfilesDestroy
  *
  * delete credit card credit card profile associated with the account
  *
  * @param string $access_token delete credit card profiles for the user (required)
  * @param string $id delete credit card profiles for the user (required)
  * @return void
  * @throws \RGAuth\SwaggerClient\ApiException on non-2xx response
  */
 public function v1CreditCardProfilesDestroy($access_token, $id)
 {
     // verify the required parameter 'access_token' is set
     if ($access_token === null) {
         throw new \InvalidArgumentException('Missing the required parameter $access_token when calling v1CreditCardProfilesDestroy');
     }
     // verify the required parameter 'id' is set
     if ($id === null) {
         throw new \InvalidArgumentException('Missing the required parameter $id when calling v1CreditCardProfilesDestroy');
     }
     // parse inputs
     $resourcePath = "/v1/account/credit_card_profiles/{id}.json";
     $resourcePath = str_replace("{format}", "json", $resourcePath);
     $method = "DELETE";
     $httpBody = '';
     $queryParams = array();
     $headerParams = array();
     $formParams = array();
     $_header_accept = ApiClient::selectHeaderAccept(array());
     if (!is_null($_header_accept)) {
         $headerParams['Accept'] = $_header_accept;
     }
     $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array());
     // query params
     if ($access_token !== null) {
         $queryParams['access_token'] = $this->apiClient->getSerializer()->toQueryValue($access_token);
     }
     // path params
     if ($id !== null) {
         $resourcePath = str_replace("{" . "id" . "}", $this->apiClient->getSerializer()->toPathValue($id), $resourcePath);
     }
     // for model (json/xml)
     if (isset($_tempBody)) {
         $httpBody = $_tempBody;
         // $_tempBody is the method argument, if present
     } else {
         if (count($formParams) > 0) {
             $httpBody = $formParams;
             // for HTTP post (form)
         }
     }
     // make the API Call
     try {
         list($response, $httpHeader) = $this->apiClient->callApi($resourcePath, $method, $queryParams, $httpBody, $headerParams);
     } catch (ApiException $e) {
         switch ($e->getCode()) {
         }
         throw $e;
     }
 }
 /**
  * v1PasswordRecoverPut
  *
  * reset user's password
  *
  * @param string $token reset password token (required)
  * @param string $password New Password (required)
  * @return void
  * @throws \RGAuth\SwaggerClient\ApiException on non-2xx response
  */
 public function v1PasswordRecoverPut($token, $password)
 {
     // verify the required parameter 'token' is set
     if ($token === null) {
         throw new \InvalidArgumentException('Missing the required parameter $token when calling v1PasswordRecoverPut');
     }
     // verify the required parameter 'password' is set
     if ($password === null) {
         throw new \InvalidArgumentException('Missing the required parameter $password when calling v1PasswordRecoverPut');
     }
     // parse inputs
     $resourcePath = "/v1/password_recover/reset.json";
     $resourcePath = str_replace("{format}", "json", $resourcePath);
     $method = "PUT";
     $httpBody = '';
     $queryParams = array();
     $headerParams = array();
     $formParams = array();
     $_header_accept = ApiClient::selectHeaderAccept(array());
     if (!is_null($_header_accept)) {
         $headerParams['Accept'] = $_header_accept;
     }
     $headerParams['Content-Type'] = ApiClient::selectHeaderContentType(array());
     // query params
     if ($token !== null) {
         $queryParams['token'] = $this->apiClient->getSerializer()->toQueryValue($token);
     }
     // query params
     if ($password !== null) {
         $queryParams['password'] = $this->apiClient->getSerializer()->toQueryValue($password);
     }
     // for model (json/xml)
     if (isset($_tempBody)) {
         $httpBody = $_tempBody;
         // $_tempBody is the method argument, if present
     } else {
         if (count($formParams) > 0) {
             $httpBody = $formParams;
             // for HTTP post (form)
         }
     }
     // make the API Call
     try {
         list($response, $httpHeader) = $this->apiClient->callApi($resourcePath, $method, $queryParams, $httpBody, $headerParams);
     } catch (ApiException $e) {
         switch ($e->getCode()) {
         }
         throw $e;
     }
 }