mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
611 lines
17 KiB
Go
611 lines
17 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 EsignEsignDocument type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &EsignEsignDocument{}
|
|
|
|
// EsignEsignDocument struct for EsignEsignDocument
|
|
type EsignEsignDocument struct {
|
|
// CompletedAt is when the document sealed, in unix milliseconds; null until it does.
|
|
CompletedAt *int64 `json:"completedAt,omitempty"`
|
|
// CreatedAt is when the document was uploaded, in unix milliseconds.
|
|
CreatedAt *int64 `json:"createdAt,omitempty"`
|
|
// ExternalID is the caller's own identifier for this document, echoed back as it was given; null when none was.
|
|
ExternalId *string `json:"externalId,omitempty"`
|
|
// Fields is every field on the document, ordered by page and then by when it was placed.
|
|
Fields []EsignEsignField `json:"fields,omitempty"`
|
|
// ID is the document id.
|
|
Id *string `json:"id,omitempty"`
|
|
// Message is the covering message stored with the document; null when none was given. Nothing in this surface sends it.
|
|
Message *string `json:"message,omitempty"`
|
|
// Recipients is everyone on the document, ordered by signing order and then by when they were added — which is also the order a SEQUENTIAL document enforces.
|
|
Recipients []EsignEsignRecipient `json:"recipients,omitempty"`
|
|
// SigningOrder is PARALLEL or SEQUENTIAL, fixed when the document was created.
|
|
SigningOrder *string `json:"signingOrder,omitempty"`
|
|
// Source is how the document came to exist. It is DOCUMENT for everything this surface creates.
|
|
Source *string `json:"source,omitempty"`
|
|
// Status is DRAFT while recipients and fields may still be added, PENDING once it has gone out, then COMPLETED when every signer has finished or REJECTED if any one of them declined.
|
|
Status *string `json:"status,omitempty"`
|
|
// Subject is the covering subject line stored with the document; null when none was given.
|
|
Subject *string `json:"subject,omitempty"`
|
|
// Title is the document's name, and the stem of the download filename.
|
|
Title *string `json:"title,omitempty"`
|
|
// UpdatedAt is when the document last changed, in unix milliseconds.
|
|
UpdatedAt *int64 `json:"updatedAt,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _EsignEsignDocument EsignEsignDocument
|
|
|
|
// NewEsignEsignDocument instantiates a new EsignEsignDocument 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 NewEsignEsignDocument() *EsignEsignDocument {
|
|
this := EsignEsignDocument{}
|
|
return &this
|
|
}
|
|
|
|
// NewEsignEsignDocumentWithDefaults instantiates a new EsignEsignDocument 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 NewEsignEsignDocumentWithDefaults() *EsignEsignDocument {
|
|
this := EsignEsignDocument{}
|
|
return &this
|
|
}
|
|
|
|
// GetCompletedAt returns the CompletedAt field value if set, zero value otherwise.
|
|
func (o *EsignEsignDocument) GetCompletedAt() int64 {
|
|
if o == nil || IsNil(o.CompletedAt) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.CompletedAt
|
|
}
|
|
|
|
// GetCompletedAtOk returns a tuple with the CompletedAt field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EsignEsignDocument) GetCompletedAtOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.CompletedAt) {
|
|
return nil, false
|
|
}
|
|
return o.CompletedAt, true
|
|
}
|
|
|
|
// HasCompletedAt returns a boolean if a field has been set.
|
|
func (o *EsignEsignDocument) HasCompletedAt() bool {
|
|
if o != nil && !IsNil(o.CompletedAt) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCompletedAt gets a reference to the given int64 and assigns it to the CompletedAt field.
|
|
func (o *EsignEsignDocument) SetCompletedAt(v int64) {
|
|
o.CompletedAt = &v
|
|
}
|
|
|
|
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
|
|
func (o *EsignEsignDocument) GetCreatedAt() int64 {
|
|
if o == nil || IsNil(o.CreatedAt) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.CreatedAt
|
|
}
|
|
|
|
// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EsignEsignDocument) GetCreatedAtOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.CreatedAt) {
|
|
return nil, false
|
|
}
|
|
return o.CreatedAt, true
|
|
}
|
|
|
|
// HasCreatedAt returns a boolean if a field has been set.
|
|
func (o *EsignEsignDocument) HasCreatedAt() bool {
|
|
if o != nil && !IsNil(o.CreatedAt) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCreatedAt gets a reference to the given int64 and assigns it to the CreatedAt field.
|
|
func (o *EsignEsignDocument) SetCreatedAt(v int64) {
|
|
o.CreatedAt = &v
|
|
}
|
|
|
|
// GetExternalId returns the ExternalId field value if set, zero value otherwise.
|
|
func (o *EsignEsignDocument) GetExternalId() string {
|
|
if o == nil || IsNil(o.ExternalId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ExternalId
|
|
}
|
|
|
|
// GetExternalIdOk returns a tuple with the ExternalId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EsignEsignDocument) GetExternalIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ExternalId) {
|
|
return nil, false
|
|
}
|
|
return o.ExternalId, true
|
|
}
|
|
|
|
// HasExternalId returns a boolean if a field has been set.
|
|
func (o *EsignEsignDocument) HasExternalId() bool {
|
|
if o != nil && !IsNil(o.ExternalId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetExternalId gets a reference to the given string and assigns it to the ExternalId field.
|
|
func (o *EsignEsignDocument) SetExternalId(v string) {
|
|
o.ExternalId = &v
|
|
}
|
|
|
|
// GetFields returns the Fields field value if set, zero value otherwise.
|
|
func (o *EsignEsignDocument) GetFields() []EsignEsignField {
|
|
if o == nil || IsNil(o.Fields) {
|
|
var ret []EsignEsignField
|
|
return ret
|
|
}
|
|
return o.Fields
|
|
}
|
|
|
|
// GetFieldsOk returns a tuple with the Fields field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EsignEsignDocument) GetFieldsOk() ([]EsignEsignField, bool) {
|
|
if o == nil || IsNil(o.Fields) {
|
|
return nil, false
|
|
}
|
|
return o.Fields, true
|
|
}
|
|
|
|
// HasFields returns a boolean if a field has been set.
|
|
func (o *EsignEsignDocument) HasFields() bool {
|
|
if o != nil && !IsNil(o.Fields) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetFields gets a reference to the given []EsignEsignField and assigns it to the Fields field.
|
|
func (o *EsignEsignDocument) SetFields(v []EsignEsignField) {
|
|
o.Fields = v
|
|
}
|
|
|
|
// GetId returns the Id field value if set, zero value otherwise.
|
|
func (o *EsignEsignDocument) 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 *EsignEsignDocument) 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 *EsignEsignDocument) 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 *EsignEsignDocument) SetId(v string) {
|
|
o.Id = &v
|
|
}
|
|
|
|
// GetMessage returns the Message field value if set, zero value otherwise.
|
|
func (o *EsignEsignDocument) GetMessage() string {
|
|
if o == nil || IsNil(o.Message) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Message
|
|
}
|
|
|
|
// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EsignEsignDocument) GetMessageOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Message) {
|
|
return nil, false
|
|
}
|
|
return o.Message, true
|
|
}
|
|
|
|
// HasMessage returns a boolean if a field has been set.
|
|
func (o *EsignEsignDocument) HasMessage() bool {
|
|
if o != nil && !IsNil(o.Message) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetMessage gets a reference to the given string and assigns it to the Message field.
|
|
func (o *EsignEsignDocument) SetMessage(v string) {
|
|
o.Message = &v
|
|
}
|
|
|
|
// GetRecipients returns the Recipients field value if set, zero value otherwise.
|
|
func (o *EsignEsignDocument) GetRecipients() []EsignEsignRecipient {
|
|
if o == nil || IsNil(o.Recipients) {
|
|
var ret []EsignEsignRecipient
|
|
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 *EsignEsignDocument) GetRecipientsOk() ([]EsignEsignRecipient, 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 *EsignEsignDocument) HasRecipients() bool {
|
|
if o != nil && !IsNil(o.Recipients) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRecipients gets a reference to the given []EsignEsignRecipient and assigns it to the Recipients field.
|
|
func (o *EsignEsignDocument) SetRecipients(v []EsignEsignRecipient) {
|
|
o.Recipients = v
|
|
}
|
|
|
|
// GetSigningOrder returns the SigningOrder field value if set, zero value otherwise.
|
|
func (o *EsignEsignDocument) GetSigningOrder() string {
|
|
if o == nil || IsNil(o.SigningOrder) {
|
|
var ret string
|
|
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 *EsignEsignDocument) GetSigningOrderOk() (*string, 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 *EsignEsignDocument) HasSigningOrder() bool {
|
|
if o != nil && !IsNil(o.SigningOrder) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSigningOrder gets a reference to the given string and assigns it to the SigningOrder field.
|
|
func (o *EsignEsignDocument) SetSigningOrder(v string) {
|
|
o.SigningOrder = &v
|
|
}
|
|
|
|
// GetSource returns the Source field value if set, zero value otherwise.
|
|
func (o *EsignEsignDocument) GetSource() string {
|
|
if o == nil || IsNil(o.Source) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Source
|
|
}
|
|
|
|
// GetSourceOk returns a tuple with the Source field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EsignEsignDocument) GetSourceOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Source) {
|
|
return nil, false
|
|
}
|
|
return o.Source, true
|
|
}
|
|
|
|
// HasSource returns a boolean if a field has been set.
|
|
func (o *EsignEsignDocument) HasSource() bool {
|
|
if o != nil && !IsNil(o.Source) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSource gets a reference to the given string and assigns it to the Source field.
|
|
func (o *EsignEsignDocument) SetSource(v string) {
|
|
o.Source = &v
|
|
}
|
|
|
|
// GetStatus returns the Status field value if set, zero value otherwise.
|
|
func (o *EsignEsignDocument) 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 *EsignEsignDocument) 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 *EsignEsignDocument) 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 *EsignEsignDocument) SetStatus(v string) {
|
|
o.Status = &v
|
|
}
|
|
|
|
// GetSubject returns the Subject field value if set, zero value otherwise.
|
|
func (o *EsignEsignDocument) GetSubject() string {
|
|
if o == nil || IsNil(o.Subject) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Subject
|
|
}
|
|
|
|
// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EsignEsignDocument) GetSubjectOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Subject) {
|
|
return nil, false
|
|
}
|
|
return o.Subject, true
|
|
}
|
|
|
|
// HasSubject returns a boolean if a field has been set.
|
|
func (o *EsignEsignDocument) HasSubject() bool {
|
|
if o != nil && !IsNil(o.Subject) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSubject gets a reference to the given string and assigns it to the Subject field.
|
|
func (o *EsignEsignDocument) SetSubject(v string) {
|
|
o.Subject = &v
|
|
}
|
|
|
|
// GetTitle returns the Title field value if set, zero value otherwise.
|
|
func (o *EsignEsignDocument) GetTitle() string {
|
|
if o == nil || IsNil(o.Title) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Title
|
|
}
|
|
|
|
// GetTitleOk returns a tuple with the Title field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EsignEsignDocument) GetTitleOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Title) {
|
|
return nil, false
|
|
}
|
|
return o.Title, true
|
|
}
|
|
|
|
// HasTitle returns a boolean if a field has been set.
|
|
func (o *EsignEsignDocument) HasTitle() bool {
|
|
if o != nil && !IsNil(o.Title) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTitle gets a reference to the given string and assigns it to the Title field.
|
|
func (o *EsignEsignDocument) SetTitle(v string) {
|
|
o.Title = &v
|
|
}
|
|
|
|
// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.
|
|
func (o *EsignEsignDocument) GetUpdatedAt() int64 {
|
|
if o == nil || IsNil(o.UpdatedAt) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.UpdatedAt
|
|
}
|
|
|
|
// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EsignEsignDocument) GetUpdatedAtOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.UpdatedAt) {
|
|
return nil, false
|
|
}
|
|
return o.UpdatedAt, true
|
|
}
|
|
|
|
// HasUpdatedAt returns a boolean if a field has been set.
|
|
func (o *EsignEsignDocument) HasUpdatedAt() bool {
|
|
if o != nil && !IsNil(o.UpdatedAt) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUpdatedAt gets a reference to the given int64 and assigns it to the UpdatedAt field.
|
|
func (o *EsignEsignDocument) SetUpdatedAt(v int64) {
|
|
o.UpdatedAt = &v
|
|
}
|
|
|
|
func (o EsignEsignDocument) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o EsignEsignDocument) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.CompletedAt) {
|
|
toSerialize["completedAt"] = o.CompletedAt
|
|
}
|
|
if !IsNil(o.CreatedAt) {
|
|
toSerialize["createdAt"] = o.CreatedAt
|
|
}
|
|
if !IsNil(o.ExternalId) {
|
|
toSerialize["externalId"] = o.ExternalId
|
|
}
|
|
if !IsNil(o.Fields) {
|
|
toSerialize["fields"] = o.Fields
|
|
}
|
|
if !IsNil(o.Id) {
|
|
toSerialize["id"] = o.Id
|
|
}
|
|
if !IsNil(o.Message) {
|
|
toSerialize["message"] = o.Message
|
|
}
|
|
if !IsNil(o.Recipients) {
|
|
toSerialize["recipients"] = o.Recipients
|
|
}
|
|
if !IsNil(o.SigningOrder) {
|
|
toSerialize["signingOrder"] = o.SigningOrder
|
|
}
|
|
if !IsNil(o.Source) {
|
|
toSerialize["source"] = o.Source
|
|
}
|
|
if !IsNil(o.Status) {
|
|
toSerialize["status"] = o.Status
|
|
}
|
|
if !IsNil(o.Subject) {
|
|
toSerialize["subject"] = o.Subject
|
|
}
|
|
if !IsNil(o.Title) {
|
|
toSerialize["title"] = o.Title
|
|
}
|
|
if !IsNil(o.UpdatedAt) {
|
|
toSerialize["updatedAt"] = o.UpdatedAt
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *EsignEsignDocument) UnmarshalJSON(data []byte) (err error) {
|
|
varEsignEsignDocument := _EsignEsignDocument{}
|
|
|
|
err = json.Unmarshal(data, &varEsignEsignDocument)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = EsignEsignDocument(varEsignEsignDocument)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "completedAt")
|
|
delete(additionalProperties, "createdAt")
|
|
delete(additionalProperties, "externalId")
|
|
delete(additionalProperties, "fields")
|
|
delete(additionalProperties, "id")
|
|
delete(additionalProperties, "message")
|
|
delete(additionalProperties, "recipients")
|
|
delete(additionalProperties, "signingOrder")
|
|
delete(additionalProperties, "source")
|
|
delete(additionalProperties, "status")
|
|
delete(additionalProperties, "subject")
|
|
delete(additionalProperties, "title")
|
|
delete(additionalProperties, "updatedAt")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableEsignEsignDocument struct {
|
|
value *EsignEsignDocument
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableEsignEsignDocument) Get() *EsignEsignDocument {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableEsignEsignDocument) Set(val *EsignEsignDocument) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableEsignEsignDocument) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableEsignEsignDocument) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableEsignEsignDocument(val *EsignEsignDocument) *NullableEsignEsignDocument {
|
|
return &NullableEsignEsignDocument{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableEsignEsignDocument) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableEsignEsignDocument) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|