flashpi 0.2.0__tar.gz → 0.2.1__tar.gz
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.
- {flashpi-0.2.0 → flashpi-0.2.1}/CHANGELOG.md +8 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/PKG-INFO +12 -12
- {flashpi-0.2.0 → flashpi-0.2.1}/README.en.md +11 -11
- {flashpi-0.2.0 → flashpi-0.2.1}/README.md +11 -11
- {flashpi-0.2.0 → flashpi-0.2.1}/openapi/openapi.json +129 -62
- {flashpi-0.2.0 → flashpi-0.2.1}/pyproject.toml +1 -1
- {flashpi-0.2.0 → flashpi-0.2.1}/src/flashpi/_errors.py +2 -1
- {flashpi-0.2.0 → flashpi-0.2.1}/src/flashpi/_version.py +1 -1
- {flashpi-0.2.0 → flashpi-0.2.1}/src/flashpi/resources/issuers.py +4 -2
- {flashpi-0.2.0 → flashpi-0.2.1}/src/flashpi/resources/webhook_endpoints.py +14 -6
- {flashpi-0.2.0 → flashpi-0.2.1}/src/flashpi/types/__init__.py +2 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/src/flashpi/types/_generated.py +62 -15
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/test_resources.py +59 -1
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/test_types.py +40 -1
- {flashpi-0.2.0 → flashpi-0.2.1}/.gitignore +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/LICENSE +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/scripts/__init__.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/scripts/installed_check.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/scripts/openapi.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/scripts/package_check.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/scripts/readme.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/src/flashpi/__init__.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/src/flashpi/_client.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/src/flashpi/_http.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/src/flashpi/_network.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/src/flashpi/_pagination.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/src/flashpi/_resource.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/src/flashpi/_response.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/src/flashpi/_validate.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/src/flashpi/_webhooks.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/src/flashpi/py.typed +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/src/flashpi/resources/__init__.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/src/flashpi/resources/documents.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/src/flashpi/resources/events.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/src/flashpi/resources/issuer_onboardings.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/src/flashpi/resources/status.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/src/flashpi/resources/uploads.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/__init__.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/conftest.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/readme/_context.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/readme/en_01.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/readme/en_02.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/readme/en_03.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/readme/en_04.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/readme/en_05.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/readme/en_06.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/readme/en_07.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/readme/en_08.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/readme/en_09.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/readme/en_10.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/readme/en_11.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/readme/en_12.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/readme/en_13.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/readme/en_14.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/readme/en_15.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/readme/es_01.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/readme/es_02.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/readme/es_03.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/readme/es_04.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/readme/es_05.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/readme/es_06.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/readme/es_07.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/readme/es_08.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/readme/es_09.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/readme/es_10.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/readme/es_11.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/readme/es_12.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/readme/es_13.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/readme/es_14.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/readme/es_15.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/typings/django/__init__.pyi +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/typings/django/http/__init__.pyi +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/typings/django/views/__init__.pyi +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/typings/django/views/decorators/__init__.pyi +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/typings/django/views/decorators/csrf.pyi +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/typings/django/views/decorators/http.pyi +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/typings/fastapi/__init__.pyi +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/typings/fastapi/responses.pyi +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/examples/typings/flask/__init__.pyi +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/live/__init__.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/live/test_live.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/support.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/test_cancellation.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/test_client.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/test_deadline.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/test_errors.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/test_headers.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/test_http.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/test_network.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/test_openapi.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/test_operations.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/test_package_check.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/test_pagination.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/test_readme.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/test_resource_types.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/test_retries.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/test_review_fixes.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/test_version.py +0 -0
- {flashpi-0.2.0 → flashpi-0.2.1}/tests/test_webhooks.py +0 -0
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.1](https://github.com/flashpi1/flashpi-python/compare/v0.2.0...v0.2.1) (2026-11-25)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug fixes
|
|
7
|
+
|
|
8
|
+
* **types:** export CertificateWarning from flashpi.types ([63663cb](https://github.com/flashpi1/flashpi-python/commit/63663cbb2058c47a1a053234098d6949399c4128))
|
|
9
|
+
* **types:** sync the API contract of 2026-11-24 ([6dc5ee7](https://github.com/flashpi1/flashpi-python/commit/6dc5ee7d1e63a39741782b192bdb86ed933a23b2))
|
|
10
|
+
|
|
3
11
|
## [0.2.0](https://github.com/flashpi1/flashpi-python/compare/v0.1.0...v0.2.0) (2026-11-18)
|
|
4
12
|
|
|
5
13
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: flashpi
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: The official Python SDK for Flashpi, the electronic invoicing API for Ecuador's SRI.
|
|
5
5
|
Project-URL: Homepage, https://flashpi.com.ec
|
|
6
6
|
Project-URL: Documentation, https://flashpi.com.ec/docs/sdks/
|
|
@@ -209,17 +209,17 @@ except APIError as error:
|
|
|
209
209
|
raise
|
|
210
210
|
```
|
|
211
211
|
|
|
212
|
-
| Clase | Estado | Ejemplos de `code`
|
|
213
|
-
| -------------------------- | ------ |
|
|
214
|
-
| `BadRequestError` | 400 | `malformed_json`, `invalid_idempotency_key`
|
|
215
|
-
| `AuthenticationError` | 401 | `authentication_required`, `invalid_api_key`
|
|
216
|
-
| `PermissionDeniedError` | 403 | `key_read_only`, `key_scope_mismatch`, `ip_not_allowed`
|
|
217
|
-
| `NotFoundError` | 404 | `not_found`
|
|
218
|
-
| `ConflictError` | 409 | `sequential_already_used`, `ride_not_available`
|
|
219
|
-
| `UnprocessableEntityError` | 422 | `validation_failed`, `total_mismatch`
|
|
220
|
-
| `RateLimitError` | 429 | `demo_issuer_quota_exceeded`, `account_email_limit_reached`
|
|
221
|
-
| `InternalServerError` | 5xx | `internal_error`
|
|
222
|
-
| `APIConnectionError` | — | sin respuesta (red); `APITimeoutError` si se agotó el plazo
|
|
212
|
+
| Clase | Estado | Ejemplos de `code` |
|
|
213
|
+
| -------------------------- | ------ | --------------------------------------------------------------------------------- |
|
|
214
|
+
| `BadRequestError` | 400 | `malformed_json`, `invalid_idempotency_key` |
|
|
215
|
+
| `AuthenticationError` | 401 | `authentication_required`, `invalid_api_key` |
|
|
216
|
+
| `PermissionDeniedError` | 403 | `key_read_only`, `key_scope_mismatch`, `ip_not_allowed`, `live_key_required` |
|
|
217
|
+
| `NotFoundError` | 404 | `not_found` |
|
|
218
|
+
| `ConflictError` | 409 | `sequential_already_used`, `ride_not_available`, `webhook_endpoint_limit_reached` |
|
|
219
|
+
| `UnprocessableEntityError` | 422 | `validation_failed`, `total_mismatch` |
|
|
220
|
+
| `RateLimitError` | 429 | `demo_issuer_quota_exceeded`, `account_email_limit_reached` |
|
|
221
|
+
| `InternalServerError` | 5xx | `internal_error` |
|
|
222
|
+
| `APIConnectionError` | — | sin respuesta (red); `APITimeoutError` si se agotó el plazo |
|
|
223
223
|
|
|
224
224
|
Todas derivan de `FlashpiError`. Algunos errores traen datos extra en `error.problem`, por
|
|
225
225
|
ejemplo `documentId`, `limit`, `resetsAt` o `rideStatus`. Para recibir los mensajes en español:
|
|
@@ -175,17 +175,17 @@ except APIError as error:
|
|
|
175
175
|
raise
|
|
176
176
|
```
|
|
177
177
|
|
|
178
|
-
| Class | Status | Example `code`s
|
|
179
|
-
| -------------------------- | ------ |
|
|
180
|
-
| `BadRequestError` | 400 | `malformed_json`, `invalid_idempotency_key`
|
|
181
|
-
| `AuthenticationError` | 401 | `authentication_required`, `invalid_api_key`
|
|
182
|
-
| `PermissionDeniedError` | 403 | `key_read_only`, `key_scope_mismatch`, `ip_not_allowed`
|
|
183
|
-
| `NotFoundError` | 404 | `not_found`
|
|
184
|
-
| `ConflictError` | 409 | `sequential_already_used`, `ride_not_available`
|
|
185
|
-
| `UnprocessableEntityError` | 422 | `validation_failed`, `total_mismatch`
|
|
186
|
-
| `RateLimitError` | 429 | `demo_issuer_quota_exceeded`, `account_email_limit_reached`
|
|
187
|
-
| `InternalServerError` | 5xx | `internal_error`
|
|
188
|
-
| `APIConnectionError` | — | no answer (network); `APITimeoutError` when it timed out
|
|
178
|
+
| Class | Status | Example `code`s |
|
|
179
|
+
| -------------------------- | ------ | --------------------------------------------------------------------------------- |
|
|
180
|
+
| `BadRequestError` | 400 | `malformed_json`, `invalid_idempotency_key` |
|
|
181
|
+
| `AuthenticationError` | 401 | `authentication_required`, `invalid_api_key` |
|
|
182
|
+
| `PermissionDeniedError` | 403 | `key_read_only`, `key_scope_mismatch`, `ip_not_allowed`, `live_key_required` |
|
|
183
|
+
| `NotFoundError` | 404 | `not_found` |
|
|
184
|
+
| `ConflictError` | 409 | `sequential_already_used`, `ride_not_available`, `webhook_endpoint_limit_reached` |
|
|
185
|
+
| `UnprocessableEntityError` | 422 | `validation_failed`, `total_mismatch` |
|
|
186
|
+
| `RateLimitError` | 429 | `demo_issuer_quota_exceeded`, `account_email_limit_reached` |
|
|
187
|
+
| `InternalServerError` | 5xx | `internal_error` |
|
|
188
|
+
| `APIConnectionError` | — | no answer (network); `APITimeoutError` when it timed out |
|
|
189
189
|
|
|
190
190
|
All of them derive from `FlashpiError`. Some errors carry extra members in `error.problem`, such
|
|
191
191
|
as `documentId`, `limit`, `resetsAt` or `rideStatus`. For Spanish messages:
|
|
@@ -178,17 +178,17 @@ except APIError as error:
|
|
|
178
178
|
raise
|
|
179
179
|
```
|
|
180
180
|
|
|
181
|
-
| Clase | Estado | Ejemplos de `code`
|
|
182
|
-
| -------------------------- | ------ |
|
|
183
|
-
| `BadRequestError` | 400 | `malformed_json`, `invalid_idempotency_key`
|
|
184
|
-
| `AuthenticationError` | 401 | `authentication_required`, `invalid_api_key`
|
|
185
|
-
| `PermissionDeniedError` | 403 | `key_read_only`, `key_scope_mismatch`, `ip_not_allowed`
|
|
186
|
-
| `NotFoundError` | 404 | `not_found`
|
|
187
|
-
| `ConflictError` | 409 | `sequential_already_used`, `ride_not_available`
|
|
188
|
-
| `UnprocessableEntityError` | 422 | `validation_failed`, `total_mismatch`
|
|
189
|
-
| `RateLimitError` | 429 | `demo_issuer_quota_exceeded`, `account_email_limit_reached`
|
|
190
|
-
| `InternalServerError` | 5xx | `internal_error`
|
|
191
|
-
| `APIConnectionError` | — | sin respuesta (red); `APITimeoutError` si se agotó el plazo
|
|
181
|
+
| Clase | Estado | Ejemplos de `code` |
|
|
182
|
+
| -------------------------- | ------ | --------------------------------------------------------------------------------- |
|
|
183
|
+
| `BadRequestError` | 400 | `malformed_json`, `invalid_idempotency_key` |
|
|
184
|
+
| `AuthenticationError` | 401 | `authentication_required`, `invalid_api_key` |
|
|
185
|
+
| `PermissionDeniedError` | 403 | `key_read_only`, `key_scope_mismatch`, `ip_not_allowed`, `live_key_required` |
|
|
186
|
+
| `NotFoundError` | 404 | `not_found` |
|
|
187
|
+
| `ConflictError` | 409 | `sequential_already_used`, `ride_not_available`, `webhook_endpoint_limit_reached` |
|
|
188
|
+
| `UnprocessableEntityError` | 422 | `validation_failed`, `total_mismatch` |
|
|
189
|
+
| `RateLimitError` | 429 | `demo_issuer_quota_exceeded`, `account_email_limit_reached` |
|
|
190
|
+
| `InternalServerError` | 5xx | `internal_error` |
|
|
191
|
+
| `APIConnectionError` | — | sin respuesta (red); `APITimeoutError` si se agotó el plazo |
|
|
192
192
|
|
|
193
193
|
Todas derivan de `FlashpiError`. Algunos errores traen datos extra en `error.problem`, por
|
|
194
194
|
ejemplo `documentId`, `limit`, `resetsAt` o `rideStatus`. Para recibir los mensajes en español:
|