mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
231 lines
6.6 KiB
Go
231 lines
6.6 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 EsignEsignCompletion type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &EsignEsignCompletion{}
|
|
|
|
// EsignEsignCompletion struct for EsignEsignCompletion
|
|
type EsignEsignCompletion struct {
|
|
// DocumentStatus is COMPLETED when this was the last signature and the document sealed here, PENDING while others have still to sign.
|
|
DocumentStatus *string `json:"documentStatus,omitempty"`
|
|
// RecipientID is the recipient who finished.
|
|
RecipientId *string `json:"recipientId,omitempty"`
|
|
// Sealed is whether the document sealed on this call — the field values rendered onto the PDF and a real x509 PKCS#7 signature applied.
|
|
Sealed *bool `json:"sealed,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _EsignEsignCompletion EsignEsignCompletion
|
|
|
|
// NewEsignEsignCompletion instantiates a new EsignEsignCompletion 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 NewEsignEsignCompletion() *EsignEsignCompletion {
|
|
this := EsignEsignCompletion{}
|
|
return &this
|
|
}
|
|
|
|
// NewEsignEsignCompletionWithDefaults instantiates a new EsignEsignCompletion 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 NewEsignEsignCompletionWithDefaults() *EsignEsignCompletion {
|
|
this := EsignEsignCompletion{}
|
|
return &this
|
|
}
|
|
|
|
// GetDocumentStatus returns the DocumentStatus field value if set, zero value otherwise.
|
|
func (o *EsignEsignCompletion) GetDocumentStatus() string {
|
|
if o == nil || IsNil(o.DocumentStatus) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.DocumentStatus
|
|
}
|
|
|
|
// GetDocumentStatusOk returns a tuple with the DocumentStatus field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EsignEsignCompletion) GetDocumentStatusOk() (*string, bool) {
|
|
if o == nil || IsNil(o.DocumentStatus) {
|
|
return nil, false
|
|
}
|
|
return o.DocumentStatus, true
|
|
}
|
|
|
|
// HasDocumentStatus returns a boolean if a field has been set.
|
|
func (o *EsignEsignCompletion) HasDocumentStatus() bool {
|
|
if o != nil && !IsNil(o.DocumentStatus) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDocumentStatus gets a reference to the given string and assigns it to the DocumentStatus field.
|
|
func (o *EsignEsignCompletion) SetDocumentStatus(v string) {
|
|
o.DocumentStatus = &v
|
|
}
|
|
|
|
// GetRecipientId returns the RecipientId field value if set, zero value otherwise.
|
|
func (o *EsignEsignCompletion) 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 *EsignEsignCompletion) 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 *EsignEsignCompletion) 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 *EsignEsignCompletion) SetRecipientId(v string) {
|
|
o.RecipientId = &v
|
|
}
|
|
|
|
// GetSealed returns the Sealed field value if set, zero value otherwise.
|
|
func (o *EsignEsignCompletion) GetSealed() bool {
|
|
if o == nil || IsNil(o.Sealed) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.Sealed
|
|
}
|
|
|
|
// GetSealedOk returns a tuple with the Sealed field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EsignEsignCompletion) GetSealedOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.Sealed) {
|
|
return nil, false
|
|
}
|
|
return o.Sealed, true
|
|
}
|
|
|
|
// HasSealed returns a boolean if a field has been set.
|
|
func (o *EsignEsignCompletion) HasSealed() bool {
|
|
if o != nil && !IsNil(o.Sealed) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSealed gets a reference to the given bool and assigns it to the Sealed field.
|
|
func (o *EsignEsignCompletion) SetSealed(v bool) {
|
|
o.Sealed = &v
|
|
}
|
|
|
|
func (o EsignEsignCompletion) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o EsignEsignCompletion) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.DocumentStatus) {
|
|
toSerialize["documentStatus"] = o.DocumentStatus
|
|
}
|
|
if !IsNil(o.RecipientId) {
|
|
toSerialize["recipientId"] = o.RecipientId
|
|
}
|
|
if !IsNil(o.Sealed) {
|
|
toSerialize["sealed"] = o.Sealed
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *EsignEsignCompletion) UnmarshalJSON(data []byte) (err error) {
|
|
varEsignEsignCompletion := _EsignEsignCompletion{}
|
|
|
|
err = json.Unmarshal(data, &varEsignEsignCompletion)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = EsignEsignCompletion(varEsignEsignCompletion)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "documentStatus")
|
|
delete(additionalProperties, "recipientId")
|
|
delete(additionalProperties, "sealed")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableEsignEsignCompletion struct {
|
|
value *EsignEsignCompletion
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableEsignEsignCompletion) Get() *EsignEsignCompletion {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableEsignEsignCompletion) Set(val *EsignEsignCompletion) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableEsignEsignCompletion) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableEsignEsignCompletion) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableEsignEsignCompletion(val *EsignEsignCompletion) *NullableEsignEsignCompletion {
|
|
return &NullableEsignEsignCompletion{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableEsignEsignCompletion) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableEsignEsignCompletion) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|