Penneo / sdk-net

Apache License 2.0
4 stars 17 forks source link

Remove uneditable properties from mapping builder signatureline update #165

Closed HeadCookie closed 1 year ago

HeadCookie commented 1 year ago

Only activeAt and expireAt can be updated on a signatureLine. The other properties should be removed.

https://github.com/Penneo/sdk-net/blob/e899ad0abd78bbd6e30ff0b0c46cf1ba7d12d515/Src/Penneo/PenneoSetup.cs#L118-L124

Instead it should be:

.ForUpdate()
.Map(x => x.ActiveAt, convert: x => TimeUtil.ToUnixTime((DateTime) x))
.Map(x => x.ExpireAt, convert: x => TimeUtil.ToUnixTime((DateTime) x))
.Create()