-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_communicationreference_request.go
424 lines (358 loc) · 14.2 KB
/
model_communicationreference_request.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
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
/*
eZmax API Definition (Full)
This API expose all the functionnalities for the eZmax and eZsign applications.
API version: 1.2.0
Contact: support-api@ezmax.ca
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package eZmaxApi
import (
"encoding/json"
)
// checks if the CommunicationreferenceRequest type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &CommunicationreferenceRequest{}
// CommunicationreferenceRequest A Communicationreference Object
type CommunicationreferenceRequest struct {
// The unique ID of the Communicationreference
PkiCommunicationreferenceID *int32 `json:"pkiCommunicationreferenceID,omitempty"`
// The unique ID of the Buyercontract
FkiBuyercontractID *int32 `json:"fkiBuyercontractID,omitempty"`
// The unique ID of the Ezsignfolder
FkiEzsignfolderID *int32 `json:"fkiEzsignfolderID,omitempty"`
// The unique ID of the Inscription.
FkiInscriptionID *int32 `json:"fkiInscriptionID,omitempty"`
// The unique ID of the Inscriptiontemp
FkiInscriptiontempID *int32 `json:"fkiInscriptiontempID,omitempty"`
// The unique ID of the Invoice.
FkiInvoiceID *int32 `json:"fkiInvoiceID,omitempty"`
// The unique ID of the Otherincome
FkiOtherincomeID *int32 `json:"fkiOtherincomeID,omitempty"`
// The unique ID of the Electronicfundstransfer
FkiElectronicfundstransferID *int32 `json:"fkiElectronicfundstransferID,omitempty"`
// The unique ID of the Rejectedoffertopurchase
FkiRejectedoffertopurchaseID *int32 `json:"fkiRejectedoffertopurchaseID,omitempty"`
}
// NewCommunicationreferenceRequest instantiates a new CommunicationreferenceRequest 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 NewCommunicationreferenceRequest() *CommunicationreferenceRequest {
this := CommunicationreferenceRequest{}
return &this
}
// NewCommunicationreferenceRequestWithDefaults instantiates a new CommunicationreferenceRequest 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 NewCommunicationreferenceRequestWithDefaults() *CommunicationreferenceRequest {
this := CommunicationreferenceRequest{}
return &this
}
// GetPkiCommunicationreferenceID returns the PkiCommunicationreferenceID field value if set, zero value otherwise.
func (o *CommunicationreferenceRequest) GetPkiCommunicationreferenceID() int32 {
if o == nil || IsNil(o.PkiCommunicationreferenceID) {
var ret int32
return ret
}
return *o.PkiCommunicationreferenceID
}
// GetPkiCommunicationreferenceIDOk returns a tuple with the PkiCommunicationreferenceID field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CommunicationreferenceRequest) GetPkiCommunicationreferenceIDOk() (*int32, bool) {
if o == nil || IsNil(o.PkiCommunicationreferenceID) {
return nil, false
}
return o.PkiCommunicationreferenceID, true
}
// HasPkiCommunicationreferenceID returns a boolean if a field has been set.
func (o *CommunicationreferenceRequest) HasPkiCommunicationreferenceID() bool {
if o != nil && !IsNil(o.PkiCommunicationreferenceID) {
return true
}
return false
}
// SetPkiCommunicationreferenceID gets a reference to the given int32 and assigns it to the PkiCommunicationreferenceID field.
func (o *CommunicationreferenceRequest) SetPkiCommunicationreferenceID(v int32) {
o.PkiCommunicationreferenceID = &v
}
// GetFkiBuyercontractID returns the FkiBuyercontractID field value if set, zero value otherwise.
func (o *CommunicationreferenceRequest) GetFkiBuyercontractID() int32 {
if o == nil || IsNil(o.FkiBuyercontractID) {
var ret int32
return ret
}
return *o.FkiBuyercontractID
}
// GetFkiBuyercontractIDOk returns a tuple with the FkiBuyercontractID field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CommunicationreferenceRequest) GetFkiBuyercontractIDOk() (*int32, bool) {
if o == nil || IsNil(o.FkiBuyercontractID) {
return nil, false
}
return o.FkiBuyercontractID, true
}
// HasFkiBuyercontractID returns a boolean if a field has been set.
func (o *CommunicationreferenceRequest) HasFkiBuyercontractID() bool {
if o != nil && !IsNil(o.FkiBuyercontractID) {
return true
}
return false
}
// SetFkiBuyercontractID gets a reference to the given int32 and assigns it to the FkiBuyercontractID field.
func (o *CommunicationreferenceRequest) SetFkiBuyercontractID(v int32) {
o.FkiBuyercontractID = &v
}
// GetFkiEzsignfolderID returns the FkiEzsignfolderID field value if set, zero value otherwise.
func (o *CommunicationreferenceRequest) GetFkiEzsignfolderID() int32 {
if o == nil || IsNil(o.FkiEzsignfolderID) {
var ret int32
return ret
}
return *o.FkiEzsignfolderID
}
// GetFkiEzsignfolderIDOk returns a tuple with the FkiEzsignfolderID field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CommunicationreferenceRequest) GetFkiEzsignfolderIDOk() (*int32, bool) {
if o == nil || IsNil(o.FkiEzsignfolderID) {
return nil, false
}
return o.FkiEzsignfolderID, true
}
// HasFkiEzsignfolderID returns a boolean if a field has been set.
func (o *CommunicationreferenceRequest) HasFkiEzsignfolderID() bool {
if o != nil && !IsNil(o.FkiEzsignfolderID) {
return true
}
return false
}
// SetFkiEzsignfolderID gets a reference to the given int32 and assigns it to the FkiEzsignfolderID field.
func (o *CommunicationreferenceRequest) SetFkiEzsignfolderID(v int32) {
o.FkiEzsignfolderID = &v
}
// GetFkiInscriptionID returns the FkiInscriptionID field value if set, zero value otherwise.
func (o *CommunicationreferenceRequest) GetFkiInscriptionID() int32 {
if o == nil || IsNil(o.FkiInscriptionID) {
var ret int32
return ret
}
return *o.FkiInscriptionID
}
// GetFkiInscriptionIDOk returns a tuple with the FkiInscriptionID field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CommunicationreferenceRequest) GetFkiInscriptionIDOk() (*int32, bool) {
if o == nil || IsNil(o.FkiInscriptionID) {
return nil, false
}
return o.FkiInscriptionID, true
}
// HasFkiInscriptionID returns a boolean if a field has been set.
func (o *CommunicationreferenceRequest) HasFkiInscriptionID() bool {
if o != nil && !IsNil(o.FkiInscriptionID) {
return true
}
return false
}
// SetFkiInscriptionID gets a reference to the given int32 and assigns it to the FkiInscriptionID field.
func (o *CommunicationreferenceRequest) SetFkiInscriptionID(v int32) {
o.FkiInscriptionID = &v
}
// GetFkiInscriptiontempID returns the FkiInscriptiontempID field value if set, zero value otherwise.
func (o *CommunicationreferenceRequest) GetFkiInscriptiontempID() int32 {
if o == nil || IsNil(o.FkiInscriptiontempID) {
var ret int32
return ret
}
return *o.FkiInscriptiontempID
}
// GetFkiInscriptiontempIDOk returns a tuple with the FkiInscriptiontempID field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CommunicationreferenceRequest) GetFkiInscriptiontempIDOk() (*int32, bool) {
if o == nil || IsNil(o.FkiInscriptiontempID) {
return nil, false
}
return o.FkiInscriptiontempID, true
}
// HasFkiInscriptiontempID returns a boolean if a field has been set.
func (o *CommunicationreferenceRequest) HasFkiInscriptiontempID() bool {
if o != nil && !IsNil(o.FkiInscriptiontempID) {
return true
}
return false
}
// SetFkiInscriptiontempID gets a reference to the given int32 and assigns it to the FkiInscriptiontempID field.
func (o *CommunicationreferenceRequest) SetFkiInscriptiontempID(v int32) {
o.FkiInscriptiontempID = &v
}
// GetFkiInvoiceID returns the FkiInvoiceID field value if set, zero value otherwise.
func (o *CommunicationreferenceRequest) GetFkiInvoiceID() int32 {
if o == nil || IsNil(o.FkiInvoiceID) {
var ret int32
return ret
}
return *o.FkiInvoiceID
}
// GetFkiInvoiceIDOk returns a tuple with the FkiInvoiceID field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CommunicationreferenceRequest) GetFkiInvoiceIDOk() (*int32, bool) {
if o == nil || IsNil(o.FkiInvoiceID) {
return nil, false
}
return o.FkiInvoiceID, true
}
// HasFkiInvoiceID returns a boolean if a field has been set.
func (o *CommunicationreferenceRequest) HasFkiInvoiceID() bool {
if o != nil && !IsNil(o.FkiInvoiceID) {
return true
}
return false
}
// SetFkiInvoiceID gets a reference to the given int32 and assigns it to the FkiInvoiceID field.
func (o *CommunicationreferenceRequest) SetFkiInvoiceID(v int32) {
o.FkiInvoiceID = &v
}
// GetFkiOtherincomeID returns the FkiOtherincomeID field value if set, zero value otherwise.
func (o *CommunicationreferenceRequest) GetFkiOtherincomeID() int32 {
if o == nil || IsNil(o.FkiOtherincomeID) {
var ret int32
return ret
}
return *o.FkiOtherincomeID
}
// GetFkiOtherincomeIDOk returns a tuple with the FkiOtherincomeID field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CommunicationreferenceRequest) GetFkiOtherincomeIDOk() (*int32, bool) {
if o == nil || IsNil(o.FkiOtherincomeID) {
return nil, false
}
return o.FkiOtherincomeID, true
}
// HasFkiOtherincomeID returns a boolean if a field has been set.
func (o *CommunicationreferenceRequest) HasFkiOtherincomeID() bool {
if o != nil && !IsNil(o.FkiOtherincomeID) {
return true
}
return false
}
// SetFkiOtherincomeID gets a reference to the given int32 and assigns it to the FkiOtherincomeID field.
func (o *CommunicationreferenceRequest) SetFkiOtherincomeID(v int32) {
o.FkiOtherincomeID = &v
}
// GetFkiElectronicfundstransferID returns the FkiElectronicfundstransferID field value if set, zero value otherwise.
func (o *CommunicationreferenceRequest) GetFkiElectronicfundstransferID() int32 {
if o == nil || IsNil(o.FkiElectronicfundstransferID) {
var ret int32
return ret
}
return *o.FkiElectronicfundstransferID
}
// GetFkiElectronicfundstransferIDOk returns a tuple with the FkiElectronicfundstransferID field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CommunicationreferenceRequest) GetFkiElectronicfundstransferIDOk() (*int32, bool) {
if o == nil || IsNil(o.FkiElectronicfundstransferID) {
return nil, false
}
return o.FkiElectronicfundstransferID, true
}
// HasFkiElectronicfundstransferID returns a boolean if a field has been set.
func (o *CommunicationreferenceRequest) HasFkiElectronicfundstransferID() bool {
if o != nil && !IsNil(o.FkiElectronicfundstransferID) {
return true
}
return false
}
// SetFkiElectronicfundstransferID gets a reference to the given int32 and assigns it to the FkiElectronicfundstransferID field.
func (o *CommunicationreferenceRequest) SetFkiElectronicfundstransferID(v int32) {
o.FkiElectronicfundstransferID = &v
}
// GetFkiRejectedoffertopurchaseID returns the FkiRejectedoffertopurchaseID field value if set, zero value otherwise.
func (o *CommunicationreferenceRequest) GetFkiRejectedoffertopurchaseID() int32 {
if o == nil || IsNil(o.FkiRejectedoffertopurchaseID) {
var ret int32
return ret
}
return *o.FkiRejectedoffertopurchaseID
}
// GetFkiRejectedoffertopurchaseIDOk returns a tuple with the FkiRejectedoffertopurchaseID field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CommunicationreferenceRequest) GetFkiRejectedoffertopurchaseIDOk() (*int32, bool) {
if o == nil || IsNil(o.FkiRejectedoffertopurchaseID) {
return nil, false
}
return o.FkiRejectedoffertopurchaseID, true
}
// HasFkiRejectedoffertopurchaseID returns a boolean if a field has been set.
func (o *CommunicationreferenceRequest) HasFkiRejectedoffertopurchaseID() bool {
if o != nil && !IsNil(o.FkiRejectedoffertopurchaseID) {
return true
}
return false
}
// SetFkiRejectedoffertopurchaseID gets a reference to the given int32 and assigns it to the FkiRejectedoffertopurchaseID field.
func (o *CommunicationreferenceRequest) SetFkiRejectedoffertopurchaseID(v int32) {
o.FkiRejectedoffertopurchaseID = &v
}
func (o CommunicationreferenceRequest) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o CommunicationreferenceRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.PkiCommunicationreferenceID) {
toSerialize["pkiCommunicationreferenceID"] = o.PkiCommunicationreferenceID
}
if !IsNil(o.FkiBuyercontractID) {
toSerialize["fkiBuyercontractID"] = o.FkiBuyercontractID
}
if !IsNil(o.FkiEzsignfolderID) {
toSerialize["fkiEzsignfolderID"] = o.FkiEzsignfolderID
}
if !IsNil(o.FkiInscriptionID) {
toSerialize["fkiInscriptionID"] = o.FkiInscriptionID
}
if !IsNil(o.FkiInscriptiontempID) {
toSerialize["fkiInscriptiontempID"] = o.FkiInscriptiontempID
}
if !IsNil(o.FkiInvoiceID) {
toSerialize["fkiInvoiceID"] = o.FkiInvoiceID
}
if !IsNil(o.FkiOtherincomeID) {
toSerialize["fkiOtherincomeID"] = o.FkiOtherincomeID
}
if !IsNil(o.FkiElectronicfundstransferID) {
toSerialize["fkiElectronicfundstransferID"] = o.FkiElectronicfundstransferID
}
if !IsNil(o.FkiRejectedoffertopurchaseID) {
toSerialize["fkiRejectedoffertopurchaseID"] = o.FkiRejectedoffertopurchaseID
}
return toSerialize, nil
}
type NullableCommunicationreferenceRequest struct {
value *CommunicationreferenceRequest
isSet bool
}
func (v NullableCommunicationreferenceRequest) Get() *CommunicationreferenceRequest {
return v.value
}
func (v *NullableCommunicationreferenceRequest) Set(val *CommunicationreferenceRequest) {
v.value = val
v.isSet = true
}
func (v NullableCommunicationreferenceRequest) IsSet() bool {
return v.isSet
}
func (v *NullableCommunicationreferenceRequest) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableCommunicationreferenceRequest(val *CommunicationreferenceRequest) *NullableCommunicationreferenceRequest {
return &NullableCommunicationreferenceRequest{value: val, isSet: true}
}
func (v NullableCommunicationreferenceRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableCommunicationreferenceRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}