Fix parameter type and generate documentation

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

No files matched your search

+11 -4
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
+4 -3
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
@@ -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