Skip to content

Commit a8b0b8b

Browse files
chore: 🐝 Update SDK - Generate SDK 1.7.17
1 parent 8e181e6 commit a8b0b8b

File tree

13 files changed

+287
-36
lines changed

13 files changed

+287
-36
lines changed

.speakeasy/gen.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
lockVersion: 2.0.0
22
id: 833c6a67-4a4a-4ef1-ba24-165a29264e4a
33
management:
4-
docChecksum: 221a49170cd781fcde9fe9e1a54c91bb
4+
docChecksum: a8157e3b0f40cbe4708f79566034fb26
55
docVersion: 1.0.0
6-
speakeasyVersion: 1.660.0
7-
generationVersion: 2.760.2
8-
releaseVersion: 1.7.16
9-
configChecksum: 9291e43cf17cde1fb329f18cc5d2cabc
6+
speakeasyVersion: 1.661.1
7+
generationVersion: 2.763.2
8+
releaseVersion: 1.7.17
9+
configChecksum: 4f371a14a97edf8d1fdd4a71a88d85b5
1010
repoURL: https://github.com/gr4vy/gr4vy-python.git
1111
installationURL: https://github.com/gr4vy/gr4vy-python.git
1212
published: true
1313
features:
1414
python:
1515
additionalDependencies: 1.0.0
1616
constsAndDefaults: 1.0.5
17-
core: 5.23.10
17+
core: 5.23.11
1818
defaultEnabledRetries: 0.2.0
1919
enumUnions: 0.1.0
2020
envVarSecurityUsage: 0.3.2
@@ -33,7 +33,7 @@ features:
3333
openEnums: 1.0.1
3434
pagination: 3.0.7
3535
responseFormat: 1.0.1
36-
retries: 3.0.2
36+
retries: 3.0.3
3737
sdkHooks: 1.1.0
3838
serverIDs: 3.0.0
3939
unions: 3.1.0
@@ -4454,4 +4454,4 @@ examples:
44544454
application/json: {"type": "error", "code": "gateway_timeout", "status": 504, "message": "Request could not be processed"}
44554455
examplesVersion: 1.0.2
44564456
generatedTests: {}
4457-
releaseNotes: "## Python SDK Changes Detected:\n* `gr4vy.transactions.create()`: \n * `request.connection_options.nuvei-ideal` **Added**\n* `gr4vy.transactions.update()`: \n * `request.connection_options.nuvei-ideal` **Added**\n* `gr4vy.payment-links.create()`: \n * `request.connection_options.nuvei-ideal` **Added**\n"
4457+
releaseNotes: "## Python SDK Changes Detected:\n* `gr4vy.transactions.create()`: \n * `request.connection_options.cybersource-card.comments` **Added**\n* `gr4vy.transactions.update()`: \n * `request.connection_options.cybersource-card.comments` **Added**\n* `gr4vy.payment-links.create()`: \n * `request.connection_options.cybersource-card.comments` **Added**\n"

.speakeasy/gen.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ generation:
2525
generateNewTests: false
2626
skipResponseBodyAssertions: false
2727
python:
28-
version: 1.7.16
28+
version: 1.7.17
2929
additionalDependencies:
3030
dev:
3131
freezegun: ^1.5.1
@@ -63,6 +63,7 @@ python:
6363
operations: ""
6464
shared: ""
6565
webhooks: ""
66+
inferUnionDiscriminators: true
6667
inputModelSuffix: input
6768
legacyPyright: true
6869
license: ""

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.660.0
1+
speakeasyVersion: 1.661.1
22
sources:
33
openapi:
44
sourceNamespace: openapi
5-
sourceRevisionDigest: sha256:8ed82bb898862df99786a57bea021d25fa20c79933568472d90b62d9b6827671
6-
sourceBlobDigest: sha256:ac20904d5c385c30a2eb313813301e5fdc7386cc8d8a2df8d1bf88480128d2a1
5+
sourceRevisionDigest: sha256:0746393c1f5d78403005adfe508cab73ac75bf8d18157d23f6fdbc7f33cacf03
6+
sourceBlobDigest: sha256:0fa22f5e4ed26f9a68fd7d3c3cd0f2d6713deabcb5df83023cae02387df4e557
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1763971812
9+
- speakeasy-sdk-regen-1764100418
1010
- 1.0.0
1111
targets:
1212
python:
1313
source: openapi
1414
sourceNamespace: openapi
15-
sourceRevisionDigest: sha256:8ed82bb898862df99786a57bea021d25fa20c79933568472d90b62d9b6827671
16-
sourceBlobDigest: sha256:ac20904d5c385c30a2eb313813301e5fdc7386cc8d8a2df8d1bf88480128d2a1
15+
sourceRevisionDigest: sha256:0746393c1f5d78403005adfe508cab73ac75bf8d18157d23f6fdbc7f33cacf03
16+
sourceBlobDigest: sha256:0fa22f5e4ed26f9a68fd7d3c3cd0f2d6713deabcb5df83023cae02387df4e557
1717
codeSamplesNamespace: openapi-python-code-samples
18-
codeSamplesRevisionDigest: sha256:edf48dd7a1bad6235602a3a0bc781829f68214508973ca80fc5b6fa8a90ffad6
18+
codeSamplesRevisionDigest: sha256:5388ea5daf49e7227482b65acfd24b96ee0d8440dc4eb45f85aff8d398a6237d
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,4 +1168,14 @@ Based on:
11681168
### Generated
11691169
- [python v1.7.16] .
11701170
### Releases
1171-
- [PyPI v1.7.16] https://pypi.org/project/gr4vy/1.7.16 - .
1171+
- [PyPI v1.7.16] https://pypi.org/project/gr4vy/1.7.16 - .
1172+
1173+
## 2025-11-25 19:53:19
1174+
### Changes
1175+
Based on:
1176+
- OpenAPI Doc
1177+
- Speakeasy CLI 1.661.1 (2.763.2) https://github.com/speakeasy-api/speakeasy
1178+
### Generated
1179+
- [python v1.7.17] .
1180+
### Releases
1181+
- [PyPI v1.7.17] https://pypi.org/project/gr4vy/1.7.17 - .

docs/models/cybersourceoptions.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
| ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
88
| `meta_key_merchant_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The merchant ID to use for this transaction. This requires a meta key to be set up for use with Cybersource, and this overrides the connector configuration. | merchant-1234 |
99
| `merchant_defined_information` | Dict[str, *str*] | :heavy_minus_sign: | A list of merchant defined data to be passed to the Cybersource. Each key needs to be a numeric string. | {<br/>"1": "data"<br/>} |
10-
| `ship_to_method` | *OptionalNullable[str]* | :heavy_minus_sign: | The shipping method for this transaction. | sameday |
10+
| `ship_to_method` | *OptionalNullable[str]* | :heavy_minus_sign: | The shipping method for this transaction. | sameday |
11+
| `comments` | *OptionalNullable[str]* | :heavy_minus_sign: | Brief description of the order or any comment you wish to add to the order. | This order is for a new customer |

docs/models/responsecapturetransaction.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,72 @@ Successful Response
1111
value: models.TransactionOutput = /* values here */
1212
```
1313

14+
### `models.TransactionOutput`
15+
16+
```python
17+
value: models.TransactionOutput = /* values here */
18+
```
19+
20+
### `models.TransactionOutput`
21+
22+
```python
23+
value: models.TransactionOutput = /* values here */
24+
```
25+
26+
### `models.TransactionOutput`
27+
28+
```python
29+
value: models.TransactionOutput = /* values here */
30+
```
31+
32+
### `models.TransactionOutput`
33+
34+
```python
35+
value: models.TransactionOutput = /* values here */
36+
```
37+
38+
### `models.TransactionOutput`
39+
40+
```python
41+
value: models.TransactionOutput = /* values here */
42+
```
43+
44+
### `models.TransactionOutput`
45+
46+
```python
47+
value: models.TransactionOutput = /* values here */
48+
```
49+
50+
### `models.TransactionOutput`
51+
52+
```python
53+
value: models.TransactionOutput = /* values here */
54+
```
55+
56+
### `models.TransactionOutput`
57+
58+
```python
59+
value: models.TransactionOutput = /* values here */
60+
```
61+
62+
### `models.TransactionCaptureOutput`
63+
64+
```python
65+
value: models.TransactionCaptureOutput = /* values here */
66+
```
67+
68+
### `models.TransactionCaptureOutput`
69+
70+
```python
71+
value: models.TransactionCaptureOutput = /* values here */
72+
```
73+
74+
### `models.TransactionCaptureOutput`
75+
76+
```python
77+
value: models.TransactionCaptureOutput = /* values here */
78+
```
79+
1480
### `models.TransactionCaptureOutput`
1581

1682
```python

docs/models/responsevoidtransaction.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,72 @@ Successful Response
1111
value: models.TransactionOutput = /* values here */
1212
```
1313

14+
### `models.TransactionOutput`
15+
16+
```python
17+
value: models.TransactionOutput = /* values here */
18+
```
19+
20+
### `models.TransactionOutput`
21+
22+
```python
23+
value: models.TransactionOutput = /* values here */
24+
```
25+
26+
### `models.TransactionOutput`
27+
28+
```python
29+
value: models.TransactionOutput = /* values here */
30+
```
31+
32+
### `models.TransactionOutput`
33+
34+
```python
35+
value: models.TransactionOutput = /* values here */
36+
```
37+
38+
### `models.TransactionOutput`
39+
40+
```python
41+
value: models.TransactionOutput = /* values here */
42+
```
43+
44+
### `models.TransactionOutput`
45+
46+
```python
47+
value: models.TransactionOutput = /* values here */
48+
```
49+
50+
### `models.TransactionOutput`
51+
52+
```python
53+
value: models.TransactionOutput = /* values here */
54+
```
55+
56+
### `models.TransactionOutput`
57+
58+
```python
59+
value: models.TransactionOutput = /* values here */
60+
```
61+
62+
### `models.TransactionVoidOutput`
63+
64+
```python
65+
value: models.TransactionVoidOutput = /* values here */
66+
```
67+
68+
### `models.TransactionVoidOutput`
69+
70+
```python
71+
value: models.TransactionVoidOutput = /* values here */
72+
```
73+
74+
### `models.TransactionVoidOutput`
75+
76+
```python
77+
value: models.TransactionVoidOutput = /* values here */
78+
```
79+
1480
### `models.TransactionVoidOutput`
1581

1682
```python

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
[project]
33
name = "gr4vy"
4-
version = "1.7.16"
4+
version = "1.7.17"
55
description = "Python Client SDK Generated by Speakeasy."
66
authors = [{ name = "Gr4vy" },]
77
readme = "README-PYPI.md"

src/gr4vy/_version.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import importlib.metadata
44

55
__title__: str = "gr4vy"
6-
__version__: str = "1.7.16"
6+
__version__: str = "1.7.17"
77
__openapi_doc_version__: str = "1.0.0"
8-
__gen_version__: str = "2.760.2"
9-
__user_agent__: str = "speakeasy-sdk/python 1.7.16 2.760.2 1.0.0 gr4vy"
8+
__gen_version__: str = "2.763.2"
9+
__user_agent__: str = "speakeasy-sdk/python 1.7.17 2.763.2 1.0.0 gr4vy"
1010

1111
try:
1212
if __package__ is not None:

src/gr4vy/models/capture_transactionop.py

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@
1616
HeaderMetadata,
1717
PathParamMetadata,
1818
RequestMetadata,
19+
get_discriminator,
1920
)
2021
import pydantic
21-
from pydantic import model_serializer
22+
from pydantic import Discriminator, Tag, model_serializer
2223
from typing import List, Optional, Union
2324
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
2425

@@ -109,7 +110,22 @@ def serialize_model(self, handler):
109110
r"""Successful Response"""
110111

111112

112-
ResponseCaptureTransaction = TypeAliasType(
113-
"ResponseCaptureTransaction", Union[TransactionCaptureOutput, TransactionOutput]
114-
)
113+
ResponseCaptureTransaction = Annotated[
114+
Union[
115+
Annotated[TransactionOutput, Tag("processing")],
116+
Annotated[TransactionOutput, Tag("authorization_succeeded")],
117+
Annotated[TransactionOutput, Tag("authorization_declined")],
118+
Annotated[TransactionOutput, Tag("authorization_failed")],
119+
Annotated[TransactionOutput, Tag("authorization_voided")],
120+
Annotated[TransactionOutput, Tag("authorization_void_pending")],
121+
Annotated[TransactionOutput, Tag("capture_succeeded")],
122+
Annotated[TransactionOutput, Tag("capture_pending")],
123+
Annotated[TransactionOutput, Tag("buyer_approval_pending")],
124+
Annotated[TransactionCaptureOutput, Tag("succeeded")],
125+
Annotated[TransactionCaptureOutput, Tag("pending")],
126+
Annotated[TransactionCaptureOutput, Tag("declined")],
127+
Annotated[TransactionCaptureOutput, Tag("failed")],
128+
],
129+
Discriminator(lambda m: get_discriminator(m, "status", "status")),
130+
]
115131
r"""Successful Response"""

0 commit comments

Comments
 (0)