-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel_dati_anagrafici_vettore.go
255 lines (212 loc) · 8.33 KB
/
model_dati_anagrafici_vettore.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
/*
Invoicetronic API
The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
API version: 1
Contact: support@invoicetronic.com
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package invoicetronicsdk
import (
"encoding/json"
)
// checks if the DatiAnagraficiVettore type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &DatiAnagraficiVettore{}
// DatiAnagraficiVettore struct for DatiAnagraficiVettore
type DatiAnagraficiVettore struct {
IdFiscaleIva *IdFiscaleIVA `json:"id_fiscale_iva,omitempty"`
CodiceFiscale NullableString `json:"codice_fiscale,omitempty"`
Anagrafica *Anagrafica `json:"anagrafica,omitempty"`
NumeroLicenzaGuida NullableString `json:"numero_licenza_guida,omitempty"`
}
// NewDatiAnagraficiVettore instantiates a new DatiAnagraficiVettore 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 NewDatiAnagraficiVettore() *DatiAnagraficiVettore {
this := DatiAnagraficiVettore{}
return &this
}
// NewDatiAnagraficiVettoreWithDefaults instantiates a new DatiAnagraficiVettore 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 NewDatiAnagraficiVettoreWithDefaults() *DatiAnagraficiVettore {
this := DatiAnagraficiVettore{}
return &this
}
// GetIdFiscaleIva returns the IdFiscaleIva field value if set, zero value otherwise.
func (o *DatiAnagraficiVettore) GetIdFiscaleIva() IdFiscaleIVA {
if o == nil || IsNil(o.IdFiscaleIva) {
var ret IdFiscaleIVA
return ret
}
return *o.IdFiscaleIva
}
// GetIdFiscaleIvaOk returns a tuple with the IdFiscaleIva field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DatiAnagraficiVettore) GetIdFiscaleIvaOk() (*IdFiscaleIVA, bool) {
if o == nil || IsNil(o.IdFiscaleIva) {
return nil, false
}
return o.IdFiscaleIva, true
}
// HasIdFiscaleIva returns a boolean if a field has been set.
func (o *DatiAnagraficiVettore) HasIdFiscaleIva() bool {
if o != nil && !IsNil(o.IdFiscaleIva) {
return true
}
return false
}
// SetIdFiscaleIva gets a reference to the given IdFiscaleIVA and assigns it to the IdFiscaleIva field.
func (o *DatiAnagraficiVettore) SetIdFiscaleIva(v IdFiscaleIVA) {
o.IdFiscaleIva = &v
}
// GetCodiceFiscale returns the CodiceFiscale field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *DatiAnagraficiVettore) GetCodiceFiscale() string {
if o == nil || IsNil(o.CodiceFiscale.Get()) {
var ret string
return ret
}
return *o.CodiceFiscale.Get()
}
// GetCodiceFiscaleOk returns a tuple with the CodiceFiscale field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *DatiAnagraficiVettore) GetCodiceFiscaleOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.CodiceFiscale.Get(), o.CodiceFiscale.IsSet()
}
// HasCodiceFiscale returns a boolean if a field has been set.
func (o *DatiAnagraficiVettore) HasCodiceFiscale() bool {
if o != nil && o.CodiceFiscale.IsSet() {
return true
}
return false
}
// SetCodiceFiscale gets a reference to the given NullableString and assigns it to the CodiceFiscale field.
func (o *DatiAnagraficiVettore) SetCodiceFiscale(v string) {
o.CodiceFiscale.Set(&v)
}
// SetCodiceFiscaleNil sets the value for CodiceFiscale to be an explicit nil
func (o *DatiAnagraficiVettore) SetCodiceFiscaleNil() {
o.CodiceFiscale.Set(nil)
}
// UnsetCodiceFiscale ensures that no value is present for CodiceFiscale, not even an explicit nil
func (o *DatiAnagraficiVettore) UnsetCodiceFiscale() {
o.CodiceFiscale.Unset()
}
// GetAnagrafica returns the Anagrafica field value if set, zero value otherwise.
func (o *DatiAnagraficiVettore) GetAnagrafica() Anagrafica {
if o == nil || IsNil(o.Anagrafica) {
var ret Anagrafica
return ret
}
return *o.Anagrafica
}
// GetAnagraficaOk returns a tuple with the Anagrafica field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DatiAnagraficiVettore) GetAnagraficaOk() (*Anagrafica, bool) {
if o == nil || IsNil(o.Anagrafica) {
return nil, false
}
return o.Anagrafica, true
}
// HasAnagrafica returns a boolean if a field has been set.
func (o *DatiAnagraficiVettore) HasAnagrafica() bool {
if o != nil && !IsNil(o.Anagrafica) {
return true
}
return false
}
// SetAnagrafica gets a reference to the given Anagrafica and assigns it to the Anagrafica field.
func (o *DatiAnagraficiVettore) SetAnagrafica(v Anagrafica) {
o.Anagrafica = &v
}
// GetNumeroLicenzaGuida returns the NumeroLicenzaGuida field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *DatiAnagraficiVettore) GetNumeroLicenzaGuida() string {
if o == nil || IsNil(o.NumeroLicenzaGuida.Get()) {
var ret string
return ret
}
return *o.NumeroLicenzaGuida.Get()
}
// GetNumeroLicenzaGuidaOk returns a tuple with the NumeroLicenzaGuida field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *DatiAnagraficiVettore) GetNumeroLicenzaGuidaOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.NumeroLicenzaGuida.Get(), o.NumeroLicenzaGuida.IsSet()
}
// HasNumeroLicenzaGuida returns a boolean if a field has been set.
func (o *DatiAnagraficiVettore) HasNumeroLicenzaGuida() bool {
if o != nil && o.NumeroLicenzaGuida.IsSet() {
return true
}
return false
}
// SetNumeroLicenzaGuida gets a reference to the given NullableString and assigns it to the NumeroLicenzaGuida field.
func (o *DatiAnagraficiVettore) SetNumeroLicenzaGuida(v string) {
o.NumeroLicenzaGuida.Set(&v)
}
// SetNumeroLicenzaGuidaNil sets the value for NumeroLicenzaGuida to be an explicit nil
func (o *DatiAnagraficiVettore) SetNumeroLicenzaGuidaNil() {
o.NumeroLicenzaGuida.Set(nil)
}
// UnsetNumeroLicenzaGuida ensures that no value is present for NumeroLicenzaGuida, not even an explicit nil
func (o *DatiAnagraficiVettore) UnsetNumeroLicenzaGuida() {
o.NumeroLicenzaGuida.Unset()
}
func (o DatiAnagraficiVettore) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o DatiAnagraficiVettore) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.IdFiscaleIva) {
toSerialize["id_fiscale_iva"] = o.IdFiscaleIva
}
if o.CodiceFiscale.IsSet() {
toSerialize["codice_fiscale"] = o.CodiceFiscale.Get()
}
if !IsNil(o.Anagrafica) {
toSerialize["anagrafica"] = o.Anagrafica
}
if o.NumeroLicenzaGuida.IsSet() {
toSerialize["numero_licenza_guida"] = o.NumeroLicenzaGuida.Get()
}
return toSerialize, nil
}
type NullableDatiAnagraficiVettore struct {
value *DatiAnagraficiVettore
isSet bool
}
func (v NullableDatiAnagraficiVettore) Get() *DatiAnagraficiVettore {
return v.value
}
func (v *NullableDatiAnagraficiVettore) Set(val *DatiAnagraficiVettore) {
v.value = val
v.isSet = true
}
func (v NullableDatiAnagraficiVettore) IsSet() bool {
return v.isSet
}
func (v *NullableDatiAnagraficiVettore) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableDatiAnagraficiVettore(val *DatiAnagraficiVettore) *NullableDatiAnagraficiVettore {
return &NullableDatiAnagraficiVettore{value: val, isSet: true}
}
func (v NullableDatiAnagraficiVettore) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableDatiAnagraficiVettore) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}