cloudbeds-fiscal-document 1.9.2__py3-none-any.whl → 1.11.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. cloudbeds_fiscal_document/__init__.py +5 -1
  2. cloudbeds_fiscal_document/api/configs_api.py +941 -92
  3. cloudbeds_fiscal_document/api/fiscal_documents_api.py +304 -3
  4. cloudbeds_fiscal_document/api_client.py +1 -1
  5. cloudbeds_fiscal_document/configuration.py +1 -1
  6. cloudbeds_fiscal_document/models/__init__.py +4 -0
  7. cloudbeds_fiscal_document/models/configs_response.py +13 -2
  8. cloudbeds_fiscal_document/models/configs_update_request.py +8 -2
  9. cloudbeds_fiscal_document/models/create_invoice_request.py +5 -3
  10. cloudbeds_fiscal_document/models/create_receipt_request.py +3 -5
  11. cloudbeds_fiscal_document/models/document_action.py +1 -0
  12. cloudbeds_fiscal_document/models/fiscal_document_detailed_response.py +5 -3
  13. cloudbeds_fiscal_document/models/fiscal_document_kind.py +1 -1
  14. cloudbeds_fiscal_document/models/get_invoice_preview_request.py +5 -3
  15. cloudbeds_fiscal_document/models/get_logo_response.py +87 -0
  16. cloudbeds_fiscal_document/models/government_integration.py +3 -5
  17. cloudbeds_fiscal_document/models/preview_request.py +102 -0
  18. cloudbeds_fiscal_document/models/property_configs_response.py +100 -0
  19. cloudbeds_fiscal_document/models/transaction_for_allocation_response.py +4 -1
  20. cloudbeds_fiscal_document/models/transaction_status.py +37 -0
  21. cloudbeds_fiscal_document/test/test_configs_api.py +28 -0
  22. cloudbeds_fiscal_document/test/test_configs_response.py +9 -1
  23. cloudbeds_fiscal_document/test/test_configs_update_request.py +12 -4
  24. cloudbeds_fiscal_document/test/test_create_credit_note_request.py +13 -6
  25. cloudbeds_fiscal_document/test/test_create_invoice_request.py +22 -8
  26. cloudbeds_fiscal_document/test/test_fiscal_document_detailed_response.py +32 -5
  27. cloudbeds_fiscal_document/test/test_fiscal_document_paginated.py +29 -7
  28. cloudbeds_fiscal_document/test/test_fiscal_document_patch_request.py +3 -1
  29. cloudbeds_fiscal_document/test/test_fiscal_document_recipient.py +25 -3
  30. cloudbeds_fiscal_document/test/test_fiscal_document_summary_response.py +2 -1
  31. cloudbeds_fiscal_document/test/test_fiscal_document_transaction_response.py +7 -1
  32. cloudbeds_fiscal_document/test/test_fiscal_document_transactions_for_allocation_paginated.py +1 -0
  33. cloudbeds_fiscal_document/test/test_fiscal_document_transactions_paginated.py +7 -1
  34. cloudbeds_fiscal_document/test/test_fiscal_documents_api.py +113 -1
  35. cloudbeds_fiscal_document/test/test_get_invoice_preview_request.py +2 -1
  36. cloudbeds_fiscal_document/test/test_get_logo_response.py +51 -0
  37. cloudbeds_fiscal_document/test/test_government_integration.py +2 -1
  38. cloudbeds_fiscal_document/test/test_preview_request.py +57 -0
  39. cloudbeds_fiscal_document/test/test_property_configs_response.py +84 -0
  40. cloudbeds_fiscal_document/test/test_recipient_details.py +4 -2
  41. cloudbeds_fiscal_document/test/test_recipient_tax_info.py +2 -1
  42. cloudbeds_fiscal_document/test/test_rectify_invoice_note_request.py +9 -0
  43. cloudbeds_fiscal_document/test/test_transaction_for_allocation_response.py +3 -1
  44. cloudbeds_fiscal_document/test/test_transaction_status.py +33 -0
  45. {cloudbeds_fiscal_document-1.9.2.dist-info → cloudbeds_fiscal_document-1.11.0.dist-info}/METADATA +13 -7
  46. {cloudbeds_fiscal_document-1.9.2.dist-info → cloudbeds_fiscal_document-1.11.0.dist-info}/RECORD +49 -41
  47. {cloudbeds_fiscal_document-1.9.2.dist-info → cloudbeds_fiscal_document-1.11.0.dist-info}/WHEEL +0 -0
  48. {cloudbeds_fiscal_document-1.9.2.dist-info → cloudbeds_fiscal_document-1.11.0.dist-info}/licenses/LICENSE +0 -0
  49. {cloudbeds_fiscal_document-1.9.2.dist-info → cloudbeds_fiscal_document-1.11.0.dist-info}/top_level.txt +0 -0
@@ -40,25 +40,33 @@ class TestFiscalDocumentDetailedResponse(unittest.TestCase):
40
40
  property_id = '',
41
41
  user_id = '',
42
42
  user_full_name = '',
43
+ source_name = '',
43
44
  source_id = '',
44
45
  source_kind = 'GROUP_PROFILE',
45
46
  kind = 'INVOICE',
46
47
  invoice_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
48
+ invoice_date_property_timezone = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
47
49
  file_name = '',
48
50
  amount = 1.337,
49
51
  balance = 1.337,
50
52
  due_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
53
+ due_date_property_timezone = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
51
54
  recipients = [
52
55
  cloudbeds_fiscal_document.models.recipient_details.RecipientDetails(
53
- id = '',
56
+ id = '0',
54
57
  first_name = '',
55
58
  last_name = '',
56
- email = '', )
59
+ email = '',
60
+ type = 'COMPANY',
61
+ company_name = '', )
57
62
  ],
58
63
  status = 'COMPLETED',
59
- external_source = '',
64
+ origin = '',
60
65
  external_id = '',
66
+ fail_reason = '',
67
+ method = 'VOID',
61
68
  created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
69
+ parent_id = '',
62
70
  updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
63
71
  government_integration = cloudbeds_fiscal_document.models.government_integration.GovernmentIntegration(
64
72
  number = '',
@@ -70,11 +78,30 @@ class TestFiscalDocumentDetailedResponse(unittest.TestCase):
70
78
  url = '',
71
79
  official_id = '',
72
80
  external_id = '',
73
- rectifying_invoice_type = '', ),
81
+ rectifying_invoice_type = '',
82
+ cancellation_failed_fallback_status = 'COMPLETED', ),
83
+ latest_linked_document = cloudbeds_fiscal_document.models.latest_linked_document.LatestLinkedDocument(
84
+ id = '',
85
+ number = '',
86
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
87
+ kind = 'INVOICE',
88
+ status = 'COMPLETED', ),
89
+ linked_documents = [
90
+ cloudbeds_fiscal_document.models.linked_document.LinkedDocument(
91
+ id = '',
92
+ number = '',
93
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
94
+ kind = 'INVOICE',
95
+ status = 'COMPLETED',
96
+ is_latest = True,
97
+ relationship_type = 'PARENT', )
98
+ ],
74
99
  actions = [
75
100
  cloudbeds_fiscal_document.models.action.Action(
76
101
  type = 'CANCEL', )
77
- ]
102
+ ],
103
+ source_identifier = '',
104
+ simplified = True
78
105
  )
79
106
  else:
80
107
  return FiscalDocumentDetailedResponse(
@@ -42,25 +42,33 @@ class TestFiscalDocumentPaginated(unittest.TestCase):
42
42
  property_id = '',
43
43
  user_id = '',
44
44
  user_full_name = '',
45
+ source_name = '',
45
46
  source_id = '',
46
47
  source_kind = 'GROUP_PROFILE',
47
48
  kind = 'INVOICE',
48
49
  invoice_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
50
+ invoice_date_property_timezone = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
49
51
  file_name = '',
50
52
  amount = 1.337,
51
53
  balance = 1.337,
52
54
  due_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
55
+ due_date_property_timezone = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
53
56
  recipients = [
54
57
  cloudbeds_fiscal_document.models.recipient_details.RecipientDetails(
55
- id = '',
58
+ id = '0',
56
59
  first_name = '',
57
60
  last_name = '',
58
- email = '', )
61
+ email = '',
62
+ type = 'COMPANY',
63
+ company_name = '', )
59
64
  ],
60
65
  status = 'COMPLETED',
61
- external_source = '',
66
+ origin = '',
62
67
  external_id = '',
68
+ fail_reason = '',
69
+ method = 'VOID',
63
70
  created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
71
+ parent_id = '',
64
72
  updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
65
73
  government_integration = cloudbeds_fiscal_document.models.government_integration.GovernmentIntegration(
66
74
  number = '',
@@ -71,11 +79,25 @@ class TestFiscalDocumentPaginated(unittest.TestCase):
71
79
  url = '',
72
80
  official_id = '',
73
81
  external_id = '',
74
- rectifying_invoice_type = '', ),
82
+ rectifying_invoice_type = '',
83
+ cancellation_failed_fallback_status = 'COMPLETED', ),
84
+ latest_linked_document = cloudbeds_fiscal_document.models.latest_linked_document.LatestLinkedDocument(
85
+ id = '',
86
+ number = '',
87
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ),
88
+ linked_documents = [
89
+ cloudbeds_fiscal_document.models.linked_document.LinkedDocument(
90
+ id = '',
91
+ number = '',
92
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
93
+ is_latest = True,
94
+ relationship_type = 'PARENT', )
95
+ ],
75
96
  actions = [
76
- cloudbeds_fiscal_document.models.action.Action(
77
- type = 'CANCEL', )
78
- ], )
97
+ cloudbeds_fiscal_document.models.action.Action()
98
+ ],
99
+ source_identifier = '',
100
+ simplified = True, )
79
101
  ],
80
102
  next_page_token = ''
81
103
  )
@@ -36,6 +36,7 @@ class TestFiscalDocumentPatchRequest(unittest.TestCase):
36
36
  if include_optional:
37
37
  return FiscalDocumentPatchRequest(
38
38
  status = 'COMPLETED',
39
+ fail_reason = '',
39
40
  government_integration = cloudbeds_fiscal_document.models.government_integration.GovernmentIntegration(
40
41
  number = '',
41
42
  series = '',
@@ -46,7 +47,8 @@ class TestFiscalDocumentPatchRequest(unittest.TestCase):
46
47
  url = '',
47
48
  official_id = '',
48
49
  external_id = '',
49
- rectifying_invoice_type = '', )
50
+ rectifying_invoice_type = '',
51
+ cancellation_failed_fallback_status = 'COMPLETED', )
50
52
  )
51
53
  else:
52
54
  return FiscalDocumentPatchRequest(
@@ -35,7 +35,7 @@ class TestFiscalDocumentRecipient(unittest.TestCase):
35
35
  model = FiscalDocumentRecipient()
36
36
  if include_optional:
37
37
  return FiscalDocumentRecipient(
38
- id = '',
38
+ id = '0',
39
39
  first_name = '',
40
40
  last_name = '',
41
41
  email = '',
@@ -47,10 +47,32 @@ class TestFiscalDocumentRecipient(unittest.TestCase):
47
47
  state = '',
48
48
  zip_code = '',
49
49
  country = '', ),
50
+ company = cloudbeds_fiscal_document.models.recipient_company.RecipientCompany(
51
+ name = '',
52
+ tax_id = '',
53
+ tax_id_type = '',
54
+ address1 = '',
55
+ address2 = '',
56
+ city = '',
57
+ state = '',
58
+ zip_code = '',
59
+ country = '', ),
50
60
  tax = cloudbeds_fiscal_document.models.recipient_tax_info.RecipientTaxInfo(
51
- id = '', ),
61
+ id = '',
62
+ company_name = '', ),
63
+ contact_details = cloudbeds_fiscal_document.models.recipient_contact_details.RecipientContactDetails(
64
+ phone = '',
65
+ gender = '',
66
+ cell_phone = '',
67
+ birthday = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ),
68
+ document = cloudbeds_fiscal_document.models.recipient_document.RecipientDocument(
69
+ type = '',
70
+ number = '',
71
+ issuing_country = '',
72
+ issue_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
73
+ expiration_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ),
52
74
  country_data = {
53
- 'key' : None
75
+ 'key' : null
54
76
  }
55
77
  )
56
78
  else:
@@ -48,7 +48,8 @@ class TestFiscalDocumentSummaryResponse(unittest.TestCase):
48
48
  url = '',
49
49
  official_id = '',
50
50
  external_id = '',
51
- rectifying_invoice_type = '', ),
51
+ rectifying_invoice_type = '',
52
+ cancellation_failed_fallback_status = 'COMPLETED', ),
52
53
  linked_to = ''
53
54
  )
54
55
  else:
@@ -44,7 +44,13 @@ class TestFiscalDocumentTransactionResponse(unittest.TestCase):
44
44
  description = '',
45
45
  internal_code = '',
46
46
  amount = 1.337,
47
- folio_id = ''
47
+ folio_id = '',
48
+ status = 'PENDING',
49
+ paid_amount = 1.337,
50
+ allocations = [
51
+ cloudbeds_fiscal_document.models.fiscal_document_transaction_allocation.FiscalDocumentTransactionAllocation(
52
+ receipt_number = '', )
53
+ ]
48
54
  )
49
55
  else:
50
56
  return FiscalDocumentTransactionResponse(
@@ -46,6 +46,7 @@ class TestFiscalDocumentTransactionsForAllocationPaginated(unittest.TestCase):
46
46
  internal_code = '',
47
47
  amount = 1.337,
48
48
  allocated_amount = 1.337,
49
+ status = 'POSTED',
49
50
  taxes = [
50
51
  cloudbeds_fiscal_document.models.transaction_for_allocation_response.TransactionForAllocationResponse(
51
52
  id = '',
@@ -46,7 +46,13 @@ class TestFiscalDocumentTransactionsPaginated(unittest.TestCase):
46
46
  description = '',
47
47
  internal_code = '',
48
48
  amount = 1.337,
49
- folio_id = '', )
49
+ folio_id = '',
50
+ status = 'PENDING',
51
+ paid_amount = 1.337,
52
+ allocations = [
53
+ cloudbeds_fiscal_document.models.fiscal_document_transaction_allocation.FiscalDocumentTransactionAllocation(
54
+ receipt_number = '', )
55
+ ], )
50
56
  ],
51
57
  next_page_token = ''
52
58
  )
@@ -26,6 +26,13 @@ class TestFiscalDocumentsApi(unittest.TestCase):
26
26
  def tearDown(self) -> None:
27
27
  pass
28
28
 
29
+ def test_allocate_receipt_payment(self) -> None:
30
+ """Test case for allocate_receipt_payment
31
+
32
+ Allocate payment associated with receipt to charge transactions.
33
+ """
34
+ pass
35
+
29
36
  def test_create_credit_note(self) -> None:
30
37
  """Test case for create_credit_note
31
38
 
@@ -40,6 +47,34 @@ class TestFiscalDocumentsApi(unittest.TestCase):
40
47
  """
41
48
  pass
42
49
 
50
+ def test_create_pro_forma_invoice(self) -> None:
51
+ """Test case for create_pro_forma_invoice
52
+
53
+ Create a fiscal document of the type pro forma invoice
54
+ """
55
+ pass
56
+
57
+ def test_create_receipt(self) -> None:
58
+ """Test case for create_receipt
59
+
60
+ Create receipt for a payment.
61
+ """
62
+ pass
63
+
64
+ def test_create_rectify_invoice(self) -> None:
65
+ """Test case for create_rectify_invoice
66
+
67
+ Create a fiscal document of the type rectify invoice
68
+ """
69
+ pass
70
+
71
+ def test_create_simple_receipt(self) -> None:
72
+ """Test case for create_simple_receipt
73
+
74
+ Create simple receipts.
75
+ """
76
+ pass
77
+
43
78
  def test_download_fiscal_document(self) -> None:
44
79
  """Test case for download_fiscal_document
45
80
 
@@ -54,6 +89,34 @@ class TestFiscalDocumentsApi(unittest.TestCase):
54
89
  """
55
90
  pass
56
91
 
92
+ def test_get_allocations(self) -> None:
93
+ """Test case for get_allocations
94
+
95
+ Get payment allocation transactions
96
+ """
97
+ pass
98
+
99
+ def test_get_allocations_summary(self) -> None:
100
+ """Test case for get_allocations_summary
101
+
102
+ Get allocations summary
103
+ """
104
+ pass
105
+
106
+ def test_get_credit_note_preview(self) -> None:
107
+ """Test case for get_credit_note_preview
108
+
109
+ Get fiscal document preview of the type credit note
110
+ """
111
+ pass
112
+
113
+ def test_get_document_preview(self) -> None:
114
+ """Test case for get_document_preview
115
+
116
+ Get fiscal document preview of the type invoice
117
+ """
118
+ pass
119
+
57
120
  def test_get_fiscal_document_recipients_by_id(self) -> None:
58
121
  """Test case for get_fiscal_document_recipients_by_id
59
122
 
@@ -64,7 +127,7 @@ class TestFiscalDocumentsApi(unittest.TestCase):
64
127
  def test_get_fiscal_document_transactions(self) -> None:
65
128
  """Test case for get_fiscal_document_transactions
66
129
 
67
- Get list of fiscal documents
130
+ Get available transactions for fiscal documents
68
131
  """
69
132
  pass
70
133
 
@@ -75,6 +138,13 @@ class TestFiscalDocumentsApi(unittest.TestCase):
75
138
  """
76
139
  pass
77
140
 
141
+ def test_get_fiscal_document_transactions_for_allocation(self) -> None:
142
+ """Test case for get_fiscal_document_transactions_for_allocation
143
+
144
+ Get available transactions for allocations
145
+ """
146
+ pass
147
+
78
148
  def test_get_fiscal_documents(self) -> None:
79
149
  """Test case for get_fiscal_documents
80
150
 
@@ -82,6 +152,34 @@ class TestFiscalDocumentsApi(unittest.TestCase):
82
152
  """
83
153
  pass
84
154
 
155
+ def test_get_pro_forma_preview(self) -> None:
156
+ """Test case for get_pro_forma_preview
157
+
158
+ Create a fiscal document of the type pro forma invoice
159
+ """
160
+ pass
161
+
162
+ def test_get_rectify_invoice_preview(self) -> None:
163
+ """Test case for get_rectify_invoice_preview
164
+
165
+ Get fiscal document preview of the type rectify invoice
166
+ """
167
+ pass
168
+
169
+ def test_get_selected_transactions_summary(self) -> None:
170
+ """Test case for get_selected_transactions_summary
171
+
172
+ Get totals of selected available transactions for fiscal documents
173
+ """
174
+ pass
175
+
176
+ def test_get_transactions_summary_by_document_id(self) -> None:
177
+ """Test case for get_transactions_summary_by_document_id
178
+
179
+ Get totals of transactions for a given fiscal document id
180
+ """
181
+ pass
182
+
85
183
  def test_put_fiscal_document(self) -> None:
86
184
  """Test case for put_fiscal_document
87
185
 
@@ -89,6 +187,20 @@ class TestFiscalDocumentsApi(unittest.TestCase):
89
187
  """
90
188
  pass
91
189
 
190
+ def test_update_pro_forma_invoice_status(self) -> None:
191
+ """Test case for update_pro_forma_invoice_status
192
+
193
+ Update pro forma invoice status
194
+ """
195
+ pass
196
+
197
+ def test_void_receipt(self) -> None:
198
+ """Test case for void_receipt
199
+
200
+ Void a receipt
201
+ """
202
+ pass
203
+
92
204
 
93
205
  if __name__ == '__main__':
94
206
  unittest.main()
@@ -53,7 +53,8 @@ class TestGetInvoicePreviewRequest(unittest.TestCase):
53
53
  ],
54
54
  include_transaction_ids = [
55
55
  1
56
- ]
56
+ ],
57
+ simplified = True
57
58
  )
58
59
  else:
59
60
  return GetInvoicePreviewRequest(
@@ -0,0 +1,51 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Fiscal document service API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: v1
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ import unittest
16
+
17
+ from cloudbeds_fiscal_document.models.get_logo_response import GetLogoResponse
18
+
19
+ class TestGetLogoResponse(unittest.TestCase):
20
+ """GetLogoResponse unit test stubs"""
21
+
22
+ def setUp(self):
23
+ pass
24
+
25
+ def tearDown(self):
26
+ pass
27
+
28
+ def make_instance(self, include_optional) -> GetLogoResponse:
29
+ """Test GetLogoResponse
30
+ include_optional is a boolean, when False only required
31
+ params are included, when True both required and
32
+ optional params are included """
33
+ # uncomment below to create an instance of `GetLogoResponse`
34
+ """
35
+ model = GetLogoResponse()
36
+ if include_optional:
37
+ return GetLogoResponse(
38
+ logo_url = ''
39
+ )
40
+ else:
41
+ return GetLogoResponse(
42
+ )
43
+ """
44
+
45
+ def testGetLogoResponse(self):
46
+ """Test GetLogoResponse"""
47
+ # inst_req_only = self.make_instance(include_optional=False)
48
+ # inst_req_and_optional = self.make_instance(include_optional=True)
49
+
50
+ if __name__ == '__main__':
51
+ unittest.main()
@@ -44,7 +44,8 @@ class TestGovernmentIntegration(unittest.TestCase):
44
44
  url = '',
45
45
  official_id = '',
46
46
  external_id = '',
47
- rectifying_invoice_type = ''
47
+ rectifying_invoice_type = '',
48
+ cancellation_failed_fallback_status = 'COMPLETED'
48
49
  )
49
50
  else:
50
51
  return GovernmentIntegration(
@@ -0,0 +1,57 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Fiscal document service API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: v1
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ import unittest
16
+
17
+ from cloudbeds_fiscal_document.models.preview_request import PreviewRequest
18
+
19
+ class TestPreviewRequest(unittest.TestCase):
20
+ """PreviewRequest unit test stubs"""
21
+
22
+ def setUp(self):
23
+ pass
24
+
25
+ def tearDown(self):
26
+ pass
27
+
28
+ def make_instance(self, include_optional) -> PreviewRequest:
29
+ """Test PreviewRequest
30
+ include_optional is a boolean, when False only required
31
+ params are included, when True both required and
32
+ optional params are included """
33
+ # uncomment below to create an instance of `PreviewRequest`
34
+ """
35
+ model = PreviewRequest()
36
+ if include_optional:
37
+ return PreviewRequest(
38
+ document_kind = 'INVOICE',
39
+ source_kind = 'GROUP_PROFILE',
40
+ recipient_type = 'COMPANY',
41
+ include_vat = True,
42
+ include_payments = True,
43
+ include_room_number = True,
44
+ preview_watermark = True
45
+ )
46
+ else:
47
+ return PreviewRequest(
48
+ )
49
+ """
50
+
51
+ def testPreviewRequest(self):
52
+ """Test PreviewRequest"""
53
+ # inst_req_only = self.make_instance(include_optional=False)
54
+ # inst_req_and_optional = self.make_instance(include_optional=True)
55
+
56
+ if __name__ == '__main__':
57
+ unittest.main()
@@ -0,0 +1,84 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Fiscal document service API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: v1
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ import unittest
16
+
17
+ from cloudbeds_fiscal_document.models.property_configs_response import PropertyConfigsResponse
18
+
19
+ class TestPropertyConfigsResponse(unittest.TestCase):
20
+ """PropertyConfigsResponse unit test stubs"""
21
+
22
+ def setUp(self):
23
+ pass
24
+
25
+ def tearDown(self):
26
+ pass
27
+
28
+ def make_instance(self, include_optional) -> PropertyConfigsResponse:
29
+ """Test PropertyConfigsResponse
30
+ include_optional is a boolean, when False only required
31
+ params are included, when True both required and
32
+ optional params are included """
33
+ # uncomment below to create an instance of `PropertyConfigsResponse`
34
+ """
35
+ model = PropertyConfigsResponse()
36
+ if include_optional:
37
+ return PropertyConfigsResponse(
38
+ configs = {
39
+ 'key' : cloudbeds_fiscal_document.models.configs_response.ConfigsResponse(
40
+ property_id = '',
41
+ document_kind = 'INVOICE',
42
+ show_detailed_tax_fee = True,
43
+ show_credit_notes_and_receipts = True,
44
+ charge_breakdown = True,
45
+ use_guest_lang = True,
46
+ due_days = 56,
47
+ lang = '',
48
+ prefix = '',
49
+ suffix = '',
50
+ legal_company_name = '',
51
+ title = {
52
+ 'key' : ''
53
+ },
54
+ show_legal_company_name = True,
55
+ include_room_number = True,
56
+ use_document_number = True,
57
+ is_compact = True,
58
+ tax_id1 = '',
59
+ tax_id2 = '',
60
+ cpf = '',
61
+ custom_text = {
62
+ 'key' : ''
63
+ },
64
+ create_invoice_on_allocation = True,
65
+ trigger_events = [
66
+ 'manual'
67
+ ],
68
+ update_invoice_on_link_document = True,
69
+ use_invoice_document_settings = True,
70
+ use_invoice_title_and_numbering = True, )
71
+ }
72
+ )
73
+ else:
74
+ return PropertyConfigsResponse(
75
+ )
76
+ """
77
+
78
+ def testPropertyConfigsResponse(self):
79
+ """Test PropertyConfigsResponse"""
80
+ # inst_req_only = self.make_instance(include_optional=False)
81
+ # inst_req_and_optional = self.make_instance(include_optional=True)
82
+
83
+ if __name__ == '__main__':
84
+ unittest.main()
@@ -35,10 +35,12 @@ class TestRecipientDetails(unittest.TestCase):
35
35
  model = RecipientDetails()
36
36
  if include_optional:
37
37
  return RecipientDetails(
38
- id = '',
38
+ id = '0',
39
39
  first_name = '',
40
40
  last_name = '',
41
- email = ''
41
+ email = '',
42
+ type = 'COMPANY',
43
+ company_name = ''
42
44
  )
43
45
  else:
44
46
  return RecipientDetails(
@@ -35,7 +35,8 @@ class TestRecipientTaxInfo(unittest.TestCase):
35
35
  model = RecipientTaxInfo()
36
36
  if include_optional:
37
37
  return RecipientTaxInfo(
38
- id = ''
38
+ id = '',
39
+ company_name = ''
39
40
  )
40
41
  else:
41
42
  return RecipientTaxInfo(
@@ -40,6 +40,15 @@ class TestRectifyInvoiceNoteRequest(unittest.TestCase):
40
40
  user_id = 56,
41
41
  method = 'VOID',
42
42
  transaction_ids = [
43
+ 1
44
+ ],
45
+ folio_ids = [
46
+ 1
47
+ ],
48
+ exclude_transaction_ids = [
49
+ 1
50
+ ],
51
+ include_transaction_ids = [
43
52
  1
44
53
  ]
45
54
  )