OpenAPI client for Cloudbeds Fiscal Document API.
Project description
Cloudbeds Fiscal Document
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The cloudbeds_fiscal_document package is automatically generated by the OpenAPI Generator project:
- API version: v1
- Package version: 1.1.0
- Generator version: 7.11.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 3.8+
Installation & Usage
This python library package is generated without supporting files like setup.py or requirements files
To be able to use it, you will need these dependencies in your own package that uses this library:
- urllib3 >= 1.25.3, < 3.0.0
- python-dateutil >= 2.8.2
- pydantic >= 2
- typing-extensions >= 4.7.1
Getting Started
In your own code, to use this library to connect and interact with Cloudbeds Fiscal Document, you can run the following:
import cloudbeds_fiscal_document
from cloudbeds_fiscal_document.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost:8700
# See configuration.py for a list of all supported configuration parameters.
configuration = cloudbeds_fiscal_document.Configuration(
host = "http://localhost:8700"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization (JWT): bearerAuth
configuration = cloudbeds_fiscal_document.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with cloudbeds_fiscal_document.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = cloudbeds_fiscal_document.ConfigsApi(api_client)
x_property_id = 56 # int | Property id
try:
# Get list of fiscal documents configs
api_response = api_instance.get_configs(x_property_id)
print("The response of ConfigsApi->get_configs:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling ConfigsApi->get_configs: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to http://localhost:8700
| Class | Method | HTTP request | Description |
|---|---|---|---|
| ConfigsApi | get_configs | GET /fiscal-document/v1/configs | Get list of fiscal documents configs |
| ConfigsApi | update_configs | PUT /fiscal-document/v1/configs/{documentKind} | |
| FiscalDocumentsApi | create_credit_note | POST /fiscal-document/v1/fiscal-documents/credit-note | |
| FiscalDocumentsApi | create_invoice | POST /fiscal-document/v1/fiscal-documents/invoice | |
| FiscalDocumentsApi | download_fiscal_document | GET /fiscal-document/v1/fiscal-documents/{id}/download | Download fiscal document |
| FiscalDocumentsApi | email_fiscal_document | POST /fiscal-document/v1/fiscal-documents/{id}/email | Email a fiscal document |
| FiscalDocumentsApi | get_fiscal_document_transactions | GET /fiscal-document/v1/fiscal-documents/transactions | Get list of fiscal documents |
| FiscalDocumentsApi | get_fiscal_document_transactions_by_id | GET /fiscal-document/v1/fiscal-documents/{id}/transactions | Get list of transactions for a given fiscal document id |
| FiscalDocumentsApi | get_fiscal_documents | GET /fiscal-document/v1/fiscal-documents | Get list of fiscal documents |
| FiscalDocumentsApi | put_fiscal_document | PUT /fiscal-document/v1/fiscal-documents/{id} |
Documentation For Models
- Action
- ApiError
- ConfigsResponse
- ConfigsUpdateRequest
- CreateCreditNoteRequest
- CreateInvoiceRequest
- DocumentAction
- FiscalDocumentDetailedResponse
- FiscalDocumentEmailRequest
- FiscalDocumentKind
- FiscalDocumentPaginated
- FiscalDocumentPatchRequest
- FiscalDocumentStatus
- FiscalDocumentSummaryResponse
- FiscalDocumentTransactionResponse
- FiscalDocumentTransactionsPaginated
- GovernmentIntegration
- GovernmentIntegrationQr
- GuestDetails
- SourceKind
Documentation For Authorization
Authentication schemes defined for the API:
bearerAuth
- Type: Bearer authentication (JWT)
Author
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cloudbeds_fiscal_document-1.1.0.tar.gz.
File metadata
- Download URL: cloudbeds_fiscal_document-1.1.0.tar.gz
- Upload date:
- Size: 35.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
010af513210067589821675d8697b9b505b84ea6137b805bd2009da1b5360f78
|
|
| MD5 |
ad22b34c5dde7f9d876d6e546023468c
|
|
| BLAKE2b-256 |
d1721a08db8fa0721cbb1c332aef7916839e63365789a6c879f5312b7a650b45
|
Provenance
The following attestation bundles were made for cloudbeds_fiscal_document-1.1.0.tar.gz:
Publisher:
publish.yaml on cloudbeds/cloudbeds-fiscal-document-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cloudbeds_fiscal_document-1.1.0.tar.gz -
Subject digest:
010af513210067589821675d8697b9b505b84ea6137b805bd2009da1b5360f78 - Sigstore transparency entry: 228404653
- Sigstore integration time:
-
Permalink:
cloudbeds/cloudbeds-fiscal-document-python@b19859e9c3609202d0ccd3dd0ee213fd53a6e633 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/cloudbeds
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@b19859e9c3609202d0ccd3dd0ee213fd53a6e633 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file cloudbeds_fiscal_document-1.1.0-py3-none-any.whl.
File metadata
- Download URL: cloudbeds_fiscal_document-1.1.0-py3-none-any.whl
- Upload date:
- Size: 76.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21f9f771fc1b6480f08cacc33cf016faed52e633b2191fb9206b0024c8f1c65a
|
|
| MD5 |
23f207ab53b2ea62f576f4567be59a5d
|
|
| BLAKE2b-256 |
0ceb1b09ce9047969cf9844b59e8950cd8dae25c5b884cb9e545303d01efe16a
|
Provenance
The following attestation bundles were made for cloudbeds_fiscal_document-1.1.0-py3-none-any.whl:
Publisher:
publish.yaml on cloudbeds/cloudbeds-fiscal-document-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cloudbeds_fiscal_document-1.1.0-py3-none-any.whl -
Subject digest:
21f9f771fc1b6480f08cacc33cf016faed52e633b2191fb9206b0024c8f1c65a - Sigstore transparency entry: 228404656
- Sigstore integration time:
-
Permalink:
cloudbeds/cloudbeds-fiscal-document-python@b19859e9c3609202d0ccd3dd0ee213fd53a6e633 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/cloudbeds
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@b19859e9c3609202d0ccd3dd0ee213fd53a6e633 -
Trigger Event:
workflow_dispatch
-
Statement type: