celitech-sdk 1.3.38__tar.gz → 1.3.44__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.
- {celitech_sdk-1.3.38/src/celitech_sdk.egg-info → celitech_sdk-1.3.44}/PKG-INFO +56 -25
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/PyPI_README.md +53 -23
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/README.md +53 -23
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/pyproject.toml +1 -1
- celitech_sdk-1.3.44/src/celitech/models/__init__.py +60 -0
- celitech_sdk-1.3.44/src/celitech/models/create_purchase_400_response.py +21 -0
- celitech_sdk-1.3.44/src/celitech/models/create_purchase_401_response.py +21 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/models/create_purchase_ok_response.py +13 -12
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/models/create_purchase_request.py +19 -11
- celitech_sdk-1.3.44/src/celitech/models/create_purchase_v2_400_response.py +21 -0
- celitech_sdk-1.3.44/src/celitech/models/create_purchase_v2_401_response.py +21 -0
- celitech_sdk-1.3.44/src/celitech/models/create_purchase_v2_ok_response.py +118 -0
- celitech_sdk-1.3.44/src/celitech/models/create_purchase_v2_request.py +86 -0
- celitech_sdk-1.3.44/src/celitech/models/edit_purchase_400_response.py +21 -0
- celitech_sdk-1.3.44/src/celitech/models/edit_purchase_401_response.py +21 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/models/edit_purchase_ok_response.py +6 -5
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/models/edit_purchase_request.py +3 -2
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/models/get_access_token_ok_response.py +4 -3
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/models/get_access_token_request.py +4 -3
- celitech_sdk-1.3.44/src/celitech/models/get_esim_400_response.py +21 -0
- celitech_sdk-1.3.44/src/celitech/models/get_esim_401_response.py +21 -0
- celitech_sdk-1.3.44/src/celitech/models/get_esim_device_400_response.py +21 -0
- celitech_sdk-1.3.44/src/celitech/models/get_esim_device_401_response.py +21 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/models/get_esim_device_ok_response.py +6 -5
- celitech_sdk-1.3.44/src/celitech/models/get_esim_history_400_response.py +21 -0
- celitech_sdk-1.3.44/src/celitech/models/get_esim_history_401_response.py +21 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/models/get_esim_history_ok_response.py +10 -3
- celitech_sdk-1.3.44/src/celitech/models/get_esim_mac_400_response.py +21 -0
- celitech_sdk-1.3.44/src/celitech/models/get_esim_mac_401_response.py +21 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/models/get_esim_mac_ok_response.py +5 -4
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/models/get_esim_ok_response.py +6 -5
- celitech_sdk-1.3.44/src/celitech/models/get_purchase_consumption_400_response.py +21 -0
- celitech_sdk-1.3.44/src/celitech/models/get_purchase_consumption_401_response.py +21 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/models/get_purchase_consumption_ok_response.py +5 -1
- celitech_sdk-1.3.44/src/celitech/models/list_destinations_400_response.py +21 -0
- celitech_sdk-1.3.44/src/celitech/models/list_destinations_401_response.py +21 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/models/list_destinations_ok_response.py +5 -4
- celitech_sdk-1.3.44/src/celitech/models/list_packages_400_response.py +21 -0
- celitech_sdk-1.3.44/src/celitech/models/list_packages_401_response.py +21 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/models/list_packages_ok_response.py +14 -9
- celitech_sdk-1.3.44/src/celitech/models/list_purchases_400_response.py +21 -0
- celitech_sdk-1.3.44/src/celitech/models/list_purchases_401_response.py +21 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/models/list_purchases_ok_response.py +38 -24
- celitech_sdk-1.3.44/src/celitech/models/token_400_response.py +21 -0
- celitech_sdk-1.3.44/src/celitech/models/token_401_response.py +21 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/models/token_ok_response.py +2 -1
- celitech_sdk-1.3.44/src/celitech/models/top_up_esim_400_response.py +21 -0
- celitech_sdk-1.3.44/src/celitech/models/top_up_esim_401_response.py +21 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/models/top_up_esim_ok_response.py +11 -10
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/models/top_up_esim_request.py +16 -8
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/models/utils/base_model.py +5 -4
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/models/utils/cast_models.py +1 -1
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/models/utils/json_map.py +3 -1
- celitech_sdk-1.3.44/src/celitech/models/utils/sentinel.py +17 -0
- celitech_sdk-1.3.44/src/celitech/net/environment/environment.py +29 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/net/request_chain/handlers/base_handler.py +4 -5
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/net/request_chain/handlers/hook_handler.py +7 -8
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/net/request_chain/handlers/http_handler.py +23 -9
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/net/request_chain/handlers/retry_handler.py +3 -2
- celitech_sdk-1.3.44/src/celitech/net/transport/api_error.py +28 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/net/transport/request.py +14 -0
- celitech_sdk-1.3.44/src/celitech/net/transport/request_error.py +34 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/net/transport/serializer.py +38 -2
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/sdk.py +1 -1
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/sdk_async.py +1 -1
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/services/async_/destinations.py +1 -1
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/services/async_/e_sim.py +1 -1
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/services/async_/i_frame.py +1 -1
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/services/async_/packages.py +10 -9
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/services/async_/purchases.py +17 -9
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/services/destinations.py +14 -4
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/services/e_sim.py +32 -12
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/services/i_frame.py +10 -4
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/services/o_auth.py +4 -1
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/services/packages.py +23 -12
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/services/purchases.py +91 -25
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/services/utils/base_service.py +2 -1
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/services/utils/validator.py +28 -3
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44/src/celitech_sdk.egg-info}/PKG-INFO +56 -25
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech_sdk.egg-info/SOURCES.txt +30 -0
- celitech_sdk-1.3.38/src/celitech/models/__init__.py +0 -28
- celitech_sdk-1.3.38/src/celitech/net/environment/environment.py +0 -11
- celitech_sdk-1.3.38/src/celitech/net/transport/request_error.py +0 -53
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/LICENSE +0 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/setup.cfg +0 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/__init__.py +0 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/hooks/__init__.py +0 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/hooks/hook.py +0 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/models/utils/__init__.py +0 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/models/utils/one_of_base_model.py +0 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/net/__init__.py +0 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/net/environment/__init__.py +0 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/net/headers/__init__.py +0 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/net/headers/base_header.py +0 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/net/oauth/token_manager.py +0 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/net/request_chain/__init__.py +0 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/net/request_chain/handlers/__init__.py +0 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/net/request_chain/handlers/oauth_handler.py +0 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/net/request_chain/request_chain.py +0 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/net/transport/__init__.py +0 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/net/transport/response.py +0 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/net/transport/utils.py +0 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/services/__init__.py +0 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/services/async_/__init__.py +0 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/services/async_/o_auth.py +0 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/services/async_/utils/__init__.py +0 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/services/async_/utils/to_async.py +0 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/services/utils/__init__.py +0 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/services/utils/default_headers.py +0 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech_sdk.egg-info/dependency_links.txt +0 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech_sdk.egg-info/requires.txt +0 -0
- {celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech_sdk.egg-info/top_level.txt +0 -0
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: celitech-sdk
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.44
|
|
4
4
|
Summary: Welcome to the CELITECH API documentation!
|
|
5
5
|
License: MIT
|
|
6
6
|
Requires-Python: >=3.9
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
8
8
|
License-File: LICENSE
|
|
9
9
|
Requires-Dist: requests>=2.31.0
|
|
10
|
+
Dynamic: license-file
|
|
10
11
|
|
|
11
|
-
# Celitech Python SDK 1.3.
|
|
12
|
+
# Celitech Python SDK 1.3.44<a id="celitech-python-sdk-1344"></a>
|
|
12
13
|
|
|
13
14
|
Welcome to the Celitech SDK documentation. This guide will help you get started with integrating and using the Celitech SDK in your project.
|
|
14
15
|
|
|
@@ -16,12 +17,14 @@ Welcome to the Celitech SDK documentation. This guide will help you get started
|
|
|
16
17
|
|
|
17
18
|
## Versions<a id="versions"></a>
|
|
18
19
|
|
|
19
|
-
- API version: `1.
|
|
20
|
-
- SDK version: `1.3.
|
|
20
|
+
- API version: `1.3.44`
|
|
21
|
+
- SDK version: `1.3.44`
|
|
21
22
|
|
|
22
23
|
## About the API<a id="about-the-api"></a>
|
|
23
24
|
|
|
24
|
-
Welcome to the CELITECH API documentation
|
|
25
|
+
Welcome to the CELITECH API documentation!
|
|
26
|
+
|
|
27
|
+
Useful links: [Homepage](https://www.celitech.com) | [Support email](mailto:support@celitech.com) | [Blog](https://www.celitech.com/blog/)
|
|
25
28
|
|
|
26
29
|
## Table of Contents<a id="table-of-contents"></a>
|
|
27
30
|
|
|
@@ -160,25 +163,53 @@ The SDK includes several models that represent the data structures used in API r
|
|
|
160
163
|
<details>
|
|
161
164
|
<summary>Below is a list of all available models:</summary>
|
|
162
165
|
|
|
163
|
-
| Name
|
|
164
|
-
|
|
|
165
|
-
| GetAccessTokenRequest
|
|
166
|
-
| GetAccessTokenOkResponse
|
|
167
|
-
| ListDestinationsOkResponse
|
|
168
|
-
| ListPackagesOkResponse
|
|
169
|
-
|
|
|
170
|
-
|
|
|
171
|
-
|
|
|
172
|
-
|
|
|
173
|
-
|
|
|
174
|
-
|
|
|
175
|
-
|
|
|
176
|
-
|
|
|
177
|
-
|
|
|
178
|
-
|
|
|
179
|
-
|
|
|
180
|
-
|
|
|
181
|
-
|
|
|
166
|
+
| Name | Description |
|
|
167
|
+
| :-------------------------------- | :---------- |
|
|
168
|
+
| GetAccessTokenRequest | |
|
|
169
|
+
| GetAccessTokenOkResponse | |
|
|
170
|
+
| ListDestinationsOkResponse | |
|
|
171
|
+
| ListPackagesOkResponse | |
|
|
172
|
+
| CreatePurchaseV2Request | |
|
|
173
|
+
| CreatePurchaseV2OkResponse | |
|
|
174
|
+
| ListPurchasesOkResponse | |
|
|
175
|
+
| CreatePurchaseRequest | |
|
|
176
|
+
| CreatePurchaseOkResponse | |
|
|
177
|
+
| TopUpEsimRequest | |
|
|
178
|
+
| TopUpEsimOkResponse | |
|
|
179
|
+
| EditPurchaseRequest | |
|
|
180
|
+
| EditPurchaseOkResponse | |
|
|
181
|
+
| GetPurchaseConsumptionOkResponse | |
|
|
182
|
+
| GetEsimOkResponse | |
|
|
183
|
+
| GetEsimDeviceOkResponse | |
|
|
184
|
+
| GetEsimHistoryOkResponse | |
|
|
185
|
+
| GetEsimMacOkResponse | |
|
|
186
|
+
| TokenOkResponse | |
|
|
187
|
+
| ListDestinations400Response | |
|
|
188
|
+
| ListDestinations401Response | |
|
|
189
|
+
| ListPackages400Response | |
|
|
190
|
+
| ListPackages401Response | |
|
|
191
|
+
| CreatePurchaseV2_400Response | |
|
|
192
|
+
| CreatePurchaseV2_401Response | |
|
|
193
|
+
| ListPurchases400Response | |
|
|
194
|
+
| ListPurchases401Response | |
|
|
195
|
+
| CreatePurchase400Response | |
|
|
196
|
+
| CreatePurchase401Response | |
|
|
197
|
+
| TopUpEsim400Response | |
|
|
198
|
+
| TopUpEsim401Response | |
|
|
199
|
+
| EditPurchase400Response | |
|
|
200
|
+
| EditPurchase401Response | |
|
|
201
|
+
| GetPurchaseConsumption400Response | |
|
|
202
|
+
| GetPurchaseConsumption401Response | |
|
|
203
|
+
| GetEsim400Response | |
|
|
204
|
+
| GetEsim401Response | |
|
|
205
|
+
| GetEsimDevice400Response | |
|
|
206
|
+
| GetEsimDevice401Response | |
|
|
207
|
+
| GetEsimHistory400Response | |
|
|
208
|
+
| GetEsimHistory401Response | |
|
|
209
|
+
| GetEsimMac400Response | |
|
|
210
|
+
| GetEsimMac401Response | |
|
|
211
|
+
| Token400Response | |
|
|
212
|
+
| Token401Response | |
|
|
182
213
|
|
|
183
214
|
</details>
|
|
184
215
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Celitech Python SDK 1.3.
|
|
1
|
+
# Celitech Python SDK 1.3.44<a id="celitech-python-sdk-1344"></a>
|
|
2
2
|
|
|
3
3
|
Welcome to the Celitech SDK documentation. This guide will help you get started with integrating and using the Celitech SDK in your project.
|
|
4
4
|
|
|
@@ -6,12 +6,14 @@ Welcome to the Celitech SDK documentation. This guide will help you get started
|
|
|
6
6
|
|
|
7
7
|
## Versions<a id="versions"></a>
|
|
8
8
|
|
|
9
|
-
- API version: `1.
|
|
10
|
-
- SDK version: `1.3.
|
|
9
|
+
- API version: `1.3.44`
|
|
10
|
+
- SDK version: `1.3.44`
|
|
11
11
|
|
|
12
12
|
## About the API<a id="about-the-api"></a>
|
|
13
13
|
|
|
14
|
-
Welcome to the CELITECH API documentation
|
|
14
|
+
Welcome to the CELITECH API documentation!
|
|
15
|
+
|
|
16
|
+
Useful links: [Homepage](https://www.celitech.com) | [Support email](mailto:support@celitech.com) | [Blog](https://www.celitech.com/blog/)
|
|
15
17
|
|
|
16
18
|
## Table of Contents<a id="table-of-contents"></a>
|
|
17
19
|
|
|
@@ -150,25 +152,53 @@ The SDK includes several models that represent the data structures used in API r
|
|
|
150
152
|
<details>
|
|
151
153
|
<summary>Below is a list of all available models:</summary>
|
|
152
154
|
|
|
153
|
-
| Name
|
|
154
|
-
|
|
|
155
|
-
| GetAccessTokenRequest
|
|
156
|
-
| GetAccessTokenOkResponse
|
|
157
|
-
| ListDestinationsOkResponse
|
|
158
|
-
| ListPackagesOkResponse
|
|
159
|
-
|
|
|
160
|
-
|
|
|
161
|
-
|
|
|
162
|
-
|
|
|
163
|
-
|
|
|
164
|
-
|
|
|
165
|
-
|
|
|
166
|
-
|
|
|
167
|
-
|
|
|
168
|
-
|
|
|
169
|
-
|
|
|
170
|
-
|
|
|
171
|
-
|
|
|
155
|
+
| Name | Description |
|
|
156
|
+
| :-------------------------------- | :---------- |
|
|
157
|
+
| GetAccessTokenRequest | |
|
|
158
|
+
| GetAccessTokenOkResponse | |
|
|
159
|
+
| ListDestinationsOkResponse | |
|
|
160
|
+
| ListPackagesOkResponse | |
|
|
161
|
+
| CreatePurchaseV2Request | |
|
|
162
|
+
| CreatePurchaseV2OkResponse | |
|
|
163
|
+
| ListPurchasesOkResponse | |
|
|
164
|
+
| CreatePurchaseRequest | |
|
|
165
|
+
| CreatePurchaseOkResponse | |
|
|
166
|
+
| TopUpEsimRequest | |
|
|
167
|
+
| TopUpEsimOkResponse | |
|
|
168
|
+
| EditPurchaseRequest | |
|
|
169
|
+
| EditPurchaseOkResponse | |
|
|
170
|
+
| GetPurchaseConsumptionOkResponse | |
|
|
171
|
+
| GetEsimOkResponse | |
|
|
172
|
+
| GetEsimDeviceOkResponse | |
|
|
173
|
+
| GetEsimHistoryOkResponse | |
|
|
174
|
+
| GetEsimMacOkResponse | |
|
|
175
|
+
| TokenOkResponse | |
|
|
176
|
+
| ListDestinations400Response | |
|
|
177
|
+
| ListDestinations401Response | |
|
|
178
|
+
| ListPackages400Response | |
|
|
179
|
+
| ListPackages401Response | |
|
|
180
|
+
| CreatePurchaseV2_400Response | |
|
|
181
|
+
| CreatePurchaseV2_401Response | |
|
|
182
|
+
| ListPurchases400Response | |
|
|
183
|
+
| ListPurchases401Response | |
|
|
184
|
+
| CreatePurchase400Response | |
|
|
185
|
+
| CreatePurchase401Response | |
|
|
186
|
+
| TopUpEsim400Response | |
|
|
187
|
+
| TopUpEsim401Response | |
|
|
188
|
+
| EditPurchase400Response | |
|
|
189
|
+
| EditPurchase401Response | |
|
|
190
|
+
| GetPurchaseConsumption400Response | |
|
|
191
|
+
| GetPurchaseConsumption401Response | |
|
|
192
|
+
| GetEsim400Response | |
|
|
193
|
+
| GetEsim401Response | |
|
|
194
|
+
| GetEsimDevice400Response | |
|
|
195
|
+
| GetEsimDevice401Response | |
|
|
196
|
+
| GetEsimHistory400Response | |
|
|
197
|
+
| GetEsimHistory401Response | |
|
|
198
|
+
| GetEsimMac400Response | |
|
|
199
|
+
| GetEsimMac401Response | |
|
|
200
|
+
| Token400Response | |
|
|
201
|
+
| Token401Response | |
|
|
172
202
|
|
|
173
203
|
</details>
|
|
174
204
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Celitech Python SDK 1.3.
|
|
1
|
+
# Celitech Python SDK 1.3.44
|
|
2
2
|
|
|
3
3
|
Welcome to the Celitech SDK documentation. This guide will help you get started with integrating and using the Celitech SDK in your project.
|
|
4
4
|
|
|
@@ -6,12 +6,14 @@ Welcome to the Celitech SDK documentation. This guide will help you get started
|
|
|
6
6
|
|
|
7
7
|
## Versions
|
|
8
8
|
|
|
9
|
-
- API version: `1.
|
|
10
|
-
- SDK version: `1.3.
|
|
9
|
+
- API version: `1.3.44`
|
|
10
|
+
- SDK version: `1.3.44`
|
|
11
11
|
|
|
12
12
|
## About the API
|
|
13
13
|
|
|
14
|
-
Welcome to the CELITECH API documentation
|
|
14
|
+
Welcome to the CELITECH API documentation!
|
|
15
|
+
|
|
16
|
+
Useful links: [Homepage](https://www.celitech.com) | [Support email](mailto:support@celitech.com) | [Blog](https://www.celitech.com/blog/)
|
|
15
17
|
|
|
16
18
|
## Table of Contents
|
|
17
19
|
|
|
@@ -151,25 +153,53 @@ The SDK includes several models that represent the data structures used in API r
|
|
|
151
153
|
<details>
|
|
152
154
|
<summary>Below is a list of all available models with links to their detailed documentation:</summary>
|
|
153
155
|
|
|
154
|
-
| Name
|
|
155
|
-
|
|
|
156
|
-
| [GetAccessTokenRequest](documentation/models/GetAccessTokenRequest.md)
|
|
157
|
-
| [GetAccessTokenOkResponse](documentation/models/GetAccessTokenOkResponse.md)
|
|
158
|
-
| [ListDestinationsOkResponse](documentation/models/ListDestinationsOkResponse.md)
|
|
159
|
-
| [ListPackagesOkResponse](documentation/models/ListPackagesOkResponse.md)
|
|
160
|
-
| [
|
|
161
|
-
| [
|
|
162
|
-
| [
|
|
163
|
-
| [
|
|
164
|
-
| [
|
|
165
|
-
| [
|
|
166
|
-
| [
|
|
167
|
-
| [
|
|
168
|
-
| [
|
|
169
|
-
| [
|
|
170
|
-
| [
|
|
171
|
-
| [
|
|
172
|
-
| [
|
|
156
|
+
| Name | Description |
|
|
157
|
+
| :---------------------------------------------------------------------------------------------- | :---------- |
|
|
158
|
+
| [GetAccessTokenRequest](documentation/models/GetAccessTokenRequest.md) | |
|
|
159
|
+
| [GetAccessTokenOkResponse](documentation/models/GetAccessTokenOkResponse.md) | |
|
|
160
|
+
| [ListDestinationsOkResponse](documentation/models/ListDestinationsOkResponse.md) | |
|
|
161
|
+
| [ListPackagesOkResponse](documentation/models/ListPackagesOkResponse.md) | |
|
|
162
|
+
| [CreatePurchaseV2Request](documentation/models/CreatePurchaseV2Request.md) | |
|
|
163
|
+
| [CreatePurchaseV2OkResponse](documentation/models/CreatePurchaseV2OkResponse.md) | |
|
|
164
|
+
| [ListPurchasesOkResponse](documentation/models/ListPurchasesOkResponse.md) | |
|
|
165
|
+
| [CreatePurchaseRequest](documentation/models/CreatePurchaseRequest.md) | |
|
|
166
|
+
| [CreatePurchaseOkResponse](documentation/models/CreatePurchaseOkResponse.md) | |
|
|
167
|
+
| [TopUpEsimRequest](documentation/models/TopUpEsimRequest.md) | |
|
|
168
|
+
| [TopUpEsimOkResponse](documentation/models/TopUpEsimOkResponse.md) | |
|
|
169
|
+
| [EditPurchaseRequest](documentation/models/EditPurchaseRequest.md) | |
|
|
170
|
+
| [EditPurchaseOkResponse](documentation/models/EditPurchaseOkResponse.md) | |
|
|
171
|
+
| [GetPurchaseConsumptionOkResponse](documentation/models/GetPurchaseConsumptionOkResponse.md) | |
|
|
172
|
+
| [GetEsimOkResponse](documentation/models/GetEsimOkResponse.md) | |
|
|
173
|
+
| [GetEsimDeviceOkResponse](documentation/models/GetEsimDeviceOkResponse.md) | |
|
|
174
|
+
| [GetEsimHistoryOkResponse](documentation/models/GetEsimHistoryOkResponse.md) | |
|
|
175
|
+
| [GetEsimMacOkResponse](documentation/models/GetEsimMacOkResponse.md) | |
|
|
176
|
+
| [TokenOkResponse](documentation/models/TokenOkResponse.md) | |
|
|
177
|
+
| [ListDestinations_400Response](documentation/models/ListDestinations400Response.md) | |
|
|
178
|
+
| [ListDestinations_401Response](documentation/models/ListDestinations401Response.md) | |
|
|
179
|
+
| [ListPackages_400Response](documentation/models/ListPackages400Response.md) | |
|
|
180
|
+
| [ListPackages_401Response](documentation/models/ListPackages401Response.md) | |
|
|
181
|
+
| [CreatePurchaseV2_400Response](documentation/models/CreatePurchaseV2_400Response.md) | |
|
|
182
|
+
| [CreatePurchaseV2_401Response](documentation/models/CreatePurchaseV2_401Response.md) | |
|
|
183
|
+
| [ListPurchases_400Response](documentation/models/ListPurchases400Response.md) | |
|
|
184
|
+
| [ListPurchases_401Response](documentation/models/ListPurchases401Response.md) | |
|
|
185
|
+
| [CreatePurchase_400Response](documentation/models/CreatePurchase400Response.md) | |
|
|
186
|
+
| [CreatePurchase_401Response](documentation/models/CreatePurchase401Response.md) | |
|
|
187
|
+
| [TopUpEsim_400Response](documentation/models/TopUpEsim400Response.md) | |
|
|
188
|
+
| [TopUpEsim_401Response](documentation/models/TopUpEsim401Response.md) | |
|
|
189
|
+
| [EditPurchase_400Response](documentation/models/EditPurchase400Response.md) | |
|
|
190
|
+
| [EditPurchase_401Response](documentation/models/EditPurchase401Response.md) | |
|
|
191
|
+
| [GetPurchaseConsumption_400Response](documentation/models/GetPurchaseConsumption400Response.md) | |
|
|
192
|
+
| [GetPurchaseConsumption_401Response](documentation/models/GetPurchaseConsumption401Response.md) | |
|
|
193
|
+
| [GetEsim_400Response](documentation/models/GetEsim400Response.md) | |
|
|
194
|
+
| [GetEsim_401Response](documentation/models/GetEsim401Response.md) | |
|
|
195
|
+
| [GetEsimDevice_400Response](documentation/models/GetEsimDevice400Response.md) | |
|
|
196
|
+
| [GetEsimDevice_401Response](documentation/models/GetEsimDevice401Response.md) | |
|
|
197
|
+
| [GetEsimHistory_400Response](documentation/models/GetEsimHistory400Response.md) | |
|
|
198
|
+
| [GetEsimHistory_401Response](documentation/models/GetEsimHistory401Response.md) | |
|
|
199
|
+
| [GetEsimMac_400Response](documentation/models/GetEsimMac400Response.md) | |
|
|
200
|
+
| [GetEsimMac_401Response](documentation/models/GetEsimMac401Response.md) | |
|
|
201
|
+
| [Token_400Response](documentation/models/Token400Response.md) | |
|
|
202
|
+
| [Token_401Response](documentation/models/Token401Response.md) | |
|
|
173
203
|
|
|
174
204
|
</details>
|
|
175
205
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "celitech-sdk"
|
|
7
|
-
version = "1.3.
|
|
7
|
+
version = "1.3.44"
|
|
8
8
|
license = { text = "MIT" }
|
|
9
9
|
description = """Welcome to the CELITECH API documentation!\n\nUseful links: [Homepage](https://www.celitech.com) | [Support email](mailto:support@celitech.com) | [Blog](https://www.celitech.com/blog/)\n"""
|
|
10
10
|
readme = "PyPI_README.md"
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
from .get_access_token_request import GetAccessTokenRequest, GrantType
|
|
2
|
+
from .get_access_token_ok_response import GetAccessTokenOkResponse
|
|
3
|
+
from .list_destinations_ok_response import ListDestinationsOkResponse, Destinations
|
|
4
|
+
from .list_packages_ok_response import ListPackagesOkResponse, Packages
|
|
5
|
+
from .create_purchase_v2_request import CreatePurchaseV2Request
|
|
6
|
+
from .create_purchase_v2_ok_response import (
|
|
7
|
+
CreatePurchaseV2OkResponse,
|
|
8
|
+
CreatePurchaseV2OkResponsePurchase,
|
|
9
|
+
CreatePurchaseV2OkResponseProfile,
|
|
10
|
+
)
|
|
11
|
+
from .list_purchases_ok_response import ListPurchasesOkResponse, Purchases
|
|
12
|
+
from .create_purchase_request import CreatePurchaseRequest
|
|
13
|
+
from .create_purchase_ok_response import (
|
|
14
|
+
CreatePurchaseOkResponse,
|
|
15
|
+
CreatePurchaseOkResponsePurchase,
|
|
16
|
+
CreatePurchaseOkResponseProfile,
|
|
17
|
+
)
|
|
18
|
+
from .top_up_esim_request import TopUpEsimRequest
|
|
19
|
+
from .top_up_esim_ok_response import (
|
|
20
|
+
TopUpEsimOkResponse,
|
|
21
|
+
TopUpEsimOkResponsePurchase,
|
|
22
|
+
TopUpEsimOkResponseProfile,
|
|
23
|
+
)
|
|
24
|
+
from .edit_purchase_request import EditPurchaseRequest
|
|
25
|
+
from .edit_purchase_ok_response import EditPurchaseOkResponse
|
|
26
|
+
from .get_purchase_consumption_ok_response import GetPurchaseConsumptionOkResponse
|
|
27
|
+
from .get_esim_ok_response import GetEsimOkResponse, GetEsimOkResponseEsim
|
|
28
|
+
from .get_esim_device_ok_response import GetEsimDeviceOkResponse, Device
|
|
29
|
+
from .get_esim_history_ok_response import (
|
|
30
|
+
GetEsimHistoryOkResponse,
|
|
31
|
+
GetEsimHistoryOkResponseEsim,
|
|
32
|
+
)
|
|
33
|
+
from .get_esim_mac_ok_response import GetEsimMacOkResponse, GetEsimMacOkResponseEsim
|
|
34
|
+
from .token_ok_response import TokenOkResponse
|
|
35
|
+
from .list_destinations_400_response import ListDestinations400Response
|
|
36
|
+
from .list_destinations_401_response import ListDestinations401Response
|
|
37
|
+
from .list_packages_400_response import ListPackages400Response
|
|
38
|
+
from .list_packages_401_response import ListPackages401Response
|
|
39
|
+
from .create_purchase_v2_400_response import CreatePurchaseV2_400Response
|
|
40
|
+
from .create_purchase_v2_401_response import CreatePurchaseV2_401Response
|
|
41
|
+
from .list_purchases_400_response import ListPurchases400Response
|
|
42
|
+
from .list_purchases_401_response import ListPurchases401Response
|
|
43
|
+
from .create_purchase_400_response import CreatePurchase400Response
|
|
44
|
+
from .create_purchase_401_response import CreatePurchase401Response
|
|
45
|
+
from .top_up_esim_400_response import TopUpEsim400Response
|
|
46
|
+
from .top_up_esim_401_response import TopUpEsim401Response
|
|
47
|
+
from .edit_purchase_400_response import EditPurchase400Response
|
|
48
|
+
from .edit_purchase_401_response import EditPurchase401Response
|
|
49
|
+
from .get_purchase_consumption_400_response import GetPurchaseConsumption400Response
|
|
50
|
+
from .get_purchase_consumption_401_response import GetPurchaseConsumption401Response
|
|
51
|
+
from .get_esim_400_response import GetEsim400Response
|
|
52
|
+
from .get_esim_401_response import GetEsim401Response
|
|
53
|
+
from .get_esim_device_400_response import GetEsimDevice400Response
|
|
54
|
+
from .get_esim_device_401_response import GetEsimDevice401Response
|
|
55
|
+
from .get_esim_history_400_response import GetEsimHistory400Response
|
|
56
|
+
from .get_esim_history_401_response import GetEsimHistory401Response
|
|
57
|
+
from .get_esim_mac_400_response import GetEsimMac400Response
|
|
58
|
+
from .get_esim_mac_401_response import GetEsimMac401Response
|
|
59
|
+
from .token_400_response import Token400Response
|
|
60
|
+
from .token_401_response import Token401Response
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from .utils.json_map import JsonMap
|
|
2
|
+
from ..net.transport.api_error import ApiError
|
|
3
|
+
from .utils.sentinel import SENTINEL
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@JsonMap({})
|
|
7
|
+
class CreatePurchase400Response(ApiError):
|
|
8
|
+
"""CreatePurchase400Response
|
|
9
|
+
|
|
10
|
+
:param message: Message of the error, defaults to None
|
|
11
|
+
:type message: str, optional
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
def __init__(self, message: str = SENTINEL, **kwargs):
|
|
15
|
+
"""CreatePurchase400Response
|
|
16
|
+
|
|
17
|
+
:param message: Message of the error, defaults to None
|
|
18
|
+
:type message: str, optional
|
|
19
|
+
"""
|
|
20
|
+
self.message = self._define_str("message", message, nullable=True)
|
|
21
|
+
self._kwargs = kwargs
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from .utils.json_map import JsonMap
|
|
2
|
+
from ..net.transport.api_error import ApiError
|
|
3
|
+
from .utils.sentinel import SENTINEL
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@JsonMap({})
|
|
7
|
+
class CreatePurchase401Response(ApiError):
|
|
8
|
+
"""CreatePurchase401Response
|
|
9
|
+
|
|
10
|
+
:param message: Message of the error, defaults to None
|
|
11
|
+
:type message: str, optional
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
def __init__(self, message: str = SENTINEL, **kwargs):
|
|
15
|
+
"""CreatePurchase401Response
|
|
16
|
+
|
|
17
|
+
:param message: Message of the error, defaults to None
|
|
18
|
+
:type message: str, optional
|
|
19
|
+
"""
|
|
20
|
+
self.message = self._define_str("message", message, nullable=True)
|
|
21
|
+
self._kwargs = kwargs
|
{celitech_sdk-1.3.38 → celitech_sdk-1.3.44}/src/celitech/models/create_purchase_ok_response.py
RENAMED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from .utils.json_map import JsonMap
|
|
2
2
|
from .utils.base_model import BaseModel
|
|
3
|
+
from .utils.sentinel import SENTINEL
|
|
3
4
|
|
|
4
5
|
|
|
5
6
|
@JsonMap(
|
|
@@ -34,13 +35,13 @@ class CreatePurchaseOkResponsePurchase(BaseModel):
|
|
|
34
35
|
|
|
35
36
|
def __init__(
|
|
36
37
|
self,
|
|
37
|
-
id_: str =
|
|
38
|
-
package_id: str =
|
|
39
|
-
start_date: str =
|
|
40
|
-
end_date: str =
|
|
41
|
-
created_date: str =
|
|
42
|
-
start_time: float =
|
|
43
|
-
end_time: float =
|
|
38
|
+
id_: str = SENTINEL,
|
|
39
|
+
package_id: str = SENTINEL,
|
|
40
|
+
start_date: str = SENTINEL,
|
|
41
|
+
end_date: str = SENTINEL,
|
|
42
|
+
created_date: str = SENTINEL,
|
|
43
|
+
start_time: float = SENTINEL,
|
|
44
|
+
end_time: float = SENTINEL,
|
|
44
45
|
**kwargs
|
|
45
46
|
):
|
|
46
47
|
"""CreatePurchaseOkResponsePurchase
|
|
@@ -91,9 +92,9 @@ class CreatePurchaseOkResponseProfile(BaseModel):
|
|
|
91
92
|
|
|
92
93
|
def __init__(
|
|
93
94
|
self,
|
|
94
|
-
iccid: str =
|
|
95
|
-
activation_code: str =
|
|
96
|
-
manual_activation_code: str =
|
|
95
|
+
iccid: str = SENTINEL,
|
|
96
|
+
activation_code: str = SENTINEL,
|
|
97
|
+
manual_activation_code: str = SENTINEL,
|
|
97
98
|
**kwargs
|
|
98
99
|
):
|
|
99
100
|
"""CreatePurchaseOkResponseProfile
|
|
@@ -133,8 +134,8 @@ class CreatePurchaseOkResponse(BaseModel):
|
|
|
133
134
|
|
|
134
135
|
def __init__(
|
|
135
136
|
self,
|
|
136
|
-
purchase: CreatePurchaseOkResponsePurchase =
|
|
137
|
-
profile: CreatePurchaseOkResponseProfile =
|
|
137
|
+
purchase: CreatePurchaseOkResponsePurchase = SENTINEL,
|
|
138
|
+
profile: CreatePurchaseOkResponseProfile = SENTINEL,
|
|
138
139
|
**kwargs
|
|
139
140
|
):
|
|
140
141
|
"""CreatePurchaseOkResponse
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from .utils.json_map import JsonMap
|
|
2
2
|
from .utils.base_model import BaseModel
|
|
3
|
+
from .utils.sentinel import SENTINEL
|
|
3
4
|
|
|
4
5
|
|
|
5
6
|
@JsonMap(
|
|
@@ -9,6 +10,7 @@ from .utils.base_model import BaseModel
|
|
|
9
10
|
"end_date": "endDate",
|
|
10
11
|
"reference_id": "referenceId",
|
|
11
12
|
"network_brand": "networkBrand",
|
|
13
|
+
"email_brand": "emailBrand",
|
|
12
14
|
"start_time": "startTime",
|
|
13
15
|
"end_time": "endTime",
|
|
14
16
|
}
|
|
@@ -16,9 +18,9 @@ from .utils.base_model import BaseModel
|
|
|
16
18
|
class CreatePurchaseRequest(BaseModel):
|
|
17
19
|
"""CreatePurchaseRequest
|
|
18
20
|
|
|
19
|
-
:param destination: ISO representation of the package's destination
|
|
21
|
+
:param destination: ISO representation of the package's destination.
|
|
20
22
|
:type destination: str
|
|
21
|
-
:param data_limit_in_gb: Size of the package in GB. The available options are 1, 2, 3, 5, 8, 20GB
|
|
23
|
+
:param data_limit_in_gb: Size of the package in GB. The available options are 0.5, 1, 2, 3, 5, 8, 20GB
|
|
22
24
|
:type data_limit_in_gb: float
|
|
23
25
|
:param start_date: Start date of the package's validity in the format 'yyyy-MM-dd'. This date can be set to the current day or any day within the next 12 months.
|
|
24
26
|
:type start_date: str
|
|
@@ -28,8 +30,10 @@ class CreatePurchaseRequest(BaseModel):
|
|
|
28
30
|
:type email: str, optional
|
|
29
31
|
:param reference_id: An identifier provided by the partner to link this purchase to their booking or transaction for analytics and debugging purposes., defaults to None
|
|
30
32
|
:type reference_id: str, optional
|
|
31
|
-
:param network_brand: Customize the network brand of the issued eSIM.
|
|
33
|
+
:param network_brand: Customize the network brand of the issued eSIM. The `networkBrand` parameter cannot exceed 15 characters in length and must contain only letters and numbers. This feature is available to platforms with Diamond tier only., defaults to None
|
|
32
34
|
:type network_brand: str, optional
|
|
35
|
+
:param email_brand: Customize the email subject brand. The `emailBrand` parameter cannot exceed 25 characters in length and must contain only letters, numbers, and spaces. This feature is available to platforms with Diamond tier only., defaults to None
|
|
36
|
+
:type email_brand: str, optional
|
|
33
37
|
:param start_time: Epoch value representing the start time of the package's validity. This timestamp can be set to the current time or any time within the next 12 months., defaults to None
|
|
34
38
|
:type start_time: float, optional
|
|
35
39
|
:param end_time: Epoch value representing the end time of the package's validity. End time can be maximum 90 days after Start time., defaults to None
|
|
@@ -42,18 +46,19 @@ class CreatePurchaseRequest(BaseModel):
|
|
|
42
46
|
data_limit_in_gb: float,
|
|
43
47
|
start_date: str,
|
|
44
48
|
end_date: str,
|
|
45
|
-
email: str =
|
|
46
|
-
reference_id: str =
|
|
47
|
-
network_brand: str =
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
email: str = SENTINEL,
|
|
50
|
+
reference_id: str = SENTINEL,
|
|
51
|
+
network_brand: str = SENTINEL,
|
|
52
|
+
email_brand: str = SENTINEL,
|
|
53
|
+
start_time: float = SENTINEL,
|
|
54
|
+
end_time: float = SENTINEL,
|
|
50
55
|
**kwargs
|
|
51
56
|
):
|
|
52
57
|
"""CreatePurchaseRequest
|
|
53
58
|
|
|
54
|
-
:param destination: ISO representation of the package's destination
|
|
59
|
+
:param destination: ISO representation of the package's destination.
|
|
55
60
|
:type destination: str
|
|
56
|
-
:param data_limit_in_gb: Size of the package in GB. The available options are 1, 2, 3, 5, 8, 20GB
|
|
61
|
+
:param data_limit_in_gb: Size of the package in GB. The available options are 0.5, 1, 2, 3, 5, 8, 20GB
|
|
57
62
|
:type data_limit_in_gb: float
|
|
58
63
|
:param start_date: Start date of the package's validity in the format 'yyyy-MM-dd'. This date can be set to the current day or any day within the next 12 months.
|
|
59
64
|
:type start_date: str
|
|
@@ -63,8 +68,10 @@ class CreatePurchaseRequest(BaseModel):
|
|
|
63
68
|
:type email: str, optional
|
|
64
69
|
:param reference_id: An identifier provided by the partner to link this purchase to their booking or transaction for analytics and debugging purposes., defaults to None
|
|
65
70
|
:type reference_id: str, optional
|
|
66
|
-
:param network_brand: Customize the network brand of the issued eSIM.
|
|
71
|
+
:param network_brand: Customize the network brand of the issued eSIM. The `networkBrand` parameter cannot exceed 15 characters in length and must contain only letters and numbers. This feature is available to platforms with Diamond tier only., defaults to None
|
|
67
72
|
:type network_brand: str, optional
|
|
73
|
+
:param email_brand: Customize the email subject brand. The `emailBrand` parameter cannot exceed 25 characters in length and must contain only letters, numbers, and spaces. This feature is available to platforms with Diamond tier only., defaults to None
|
|
74
|
+
:type email_brand: str, optional
|
|
68
75
|
:param start_time: Epoch value representing the start time of the package's validity. This timestamp can be set to the current time or any time within the next 12 months., defaults to None
|
|
69
76
|
:type start_time: float, optional
|
|
70
77
|
:param end_time: Epoch value representing the end time of the package's validity. End time can be maximum 90 days after Start time., defaults to None
|
|
@@ -81,6 +88,7 @@ class CreatePurchaseRequest(BaseModel):
|
|
|
81
88
|
self.network_brand = self._define_str(
|
|
82
89
|
"network_brand", network_brand, nullable=True
|
|
83
90
|
)
|
|
91
|
+
self.email_brand = self._define_str("email_brand", email_brand, nullable=True)
|
|
84
92
|
self.start_time = self._define_number("start_time", start_time, nullable=True)
|
|
85
93
|
self.end_time = self._define_number("end_time", end_time, nullable=True)
|
|
86
94
|
self._kwargs = kwargs
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from .utils.json_map import JsonMap
|
|
2
|
+
from ..net.transport.api_error import ApiError
|
|
3
|
+
from .utils.sentinel import SENTINEL
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@JsonMap({})
|
|
7
|
+
class CreatePurchaseV2_400Response(ApiError):
|
|
8
|
+
"""CreatePurchaseV2_400Response
|
|
9
|
+
|
|
10
|
+
:param message: Message of the error, defaults to None
|
|
11
|
+
:type message: str, optional
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
def __init__(self, message: str = SENTINEL, **kwargs):
|
|
15
|
+
"""CreatePurchaseV2_400Response
|
|
16
|
+
|
|
17
|
+
:param message: Message of the error, defaults to None
|
|
18
|
+
:type message: str, optional
|
|
19
|
+
"""
|
|
20
|
+
self.message = self._define_str("message", message, nullable=True)
|
|
21
|
+
self._kwargs = kwargs
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from .utils.json_map import JsonMap
|
|
2
|
+
from ..net.transport.api_error import ApiError
|
|
3
|
+
from .utils.sentinel import SENTINEL
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@JsonMap({})
|
|
7
|
+
class CreatePurchaseV2_401Response(ApiError):
|
|
8
|
+
"""CreatePurchaseV2_401Response
|
|
9
|
+
|
|
10
|
+
:param message: Message of the error, defaults to None
|
|
11
|
+
:type message: str, optional
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
def __init__(self, message: str = SENTINEL, **kwargs):
|
|
15
|
+
"""CreatePurchaseV2_401Response
|
|
16
|
+
|
|
17
|
+
:param message: Message of the error, defaults to None
|
|
18
|
+
:type message: str, optional
|
|
19
|
+
"""
|
|
20
|
+
self.message = self._define_str("message", message, nullable=True)
|
|
21
|
+
self._kwargs = kwargs
|