-
Notifications
You must be signed in to change notification settings - Fork 88
/
model_asset_report_create_request_options.go
330 lines (280 loc) · 11.3 KB
/
model_asset_report_create_request_options.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
/*
* 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"
)
// AssetReportCreateRequestOptions An optional object to filter `/asset_report/create` results. If provided, must be non-`null`. The optional `user` object is required for the report to be eligible for Fannie Mae's Day 1 Certainty program.
type AssetReportCreateRequestOptions struct {
// Client-generated identifier, which can be used by lenders to track loan applications.
ClientReportId NullableString `json:"client_report_id,omitempty"`
// URL to which Plaid will send Assets webhooks, for example when the requested Asset Report is ready.
Webhook NullableString `json:"webhook,omitempty"`
// true to return balance and identity earlier as a fast report. Defaults to false if omitted.
IncludeFastReport NullableBool `json:"include_fast_report,omitempty"`
// Additional information that can be included in the asset report. Possible values: `\"investments\"`
Products *[]string `json:"products,omitempty"`
// Use this field to request a `fast_asset` report. When Fast Assets is requested, Plaid will create two versions of the Asset Report: first, the Fast Asset Report, which will contain only current identity and balance information, and later, the Full Asset Report, which will also contain historical balance information and transaction data. A `PRODUCT_READY` webhook will be fired for each Asset Report when it is ready, and the `report_type` field will indicate whether the webhook is firing for the `full` or `fast` Asset Report. To retrieve the Fast Asset Report, call `/asset_report/get` with `fast_report` set to `true`. There is no additional charge for using Fast Assets.
AddOns *[]AssetReportAddOns `json:"add_ons,omitempty"`
User *AssetReportUser `json:"user,omitempty"`
}
// NewAssetReportCreateRequestOptions instantiates a new AssetReportCreateRequestOptions 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 NewAssetReportCreateRequestOptions() *AssetReportCreateRequestOptions {
this := AssetReportCreateRequestOptions{}
return &this
}
// NewAssetReportCreateRequestOptionsWithDefaults instantiates a new AssetReportCreateRequestOptions 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 NewAssetReportCreateRequestOptionsWithDefaults() *AssetReportCreateRequestOptions {
this := AssetReportCreateRequestOptions{}
return &this
}
// GetClientReportId returns the ClientReportId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AssetReportCreateRequestOptions) GetClientReportId() string {
if o == nil || o.ClientReportId.Get() == nil {
var ret string
return ret
}
return *o.ClientReportId.Get()
}
// GetClientReportIdOk returns a tuple with the ClientReportId 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 *AssetReportCreateRequestOptions) GetClientReportIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ClientReportId.Get(), o.ClientReportId.IsSet()
}
// HasClientReportId returns a boolean if a field has been set.
func (o *AssetReportCreateRequestOptions) HasClientReportId() bool {
if o != nil && o.ClientReportId.IsSet() {
return true
}
return false
}
// SetClientReportId gets a reference to the given NullableString and assigns it to the ClientReportId field.
func (o *AssetReportCreateRequestOptions) SetClientReportId(v string) {
o.ClientReportId.Set(&v)
}
// SetClientReportIdNil sets the value for ClientReportId to be an explicit nil
func (o *AssetReportCreateRequestOptions) SetClientReportIdNil() {
o.ClientReportId.Set(nil)
}
// UnsetClientReportId ensures that no value is present for ClientReportId, not even an explicit nil
func (o *AssetReportCreateRequestOptions) UnsetClientReportId() {
o.ClientReportId.Unset()
}
// GetWebhook returns the Webhook field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AssetReportCreateRequestOptions) GetWebhook() string {
if o == nil || o.Webhook.Get() == nil {
var ret string
return ret
}
return *o.Webhook.Get()
}
// GetWebhookOk returns a tuple with the Webhook 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 *AssetReportCreateRequestOptions) GetWebhookOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Webhook.Get(), o.Webhook.IsSet()
}
// HasWebhook returns a boolean if a field has been set.
func (o *AssetReportCreateRequestOptions) HasWebhook() bool {
if o != nil && o.Webhook.IsSet() {
return true
}
return false
}
// SetWebhook gets a reference to the given NullableString and assigns it to the Webhook field.
func (o *AssetReportCreateRequestOptions) SetWebhook(v string) {
o.Webhook.Set(&v)
}
// SetWebhookNil sets the value for Webhook to be an explicit nil
func (o *AssetReportCreateRequestOptions) SetWebhookNil() {
o.Webhook.Set(nil)
}
// UnsetWebhook ensures that no value is present for Webhook, not even an explicit nil
func (o *AssetReportCreateRequestOptions) UnsetWebhook() {
o.Webhook.Unset()
}
// GetIncludeFastReport returns the IncludeFastReport field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AssetReportCreateRequestOptions) GetIncludeFastReport() bool {
if o == nil || o.IncludeFastReport.Get() == nil {
var ret bool
return ret
}
return *o.IncludeFastReport.Get()
}
// GetIncludeFastReportOk returns a tuple with the IncludeFastReport 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 *AssetReportCreateRequestOptions) GetIncludeFastReportOk() (*bool, bool) {
if o == nil {
return nil, false
}
return o.IncludeFastReport.Get(), o.IncludeFastReport.IsSet()
}
// HasIncludeFastReport returns a boolean if a field has been set.
func (o *AssetReportCreateRequestOptions) HasIncludeFastReport() bool {
if o != nil && o.IncludeFastReport.IsSet() {
return true
}
return false
}
// SetIncludeFastReport gets a reference to the given NullableBool and assigns it to the IncludeFastReport field.
func (o *AssetReportCreateRequestOptions) SetIncludeFastReport(v bool) {
o.IncludeFastReport.Set(&v)
}
// SetIncludeFastReportNil sets the value for IncludeFastReport to be an explicit nil
func (o *AssetReportCreateRequestOptions) SetIncludeFastReportNil() {
o.IncludeFastReport.Set(nil)
}
// UnsetIncludeFastReport ensures that no value is present for IncludeFastReport, not even an explicit nil
func (o *AssetReportCreateRequestOptions) UnsetIncludeFastReport() {
o.IncludeFastReport.Unset()
}
// GetProducts returns the Products field value if set, zero value otherwise.
func (o *AssetReportCreateRequestOptions) GetProducts() []string {
if o == nil || o.Products == nil {
var ret []string
return ret
}
return *o.Products
}
// GetProductsOk returns a tuple with the Products field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AssetReportCreateRequestOptions) GetProductsOk() (*[]string, bool) {
if o == nil || o.Products == nil {
return nil, false
}
return o.Products, true
}
// HasProducts returns a boolean if a field has been set.
func (o *AssetReportCreateRequestOptions) HasProducts() bool {
if o != nil && o.Products != nil {
return true
}
return false
}
// SetProducts gets a reference to the given []string and assigns it to the Products field.
func (o *AssetReportCreateRequestOptions) SetProducts(v []string) {
o.Products = &v
}
// GetAddOns returns the AddOns field value if set, zero value otherwise.
func (o *AssetReportCreateRequestOptions) GetAddOns() []AssetReportAddOns {
if o == nil || o.AddOns == nil {
var ret []AssetReportAddOns
return ret
}
return *o.AddOns
}
// GetAddOnsOk returns a tuple with the AddOns field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AssetReportCreateRequestOptions) GetAddOnsOk() (*[]AssetReportAddOns, bool) {
if o == nil || o.AddOns == nil {
return nil, false
}
return o.AddOns, true
}
// HasAddOns returns a boolean if a field has been set.
func (o *AssetReportCreateRequestOptions) HasAddOns() bool {
if o != nil && o.AddOns != nil {
return true
}
return false
}
// SetAddOns gets a reference to the given []AssetReportAddOns and assigns it to the AddOns field.
func (o *AssetReportCreateRequestOptions) SetAddOns(v []AssetReportAddOns) {
o.AddOns = &v
}
// GetUser returns the User field value if set, zero value otherwise.
func (o *AssetReportCreateRequestOptions) GetUser() AssetReportUser {
if o == nil || o.User == nil {
var ret AssetReportUser
return ret
}
return *o.User
}
// GetUserOk returns a tuple with the User field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AssetReportCreateRequestOptions) GetUserOk() (*AssetReportUser, bool) {
if o == nil || o.User == nil {
return nil, false
}
return o.User, true
}
// HasUser returns a boolean if a field has been set.
func (o *AssetReportCreateRequestOptions) HasUser() bool {
if o != nil && o.User != nil {
return true
}
return false
}
// SetUser gets a reference to the given AssetReportUser and assigns it to the User field.
func (o *AssetReportCreateRequestOptions) SetUser(v AssetReportUser) {
o.User = &v
}
func (o AssetReportCreateRequestOptions) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.ClientReportId.IsSet() {
toSerialize["client_report_id"] = o.ClientReportId.Get()
}
if o.Webhook.IsSet() {
toSerialize["webhook"] = o.Webhook.Get()
}
if o.IncludeFastReport.IsSet() {
toSerialize["include_fast_report"] = o.IncludeFastReport.Get()
}
if o.Products != nil {
toSerialize["products"] = o.Products
}
if o.AddOns != nil {
toSerialize["add_ons"] = o.AddOns
}
if o.User != nil {
toSerialize["user"] = o.User
}
return json.Marshal(toSerialize)
}
type NullableAssetReportCreateRequestOptions struct {
value *AssetReportCreateRequestOptions
isSet bool
}
func (v NullableAssetReportCreateRequestOptions) Get() *AssetReportCreateRequestOptions {
return v.value
}
func (v *NullableAssetReportCreateRequestOptions) Set(val *AssetReportCreateRequestOptions) {
v.value = val
v.isSet = true
}
func (v NullableAssetReportCreateRequestOptions) IsSet() bool {
return v.isSet
}
func (v *NullableAssetReportCreateRequestOptions) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAssetReportCreateRequestOptions(val *AssetReportCreateRequestOptions) *NullableAssetReportCreateRequestOptions {
return &NullableAssetReportCreateRequestOptions{value: val, isSet: true}
}
func (v NullableAssetReportCreateRequestOptions) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableAssetReportCreateRequestOptions) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}