Python Client SDK Generated by Speakeasy
Project description
SDK Installation
pip install klarna-orders
SDK Example Usage
import klarna
from klarna.models import operations, shared
s = klarna.Klarna(
security=shared.Security(
api_key_auth="Bearer YOUR_BEARER_TOKEN_HERE",
),
)
req = operations.CancelAuthorizationRequest(
authorization_token="corrupti",
)
res = s.authorizations.cancel(req)
if res.status_code == 200:
# handle response
Available Resources and Operations
authorizations
cancel
- Cancel an existing authorization
orders
create
- Create a new order
sessions
create
- Create a new payment sessionread
- Read an existing payment sessionupdate
- Update an existing payment session
tokens
purchase
- Generate a consumer token
Maturity
This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally looking for the latest version.
Contributions
While we value open-source contributions to this SDK, this library is generated programmatically. Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release !
SDK Created by Speakeasy
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
klarna-orders-0.0.1.tar.gz
(24.8 kB
view hashes)
Built Distribution
Close
Hashes for klarna_orders-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4ba21420d6c9f524aba3eb794bb3d91d9c7e23e24840728f76891bcb40d9a47 |
|
MD5 | b4b4c5cee1f9d620d7f5dedf3c7a73f1 |
|
BLAKE2b-256 | dcf6407ab399c43d300dadf358330b098c560d3c9a01e15ea2de975683d2526e |