mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
231 lines
6.8 KiB
Go
231 lines
6.8 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 ComplianceRecordList type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &ComplianceRecordList{}
|
|
|
|
// ComplianceRecordList struct for ComplianceRecordList
|
|
type ComplianceRecordList struct {
|
|
// Accreditation is the org's tracked accreditation-state records.
|
|
Accreditation []ComplianceAccView `json:"accreditation,omitempty"`
|
|
// Disclaimer states that statuses are provider-reported or tracked, never a platform assertion of legal or regulatory compliance.
|
|
Disclaimer *string `json:"disclaimer,omitempty"`
|
|
// Verifications is the org's KYC/KYB checks, provider-reported statuses only.
|
|
Verifications []ComplianceCheckView `json:"verifications,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _ComplianceRecordList ComplianceRecordList
|
|
|
|
// NewComplianceRecordList instantiates a new ComplianceRecordList 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 NewComplianceRecordList() *ComplianceRecordList {
|
|
this := ComplianceRecordList{}
|
|
return &this
|
|
}
|
|
|
|
// NewComplianceRecordListWithDefaults instantiates a new ComplianceRecordList 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 NewComplianceRecordListWithDefaults() *ComplianceRecordList {
|
|
this := ComplianceRecordList{}
|
|
return &this
|
|
}
|
|
|
|
// GetAccreditation returns the Accreditation field value if set, zero value otherwise.
|
|
func (o *ComplianceRecordList) GetAccreditation() []ComplianceAccView {
|
|
if o == nil || IsNil(o.Accreditation) {
|
|
var ret []ComplianceAccView
|
|
return ret
|
|
}
|
|
return o.Accreditation
|
|
}
|
|
|
|
// GetAccreditationOk returns a tuple with the Accreditation field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ComplianceRecordList) GetAccreditationOk() ([]ComplianceAccView, bool) {
|
|
if o == nil || IsNil(o.Accreditation) {
|
|
return nil, false
|
|
}
|
|
return o.Accreditation, true
|
|
}
|
|
|
|
// HasAccreditation returns a boolean if a field has been set.
|
|
func (o *ComplianceRecordList) HasAccreditation() bool {
|
|
if o != nil && !IsNil(o.Accreditation) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAccreditation gets a reference to the given []ComplianceAccView and assigns it to the Accreditation field.
|
|
func (o *ComplianceRecordList) SetAccreditation(v []ComplianceAccView) {
|
|
o.Accreditation = v
|
|
}
|
|
|
|
// GetDisclaimer returns the Disclaimer field value if set, zero value otherwise.
|
|
func (o *ComplianceRecordList) GetDisclaimer() string {
|
|
if o == nil || IsNil(o.Disclaimer) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Disclaimer
|
|
}
|
|
|
|
// GetDisclaimerOk returns a tuple with the Disclaimer field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ComplianceRecordList) GetDisclaimerOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Disclaimer) {
|
|
return nil, false
|
|
}
|
|
return o.Disclaimer, true
|
|
}
|
|
|
|
// HasDisclaimer returns a boolean if a field has been set.
|
|
func (o *ComplianceRecordList) HasDisclaimer() bool {
|
|
if o != nil && !IsNil(o.Disclaimer) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDisclaimer gets a reference to the given string and assigns it to the Disclaimer field.
|
|
func (o *ComplianceRecordList) SetDisclaimer(v string) {
|
|
o.Disclaimer = &v
|
|
}
|
|
|
|
// GetVerifications returns the Verifications field value if set, zero value otherwise.
|
|
func (o *ComplianceRecordList) GetVerifications() []ComplianceCheckView {
|
|
if o == nil || IsNil(o.Verifications) {
|
|
var ret []ComplianceCheckView
|
|
return ret
|
|
}
|
|
return o.Verifications
|
|
}
|
|
|
|
// GetVerificationsOk returns a tuple with the Verifications field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ComplianceRecordList) GetVerificationsOk() ([]ComplianceCheckView, bool) {
|
|
if o == nil || IsNil(o.Verifications) {
|
|
return nil, false
|
|
}
|
|
return o.Verifications, true
|
|
}
|
|
|
|
// HasVerifications returns a boolean if a field has been set.
|
|
func (o *ComplianceRecordList) HasVerifications() bool {
|
|
if o != nil && !IsNil(o.Verifications) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetVerifications gets a reference to the given []ComplianceCheckView and assigns it to the Verifications field.
|
|
func (o *ComplianceRecordList) SetVerifications(v []ComplianceCheckView) {
|
|
o.Verifications = v
|
|
}
|
|
|
|
func (o ComplianceRecordList) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o ComplianceRecordList) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.Accreditation) {
|
|
toSerialize["accreditation"] = o.Accreditation
|
|
}
|
|
if !IsNil(o.Disclaimer) {
|
|
toSerialize["disclaimer"] = o.Disclaimer
|
|
}
|
|
if !IsNil(o.Verifications) {
|
|
toSerialize["verifications"] = o.Verifications
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *ComplianceRecordList) UnmarshalJSON(data []byte) (err error) {
|
|
varComplianceRecordList := _ComplianceRecordList{}
|
|
|
|
err = json.Unmarshal(data, &varComplianceRecordList)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = ComplianceRecordList(varComplianceRecordList)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "accreditation")
|
|
delete(additionalProperties, "disclaimer")
|
|
delete(additionalProperties, "verifications")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableComplianceRecordList struct {
|
|
value *ComplianceRecordList
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableComplianceRecordList) Get() *ComplianceRecordList {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableComplianceRecordList) Set(val *ComplianceRecordList) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableComplianceRecordList) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableComplianceRecordList) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableComplianceRecordList(val *ComplianceRecordList) *NullableComplianceRecordList {
|
|
return &NullableComplianceRecordList{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableComplianceRecordList) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableComplianceRecordList) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|