Files
sdk/model_esign_esign_links.go

231 lines
6.0 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 EsignEsignLinks type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &EsignEsignLinks{}
// EsignEsignLinks struct for EsignEsignLinks
type EsignEsignLinks struct {
// ID is the document that went out.
Id *string `json:"id,omitempty"`
// Recipients is one link per signing recipient. Nothing is emailed by this call; delivering the links is the caller's.
Recipients []EsignEsignLink `json:"recipients,omitempty"`
// Status is PENDING — the state a sent document is in until every signer has finished.
Status *string `json:"status,omitempty"`
AdditionalProperties map[string]interface{}
}
type _EsignEsignLinks EsignEsignLinks
// NewEsignEsignLinks instantiates a new EsignEsignLinks 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 NewEsignEsignLinks() *EsignEsignLinks {
this := EsignEsignLinks{}
return &this
}
// NewEsignEsignLinksWithDefaults instantiates a new EsignEsignLinks 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 NewEsignEsignLinksWithDefaults() *EsignEsignLinks {
this := EsignEsignLinks{}
return &this
}
// GetId returns the Id field value if set, zero value otherwise.
func (o *EsignEsignLinks) 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 *EsignEsignLinks) 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 *EsignEsignLinks) 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 *EsignEsignLinks) SetId(v string) {
o.Id = &v
}
// GetRecipients returns the Recipients field value if set, zero value otherwise.
func (o *EsignEsignLinks) GetRecipients() []EsignEsignLink {
if o == nil || IsNil(o.Recipients) {
var ret []EsignEsignLink
return ret
}
return o.Recipients
}
// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EsignEsignLinks) GetRecipientsOk() ([]EsignEsignLink, bool) {
if o == nil || IsNil(o.Recipients) {
return nil, false
}
return o.Recipients, true
}
// HasRecipients returns a boolean if a field has been set.
func (o *EsignEsignLinks) HasRecipients() bool {
if o != nil && !IsNil(o.Recipients) {
return true
}
return false
}
// SetRecipients gets a reference to the given []EsignEsignLink and assigns it to the Recipients field.
func (o *EsignEsignLinks) SetRecipients(v []EsignEsignLink) {
o.Recipients = v
}
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *EsignEsignLinks) GetStatus() string {
if o == nil || IsNil(o.Status) {
var ret string
return ret
}
return *o.Status
}
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EsignEsignLinks) GetStatusOk() (*string, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
return o.Status, true
}
// HasStatus returns a boolean if a field has been set.
func (o *EsignEsignLinks) HasStatus() bool {
if o != nil && !IsNil(o.Status) {
return true
}
return false
}
// SetStatus gets a reference to the given string and assigns it to the Status field.
func (o *EsignEsignLinks) SetStatus(v string) {
o.Status = &v
}
func (o EsignEsignLinks) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o EsignEsignLinks) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Id) {
toSerialize["id"] = o.Id
}
if !IsNil(o.Recipients) {
toSerialize["recipients"] = o.Recipients
}
if !IsNil(o.Status) {
toSerialize["status"] = o.Status
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *EsignEsignLinks) UnmarshalJSON(data []byte) (err error) {
varEsignEsignLinks := _EsignEsignLinks{}
err = json.Unmarshal(data, &varEsignEsignLinks)
if err != nil {
return err
}
*o = EsignEsignLinks(varEsignEsignLinks)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "recipients")
delete(additionalProperties, "status")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableEsignEsignLinks struct {
value *EsignEsignLinks
isSet bool
}
func (v NullableEsignEsignLinks) Get() *EsignEsignLinks {
return v.value
}
func (v *NullableEsignEsignLinks) Set(val *EsignEsignLinks) {
v.value = val
v.isSet = true
}
func (v NullableEsignEsignLinks) IsSet() bool {
return v.isSet
}
func (v *NullableEsignEsignLinks) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableEsignEsignLinks(val *EsignEsignLinks) *NullableEsignEsignLinks {
return &NullableEsignEsignLinks{value: val, isSet: true}
}
func (v NullableEsignEsignLinks) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableEsignEsignLinks) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}