Skip to content

Commit ba9fa02

Browse files
Fix @ffaraone feedback
1 parent 41dd24a commit ba9fa02

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

connect/models/schemas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ class ParamSchema(BaseSchema):
321321
scope = fields.Str()
322322
constraints = fields.Nested(ConstraintsSchema)
323323
value_choices = fields.Nested(ValueChoiceSchema, many=True)
324-
structured_values = fields.Str()
324+
structured_value = fields.Dict()
325325
phase = fields.Str()
326326
reconciliation = fields.Bool()
327327
events = fields.Nested(EventsSchema)

connect/resources/fulfillment.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,6 @@ def update_param_asset_request(self, request_id, data, note=None):
3737

3838
def create_purchase_request(self, obj):
3939
return self._asset_requests.create(obj)
40+
41+
def search_asset_request(self, obj):
42+
return self._asset_requests.search(obj)

connect/resources/product.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def create_parameter(self, product_id, body):
3737
response = self._api.post(
3838
path=path,
3939
json=body
40-
)
40+
)
4141
return response
4242

4343
def update_parameter(self, product_id, parameter_id, body):
@@ -56,7 +56,7 @@ def update_parameter(self, product_id, parameter_id, body):
5656
response = self._api.put(
5757
path=path,
5858
json=body
59-
)
59+
)
6060
return response
6161

6262
def delete_parameter(self, product_id, parameter_id):
@@ -73,5 +73,5 @@ def delete_parameter(self, product_id, parameter_id):
7373
path = '/public/v1/products/' + product_id + '/parameters/' + parameter_id
7474
response = self._api.delete(
7575
path=path
76-
)
76+
)
7777
return response

examples/manage_asset_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class AssetRequest():
1212

1313
def list_asset_request(self):
1414
asset_request = FulfillmentResource(config=self.configuration)
15-
return asset_request._asset_requests.search()
15+
return asset_request.search_asset_request()
1616

1717
def create_asset_request(self, body):
1818
asset_request = FulfillmentResource(config=self.configuration)

tests/test_product.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
os.path.join(os.path.dirname(__file__), 'data', 'response_create_parameter.json'))
2323

2424

25-
class testParameters(unittest.TestCase):
25+
class TestParameters(unittest.TestCase):
2626

2727
def setUp(self):
2828
self.config = Config(file='tests/config.json')

0 commit comments

Comments
 (0)