Files
sdk/model_compliance_check_view.go

497 lines
14 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 ComplianceCheckView type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ComplianceCheckView{}
// ComplianceCheckView struct for ComplianceCheckView
type ComplianceCheckView struct {
// CreatedAt is the unix second the verification was started.
CreatedAt *int64 `json:"createdAt,omitempty"`
// DecidedAt is the unix second a terminal status was recorded.
DecidedAt *int64 `json:"decidedAt,omitempty"`
// DecidedBy records who settled a terminal status: the provider name, or a reviewer's user id for a recorded manual decision.
DecidedBy *string `json:"decidedBy,omitempty"`
// ID is the verification's opaque id.
Id *string `json:"id,omitempty"`
// Kind is the party type: \"individual\" (KYC) or \"business\" (KYB).
Kind *string `json:"kind,omitempty"`
// Provider is the verification provider this check runs through.
Provider *string `json:"provider,omitempty"`
// Status is the check's state: pending, provider_verified, provider_rejected, manual_review, or expired (provider-reported), or reviewer_confirmed — the one value a privileged human reviewer records, never a provider.
Status *string `json:"status,omitempty"`
// SubjectID is the opaque id of the subject under verification.
SubjectId *string `json:"subjectId,omitempty"`
// UpdatedAt is the unix second the verification last changed.
UpdatedAt *int64 `json:"updatedAt,omitempty"`
// VerifyURL is the provider's hosted verification flow for the subject, when one exists.
VerifyUrl *string `json:"verifyUrl,omitempty"`
AdditionalProperties map[string]interface{}
}
type _ComplianceCheckView ComplianceCheckView
// NewComplianceCheckView instantiates a new ComplianceCheckView 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 NewComplianceCheckView() *ComplianceCheckView {
this := ComplianceCheckView{}
return &this
}
// NewComplianceCheckViewWithDefaults instantiates a new ComplianceCheckView 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 NewComplianceCheckViewWithDefaults() *ComplianceCheckView {
this := ComplianceCheckView{}
return &this
}
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *ComplianceCheckView) GetCreatedAt() int64 {
if o == nil || IsNil(o.CreatedAt) {
var ret int64
return ret
}
return *o.CreatedAt
}
// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComplianceCheckView) GetCreatedAtOk() (*int64, bool) {
if o == nil || IsNil(o.CreatedAt) {
return nil, false
}
return o.CreatedAt, true
}
// HasCreatedAt returns a boolean if a field has been set.
func (o *ComplianceCheckView) HasCreatedAt() bool {
if o != nil && !IsNil(o.CreatedAt) {
return true
}
return false
}
// SetCreatedAt gets a reference to the given int64 and assigns it to the CreatedAt field.
func (o *ComplianceCheckView) SetCreatedAt(v int64) {
o.CreatedAt = &v
}
// GetDecidedAt returns the DecidedAt field value if set, zero value otherwise.
func (o *ComplianceCheckView) GetDecidedAt() int64 {
if o == nil || IsNil(o.DecidedAt) {
var ret int64
return ret
}
return *o.DecidedAt
}
// GetDecidedAtOk returns a tuple with the DecidedAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComplianceCheckView) GetDecidedAtOk() (*int64, bool) {
if o == nil || IsNil(o.DecidedAt) {
return nil, false
}
return o.DecidedAt, true
}
// HasDecidedAt returns a boolean if a field has been set.
func (o *ComplianceCheckView) HasDecidedAt() bool {
if o != nil && !IsNil(o.DecidedAt) {
return true
}
return false
}
// SetDecidedAt gets a reference to the given int64 and assigns it to the DecidedAt field.
func (o *ComplianceCheckView) SetDecidedAt(v int64) {
o.DecidedAt = &v
}
// GetDecidedBy returns the DecidedBy field value if set, zero value otherwise.
func (o *ComplianceCheckView) GetDecidedBy() string {
if o == nil || IsNil(o.DecidedBy) {
var ret string
return ret
}
return *o.DecidedBy
}
// GetDecidedByOk returns a tuple with the DecidedBy field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComplianceCheckView) GetDecidedByOk() (*string, bool) {
if o == nil || IsNil(o.DecidedBy) {
return nil, false
}
return o.DecidedBy, true
}
// HasDecidedBy returns a boolean if a field has been set.
func (o *ComplianceCheckView) HasDecidedBy() bool {
if o != nil && !IsNil(o.DecidedBy) {
return true
}
return false
}
// SetDecidedBy gets a reference to the given string and assigns it to the DecidedBy field.
func (o *ComplianceCheckView) SetDecidedBy(v string) {
o.DecidedBy = &v
}
// GetId returns the Id field value if set, zero value otherwise.
func (o *ComplianceCheckView) GetId() string {
if o == nil || IsNil(o.Id) {
var ret string
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 *ComplianceCheckView) GetIdOk() (*string, 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 *ComplianceCheckView) HasId() bool {
if o != nil && !IsNil(o.Id) {
return true
}
return false
}
// SetId gets a reference to the given string and assigns it to the Id field.
func (o *ComplianceCheckView) SetId(v string) {
o.Id = &v
}
// GetKind returns the Kind field value if set, zero value otherwise.
func (o *ComplianceCheckView) GetKind() string {
if o == nil || IsNil(o.Kind) {
var ret string
return ret
}
return *o.Kind
}
// GetKindOk returns a tuple with the Kind field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComplianceCheckView) GetKindOk() (*string, bool) {
if o == nil || IsNil(o.Kind) {
return nil, false
}
return o.Kind, true
}
// HasKind returns a boolean if a field has been set.
func (o *ComplianceCheckView) HasKind() bool {
if o != nil && !IsNil(o.Kind) {
return true
}
return false
}
// SetKind gets a reference to the given string and assigns it to the Kind field.
func (o *ComplianceCheckView) SetKind(v string) {
o.Kind = &v
}
// GetProvider returns the Provider field value if set, zero value otherwise.
func (o *ComplianceCheckView) GetProvider() string {
if o == nil || IsNil(o.Provider) {
var ret string
return ret
}
return *o.Provider
}
// GetProviderOk returns a tuple with the Provider field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComplianceCheckView) GetProviderOk() (*string, bool) {
if o == nil || IsNil(o.Provider) {
return nil, false
}
return o.Provider, true
}
// HasProvider returns a boolean if a field has been set.
func (o *ComplianceCheckView) HasProvider() bool {
if o != nil && !IsNil(o.Provider) {
return true
}
return false
}
// SetProvider gets a reference to the given string and assigns it to the Provider field.
func (o *ComplianceCheckView) SetProvider(v string) {
o.Provider = &v
}
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *ComplianceCheckView) 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 *ComplianceCheckView) 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 *ComplianceCheckView) 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 *ComplianceCheckView) SetStatus(v string) {
o.Status = &v
}
// GetSubjectId returns the SubjectId field value if set, zero value otherwise.
func (o *ComplianceCheckView) 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 *ComplianceCheckView) 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 *ComplianceCheckView) 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 *ComplianceCheckView) SetSubjectId(v string) {
o.SubjectId = &v
}
// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.
func (o *ComplianceCheckView) GetUpdatedAt() int64 {
if o == nil || IsNil(o.UpdatedAt) {
var ret int64
return ret
}
return *o.UpdatedAt
}
// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComplianceCheckView) GetUpdatedAtOk() (*int64, bool) {
if o == nil || IsNil(o.UpdatedAt) {
return nil, false
}
return o.UpdatedAt, true
}
// HasUpdatedAt returns a boolean if a field has been set.
func (o *ComplianceCheckView) HasUpdatedAt() bool {
if o != nil && !IsNil(o.UpdatedAt) {
return true
}
return false
}
// SetUpdatedAt gets a reference to the given int64 and assigns it to the UpdatedAt field.
func (o *ComplianceCheckView) SetUpdatedAt(v int64) {
o.UpdatedAt = &v
}
// GetVerifyUrl returns the VerifyUrl field value if set, zero value otherwise.
func (o *ComplianceCheckView) GetVerifyUrl() string {
if o == nil || IsNil(o.VerifyUrl) {
var ret string
return ret
}
return *o.VerifyUrl
}
// GetVerifyUrlOk returns a tuple with the VerifyUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComplianceCheckView) GetVerifyUrlOk() (*string, bool) {
if o == nil || IsNil(o.VerifyUrl) {
return nil, false
}
return o.VerifyUrl, true
}
// HasVerifyUrl returns a boolean if a field has been set.
func (o *ComplianceCheckView) HasVerifyUrl() bool {
if o != nil && !IsNil(o.VerifyUrl) {
return true
}
return false
}
// SetVerifyUrl gets a reference to the given string and assigns it to the VerifyUrl field.
func (o *ComplianceCheckView) SetVerifyUrl(v string) {
o.VerifyUrl = &v
}
func (o ComplianceCheckView) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ComplianceCheckView) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.CreatedAt) {
toSerialize["createdAt"] = o.CreatedAt
}
if !IsNil(o.DecidedAt) {
toSerialize["decidedAt"] = o.DecidedAt
}
if !IsNil(o.DecidedBy) {
toSerialize["decidedBy"] = o.DecidedBy
}
if !IsNil(o.Id) {
toSerialize["id"] = o.Id
}
if !IsNil(o.Kind) {
toSerialize["kind"] = o.Kind
}
if !IsNil(o.Provider) {
toSerialize["provider"] = o.Provider
}
if !IsNil(o.Status) {
toSerialize["status"] = o.Status
}
if !IsNil(o.SubjectId) {
toSerialize["subjectId"] = o.SubjectId
}
if !IsNil(o.UpdatedAt) {
toSerialize["updatedAt"] = o.UpdatedAt
}
if !IsNil(o.VerifyUrl) {
toSerialize["verifyUrl"] = o.VerifyUrl
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *ComplianceCheckView) UnmarshalJSON(data []byte) (err error) {
varComplianceCheckView := _ComplianceCheckView{}
err = json.Unmarshal(data, &varComplianceCheckView)
if err != nil {
return err
}
*o = ComplianceCheckView(varComplianceCheckView)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "createdAt")
delete(additionalProperties, "decidedAt")
delete(additionalProperties, "decidedBy")
delete(additionalProperties, "id")
delete(additionalProperties, "kind")
delete(additionalProperties, "provider")
delete(additionalProperties, "status")
delete(additionalProperties, "subjectId")
delete(additionalProperties, "updatedAt")
delete(additionalProperties, "verifyUrl")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableComplianceCheckView struct {
value *ComplianceCheckView
isSet bool
}
func (v NullableComplianceCheckView) Get() *ComplianceCheckView {
return v.value
}
func (v *NullableComplianceCheckView) Set(val *ComplianceCheckView) {
v.value = val
v.isSet = true
}
func (v NullableComplianceCheckView) IsSet() bool {
return v.isSet
}
func (v *NullableComplianceCheckView) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableComplianceCheckView(val *ComplianceCheckView) *NullableComplianceCheckView {
return &NullableComplianceCheckView{value: val, isSet: true}
}
func (v NullableComplianceCheckView) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableComplianceCheckView) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}