Skip to content
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,195 changes: 1,080 additions & 1,115 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ generation:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
python:
version: 1.0.0-beta.6
version: 1.0.0-beta.7
additionalDependencies:
dev:
freezegun: ^1.5.1
Expand Down Expand Up @@ -52,8 +52,10 @@ python:
inputModelSuffix: input
maxMethodParams: 999
methodArguments: infer-optional-args
moduleName: ""
outputModelSuffix: output
packageName: gr4vy
pytestFilterWarnings: []
pytestTimeout: 0
responseFormat: flat
templateVersion: v2
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.545.0
speakeasyVersion: 1.546.0
sources:
openapi:
sourceNamespace: openapi
sourceRevisionDigest: sha256:a13e3fb29dd9350c13a7fc5565d8dab163c27ebc379dd24c7d173d06b8c9f82a
sourceRevisionDigest: sha256:302e41905636cd99789f45d7ece4efed8579973af8ddbbc5530abfa8710736fc
sourceBlobDigest: sha256:e61cb351f757d275c72b7d8f17a42285f569b21f95831057dbc42f3caea1b0e2
tags:
- latest
- speakeasy-sdk-regen-1747355374
- speakeasy-sdk-regen-1747388838
- 1.0.0
targets:
python:
source: openapi
sourceNamespace: openapi
sourceRevisionDigest: sha256:a13e3fb29dd9350c13a7fc5565d8dab163c27ebc379dd24c7d173d06b8c9f82a
sourceRevisionDigest: sha256:302e41905636cd99789f45d7ece4efed8579973af8ddbbc5530abfa8710736fc
sourceBlobDigest: sha256:e61cb351f757d275c72b7d8f17a42285f569b21f95831057dbc42f3caea1b0e2
codeSamplesNamespace: oas-python-code-samples
codeSamplesRevisionDigest: sha256:fc09847b168d53844266c2522531708795f144176d4aa94ccb0a75ba0ba5e61c
codeSamplesRevisionDigest: sha256:a847f715c6bc7f4addaaccb87a6463fcc2f5968e268669556d4cc511f93fa8b5
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,14 @@ Based on:
### Generated
- [python v1.0.0-beta.6] .
### Releases
- [PyPI v1.0.0-beta.6] https://pypi.org/project/gr4vy/1.0.0-beta.6 - .
- [PyPI v1.0.0-beta.6] https://pypi.org/project/gr4vy/1.0.0-beta.6 - .

## 2025-05-16 09:47:02
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.546.0 (2.603.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.0.0-beta.7] .
### Releases
- [PyPI v1.0.0-beta.7] https://pypi.org/project/gr4vy/1.0.0-beta.7 - .
4 changes: 2 additions & 2 deletions docs/sdks/buyers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ with Gr4vy(
},
"tax_id": {
"value": "12345678931",
"kind": "jp.cn",
"kind": "ca.pst_mb",
},
})

Expand Down Expand Up @@ -239,7 +239,7 @@ with Gr4vy(
},
"tax_id": {
"value": "12345678931",
"kind": "th.id",
"kind": "au.abn",
},
})

Expand Down
55 changes: 21 additions & 34 deletions docs/sdks/checkoutsessions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,25 @@ with Gr4vy(
"gear",
],
product_type="physical",
seller_country="US",
seller_country="GB",
),
models.CartItem(
name="GoPro HD",
quantity=2,
unit_amount=1299,
discount_amount=0,
tax_amount=0,
external_identifier="goprohd",
sku="GPHD1078",
product_url="https://example.com/catalog/go-pro-hd",
image_url="https://example.com/images/go-pro-hd.jpg",
categories=[
"camera",
"travel",
"gear",
],
product_type="physical",
seller_country="GB",
),
models.CartItem(
name="GoPro HD",
Expand Down Expand Up @@ -92,7 +110,7 @@ with Gr4vy(
),
tax_id=models.TaxID(
value="12345678931",
kind="ar.cuil",
kind="ar.cuit",
),
),
shipping_details=models.ShippingDetailsCreate(
Expand Down Expand Up @@ -226,19 +244,6 @@ with Gr4vy(
title="Mr.",
country_code="US",
),
models.AirlinePassenger(
age_group="adult",
date_of_birth=date.fromisoformat("2013-07-16"),
email_address="[email protected]",
first_name="John",
frequent_flyer_number="15885566",
last_name="Luhn",
passport_number="11117700225",
phone_number="+1234567890",
ticket_number="BA1236699999",
title="Mr.",
country_code="US",
),
],
reservation_system="Amadeus",
restricted_ticket=False,
Expand Down Expand Up @@ -344,24 +349,6 @@ with Gr4vy(
"product_type": "physical",
"seller_country": "GB",
},
{
"name": "GoPro HD",
"quantity": 2,
"unit_amount": 1299,
"discount_amount": 0,
"tax_amount": 0,
"external_identifier": "goprohd",
"sku": "GPHD1078",
"product_url": "https://example.com/catalog/go-pro-hd",
"image_url": "https://example.com/images/go-pro-hd.jpg",
"categories": [
"camera",
"travel",
"gear",
],
"product_type": "physical",
"seller_country": "US",
},
], metadata={
"cohort": "cohort-a",
"order_id": "order-12345",
Expand All @@ -386,7 +373,7 @@ with Gr4vy(
),
tax_id=models.TaxID(
value="12345678931",
kind="my.nric",
kind="my.sst",
),
),
shipping_details=models.ShippingDetailsCreate(
Expand Down
4 changes: 2 additions & 2 deletions docs/sdks/digitalwallets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ with Gr4vy(
merchant_account_id="default",
) as g_client:

res = g_client.digital_wallets.create(provider="google", merchant_name="<value>", accept_terms_and_conditions=True, merchant_account_id="default", merchant_country_code="GB")
res = g_client.digital_wallets.create(provider="click-to-pay", merchant_name="<value>", accept_terms_and_conditions=False, merchant_account_id="default", merchant_country_code="US")

# Handle response
print(res)
Expand Down Expand Up @@ -254,7 +254,7 @@ with Gr4vy(
merchant_account_id="default",
) as g_client:

res = g_client.digital_wallets.update(digital_wallet_id="1808f5e6-b49c-4db9-94fa-22371ea352f5", merchant_account_id="default", merchant_country_code="US")
res = g_client.digital_wallets.update(digital_wallet_id="1808f5e6-b49c-4db9-94fa-22371ea352f5", merchant_account_id="default", merchant_country_code="DE")

# Handle response
print(res)
Expand Down
8 changes: 3 additions & 5 deletions docs/sdks/paymentmethods/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,11 @@ with Gr4vy(
) as g_client:

res = g_client.payment_methods.create(request_body={
"method": "paypal",
"method": "checkout-session",
"id": "4137b1cf-39ac-42a8-bad6-1c680d5dab6b",
"external_identifier": "card-12345",
"buyer_id": "fe26475d-ec3e-4884-9553-f7356683f7f9",
"buyer_external_identifier": "buyer-12345",
"country": "GB",
"currency": "GBP",
"redirect_url": "https://standard-utilization.com/",
"external_identifier": "payment-method-12345",
}, merchant_account_id="default")

# Handle response
Expand Down
38 changes: 1 addition & 37 deletions docs/sdks/paymentoptions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,43 +42,7 @@ with Gr4vy(
"gear",
],
"product_type": "physical",
"seller_country": "GB",
},
{
"name": "GoPro HD",
"quantity": 2,
"unit_amount": 1299,
"discount_amount": 0,
"tax_amount": 0,
"external_identifier": "goprohd",
"sku": "GPHD1078",
"product_url": "https://example.com/catalog/go-pro-hd",
"image_url": "https://example.com/images/go-pro-hd.jpg",
"categories": [
"camera",
"travel",
"gear",
],
"product_type": "physical",
"seller_country": "GB",
},
{
"name": "GoPro HD",
"quantity": 2,
"unit_amount": 1299,
"discount_amount": 0,
"tax_amount": 0,
"external_identifier": "goprohd",
"sku": "GPHD1078",
"product_url": "https://example.com/catalog/go-pro-hd",
"image_url": "https://example.com/images/go-pro-hd.jpg",
"categories": [
"camera",
"travel",
"gear",
],
"product_type": "physical",
"seller_country": "GB",
"seller_country": "US",
},
])

Expand Down
4 changes: 1 addition & 3 deletions docs/sdks/paymentservicedefinitions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,7 @@ with Gr4vy(
) as g_client:

res = g_client.payment_service_definitions.session(payment_service_definition_id="adyen-ideal", request_body={
"key": "<value>",
"key1": "<value>",
"key2": "<value>",

})

# Handle response
Expand Down
45 changes: 19 additions & 26 deletions docs/sdks/paymentservices/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ with Gr4vy(
"key": "api_key",
"value": "key-12345",
},
{
"key": "api_key",
"value": "key-12345",
},
], accepted_currencies=[
"EUR",
"GBP",
Expand All @@ -111,7 +115,11 @@ with Gr4vy(
"key": "api_key",
"value": "key-12345",
},
], position=1, active=True, merchant_profile={
{
"key": "api_key",
"value": "key-12345",
},
], position=1, active=False, merchant_profile={
"key": {
"merchant_acquirer_bin": "516327",
"merchant_url": "https://example.com",
Expand All @@ -120,6 +128,14 @@ with Gr4vy(
"merchant_country_code": "USD",
"merchant_category_code": "1234",
},
"key1": {
"merchant_acquirer_bin": "516327",
"merchant_url": "https://example.com",
"merchant_acquirer_id": "123456789012345",
"merchant_name": "Acme Inc.",
"merchant_country_code": "USD",
"merchant_category_code": "1234",
},
}, payment_method_tokenization_enabled=True, network_tokens_enabled=True, open_loop=True)

# Handle response
Expand Down Expand Up @@ -260,14 +276,6 @@ with Gr4vy(
"merchant_country_code": "USD",
"merchant_category_code": "1234",
},
"key1": {
"merchant_acquirer_bin": "516327",
"merchant_url": "https://example.com",
"merchant_acquirer_id": "123456789012345",
"merchant_name": "Acme Inc.",
"merchant_country_code": "USD",
"merchant_category_code": "1234",
},
}, payment_method_tokenization_enabled=True, network_tokens_enabled=True, open_loop=True)

# Handle response
Expand Down Expand Up @@ -392,20 +400,7 @@ with Gr4vy(
merchant_account_id="default",
) as g_client:

res = g_client.payment_services.verify(payment_service_definition_id="stripe-card", fields=[
{
"key": "api_key",
"value": "key-12345",
},
{
"key": "api_key",
"value": "key-12345",
},
{
"key": "api_key",
"value": "key-12345",
},
], merchant_account_id="default", payment_service_id="fffd152a-9532-4087-9a4f-de58754210f0")
res = g_client.payment_services.verify(payment_service_definition_id="stripe-card", fields=[], merchant_account_id="default", payment_service_id="fffd152a-9532-4087-9a4f-de58754210f0")

# Handle response
print(res)
Expand Down Expand Up @@ -464,9 +459,7 @@ with Gr4vy(
) as g_client:

res = g_client.payment_services.session(payment_service_id="fffd152a-9532-4087-9a4f-de58754210f0", request_body={
"key": "<value>",
"key1": "<value>",
"key2": "<value>",

}, merchant_account_id="default")

# Handle response
Expand Down
2 changes: 1 addition & 1 deletion docs/sdks/paymentservicetokens/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ with Gr4vy(
merchant_account_id="default",
) as g_client:

res = g_client.payment_methods.payment_service_tokens.create(payment_method_id="ef9496d8-53a5-4aad-8ca2-00eb68334389", payment_service_id="fffd152a-9532-4087-9a4f-de58754210f0", redirect_url="https://probable-heating.com/", merchant_account_id="default", security_code="123")
res = g_client.payment_methods.payment_service_tokens.create(payment_method_id="ef9496d8-53a5-4aad-8ca2-00eb68334389", payment_service_id="fffd152a-9532-4087-9a4f-de58754210f0", redirect_url="https://dual-futon.biz", merchant_account_id="default", security_code="123")

# Handle response
print(res)
Expand Down
6 changes: 3 additions & 3 deletions docs/sdks/payouts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ with Gr4vy(
merchant_account_id="default",
) as g_client:

res = g_client.payouts.create(amount=1299, currency="GBP", payment_service_id="ed8bd87d-85ad-40cf-8e8f-007e21e55aad", payment_method={
res = g_client.payouts.create(amount=1299, currency="USD", payment_service_id="ed8bd87d-85ad-40cf-8e8f-007e21e55aad", payment_method={
"method": "id",
"id": "852b951c-d7ea-4c98-b09e-4a1c9e97c077",
}, merchant_account_id="default", category="online_gambling", external_identifier="payout-12345", buyer_id="fe26475d-ec3e-4884-9553-f7356683f7f9", buyer=models.GuestBuyerInput(
Expand All @@ -107,7 +107,7 @@ with Gr4vy(
),
tax_id=models.TaxID(
value="12345678931",
kind="id.nik",
kind="no.vat",
),
),
shipping_details=models.ShippingDetailsCreate(
Expand Down Expand Up @@ -216,7 +216,7 @@ with Gr4vy(
merchant_account_id="default",
) as g_client:

res = g_client.payouts.get(payout_id="b888f774-3e7c-4135-a18c-6b985523c4bc", merchant_account_id="default")
res = g_client.payouts.get(payout_id="4344fef2-bc2f-49a6-924f-343e62f67224", merchant_account_id="default")

# Handle response
print(res)
Expand Down
Loading