Class: MoneyKit::PlaidCompatible::PlaidApi

Inherits:
Object
  • Object
show all
Defined in:
lib/plaid_compatible/money_kit_plaid_compatible/api/plaid_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ PlaidApi

Returns a new instance of PlaidApi.



18
19
20
# File 'lib/plaid_compatible/money_kit_plaid_compatible/api/plaid_api.rb', line 18

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.



16
17
18
# File 'lib/plaid_compatible/money_kit_plaid_compatible/api/plaid_api.rb', line 16

def api_client
  @api_client
end

Instance Method Details

#accounts_get(accounts_get_request, opts = {}) ⇒ AccountsGetResponse

/accounts/get

Parameters:

  • accounts_get_request (AccountsGetRequest)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :plaid_version (String)

Returns:



27
28
29
30
# File 'lib/plaid_compatible/money_kit_plaid_compatible/api/plaid_api.rb', line 27

def accounts_get(accounts_get_request, opts = {})
  data, _status_code, _headers = accounts_get_with_http_info(accounts_get_request, opts)
  data
end

#accounts_get_with_http_info(accounts_get_request, opts = {}) ⇒ Array<(AccountsGetResponse, Integer, Hash)>

/accounts/get

Parameters:

  • accounts_get_request (AccountsGetRequest)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :plaid_version (String)

Returns:

  • (Array<(AccountsGetResponse, Integer, Hash)>)

    AccountsGetResponse data, response status code and response headers



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
# File 'lib/plaid_compatible/money_kit_plaid_compatible/api/plaid_api.rb', line 37

def accounts_get_with_http_info(accounts_get_request, opts = {})
  @api_client.config.logger.debug 'Calling API: PlaidApi.accounts_get ...' if @api_client.config.debugging
  # verify the required parameter 'accounts_get_request' is set
  if @api_client.config.client_side_validation && accounts_get_request.nil?
    raise ArgumentError,
          "Missing the required parameter 'accounts_get_request' when calling PlaidApi.accounts_get"
  end

  # resource path
  local_var_path = '/accounts/get'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
  header_params[:'Plaid-Version'] = opts[:plaid_version] unless opts[:plaid_version].nil?

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(accounts_get_request)

  # return_type
  return_type = opts[:debug_return_type] || 'AccountsGetResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || %w[clientId secret]

  new_options = opts.merge(
    operation: :"PlaidApi.accounts_get",
    header_params: header_params,
    query_params: query_params,
    form_params: form_params,
    body: post_body,
    auth_names: auth_names,
    return_type: return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: PlaidApi#accounts_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  [data, status_code, headers]
end

#auth_get(auth_get_request, opts = {}) ⇒ AuthGetResponse

/auth/get

Parameters:

  • auth_get_request (AuthGetRequest)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :plaid_version (String)

Returns:



93
94
95
96
# File 'lib/plaid_compatible/money_kit_plaid_compatible/api/plaid_api.rb', line 93

def auth_get(auth_get_request, opts = {})
  data, _status_code, _headers = auth_get_with_http_info(auth_get_request, opts)
  data
end

#auth_get_with_http_info(auth_get_request, opts = {}) ⇒ Array<(AuthGetResponse, Integer, Hash)>

/auth/get

Parameters:

  • auth_get_request (AuthGetRequest)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :plaid_version (String)

Returns:

  • (Array<(AuthGetResponse, Integer, Hash)>)

    AuthGetResponse data, response status code and response headers



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
# File 'lib/plaid_compatible/money_kit_plaid_compatible/api/plaid_api.rb', line 103

def auth_get_with_http_info(auth_get_request, opts = {})
  @api_client.config.logger.debug 'Calling API: PlaidApi.auth_get ...' if @api_client.config.debugging
  # verify the required parameter 'auth_get_request' is set
  if @api_client.config.client_side_validation && auth_get_request.nil?
    raise ArgumentError, "Missing the required parameter 'auth_get_request' when calling PlaidApi.auth_get"
  end

  # resource path
  local_var_path = '/auth/get'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
  header_params[:'Plaid-Version'] = opts[:plaid_version] unless opts[:plaid_version].nil?

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(auth_get_request)

  # return_type
  return_type = opts[:debug_return_type] || 'AuthGetResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || %w[clientId secret]

  new_options = opts.merge(
    operation: :"PlaidApi.auth_get",
    header_params: header_params,
    query_params: query_params,
    form_params: form_params,
    body: post_body,
    auth_names: auth_names,
    return_type: return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: PlaidApi#auth_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  [data, status_code, headers]
end

#identity_get(identity_get_request, opts = {}) ⇒ IdentityGetResponse

/identity/get

Parameters:

  • identity_get_request (IdentityGetRequest)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :plaid_version (String)

Returns:



158
159
160
161
# File 'lib/plaid_compatible/money_kit_plaid_compatible/api/plaid_api.rb', line 158

def identity_get(identity_get_request, opts = {})
  data, _status_code, _headers = identity_get_with_http_info(identity_get_request, opts)
  data
end

#identity_get_with_http_info(identity_get_request, opts = {}) ⇒ Array<(IdentityGetResponse, Integer, Hash)>

/identity/get

Parameters:

  • identity_get_request (IdentityGetRequest)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :plaid_version (String)

Returns:

  • (Array<(IdentityGetResponse, Integer, Hash)>)

    IdentityGetResponse data, response status code and response headers



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
# File 'lib/plaid_compatible/money_kit_plaid_compatible/api/plaid_api.rb', line 168

def identity_get_with_http_info(identity_get_request, opts = {})
  @api_client.config.logger.debug 'Calling API: PlaidApi.identity_get ...' if @api_client.config.debugging
  # verify the required parameter 'identity_get_request' is set
  if @api_client.config.client_side_validation && identity_get_request.nil?
    raise ArgumentError,
          "Missing the required parameter 'identity_get_request' when calling PlaidApi.identity_get"
  end

  # resource path
  local_var_path = '/identity/get'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
  header_params[:'Plaid-Version'] = opts[:plaid_version] unless opts[:plaid_version].nil?

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(identity_get_request)

  # return_type
  return_type = opts[:debug_return_type] || 'IdentityGetResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || %w[clientId secret]

  new_options = opts.merge(
    operation: :"PlaidApi.identity_get",
    header_params: header_params,
    query_params: query_params,
    form_params: form_params,
    body: post_body,
    auth_names: auth_names,
    return_type: return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: PlaidApi#identity_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  [data, status_code, headers]
end

#institutions_get_by_id(opts = {}) ⇒ InstitutionsGetByIdResponse

/institutions/get_by_id

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



224
225
226
227
# File 'lib/plaid_compatible/money_kit_plaid_compatible/api/plaid_api.rb', line 224

def institutions_get_by_id(opts = {})
  data, _status_code, _headers = institutions_get_by_id_with_http_info(opts)
  data
end

#institutions_get_by_id_with_http_info(opts = {}) ⇒ Array<(InstitutionsGetByIdResponse, Integer, Hash)>

/institutions/get_by_id

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(InstitutionsGetByIdResponse, Integer, Hash)>)

    InstitutionsGetByIdResponse data, response status code and response headers



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
# File 'lib/plaid_compatible/money_kit_plaid_compatible/api/plaid_api.rb', line 234

def institutions_get_by_id_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: PlaidApi.institutions_get_by_id ...'
  end
  # resource path
  local_var_path = '/institutions/get_by_id'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
  header_params[:'Plaid-Version'] = opts[:plaid_version] unless opts[:plaid_version].nil?

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:institutions_get_by_id_request])

  # return_type
  return_type = opts[:debug_return_type] || 'InstitutionsGetByIdResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || %w[clientId secret]

  new_options = opts.merge(
    operation: :"PlaidApi.institutions_get_by_id",
    header_params: header_params,
    query_params: query_params,
    form_params: form_params,
    body: post_body,
    auth_names: auth_names,
    return_type: return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: PlaidApi#institutions_get_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  [data, status_code, headers]
end

#item_get(item_get_request, opts = {}) ⇒ ItemGetResponse

/item/get

Parameters:

  • item_get_request (ItemGetRequest)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :plaid_version (String)

Returns:



286
287
288
289
# File 'lib/plaid_compatible/money_kit_plaid_compatible/api/plaid_api.rb', line 286

def item_get(item_get_request, opts = {})
  data, _status_code, _headers = item_get_with_http_info(item_get_request, opts)
  data
end

#item_get_with_http_info(item_get_request, opts = {}) ⇒ Array<(ItemGetResponse, Integer, Hash)>

/item/get

Parameters:

  • item_get_request (ItemGetRequest)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :plaid_version (String)

Returns:

  • (Array<(ItemGetResponse, Integer, Hash)>)

    ItemGetResponse data, response status code and response headers



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
# File 'lib/plaid_compatible/money_kit_plaid_compatible/api/plaid_api.rb', line 296

def item_get_with_http_info(item_get_request, opts = {})
  @api_client.config.logger.debug 'Calling API: PlaidApi.item_get ...' if @api_client.config.debugging
  # verify the required parameter 'item_get_request' is set
  if @api_client.config.client_side_validation && item_get_request.nil?
    raise ArgumentError, "Missing the required parameter 'item_get_request' when calling PlaidApi.item_get"
  end

  # resource path
  local_var_path = '/item/get'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
  header_params[:'Plaid-Version'] = opts[:plaid_version] unless opts[:plaid_version].nil?

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(item_get_request)

  # return_type
  return_type = opts[:debug_return_type] || 'ItemGetResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || %w[clientId secret]

  new_options = opts.merge(
    operation: :"PlaidApi.item_get",
    header_params: header_params,
    query_params: query_params,
    form_params: form_params,
    body: post_body,
    auth_names: auth_names,
    return_type: return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: PlaidApi#item_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  [data, status_code, headers]
end

#item_public_token_exchange(item_public_token_exchange_request, opts = {}) ⇒ ItemPublicTokenExchangeResponse

/item/public_token/exchange

Parameters:

Options Hash (opts):

  • :plaid_version (String)

Returns:



351
352
353
354
355
# File 'lib/plaid_compatible/money_kit_plaid_compatible/api/plaid_api.rb', line 351

def item_public_token_exchange(item_public_token_exchange_request, opts = {})
  data, _status_code, _headers = item_public_token_exchange_with_http_info(item_public_token_exchange_request,
                                                                           opts)
  data
end

#item_public_token_exchange_with_http_info(item_public_token_exchange_request, opts = {}) ⇒ Array<(ItemPublicTokenExchangeResponse, Integer, Hash)>

/item/public_token/exchange

Parameters:

Options Hash (opts):

  • :plaid_version (String)

Returns:



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
# File 'lib/plaid_compatible/money_kit_plaid_compatible/api/plaid_api.rb', line 362

def item_public_token_exchange_with_http_info(item_public_token_exchange_request, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: PlaidApi.item_public_token_exchange ...'
  end
  # verify the required parameter 'item_public_token_exchange_request' is set
  if @api_client.config.client_side_validation && item_public_token_exchange_request.nil?
    raise ArgumentError,
          "Missing the required parameter 'item_public_token_exchange_request' when calling PlaidApi.item_public_token_exchange"
  end

  # resource path
  local_var_path = '/item/public_token/exchange'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
  header_params[:'Plaid-Version'] = opts[:plaid_version] unless opts[:plaid_version].nil?

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(item_public_token_exchange_request)

  # return_type
  return_type = opts[:debug_return_type] || 'ItemPublicTokenExchangeResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || %w[clientId secret]

  new_options = opts.merge(
    operation: :"PlaidApi.item_public_token_exchange",
    header_params: header_params,
    query_params: query_params,
    form_params: form_params,
    body: post_body,
    auth_names: auth_names,
    return_type: return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: PlaidApi#item_public_token_exchange\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  [data, status_code, headers]
end

#item_remove(item_remove_request, opts = {}) ⇒ ItemRemoveResponse

/item/remove

Parameters:

  • item_remove_request (ItemRemoveRequest)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :plaid_version (String)

Returns:



420
421
422
423
# File 'lib/plaid_compatible/money_kit_plaid_compatible/api/plaid_api.rb', line 420

def item_remove(item_remove_request, opts = {})
  data, _status_code, _headers = item_remove_with_http_info(item_remove_request, opts)
  data
end

#item_remove_with_http_info(item_remove_request, opts = {}) ⇒ Array<(ItemRemoveResponse, Integer, Hash)>

/item/remove

Parameters:

  • item_remove_request (ItemRemoveRequest)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :plaid_version (String)

Returns:

  • (Array<(ItemRemoveResponse, Integer, Hash)>)

    ItemRemoveResponse data, response status code and response headers



430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
# File 'lib/plaid_compatible/money_kit_plaid_compatible/api/plaid_api.rb', line 430

def item_remove_with_http_info(item_remove_request, opts = {})
  @api_client.config.logger.debug 'Calling API: PlaidApi.item_remove ...' if @api_client.config.debugging
  # verify the required parameter 'item_remove_request' is set
  if @api_client.config.client_side_validation && item_remove_request.nil?
    raise ArgumentError, "Missing the required parameter 'item_remove_request' when calling PlaidApi.item_remove"
  end

  # resource path
  local_var_path = '/item/remove'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
  header_params[:'Plaid-Version'] = opts[:plaid_version] unless opts[:plaid_version].nil?

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(item_remove_request)

  # return_type
  return_type = opts[:debug_return_type] || 'ItemRemoveResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || %w[clientId secret]

  new_options = opts.merge(
    operation: :"PlaidApi.item_remove",
    header_params: header_params,
    query_params: query_params,
    form_params: form_params,
    body: post_body,
    auth_names: auth_names,
    return_type: return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: PlaidApi#item_remove\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  [data, status_code, headers]
end

/link/token/create

Parameters:

  • link_token_create_request (LinkTokenCreateRequest)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :plaid_version (String)

Returns:



485
486
487
488
# File 'lib/plaid_compatible/money_kit_plaid_compatible/api/plaid_api.rb', line 485

def link_token_create(link_token_create_request, opts = {})
  data, _status_code, _headers = link_token_create_with_http_info(link_token_create_request, opts)
  data
end

/link/token/create

Parameters:

  • link_token_create_request (LinkTokenCreateRequest)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :plaid_version (String)

Returns:

  • (Array<(LinkTokenCreateResponse, Integer, Hash)>)

    LinkTokenCreateResponse data, response status code and response headers



495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
# File 'lib/plaid_compatible/money_kit_plaid_compatible/api/plaid_api.rb', line 495

def link_token_create_with_http_info(link_token_create_request, opts = {})
  @api_client.config.logger.debug 'Calling API: PlaidApi.link_token_create ...' if @api_client.config.debugging
  # verify the required parameter 'link_token_create_request' is set
  if @api_client.config.client_side_validation && link_token_create_request.nil?
    raise ArgumentError,
          "Missing the required parameter 'link_token_create_request' when calling PlaidApi.link_token_create"
  end

  # resource path
  local_var_path = '/link/token/create'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
  header_params[:'Plaid-Version'] = opts[:plaid_version] unless opts[:plaid_version].nil?

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(link_token_create_request)

  # return_type
  return_type = opts[:debug_return_type] || 'LinkTokenCreateResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || %w[clientId secret]

  new_options = opts.merge(
    operation: :"PlaidApi.link_token_create",
    header_params: header_params,
    query_params: query_params,
    form_params: form_params,
    body: post_body,
    auth_names: auth_names,
    return_type: return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: PlaidApi#link_token_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  [data, status_code, headers]
end

#transactions_get(transactions_get_request, opts = {}) ⇒ TransactionsGetResponse

/transactions/get

Parameters:

Options Hash (opts):

  • :plaid_version (String)

Returns:



551
552
553
554
# File 'lib/plaid_compatible/money_kit_plaid_compatible/api/plaid_api.rb', line 551

def transactions_get(transactions_get_request, opts = {})
  data, _status_code, _headers = transactions_get_with_http_info(transactions_get_request, opts)
  data
end

#transactions_get_with_http_info(transactions_get_request, opts = {}) ⇒ Array<(TransactionsGetResponse, Integer, Hash)>

/transactions/get

Parameters:

Options Hash (opts):

  • :plaid_version (String)

Returns:

  • (Array<(TransactionsGetResponse, Integer, Hash)>)

    TransactionsGetResponse data, response status code and response headers



561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
# File 'lib/plaid_compatible/money_kit_plaid_compatible/api/plaid_api.rb', line 561

def transactions_get_with_http_info(transactions_get_request, opts = {})
  @api_client.config.logger.debug 'Calling API: PlaidApi.transactions_get ...' if @api_client.config.debugging
  # verify the required parameter 'transactions_get_request' is set
  if @api_client.config.client_side_validation && transactions_get_request.nil?
    raise ArgumentError,
          "Missing the required parameter 'transactions_get_request' when calling PlaidApi.transactions_get"
  end

  # resource path
  local_var_path = '/transactions/get'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
  header_params[:'Plaid-Version'] = opts[:plaid_version] unless opts[:plaid_version].nil?

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(transactions_get_request)

  # return_type
  return_type = opts[:debug_return_type] || 'TransactionsGetResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || %w[clientId secret]

  new_options = opts.merge(
    operation: :"PlaidApi.transactions_get",
    header_params: header_params,
    query_params: query_params,
    form_params: form_params,
    body: post_body,
    auth_names: auth_names,
    return_type: return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: PlaidApi#transactions_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  [data, status_code, headers]
end

#transactions_refresh(transactions_refresh_request, opts = {}) ⇒ TransactionsRefreshResponse

/transactions/refresh

Parameters:

Options Hash (opts):

  • :plaid_version (String)

Returns:



617
618
619
620
# File 'lib/plaid_compatible/money_kit_plaid_compatible/api/plaid_api.rb', line 617

def transactions_refresh(transactions_refresh_request, opts = {})
  data, _status_code, _headers = transactions_refresh_with_http_info(transactions_refresh_request, opts)
  data
end

#transactions_refresh_with_http_info(transactions_refresh_request, opts = {}) ⇒ Array<(TransactionsRefreshResponse, Integer, Hash)>

/transactions/refresh

Parameters:

Options Hash (opts):

  • :plaid_version (String)

Returns:

  • (Array<(TransactionsRefreshResponse, Integer, Hash)>)

    TransactionsRefreshResponse data, response status code and response headers



627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
# File 'lib/plaid_compatible/money_kit_plaid_compatible/api/plaid_api.rb', line 627

def transactions_refresh_with_http_info(transactions_refresh_request, opts = {})
  @api_client.config.logger.debug 'Calling API: PlaidApi.transactions_refresh ...' if @api_client.config.debugging
  # verify the required parameter 'transactions_refresh_request' is set
  if @api_client.config.client_side_validation && transactions_refresh_request.nil?
    raise ArgumentError,
          "Missing the required parameter 'transactions_refresh_request' when calling PlaidApi.transactions_refresh"
  end

  # resource path
  local_var_path = '/transactions/refresh'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
  header_params[:'Plaid-Version'] = opts[:plaid_version] unless opts[:plaid_version].nil?

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(transactions_refresh_request)

  # return_type
  return_type = opts[:debug_return_type] || 'TransactionsRefreshResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || %w[clientId secret]

  new_options = opts.merge(
    operation: :"PlaidApi.transactions_refresh",
    header_params: header_params,
    query_params: query_params,
    form_params: form_params,
    body: post_body,
    auth_names: auth_names,
    return_type: return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: PlaidApi#transactions_refresh\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  [data, status_code, headers]
end

#transactions_sync(transactions_sync_request, opts = {}) ⇒ TransactionsSyncResponse

/transactions/sync

Parameters:

Options Hash (opts):

  • :plaid_version (String)

Returns:



683
684
685
686
# File 'lib/plaid_compatible/money_kit_plaid_compatible/api/plaid_api.rb', line 683

def transactions_sync(transactions_sync_request, opts = {})
  data, _status_code, _headers = transactions_sync_with_http_info(transactions_sync_request, opts)
  data
end

#transactions_sync_with_http_info(transactions_sync_request, opts = {}) ⇒ Array<(TransactionsSyncResponse, Integer, Hash)>

/transactions/sync

Parameters:

Options Hash (opts):

  • :plaid_version (String)

Returns:

  • (Array<(TransactionsSyncResponse, Integer, Hash)>)

    TransactionsSyncResponse data, response status code and response headers



693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
# File 'lib/plaid_compatible/money_kit_plaid_compatible/api/plaid_api.rb', line 693

def transactions_sync_with_http_info(transactions_sync_request, opts = {})
  @api_client.config.logger.debug 'Calling API: PlaidApi.transactions_sync ...' if @api_client.config.debugging
  # verify the required parameter 'transactions_sync_request' is set
  if @api_client.config.client_side_validation && transactions_sync_request.nil?
    raise ArgumentError,
          "Missing the required parameter 'transactions_sync_request' when calling PlaidApi.transactions_sync"
  end

  # resource path
  local_var_path = '/transactions/sync'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
  header_params[:'Plaid-Version'] = opts[:plaid_version] unless opts[:plaid_version].nil?

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(transactions_sync_request)

  # return_type
  return_type = opts[:debug_return_type] || 'TransactionsSyncResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || %w[clientId secret]

  new_options = opts.merge(
    operation: :"PlaidApi.transactions_sync",
    header_params: header_params,
    query_params: query_params,
    form_params: form_params,
    body: post_body,
    auth_names: auth_names,
    return_type: return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: PlaidApi#transactions_sync\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  [data, status_code, headers]
end