Subiendo proyecto completo sin restricciones de git ignore

This commit is contained in:
Jose Sanchez
2023-08-17 11:44:02 -04:00
parent a0d4f5ba3b
commit 20f1c60600
19921 changed files with 2509159 additions and 45 deletions

View File

@@ -0,0 +1,22 @@
# Create a beneficiary
> Create a transfer beneficiary
```php
<?php
$data = [
'account_number' => '0690000034',
'account_bank' => '044'
];
$beneficiary = Flutterwave::beneficiaries()->create($data);
dd($beneficiary);
```
## Parameters
| Parameter | Required | Description |
| --------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| account_number | True | The beneficiary's bank account number. When testing on staging, you can find a list of all the available test bank accounts [here](https://developer.flutterwave.com/docs/test-bank-accounts). |
| account_bank | True | This is the beneficiarys bank code, you can use the [List of Banks](/banks/list-banks) to retrieve a bank code. |

View File

@@ -0,0 +1,13 @@
# Delete a beneficiary
> Delete a transfer beneficiary.
```php
<?php
$beneficiaryId = 12596;
$beneficiary = Flutterwave::beneficiaries()->destroy($beneficiaryId);
dd($beneficiary);
```

View File

@@ -0,0 +1,13 @@
# Fetch a beneficiary
> Get a single transfer beneficiary details.
```php
<?php
$beneficiaryId = 12596;
$beneficiary = Flutterwave::beneficiaries()->fetch($beneficiaryId);
dd($beneficiary);
```

View File

@@ -0,0 +1,24 @@
# List all beneficiaries
> Fetch all beneficiaries on your account.
```php
<?php
$data = [
'page' => 1
];
// $data is optional
$beneficiaries = Flutterwave::beneficiaries()->fetchAll($data);
dd($beneficiaries);
```
## Parameters
| Parameter | Required | Description |
| --------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| page | False | This allows you fetch from a specific page e.g. setting page to 1 fetches the first page. |
| status | False | This allows you fetch only transfers with a specific status e.g. fetch all successful transactions. Possible values are failed, successful |