edx-enterprise-subsidy-client 0.3.3__py2.py3-none-any.whl → 0.3.4__py2.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.
- edx_enterprise_subsidy_client/__init__.py +1 -1
- edx_enterprise_subsidy_client/client.py +8 -2
- {edx_enterprise_subsidy_client-0.3.3.dist-info → edx_enterprise_subsidy_client-0.3.4.dist-info}/METADATA +5 -1
- edx_enterprise_subsidy_client-0.3.4.dist-info/RECORD +8 -0
- edx_enterprise_subsidy_client-0.3.3.dist-info/RECORD +0 -8
- {edx_enterprise_subsidy_client-0.3.3.dist-info → edx_enterprise_subsidy_client-0.3.4.dist-info}/LICENSE +0 -0
- {edx_enterprise_subsidy_client-0.3.3.dist-info → edx_enterprise_subsidy_client-0.3.4.dist-info}/LICENSE.txt +0 -0
- {edx_enterprise_subsidy_client-0.3.3.dist-info → edx_enterprise_subsidy_client-0.3.4.dist-info}/WHEEL +0 -0
- {edx_enterprise_subsidy_client-0.3.3.dist-info → edx_enterprise_subsidy_client-0.3.4.dist-info}/top_level.txt +0 -0
|
@@ -108,7 +108,7 @@ class EnterpriseSubsidyAPIClient:
|
|
|
108
108
|
raise exc
|
|
109
109
|
return response_data.json()
|
|
110
110
|
|
|
111
|
-
def list_subsidies(self, enterprise_customer_uuid):
|
|
111
|
+
def list_subsidies(self, enterprise_customer_uuid, **kwargs):
|
|
112
112
|
"""
|
|
113
113
|
Client method to list enterprise subsidy records for the given enterprise_customer_uuid.
|
|
114
114
|
|
|
@@ -137,9 +137,11 @@ class EnterpriseSubsidyAPIClient:
|
|
|
137
137
|
}
|
|
138
138
|
```
|
|
139
139
|
"""
|
|
140
|
+
query_params = {'enterprise_customer_uuid': enterprise_customer_uuid}
|
|
141
|
+
query_params.update(kwargs)
|
|
140
142
|
response = self.client.get(
|
|
141
143
|
self.SUBSIDIES_ENDPOINT,
|
|
142
|
-
params=
|
|
144
|
+
params=query_params,
|
|
143
145
|
)
|
|
144
146
|
response.raise_for_status()
|
|
145
147
|
return response.json()
|
|
@@ -158,11 +160,13 @@ class EnterpriseSubsidyAPIClient:
|
|
|
158
160
|
self, subsidy_uuid, include_aggregates=True,
|
|
159
161
|
lms_user_id=None, content_key=None,
|
|
160
162
|
subsidy_access_policy_uuid=None,
|
|
163
|
+
**kwargs
|
|
161
164
|
):
|
|
162
165
|
"""
|
|
163
166
|
TODO: add docstring.
|
|
164
167
|
"""
|
|
165
168
|
query_params = {'subsidy_uuid': subsidy_uuid}
|
|
169
|
+
query_params.update(kwargs)
|
|
166
170
|
if include_aggregates:
|
|
167
171
|
query_params['include_aggregates'] = include_aggregates
|
|
168
172
|
if lms_user_id:
|
|
@@ -247,6 +251,7 @@ class EnterpriseSubsidyAPIClientV2(EnterpriseSubsidyAPIClient): # pylint: disab
|
|
|
247
251
|
self, subsidy_uuid, include_aggregates=True,
|
|
248
252
|
lms_user_id=None, content_key=None,
|
|
249
253
|
subsidy_access_policy_uuid=None, transaction_states=None,
|
|
254
|
+
**kwargs,
|
|
250
255
|
):
|
|
251
256
|
"""
|
|
252
257
|
List transactions in a subsidy with admin- or operator-level permissions.
|
|
@@ -258,6 +263,7 @@ class EnterpriseSubsidyAPIClientV2(EnterpriseSubsidyAPIClient): # pylint: disab
|
|
|
258
263
|
TransactionStateChoices.CREATED,
|
|
259
264
|
],
|
|
260
265
|
}
|
|
266
|
+
query_params.update(kwargs)
|
|
261
267
|
if include_aggregates:
|
|
262
268
|
query_params['include_aggregates'] = include_aggregates
|
|
263
269
|
if lms_user_id:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: edx-enterprise-subsidy-client
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.4
|
|
4
4
|
Summary: Client for interacting with the enterprise-subsidy service.
|
|
5
5
|
Home-page: https://github.com/openedx/edx-enterprise-subsidy-client
|
|
6
6
|
Author: edX
|
|
@@ -228,6 +228,10 @@ Unreleased
|
|
|
228
228
|
* Switch from ``edx-sphinx-theme`` to ``sphinx-book-theme`` since the former is
|
|
229
229
|
deprecated
|
|
230
230
|
|
|
231
|
+
[0.3.3]
|
|
232
|
+
*******
|
|
233
|
+
* allow additional query params, like ``page_size``, to be passed through to listing endpoints.
|
|
234
|
+
|
|
231
235
|
[0.3.3]
|
|
232
236
|
*******
|
|
233
237
|
* admin-list transactions will also be filtered by ``created`` state by default.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
edx_enterprise_subsidy_client/__init__.py,sha256=LIJiPyUyOGH2AcSpNi0nqAZd1W2pkf-wPJt5uyz4qj0,205
|
|
2
|
+
edx_enterprise_subsidy_client/client.py,sha256=oSqy1V3i-FF9JQJds-xR_1yiSiCSFlmxYVGUqZmjGEc,10723
|
|
3
|
+
edx_enterprise_subsidy_client-0.3.4.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
|
|
4
|
+
edx_enterprise_subsidy_client-0.3.4.dist-info/LICENSE.txt,sha256=QTW2QN7q3XszgUAXm9Dzgtu5LXYKbR1SGnqMa7ufEuY,35139
|
|
5
|
+
edx_enterprise_subsidy_client-0.3.4.dist-info/METADATA,sha256=PJnGe883GnmROBWk_4ROwS3_XFt4zpJIE31jHzDXLFI,9057
|
|
6
|
+
edx_enterprise_subsidy_client-0.3.4.dist-info/WHEEL,sha256=a-zpFRIJzOq5QfuhBzbhiA1eHTzNCJn8OdRvhdNX0Rk,110
|
|
7
|
+
edx_enterprise_subsidy_client-0.3.4.dist-info/top_level.txt,sha256=X3PxOH44rjQXFaA8EX-ZpUEL4SjfMM_yUkS-KbvNIZk,30
|
|
8
|
+
edx_enterprise_subsidy_client-0.3.4.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
edx_enterprise_subsidy_client/__init__.py,sha256=dG1Pema1Q_2IrVQ60vjaCJlKRMoP1jA0fb94nhY8bhA,205
|
|
2
|
-
edx_enterprise_subsidy_client/client.py,sha256=lAIHpcL4hnlklC9N0AqO54QPtCvVPosdt840peTREc8,10533
|
|
3
|
-
edx_enterprise_subsidy_client-0.3.3.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
|
|
4
|
-
edx_enterprise_subsidy_client-0.3.3.dist-info/LICENSE.txt,sha256=QTW2QN7q3XszgUAXm9Dzgtu5LXYKbR1SGnqMa7ufEuY,35139
|
|
5
|
-
edx_enterprise_subsidy_client-0.3.3.dist-info/METADATA,sha256=GpLrkRDqEDzNS4WS1UCZAz5imnlgmViCvps5-hptuQ8,8944
|
|
6
|
-
edx_enterprise_subsidy_client-0.3.3.dist-info/WHEEL,sha256=a-zpFRIJzOq5QfuhBzbhiA1eHTzNCJn8OdRvhdNX0Rk,110
|
|
7
|
-
edx_enterprise_subsidy_client-0.3.3.dist-info/top_level.txt,sha256=X3PxOH44rjQXFaA8EX-ZpUEL4SjfMM_yUkS-KbvNIZk,30
|
|
8
|
-
edx_enterprise_subsidy_client-0.3.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|