mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
231 lines
6.4 KiB
Go
231 lines
6.4 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 MarketingEsignDocument type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &MarketingEsignDocument{}
|
|
|
|
// MarketingEsignDocument struct for MarketingEsignDocument
|
|
type MarketingEsignDocument struct {
|
|
// ExternalID is the reference the document was made under: the lead's.
|
|
ExternalId *string `json:"externalId,omitempty"`
|
|
// ID is the document's id in eSign.
|
|
Id *int64 `json:"id,omitempty"`
|
|
// Recipients are the document's signers.
|
|
Recipients []MarketingEsignRecipient `json:"recipients,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _MarketingEsignDocument MarketingEsignDocument
|
|
|
|
// NewMarketingEsignDocument instantiates a new MarketingEsignDocument 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 NewMarketingEsignDocument() *MarketingEsignDocument {
|
|
this := MarketingEsignDocument{}
|
|
return &this
|
|
}
|
|
|
|
// NewMarketingEsignDocumentWithDefaults instantiates a new MarketingEsignDocument 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 NewMarketingEsignDocumentWithDefaults() *MarketingEsignDocument {
|
|
this := MarketingEsignDocument{}
|
|
return &this
|
|
}
|
|
|
|
// GetExternalId returns the ExternalId field value if set, zero value otherwise.
|
|
func (o *MarketingEsignDocument) 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 *MarketingEsignDocument) 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 *MarketingEsignDocument) 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 *MarketingEsignDocument) SetExternalId(v string) {
|
|
o.ExternalId = &v
|
|
}
|
|
|
|
// GetId returns the Id field value if set, zero value otherwise.
|
|
func (o *MarketingEsignDocument) GetId() int64 {
|
|
if o == nil || IsNil(o.Id) {
|
|
var ret int64
|
|
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 *MarketingEsignDocument) GetIdOk() (*int64, 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 *MarketingEsignDocument) HasId() bool {
|
|
if o != nil && !IsNil(o.Id) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetId gets a reference to the given int64 and assigns it to the Id field.
|
|
func (o *MarketingEsignDocument) SetId(v int64) {
|
|
o.Id = &v
|
|
}
|
|
|
|
// GetRecipients returns the Recipients field value if set, zero value otherwise.
|
|
func (o *MarketingEsignDocument) GetRecipients() []MarketingEsignRecipient {
|
|
if o == nil || IsNil(o.Recipients) {
|
|
var ret []MarketingEsignRecipient
|
|
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 *MarketingEsignDocument) GetRecipientsOk() ([]MarketingEsignRecipient, 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 *MarketingEsignDocument) HasRecipients() bool {
|
|
if o != nil && !IsNil(o.Recipients) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRecipients gets a reference to the given []MarketingEsignRecipient and assigns it to the Recipients field.
|
|
func (o *MarketingEsignDocument) SetRecipients(v []MarketingEsignRecipient) {
|
|
o.Recipients = v
|
|
}
|
|
|
|
func (o MarketingEsignDocument) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o MarketingEsignDocument) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.ExternalId) {
|
|
toSerialize["externalId"] = o.ExternalId
|
|
}
|
|
if !IsNil(o.Id) {
|
|
toSerialize["id"] = o.Id
|
|
}
|
|
if !IsNil(o.Recipients) {
|
|
toSerialize["recipients"] = o.Recipients
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *MarketingEsignDocument) UnmarshalJSON(data []byte) (err error) {
|
|
varMarketingEsignDocument := _MarketingEsignDocument{}
|
|
|
|
err = json.Unmarshal(data, &varMarketingEsignDocument)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = MarketingEsignDocument(varMarketingEsignDocument)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "externalId")
|
|
delete(additionalProperties, "id")
|
|
delete(additionalProperties, "recipients")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableMarketingEsignDocument struct {
|
|
value *MarketingEsignDocument
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableMarketingEsignDocument) Get() *MarketingEsignDocument {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableMarketingEsignDocument) Set(val *MarketingEsignDocument) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableMarketingEsignDocument) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableMarketingEsignDocument) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableMarketingEsignDocument(val *MarketingEsignDocument) *NullableMarketingEsignDocument {
|
|
return &NullableMarketingEsignDocument{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableMarketingEsignDocument) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableMarketingEsignDocument) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|