opaige 2.1.0__tar.gz → 2.2.0__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.
- {opaige-2.1.0 → opaige-2.2.0}/PKG-INFO +5 -1
- {opaige-2.1.0 → opaige-2.2.0}/README.md +4 -0
- {opaige-2.1.0 → opaige-2.2.0}/opaige/operations.py +14 -2
- {opaige-2.1.0 → opaige-2.2.0}/opaige/request.py +1 -1
- {opaige-2.1.0 → opaige-2.2.0}/opaige.egg-info/PKG-INFO +5 -1
- {opaige-2.1.0 → opaige-2.2.0}/pyproject.toml +1 -1
- {opaige-2.1.0 → opaige-2.2.0}/LICENSE +0 -0
- {opaige-2.1.0 → opaige-2.2.0}/opaige/__init__.py +0 -0
- {opaige-2.1.0 → opaige-2.2.0}/opaige/webhooks.py +0 -0
- {opaige-2.1.0 → opaige-2.2.0}/opaige.egg-info/SOURCES.txt +0 -0
- {opaige-2.1.0 → opaige-2.2.0}/opaige.egg-info/dependency_links.txt +0 -0
- {opaige-2.1.0 → opaige-2.2.0}/opaige.egg-info/top_level.txt +0 -0
- {opaige-2.1.0 → opaige-2.2.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: opaige
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: The Opaige API for Python: visa requirements, file review, forms, bookings, submissions and webhooks.
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Project-URL: Homepage, https://opaige.com/developers
|
|
@@ -15,6 +15,10 @@ Dynamic: license-file
|
|
|
15
15
|
|
|
16
16
|
The Opaige API from Python 3.8 or later. Standard library only.
|
|
17
17
|
|
|
18
|
+
```bash
|
|
19
|
+
pip install opaige
|
|
20
|
+
```
|
|
21
|
+
|
|
18
22
|
```python
|
|
19
23
|
import os
|
|
20
24
|
from opaige import Opaige, OpaigeError, verify_webhook
|
|
@@ -90,7 +90,7 @@ class Operations:
|
|
|
90
90
|
return self._http.request("POST", f"/forms", query={"format": format}, body=body)
|
|
91
91
|
|
|
92
92
|
def read_id_card(self, *, file: Optional[bytes] = None, filename: str = "file.pdf", fields: Optional[Dict[str, str]] = None) -> Any:
|
|
93
|
-
"""A national identity card read from photos (Pakistan CNIC and NICOP). POST /id-cards"""
|
|
93
|
+
"""A national identity card read from photos (Pakistan CNIC and NICOP; 100 free reads a month, then $0.10). POST /id-cards"""
|
|
94
94
|
return self._http.request("POST", f"/id-cards", query=None, file=file, filename=filename, fields=fields)
|
|
95
95
|
|
|
96
96
|
def list_invoices(self, *, status: Optional[Union[str, int]] = None, from_: Optional[Union[str, int]] = None, to: Optional[Union[str, int]] = None) -> Any:
|
|
@@ -122,7 +122,7 @@ class Operations:
|
|
|
122
122
|
return self._http.request("GET", f"/passengers/status", query={"ref": ref})
|
|
123
123
|
|
|
124
124
|
def read_passport(self, *, file: Optional[bytes] = None, filename: str = "file.pdf", fields: Optional[Dict[str, str]] = None) -> Any:
|
|
125
|
-
"""A passport read from a photo or scan of its identity page and machine-readable zone. POST /passports"""
|
|
125
|
+
"""A passport read from a photo or scan of its identity page and machine-readable zone (100 free reads a month, then $0.10). POST /passports"""
|
|
126
126
|
return self._http.request("POST", f"/passports", query=None, file=file, filename=filename, fields=fields)
|
|
127
127
|
|
|
128
128
|
def check_requirements(self, *, passport: Optional[Union[str, int]] = None, destination: Optional[Union[str, int]] = None, residence: Optional[Union[str, int]] = None, stay_days: Optional[Union[str, int]] = None) -> Any:
|
|
@@ -241,6 +241,18 @@ class Operations:
|
|
|
241
241
|
"""Submit and pay the government fee (requires authorize: true). POST /submissions/{id}/submit"""
|
|
242
242
|
return self._http.request("POST", f"/submissions/{_q(id)}/submit", query=None, body=body, idempotency_key=idempotency_key)
|
|
243
243
|
|
|
244
|
+
def create_submission_batch(self, *, body: Dict[str, Any], idempotency_key: Optional[str] = None) -> Any:
|
|
245
|
+
"""A group of up to 500 travellers in one call, each its own submission; nothing starts unless every one can be filed. POST /submissions/batches"""
|
|
246
|
+
return self._http.request("POST", f"/submissions/batches", query=None, body=body, idempotency_key=idempotency_key)
|
|
247
|
+
|
|
248
|
+
def get_submission_batch(self, *, id: str, format: Optional[Union[str, int]] = None) -> Any:
|
|
249
|
+
"""The group as it stands: counts by status and one row per traveller (status, trn, pay_url, paid, next_step); ?format=csv for a spreadsheet. GET /submissions/batches/{id}"""
|
|
250
|
+
return self._http.request("GET", f"/submissions/batches/{_q(id)}", query={"format": format})
|
|
251
|
+
|
|
252
|
+
def submission_documents(self, *, visa: Optional[Union[str, int]] = None) -> Any:
|
|
253
|
+
"""Which documents each visa takes: where they go in the request, required or not, formats and sizes, and when they are uploaded. GET /submissions/documents"""
|
|
254
|
+
return self._http.request("GET", f"/submissions/documents", query={"visa": visa})
|
|
255
|
+
|
|
244
256
|
def create_intake(self, *, body: Dict[str, Any]) -> Any:
|
|
245
257
|
"""us-ds160: a hosted link where the applicant completes what you do not hold, with their passport and photo, and signs. POST /submissions/intakes"""
|
|
246
258
|
return self._http.request("POST", f"/submissions/intakes", query=None, body=body)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: opaige
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: The Opaige API for Python: visa requirements, file review, forms, bookings, submissions and webhooks.
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Project-URL: Homepage, https://opaige.com/developers
|
|
@@ -15,6 +15,10 @@ Dynamic: license-file
|
|
|
15
15
|
|
|
16
16
|
The Opaige API from Python 3.8 or later. Standard library only.
|
|
17
17
|
|
|
18
|
+
```bash
|
|
19
|
+
pip install opaige
|
|
20
|
+
```
|
|
21
|
+
|
|
18
22
|
```python
|
|
19
23
|
import os
|
|
20
24
|
from opaige import Opaige, OpaigeError, verify_webhook
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|