Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: 🐝 Update SDK - Generate 3.2.0 #42

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
425 changes: 230 additions & 195 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

21 changes: 15 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
speakeasyVersion: 1.402.14
speakeasyVersion: 1.487.0
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:0f91ebfb9d754eff5dc742b23c76f28207ffd67e6aec3e5713c343ad6781f22c
sourceBlobDigest: sha256:289baef68db829be9ab3b7d551c2c8f06c9adf872c08c55eb3d4fb8cc570d555
sourceRevisionDigest: sha256:fca5645ecadc348f151e4a8726c8cb09674d173bd200ffe80f177cd3cb528956
sourceBlobDigest: sha256:047973b43eabd7a5497fd5b5915c0bdc002a6670bd88b057e54effa7577a5849
tags:
- latest
- main
- speakeasy-sdk-regen-1738282027
- v2.1.2
targets:
formance-sdk-php:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:0f91ebfb9d754eff5dc742b23c76f28207ffd67e6aec3e5713c343ad6781f22c
sourceBlobDigest: sha256:289baef68db829be9ab3b7d551c2c8f06c9adf872c08c55eb3d4fb8cc570d555
sourceRevisionDigest: sha256:fca5645ecadc348f151e4a8726c8cb09674d173bd200ffe80f177cd3cb528956
sourceBlobDigest: sha256:047973b43eabd7a5497fd5b5915c0bdc002a6670bd88b057e54effa7577a5849
codeSamplesNamespace: my-source-php-code-samples
codeSamplesRevisionDigest: sha256:e59f4e6043433a723006de8cc05b295b2ab85f595df29f351ee7763be1bcc719
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand All @@ -30,3 +33,9 @@ workflow:
packagist:
username: $PACKAGIST_USERNAME
token: $PACKAGIST_TOKEN
codeSamples:
registry:
location: registry.speakeasyapi.dev/formance/formance/my-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/my-source-php-code-samples
labelOverride:
fixedValue: Php (SDK)
blocking: false
594 changes: 380 additions & 214 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-07 00:06:53
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.487.0 (2.506.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [php v3.2.0] .
### Releases
- [Composer v3.2.0] https://packagist.org/packages/formance/formance-sdk#v3.2.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->getOIDCWellKnowns(

);

if ($response->statusCode === 200) {
// 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
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 | |
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 |
9 changes: 0 additions & 9 deletions docs/Models/Operations/GetVersionsSecurity.md

This file was deleted.

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 | |
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
| `id` | *int* | :heavy_check_mark: | Transaction ID. | 1234 |
| `id` | *\Brick\Math\BigInteger* | :heavy_check_mark: | Transaction ID. | 1234 |
| `ledger` | *string* | :heavy_check_mark: | Name of the ledger. | ledger001 |
| `idempotencyKey` | *?string* | :heavy_minus_sign: | Use an idempotency key | |
| `requestBody` | array<string, *string*> | :heavy_minus_sign: | metadata | {<br/>"admin": "true"<br/>} |
Expand Down
10 changes: 5 additions & 5 deletions docs/Models/Operations/V2DeleteTransactionMetadataRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

## Fields

| Field | Type | Required | Description | Example |
| ------------------- | ------------------- | ------------------- | ------------------- | ------------------- |
| `id` | *int* | :heavy_check_mark: | Transaction ID. | 1234 |
| `key` | *string* | :heavy_check_mark: | The key to remove. | foo |
| `ledger` | *string* | :heavy_check_mark: | Name of the ledger. | ledger001 |
| Field | Type | Required | Description | Example |
| ------------------------ | ------------------------ | ------------------------ | ------------------------ | ------------------------ |
| `id` | *\Brick\Math\BigInteger* | :heavy_check_mark: | Transaction ID. | 1234 |
| `key` | *string* | :heavy_check_mark: | The key to remove. | foo |
| `ledger` | *string* | :heavy_check_mark: | Name of the ledger. | ledger001 |
2 changes: 1 addition & 1 deletion docs/Models/Operations/V2GetInfoResponse.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 |
| `v2ConfigInfoResponse` | [?Shared\V2ConfigInfoResponse](../../Models/Shared/V2ConfigInfoResponse.md) | :heavy_minus_sign: | OK |
| `v2ErrorResponse` | *?Errors\V2ErrorResponse* | :heavy_minus_sign: | Error |
| `v2ErrorResponse` | [?Shared\V2ErrorResponse](../../Models/Shared/V2ErrorResponse.md) | :heavy_minus_sign: | Error |
Loading