Skip to content

Commit e53ef16

Browse files
authored
Merge pull request #8 from cloudbeds/feat/v1.5
feat: v1.5
2 parents bebb501 + b340e56 commit e53ef16

12 files changed

+18
-9
lines changed

README.md

Lines changed: 1 addition & 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.4.0
7+
- Package version: 1.5.0
88
- Generator version: 7.11.0
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.4.0
1+
1.5.0

cloudbeds_fiscal_document/__init__.py

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

1616

17-
__version__ = "1.3.0"
17+
__version__ = "1.5.0"
1818

1919
# import apis into sdk package
2020
from cloudbeds_fiscal_document.api.configs_api import ConfigsApi

cloudbeds_fiscal_document/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __init__(
9090
self.default_headers[header_name] = header_value
9191
self.cookie = cookie
9292
# Set default User-Agent.
93-
self.user_agent = 'OpenAPI-Generator/1.3.0/python'
93+
self.user_agent = 'OpenAPI-Generator/1.5.0/python'
9494
self.client_side_validation = configuration.client_side_validation
9595

9696
def __enter__(self):

cloudbeds_fiscal_document/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ def to_debug_report(self) -> str:
504504
"OS: {env}\n"\
505505
"Python Version: {pyversion}\n"\
506506
"Version of the API: v1\n"\
507-
"SDK Package Version: 1.3.0".\
507+
"SDK Package Version: 1.5.0".\
508508
format(env=sys.platform, pyversion=sys.version)
509509

510510
def get_host_settings(self) -> List[HostSetting]:

cloudbeds_fiscal_document/docs/FiscalDocumentDetailedResponse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Name | Type | Description | Notes
2222
**status** | [**FiscalDocumentStatus**](FiscalDocumentStatus.md) | | [optional]
2323
**origin** | **str** | | [optional]
2424
**external_id** | **str** | | [optional]
25+
**fail_reason** | **str** | | [optional]
2526
**created_at** | **datetime** | | [optional]
2627
**parent_id** | **str** | | [optional]
2728
**updated_at** | **datetime** | | [optional]

cloudbeds_fiscal_document/docs/FiscalDocumentPatchRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**status** | [**FiscalDocumentStatus**](FiscalDocumentStatus.md) | | [optional]
9+
**fail_reason** | **str** | | [optional]
910
**government_integration** | [**GovernmentIntegration**](GovernmentIntegration.md) | | [optional]
1011

1112
## Example

cloudbeds_fiscal_document/docs/FiscalDocumentStatus.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Status of the fiscal document
1212

1313
* `PENDING_INTEGRATION` (value: `'PENDING_INTEGRATION'`)
1414

15+
* `COMPLETED_INTEGRATION` (value: `'COMPLETED_INTEGRATION'`)
16+
1517
* `CANCELED` (value: `'CANCELED'`)
1618

1719
* `OPEN` (value: `'OPEN'`)

cloudbeds_fiscal_document/models/fiscal_document_detailed_response.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,13 @@ class FiscalDocumentDetailedResponse(BaseModel):
5050
status: Optional[FiscalDocumentStatus] = None
5151
origin: Optional[StrictStr] = None
5252
external_id: Optional[StrictStr] = Field(default=None, alias="externalId")
53+
fail_reason: Optional[StrictStr] = Field(default=None, alias="failReason")
5354
created_at: Optional[datetime] = Field(default=None, alias="createdAt")
5455
parent_id: Optional[StrictStr] = Field(default=None, alias="parentId")
5556
updated_at: Optional[datetime] = Field(default=None, alias="updatedAt")
5657
government_integration: Optional[GovernmentIntegration] = Field(default=None, alias="governmentIntegration")
5758
actions: Optional[List[Action]] = Field(default=None, description="Returns the list of actions available for the transaction")
58-
__properties: ClassVar[List[str]] = ["id", "number", "propertyId", "userId", "userFullName", "sourceId", "sourceKind", "kind", "invoiceDate", "fileName", "amount", "balance", "dueDate", "recipients", "status", "origin", "externalId", "createdAt", "parentId", "updatedAt", "governmentIntegration", "actions"]
59+
__properties: ClassVar[List[str]] = ["id", "number", "propertyId", "userId", "userFullName", "sourceId", "sourceKind", "kind", "invoiceDate", "fileName", "amount", "balance", "dueDate", "recipients", "status", "origin", "externalId", "failReason", "createdAt", "parentId", "updatedAt", "governmentIntegration", "actions"]
5960

6061
model_config = ConfigDict(
6162
populate_by_name=True,
@@ -142,6 +143,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
142143
"status": obj.get("status"),
143144
"origin": obj.get("origin"),
144145
"externalId": obj.get("externalId"),
146+
"failReason": obj.get("failReason"),
145147
"createdAt": obj.get("createdAt"),
146148
"parentId": obj.get("parentId"),
147149
"updatedAt": obj.get("updatedAt"),

cloudbeds_fiscal_document/models/fiscal_document_patch_request.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import re # noqa: F401
1818
import json
1919

20-
from pydantic import BaseModel, ConfigDict, Field
20+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
2121
from typing import Any, ClassVar, Dict, List, Optional
2222
from cloudbeds_fiscal_document.models.fiscal_document_status import FiscalDocumentStatus
2323
from cloudbeds_fiscal_document.models.government_integration import GovernmentIntegration
@@ -29,8 +29,9 @@ class FiscalDocumentPatchRequest(BaseModel):
2929
FiscalDocumentPatchRequest
3030
""" # noqa: E501
3131
status: Optional[FiscalDocumentStatus] = None
32+
fail_reason: Optional[StrictStr] = Field(default=None, alias="failReason")
3233
government_integration: Optional[GovernmentIntegration] = Field(default=None, alias="governmentIntegration")
33-
__properties: ClassVar[List[str]] = ["status", "governmentIntegration"]
34+
__properties: ClassVar[List[str]] = ["status", "failReason", "governmentIntegration"]
3435

3536
model_config = ConfigDict(
3637
populate_by_name=True,
@@ -87,6 +88,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
8788

8889
_obj = cls.model_validate({
8990
"status": obj.get("status"),
91+
"failReason": obj.get("failReason"),
9092
"governmentIntegration": GovernmentIntegration.from_dict(obj["governmentIntegration"]) if obj.get("governmentIntegration") is not None else None
9193
})
9294
return _obj

0 commit comments

Comments
 (0)