Skip to content

Commit 6693b9c

Browse files
Merge pull request #17 from cloudbeds/feat/update-fiscal-doc-api
feat: updated api code according to recent spec
2 parents b8a016b + ba3d2af commit 6693b9c

25 files changed

+1014
-29
lines changed

.openapi-generator/FILES

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ cloudbeds_fiscal_document/api_response.py
99
cloudbeds_fiscal_document/configuration.py
1010
cloudbeds_fiscal_document/docs/Action.md
1111
cloudbeds_fiscal_document/docs/AllocateReceiptPaymentRequest.md
12+
cloudbeds_fiscal_document/docs/AllocationsData.md
1213
cloudbeds_fiscal_document/docs/AllocationsSummary.md
1314
cloudbeds_fiscal_document/docs/ApiError.md
1415
cloudbeds_fiscal_document/docs/ConfigsApi.md
@@ -31,6 +32,7 @@ cloudbeds_fiscal_document/docs/FiscalDocumentPatchRequest.md
3132
cloudbeds_fiscal_document/docs/FiscalDocumentRecipient.md
3233
cloudbeds_fiscal_document/docs/FiscalDocumentStatus.md
3334
cloudbeds_fiscal_document/docs/FiscalDocumentSummaryResponse.md
35+
cloudbeds_fiscal_document/docs/FiscalDocumentTransactionAllocation.md
3436
cloudbeds_fiscal_document/docs/FiscalDocumentTransactionResponse.md
3537
cloudbeds_fiscal_document/docs/FiscalDocumentTransactionsForAllocationPaginated.md
3638
cloudbeds_fiscal_document/docs/FiscalDocumentTransactionsPaginated.md
@@ -57,12 +59,14 @@ cloudbeds_fiscal_document/docs/RecipientRequest.md
5759
cloudbeds_fiscal_document/docs/RecipientTaxInfo.md
5860
cloudbeds_fiscal_document/docs/RecipientType.md
5961
cloudbeds_fiscal_document/docs/RectifyInvoiceNoteRequest.md
62+
cloudbeds_fiscal_document/docs/SingleAllocation.md
6063
cloudbeds_fiscal_document/docs/SourceKind.md
6164
cloudbeds_fiscal_document/docs/TransactionForAllocationResponse.md
6265
cloudbeds_fiscal_document/exceptions.py
6366
cloudbeds_fiscal_document/models/__init__.py
6467
cloudbeds_fiscal_document/models/action.py
6568
cloudbeds_fiscal_document/models/allocate_receipt_payment_request.py
69+
cloudbeds_fiscal_document/models/allocations_data.py
6670
cloudbeds_fiscal_document/models/allocations_summary.py
6771
cloudbeds_fiscal_document/models/api_error.py
6872
cloudbeds_fiscal_document/models/configs_response.py
@@ -83,6 +87,7 @@ cloudbeds_fiscal_document/models/fiscal_document_patch_request.py
8387
cloudbeds_fiscal_document/models/fiscal_document_recipient.py
8488
cloudbeds_fiscal_document/models/fiscal_document_status.py
8589
cloudbeds_fiscal_document/models/fiscal_document_summary_response.py
90+
cloudbeds_fiscal_document/models/fiscal_document_transaction_allocation.py
8691
cloudbeds_fiscal_document/models/fiscal_document_transaction_response.py
8792
cloudbeds_fiscal_document/models/fiscal_document_transactions_for_allocation_paginated.py
8893
cloudbeds_fiscal_document/models/fiscal_document_transactions_paginated.py
@@ -108,7 +113,11 @@ cloudbeds_fiscal_document/models/recipient_request.py
108113
cloudbeds_fiscal_document/models/recipient_tax_info.py
109114
cloudbeds_fiscal_document/models/recipient_type.py
110115
cloudbeds_fiscal_document/models/rectify_invoice_note_request.py
116+
cloudbeds_fiscal_document/models/single_allocation.py
111117
cloudbeds_fiscal_document/models/source_kind.py
112118
cloudbeds_fiscal_document/models/transaction_for_allocation_response.py
113119
cloudbeds_fiscal_document/rest.py
114120
cloudbeds_fiscal_document/test/__init__.py
121+
cloudbeds_fiscal_document/test/test_allocations_data.py
122+
cloudbeds_fiscal_document/test/test_fiscal_document_transaction_allocation.py
123+
cloudbeds_fiscal_document/test/test_single_allocation.py

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
44
The `cloudbeds_fiscal_document` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

66
- API version: v1
7-
- Package version: 1.9.0
7+
- Package version: 1.9.2
88
- Generator version: 7.11.0
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010

@@ -86,6 +86,7 @@ Class | Method | HTTP request | Description
8686
*FiscalDocumentsApi* | [**create_simple_receipt**](cloudbeds_fiscal_document/docs/FiscalDocumentsApi.md#create_simple_receipt) | **POST** /fiscal-document/v1/fiscal-documents/simple-receipt | Create simple receipts.
8787
*FiscalDocumentsApi* | [**download_fiscal_document**](cloudbeds_fiscal_document/docs/FiscalDocumentsApi.md#download_fiscal_document) | **GET** /fiscal-document/v1/fiscal-documents/{id}/download | Download fiscal document
8888
*FiscalDocumentsApi* | [**email_fiscal_document**](cloudbeds_fiscal_document/docs/FiscalDocumentsApi.md#email_fiscal_document) | **POST** /fiscal-document/v1/fiscal-documents/{id}/email | Email a fiscal document
89+
*FiscalDocumentsApi* | [**get_allocations**](cloudbeds_fiscal_document/docs/FiscalDocumentsApi.md#get_allocations) | **GET** /fiscal-document/v1/fiscal-documents/allocations | Get payment allocation transactions
8990
*FiscalDocumentsApi* | [**get_allocations_summary**](cloudbeds_fiscal_document/docs/FiscalDocumentsApi.md#get_allocations_summary) | **GET** /fiscal-document/v1/fiscal-documents/allocations/summary | Get allocations summary
9091
*FiscalDocumentsApi* | [**get_credit_note_preview**](cloudbeds_fiscal_document/docs/FiscalDocumentsApi.md#get_credit_note_preview) | **POST** /fiscal-document/v1/fiscal-documents/credit-note/preview | Get fiscal document preview of the type credit note
9192
*FiscalDocumentsApi* | [**get_document_preview**](cloudbeds_fiscal_document/docs/FiscalDocumentsApi.md#get_document_preview) | **POST** /fiscal-document/v1/fiscal-documents/invoice/preview | Get fiscal document preview of the type invoice
@@ -106,6 +107,7 @@ Class | Method | HTTP request | Description
106107

107108
- [Action](cloudbeds_fiscal_document/docs/Action.md)
108109
- [AllocateReceiptPaymentRequest](cloudbeds_fiscal_document/docs/AllocateReceiptPaymentRequest.md)
110+
- [AllocationsData](cloudbeds_fiscal_document/docs/AllocationsData.md)
109111
- [AllocationsSummary](cloudbeds_fiscal_document/docs/AllocationsSummary.md)
110112
- [ApiError](cloudbeds_fiscal_document/docs/ApiError.md)
111113
- [ConfigsResponse](cloudbeds_fiscal_document/docs/ConfigsResponse.md)
@@ -126,6 +128,7 @@ Class | Method | HTTP request | Description
126128
- [FiscalDocumentRecipient](cloudbeds_fiscal_document/docs/FiscalDocumentRecipient.md)
127129
- [FiscalDocumentStatus](cloudbeds_fiscal_document/docs/FiscalDocumentStatus.md)
128130
- [FiscalDocumentSummaryResponse](cloudbeds_fiscal_document/docs/FiscalDocumentSummaryResponse.md)
131+
- [FiscalDocumentTransactionAllocation](cloudbeds_fiscal_document/docs/FiscalDocumentTransactionAllocation.md)
129132
- [FiscalDocumentTransactionResponse](cloudbeds_fiscal_document/docs/FiscalDocumentTransactionResponse.md)
130133
- [FiscalDocumentTransactionsForAllocationPaginated](cloudbeds_fiscal_document/docs/FiscalDocumentTransactionsForAllocationPaginated.md)
131134
- [FiscalDocumentTransactionsPaginated](cloudbeds_fiscal_document/docs/FiscalDocumentTransactionsPaginated.md)
@@ -151,6 +154,7 @@ Class | Method | HTTP request | Description
151154
- [RecipientTaxInfo](cloudbeds_fiscal_document/docs/RecipientTaxInfo.md)
152155
- [RecipientType](cloudbeds_fiscal_document/docs/RecipientType.md)
153156
- [RectifyInvoiceNoteRequest](cloudbeds_fiscal_document/docs/RectifyInvoiceNoteRequest.md)
157+
- [SingleAllocation](cloudbeds_fiscal_document/docs/SingleAllocation.md)
154158
- [SourceKind](cloudbeds_fiscal_document/docs/SourceKind.md)
155159
- [TransactionForAllocationResponse](cloudbeds_fiscal_document/docs/TransactionForAllocationResponse.md)
156160

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.9.1
1+
1.9.2

cloudbeds_fiscal_document/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
""" # noqa: E501
1515

1616

17-
__version__ = "1.9.0"
17+
__version__ = "1.9.2"
1818

1919
# import apis into sdk package
2020
from cloudbeds_fiscal_document.api.configs_api import ConfigsApi
@@ -35,6 +35,7 @@
3535
# import models into sdk package
3636
from cloudbeds_fiscal_document.models.action import Action
3737
from cloudbeds_fiscal_document.models.allocate_receipt_payment_request import AllocateReceiptPaymentRequest
38+
from cloudbeds_fiscal_document.models.allocations_data import AllocationsData
3839
from cloudbeds_fiscal_document.models.allocations_summary import AllocationsSummary
3940
from cloudbeds_fiscal_document.models.api_error import ApiError
4041
from cloudbeds_fiscal_document.models.configs_response import ConfigsResponse
@@ -55,6 +56,7 @@
5556
from cloudbeds_fiscal_document.models.fiscal_document_recipient import FiscalDocumentRecipient
5657
from cloudbeds_fiscal_document.models.fiscal_document_status import FiscalDocumentStatus
5758
from cloudbeds_fiscal_document.models.fiscal_document_summary_response import FiscalDocumentSummaryResponse
59+
from cloudbeds_fiscal_document.models.fiscal_document_transaction_allocation import FiscalDocumentTransactionAllocation
5860
from cloudbeds_fiscal_document.models.fiscal_document_transaction_response import FiscalDocumentTransactionResponse
5961
from cloudbeds_fiscal_document.models.fiscal_document_transactions_for_allocation_paginated import FiscalDocumentTransactionsForAllocationPaginated
6062
from cloudbeds_fiscal_document.models.fiscal_document_transactions_paginated import FiscalDocumentTransactionsPaginated
@@ -80,5 +82,6 @@
8082
from cloudbeds_fiscal_document.models.recipient_tax_info import RecipientTaxInfo
8183
from cloudbeds_fiscal_document.models.recipient_type import RecipientType
8284
from cloudbeds_fiscal_document.models.rectify_invoice_note_request import RectifyInvoiceNoteRequest
85+
from cloudbeds_fiscal_document.models.single_allocation import SingleAllocation
8386
from cloudbeds_fiscal_document.models.source_kind import SourceKind
8487
from cloudbeds_fiscal_document.models.transaction_for_allocation_response import TransactionForAllocationResponse

0 commit comments

Comments
 (0)