@@ -105,6 +105,10 @@ public struct SignRequestCreateSigner: Encodable {
105
105
public let order : Int ?
106
106
/// User ID for the signer in an external application responsible for authentication when accessing the embed URL.
107
107
public let embedUrlExternalUserId : String ?
108
+ /// The URL that the signer will be redirected to after signing.
109
+ public let redirectUrl : String ?
110
+ /// The URL that a signer will be redirect to after declining to sign a document.
111
+ public let declinedRedirectUrl : String ?
108
112
109
113
/// Initializer.
110
114
///
@@ -115,18 +119,24 @@ public struct SignRequestCreateSigner: Encodable {
115
119
/// After the sender signs, they will be redirected to the next `inPerson` signer.
116
120
/// - order: Order of the signer.
117
121
/// - embedUrlExternalUserId: User ID for the signer in an external application responsible for authentication when accessing the embed URL.
122
+ /// - redirectUrl: The URL that the signer will be redirected to after signing.
123
+ /// - declinedRedirectUrl: The URL that a signer will be redirect to after declining to sign a document.
118
124
public init (
119
125
email: String ,
120
126
role: SignRequestSignerRole ? = nil ,
121
127
isInPerson: Bool ? = nil ,
122
128
order: Int ? = nil ,
123
- embedUrlExternalUserId: String ? = nil
129
+ embedUrlExternalUserId: String ? = nil ,
130
+ redirectUrl: String ? = nil ,
131
+ declinedRedirectUrl: String ? = nil
124
132
) {
125
133
self . email = email
126
134
self . role = role
127
135
self . isInPerson = isInPerson
128
136
self . order = order
129
137
self . embedUrlExternalUserId = embedUrlExternalUserId
138
+ self . redirectUrl = redirectUrl
139
+ self . declinedRedirectUrl = declinedRedirectUrl
130
140
}
131
141
}
132
142
@@ -156,6 +166,10 @@ public struct SignRequestCreateParameters: Encodable {
156
166
public let daysValid : Int ?
157
167
/// This can be used to reference an ID in an external system that the sign request is related to.
158
168
public let externalId : String ?
169
+ /// The URL that a signer will be redirected to after signing a document.
170
+ public let redirectUrl : String ?
171
+ /// The URL that the signer will be redirected to after declining to sign a document.
172
+ public let declinedRedirectUrl : String ?
159
173
160
174
/// Initializer.
161
175
///
@@ -168,6 +182,8 @@ public struct SignRequestCreateParameters: Encodable {
168
182
/// - prefillTags: List of prefill tags.
169
183
/// - daysValid: Number of days after which this request will automatically expire if not completed.
170
184
/// - externalId: ID that serve as reference in an external system that the sign request is related to.
185
+ /// - redirectUrl: The URL that a signer will be redirected to after signing a document.
186
+ /// - declinedRedirectUrl: The URL that the signer will be redirected to after declining to sign a document.
171
187
public init (
172
188
isDocumentPreparationNeeded: Bool ? = nil ,
173
189
areTextSignaturesEnabled: Bool ? = nil ,
@@ -176,7 +192,9 @@ public struct SignRequestCreateParameters: Encodable {
176
192
areRemindersEnabled: Bool ? = nil ,
177
193
prefillTags: [ SignRequestPrefillTag ] ? = nil ,
178
194
daysValid: Int ? = nil ,
179
- externalId: String ? = nil
195
+ externalId: String ? = nil ,
196
+ redirectUrl: String ? = nil ,
197
+ declinedRedirectUrl: String ? = nil
180
198
) {
181
199
self . isDocumentPreparationNeeded = isDocumentPreparationNeeded
182
200
self . areTextSignaturesEnabled = areTextSignaturesEnabled
@@ -186,5 +204,7 @@ public struct SignRequestCreateParameters: Encodable {
186
204
self . prefillTags = prefillTags
187
205
self . daysValid = daysValid
188
206
self . externalId = externalId
207
+ self . redirectUrl = redirectUrl
208
+ self . declinedRedirectUrl = declinedRedirectUrl
189
209
}
190
210
}
0 commit comments