opaige 2.0.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: opaige
3
- Version: 2.0.0
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
@@ -2,6 +2,10 @@
2
2
 
3
3
  The Opaige API from Python 3.8 or later. Standard library only.
4
4
 
5
+ ```bash
6
+ pip install opaige
7
+ ```
8
+
5
9
  ```python
6
10
  import os
7
11
  from opaige import Opaige, OpaigeError, verify_webhook
@@ -9,6 +9,18 @@ class Operations:
9
9
  def __init__(self, http: Requester) -> None:
10
10
  self._http = http
11
11
 
12
+ def list_site_applications(self) -> Any:
13
+ """Applications received from your website, newest first. GET /applications"""
14
+ return self._http.request("GET", f"/applications", query=None)
15
+
16
+ def submit_site_application(self, *, body: Dict[str, Any]) -> Any:
17
+ """An application from an agency's own website: travellers on the client list and the documents, waiting in Online applications for Start. POST /applications"""
18
+ return self._http.request("POST", f"/applications", query=None, body=body)
19
+
20
+ def track_site_application(self, *, body: Dict[str, Any]) -> Any:
21
+ """From an agency's own website: where an application is, by its reference and the phone number it was sent with. POST /applications/track"""
22
+ return self._http.request("POST", f"/applications/track", query=None, body=body)
23
+
12
24
  def list_appointments(self, *, date: Optional[Union[str, int]] = None) -> Any:
13
25
  """A day’s appointments with the file state and the counter stage. GET /appointments"""
14
26
  return self._http.request("GET", f"/appointments", query={"date": date})
@@ -46,7 +58,7 @@ class Operations:
46
58
  return self._http.request("POST", f"/cases/{_q(id)}/file", query=None)
47
59
 
48
60
  def make_document(self, *, body: Dict[str, Any], format: Optional[Union[str, int]] = None) -> Any:
49
- """An itinerary, cover letter, submission brief or third-party letter. POST /documents"""
61
+ """An itinerary (free), or a cover letter, submission brief or third-party letter ($1). POST /documents"""
50
62
  return self._http.request("POST", f"/documents", query={"format": format}, body=body)
51
63
 
52
64
  def get_fee_balance(self) -> Any:
@@ -77,10 +89,18 @@ class Operations:
77
89
  """The official visa form, filled from answers. POST /forms"""
78
90
  return self._http.request("POST", f"/forms", query={"format": format}, body=body)
79
91
 
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; 100 free reads a month, then $0.10). POST /id-cards"""
94
+ return self._http.request("POST", f"/id-cards", query=None, file=file, filename=filename, fields=fields)
95
+
80
96
  def list_invoices(self, *, status: Optional[Union[str, int]] = None, from_: Optional[Union[str, int]] = None, to: Optional[Union[str, int]] = None) -> Any:
81
97
  """Every case billed, due or paid. GET /invoices"""
82
98
  return self._http.request("GET", f"/invoices", query={"status": status, "from": from_, "to": to})
83
99
 
100
+ def get_member_card(self, *, site: Optional[Union[str, int]] = None, card: Optional[Union[str, int]] = None) -> Any:
101
+ """From an agency's own website: a club member's own card, from the card link the agency sent her. GET /member-card"""
102
+ return self._http.request("GET", f"/member-card", query={"site": site, "card": card})
103
+
84
104
  def check_passengers(self, *, body: Dict[str, Any]) -> Any:
85
105
  """Who on a flight needs a visa, and by when to file. POST /passengers/check"""
86
106
  return self._http.request("POST", f"/passengers/check", query=None, body=body)
@@ -101,6 +121,10 @@ class Operations:
101
121
  """Stages of passengers who chose to share. GET /passengers/status"""
102
122
  return self._http.request("GET", f"/passengers/status", query={"ref": ref})
103
123
 
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 (100 free reads a month, then $0.10). POST /passports"""
126
+ return self._http.request("POST", f"/passports", query=None, file=file, filename=filename, fields=fields)
127
+
104
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:
105
129
  """What a passport needs for a destination. GET /requirements"""
106
130
  return self._http.request("GET", f"/requirements", query={"passport": passport, "destination": destination, "residence": residence, "stay_days": stay_days})
@@ -121,6 +145,10 @@ class Operations:
121
145
  """Rule changes announced, in force or coming up. GET /rules/notices"""
122
146
  return self._http.request("GET", f"/rules/notices", query={"since": since})
123
147
 
148
+ def join_site_list(self, *, body: Dict[str, Any]) -> Any:
149
+ """From an agency's own website: someone asks to be told when something happens (first: the office opening). POST /site-subscribers"""
150
+ return self._http.request("POST", f"/site-subscribers", query=None, body=body)
151
+
124
152
  def prepare_skilled_application(self, *, body: Dict[str, Any]) -> Any:
125
153
  """Prepare a skilled application (Australia 189/190/491, Canada Express Entry, Germany EU Blue Card, UK Skilled Worker): every field filled or marked missing, the claim worked from what the profile proves, each fact tied to its document (billed as one form). POST /skilled/applications"""
126
154
  return self._http.request("POST", f"/skilled/applications", query=None, body=body)
@@ -186,13 +214,17 @@ class Operations:
186
214
  return self._http.request("GET", f"/submissions", query=None)
187
215
 
188
216
  def create_submission(self, *, body: Dict[str, Any], idempotency_key: Optional[str] = None) -> Any:
189
- """Fill a visa application on the government portal, stopping before the declarations (au-600, au-500), at the applicant's signature (us-ds160), or completed with its reference (fr-schengen). POST /submissions"""
217
+ """Fill a visa application on the government portal, stopping before the declarations (au-600, au-500), at the applicant's signature (us-ds160), at the declaration with its GWF reference (uk-visitor), or completed with its reference (fr-schengen). POST /submissions"""
190
218
  return self._http.request("POST", f"/submissions", query=None, body=body, idempotency_key=idempotency_key)
191
219
 
192
220
  def get_submission(self, *, id: str) -> Any:
193
221
  """Where a submission stands, with the government reference once there is one. GET /submissions/{id}"""
194
222
  return self._http.request("GET", f"/submissions/{_q(id)}", query=None)
195
223
 
224
+ def get_submission_account(self, *, id: str) -> Any:
225
+ """ca-visitor and uk-visitor: the portal sign-in, and sign_url, the applicant's page to accept the declaration. GET /submissions/{id}/account"""
226
+ return self._http.request("GET", f"/submissions/{_q(id)}/account", query=None)
227
+
196
228
  def send_submission_code(self, *, id: str, body: Dict[str, Any]) -> Any:
197
229
  """us-ds160 with code_by partner: the US site's security code your staff read in code.image. POST /submissions/{id}/code"""
198
230
  return self._http.request("POST", f"/submissions/{_q(id)}/code", query=None, body=body)
@@ -209,6 +241,18 @@ class Operations:
209
241
  """Submit and pay the government fee (requires authorize: true). POST /submissions/{id}/submit"""
210
242
  return self._http.request("POST", f"/submissions/{_q(id)}/submit", query=None, body=body, idempotency_key=idempotency_key)
211
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
+
212
256
  def create_intake(self, *, body: Dict[str, Any]) -> Any:
213
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"""
214
258
  return self._http.request("POST", f"/submissions/intakes", query=None, body=body)
@@ -245,6 +289,10 @@ class Operations:
245
289
  """This month’s paid API use and what it comes to. GET /usage"""
246
290
  return self._http.request("GET", f"/usage", query={"month": month})
247
291
 
292
+ def list_visit_slots(self, *, site: Optional[Union[str, int]] = None) -> Any:
293
+ """From an agency's own website: the office visit times it may offer, from the agency's client hours, free times only. GET /visit-slots"""
294
+ return self._http.request("GET", f"/visit-slots", query={"site": site})
295
+
248
296
 
249
297
  def _q(v: str) -> str:
250
298
  from urllib.parse import quote
@@ -8,7 +8,7 @@ import urllib.parse
8
8
  import urllib.request
9
9
  from typing import Any, Dict, Optional
10
10
 
11
- VERSION = "2.0.0"
11
+ VERSION = "2.2.0"
12
12
  _RETRY = {429, 500, 502, 503, 504}
13
13
 
14
14
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: opaige
3
- Version: 2.0.0
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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "opaige"
3
- version = "2.0.0"
3
+ version = "2.2.0"
4
4
  description = "The Opaige API for Python: visa requirements, file review, forms, bookings, submissions and webhooks."
5
5
  readme = "README.md"
6
6
  license = "MIT"
File without changes
File without changes
File without changes
File without changes