Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.487.1
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot authored and flemzord committed Feb 10, 2025
1 parent 91807b1 commit 36daf88
Show file tree
Hide file tree
Showing 1,296 changed files with 35,324 additions and 11,433 deletions.
1,665 changes: 1,253 additions & 412 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

34 changes: 25 additions & 9 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
speakeasyVersion: 1.402.14
speakeasyVersion: 1.487.1
sources:
my-source:
sourceNamespace: my-source
Expand All @@ -7,26 +7,42 @@ sources:
tags:
- latest
- main
stacks-source:
sourceNamespace: stacks-source
sourceRevisionDigest: sha256:c6c425a9c053695924ac26321a716f32f9c0be2b48f5532d1364e7a38bafb04c
sourceBlobDigest: sha256:c4b18881641c3898b7b6dd5676a2f39abfbb54a22bbe8516e5135e67b373dbd5
tags:
- latest
- speakeasy-sdk-regen-1738282027
- v3.0.0
targets:
formance-sdk-php:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:0f91ebfb9d754eff5dc742b23c76f28207ffd67e6aec3e5713c343ad6781f22c
sourceBlobDigest: sha256:289baef68db829be9ab3b7d551c2c8f06c9adf872c08c55eb3d4fb8cc570d555
source: stacks-source
sourceNamespace: stacks-source
sourceRevisionDigest: sha256:c6c425a9c053695924ac26321a716f32f9c0be2b48f5532d1364e7a38bafb04c
sourceBlobDigest: sha256:c4b18881641c3898b7b6dd5676a2f39abfbb54a22bbe8516e5135e67b373dbd5
codeSamplesNamespace: stacks-source-php-code-samples
codeSamplesRevisionDigest: sha256:5a840f026bf7ac68b83acc3d0ad73d8d142f72a146da5d7b70ff5229441a3da4
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
sources:
my-source:
stacks-source:
inputs:
- location: https://github.com/formancehq/stack/releases/download/v2.1.2/generate.json
- location: https://github.com/formancehq/stack/releases/download/v3.0.0/generate.json
registry:
location: registry.speakeasyapi.dev/formance/formance/my-source
location: registry.speakeasyapi.dev/formance/formance/stacks-source
targets:
formance-sdk-php:
target: php
source: my-source
source: stacks-source
publish:
packagist:
username: $PACKAGIST_USERNAME
token: $PACKAGIST_TOKEN
codeSamples:
registry:
location: registry.speakeasyapi.dev/formance/formance/stacks-source-php-code-samples
labelOverride:
fixedValue: Php (SDK)
blocking: false
6 changes: 6 additions & 0 deletions .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@ targets:
packagist:
username: $PACKAGIST_USERNAME
token: $PACKAGIST_TOKEN
codeSamples:
registry:
location: registry.speakeasyapi.dev/formance/formance/stacks-source-php-code-samples
labelOverride:
fixedValue: Php (SDK)
blocking: false
469 changes: 342 additions & 127 deletions README.md

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,4 +258,14 @@ Based on:
### Generated
- [php v3.1.0] .
### Releases
- [Composer v3.1.0] https://packagist.org/packages/formance/formance-sdk#v3.1.0 - .
- [Composer v3.1.0] https://packagist.org/packages/formance/formance-sdk#v3.1.0 - .

## 2025-02-10 15:19:24
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.487.1 (2.506.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [php v4.0.0] .
### Releases
- [Composer v4.0.0] https://packagist.org/packages/formance/formance-sdk#v4.0.0 - .
28 changes: 16 additions & 12 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,25 @@ declare(strict_types=1);
require 'vendor/autoload.php';

use formance\stack;
use formance\stack\Models\Operations;
use formance\stack\Models\Shared;

$sdk = stack\SDK::builder()->build();
$sdk = stack\SDK::builder()
->setSecurity(
new Shared\Security(
clientID: '<YOUR_CLIENT_ID_HERE>',
clientSecret: '<YOUR_CLIENT_SECRET_HERE>',
)
)
->build();

try {
$requestSecurity = new Operations\GetVersionsSecurity(
authorization: "<YOUR_AUTHORIZATION_HERE>",
);
$response = $sdk->getVersions($requestSecurity);

if ($response->getVersionsResponse !== null) {
// handle response
}
} catch (Throwable $e) {
// handle exception

$response = $sdk->getVersions(

);

if ($response->getVersionsResponse !== null) {
// handle response
}
```
<!-- End SDK Example Usage [usage] -->
18 changes: 10 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,34 @@
},
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.2",
"galbar/jsonpath": "^3.0",
"guzzlehttp/guzzle": "^7.0",
"speakeasy/serializer": "^3.40.0",
"speakeasy/serializer": "^4.0.0",
"brick/date-time": "^0.7.0",
"phpdocumentor/type-resolver": "^1.8"
"phpdocumentor/type-resolver": "^1.8",
"brick/math": "^0.12.1"
},
"require-dev": {
"laravel/pint": "^1.15",
"phpstan/phpstan": "^1.9",
"laravel/pint": "^1.18.1",
"phpstan/phpstan": "^2.1.0",
"phpunit/phpunit": "^10",
"rector/rector": "^0.18.13",
"roave/security-advisories": "dev-latest"
},
"minimum-stability": "stable",
"prefer-stable": true,
"config": {
"optimize-autoloader": true,
"classmap-authoritative": true,
"sort-packages": true
"sort-packages": true,
"process-timeout": 60
},
"scripts": {
"test": [
"./vendor/bin/phpunit --testdox --display-warnings --colors=always"
],
"stan": [
"./vendor/bin/phpstan analyse --memory-limit=2g"
"./vendor/bin/phpstan analyse --memory-limit=2g --error-format=table"
]
},
"script-descriptions": {
Expand Down
2 changes: 0 additions & 2 deletions docs/Models/Errors/ErrorResponse.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# ErrorResponse

Error


## Fields

Expand Down
2 changes: 0 additions & 2 deletions docs/Models/Errors/V2ErrorResponse.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# V2ErrorResponse

Error


## Fields

Expand Down
10 changes: 10 additions & 0 deletions docs/Models/Errors/V3ErrorResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# V3ErrorResponse


## Fields

| Field | Type | Required | Description | Example |
| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- |
| `errorCode` | [Shared\V3ErrorsEnum](../../Models/Shared/V3ErrorsEnum.md) | :heavy_check_mark: | N/A | VALIDATION |
| `errorMessage` | *string* | :heavy_check_mark: | N/A | [VALIDATION] missing required config field: pollingPeriod |
| `details` | *?string* | :heavy_minus_sign: | N/A | |
2 changes: 0 additions & 2 deletions docs/Models/Errors/WalletsErrorResponse.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# WalletsErrorResponse

Error


## Fields

Expand Down
2 changes: 0 additions & 2 deletions docs/Models/Errors/WebhooksErrorResponse.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# WebhooksErrorResponse

Error


## Fields

Expand Down
10 changes: 5 additions & 5 deletions docs/Models/Operations/AddMetadataOnTransactionRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

## Fields

| Field | Type | Required | Description | Example |
| ---------------------- | ---------------------- | ---------------------- | ---------------------- | ---------------------- |
| `ledger` | *string* | :heavy_check_mark: | Name of the ledger. | ledger001 |
| `txid` | *int* | :heavy_check_mark: | Transaction ID. | 1234 |
| `requestBody` | array<string, *mixed*> | :heavy_minus_sign: | metadata | |
| Field | Type | Required | Description | Example |
| ------------------------ | ------------------------ | ------------------------ | ------------------------ | ------------------------ |
| `ledger` | *string* | :heavy_check_mark: | Name of the ledger. | ledger001 |
| `txid` | *\Brick\Math\BigInteger* | :heavy_check_mark: | Transaction ID. | 1234 |
| `requestBody` | array<string, *mixed*> | :heavy_minus_sign: | metadata | |
11 changes: 11 additions & 0 deletions docs/Models/Operations/GetMetricsResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# GetMetricsResponse


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ |
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
| `object` | array<string, *mixed*> | :heavy_minus_sign: | OK |
8 changes: 4 additions & 4 deletions docs/Models/Operations/GetTransactionRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

## Fields

| Field | Type | Required | Description | Example |
| ------------------- | ------------------- | ------------------- | ------------------- | ------------------- |
| `ledger` | *string* | :heavy_check_mark: | Name of the ledger. | ledger001 |
| `txid` | *int* | :heavy_check_mark: | Transaction ID. | 1234 |
| Field | Type | Required | Description | Example |
| ------------------------ | ------------------------ | ------------------------ | ------------------------ | ------------------------ |
| `ledger` | *string* | :heavy_check_mark: | Name of the ledger. | ledger001 |
| `txid` | *\Brick\Math\BigInteger* | :heavy_check_mark: | Transaction ID. | 1234 |
2 changes: 1 addition & 1 deletion docs/Models/Operations/ListAccountsResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
| `accountsCursorResponse` | [?Shared\AccountsCursorResponse](../../Models/Shared/AccountsCursorResponse.md) | :heavy_minus_sign: | OK |
| `errorResponse` | *?Errors\ErrorResponse* | :heavy_minus_sign: | Not found |
| `errorResponse` | [?Shared\ErrorResponse](../../Models/Shared/ErrorResponse.md) | :heavy_minus_sign: | Not found |
2 changes: 1 addition & 1 deletion docs/Models/Operations/RevertTransactionRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
| Field | Type | Required | Description | Example |
| -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- |
| `ledger` | *string* | :heavy_check_mark: | Name of the ledger. | ledger001 |
| `txid` | *int* | :heavy_check_mark: | Transaction ID. | 1234 |
| `txid` | *\Brick\Math\BigInteger* | :heavy_check_mark: | Transaction ID. | 1234 |
| `disableChecks` | *?bool* | :heavy_minus_sign: | Allow to disable balances checks | |
9 changes: 9 additions & 0 deletions docs/Models/Operations/UpdateConfigRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# UpdateConfigRequest


## Fields

| Field | Type | Required | Description | Example |
| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ |
| `configUser` | [Shared\ConfigUser](../../Models/Shared/ConfigUser.md) | :heavy_check_mark: | N/A | |
| `id` | *string* | :heavy_check_mark: | Config ID | 4997257d-dfb6-445b-929c-cbe2ab182818 |
10 changes: 10 additions & 0 deletions docs/Models/Operations/UpdateConfigResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# UpdateConfigResponse


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ |
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
Loading

0 comments on commit 36daf88

Please sign in to comment.