Files
sdk/model_legal_filing_request.go

193 lines
5.4 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 LegalFilingRequest type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &LegalFilingRequest{}
// LegalFilingRequest struct for LegalFilingRequest
type LegalFilingRequest struct {
// DocumentIDs are the documents to file. At least one is required, and every one must belong to the caller's org — a filing can never reach across orgs.
DocumentIds []string `json:"documentIds,omitempty"`
// Jurisdiction is the state or agency the filing is for, e.g. \"DE\".
Jurisdiction *string `json:"jurisdiction,omitempty"`
AdditionalProperties map[string]interface{}
}
type _LegalFilingRequest LegalFilingRequest
// NewLegalFilingRequest instantiates a new LegalFilingRequest 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 NewLegalFilingRequest() *LegalFilingRequest {
this := LegalFilingRequest{}
return &this
}
// NewLegalFilingRequestWithDefaults instantiates a new LegalFilingRequest 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 NewLegalFilingRequestWithDefaults() *LegalFilingRequest {
this := LegalFilingRequest{}
return &this
}
// GetDocumentIds returns the DocumentIds field value if set, zero value otherwise.
func (o *LegalFilingRequest) GetDocumentIds() []string {
if o == nil || IsNil(o.DocumentIds) {
var ret []string
return ret
}
return o.DocumentIds
}
// GetDocumentIdsOk returns a tuple with the DocumentIds field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LegalFilingRequest) GetDocumentIdsOk() ([]string, bool) {
if o == nil || IsNil(o.DocumentIds) {
return nil, false
}
return o.DocumentIds, true
}
// HasDocumentIds returns a boolean if a field has been set.
func (o *LegalFilingRequest) HasDocumentIds() bool {
if o != nil && !IsNil(o.DocumentIds) {
return true
}
return false
}
// SetDocumentIds gets a reference to the given []string and assigns it to the DocumentIds field.
func (o *LegalFilingRequest) SetDocumentIds(v []string) {
o.DocumentIds = v
}
// GetJurisdiction returns the Jurisdiction field value if set, zero value otherwise.
func (o *LegalFilingRequest) GetJurisdiction() string {
if o == nil || IsNil(o.Jurisdiction) {
var ret string
return ret
}
return *o.Jurisdiction
}
// GetJurisdictionOk returns a tuple with the Jurisdiction field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LegalFilingRequest) GetJurisdictionOk() (*string, bool) {
if o == nil || IsNil(o.Jurisdiction) {
return nil, false
}
return o.Jurisdiction, true
}
// HasJurisdiction returns a boolean if a field has been set.
func (o *LegalFilingRequest) HasJurisdiction() bool {
if o != nil && !IsNil(o.Jurisdiction) {
return true
}
return false
}
// SetJurisdiction gets a reference to the given string and assigns it to the Jurisdiction field.
func (o *LegalFilingRequest) SetJurisdiction(v string) {
o.Jurisdiction = &v
}
func (o LegalFilingRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o LegalFilingRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.DocumentIds) {
toSerialize["documentIds"] = o.DocumentIds
}
if !IsNil(o.Jurisdiction) {
toSerialize["jurisdiction"] = o.Jurisdiction
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *LegalFilingRequest) UnmarshalJSON(data []byte) (err error) {
varLegalFilingRequest := _LegalFilingRequest{}
err = json.Unmarshal(data, &varLegalFilingRequest)
if err != nil {
return err
}
*o = LegalFilingRequest(varLegalFilingRequest)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "documentIds")
delete(additionalProperties, "jurisdiction")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableLegalFilingRequest struct {
value *LegalFilingRequest
isSet bool
}
func (v NullableLegalFilingRequest) Get() *LegalFilingRequest {
return v.value
}
func (v *NullableLegalFilingRequest) Set(val *LegalFilingRequest) {
v.value = val
v.isSet = true
}
func (v NullableLegalFilingRequest) IsSet() bool {
return v.isSet
}
func (v *NullableLegalFilingRequest) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableLegalFilingRequest(val *LegalFilingRequest) *NullableLegalFilingRequest {
return &NullableLegalFilingRequest{value: val, isSet: true}
}
func (v NullableLegalFilingRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableLegalFilingRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}