Fix parameter type and generate documentation

This commit is contained in:
René Preuß
2019-11-19 17:21:13 +01:00
parent 203dc18766
commit b5ad7786f2
3 changed files with 17 additions and 9 deletions

View File

@@ -155,14 +155,21 @@ BitinflowAccounts::withClientId('abc123')->withToken('abcdef123456')->getAuthedU
public function createCharge(array $parameters)
public function getCharge(string $id)
public function updateCharge(string $id, array $parameters)
public function captureCharge(string $id, array $parameters = [])
public function captureCharge(string $id, array $parameters = array ())
```
### CheckoutSessions
### Documents
```php
public function getCheckoutSession(string $id)
public function createCheckoutSession(array $parameters)
public function createDocument(array $parameters)
public function createDocumentDownloadUrl(string $identifier, CarbonInterface $expiresAt = NULL)
```
### PaymentIntents
```php
public function getPaymentIntent(string $id)
public function createPaymentIntent(array $parameters)
```
### SshKeys

View File

@@ -9,9 +9,10 @@ PHP bitinflow Accounts API Client for Laravel 5+
## Table of contents
1. [Installation](#installation)
2. [Configuration](#configuration)
3. [Examples](#examples)
4. [Documentation](#documentation)
2. [Event Listener](#event-listener)
3. [Configuration](#configuration)
4. [Examples](#examples)
5. [Documentation](#documentation)
6. [Development](#Development)
## Installation

View File

@@ -32,12 +32,12 @@ trait DocumentsTrait
/**
* Create a Documents download url
*
* @param mixed $identifier
* @param string $identifier
* @param CarbonInterface|null $expiresAt
*
* @return Result
*/
public function createDocumentDownloadUrl($identifier, ?CarbonInterface $expiresAt = null): Result
public function createDocumentDownloadUrl(string $identifier, ?CarbonInterface $expiresAt = null): Result
{
return $this->post("documents/$identifier/download-url", [
'expires_at' => $expiresAt