-
Notifications
You must be signed in to change notification settings - Fork 88
/
model_institutions_get_request_options.go
321 lines (273 loc) · 11.8 KB
/
model_institutions_get_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
/*
* 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"
)
// InstitutionsGetRequestOptions An optional object to filter `/institutions/get` results.
type InstitutionsGetRequestOptions struct {
// Filter the Institutions based on which products they support.
Products []Products `json:"products,omitempty"`
// Specify an array of routing numbers to filter institutions. The response will only return institutions that match all of the routing numbers in the array. Routing number records used for this matching are not comprehensive; failure to match a given routing number to an institution does not mean that the institution is unsupported by Plaid.
RoutingNumbers []string `json:"routing_numbers,omitempty"`
// Limit results to institutions with or without OAuth login flows. Note that institutions will have `oauth` set to `true` if some Items associated with that institution are required to use OAuth flows; institutions in a state of migration to OAuth will have the `oauth` attribute set to `true`.
Oauth NullableBool `json:"oauth,omitempty"`
// When `true`, return the institution's homepage URL, logo and primary brand color. Note that Plaid does not own any of the logos shared by the API, and that by accessing or using these logos, you agree that you are doing so at your own risk and will, if necessary, obtain all required permissions from the appropriate rights holders and adhere to any applicable usage guidelines. Plaid disclaims all express or implied warranties with respect to the logos.
IncludeOptionalMetadata *bool `json:"include_optional_metadata,omitempty"`
// When `true`, returns metadata related to the Auth product indicating which auth methods are supported.
IncludeAuthMetadata *bool `json:"include_auth_metadata,omitempty"`
// When `true`, returns metadata related to the Payment Initiation product indicating which payment configurations are supported.
IncludePaymentInitiationMetadata *bool `json:"include_payment_initiation_metadata,omitempty"`
}
// NewInstitutionsGetRequestOptions instantiates a new InstitutionsGetRequestOptions 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 NewInstitutionsGetRequestOptions() *InstitutionsGetRequestOptions {
this := InstitutionsGetRequestOptions{}
var includeAuthMetadata bool = false
this.IncludeAuthMetadata = &includeAuthMetadata
var includePaymentInitiationMetadata bool = false
this.IncludePaymentInitiationMetadata = &includePaymentInitiationMetadata
return &this
}
// NewInstitutionsGetRequestOptionsWithDefaults instantiates a new InstitutionsGetRequestOptions 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 NewInstitutionsGetRequestOptionsWithDefaults() *InstitutionsGetRequestOptions {
this := InstitutionsGetRequestOptions{}
var includeAuthMetadata bool = false
this.IncludeAuthMetadata = &includeAuthMetadata
var includePaymentInitiationMetadata bool = false
this.IncludePaymentInitiationMetadata = &includePaymentInitiationMetadata
return &this
}
// GetProducts returns the Products field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *InstitutionsGetRequestOptions) GetProducts() []Products {
if o == nil {
var ret []Products
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.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *InstitutionsGetRequestOptions) GetProductsOk() (*[]Products, 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 *InstitutionsGetRequestOptions) HasProducts() bool {
if o != nil && o.Products != nil {
return true
}
return false
}
// SetProducts gets a reference to the given []Products and assigns it to the Products field.
func (o *InstitutionsGetRequestOptions) SetProducts(v []Products) {
o.Products = v
}
// GetRoutingNumbers returns the RoutingNumbers field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *InstitutionsGetRequestOptions) GetRoutingNumbers() []string {
if o == nil {
var ret []string
return ret
}
return o.RoutingNumbers
}
// GetRoutingNumbersOk returns a tuple with the RoutingNumbers 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 *InstitutionsGetRequestOptions) GetRoutingNumbersOk() (*[]string, bool) {
if o == nil || o.RoutingNumbers == nil {
return nil, false
}
return &o.RoutingNumbers, true
}
// HasRoutingNumbers returns a boolean if a field has been set.
func (o *InstitutionsGetRequestOptions) HasRoutingNumbers() bool {
if o != nil && o.RoutingNumbers != nil {
return true
}
return false
}
// SetRoutingNumbers gets a reference to the given []string and assigns it to the RoutingNumbers field.
func (o *InstitutionsGetRequestOptions) SetRoutingNumbers(v []string) {
o.RoutingNumbers = v
}
// GetOauth returns the Oauth field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *InstitutionsGetRequestOptions) GetOauth() bool {
if o == nil || o.Oauth.Get() == nil {
var ret bool
return ret
}
return *o.Oauth.Get()
}
// GetOauthOk returns a tuple with the Oauth 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 *InstitutionsGetRequestOptions) GetOauthOk() (*bool, bool) {
if o == nil {
return nil, false
}
return o.Oauth.Get(), o.Oauth.IsSet()
}
// HasOauth returns a boolean if a field has been set.
func (o *InstitutionsGetRequestOptions) HasOauth() bool {
if o != nil && o.Oauth.IsSet() {
return true
}
return false
}
// SetOauth gets a reference to the given NullableBool and assigns it to the Oauth field.
func (o *InstitutionsGetRequestOptions) SetOauth(v bool) {
o.Oauth.Set(&v)
}
// SetOauthNil sets the value for Oauth to be an explicit nil
func (o *InstitutionsGetRequestOptions) SetOauthNil() {
o.Oauth.Set(nil)
}
// UnsetOauth ensures that no value is present for Oauth, not even an explicit nil
func (o *InstitutionsGetRequestOptions) UnsetOauth() {
o.Oauth.Unset()
}
// GetIncludeOptionalMetadata returns the IncludeOptionalMetadata field value if set, zero value otherwise.
func (o *InstitutionsGetRequestOptions) GetIncludeOptionalMetadata() bool {
if o == nil || o.IncludeOptionalMetadata == nil {
var ret bool
return ret
}
return *o.IncludeOptionalMetadata
}
// GetIncludeOptionalMetadataOk returns a tuple with the IncludeOptionalMetadata field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstitutionsGetRequestOptions) GetIncludeOptionalMetadataOk() (*bool, bool) {
if o == nil || o.IncludeOptionalMetadata == nil {
return nil, false
}
return o.IncludeOptionalMetadata, true
}
// HasIncludeOptionalMetadata returns a boolean if a field has been set.
func (o *InstitutionsGetRequestOptions) HasIncludeOptionalMetadata() bool {
if o != nil && o.IncludeOptionalMetadata != nil {
return true
}
return false
}
// SetIncludeOptionalMetadata gets a reference to the given bool and assigns it to the IncludeOptionalMetadata field.
func (o *InstitutionsGetRequestOptions) SetIncludeOptionalMetadata(v bool) {
o.IncludeOptionalMetadata = &v
}
// GetIncludeAuthMetadata returns the IncludeAuthMetadata field value if set, zero value otherwise.
func (o *InstitutionsGetRequestOptions) GetIncludeAuthMetadata() bool {
if o == nil || o.IncludeAuthMetadata == nil {
var ret bool
return ret
}
return *o.IncludeAuthMetadata
}
// GetIncludeAuthMetadataOk returns a tuple with the IncludeAuthMetadata field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstitutionsGetRequestOptions) GetIncludeAuthMetadataOk() (*bool, bool) {
if o == nil || o.IncludeAuthMetadata == nil {
return nil, false
}
return o.IncludeAuthMetadata, true
}
// HasIncludeAuthMetadata returns a boolean if a field has been set.
func (o *InstitutionsGetRequestOptions) HasIncludeAuthMetadata() bool {
if o != nil && o.IncludeAuthMetadata != nil {
return true
}
return false
}
// SetIncludeAuthMetadata gets a reference to the given bool and assigns it to the IncludeAuthMetadata field.
func (o *InstitutionsGetRequestOptions) SetIncludeAuthMetadata(v bool) {
o.IncludeAuthMetadata = &v
}
// GetIncludePaymentInitiationMetadata returns the IncludePaymentInitiationMetadata field value if set, zero value otherwise.
func (o *InstitutionsGetRequestOptions) GetIncludePaymentInitiationMetadata() bool {
if o == nil || o.IncludePaymentInitiationMetadata == nil {
var ret bool
return ret
}
return *o.IncludePaymentInitiationMetadata
}
// GetIncludePaymentInitiationMetadataOk returns a tuple with the IncludePaymentInitiationMetadata field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstitutionsGetRequestOptions) GetIncludePaymentInitiationMetadataOk() (*bool, bool) {
if o == nil || o.IncludePaymentInitiationMetadata == nil {
return nil, false
}
return o.IncludePaymentInitiationMetadata, true
}
// HasIncludePaymentInitiationMetadata returns a boolean if a field has been set.
func (o *InstitutionsGetRequestOptions) HasIncludePaymentInitiationMetadata() bool {
if o != nil && o.IncludePaymentInitiationMetadata != nil {
return true
}
return false
}
// SetIncludePaymentInitiationMetadata gets a reference to the given bool and assigns it to the IncludePaymentInitiationMetadata field.
func (o *InstitutionsGetRequestOptions) SetIncludePaymentInitiationMetadata(v bool) {
o.IncludePaymentInitiationMetadata = &v
}
func (o InstitutionsGetRequestOptions) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Products != nil {
toSerialize["products"] = o.Products
}
if o.RoutingNumbers != nil {
toSerialize["routing_numbers"] = o.RoutingNumbers
}
if o.Oauth.IsSet() {
toSerialize["oauth"] = o.Oauth.Get()
}
if o.IncludeOptionalMetadata != nil {
toSerialize["include_optional_metadata"] = o.IncludeOptionalMetadata
}
if o.IncludeAuthMetadata != nil {
toSerialize["include_auth_metadata"] = o.IncludeAuthMetadata
}
if o.IncludePaymentInitiationMetadata != nil {
toSerialize["include_payment_initiation_metadata"] = o.IncludePaymentInitiationMetadata
}
return json.Marshal(toSerialize)
}
type NullableInstitutionsGetRequestOptions struct {
value *InstitutionsGetRequestOptions
isSet bool
}
func (v NullableInstitutionsGetRequestOptions) Get() *InstitutionsGetRequestOptions {
return v.value
}
func (v *NullableInstitutionsGetRequestOptions) Set(val *InstitutionsGetRequestOptions) {
v.value = val
v.isSet = true
}
func (v NullableInstitutionsGetRequestOptions) IsSet() bool {
return v.isSet
}
func (v *NullableInstitutionsGetRequestOptions) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableInstitutionsGetRequestOptions(val *InstitutionsGetRequestOptions) *NullableInstitutionsGetRequestOptions {
return &NullableInstitutionsGetRequestOptions{value: val, isSet: true}
}
func (v NullableInstitutionsGetRequestOptions) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableInstitutionsGetRequestOptions) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}