diff --git a/aries_cloudcontroller/controllers/issuer.py b/aries_cloudcontroller/controllers/issuer.py index de425518..314596bf 100644 --- a/aries_cloudcontroller/controllers/issuer.py +++ b/aries_cloudcontroller/controllers/issuer.py @@ -183,7 +183,7 @@ async def remove_record(self, cred_ex_id): # Send a problem report for a credential exchange async def send_problem_report(self, cred_ex_id, explanation: str): - body = {"explain_ltxt": explanation} + body = {"description": explanation} return await self.admin_POST( f"{self.base_url}/records/{cred_ex_id}/problem-report", json_data=body diff --git a/aries_cloudcontroller/controllers/issuer_v2.py b/aries_cloudcontroller/controllers/issuer_v2.py index f57d7945..227094f9 100644 --- a/aries_cloudcontroller/controllers/issuer_v2.py +++ b/aries_cloudcontroller/controllers/issuer_v2.py @@ -166,7 +166,7 @@ async def remove_record(self, cred_ex_id): # Send a problem report for a credential exchange async def problem_report(self, cred_ex_id, explanation: str): - body = {"explain_ltxt": explanation} + body = {"description": explanation} return await self.admin_POST( f"{self.base_url}/records/{cred_ex_id}/problem-report", json_data=body @@ -182,6 +182,7 @@ async def create_credential_body( comment: str = "", auto_remove: bool = True, trace: bool = False, + dif_criterion: str = "", ): # raises error if connection not active await self.connections.is_active(connection_id) @@ -191,14 +192,21 @@ async def create_credential_body( issuer_did = extract_did(cred_def_id) body = { - "issuer_did": issuer_did, "auto_remove": auto_remove, - "credential_proposal": {"@type": CRED_PREVIEW, "attributes": attributes}, + "comment": comment, "connection_id": connection_id, + "credential_preview": { + "@type": "issue-credential/2.0/credential-preview", + "attributes": attributes, + }, + "filter": { + "indy": { + "cred_def_id": cred_def_id, + "schema_id": schema_id, + "issuer_did": issuer_did, + }, + }, "trace": trace, - "comment": comment, - "cred_def_id": cred_def_id, } - credential_body = {**body, **schema_details} return credential_body diff --git a/setup.py b/setup.py index f3e7b1d6..437f75c4 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ def parse_requirements(filename): if __name__ == "__main__": setup( name=PACKAGE_NAME, - version="0.2.8", + version="0.2.9", description="A simple python package for controlling an aries agent through the admin-api interface", long_description=long_description, long_description_content_type="text/markdown",