mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
193 lines
5.2 KiB
Go
193 lines
5.2 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 EsignEsignRejection type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &EsignEsignRejection{}
|
|
|
|
// EsignEsignRejection struct for EsignEsignRejection
|
|
type EsignEsignRejection struct {
|
|
// RecipientID is the recipient who declined.
|
|
RecipientId *string `json:"recipientId,omitempty"`
|
|
// Status is REJECTED — one declining signer ends the document for everyone, and there is no route back.
|
|
Status *string `json:"status,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _EsignEsignRejection EsignEsignRejection
|
|
|
|
// NewEsignEsignRejection instantiates a new EsignEsignRejection 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 NewEsignEsignRejection() *EsignEsignRejection {
|
|
this := EsignEsignRejection{}
|
|
return &this
|
|
}
|
|
|
|
// NewEsignEsignRejectionWithDefaults instantiates a new EsignEsignRejection 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 NewEsignEsignRejectionWithDefaults() *EsignEsignRejection {
|
|
this := EsignEsignRejection{}
|
|
return &this
|
|
}
|
|
|
|
// GetRecipientId returns the RecipientId field value if set, zero value otherwise.
|
|
func (o *EsignEsignRejection) 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 *EsignEsignRejection) 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 *EsignEsignRejection) 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 *EsignEsignRejection) SetRecipientId(v string) {
|
|
o.RecipientId = &v
|
|
}
|
|
|
|
// GetStatus returns the Status field value if set, zero value otherwise.
|
|
func (o *EsignEsignRejection) 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 *EsignEsignRejection) 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 *EsignEsignRejection) 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 *EsignEsignRejection) SetStatus(v string) {
|
|
o.Status = &v
|
|
}
|
|
|
|
func (o EsignEsignRejection) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o EsignEsignRejection) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.RecipientId) {
|
|
toSerialize["recipientId"] = o.RecipientId
|
|
}
|
|
if !IsNil(o.Status) {
|
|
toSerialize["status"] = o.Status
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *EsignEsignRejection) UnmarshalJSON(data []byte) (err error) {
|
|
varEsignEsignRejection := _EsignEsignRejection{}
|
|
|
|
err = json.Unmarshal(data, &varEsignEsignRejection)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = EsignEsignRejection(varEsignEsignRejection)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "recipientId")
|
|
delete(additionalProperties, "status")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableEsignEsignRejection struct {
|
|
value *EsignEsignRejection
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableEsignEsignRejection) Get() *EsignEsignRejection {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableEsignEsignRejection) Set(val *EsignEsignRejection) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableEsignEsignRejection) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableEsignEsignRejection) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableEsignEsignRejection(val *EsignEsignRejection) *NullableEsignEsignRejection {
|
|
return &NullableEsignEsignRejection{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableEsignEsignRejection) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableEsignEsignRejection) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|