/
model_institutions_get_by_id_request_options.go
243 lines (206 loc) · 9.27 KB
/
model_institutions_get_by_id_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
/*
* The Plaid API
*
* The Plaid REST API. Please see https://plaid.com/docs/api for more details.
*
* API version: 2020-09-14_1.61.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package plaid
import (
"encoding/json"
)
// InstitutionsGetByIdRequestOptions Specifies optional parameters for `/institutions/get_by_id`. If provided, must not be `null`.
type InstitutionsGetByIdRequestOptions struct {
// When `true`, return an institution's logo, brand color, and URL. When available, the bank's logo is returned as a base64 encoded 152x152 PNG, the brand color is in hexadecimal format. The default value is `false`. 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"`
// If `true`, the response will include status information about the institution. Default value is `false`.
IncludeStatus *bool `json:"include_status,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"`
}
// NewInstitutionsGetByIdRequestOptions instantiates a new InstitutionsGetByIdRequestOptions 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 NewInstitutionsGetByIdRequestOptions() *InstitutionsGetByIdRequestOptions {
this := InstitutionsGetByIdRequestOptions{}
var includeOptionalMetadata bool = false
this.IncludeOptionalMetadata = &includeOptionalMetadata
var includeStatus bool = false
this.IncludeStatus = &includeStatus
var includeAuthMetadata bool = false
this.IncludeAuthMetadata = &includeAuthMetadata
var includePaymentInitiationMetadata bool = false
this.IncludePaymentInitiationMetadata = &includePaymentInitiationMetadata
return &this
}
// NewInstitutionsGetByIdRequestOptionsWithDefaults instantiates a new InstitutionsGetByIdRequestOptions 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 NewInstitutionsGetByIdRequestOptionsWithDefaults() *InstitutionsGetByIdRequestOptions {
this := InstitutionsGetByIdRequestOptions{}
var includeOptionalMetadata bool = false
this.IncludeOptionalMetadata = &includeOptionalMetadata
var includeStatus bool = false
this.IncludeStatus = &includeStatus
var includeAuthMetadata bool = false
this.IncludeAuthMetadata = &includeAuthMetadata
var includePaymentInitiationMetadata bool = false
this.IncludePaymentInitiationMetadata = &includePaymentInitiationMetadata
return &this
}
// GetIncludeOptionalMetadata returns the IncludeOptionalMetadata field value if set, zero value otherwise.
func (o *InstitutionsGetByIdRequestOptions) 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 *InstitutionsGetByIdRequestOptions) 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 *InstitutionsGetByIdRequestOptions) 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 *InstitutionsGetByIdRequestOptions) SetIncludeOptionalMetadata(v bool) {
o.IncludeOptionalMetadata = &v
}
// GetIncludeStatus returns the IncludeStatus field value if set, zero value otherwise.
func (o *InstitutionsGetByIdRequestOptions) GetIncludeStatus() bool {
if o == nil || o.IncludeStatus == nil {
var ret bool
return ret
}
return *o.IncludeStatus
}
// GetIncludeStatusOk returns a tuple with the IncludeStatus field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstitutionsGetByIdRequestOptions) GetIncludeStatusOk() (*bool, bool) {
if o == nil || o.IncludeStatus == nil {
return nil, false
}
return o.IncludeStatus, true
}
// HasIncludeStatus returns a boolean if a field has been set.
func (o *InstitutionsGetByIdRequestOptions) HasIncludeStatus() bool {
if o != nil && o.IncludeStatus != nil {
return true
}
return false
}
// SetIncludeStatus gets a reference to the given bool and assigns it to the IncludeStatus field.
func (o *InstitutionsGetByIdRequestOptions) SetIncludeStatus(v bool) {
o.IncludeStatus = &v
}
// GetIncludeAuthMetadata returns the IncludeAuthMetadata field value if set, zero value otherwise.
func (o *InstitutionsGetByIdRequestOptions) 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 *InstitutionsGetByIdRequestOptions) 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 *InstitutionsGetByIdRequestOptions) 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 *InstitutionsGetByIdRequestOptions) SetIncludeAuthMetadata(v bool) {
o.IncludeAuthMetadata = &v
}
// GetIncludePaymentInitiationMetadata returns the IncludePaymentInitiationMetadata field value if set, zero value otherwise.
func (o *InstitutionsGetByIdRequestOptions) 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 *InstitutionsGetByIdRequestOptions) 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 *InstitutionsGetByIdRequestOptions) 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 *InstitutionsGetByIdRequestOptions) SetIncludePaymentInitiationMetadata(v bool) {
o.IncludePaymentInitiationMetadata = &v
}
func (o InstitutionsGetByIdRequestOptions) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.IncludeOptionalMetadata != nil {
toSerialize["include_optional_metadata"] = o.IncludeOptionalMetadata
}
if o.IncludeStatus != nil {
toSerialize["include_status"] = o.IncludeStatus
}
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 NullableInstitutionsGetByIdRequestOptions struct {
value *InstitutionsGetByIdRequestOptions
isSet bool
}
func (v NullableInstitutionsGetByIdRequestOptions) Get() *InstitutionsGetByIdRequestOptions {
return v.value
}
func (v *NullableInstitutionsGetByIdRequestOptions) Set(val *InstitutionsGetByIdRequestOptions) {
v.value = val
v.isSet = true
}
func (v NullableInstitutionsGetByIdRequestOptions) IsSet() bool {
return v.isSet
}
func (v *NullableInstitutionsGetByIdRequestOptions) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableInstitutionsGetByIdRequestOptions(val *InstitutionsGetByIdRequestOptions) *NullableInstitutionsGetByIdRequestOptions {
return &NullableInstitutionsGetByIdRequestOptions{value: val, isSet: true}
}
func (v NullableInstitutionsGetByIdRequestOptions) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableInstitutionsGetByIdRequestOptions) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}