diff options
author | Magnus Hagander | 2023-07-12 10:40:35 +0000 |
---|---|---|
committer | Magnus Hagander | 2023-07-12 10:40:35 +0000 |
commit | be8ad0fab6c3ced4c32845126f973048b33e37d1 (patch) | |
tree | df894b51fffe6051a7c9f70dd9853101d2694cf5 /postgresqleu/digisign | |
parent | 57dc3c9a081b5e99b4f984f4e81aec655594ce27 (diff) |
Implement re-sending of sponsorship contracts
For e-mail based contracts, this just re-generates the PDF and sends it.
For digital contracts (only available if supported by the provider), it
will both cancel the old contract and create/send a new one.
Diffstat (limited to 'postgresqleu/digisign')
-rw-r--r-- | postgresqleu/digisign/implementations/signwell.py | 2 | ||||
-rw-r--r-- | postgresqleu/digisign/models.py | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/postgresqleu/digisign/implementations/signwell.py b/postgresqleu/digisign/implementations/signwell.py index c7997f8a..eb5798c6 100644 --- a/postgresqleu/digisign/implementations/signwell.py +++ b/postgresqleu/digisign/implementations/signwell.py @@ -79,8 +79,10 @@ On the Signwell account, open up the API application and specify class Signwell(BaseProvider): backend_form_class = SignwellBackendForm can_send_preview = True + can_resend = True has_log_details = True webhookcode = "sw" + resendprompt = "Note that re-sending the contract will issue a cancel for the old contract and create a new one, which will trigger multiple emails to the recipient." def description_text(self, signeremail): return 'Signing instructions will be delivered to {}. If necessary, you will be able to re-route the signing from the provider interface to somebody else in your organisation once the process is started.'.format(signeremail) diff --git a/postgresqleu/digisign/models.py b/postgresqleu/digisign/models.py index 674e71ab..c8c81974 100644 --- a/postgresqleu/digisign/models.py +++ b/postgresqleu/digisign/models.py @@ -23,6 +23,10 @@ class DigisignProvider(models.Model): mod = __import__(modname, fromlist=[classname, ]) return getattr(mod, classname)(self.id, self) + @property + def implementation(self): + return self.get_implementation() + class DigisignDocument(models.Model): provider = models.ForeignKey(DigisignProvider, null=False, blank=False, on_delete=models.CASCADE) |