docusign_esign.models.notification_default_settings
Docusign eSignature REST API
The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. # noqa: E501
OpenAPI spec version: v2.1 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git
1# coding: utf-8 2 3""" 4 Docusign eSignature REST API 5 6 The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. # noqa: E501 7 8 OpenAPI spec version: v2.1 9 Contact: devcenter@docusign.com 10 Generated by: https://github.com/swagger-api/swagger-codegen.git 11""" 12 13 14import pprint 15import re # noqa: F401 16 17import six 18 19from docusign_esign.client.configuration import Configuration 20 21 22class NotificationDefaultSettings(object): 23 """NOTE: This class is auto generated by the swagger code generator program. 24 25 Do not edit the class manually. 26 """ 27 28 """ 29 Attributes: 30 swagger_types (dict): The key is attribute name 31 and the value is attribute type. 32 attribute_map (dict): The key is attribute name 33 and the value is json key in definition. 34 """ 35 swagger_types = { 36 'sender_email_notifications': 'SenderEmailNotifications', 37 'signer_email_notifications': 'SignerEmailNotifications' 38 } 39 40 attribute_map = { 41 'sender_email_notifications': 'senderEmailNotifications', 42 'signer_email_notifications': 'signerEmailNotifications' 43 } 44 45 def __init__(self, _configuration=None, **kwargs): # noqa: E501 46 """NotificationDefaultSettings - a model defined in Swagger""" # noqa: E501 47 if _configuration is None: 48 _configuration = Configuration() 49 self._configuration = _configuration 50 51 self._sender_email_notifications = None 52 self._signer_email_notifications = None 53 self.discriminator = None 54 55 setattr(self, "_{}".format('sender_email_notifications'), kwargs.get('sender_email_notifications', None)) 56 setattr(self, "_{}".format('signer_email_notifications'), kwargs.get('signer_email_notifications', None)) 57 58 @property 59 def sender_email_notifications(self): 60 """Gets the sender_email_notifications of this NotificationDefaultSettings. # noqa: E501 61 62 An array of email notifications that sets the email the user receives when they are a sender. When the specific email notification is set to true, the user will receive those types of email notifications from DocuSign. The user inherits the default account sender email notification settings when the user is created. The email notifications are: * envelopeComplete * changedSigner * senderEnvelopeDeclined * withdrawnConsent * recipientViewed * deliveryFailed # noqa: E501 63 64 :return: The sender_email_notifications of this NotificationDefaultSettings. # noqa: E501 65 :rtype: SenderEmailNotifications 66 """ 67 return self._sender_email_notifications 68 69 @sender_email_notifications.setter 70 def sender_email_notifications(self, sender_email_notifications): 71 """Sets the sender_email_notifications of this NotificationDefaultSettings. 72 73 An array of email notifications that sets the email the user receives when they are a sender. When the specific email notification is set to true, the user will receive those types of email notifications from DocuSign. The user inherits the default account sender email notification settings when the user is created. The email notifications are: * envelopeComplete * changedSigner * senderEnvelopeDeclined * withdrawnConsent * recipientViewed * deliveryFailed # noqa: E501 74 75 :param sender_email_notifications: The sender_email_notifications of this NotificationDefaultSettings. # noqa: E501 76 :type: SenderEmailNotifications 77 """ 78 79 self._sender_email_notifications = sender_email_notifications 80 81 @property 82 def signer_email_notifications(self): 83 """Gets the signer_email_notifications of this NotificationDefaultSettings. # noqa: E501 84 85 An array of email notifications that specifies the email the user receives when they are a recipient. When the specific email notification is set to true, the user receives those types of email notifications from DocuSign. The user inherits the default account email notification settings when the user is created. # noqa: E501 86 87 :return: The signer_email_notifications of this NotificationDefaultSettings. # noqa: E501 88 :rtype: SignerEmailNotifications 89 """ 90 return self._signer_email_notifications 91 92 @signer_email_notifications.setter 93 def signer_email_notifications(self, signer_email_notifications): 94 """Sets the signer_email_notifications of this NotificationDefaultSettings. 95 96 An array of email notifications that specifies the email the user receives when they are a recipient. When the specific email notification is set to true, the user receives those types of email notifications from DocuSign. The user inherits the default account email notification settings when the user is created. # noqa: E501 97 98 :param signer_email_notifications: The signer_email_notifications of this NotificationDefaultSettings. # noqa: E501 99 :type: SignerEmailNotifications 100 """ 101 102 self._signer_email_notifications = signer_email_notifications 103 104 def to_dict(self): 105 """Returns the model properties as a dict""" 106 result = {} 107 108 for attr, _ in six.iteritems(self.swagger_types): 109 value = getattr(self, attr) 110 if isinstance(value, list): 111 result[attr] = list(map( 112 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 113 value 114 )) 115 elif hasattr(value, "to_dict"): 116 result[attr] = value.to_dict() 117 elif isinstance(value, dict): 118 result[attr] = dict(map( 119 lambda item: (item[0], item[1].to_dict()) 120 if hasattr(item[1], "to_dict") else item, 121 value.items() 122 )) 123 else: 124 result[attr] = value 125 if issubclass(NotificationDefaultSettings, dict): 126 for key, value in self.items(): 127 result[key] = value 128 129 return result 130 131 def to_str(self): 132 """Returns the string representation of the model""" 133 return pprint.pformat(self.to_dict()) 134 135 def __repr__(self): 136 """For `print` and `pprint`""" 137 return self.to_str() 138 139 def __eq__(self, other): 140 """Returns true if both objects are equal""" 141 if not isinstance(other, NotificationDefaultSettings): 142 return False 143 144 return self.to_dict() == other.to_dict() 145 146 def __ne__(self, other): 147 """Returns true if both objects are not equal""" 148 if not isinstance(other, NotificationDefaultSettings): 149 return True 150 151 return self.to_dict() != other.to_dict()
23class NotificationDefaultSettings(object): 24 """NOTE: This class is auto generated by the swagger code generator program. 25 26 Do not edit the class manually. 27 """ 28 29 """ 30 Attributes: 31 swagger_types (dict): The key is attribute name 32 and the value is attribute type. 33 attribute_map (dict): The key is attribute name 34 and the value is json key in definition. 35 """ 36 swagger_types = { 37 'sender_email_notifications': 'SenderEmailNotifications', 38 'signer_email_notifications': 'SignerEmailNotifications' 39 } 40 41 attribute_map = { 42 'sender_email_notifications': 'senderEmailNotifications', 43 'signer_email_notifications': 'signerEmailNotifications' 44 } 45 46 def __init__(self, _configuration=None, **kwargs): # noqa: E501 47 """NotificationDefaultSettings - a model defined in Swagger""" # noqa: E501 48 if _configuration is None: 49 _configuration = Configuration() 50 self._configuration = _configuration 51 52 self._sender_email_notifications = None 53 self._signer_email_notifications = None 54 self.discriminator = None 55 56 setattr(self, "_{}".format('sender_email_notifications'), kwargs.get('sender_email_notifications', None)) 57 setattr(self, "_{}".format('signer_email_notifications'), kwargs.get('signer_email_notifications', None)) 58 59 @property 60 def sender_email_notifications(self): 61 """Gets the sender_email_notifications of this NotificationDefaultSettings. # noqa: E501 62 63 An array of email notifications that sets the email the user receives when they are a sender. When the specific email notification is set to true, the user will receive those types of email notifications from DocuSign. The user inherits the default account sender email notification settings when the user is created. The email notifications are: * envelopeComplete * changedSigner * senderEnvelopeDeclined * withdrawnConsent * recipientViewed * deliveryFailed # noqa: E501 64 65 :return: The sender_email_notifications of this NotificationDefaultSettings. # noqa: E501 66 :rtype: SenderEmailNotifications 67 """ 68 return self._sender_email_notifications 69 70 @sender_email_notifications.setter 71 def sender_email_notifications(self, sender_email_notifications): 72 """Sets the sender_email_notifications of this NotificationDefaultSettings. 73 74 An array of email notifications that sets the email the user receives when they are a sender. When the specific email notification is set to true, the user will receive those types of email notifications from DocuSign. The user inherits the default account sender email notification settings when the user is created. The email notifications are: * envelopeComplete * changedSigner * senderEnvelopeDeclined * withdrawnConsent * recipientViewed * deliveryFailed # noqa: E501 75 76 :param sender_email_notifications: The sender_email_notifications of this NotificationDefaultSettings. # noqa: E501 77 :type: SenderEmailNotifications 78 """ 79 80 self._sender_email_notifications = sender_email_notifications 81 82 @property 83 def signer_email_notifications(self): 84 """Gets the signer_email_notifications of this NotificationDefaultSettings. # noqa: E501 85 86 An array of email notifications that specifies the email the user receives when they are a recipient. When the specific email notification is set to true, the user receives those types of email notifications from DocuSign. The user inherits the default account email notification settings when the user is created. # noqa: E501 87 88 :return: The signer_email_notifications of this NotificationDefaultSettings. # noqa: E501 89 :rtype: SignerEmailNotifications 90 """ 91 return self._signer_email_notifications 92 93 @signer_email_notifications.setter 94 def signer_email_notifications(self, signer_email_notifications): 95 """Sets the signer_email_notifications of this NotificationDefaultSettings. 96 97 An array of email notifications that specifies the email the user receives when they are a recipient. When the specific email notification is set to true, the user receives those types of email notifications from DocuSign. The user inherits the default account email notification settings when the user is created. # noqa: E501 98 99 :param signer_email_notifications: The signer_email_notifications of this NotificationDefaultSettings. # noqa: E501 100 :type: SignerEmailNotifications 101 """ 102 103 self._signer_email_notifications = signer_email_notifications 104 105 def to_dict(self): 106 """Returns the model properties as a dict""" 107 result = {} 108 109 for attr, _ in six.iteritems(self.swagger_types): 110 value = getattr(self, attr) 111 if isinstance(value, list): 112 result[attr] = list(map( 113 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 114 value 115 )) 116 elif hasattr(value, "to_dict"): 117 result[attr] = value.to_dict() 118 elif isinstance(value, dict): 119 result[attr] = dict(map( 120 lambda item: (item[0], item[1].to_dict()) 121 if hasattr(item[1], "to_dict") else item, 122 value.items() 123 )) 124 else: 125 result[attr] = value 126 if issubclass(NotificationDefaultSettings, dict): 127 for key, value in self.items(): 128 result[key] = value 129 130 return result 131 132 def to_str(self): 133 """Returns the string representation of the model""" 134 return pprint.pformat(self.to_dict()) 135 136 def __repr__(self): 137 """For `print` and `pprint`""" 138 return self.to_str() 139 140 def __eq__(self, other): 141 """Returns true if both objects are equal""" 142 if not isinstance(other, NotificationDefaultSettings): 143 return False 144 145 return self.to_dict() == other.to_dict() 146 147 def __ne__(self, other): 148 """Returns true if both objects are not equal""" 149 if not isinstance(other, NotificationDefaultSettings): 150 return True 151 152 return self.to_dict() != other.to_dict()
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
46 def __init__(self, _configuration=None, **kwargs): # noqa: E501 47 """NotificationDefaultSettings - a model defined in Swagger""" # noqa: E501 48 if _configuration is None: 49 _configuration = Configuration() 50 self._configuration = _configuration 51 52 self._sender_email_notifications = None 53 self._signer_email_notifications = None 54 self.discriminator = None 55 56 setattr(self, "_{}".format('sender_email_notifications'), kwargs.get('sender_email_notifications', None)) 57 setattr(self, "_{}".format('signer_email_notifications'), kwargs.get('signer_email_notifications', None))
NotificationDefaultSettings - a model defined in Swagger
Gets the sender_email_notifications of this NotificationDefaultSettings. # noqa: E501
An array of email notifications that sets the email the user receives when they are a sender. When the specific email notification is set to true, the user will receive those types of email notifications from DocuSign. The user inherits the default account sender email notification settings when the user is created. The email notifications are: * envelopeComplete * changedSigner * senderEnvelopeDeclined * withdrawnConsent * recipientViewed * deliveryFailed # noqa: E501
Returns
The sender_email_notifications of this NotificationDefaultSettings. # noqa: E501
Gets the signer_email_notifications of this NotificationDefaultSettings. # noqa: E501
An array of email notifications that specifies the email the user receives when they are a recipient. When the specific email notification is set to true, the user receives those types of email notifications from DocuSign. The user inherits the default account email notification settings when the user is created. # noqa: E501
Returns
The signer_email_notifications of this NotificationDefaultSettings. # noqa: E501
105 def to_dict(self): 106 """Returns the model properties as a dict""" 107 result = {} 108 109 for attr, _ in six.iteritems(self.swagger_types): 110 value = getattr(self, attr) 111 if isinstance(value, list): 112 result[attr] = list(map( 113 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 114 value 115 )) 116 elif hasattr(value, "to_dict"): 117 result[attr] = value.to_dict() 118 elif isinstance(value, dict): 119 result[attr] = dict(map( 120 lambda item: (item[0], item[1].to_dict()) 121 if hasattr(item[1], "to_dict") else item, 122 value.items() 123 )) 124 else: 125 result[attr] = value 126 if issubclass(NotificationDefaultSettings, dict): 127 for key, value in self.items(): 128 result[key] = value 129 130 return result
Returns the model properties as a dict