Files
sdk/model_esign_esign_recipient.go

497 lines
14 KiB
Go

/*
Hanzo Cloud API
The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
API version: v1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package hanzoai
import (
"encoding/json"
)
// checks if the EsignEsignRecipient type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &EsignEsignRecipient{}
// EsignEsignRecipient struct for EsignEsignRecipient
type EsignEsignRecipient struct {
// Email is where this recipient's signing link is meant to go, lower-cased.
Email *string `json:"email,omitempty"`
// ID is the recipient id, which is what a field is placed against.
Id *string `json:"id,omitempty"`
// Name is the recipient's display name, empty when none was given.
Name *string `json:"name,omitempty"`
// ReadStatus is NOT_OPENED until they first open their link, then OPENED.
ReadStatus *string `json:"readStatus,omitempty"`
// RejectionReason is why they declined, null unless they did.
RejectionReason *string `json:"rejectionReason,omitempty"`
// Role is SIGNER, CC, VIEWER, APPROVER or ASSISTANT. A document waits only for its SIGNERs and APPROVERs before it can seal.
Role *string `json:"role,omitempty"`
// SendStatus is NOT_SENT until the document goes out, then SENT. A CC recipient is SENT from the moment they are added.
SendStatus *string `json:"sendStatus,omitempty"`
// SignedAt is when they finished or declined, in unix milliseconds; null while neither has happened.
SignedAt *int64 `json:"signedAt,omitempty"`
// SigningOrder is their position in a SEQUENTIAL document, null when they were added without one. A PARALLEL document ignores it.
SigningOrder *float64 `json:"signingOrder,omitempty"`
// SigningStatus is NOT_SIGNED, SIGNED or REJECTED. A CC recipient is SIGNED from the moment they are added, because they are never asked.
SigningStatus *string `json:"signingStatus,omitempty"`
AdditionalProperties map[string]interface{}
}
type _EsignEsignRecipient EsignEsignRecipient
// NewEsignEsignRecipient instantiates a new EsignEsignRecipient object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewEsignEsignRecipient() *EsignEsignRecipient {
this := EsignEsignRecipient{}
return &this
}
// NewEsignEsignRecipientWithDefaults instantiates a new EsignEsignRecipient object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewEsignEsignRecipientWithDefaults() *EsignEsignRecipient {
this := EsignEsignRecipient{}
return &this
}
// GetEmail returns the Email field value if set, zero value otherwise.
func (o *EsignEsignRecipient) GetEmail() string {
if o == nil || IsNil(o.Email) {
var ret string
return ret
}
return *o.Email
}
// GetEmailOk returns a tuple with the Email field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EsignEsignRecipient) GetEmailOk() (*string, bool) {
if o == nil || IsNil(o.Email) {
return nil, false
}
return o.Email, true
}
// HasEmail returns a boolean if a field has been set.
func (o *EsignEsignRecipient) HasEmail() bool {
if o != nil && !IsNil(o.Email) {
return true
}
return false
}
// SetEmail gets a reference to the given string and assigns it to the Email field.
func (o *EsignEsignRecipient) SetEmail(v string) {
o.Email = &v
}
// GetId returns the Id field value if set, zero value otherwise.
func (o *EsignEsignRecipient) GetId() string {
if o == nil || IsNil(o.Id) {
var ret string
return ret
}
return *o.Id
}
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EsignEsignRecipient) GetIdOk() (*string, bool) {
if o == nil || IsNil(o.Id) {
return nil, false
}
return o.Id, true
}
// HasId returns a boolean if a field has been set.
func (o *EsignEsignRecipient) HasId() bool {
if o != nil && !IsNil(o.Id) {
return true
}
return false
}
// SetId gets a reference to the given string and assigns it to the Id field.
func (o *EsignEsignRecipient) SetId(v string) {
o.Id = &v
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *EsignEsignRecipient) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
}
return *o.Name
}
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EsignEsignRecipient) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
return o.Name, true
}
// HasName returns a boolean if a field has been set.
func (o *EsignEsignRecipient) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
return false
}
// SetName gets a reference to the given string and assigns it to the Name field.
func (o *EsignEsignRecipient) SetName(v string) {
o.Name = &v
}
// GetReadStatus returns the ReadStatus field value if set, zero value otherwise.
func (o *EsignEsignRecipient) GetReadStatus() string {
if o == nil || IsNil(o.ReadStatus) {
var ret string
return ret
}
return *o.ReadStatus
}
// GetReadStatusOk returns a tuple with the ReadStatus field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EsignEsignRecipient) GetReadStatusOk() (*string, bool) {
if o == nil || IsNil(o.ReadStatus) {
return nil, false
}
return o.ReadStatus, true
}
// HasReadStatus returns a boolean if a field has been set.
func (o *EsignEsignRecipient) HasReadStatus() bool {
if o != nil && !IsNil(o.ReadStatus) {
return true
}
return false
}
// SetReadStatus gets a reference to the given string and assigns it to the ReadStatus field.
func (o *EsignEsignRecipient) SetReadStatus(v string) {
o.ReadStatus = &v
}
// GetRejectionReason returns the RejectionReason field value if set, zero value otherwise.
func (o *EsignEsignRecipient) GetRejectionReason() string {
if o == nil || IsNil(o.RejectionReason) {
var ret string
return ret
}
return *o.RejectionReason
}
// GetRejectionReasonOk returns a tuple with the RejectionReason field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EsignEsignRecipient) GetRejectionReasonOk() (*string, bool) {
if o == nil || IsNil(o.RejectionReason) {
return nil, false
}
return o.RejectionReason, true
}
// HasRejectionReason returns a boolean if a field has been set.
func (o *EsignEsignRecipient) HasRejectionReason() bool {
if o != nil && !IsNil(o.RejectionReason) {
return true
}
return false
}
// SetRejectionReason gets a reference to the given string and assigns it to the RejectionReason field.
func (o *EsignEsignRecipient) SetRejectionReason(v string) {
o.RejectionReason = &v
}
// GetRole returns the Role field value if set, zero value otherwise.
func (o *EsignEsignRecipient) GetRole() string {
if o == nil || IsNil(o.Role) {
var ret string
return ret
}
return *o.Role
}
// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EsignEsignRecipient) GetRoleOk() (*string, bool) {
if o == nil || IsNil(o.Role) {
return nil, false
}
return o.Role, true
}
// HasRole returns a boolean if a field has been set.
func (o *EsignEsignRecipient) HasRole() bool {
if o != nil && !IsNil(o.Role) {
return true
}
return false
}
// SetRole gets a reference to the given string and assigns it to the Role field.
func (o *EsignEsignRecipient) SetRole(v string) {
o.Role = &v
}
// GetSendStatus returns the SendStatus field value if set, zero value otherwise.
func (o *EsignEsignRecipient) GetSendStatus() string {
if o == nil || IsNil(o.SendStatus) {
var ret string
return ret
}
return *o.SendStatus
}
// GetSendStatusOk returns a tuple with the SendStatus field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EsignEsignRecipient) GetSendStatusOk() (*string, bool) {
if o == nil || IsNil(o.SendStatus) {
return nil, false
}
return o.SendStatus, true
}
// HasSendStatus returns a boolean if a field has been set.
func (o *EsignEsignRecipient) HasSendStatus() bool {
if o != nil && !IsNil(o.SendStatus) {
return true
}
return false
}
// SetSendStatus gets a reference to the given string and assigns it to the SendStatus field.
func (o *EsignEsignRecipient) SetSendStatus(v string) {
o.SendStatus = &v
}
// GetSignedAt returns the SignedAt field value if set, zero value otherwise.
func (o *EsignEsignRecipient) GetSignedAt() int64 {
if o == nil || IsNil(o.SignedAt) {
var ret int64
return ret
}
return *o.SignedAt
}
// GetSignedAtOk returns a tuple with the SignedAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EsignEsignRecipient) GetSignedAtOk() (*int64, bool) {
if o == nil || IsNil(o.SignedAt) {
return nil, false
}
return o.SignedAt, true
}
// HasSignedAt returns a boolean if a field has been set.
func (o *EsignEsignRecipient) HasSignedAt() bool {
if o != nil && !IsNil(o.SignedAt) {
return true
}
return false
}
// SetSignedAt gets a reference to the given int64 and assigns it to the SignedAt field.
func (o *EsignEsignRecipient) SetSignedAt(v int64) {
o.SignedAt = &v
}
// GetSigningOrder returns the SigningOrder field value if set, zero value otherwise.
func (o *EsignEsignRecipient) GetSigningOrder() float64 {
if o == nil || IsNil(o.SigningOrder) {
var ret float64
return ret
}
return *o.SigningOrder
}
// GetSigningOrderOk returns a tuple with the SigningOrder field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EsignEsignRecipient) GetSigningOrderOk() (*float64, bool) {
if o == nil || IsNil(o.SigningOrder) {
return nil, false
}
return o.SigningOrder, true
}
// HasSigningOrder returns a boolean if a field has been set.
func (o *EsignEsignRecipient) HasSigningOrder() bool {
if o != nil && !IsNil(o.SigningOrder) {
return true
}
return false
}
// SetSigningOrder gets a reference to the given float64 and assigns it to the SigningOrder field.
func (o *EsignEsignRecipient) SetSigningOrder(v float64) {
o.SigningOrder = &v
}
// GetSigningStatus returns the SigningStatus field value if set, zero value otherwise.
func (o *EsignEsignRecipient) GetSigningStatus() string {
if o == nil || IsNil(o.SigningStatus) {
var ret string
return ret
}
return *o.SigningStatus
}
// GetSigningStatusOk returns a tuple with the SigningStatus field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EsignEsignRecipient) GetSigningStatusOk() (*string, bool) {
if o == nil || IsNil(o.SigningStatus) {
return nil, false
}
return o.SigningStatus, true
}
// HasSigningStatus returns a boolean if a field has been set.
func (o *EsignEsignRecipient) HasSigningStatus() bool {
if o != nil && !IsNil(o.SigningStatus) {
return true
}
return false
}
// SetSigningStatus gets a reference to the given string and assigns it to the SigningStatus field.
func (o *EsignEsignRecipient) SetSigningStatus(v string) {
o.SigningStatus = &v
}
func (o EsignEsignRecipient) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o EsignEsignRecipient) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Email) {
toSerialize["email"] = o.Email
}
if !IsNil(o.Id) {
toSerialize["id"] = o.Id
}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
}
if !IsNil(o.ReadStatus) {
toSerialize["readStatus"] = o.ReadStatus
}
if !IsNil(o.RejectionReason) {
toSerialize["rejectionReason"] = o.RejectionReason
}
if !IsNil(o.Role) {
toSerialize["role"] = o.Role
}
if !IsNil(o.SendStatus) {
toSerialize["sendStatus"] = o.SendStatus
}
if !IsNil(o.SignedAt) {
toSerialize["signedAt"] = o.SignedAt
}
if !IsNil(o.SigningOrder) {
toSerialize["signingOrder"] = o.SigningOrder
}
if !IsNil(o.SigningStatus) {
toSerialize["signingStatus"] = o.SigningStatus
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *EsignEsignRecipient) UnmarshalJSON(data []byte) (err error) {
varEsignEsignRecipient := _EsignEsignRecipient{}
err = json.Unmarshal(data, &varEsignEsignRecipient)
if err != nil {
return err
}
*o = EsignEsignRecipient(varEsignEsignRecipient)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "email")
delete(additionalProperties, "id")
delete(additionalProperties, "name")
delete(additionalProperties, "readStatus")
delete(additionalProperties, "rejectionReason")
delete(additionalProperties, "role")
delete(additionalProperties, "sendStatus")
delete(additionalProperties, "signedAt")
delete(additionalProperties, "signingOrder")
delete(additionalProperties, "signingStatus")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableEsignEsignRecipient struct {
value *EsignEsignRecipient
isSet bool
}
func (v NullableEsignEsignRecipient) Get() *EsignEsignRecipient {
return v.value
}
func (v *NullableEsignEsignRecipient) Set(val *EsignEsignRecipient) {
v.value = val
v.isSet = true
}
func (v NullableEsignEsignRecipient) IsSet() bool {
return v.isSet
}
func (v *NullableEsignEsignRecipient) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableEsignEsignRecipient(val *EsignEsignRecipient) *NullableEsignEsignRecipient {
return &NullableEsignEsignRecipient{value: val, isSet: true}
}
func (v NullableEsignEsignRecipient) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableEsignEsignRecipient) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}