mirror of
https://github.com/bitinflow/accounts.git
synced 2026-03-13 13:35:52 +00:00
Fix parameter type and generate documentation
This commit is contained in:
15
README.md
15
README.md
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user