-
Notifications
You must be signed in to change notification settings - Fork 88
/
model_asset_detail.go
420 lines (355 loc) · 12.9 KB
/
model_asset_detail.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
/*
* The Plaid API
*
* The Plaid REST API. Please see https://plaid.com/docs/api for more details.
*
* API version: 2020-09-14_1.508.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package plaid
import (
"encoding/json"
)
// AssetDetail Details about an asset.
type AssetDetail struct {
// A vendor created unique Identifier.
AssetUniqueIdentifier string `json:"AssetUniqueIdentifier"`
// A unique alphanumeric string identifying an asset.
AssetAccountIdentifier string `json:"AssetAccountIdentifier"`
// Account Report As of Date / Create Date. Format YYYY-MM-DD
AssetAsOfDate string `json:"AssetAsOfDate"`
// A text description that further defines the Asset. This could be used to describe the shares associated with the stocks, bonds or mutual funds, retirement funds or business owned that the borrower has disclosed (named) as an asset.
AssetDescription NullableString `json:"AssetDescription"`
// Asset Account Available Balance.
AssetAvailableBalanceAmount float64 `json:"AssetAvailableBalanceAmount"`
// A vendor created unique Identifier
AssetCurrentBalanceAmount float64 `json:"AssetCurrentBalanceAmount"`
AssetType AssetType `json:"AssetType"`
// Additional Asset Decription some examples are Investment Tax-Deferred , Loan, 401K, 403B, Checking, Money Market, Credit Card,ROTH,529,Biller,ROLLOVER,CD,Savings,Investment Taxable, IRA, Mortgage, Line Of Credit.
AssetTypeAdditionalDescription NullableString `json:"AssetTypeAdditionalDescription"`
// The Number of days requested made to the Financial Institution. Example When looking for 3 months of data from the FI, pass in 90 days.
AssetDaysRequestedCount int32 `json:"AssetDaysRequestedCount"`
// Ownership type of the asset account.
AssetOwnershipType NullableString `json:"AssetOwnershipType"`
AdditionalProperties map[string]interface{}
}
type _AssetDetail AssetDetail
// NewAssetDetail instantiates a new AssetDetail 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 NewAssetDetail(assetUniqueIdentifier string, assetAccountIdentifier string, assetAsOfDate string, assetDescription NullableString, assetAvailableBalanceAmount float64, assetCurrentBalanceAmount float64, assetType AssetType, assetTypeAdditionalDescription NullableString, assetDaysRequestedCount int32, assetOwnershipType NullableString) *AssetDetail {
this := AssetDetail{}
this.AssetUniqueIdentifier = assetUniqueIdentifier
this.AssetAccountIdentifier = assetAccountIdentifier
this.AssetAsOfDate = assetAsOfDate
this.AssetDescription = assetDescription
this.AssetAvailableBalanceAmount = assetAvailableBalanceAmount
this.AssetCurrentBalanceAmount = assetCurrentBalanceAmount
this.AssetType = assetType
this.AssetTypeAdditionalDescription = assetTypeAdditionalDescription
this.AssetDaysRequestedCount = assetDaysRequestedCount
this.AssetOwnershipType = assetOwnershipType
return &this
}
// NewAssetDetailWithDefaults instantiates a new AssetDetail 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 NewAssetDetailWithDefaults() *AssetDetail {
this := AssetDetail{}
return &this
}
// GetAssetUniqueIdentifier returns the AssetUniqueIdentifier field value
func (o *AssetDetail) GetAssetUniqueIdentifier() string {
if o == nil {
var ret string
return ret
}
return o.AssetUniqueIdentifier
}
// GetAssetUniqueIdentifierOk returns a tuple with the AssetUniqueIdentifier field value
// and a boolean to check if the value has been set.
func (o *AssetDetail) GetAssetUniqueIdentifierOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.AssetUniqueIdentifier, true
}
// SetAssetUniqueIdentifier sets field value
func (o *AssetDetail) SetAssetUniqueIdentifier(v string) {
o.AssetUniqueIdentifier = v
}
// GetAssetAccountIdentifier returns the AssetAccountIdentifier field value
func (o *AssetDetail) GetAssetAccountIdentifier() string {
if o == nil {
var ret string
return ret
}
return o.AssetAccountIdentifier
}
// GetAssetAccountIdentifierOk returns a tuple with the AssetAccountIdentifier field value
// and a boolean to check if the value has been set.
func (o *AssetDetail) GetAssetAccountIdentifierOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.AssetAccountIdentifier, true
}
// SetAssetAccountIdentifier sets field value
func (o *AssetDetail) SetAssetAccountIdentifier(v string) {
o.AssetAccountIdentifier = v
}
// GetAssetAsOfDate returns the AssetAsOfDate field value
func (o *AssetDetail) GetAssetAsOfDate() string {
if o == nil {
var ret string
return ret
}
return o.AssetAsOfDate
}
// GetAssetAsOfDateOk returns a tuple with the AssetAsOfDate field value
// and a boolean to check if the value has been set.
func (o *AssetDetail) GetAssetAsOfDateOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.AssetAsOfDate, true
}
// SetAssetAsOfDate sets field value
func (o *AssetDetail) SetAssetAsOfDate(v string) {
o.AssetAsOfDate = v
}
// GetAssetDescription returns the AssetDescription field value
// If the value is explicit nil, the zero value for string will be returned
func (o *AssetDetail) GetAssetDescription() string {
if o == nil || o.AssetDescription.Get() == nil {
var ret string
return ret
}
return *o.AssetDescription.Get()
}
// GetAssetDescriptionOk returns a tuple with the AssetDescription field value
// 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 *AssetDetail) GetAssetDescriptionOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.AssetDescription.Get(), o.AssetDescription.IsSet()
}
// SetAssetDescription sets field value
func (o *AssetDetail) SetAssetDescription(v string) {
o.AssetDescription.Set(&v)
}
// GetAssetAvailableBalanceAmount returns the AssetAvailableBalanceAmount field value
func (o *AssetDetail) GetAssetAvailableBalanceAmount() float64 {
if o == nil {
var ret float64
return ret
}
return o.AssetAvailableBalanceAmount
}
// GetAssetAvailableBalanceAmountOk returns a tuple with the AssetAvailableBalanceAmount field value
// and a boolean to check if the value has been set.
func (o *AssetDetail) GetAssetAvailableBalanceAmountOk() (*float64, bool) {
if o == nil {
return nil, false
}
return &o.AssetAvailableBalanceAmount, true
}
// SetAssetAvailableBalanceAmount sets field value
func (o *AssetDetail) SetAssetAvailableBalanceAmount(v float64) {
o.AssetAvailableBalanceAmount = v
}
// GetAssetCurrentBalanceAmount returns the AssetCurrentBalanceAmount field value
func (o *AssetDetail) GetAssetCurrentBalanceAmount() float64 {
if o == nil {
var ret float64
return ret
}
return o.AssetCurrentBalanceAmount
}
// GetAssetCurrentBalanceAmountOk returns a tuple with the AssetCurrentBalanceAmount field value
// and a boolean to check if the value has been set.
func (o *AssetDetail) GetAssetCurrentBalanceAmountOk() (*float64, bool) {
if o == nil {
return nil, false
}
return &o.AssetCurrentBalanceAmount, true
}
// SetAssetCurrentBalanceAmount sets field value
func (o *AssetDetail) SetAssetCurrentBalanceAmount(v float64) {
o.AssetCurrentBalanceAmount = v
}
// GetAssetType returns the AssetType field value
func (o *AssetDetail) GetAssetType() AssetType {
if o == nil {
var ret AssetType
return ret
}
return o.AssetType
}
// GetAssetTypeOk returns a tuple with the AssetType field value
// and a boolean to check if the value has been set.
func (o *AssetDetail) GetAssetTypeOk() (*AssetType, bool) {
if o == nil {
return nil, false
}
return &o.AssetType, true
}
// SetAssetType sets field value
func (o *AssetDetail) SetAssetType(v AssetType) {
o.AssetType = v
}
// GetAssetTypeAdditionalDescription returns the AssetTypeAdditionalDescription field value
// If the value is explicit nil, the zero value for string will be returned
func (o *AssetDetail) GetAssetTypeAdditionalDescription() string {
if o == nil || o.AssetTypeAdditionalDescription.Get() == nil {
var ret string
return ret
}
return *o.AssetTypeAdditionalDescription.Get()
}
// GetAssetTypeAdditionalDescriptionOk returns a tuple with the AssetTypeAdditionalDescription field value
// 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 *AssetDetail) GetAssetTypeAdditionalDescriptionOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.AssetTypeAdditionalDescription.Get(), o.AssetTypeAdditionalDescription.IsSet()
}
// SetAssetTypeAdditionalDescription sets field value
func (o *AssetDetail) SetAssetTypeAdditionalDescription(v string) {
o.AssetTypeAdditionalDescription.Set(&v)
}
// GetAssetDaysRequestedCount returns the AssetDaysRequestedCount field value
func (o *AssetDetail) GetAssetDaysRequestedCount() int32 {
if o == nil {
var ret int32
return ret
}
return o.AssetDaysRequestedCount
}
// GetAssetDaysRequestedCountOk returns a tuple with the AssetDaysRequestedCount field value
// and a boolean to check if the value has been set.
func (o *AssetDetail) GetAssetDaysRequestedCountOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.AssetDaysRequestedCount, true
}
// SetAssetDaysRequestedCount sets field value
func (o *AssetDetail) SetAssetDaysRequestedCount(v int32) {
o.AssetDaysRequestedCount = v
}
// GetAssetOwnershipType returns the AssetOwnershipType field value
// If the value is explicit nil, the zero value for string will be returned
func (o *AssetDetail) GetAssetOwnershipType() string {
if o == nil || o.AssetOwnershipType.Get() == nil {
var ret string
return ret
}
return *o.AssetOwnershipType.Get()
}
// GetAssetOwnershipTypeOk returns a tuple with the AssetOwnershipType field value
// 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 *AssetDetail) GetAssetOwnershipTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.AssetOwnershipType.Get(), o.AssetOwnershipType.IsSet()
}
// SetAssetOwnershipType sets field value
func (o *AssetDetail) SetAssetOwnershipType(v string) {
o.AssetOwnershipType.Set(&v)
}
func (o AssetDetail) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if true {
toSerialize["AssetUniqueIdentifier"] = o.AssetUniqueIdentifier
}
if true {
toSerialize["AssetAccountIdentifier"] = o.AssetAccountIdentifier
}
if true {
toSerialize["AssetAsOfDate"] = o.AssetAsOfDate
}
if true {
toSerialize["AssetDescription"] = o.AssetDescription.Get()
}
if true {
toSerialize["AssetAvailableBalanceAmount"] = o.AssetAvailableBalanceAmount
}
if true {
toSerialize["AssetCurrentBalanceAmount"] = o.AssetCurrentBalanceAmount
}
if true {
toSerialize["AssetType"] = o.AssetType
}
if true {
toSerialize["AssetTypeAdditionalDescription"] = o.AssetTypeAdditionalDescription.Get()
}
if true {
toSerialize["AssetDaysRequestedCount"] = o.AssetDaysRequestedCount
}
if true {
toSerialize["AssetOwnershipType"] = o.AssetOwnershipType.Get()
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return json.Marshal(toSerialize)
}
func (o *AssetDetail) UnmarshalJSON(bytes []byte) (err error) {
varAssetDetail := _AssetDetail{}
if err = json.Unmarshal(bytes, &varAssetDetail); err == nil {
*o = AssetDetail(varAssetDetail)
} else {
return err
}
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
delete(additionalProperties, "AssetUniqueIdentifier")
delete(additionalProperties, "AssetAccountIdentifier")
delete(additionalProperties, "AssetAsOfDate")
delete(additionalProperties, "AssetDescription")
delete(additionalProperties, "AssetAvailableBalanceAmount")
delete(additionalProperties, "AssetCurrentBalanceAmount")
delete(additionalProperties, "AssetType")
delete(additionalProperties, "AssetTypeAdditionalDescription")
delete(additionalProperties, "AssetDaysRequestedCount")
delete(additionalProperties, "AssetOwnershipType")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableAssetDetail struct {
value *AssetDetail
isSet bool
}
func (v NullableAssetDetail) Get() *AssetDetail {
return v.value
}
func (v *NullableAssetDetail) Set(val *AssetDetail) {
v.value = val
v.isSet = true
}
func (v NullableAssetDetail) IsSet() bool {
return v.isSet
}
func (v *NullableAssetDetail) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAssetDetail(val *AssetDetail) *NullableAssetDetail {
return &NullableAssetDetail{value: val, isSet: true}
}
func (v NullableAssetDetail) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableAssetDetail) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}