Module mydata_did.v1_0.models.data_agreement_negotiation_receipt_model
Expand source code
from marshmallow import fields, EXCLUDE
from aries_cloudagent.messaging.models.base import BaseModel, BaseModelSchema
class DataAgreementNegotiationReceiptBody(BaseModel):
"""Data Agreement Negotiation Receipt Body"""
class Meta:
schema_class = "DataAgreementNegotiationReceiptBodySchema"
def __init__(
self,
*,
instance_id: str,
blockchain_receipt: dict,
blink: str,
mydata_did: str,
**kwargs
):
super().__init__(**kwargs)
# Set model attributes.
self.blockchain_receipt = blockchain_receipt
self.blink = blink
self.mydata_did = mydata_did
self.instance_id = instance_id
class DataAgreementNegotiationReceiptBodySchema(BaseModelSchema):
"""Data Agreement Negotiation Receipt Body schema"""
class Meta:
model_class = DataAgreementNegotiationReceiptBody
# Unknown fields are excluded
unknown = EXCLUDE
instance_id = fields.Str()
blockchain_receipt = fields.Str()
blink = fields.Str()
mydata_did = fields.Str()
Classes
class DataAgreementNegotiationReceiptBody (*, instance_id: str, blockchain_receipt: dict, blink: str, mydata_did: str, **kwargs)
-
Data Agreement Negotiation Receipt Body
Initialize BaseModel.
Raises
TypeError
- If schema_class is not set on Meta
Expand source code
class DataAgreementNegotiationReceiptBody(BaseModel): """Data Agreement Negotiation Receipt Body""" class Meta: schema_class = "DataAgreementNegotiationReceiptBodySchema" def __init__( self, *, instance_id: str, blockchain_receipt: dict, blink: str, mydata_did: str, **kwargs ): super().__init__(**kwargs) # Set model attributes. self.blockchain_receipt = blockchain_receipt self.blink = blink self.mydata_did = mydata_did self.instance_id = instance_id
Ancestors
- aries_cloudagent.messaging.models.base.BaseModel
- abc.ABC
Class variables
var Meta
class DataAgreementNegotiationReceiptBodySchema (*args, **kwargs)
-
Data Agreement Negotiation Receipt Body schema
Initialize BaseModelSchema.
Raises
TypeError
- If model_class is not set on Meta
Expand source code
class DataAgreementNegotiationReceiptBodySchema(BaseModelSchema): """Data Agreement Negotiation Receipt Body schema""" class Meta: model_class = DataAgreementNegotiationReceiptBody # Unknown fields are excluded unknown = EXCLUDE instance_id = fields.Str() blockchain_receipt = fields.Str() blink = fields.Str() mydata_did = fields.Str()
Ancestors
- aries_cloudagent.messaging.models.base.BaseModelSchema
- marshmallow.schema.Schema
- marshmallow.base.SchemaABC
Class variables
var Meta
var opts