forked from plaid/plaid-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodel_asset_report_create_request_options.go
More file actions
209 lines (175 loc) · 6.72 KB
/
Copy pathmodel_asset_report_create_request_options.go
File metadata and controls
209 lines (175 loc) · 6.72 KB
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
/*
* The Plaid API
*
* The Plaid REST API. Please see https://plaid.com/docs/api for more details.
*
* API version: 2020-09-14_1.36.1
*/
// 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"`
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()
}
// 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.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)
}