mirror of
https://github.com/bitinflow/accounts.git
synced 2026-03-20 17:05:51 +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 createCharge(array $parameters)
|
||||||
public function getCharge(string $id)
|
public function getCharge(string $id)
|
||||||
public function updateCharge(string $id, array $parameters)
|
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
|
```php
|
||||||
public function getCheckoutSession(string $id)
|
public function createDocument(array $parameters)
|
||||||
public function createCheckoutSession(array $parameters)
|
public function createDocumentDownloadUrl(string $identifier, CarbonInterface $expiresAt = NULL)
|
||||||
|
```
|
||||||
|
|
||||||
|
### PaymentIntents
|
||||||
|
|
||||||
|
```php
|
||||||
|
public function getPaymentIntent(string $id)
|
||||||
|
public function createPaymentIntent(array $parameters)
|
||||||
```
|
```
|
||||||
|
|
||||||
### SshKeys
|
### SshKeys
|
||||||
|
|||||||
@@ -9,9 +9,10 @@ PHP bitinflow Accounts API Client for Laravel 5+
|
|||||||
## Table of contents
|
## Table of contents
|
||||||
|
|
||||||
1. [Installation](#installation)
|
1. [Installation](#installation)
|
||||||
2. [Configuration](#configuration)
|
2. [Event Listener](#event-listener)
|
||||||
3. [Examples](#examples)
|
3. [Configuration](#configuration)
|
||||||
4. [Documentation](#documentation)
|
4. [Examples](#examples)
|
||||||
|
5. [Documentation](#documentation)
|
||||||
6. [Development](#Development)
|
6. [Development](#Development)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|||||||
@@ -32,12 +32,12 @@ trait DocumentsTrait
|
|||||||
/**
|
/**
|
||||||
* Create a Documents download url
|
* Create a Documents download url
|
||||||
*
|
*
|
||||||
* @param mixed $identifier
|
* @param string $identifier
|
||||||
* @param CarbonInterface|null $expiresAt
|
* @param CarbonInterface|null $expiresAt
|
||||||
*
|
*
|
||||||
* @return Result
|
* @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", [
|
return $this->post("documents/$identifier/download-url", [
|
||||||
'expires_at' => $expiresAt
|
'expires_at' => $expiresAt
|
||||||
|
|||||||
Reference in New Issue
Block a user