Skip to content

Commit

Permalink
Merge pull request #34 from pagarme/CodeGen-PHP
Browse files Browse the repository at this point in the history
Code gen php
  • Loading branch information
andreals authored Nov 9, 2023
2 parents 1d3fd35 + 20c439d commit 728d004
Show file tree
Hide file tree
Showing 273 changed files with 5,514 additions and 7,549 deletions.
44 changes: 22 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ To run your project, right click on your PHP file inside your Test project and c

## Initialize the API Client

**_Note:_** Documentation for the client can be found [here.](doc/client.md)
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/pagarme/pagarme-php-sdk/tree/6.8.1/doc/client.md)

The following parameters are configurable for the API Client:

Expand Down Expand Up @@ -138,31 +138,31 @@ Here is the list of errors that the API might throw.

| HTTP Status Code | Error Description | Exception Class |
| --- | --- | --- |
| 400 | Invalid request | [`ErrorException`](doc/models/error-exception.md) |
| 401 | Invalid API key | [`ErrorException`](doc/models/error-exception.md) |
| 404 | An informed resource was not found | [`ErrorException`](doc/models/error-exception.md) |
| 412 | Business validation error | [`ErrorException`](doc/models/error-exception.md) |
| 422 | Contract validation error | [`ErrorException`](doc/models/error-exception.md) |
| 500 | Internal server error | [`ErrorException`](doc/models/error-exception.md) |
| 400 | Invalid request | [`ErrorException`](https://www.github.com/pagarme/pagarme-php-sdk/tree/6.8.1/doc/models/error-exception.md) |
| 401 | Invalid API key | [`ErrorException`](https://www.github.com/pagarme/pagarme-php-sdk/tree/6.8.1/doc/models/error-exception.md) |
| 404 | An informed resource was not found | [`ErrorException`](https://www.github.com/pagarme/pagarme-php-sdk/tree/6.8.1/doc/models/error-exception.md) |
| 412 | Business validation error | [`ErrorException`](https://www.github.com/pagarme/pagarme-php-sdk/tree/6.8.1/doc/models/error-exception.md) |
| 422 | Contract validation error | [`ErrorException`](https://www.github.com/pagarme/pagarme-php-sdk/tree/6.8.1/doc/models/error-exception.md) |
| 500 | Internal server error | [`ErrorException`](https://www.github.com/pagarme/pagarme-php-sdk/tree/6.8.1/doc/models/error-exception.md) |

## List of APIs

* [Subscriptions](doc/controllers/subscriptions.md)
* [Orders](doc/controllers/orders.md)
* [Plans](doc/controllers/plans.md)
* [Invoices](doc/controllers/invoices.md)
* [Customers](doc/controllers/customers.md)
* [Charges](doc/controllers/charges.md)
* [Recipients](doc/controllers/recipients.md)
* [Tokens](doc/controllers/tokens.md)
* [Transactions](doc/controllers/transactions.md)
* [Transfers](doc/controllers/transfers.md)
* [Payables](doc/controllers/payables.md)
* [Balance Operations](doc/controllers/balance-operations.md)
* [Subscriptions](https://www.github.com/pagarme/pagarme-php-sdk/tree/6.8.1/doc/controllers/subscriptions.md)
* [Orders](https://www.github.com/pagarme/pagarme-php-sdk/tree/6.8.1/doc/controllers/orders.md)
* [Plans](https://www.github.com/pagarme/pagarme-php-sdk/tree/6.8.1/doc/controllers/plans.md)
* [Invoices](https://www.github.com/pagarme/pagarme-php-sdk/tree/6.8.1/doc/controllers/invoices.md)
* [Customers](https://www.github.com/pagarme/pagarme-php-sdk/tree/6.8.1/doc/controllers/customers.md)
* [Charges](https://www.github.com/pagarme/pagarme-php-sdk/tree/6.8.1/doc/controllers/charges.md)
* [Recipients](https://www.github.com/pagarme/pagarme-php-sdk/tree/6.8.1/doc/controllers/recipients.md)
* [Tokens](https://www.github.com/pagarme/pagarme-php-sdk/tree/6.8.1/doc/controllers/tokens.md)
* [Transactions](https://www.github.com/pagarme/pagarme-php-sdk/tree/6.8.1/doc/controllers/transactions.md)
* [Transfers](https://www.github.com/pagarme/pagarme-php-sdk/tree/6.8.1/doc/controllers/transfers.md)
* [Payables](https://www.github.com/pagarme/pagarme-php-sdk/tree/6.8.1/doc/controllers/payables.md)
* [Balance Operations](https://www.github.com/pagarme/pagarme-php-sdk/tree/6.8.1/doc/controllers/balance-operations.md)

## Classes Documentation

* [ApiException](doc/api-exception.md)
* [HttpRequest](doc/http-request.md)
* [HttpResponse](doc/http-response.md)
* [ApiException](https://www.github.com/pagarme/pagarme-php-sdk/tree/6.8.1/doc/api-exception.md)
* [HttpRequest](https://www.github.com/pagarme/pagarme-php-sdk/tree/6.8.1/doc/http-request.md)
* [HttpResponse](https://www.github.com/pagarme/pagarme-php-sdk/tree/6.8.1/doc/http-response.md)

6 changes: 3 additions & 3 deletions doc/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ The gateway for the SDK. This class acts as a factory for the Controllers and al

| Name | Description |
| --- | --- |
| getSubscriptionsController() | Gets SubscriptionsController |
| getOrdersController() | Gets OrdersController |
| getPlansController() | Gets PlansController |
| getSubscriptionsController() | Gets SubscriptionsController |
| getInvoicesController() | Gets InvoicesController |
| getCustomersController() | Gets CustomersController |
| getRecipientsController() | Gets RecipientsController |
| getChargesController() | Gets ChargesController |
| getRecipientsController() | Gets RecipientsController |
| getTokensController() | Gets TokensController |
| getTransfersController() | Gets TransfersController |
| getTransactionsController() | Gets TransactionsController |
| getTransfersController() | Gets TransfersController |
| getPayablesController() | Gets PayablesController |
| getBalanceOperationsController() | Gets BalanceOperationsController |

4 changes: 3 additions & 1 deletion doc/controllers/balance-operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ $balanceOperationsController = $client->getBalanceOperationsController();
function getBalanceOperations(
?string $status = null,
?\DateTime $createdSince = null,
?\DateTime $createdUntil = null
?\DateTime $createdUntil = null,
?string $recipientId = null
): ListBalanceOperationResponse
```

Expand All @@ -31,6 +32,7 @@ function getBalanceOperations(
| `status` | `?string` | Query, Optional | - |
| `createdSince` | `?DateTime` | Query, Optional | - |
| `createdUntil` | `?DateTime` | Query, Optional | - |
| `recipientId` | `?string` | Query, Optional | - |

## Response Type

Expand Down
Loading

0 comments on commit 728d004

Please sign in to comment.