apimatic-tql-sdk 0.0.1__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 (84) hide show
  1. apimatic_tql_sdk-0.0.1.dist-info/METADATA +197 -0
  2. apimatic_tql_sdk-0.0.1.dist-info/RECORD +84 -0
  3. apimatic_tql_sdk-0.0.1.dist-info/WHEEL +5 -0
  4. apimatic_tql_sdk-0.0.1.dist-info/licenses/LICENSE +28 -0
  5. apimatic_tql_sdk-0.0.1.dist-info/top_level.txt +1 -0
  6. tqlotrfactoringdataexchange/__init__.py +13 -0
  7. tqlotrfactoringdataexchange/api_helper.py +19 -0
  8. tqlotrfactoringdataexchange/apis/__init__.py +10 -0
  9. tqlotrfactoringdataexchange/apis/assignments_api.py +95 -0
  10. tqlotrfactoringdataexchange/apis/base_api.py +72 -0
  11. tqlotrfactoringdataexchange/apis/documents_api.py +154 -0
  12. tqlotrfactoringdataexchange/apis/invoices_api.py +211 -0
  13. tqlotrfactoringdataexchange/apis/loads_api.py +138 -0
  14. tqlotrfactoringdataexchange/apis/oauth_authorization_api.py +94 -0
  15. tqlotrfactoringdataexchange/configuration.py +253 -0
  16. tqlotrfactoringdataexchange/exceptions/__init__.py +7 -0
  17. tqlotrfactoringdataexchange/exceptions/api_exception.py +36 -0
  18. tqlotrfactoringdataexchange/exceptions/oauth_provider_exception.py +75 -0
  19. tqlotrfactoringdataexchange/exceptions/problem_details_error_exception.py +79 -0
  20. tqlotrfactoringdataexchange/http/__init__.py +11 -0
  21. tqlotrfactoringdataexchange/http/api_response.py +67 -0
  22. tqlotrfactoringdataexchange/http/auth/__init__.py +5 -0
  23. tqlotrfactoringdataexchange/http/auth/oauth_2.py +350 -0
  24. tqlotrfactoringdataexchange/http/http_call_back.py +20 -0
  25. tqlotrfactoringdataexchange/http/http_client_provider.py +23 -0
  26. tqlotrfactoringdataexchange/http/http_method_enum.py +25 -0
  27. tqlotrfactoringdataexchange/http/http_request.py +55 -0
  28. tqlotrfactoringdataexchange/http/http_response.py +45 -0
  29. tqlotrfactoringdataexchange/http/proxy_settings.py +50 -0
  30. tqlotrfactoringdataexchange/logging/__init__.py +6 -0
  31. tqlotrfactoringdataexchange/logging/configuration/__init__.py +5 -0
  32. tqlotrfactoringdataexchange/logging/configuration/api_logging_configuration.py +398 -0
  33. tqlotrfactoringdataexchange/logging/sdk_logger.py +28 -0
  34. tqlotrfactoringdataexchange/models/__init__.py +50 -0
  35. tqlotrfactoringdataexchange/models/assignment_request.py +225 -0
  36. tqlotrfactoringdataexchange/models/assignment_response.py +208 -0
  37. tqlotrfactoringdataexchange/models/assignment_status.py +59 -0
  38. tqlotrfactoringdataexchange/models/base_64_document.py +181 -0
  39. tqlotrfactoringdataexchange/models/base_64_document_upload_request.py +158 -0
  40. tqlotrfactoringdataexchange/models/carrier.py +158 -0
  41. tqlotrfactoringdataexchange/models/carrier_1.py +158 -0
  42. tqlotrfactoringdataexchange/models/carrier_2.py +158 -0
  43. tqlotrfactoringdataexchange/models/carrier_input.py +207 -0
  44. tqlotrfactoringdataexchange/models/carrier_input_1.py +207 -0
  45. tqlotrfactoringdataexchange/models/charge_code.py +191 -0
  46. tqlotrfactoringdataexchange/models/charge_code_origin.py +69 -0
  47. tqlotrfactoringdataexchange/models/charge_input.py +235 -0
  48. tqlotrfactoringdataexchange/models/document.py +129 -0
  49. tqlotrfactoringdataexchange/models/document_type.py +234 -0
  50. tqlotrfactoringdataexchange/models/document_upload_metadata.py +168 -0
  51. tqlotrfactoringdataexchange/models/document_upload_response.py +230 -0
  52. tqlotrfactoringdataexchange/models/exception_severity.py +48 -0
  53. tqlotrfactoringdataexchange/models/factoring_company_input.py +181 -0
  54. tqlotrfactoringdataexchange/models/invoice.py +397 -0
  55. tqlotrfactoringdataexchange/models/invoice_exception.py +228 -0
  56. tqlotrfactoringdataexchange/models/invoice_item_input.py +283 -0
  57. tqlotrfactoringdataexchange/models/invoice_search_request.py +391 -0
  58. tqlotrfactoringdataexchange/models/invoice_search_response.py +206 -0
  59. tqlotrfactoringdataexchange/models/invoice_status.py +74 -0
  60. tqlotrfactoringdataexchange/models/invoice_status_response.py +319 -0
  61. tqlotrfactoringdataexchange/models/invoice_type.py +75 -0
  62. tqlotrfactoringdataexchange/models/load.py +190 -0
  63. tqlotrfactoringdataexchange/models/load_detail.py +264 -0
  64. tqlotrfactoringdataexchange/models/load_search_request.py +377 -0
  65. tqlotrfactoringdataexchange/models/load_search_response.py +206 -0
  66. tqlotrfactoringdataexchange/models/load_status.py +60 -0
  67. tqlotrfactoringdataexchange/models/location.py +271 -0
  68. tqlotrfactoringdataexchange/models/oauth_provider_error.py +67 -0
  69. tqlotrfactoringdataexchange/models/oauth_scope.py +45 -0
  70. tqlotrfactoringdataexchange/models/oauth_token.py +115 -0
  71. tqlotrfactoringdataexchange/models/payment.py +186 -0
  72. tqlotrfactoringdataexchange/models/problem_details.py +155 -0
  73. tqlotrfactoringdataexchange/models/reference_number_input.py +155 -0
  74. tqlotrfactoringdataexchange/models/reference_type.py +101 -0
  75. tqlotrfactoringdataexchange/models/status.py +51 -0
  76. tqlotrfactoringdataexchange/models/stop_input.py +180 -0
  77. tqlotrfactoringdataexchange/models/stop_type.py +78 -0
  78. tqlotrfactoringdataexchange/models/submit_invoice_request.py +494 -0
  79. tqlotrfactoringdataexchange/models/submit_invoice_response.py +159 -0
  80. tqlotrfactoringdataexchange/models/weight_unit.py +59 -0
  81. tqlotrfactoringdataexchange/tqlotrfactoringdataexchange_client.py +115 -0
  82. tqlotrfactoringdataexchange/utilities/__init__.py +6 -0
  83. tqlotrfactoringdataexchange/utilities/file_wrapper.py +45 -0
  84. tqlotrfactoringdataexchange/utilities/union_type_lookup.py +70 -0
@@ -0,0 +1,197 @@
1
+ Metadata-Version: 2.4
2
+ Name: apimatic-tql-sdk
3
+ Version: 0.0.1
4
+ Summary: this is a sample SDK generated by APIMatic
5
+ Author-email: developer sdksio <developer+sdksio@apimatic.io>
6
+ Project-URL: Documentation, https://apimatic.io
7
+ Keywords: Apimatic,sdksio
8
+ Requires-Python: >=3.7
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ Requires-Dist: apimatic-core>=0.2.24,~=0.2.0
12
+ Requires-Dist: apimatic-core-interfaces>=0.1.8,~=0.1.0
13
+ Requires-Dist: apimatic-requests-client-adapter>=0.1.10,~=0.1.0
14
+ Requires-Dist: python-dotenv<2.0,>=0.21
15
+ Provides-Extra: testutils
16
+ Requires-Dist: pytest>=7.2.2; extra == "testutils"
17
+ Dynamic: license-file
18
+
19
+
20
+ # Getting Started with TQL <> OTR — Factoring Data Exchange
21
+
22
+ ## Introduction
23
+
24
+ ### Overview
25
+
26
+ The **TQL &lt;&gt; OTR Factoring Data Exchange** API enables factoring clients to submit carrier invoices against loads managed by TQL, upload supporting documentation, search for invoices, and check processing status including any outstanding exceptions.
27
+
28
+ #### Key Capabilities
29
+
30
+ - **Invoice Submission** — `POST /api/invoices` — Submit a factoring company invoice referencing a TQL load, including carrier details, stops, charges, and reference numbers.
31
+ - **Invoice Search** — `POST /api/invoices/search` — Search and retrieve a paginated list of invoices with status and last-updated timestamps.
32
+ - **Invoice Status** — `GET /api/invoices/{invoiceNumber}` — Retrieve the current processing status of an invoice, including any outstanding exceptions.
33
+ - **Document Upload** — `POST /api/documents` — Upload a supporting document (BOL, rate confirmation, proof of delivery, etc.) via `multipart/form-data` and link it to an invoice. Supports arbitrary key-value tags for metadata.
34
+ - **Carrier Assignment** — `PUT /api/assignments` — Notify TQL that a factoring company has been assigned to (or unassigned from) a carrier, including the effective date.
35
+ - **Load Lookup** — `GET /api/loads/{loadNumber}` — Verify a load exists in TQL's system and retrieve basic details (carrier, status, dates).
36
+ - **Load Search** — `POST /api/loads/search` — Search for TQL loads by carrier, date range, or status.
37
+
38
+ #### Authentication
39
+
40
+ This API uses **[OAuth 2.0 Client Credentials](https://datatracker.ietf.org/doc/html/rfc6749#section-4.4)** for authentication. TQL will provision each factoring partner with a unique **Client ID** and **Client Secret** during onboarding.
41
+
42
+ **How it works:**
43
+
44
+ 1. **Obtain an access token** — Make a `POST` request to the TQL
45
+ token endpoint with your Client ID and Client Secret using the
46
+ `client_credentials` grant type.
47
+
48
+ 2. **Include the token** — Pass the access token as a Bearer token
49
+ in the `Authorization` header on every API request:
50
+ `Authorization: Bearer <access_token>`
51
+
52
+ 3. **Token expiry** — Access tokens have a limited lifetime
53
+ (typically 1 hour). When the token expires, request a new one from
54
+ the token endpoint. Do **not** request a new token on every API
55
+ call — cache and reuse the token until it expires.
56
+
57
+ **Required scopes:**
58
+
59
+ - **`Factoring.Write`** — Submit invoices, upload documents, manage assignments
60
+ - **`Factoring.Read`** — Query invoice status, search invoices
61
+ The scopes your client is allowed to request are configured during onboarding. Include the required scope(s) in the `scope` parameter when requesting a token.
62
+
63
+ **Example token request:**
64
+
65
+ POST /oauth2/token HTTP/1.1
66
+ Content-Type: application/x-www-form-urlencoded
67
+
68
+ grant_type=client_credentials
69
+ &client_id=<your_client_id>
70
+ &client_secret=<your_client_secret>
71
+ &scope=Factoring.Write Factoring.Read
72
+
73
+ TQL will provide the exact token endpoint URL, Client ID, and Client Secret during partner onboarding.
74
+
75
+ #### Philosophy
76
+
77
+ - **Authentication** — All endpoints require a valid OAuth 2.0 Bearer token in the `Authorization` header. See the **Authentication** section above for details.
78
+ - **Asynchronous processing** — Write endpoints return `202 Accepted` immediately; poll `GET /api/invoices/{invoiceNumber}` for completion and exceptions.
79
+ - **Error handling** — Non-2xx responses follow [RFC 7807 Problem Details](https://datatracker.ietf.org/doc/html/rfc7807) with `title`, `status`, and `detail` fields.
80
+
81
+ ## Install the Package
82
+
83
+ The package is compatible with Python versions `3.7+`.
84
+ Install the package from PyPi using the following pip command:
85
+
86
+ ```bash
87
+ pip install apimatic-tql-sdk==0.0.1
88
+ ```
89
+
90
+ You can also view the package at:
91
+ https://pypi.python.org/pypi/apimatic-tql-sdk/0.0.1
92
+
93
+ ## Initialize the API Client
94
+
95
+ **_Note:_** Documentation for the client can be found [here.](https://www.github.com/sdks-io/apimatic-tql-python-sdk/tree/0.0.1/doc/client.md)
96
+
97
+ The following parameters are configurable for the API Client:
98
+
99
+ | Parameter | Type | Description |
100
+ | --- | --- | --- |
101
+ | http_client_instance | `Union[Session, HttpClientProvider]` | The Http Client passed from the sdk user for making requests |
102
+ | override_http_client_configuration | `bool` | The value which determines to override properties of the passed Http Client from the sdk user |
103
+ | http_call_back | `HttpCallBack` | The callback value that is invoked before and after an HTTP call is made to an endpoint |
104
+ | timeout | `float` | The value to use for connection timeout. <br> **Default: 30** |
105
+ | max_retries | `int` | The number of times to retry an endpoint call if it fails. <br> **Default: 0** |
106
+ | backoff_factor | `float` | A backoff factor to apply between attempts after the second try. <br> **Default: 2** |
107
+ | retry_statuses | `Array of int` | The http statuses on which retry is to be done. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |
108
+ | retry_methods | `Array of string` | The http methods on which retry is to be done. <br> **Default: ["GET", "PUT"]** |
109
+ | proxy_settings | [`ProxySettings`](https://www.github.com/sdks-io/apimatic-tql-python-sdk/tree/0.0.1/doc/proxy-settings.md) | Optional proxy configuration to route HTTP requests through a proxy server. |
110
+ | logging_configuration | [`LoggingConfiguration`](https://www.github.com/sdks-io/apimatic-tql-python-sdk/tree/0.0.1/doc/logging-configuration.md) | The SDK logging configuration for API calls |
111
+ | client_credentials_auth_credentials | [`ClientCredentialsAuthCredentials`](https://www.github.com/sdks-io/apimatic-tql-python-sdk/tree/0.0.1/doc/auth/oauth-2-client-credentials-grant.md) | The credential object for OAuth 2 Client Credentials Grant |
112
+
113
+ The API client can be initialized as follows:
114
+
115
+ ### Code-Based Client Initialization
116
+
117
+ ```python
118
+ import logging
119
+
120
+ from tqlotrfactoringdataexchange.configuration import Environment
121
+ from tqlotrfactoringdataexchange.http.auth.oauth_2 import ClientCredentialsAuthCredentials
122
+ from tqlotrfactoringdataexchange.logging.configuration.api_logging_configuration import LoggingConfiguration
123
+ from tqlotrfactoringdataexchange.logging.configuration.api_logging_configuration import RequestLoggingConfiguration
124
+ from tqlotrfactoringdataexchange.logging.configuration.api_logging_configuration import ResponseLoggingConfiguration
125
+ from tqlotrfactoringdataexchange.models.oauth_scope import OauthScope
126
+ from tqlotrfactoringdataexchange.tqlotrfactoringdataexchange_client import TqlotrfactoringdataexchangeClient
127
+
128
+ client = TqlotrfactoringdataexchangeClient(
129
+ client_credentials_auth_credentials=ClientCredentialsAuthCredentials(
130
+ oauth_client_id='OAuthClientId',
131
+ oauth_client_secret='OAuthClientSecret',
132
+ oauth_scopes=[
133
+ OauthScope.FACTORING_WRITE,
134
+ OauthScope.FACTORING_READ
135
+ ]
136
+ ),
137
+ environment=Environment.PRODUCTION,
138
+ logging_configuration=LoggingConfiguration(
139
+ log_level=logging.INFO,
140
+ request_logging_config=RequestLoggingConfiguration(
141
+ log_body=True
142
+ ),
143
+ response_logging_config=ResponseLoggingConfiguration(
144
+ log_headers=True
145
+ )
146
+ )
147
+ )
148
+ ```
149
+
150
+ ### Environment-Based Client Initialization
151
+
152
+ ```python
153
+ from tqlotrfactoringdataexchange.tqlotrfactoringdataexchange_client import TqlotrfactoringdataexchangeClient
154
+
155
+ # Specify the path to your .env file if it’s located outside the project’s root directory.
156
+ client = TqlotrfactoringdataexchangeClient.from_environment(dotenv_path='/path/to/.env')
157
+ ```
158
+
159
+ See the [Environment-Based Client Initialization](https://www.github.com/sdks-io/apimatic-tql-python-sdk/tree/0.0.1/doc/environment-based-client-initialization.md) section for details.
160
+
161
+ ## Authorization
162
+
163
+ This API uses the following authentication schemes.
164
+
165
+ * [`bearerAuth (OAuth 2 Client Credentials Grant)`](https://www.github.com/sdks-io/apimatic-tql-python-sdk/tree/0.0.1/doc/auth/oauth-2-client-credentials-grant.md)
166
+
167
+ ## List of APIs
168
+
169
+ * [Invoices](https://www.github.com/sdks-io/apimatic-tql-python-sdk/tree/0.0.1/doc/controllers/invoices.md)
170
+ * [Documents](https://www.github.com/sdks-io/apimatic-tql-python-sdk/tree/0.0.1/doc/controllers/documents.md)
171
+ * [Assignments](https://www.github.com/sdks-io/apimatic-tql-python-sdk/tree/0.0.1/doc/controllers/assignments.md)
172
+ * [Loads](https://www.github.com/sdks-io/apimatic-tql-python-sdk/tree/0.0.1/doc/controllers/loads.md)
173
+
174
+ ## SDK Infrastructure
175
+
176
+ ### Configuration
177
+
178
+ * [ProxySettings](https://www.github.com/sdks-io/apimatic-tql-python-sdk/tree/0.0.1/doc/proxy-settings.md)
179
+ * [Environment-Based Client Initialization](https://www.github.com/sdks-io/apimatic-tql-python-sdk/tree/0.0.1/doc/environment-based-client-initialization.md)
180
+ * [AbstractLogger](https://www.github.com/sdks-io/apimatic-tql-python-sdk/tree/0.0.1/doc/abstract-logger.md)
181
+ * [LoggingConfiguration](https://www.github.com/sdks-io/apimatic-tql-python-sdk/tree/0.0.1/doc/logging-configuration.md)
182
+ * [RequestLoggingConfiguration](https://www.github.com/sdks-io/apimatic-tql-python-sdk/tree/0.0.1/doc/request-logging-configuration.md)
183
+ * [ResponseLoggingConfiguration](https://www.github.com/sdks-io/apimatic-tql-python-sdk/tree/0.0.1/doc/response-logging-configuration.md)
184
+
185
+ ### HTTP
186
+
187
+ * [HttpResponse](https://www.github.com/sdks-io/apimatic-tql-python-sdk/tree/0.0.1/doc/http-response.md)
188
+ * [HttpRequest](https://www.github.com/sdks-io/apimatic-tql-python-sdk/tree/0.0.1/doc/http-request.md)
189
+
190
+ ### Utilities
191
+
192
+ * [ApiResponse](https://www.github.com/sdks-io/apimatic-tql-python-sdk/tree/0.0.1/doc/api-response.md)
193
+ * [ApiHelper](https://www.github.com/sdks-io/apimatic-tql-python-sdk/tree/0.0.1/doc/api-helper.md)
194
+ * [HttpDateTime](https://www.github.com/sdks-io/apimatic-tql-python-sdk/tree/0.0.1/doc/http-date-time.md)
195
+ * [RFC3339DateTime](https://www.github.com/sdks-io/apimatic-tql-python-sdk/tree/0.0.1/doc/rfc3339-date-time.md)
196
+ * [UnixDateTime](https://www.github.com/sdks-io/apimatic-tql-python-sdk/tree/0.0.1/doc/unix-date-time.md)
197
+
@@ -0,0 +1,84 @@
1
+ apimatic_tql_sdk-0.0.1.dist-info/licenses/LICENSE,sha256=o5qrSek4x1g9YArvhgZmSORdSoQn7unl7I44zmz7iBc,1213
2
+ tqlotrfactoringdataexchange/__init__.py,sha256=VnZilFdfoa9u8b6AaheNasQssg1k699lzr4cVhe9sWg,298
3
+ tqlotrfactoringdataexchange/api_helper.py,sha256=rUG29guytQnW80QiOIKHqN8_2e1YOEJa5yezHN7R-dc,555
4
+ tqlotrfactoringdataexchange/configuration.py,sha256=6hfS6lak2BiDsdqb7GDE908aRQgtCNBJOvOSdZVE1Hg,9686
5
+ tqlotrfactoringdataexchange/tqlotrfactoringdataexchange_client.py,sha256=ghtFVQPso_XhXgV8zjpLvY3UX2SX90GDHUur99I9bHE,4146
6
+ tqlotrfactoringdataexchange/apis/__init__.py,sha256=yu3mlRsjP_mcb-h3N-fE6zHmKhi7mmMOxnVuv2kZXms,254
7
+ tqlotrfactoringdataexchange/apis/assignments_api.py,sha256=4OkKvuKaqt-ps2nQNWnI22YPPc7JOh2qFRFdkYSNEv0,3794
8
+ tqlotrfactoringdataexchange/apis/base_api.py,sha256=GAzuapCJlyrFv6S6flGnrVpP6Wd4aofwsRLwzIE2TAA,2315
9
+ tqlotrfactoringdataexchange/apis/documents_api.py,sha256=woW9HXPWyRvpGw25Vkb0i5FMIJGjLFvD2W-NZJg2bIM,6403
10
+ tqlotrfactoringdataexchange/apis/invoices_api.py,sha256=v3cLMBBz_24mCxPzTnB_5UVQg64lwbdr2r53q4YhxZ8,9173
11
+ tqlotrfactoringdataexchange/apis/loads_api.py,sha256=x_6LHvGNMHm7Bki6Ezqt2Cs319y8cQubCtF8NmYVUu8,5331
12
+ tqlotrfactoringdataexchange/apis/oauth_authorization_api.py,sha256=4R12FRqOPY48RKK_mjIhgpa09pPyZ2y_E01xQNjLUP4,3500
13
+ tqlotrfactoringdataexchange/exceptions/__init__.py,sha256=f-RsLxXBUlJAC1qwYNZ2ZOryctPKqiRveqGIuAMy6kM,215
14
+ tqlotrfactoringdataexchange/exceptions/api_exception.py,sha256=z9fLm7v41ktFbBq3I0OhK37sy7z6k5ZrT2Otn34wZ7k,1106
15
+ tqlotrfactoringdataexchange/exceptions/oauth_provider_exception.py,sha256=-gJ9oBhfETqKbIVPNGK3kNSf0QP-eVaThytrEh_6OEw,2411
16
+ tqlotrfactoringdataexchange/exceptions/problem_details_error_exception.py,sha256=sE6mEm66iC6lSAgxCVsZQSx_FGEVz7D6U1v2hOazsG8,2401
17
+ tqlotrfactoringdataexchange/http/__init__.py,sha256=0inmS5sUVyFFK7c7ivfex-inFU1efoAoOvqBEEhTLVo,276
18
+ tqlotrfactoringdataexchange/http/api_response.py,sha256=iAVhy4dJybkrWgnVOmCnLe_4hKhMgCUH7dl5EoSxP80,1989
19
+ tqlotrfactoringdataexchange/http/http_call_back.py,sha256=Lr5d-PwawXlLMUc9xHjAMJIaVVIUnAhclrkIW88N4zA,481
20
+ tqlotrfactoringdataexchange/http/http_client_provider.py,sha256=nBS3supKOuxPZ80qv_E0L2w8jpg4ggpjbrD5QLxC1Vs,749
21
+ tqlotrfactoringdataexchange/http/http_method_enum.py,sha256=sBGxcYjKYvy5xx56cYX7nbh3GMJwUvIzjoKSEmbxp8g,496
22
+ tqlotrfactoringdataexchange/http/http_request.py,sha256=isYOgPwIo3YdF7fNvTPKcC0e3rSinq7xoMVYzUhgad8,1896
23
+ tqlotrfactoringdataexchange/http/http_response.py,sha256=6iyqezmcrDlJ4Vy1ZtmCF7DHbMarHaeHwx4hkPTJqfU,1491
24
+ tqlotrfactoringdataexchange/http/proxy_settings.py,sha256=INtptKcoUWUTkJwP0_K1coh5RBzeYKNA0yoToCEGXi4,1470
25
+ tqlotrfactoringdataexchange/http/auth/__init__.py,sha256=BNvPkLRZhAb4PgmqDviB26Bc-NqLU_MdAEZ8DYmxrTI,136
26
+ tqlotrfactoringdataexchange/http/auth/oauth_2.py,sha256=Z4rQ_ADY0Y3QDwVpacS2o5bMYw3vLOTITkYB0PY680g,12024
27
+ tqlotrfactoringdataexchange/logging/__init__.py,sha256=1T_Geb9czAiw7EJDOWfKErjKAmWTkaWBEZBk54UU5bY,161
28
+ tqlotrfactoringdataexchange/logging/sdk_logger.py,sha256=WXoN6rcAy9he5aUCZV6iYzBQt4vRbw0tm4OIUTj19sY,689
29
+ tqlotrfactoringdataexchange/logging/configuration/__init__.py,sha256=HTzMD3CB83jTxGL56Xt5PCqAmFN9GWO6LxcdZ7tN-DA,154
30
+ tqlotrfactoringdataexchange/logging/configuration/api_logging_configuration.py,sha256=HVqT74A2ZTTM12tGC2wDqKk77SWV2v80IZp2oCeWQ6Y,15463
31
+ tqlotrfactoringdataexchange/models/__init__.py,sha256=QtAJSpzCjZ8K1b-3yj6hvg5uDDfHZXyhfJPBZfC6aNo,1229
32
+ tqlotrfactoringdataexchange/models/assignment_request.py,sha256=cMuUqmGdm64Ufzowe54EgcnDP4wAt3J3G51qCQQaa6U,7682
33
+ tqlotrfactoringdataexchange/models/assignment_response.py,sha256=9qF7EOI8NWjatggD39ZFKWqVnsG2J6zUoA5HSz-G91Y,6825
34
+ tqlotrfactoringdataexchange/models/assignment_status.py,sha256=eCyjA2QmrjD69Ae4WACRH-_O8nWeaj3cFvSvfJLJbj4,1642
35
+ tqlotrfactoringdataexchange/models/base_64_document.py,sha256=lcLWZALTJ1gFGXiHiFz8cCCEQVfbW4oR66bDmioahGI,6010
36
+ tqlotrfactoringdataexchange/models/base_64_document_upload_request.py,sha256=-rFsdNTQuwvIvBm0FaegbXbrtmyh9WTX2J0PanqRIY4,5168
37
+ tqlotrfactoringdataexchange/models/carrier.py,sha256=jAmatcgG7uHOH73uvw3MOoXJxBs5F4upo88aJduDieI,4659
38
+ tqlotrfactoringdataexchange/models/carrier_1.py,sha256=s2ZiRJf4rroYyQ9mXH_y1cKdkFynZPLSK-T7gbjr018,4848
39
+ tqlotrfactoringdataexchange/models/carrier_2.py,sha256=VPZ5LrObtTkbg6KbhKlUH5y2QUwkSboD1UeFs1FbWNI,4820
40
+ tqlotrfactoringdataexchange/models/carrier_input.py,sha256=h1lozdTgM5-a-4g7w8KLDJR6jkIouu476LPXoGjBUE0,6498
41
+ tqlotrfactoringdataexchange/models/carrier_input_1.py,sha256=OsU-awIR-jLx1NxTCb3yNLWqOihjUEGejPlem3Lnb3o,6499
42
+ tqlotrfactoringdataexchange/models/charge_code.py,sha256=Jpq9nLLd8ycGSiXqOgBhR66Irid4xZsYv8MEUu8rp3M,6511
43
+ tqlotrfactoringdataexchange/models/charge_code_origin.py,sha256=RvtZWcb6y1Qow-36Wi-DXNusdWSFEfXgIm20Ud-rImQ,1893
44
+ tqlotrfactoringdataexchange/models/charge_input.py,sha256=cp2xNUAwf6ERPIloI3ASxw1XKv2Bp0jEVXTT9xLqKIQ,7772
45
+ tqlotrfactoringdataexchange/models/document.py,sha256=JyBJ-NigQbch7_sZNdeBIyEqXiuSPDTaC4ScS1bJl_k,4103
46
+ tqlotrfactoringdataexchange/models/document_type.py,sha256=K2f2aVKa_xmOBaE80rY6S4MyDBFNOJ8qG-9G08StD7U,7416
47
+ tqlotrfactoringdataexchange/models/document_upload_metadata.py,sha256=Bzg_jHJKYq8Z189Qf7FQ7V93uiFkViN2kGj0x-vdm_c,5535
48
+ tqlotrfactoringdataexchange/models/document_upload_response.py,sha256=Xsa0CQ3_GroblHa7B2o2kBTysMwJ6fWHZdFBOlLugWA,7465
49
+ tqlotrfactoringdataexchange/models/exception_severity.py,sha256=wIR4_ZFwWiG-cyd9I2iDGxiPE-AXH0_B7t3AJH6-YZg,1345
50
+ tqlotrfactoringdataexchange/models/factoring_company_input.py,sha256=Ph7I8ua_JCoZWl-f_ovfyJEcM03J1PfqvNB8fiBjXU8,5960
51
+ tqlotrfactoringdataexchange/models/invoice.py,sha256=nvmDtV7ddESYdYzvP06Pglky8aNT1yrGZUgu_QImdGE,13495
52
+ tqlotrfactoringdataexchange/models/invoice_exception.py,sha256=SB8iFR_VzBUm6G85vCQfHRFTZtBh9vbNgKwYOnY9PrM,7087
53
+ tqlotrfactoringdataexchange/models/invoice_item_input.py,sha256=fbGzhVMQvHgeP4XkWyVDd4fGLjTdjI2EooOC_mVFzCY,9618
54
+ tqlotrfactoringdataexchange/models/invoice_search_request.py,sha256=5PfAB2MUNmWWe0HuFkD-Yim_4pXH9mot78XPZUoFIgo,14476
55
+ tqlotrfactoringdataexchange/models/invoice_search_response.py,sha256=SEee9J6DhMOZbqfcb3mfJVNesEeXgY4lt2CBcw74aGg,6361
56
+ tqlotrfactoringdataexchange/models/invoice_status.py,sha256=Z2Zac2gGU12H6maCAPaMBPYjSNmM-YdcU_gAMsoJRFk,2210
57
+ tqlotrfactoringdataexchange/models/invoice_status_response.py,sha256=_DGyCXxHSzLsIYtEoe4C_d3WICJqiwmc2MNhEP38Ey8,11004
58
+ tqlotrfactoringdataexchange/models/invoice_type.py,sha256=Xy5bq9GDgsb0p3BiuYzuZUPvHzzA4G8cxt9NHyiXJbg,2475
59
+ tqlotrfactoringdataexchange/models/load.py,sha256=e3JKKk2I4aDzdgG0TYrlYbNx_PcCN9ICbiLfmJS2Mew,5883
60
+ tqlotrfactoringdataexchange/models/load_detail.py,sha256=2Spj4Q2iKrkgczcX7GbaoeV1luHPpvXwzSQkmvIcX7Y,8272
61
+ tqlotrfactoringdataexchange/models/load_search_request.py,sha256=IMPWetpBiMaf0aiRdzmvp-AS2OwMNsmjTwaHujZEbLY,13308
62
+ tqlotrfactoringdataexchange/models/load_search_response.py,sha256=XB2wRXDk5rNuZtu_GNZpLLIxzFsjRWTwvWKLIjqrdwo,6356
63
+ tqlotrfactoringdataexchange/models/load_status.py,sha256=jSnG4LusM_L2w-PMJHLGnCaNwiGRaUE0TA1qpzgKk4k,1642
64
+ tqlotrfactoringdataexchange/models/location.py,sha256=2qMyfYqjWDfFSgYj3o6wyirz-AOW9dh3yb63UqxPF-E,7952
65
+ tqlotrfactoringdataexchange/models/oauth_provider_error.py,sha256=yWa8Q1BdBz2YaGN7b969rh3lkayDMTYrZNeR_AK_Gtw,2540
66
+ tqlotrfactoringdataexchange/models/oauth_scope.py,sha256=yX9lqgU3NKnkA8bWTg_RU2AQZ-9Am9TGPGE9xKNGTPk,1337
67
+ tqlotrfactoringdataexchange/models/oauth_token.py,sha256=MyhQ5gUcj3LTneWp_IRd8tEqO9QmTNKMtF90eCxAkFE,3618
68
+ tqlotrfactoringdataexchange/models/payment.py,sha256=4ddsFfIlydvIQjg-PiRV9351BsVOr30d97nh8tlUFyg,5762
69
+ tqlotrfactoringdataexchange/models/problem_details.py,sha256=iVjRTHxVa7Xf-Ae33xYAUT-j158nTWFGe4C5sXIxx3c,4650
70
+ tqlotrfactoringdataexchange/models/reference_number_input.py,sha256=xwy6Hql1SRMbeYN_xdeyTLf2ODpoV-01Ve0AV_ZQrOk,5317
71
+ tqlotrfactoringdataexchange/models/reference_type.py,sha256=N2xwUAHTM9Bo0uNiAHy8aZdWyHAILXBIg3vTli5uF0g,2510
72
+ tqlotrfactoringdataexchange/models/status.py,sha256=CZKk1CAeQsZ0FjI3XH2YWPDa-HQT-OwVnVdd5flGjXc,1403
73
+ tqlotrfactoringdataexchange/models/stop_input.py,sha256=0aPTnQSAdtZfVPDhi8YWum9zR2IBCjlU1zOLLWBqr9M,6142
74
+ tqlotrfactoringdataexchange/models/stop_type.py,sha256=uF8Oif65Qv1iTfRVvrHYBCXpdRyGRQN3raLRnh3-ulg,1985
75
+ tqlotrfactoringdataexchange/models/submit_invoice_request.py,sha256=QOm7h_2JFt57BDKXCF_2eUPexRFxYs79rAi84mvOZ_c,19268
76
+ tqlotrfactoringdataexchange/models/submit_invoice_response.py,sha256=Cs0mITMGmp9Lnr6cXF_T0E036ERBlxqEpS3H5XEMx6c,5319
77
+ tqlotrfactoringdataexchange/models/weight_unit.py,sha256=4YVYo_vD16AtSRMub8CqTbH-KkZmwt0FogDWGSW40P8,1552
78
+ tqlotrfactoringdataexchange/utilities/__init__.py,sha256=pq3szt1E0U5M7qGCe9Vdl_jAM7wSgi8mj-UB-Flp6Ow,160
79
+ tqlotrfactoringdataexchange/utilities/file_wrapper.py,sha256=pYrMhWHS92iDU-DnxTO83PTxikZdezHDiLQGWsmwpL4,1442
80
+ tqlotrfactoringdataexchange/utilities/union_type_lookup.py,sha256=rpC7dgtGno3TEg0VXcZrfdBMkc9CdU4adT7CgnnZyGI,1727
81
+ apimatic_tql_sdk-0.0.1.dist-info/METADATA,sha256=iANsQH0SAFkMQS8S06pNmkmFYzcYEEVBjcGUin4-ikk,10678
82
+ apimatic_tql_sdk-0.0.1.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
83
+ apimatic_tql_sdk-0.0.1.dist-info/top_level.txt,sha256=5hKwHeGAF96Bg29gpCtZJJje5F_pgZUXTT-c6-DfltA,28
84
+ apimatic_tql_sdk-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,28 @@
1
+ License:
2
+ ========
3
+ The MIT License (MIT)
4
+ http://opensource.org/licenses/MIT
5
+
6
+ Copyright (c) 2014 - 2026 APIMATIC Limited
7
+
8
+ Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ of this software and associated documentation files (the "Software"), to deal
10
+ in the Software without restriction, including without limitation the rights
11
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ copies of the Software, and to permit persons to whom the Software is
13
+ furnished to do so, subject to the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be included in
16
+ all copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
+ THE SOFTWARE.
25
+
26
+ Trade Mark:
27
+ ==========
28
+ APIMATIC is a trade mark for APIMATIC Limited
@@ -0,0 +1 @@
1
+ tqlotrfactoringdataexchange
@@ -0,0 +1,13 @@
1
+ # ruff: noqa: D104 | Missing docstring in public package
2
+ # ruff: noqa: RUF022 | `__all__` is not sorted
3
+ __all__ = [
4
+ "api_helper",
5
+ "apis",
6
+ "configuration",
7
+ "exceptions",
8
+ "http",
9
+ "logging",
10
+ "models",
11
+ "tqlotrfactoringdataexchange_client",
12
+ "utilities",
13
+ ]
@@ -0,0 +1,19 @@
1
+ """
2
+ tqlotrfactoringdataexchange
3
+
4
+ This file was automatically generated by APIMATIC v3.0 (
5
+ https://www.apimatic.io ).
6
+ """
7
+
8
+ from apimatic_core.utilities.api_helper import ApiHelper as CoreApiHelper
9
+
10
+
11
+ class APIHelper(CoreApiHelper):
12
+ """
13
+ A Helper Class for various functions associated with API Calls.
14
+
15
+ This class contains static methods for operations that need to be
16
+ performed during API requests. All of the methods inside this class are
17
+ static methods, there is no need to ever initialise an instance of this
18
+ class.
19
+ """
@@ -0,0 +1,10 @@
1
+ # ruff: noqa: D104 | Missing docstring in public package
2
+ # ruff: noqa: RUF022 | `__all__` is not sorted
3
+ __all__ = [
4
+ "assignments_api",
5
+ "base_api",
6
+ "documents_api",
7
+ "invoices_api",
8
+ "loads_api",
9
+ "oauth_authorization_api",
10
+ ]
@@ -0,0 +1,95 @@
1
+ """tqlotrfactoringdataexchange.
2
+
3
+ This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
4
+ """
5
+
6
+ # ruff: noqa: D410, E501, E101, D206
7
+ from apimatic_core.authentication.multiple.single_auth import (
8
+ Single,
9
+ )
10
+ from apimatic_core.request_builder import RequestBuilder
11
+ from apimatic_core.response_handler import ResponseHandler
12
+ from apimatic_core.types.parameter import Parameter
13
+
14
+ from tqlotrfactoringdataexchange.api_helper import (
15
+ APIHelper,
16
+ )
17
+ from tqlotrfactoringdataexchange.apis.base_api import (
18
+ BaseApi,
19
+ )
20
+ from tqlotrfactoringdataexchange.configuration import (
21
+ Server,
22
+ )
23
+ from tqlotrfactoringdataexchange.exceptions.problem_details_error_exception import (
24
+ ProblemDetailsErrorException,
25
+ )
26
+ from tqlotrfactoringdataexchange.http.http_method_enum import (
27
+ HttpMethodEnum,
28
+ )
29
+ from tqlotrfactoringdataexchange.models.assignment_response import (
30
+ AssignmentResponse,
31
+ )
32
+
33
+
34
+ class AssignmentsApi(BaseApi):
35
+ """A Controller to access Endpoints in the tqlotrfactoringdataexchange API."""
36
+
37
+ def __init__(self, config):
38
+ """Initialize AssignmentsApi object."""
39
+ super(AssignmentsApi, self).__init__(config)
40
+
41
+ def upsert_assignment(self,
42
+ body):
43
+ """Perform a PUT request to /api/assignments.
44
+
45
+ Notify TQL that a factoring company has been assigned to — or unassigned from
46
+ — a carrier. The request is idempotent; sending the same carrier + status
47
+ combination again is a no-op.
48
+ The `effectiveDate` field indicates the date the assignment or un-assignment
49
+ took effect (i.e., the "as of" date).
50
+ **Load event webhooks:** Assigning a carrier also serves as a subscription to
51
+ load event webhooks for that carrier. Once a carrier is assigned, TQL will
52
+ begin pushing webhook notifications (e.g., Load Created, Load Dispatched,
53
+ Load Delivered) for loads where that carrier is the assigned carrier.
54
+ Unassigning the carrier stops these notifications. The webhook endpoint URL
55
+ is configured during partner onboarding.
56
+
57
+ Args:
58
+ body (AssignmentRequest): The carrier assignment payload including
59
+ carrier identity, assignment status, and effective date.
60
+
61
+ Returns:
62
+ ApiResponse: An object with the response value as well as other useful
63
+ information such as status codes and headers. Assignment accepted for
64
+ processing.
65
+
66
+ Raises:
67
+ ApiException: When an error occurs while fetching the data from the
68
+ remote API. This exception includes the HTTP Response code, an error
69
+ message, and the HTTP body that was received in the request.
70
+
71
+ """
72
+ return super().new_api_call_builder.request(
73
+ RequestBuilder().server(Server.DEFAULT)
74
+ .path("/api/assignments")
75
+ .http_method(HttpMethodEnum.PUT)
76
+ .header_param(Parameter()
77
+ .key("Content-Type")
78
+ .value("application/json"))
79
+ .body_param(Parameter()
80
+ .value(body)
81
+ .is_required(True))
82
+ .header_param(Parameter()
83
+ .key("accept")
84
+ .value("application/json"))
85
+ .body_serializer(APIHelper.json_serialize)
86
+ .auth(Single("bearerAuth")),
87
+ ).response(
88
+ ResponseHandler()
89
+ .deserializer(APIHelper.json_deserialize)
90
+ .deserialize_into(AssignmentResponse.from_dictionary)
91
+ .is_api_response(True)
92
+ .local_error("400",
93
+ "Validation error — missing required fields or invalid data.\n",
94
+ ProblemDetailsErrorException),
95
+ ).execute()
@@ -0,0 +1,72 @@
1
+ """tqlotrfactoringdataexchange.
2
+
3
+ This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
4
+ """
5
+
6
+ import platform
7
+
8
+ from apimatic_core.api_call import ApiCall
9
+ from apimatic_core.types.error_case import ErrorCase
10
+
11
+ from tqlotrfactoringdataexchange.exceptions.api_exception import (
12
+ ApiException,
13
+ )
14
+
15
+
16
+ class BaseApi(object):
17
+ """All controllers inherit from this base class.
18
+
19
+ Attributes:
20
+ config (Configuration): The HttpClient which a specific controller
21
+ instance will use. By default all the controller objects share
22
+ the same HttpClient. A user can use his own custom HttpClient
23
+ as well.
24
+ http_call_back (HttpCallBack): An object which holds call back
25
+ methods to be called before and after the execution of an HttpRequest.
26
+ new_api_call_builder (APICall): Returns the API Call builder instance.
27
+
28
+ """
29
+
30
+ @staticmethod
31
+ def user_agent():
32
+ """Return UserAgent value."""
33
+ return "Python-SDK/0.0.1 (OS: {os-info}, Engine: {engine}/{engine-version})"
34
+
35
+ @staticmethod
36
+ def user_agent_parameters():
37
+ """Return UserAgentParameters value."""
38
+ return {
39
+ "engine": {"value": platform.python_implementation(), "encode": False},
40
+ "engine-version": {"value": platform.python_version(), "encode": False},
41
+ "os-info": {"value": platform.system(), "encode": False},
42
+ }
43
+
44
+ @staticmethod
45
+ def global_errors():
46
+ """Return GlobalErrors value."""
47
+ return {
48
+ "default": ErrorCase()
49
+ .error_message("HTTP response not OK.")
50
+ .exception_type(ApiException),
51
+ }
52
+
53
+ def __init__(self, config):
54
+ """Initialize BaseApi object."""
55
+ self._config = config.get_http_client_configuration()
56
+ self._http_call_back = self.config.http_callback
57
+ self.api_call = ApiCall(config)
58
+
59
+ @property
60
+ def config(self):
61
+ """Return Configuration object."""
62
+ return self._config
63
+
64
+ @property
65
+ def http_call_back(self):
66
+ """Return HttpCallBack object."""
67
+ return self._http_call_back
68
+
69
+ @property
70
+ def new_api_call_builder(self):
71
+ """Return New ApiCallBuilder object."""
72
+ return self.api_call.new_builder