mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
535 lines
14 KiB
Go
535 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 EsignEsignField type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &EsignEsignField{}
|
|
|
|
// EsignEsignField struct for EsignEsignField
|
|
type EsignEsignField struct {
|
|
// CustomText is the value a non-signature field was filled with, empty until it is. A signature's value is not here: it is stored separately and rendered onto the page at sealing.
|
|
CustomText *string `json:"customText,omitempty"`
|
|
FieldMeta interface{} `json:"fieldMeta,omitempty"`
|
|
// Height is the field's height, -1 when the renderer is to choose one.
|
|
Height *float64 `json:"height,omitempty"`
|
|
// ID is the field id.
|
|
Id *string `json:"id,omitempty"`
|
|
// Inserted is whether this field has been filled in.
|
|
Inserted *bool `json:"inserted,omitempty"`
|
|
// Page is the 1-based page the field sits on.
|
|
Page *float64 `json:"page,omitempty"`
|
|
// PositionX is the field's horizontal position on that page.
|
|
PositionX *float64 `json:"positionX,omitempty"`
|
|
// PositionY is the field's vertical position on that page.
|
|
PositionY *float64 `json:"positionY,omitempty"`
|
|
// RecipientID is who must fill this field. It is absent on a signer's own view of a document, where every field returned is already theirs.
|
|
RecipientId *string `json:"recipientId,omitempty"`
|
|
// Type is what the field collects — SIGNATURE, DATE, NAME, EMAIL, TEXT and the rest.
|
|
Type *string `json:"type,omitempty"`
|
|
// Width is the field's width, -1 when the renderer is to choose one.
|
|
Width *float64 `json:"width,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _EsignEsignField EsignEsignField
|
|
|
|
// NewEsignEsignField instantiates a new EsignEsignField 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 NewEsignEsignField() *EsignEsignField {
|
|
this := EsignEsignField{}
|
|
return &this
|
|
}
|
|
|
|
// NewEsignEsignFieldWithDefaults instantiates a new EsignEsignField 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 NewEsignEsignFieldWithDefaults() *EsignEsignField {
|
|
this := EsignEsignField{}
|
|
return &this
|
|
}
|
|
|
|
// GetCustomText returns the CustomText field value if set, zero value otherwise.
|
|
func (o *EsignEsignField) GetCustomText() string {
|
|
if o == nil || IsNil(o.CustomText) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.CustomText
|
|
}
|
|
|
|
// GetCustomTextOk returns a tuple with the CustomText field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EsignEsignField) GetCustomTextOk() (*string, bool) {
|
|
if o == nil || IsNil(o.CustomText) {
|
|
return nil, false
|
|
}
|
|
return o.CustomText, true
|
|
}
|
|
|
|
// HasCustomText returns a boolean if a field has been set.
|
|
func (o *EsignEsignField) HasCustomText() bool {
|
|
if o != nil && !IsNil(o.CustomText) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCustomText gets a reference to the given string and assigns it to the CustomText field.
|
|
func (o *EsignEsignField) SetCustomText(v string) {
|
|
o.CustomText = &v
|
|
}
|
|
|
|
// GetFieldMeta returns the FieldMeta field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *EsignEsignField) GetFieldMeta() interface{} {
|
|
if o == nil {
|
|
var ret interface{}
|
|
return ret
|
|
}
|
|
return o.FieldMeta
|
|
}
|
|
|
|
// GetFieldMetaOk returns a tuple with the FieldMeta field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *EsignEsignField) GetFieldMetaOk() (*interface{}, bool) {
|
|
if o == nil || IsNil(o.FieldMeta) {
|
|
return nil, false
|
|
}
|
|
return &o.FieldMeta, true
|
|
}
|
|
|
|
// HasFieldMeta returns a boolean if a field has been set.
|
|
func (o *EsignEsignField) HasFieldMeta() bool {
|
|
if o != nil && !IsNil(o.FieldMeta) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetFieldMeta gets a reference to the given interface{} and assigns it to the FieldMeta field.
|
|
func (o *EsignEsignField) SetFieldMeta(v interface{}) {
|
|
o.FieldMeta = v
|
|
}
|
|
|
|
// GetHeight returns the Height field value if set, zero value otherwise.
|
|
func (o *EsignEsignField) GetHeight() float64 {
|
|
if o == nil || IsNil(o.Height) {
|
|
var ret float64
|
|
return ret
|
|
}
|
|
return *o.Height
|
|
}
|
|
|
|
// GetHeightOk returns a tuple with the Height field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EsignEsignField) GetHeightOk() (*float64, bool) {
|
|
if o == nil || IsNil(o.Height) {
|
|
return nil, false
|
|
}
|
|
return o.Height, true
|
|
}
|
|
|
|
// HasHeight returns a boolean if a field has been set.
|
|
func (o *EsignEsignField) HasHeight() bool {
|
|
if o != nil && !IsNil(o.Height) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetHeight gets a reference to the given float64 and assigns it to the Height field.
|
|
func (o *EsignEsignField) SetHeight(v float64) {
|
|
o.Height = &v
|
|
}
|
|
|
|
// GetId returns the Id field value if set, zero value otherwise.
|
|
func (o *EsignEsignField) 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 *EsignEsignField) 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 *EsignEsignField) 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 *EsignEsignField) SetId(v string) {
|
|
o.Id = &v
|
|
}
|
|
|
|
// GetInserted returns the Inserted field value if set, zero value otherwise.
|
|
func (o *EsignEsignField) GetInserted() bool {
|
|
if o == nil || IsNil(o.Inserted) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.Inserted
|
|
}
|
|
|
|
// GetInsertedOk returns a tuple with the Inserted field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EsignEsignField) GetInsertedOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.Inserted) {
|
|
return nil, false
|
|
}
|
|
return o.Inserted, true
|
|
}
|
|
|
|
// HasInserted returns a boolean if a field has been set.
|
|
func (o *EsignEsignField) HasInserted() bool {
|
|
if o != nil && !IsNil(o.Inserted) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetInserted gets a reference to the given bool and assigns it to the Inserted field.
|
|
func (o *EsignEsignField) SetInserted(v bool) {
|
|
o.Inserted = &v
|
|
}
|
|
|
|
// GetPage returns the Page field value if set, zero value otherwise.
|
|
func (o *EsignEsignField) GetPage() float64 {
|
|
if o == nil || IsNil(o.Page) {
|
|
var ret float64
|
|
return ret
|
|
}
|
|
return *o.Page
|
|
}
|
|
|
|
// GetPageOk returns a tuple with the Page field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EsignEsignField) GetPageOk() (*float64, bool) {
|
|
if o == nil || IsNil(o.Page) {
|
|
return nil, false
|
|
}
|
|
return o.Page, true
|
|
}
|
|
|
|
// HasPage returns a boolean if a field has been set.
|
|
func (o *EsignEsignField) HasPage() bool {
|
|
if o != nil && !IsNil(o.Page) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPage gets a reference to the given float64 and assigns it to the Page field.
|
|
func (o *EsignEsignField) SetPage(v float64) {
|
|
o.Page = &v
|
|
}
|
|
|
|
// GetPositionX returns the PositionX field value if set, zero value otherwise.
|
|
func (o *EsignEsignField) GetPositionX() float64 {
|
|
if o == nil || IsNil(o.PositionX) {
|
|
var ret float64
|
|
return ret
|
|
}
|
|
return *o.PositionX
|
|
}
|
|
|
|
// GetPositionXOk returns a tuple with the PositionX field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EsignEsignField) GetPositionXOk() (*float64, bool) {
|
|
if o == nil || IsNil(o.PositionX) {
|
|
return nil, false
|
|
}
|
|
return o.PositionX, true
|
|
}
|
|
|
|
// HasPositionX returns a boolean if a field has been set.
|
|
func (o *EsignEsignField) HasPositionX() bool {
|
|
if o != nil && !IsNil(o.PositionX) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPositionX gets a reference to the given float64 and assigns it to the PositionX field.
|
|
func (o *EsignEsignField) SetPositionX(v float64) {
|
|
o.PositionX = &v
|
|
}
|
|
|
|
// GetPositionY returns the PositionY field value if set, zero value otherwise.
|
|
func (o *EsignEsignField) GetPositionY() float64 {
|
|
if o == nil || IsNil(o.PositionY) {
|
|
var ret float64
|
|
return ret
|
|
}
|
|
return *o.PositionY
|
|
}
|
|
|
|
// GetPositionYOk returns a tuple with the PositionY field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EsignEsignField) GetPositionYOk() (*float64, bool) {
|
|
if o == nil || IsNil(o.PositionY) {
|
|
return nil, false
|
|
}
|
|
return o.PositionY, true
|
|
}
|
|
|
|
// HasPositionY returns a boolean if a field has been set.
|
|
func (o *EsignEsignField) HasPositionY() bool {
|
|
if o != nil && !IsNil(o.PositionY) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPositionY gets a reference to the given float64 and assigns it to the PositionY field.
|
|
func (o *EsignEsignField) SetPositionY(v float64) {
|
|
o.PositionY = &v
|
|
}
|
|
|
|
// GetRecipientId returns the RecipientId field value if set, zero value otherwise.
|
|
func (o *EsignEsignField) GetRecipientId() string {
|
|
if o == nil || IsNil(o.RecipientId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.RecipientId
|
|
}
|
|
|
|
// GetRecipientIdOk returns a tuple with the RecipientId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EsignEsignField) GetRecipientIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.RecipientId) {
|
|
return nil, false
|
|
}
|
|
return o.RecipientId, true
|
|
}
|
|
|
|
// HasRecipientId returns a boolean if a field has been set.
|
|
func (o *EsignEsignField) HasRecipientId() bool {
|
|
if o != nil && !IsNil(o.RecipientId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRecipientId gets a reference to the given string and assigns it to the RecipientId field.
|
|
func (o *EsignEsignField) SetRecipientId(v string) {
|
|
o.RecipientId = &v
|
|
}
|
|
|
|
// GetType returns the Type field value if set, zero value otherwise.
|
|
func (o *EsignEsignField) GetType() string {
|
|
if o == nil || IsNil(o.Type) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Type
|
|
}
|
|
|
|
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EsignEsignField) GetTypeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Type) {
|
|
return nil, false
|
|
}
|
|
return o.Type, true
|
|
}
|
|
|
|
// HasType returns a boolean if a field has been set.
|
|
func (o *EsignEsignField) HasType() bool {
|
|
if o != nil && !IsNil(o.Type) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetType gets a reference to the given string and assigns it to the Type field.
|
|
func (o *EsignEsignField) SetType(v string) {
|
|
o.Type = &v
|
|
}
|
|
|
|
// GetWidth returns the Width field value if set, zero value otherwise.
|
|
func (o *EsignEsignField) GetWidth() float64 {
|
|
if o == nil || IsNil(o.Width) {
|
|
var ret float64
|
|
return ret
|
|
}
|
|
return *o.Width
|
|
}
|
|
|
|
// GetWidthOk returns a tuple with the Width field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EsignEsignField) GetWidthOk() (*float64, bool) {
|
|
if o == nil || IsNil(o.Width) {
|
|
return nil, false
|
|
}
|
|
return o.Width, true
|
|
}
|
|
|
|
// HasWidth returns a boolean if a field has been set.
|
|
func (o *EsignEsignField) HasWidth() bool {
|
|
if o != nil && !IsNil(o.Width) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetWidth gets a reference to the given float64 and assigns it to the Width field.
|
|
func (o *EsignEsignField) SetWidth(v float64) {
|
|
o.Width = &v
|
|
}
|
|
|
|
func (o EsignEsignField) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o EsignEsignField) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.CustomText) {
|
|
toSerialize["customText"] = o.CustomText
|
|
}
|
|
if o.FieldMeta != nil {
|
|
toSerialize["fieldMeta"] = o.FieldMeta
|
|
}
|
|
if !IsNil(o.Height) {
|
|
toSerialize["height"] = o.Height
|
|
}
|
|
if !IsNil(o.Id) {
|
|
toSerialize["id"] = o.Id
|
|
}
|
|
if !IsNil(o.Inserted) {
|
|
toSerialize["inserted"] = o.Inserted
|
|
}
|
|
if !IsNil(o.Page) {
|
|
toSerialize["page"] = o.Page
|
|
}
|
|
if !IsNil(o.PositionX) {
|
|
toSerialize["positionX"] = o.PositionX
|
|
}
|
|
if !IsNil(o.PositionY) {
|
|
toSerialize["positionY"] = o.PositionY
|
|
}
|
|
if !IsNil(o.RecipientId) {
|
|
toSerialize["recipientId"] = o.RecipientId
|
|
}
|
|
if !IsNil(o.Type) {
|
|
toSerialize["type"] = o.Type
|
|
}
|
|
if !IsNil(o.Width) {
|
|
toSerialize["width"] = o.Width
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *EsignEsignField) UnmarshalJSON(data []byte) (err error) {
|
|
varEsignEsignField := _EsignEsignField{}
|
|
|
|
err = json.Unmarshal(data, &varEsignEsignField)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = EsignEsignField(varEsignEsignField)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "customText")
|
|
delete(additionalProperties, "fieldMeta")
|
|
delete(additionalProperties, "height")
|
|
delete(additionalProperties, "id")
|
|
delete(additionalProperties, "inserted")
|
|
delete(additionalProperties, "page")
|
|
delete(additionalProperties, "positionX")
|
|
delete(additionalProperties, "positionY")
|
|
delete(additionalProperties, "recipientId")
|
|
delete(additionalProperties, "type")
|
|
delete(additionalProperties, "width")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableEsignEsignField struct {
|
|
value *EsignEsignField
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableEsignEsignField) Get() *EsignEsignField {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableEsignEsignField) Set(val *EsignEsignField) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableEsignEsignField) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableEsignEsignField) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableEsignEsignField(val *EsignEsignField) *NullableEsignEsignField {
|
|
return &NullableEsignEsignField{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableEsignEsignField) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableEsignEsignField) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|