Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc v2.0.0-rc.16, Speakeasy CLI 1.209.3
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot authored and Shiroy committed Mar 18, 2024
1 parent 28fb623 commit 8ec4d1d
Show file tree
Hide file tree
Showing 464 changed files with 6,747 additions and 2,979 deletions.
31 changes: 20 additions & 11 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,24 +1,29 @@
lockVersion: 2.0.0
id: 1e0c88f5-b1c8-4198-83d8-36bd00451cd3
management:
docChecksum: 5e9a79dbe7142aa90188e21ea54c7198
docVersion: v2.0.0-rc.15
speakeasyVersion: internal
generationVersion: 2.237.2
releaseVersion: v2.0.0-rc.15
configChecksum: 5aa8d2a5f48ed17b964388bd1ef8c60b
docChecksum: 254f15d23bfd21d49b8db8ecb44639be
docVersion: v2.0.0-rc.16
speakeasyVersion: 1.209.3
generationVersion: 2.281.2
releaseVersion: 2.1.0
configChecksum: 61758f75deba7b9e60eda7a63adb1777
repoURL: https://github.com/formancehq/formance-sdk-python.git
repoSubDirectory: .
installationURL: https://github.com/formancehq/formance-sdk-python.git
published: true
features:
python:
constsAndDefaults: 0.1.2
core: 4.4.2
constsAndDefaults: 0.1.3
core: 4.5.1
deprecations: 2.81.1
errors: 2.81.8
getRequestBodies: 2.81.1
globalSecurity: 2.83.2
globalServerURLs: 2.82.1
globalSecurity: 2.83.4
globalServerURLs: 2.82.2
groups: 2.81.2
ignores: 2.81.1
unions: 2.82.5
responseFormat: 0.1.0
unions: 2.82.6
generatedFiles:
- src/sdk/sdkconfiguration.py
- src/sdk/auth.py
Expand All @@ -30,6 +35,7 @@ generatedFiles:
- src/sdk/wallets.py
- src/sdk/webhooks.py
- src/sdk/sdk.py
- py.typed
- pylintrc
- setup.py
- src/sdk/__init__.py
Expand Down Expand Up @@ -1272,3 +1278,6 @@ generatedFiles:
- docs/sdks/webhooks/README.md
- USAGE.md
- .gitattributes
- src/sdk/_hooks/sdkhooks.py
- src/sdk/_hooks/types.py
- src/sdk/_hooks/__init__.py
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ It has been generated successfully based on your OpenAPI spec. However, it is no
## SDK Installation

```bash
pip install git+<UNSET>.git
pip install formance-sdk-python
```
<!-- End SDK Installation [installation] -->

Expand All @@ -42,6 +42,7 @@ res = s.get_versions()
if res.get_versions_response is not None:
# handle response
pass

```
<!-- End SDK Example Usage [usage] -->

Expand Down Expand Up @@ -252,15 +253,15 @@ Handling errors in this SDK should largely match your expectations. All operati

```python
import sdk
from sdk.models import operations
from sdk.models import errors, operations

s = sdk.SDK(
authorization="Bearer <YOUR_ACCESS_TOKEN_HERE>",
)

req = operations.AddMetadataToAccountRequest(
request_body={
'key': 'string',
'key': '<value>',
},
address='users:001',
ledger='ledger001',
Expand All @@ -270,15 +271,16 @@ res = None
try:
res = s.ledger.add_metadata_to_account(req)
except errors.ErrorResponse as e:
print(e) # handle exception
# handle exception
raise(e)
except errors.SDKError as e:
print(e) # handle exception
# handle exception
raise(e)

if res.status_code == 200:
if res is not None:
# handle response
pass

```
<!-- End Error Handling [errors] -->

Expand Down Expand Up @@ -309,6 +311,7 @@ res = s.get_versions()
if res.get_versions_response is not None:
# handle response
pass

```


Expand All @@ -329,6 +332,7 @@ res = s.get_versions()
if res.get_versions_response is not None:
# handle response
pass

```
<!-- End Server Selection [server] -->

Expand Down Expand Up @@ -373,6 +377,7 @@ res = s.get_versions()
if res.get_versions_response is not None:
# handle response
pass

```
<!-- End Authentication [security] -->

Expand Down
11 changes: 11 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@


## 2024-03-18 09:14:18
### Changes
Based on:
- OpenAPI Doc v2.0.0-rc.16
- Speakeasy CLI 1.209.3 (2.281.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v2.1.0] .
### Releases
- [PyPI v2.1.0] https://pypi.org/project/formance-sdk-python/2.1.0 - .
1 change: 1 addition & 0 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ res = s.get_versions()
if res.get_versions_response is not None:
# handle response
pass

```
<!-- End SDK Example Usage [usage] -->
4 changes: 2 additions & 2 deletions docs/models/errors/errorresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ Error

| Field | Type | Required | Description | Example |
| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| `details` | *Optional[str]* | :heavy_minus_sign: | N/A | https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9 |
| `error_code` | [shared.ErrorsEnum](../../models/shared/errorsenum.md) | :heavy_check_mark: | N/A | INSUFFICIENT_FUND |
| `error_message` | *str* | :heavy_check_mark: | N/A | [INSUFFICIENT_FUND] account had insufficient funds |
| `error_message` | *str* | :heavy_check_mark: | N/A | [INSUFFICIENT_FUND] account had insufficient funds |
| `details` | *Optional[str]* | :heavy_minus_sign: | N/A | https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9 |
4 changes: 2 additions & 2 deletions docs/models/errors/v2errorresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ Error

| Field | Type | Required | Description | Example |
| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| `details` | *Optional[str]* | :heavy_minus_sign: | N/A | https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9 |
| `error_code` | [shared.V2ErrorsEnum](../../models/shared/v2errorsenum.md) | :heavy_check_mark: | N/A | VALIDATION |
| `error_message` | *str* | :heavy_check_mark: | N/A | [VALIDATION] invalid 'cursor' query param |
| `error_message` | *str* | :heavy_check_mark: | N/A | [VALIDATION] invalid 'cursor' query param |
| `details` | *Optional[str]* | :heavy_minus_sign: | N/A | https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9 |
4 changes: 2 additions & 2 deletions docs/models/errors/webhookserrorresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ Error

| Field | Type | Required | Description | Example |
| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| `details` | *Optional[str]* | :heavy_minus_sign: | N/A | https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9 |
| `error_code` | [shared.WebhooksErrorsEnum](../../models/shared/webhookserrorsenum.md) | :heavy_check_mark: | N/A | VALIDATION |
| `error_message` | *str* | :heavy_check_mark: | N/A | [VALIDATION] invalid 'cursor' query param |
| `error_message` | *str* | :heavy_check_mark: | N/A | [VALIDATION] invalid 'cursor' query param |
| `details` | *Optional[str]* | :heavy_minus_sign: | N/A | https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9 |
2 changes: 1 addition & 1 deletion docs/models/operations/activateconfigresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| `config_response` | [Optional[shared.ConfigResponse]](../../models/shared/configresponse.md) | :heavy_minus_sign: | Config successfully activated. |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
| `config_response` | [Optional[shared.ConfigResponse]](../../models/shared/configresponse.md) | :heavy_minus_sign: | Config successfully activated. |
| `webhooks_error_response` | *Optional[errors.WebhooksErrorResponse]* | :heavy_minus_sign: | Error |
4 changes: 2 additions & 2 deletions docs/models/operations/addmetadataontransactionrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

| Field | Type | Required | Description | Example |
| ------------------- | ------------------- | ------------------- | ------------------- | ------------------- |
| `request_body` | Dict[str, *Any*] | :heavy_minus_sign: | metadata | |
| `ledger` | *str* | :heavy_check_mark: | Name of the ledger. | ledger001 |
| `txid` | *int* | :heavy_check_mark: | Transaction ID. | 1234 |
| `txid` | *int* | :heavy_check_mark: | Transaction ID. | 1234 |
| `request_body` | Dict[str, *Any*] | :heavy_minus_sign: | metadata | |

0 comments on commit 8ec4d1d

Please sign in to comment.