mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
383 lines
11 KiB
Go
383 lines
11 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 ComplianceAccreditationReq type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &ComplianceAccreditationReq{}
|
|
|
|
// ComplianceAccreditationReq struct for ComplianceAccreditationReq
|
|
type ComplianceAccreditationReq struct {
|
|
// Basis is the qualification category: income, net_worth, professional_license, or entity.
|
|
Basis *string `json:"basis,omitempty"`
|
|
// EvidenceDocID references an evidence document in the org's sealed data room.
|
|
EvidenceDocId *string `json:"evidenceDocId,omitempty"`
|
|
// ExpiresAt is the unix second a confirmation ages out; 0 means none.
|
|
ExpiresAt *int64 `json:"expiresAt,omitempty"`
|
|
// Method is how the state was established: self_attested, third_party_letter, or provider_verified.
|
|
Method *string `json:"method,omitempty"`
|
|
// Note is a non-PII operator note.
|
|
Note *string `json:"note,omitempty"`
|
|
// Status may only be \"asserted\" (empty reads as asserted); every confirmed, rejected or expired state is recorded via the decision endpoint.
|
|
Status *string `json:"status,omitempty"`
|
|
// SubjectID names the subject this record is about; it must exist within the org.
|
|
SubjectId *string `json:"subjectId,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _ComplianceAccreditationReq ComplianceAccreditationReq
|
|
|
|
// NewComplianceAccreditationReq instantiates a new ComplianceAccreditationReq 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 NewComplianceAccreditationReq() *ComplianceAccreditationReq {
|
|
this := ComplianceAccreditationReq{}
|
|
return &this
|
|
}
|
|
|
|
// NewComplianceAccreditationReqWithDefaults instantiates a new ComplianceAccreditationReq 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 NewComplianceAccreditationReqWithDefaults() *ComplianceAccreditationReq {
|
|
this := ComplianceAccreditationReq{}
|
|
return &this
|
|
}
|
|
|
|
// GetBasis returns the Basis field value if set, zero value otherwise.
|
|
func (o *ComplianceAccreditationReq) GetBasis() string {
|
|
if o == nil || IsNil(o.Basis) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Basis
|
|
}
|
|
|
|
// GetBasisOk returns a tuple with the Basis field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ComplianceAccreditationReq) GetBasisOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Basis) {
|
|
return nil, false
|
|
}
|
|
return o.Basis, true
|
|
}
|
|
|
|
// HasBasis returns a boolean if a field has been set.
|
|
func (o *ComplianceAccreditationReq) HasBasis() bool {
|
|
if o != nil && !IsNil(o.Basis) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetBasis gets a reference to the given string and assigns it to the Basis field.
|
|
func (o *ComplianceAccreditationReq) SetBasis(v string) {
|
|
o.Basis = &v
|
|
}
|
|
|
|
// GetEvidenceDocId returns the EvidenceDocId field value if set, zero value otherwise.
|
|
func (o *ComplianceAccreditationReq) GetEvidenceDocId() string {
|
|
if o == nil || IsNil(o.EvidenceDocId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.EvidenceDocId
|
|
}
|
|
|
|
// GetEvidenceDocIdOk returns a tuple with the EvidenceDocId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ComplianceAccreditationReq) GetEvidenceDocIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.EvidenceDocId) {
|
|
return nil, false
|
|
}
|
|
return o.EvidenceDocId, true
|
|
}
|
|
|
|
// HasEvidenceDocId returns a boolean if a field has been set.
|
|
func (o *ComplianceAccreditationReq) HasEvidenceDocId() bool {
|
|
if o != nil && !IsNil(o.EvidenceDocId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetEvidenceDocId gets a reference to the given string and assigns it to the EvidenceDocId field.
|
|
func (o *ComplianceAccreditationReq) SetEvidenceDocId(v string) {
|
|
o.EvidenceDocId = &v
|
|
}
|
|
|
|
// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise.
|
|
func (o *ComplianceAccreditationReq) GetExpiresAt() int64 {
|
|
if o == nil || IsNil(o.ExpiresAt) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.ExpiresAt
|
|
}
|
|
|
|
// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ComplianceAccreditationReq) GetExpiresAtOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.ExpiresAt) {
|
|
return nil, false
|
|
}
|
|
return o.ExpiresAt, true
|
|
}
|
|
|
|
// HasExpiresAt returns a boolean if a field has been set.
|
|
func (o *ComplianceAccreditationReq) HasExpiresAt() bool {
|
|
if o != nil && !IsNil(o.ExpiresAt) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetExpiresAt gets a reference to the given int64 and assigns it to the ExpiresAt field.
|
|
func (o *ComplianceAccreditationReq) SetExpiresAt(v int64) {
|
|
o.ExpiresAt = &v
|
|
}
|
|
|
|
// GetMethod returns the Method field value if set, zero value otherwise.
|
|
func (o *ComplianceAccreditationReq) GetMethod() string {
|
|
if o == nil || IsNil(o.Method) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Method
|
|
}
|
|
|
|
// GetMethodOk returns a tuple with the Method field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ComplianceAccreditationReq) GetMethodOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Method) {
|
|
return nil, false
|
|
}
|
|
return o.Method, true
|
|
}
|
|
|
|
// HasMethod returns a boolean if a field has been set.
|
|
func (o *ComplianceAccreditationReq) HasMethod() bool {
|
|
if o != nil && !IsNil(o.Method) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetMethod gets a reference to the given string and assigns it to the Method field.
|
|
func (o *ComplianceAccreditationReq) SetMethod(v string) {
|
|
o.Method = &v
|
|
}
|
|
|
|
// GetNote returns the Note field value if set, zero value otherwise.
|
|
func (o *ComplianceAccreditationReq) GetNote() string {
|
|
if o == nil || IsNil(o.Note) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Note
|
|
}
|
|
|
|
// GetNoteOk returns a tuple with the Note field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ComplianceAccreditationReq) GetNoteOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Note) {
|
|
return nil, false
|
|
}
|
|
return o.Note, true
|
|
}
|
|
|
|
// HasNote returns a boolean if a field has been set.
|
|
func (o *ComplianceAccreditationReq) HasNote() bool {
|
|
if o != nil && !IsNil(o.Note) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetNote gets a reference to the given string and assigns it to the Note field.
|
|
func (o *ComplianceAccreditationReq) SetNote(v string) {
|
|
o.Note = &v
|
|
}
|
|
|
|
// GetStatus returns the Status field value if set, zero value otherwise.
|
|
func (o *ComplianceAccreditationReq) 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 *ComplianceAccreditationReq) 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 *ComplianceAccreditationReq) 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 *ComplianceAccreditationReq) SetStatus(v string) {
|
|
o.Status = &v
|
|
}
|
|
|
|
// GetSubjectId returns the SubjectId field value if set, zero value otherwise.
|
|
func (o *ComplianceAccreditationReq) GetSubjectId() string {
|
|
if o == nil || IsNil(o.SubjectId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.SubjectId
|
|
}
|
|
|
|
// GetSubjectIdOk returns a tuple with the SubjectId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ComplianceAccreditationReq) GetSubjectIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.SubjectId) {
|
|
return nil, false
|
|
}
|
|
return o.SubjectId, true
|
|
}
|
|
|
|
// HasSubjectId returns a boolean if a field has been set.
|
|
func (o *ComplianceAccreditationReq) HasSubjectId() bool {
|
|
if o != nil && !IsNil(o.SubjectId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSubjectId gets a reference to the given string and assigns it to the SubjectId field.
|
|
func (o *ComplianceAccreditationReq) SetSubjectId(v string) {
|
|
o.SubjectId = &v
|
|
}
|
|
|
|
func (o ComplianceAccreditationReq) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o ComplianceAccreditationReq) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.Basis) {
|
|
toSerialize["basis"] = o.Basis
|
|
}
|
|
if !IsNil(o.EvidenceDocId) {
|
|
toSerialize["evidenceDocId"] = o.EvidenceDocId
|
|
}
|
|
if !IsNil(o.ExpiresAt) {
|
|
toSerialize["expiresAt"] = o.ExpiresAt
|
|
}
|
|
if !IsNil(o.Method) {
|
|
toSerialize["method"] = o.Method
|
|
}
|
|
if !IsNil(o.Note) {
|
|
toSerialize["note"] = o.Note
|
|
}
|
|
if !IsNil(o.Status) {
|
|
toSerialize["status"] = o.Status
|
|
}
|
|
if !IsNil(o.SubjectId) {
|
|
toSerialize["subjectId"] = o.SubjectId
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *ComplianceAccreditationReq) UnmarshalJSON(data []byte) (err error) {
|
|
varComplianceAccreditationReq := _ComplianceAccreditationReq{}
|
|
|
|
err = json.Unmarshal(data, &varComplianceAccreditationReq)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = ComplianceAccreditationReq(varComplianceAccreditationReq)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "basis")
|
|
delete(additionalProperties, "evidenceDocId")
|
|
delete(additionalProperties, "expiresAt")
|
|
delete(additionalProperties, "method")
|
|
delete(additionalProperties, "note")
|
|
delete(additionalProperties, "status")
|
|
delete(additionalProperties, "subjectId")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableComplianceAccreditationReq struct {
|
|
value *ComplianceAccreditationReq
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableComplianceAccreditationReq) Get() *ComplianceAccreditationReq {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableComplianceAccreditationReq) Set(val *ComplianceAccreditationReq) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableComplianceAccreditationReq) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableComplianceAccreditationReq) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableComplianceAccreditationReq(val *ComplianceAccreditationReq) *NullableComplianceAccreditationReq {
|
|
return &NullableComplianceAccreditationReq{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableComplianceAccreditationReq) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableComplianceAccreditationReq) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|