mx-platform-ruby 0.17.0 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b936e81b35f1be7e58438403e10793c9288707645830a58687b31297198211f0
4
- data.tar.gz: 4e6242f67b061afbb56ae5dd269f312cfda00ca00e4109abb3b2dfa7484a1b1d
3
+ metadata.gz: eaf46a7f2b6836a2b8a340e3eefc77ada7686dc442d27f0f5ecd807bdff6659d
4
+ data.tar.gz: 33878710d1f72b88bd5e90b11a9e06b0f8a485179b153e10e6bb02d0c2ea78be
5
5
  SHA512:
6
- metadata.gz: 387337d17b600182887959e099bb19a10412c5d5c26146fdb0367ba61ea8ffc2c53d45ae3e860f590310be7246323b8edda3c2cdd7f8fde462a21933dd52109e
7
- data.tar.gz: 8e026569511052e4404604a3483aa7636991d642d23835db35ebb72abe08ded9db655f8c0a09e6c10e8d3cc20dfd4e5f4e17777c489dc9ab04cec41c12bcb16e
6
+ metadata.gz: a62178c0292fd7b5528613010dd3426fca32b311c1fbde99f597c130d2b430b345ef9f46990a2c9edb60977d82ef8998e6988d9b3d13d3a5e27f02ac061f1a5f
7
+ data.tar.gz: f3bb0629887baf19d7644e10a27c473aa3014f899e1d347f2bbb2cb79756d0923742a6ff2e5b955a8bb97287b61b304e4e3bc41cb5005afe0f8edd8385de0106
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mx-platform-ruby (0.17.0)
4
+ mx-platform-ruby (0.19.0)
5
5
  faraday (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -34,12 +34,13 @@ GEM
34
34
  faraday-patron (1.0.0)
35
35
  faraday-rack (1.0.0)
36
36
  faraday-retry (1.0.3)
37
- jaro_winkler (1.5.4)
37
+ jaro_winkler (1.5.6)
38
38
  method_source (1.0.0)
39
39
  multipart-post (2.3.0)
40
40
  parallel (1.23.0)
41
- parser (3.2.2.1)
41
+ parser (3.2.2.3)
42
42
  ast (~> 2.4.1)
43
+ racc
43
44
  pry (0.13.1)
44
45
  coderay (~> 1.1)
45
46
  method_source (~> 1.0)
@@ -48,6 +49,7 @@ GEM
48
49
  pry (~> 0.13.0)
49
50
  psych (5.1.0)
50
51
  stringio
52
+ racc (1.7.1)
51
53
  rainbow (3.1.1)
52
54
  rake (13.0.6)
53
55
  rspec (3.12.0)
@@ -59,10 +61,10 @@ GEM
59
61
  rspec-expectations (3.12.3)
60
62
  diff-lcs (>= 1.2.0, < 2.0)
61
63
  rspec-support (~> 3.12.0)
62
- rspec-mocks (3.12.5)
64
+ rspec-mocks (3.12.6)
63
65
  diff-lcs (>= 1.2.0, < 2.0)
64
66
  rspec-support (~> 3.12.0)
65
- rspec-support (3.12.0)
67
+ rspec-support (3.12.1)
66
68
  rubocop (0.66.0)
67
69
  jaro_winkler (~> 1.5.1)
68
70
  parallel (~> 1.10)
@@ -87,4 +89,4 @@ DEPENDENCIES
87
89
  rubocop (~> 0.66.0)
88
90
 
89
91
  BUNDLED WITH
90
- 2.4.12
92
+ 2.4.17
@@ -0,0 +1,60 @@
1
+ # MxPlatformRuby::AccountCreateRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **account_subtype_name** | **String** | | [optional] |
8
+ | **account_type** | **Integer** | | |
9
+ | **apr** | **Float** | | [optional] |
10
+ | **apy** | **Float** | | [optional] |
11
+ | **available_balance** | **Float** | | [optional] |
12
+ | **balance** | **Float** | | [optional] |
13
+ | **cash_surrender_value** | **Float** | | [optional] |
14
+ | **credit_limit** | **Float** | | [optional] |
15
+ | **currency_code** | **String** | | [optional] |
16
+ | **death_benefit** | **Integer** | | [optional] |
17
+ | **interest_rate** | **Float** | | [optional] |
18
+ | **is_business** | **Boolean** | | [optional] |
19
+ | **is_closed** | **Boolean** | | [optional] |
20
+ | **is_hidden** | **Boolean** | | [optional] |
21
+ | **loan_amount** | **Float** | | [optional] |
22
+ | **metadata** | **String** | | [optional] |
23
+ | **name** | **String** | | |
24
+ | **nickname** | **String** | | [optional] |
25
+ | **original_balance** | **Float** | | [optional] |
26
+ | **property_type** | **Integer** | | [optional] |
27
+ | **property_type_name** | **String** | | [optional] |
28
+ | **skip_webhook** | **Boolean** | | [optional] |
29
+
30
+ ## Example
31
+
32
+ ```ruby
33
+ require 'mx-platform-ruby'
34
+
35
+ instance = MxPlatformRuby::AccountCreateRequest.new(
36
+ account_subtype_name: SAVINGS,
37
+ account_type: 2,
38
+ apr: 1.0,
39
+ apy: 1.0,
40
+ available_balance: 1000.0,
41
+ balance: 1000.0,
42
+ cash_surrender_value: 1000.0,
43
+ credit_limit: 100.0,
44
+ currency_code: USD,
45
+ death_benefit: 1000,
46
+ interest_rate: 1.0,
47
+ is_business: false,
48
+ is_closed: false,
49
+ is_hidden: false,
50
+ loan_amount: 1000.0,
51
+ metadata: some metadata,
52
+ name: Test account 2,
53
+ nickname: Swiss Account,
54
+ original_balance: 10.0,
55
+ property_type: 1,
56
+ property_type_name: VEHICLE,
57
+ skip_webhook: false
58
+ )
59
+ ```
60
+
@@ -0,0 +1,20 @@
1
+ # MxPlatformRuby::AccountCreateRequestBody
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **skip_webhook** | **Boolean** | | [optional] |
8
+ | **account** | [**AccountCreateRequest**](AccountCreateRequest.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'mx-platform-ruby'
14
+
15
+ instance = MxPlatformRuby::AccountCreateRequestBody.new(
16
+ skip_webhook: true,
17
+ account: null
18
+ )
19
+ ```
20
+
@@ -5,6 +5,10 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **account_number** | **String** | | [optional] |
8
+ | **account_ownership** | **String** | | [optional] |
9
+ | **annuity_policy_to_date** | **String** | | [optional] |
10
+ | **annuity_provider** | **String** | | [optional] |
11
+ | **annuity_term_year** | **Float** | | [optional] |
8
12
  | **apr** | **Float** | | [optional] |
9
13
  | **apy** | **Float** | | [optional] |
10
14
  | **available_balance** | **Float** | | [optional] |
@@ -21,14 +25,16 @@
21
25
  | **holdings_value** | **Float** | | [optional] |
22
26
  | **id** | **String** | | [optional] |
23
27
  | **imported_at** | **String** | | [optional] |
28
+ | **interest_rate** | **Float** | | [optional] |
24
29
  | **institution_code** | **String** | | [optional] |
25
30
  | **insured_name** | **String** | | [optional] |
26
- | **interest_rate** | **Float** | | [optional] |
27
31
  | **is_closed** | **Boolean** | | [optional] |
28
32
  | **is_hidden** | **Boolean** | | [optional] |
33
+ | **is_manual** | **Boolean** | | [optional] |
29
34
  | **last_payment** | **Float** | | [optional] |
30
35
  | **last_payment_at** | **String** | | [optional] |
31
36
  | **loan_amount** | **Float** | | [optional] |
37
+ | **margin_balance** | **Float** | | [optional] |
32
38
  | **matures_on** | **String** | | [optional] |
33
39
  | **member_guid** | **String** | | [optional] |
34
40
  | **member_id** | **String** | | [optional] |
@@ -46,6 +52,8 @@
46
52
  | **routing_number** | **String** | | [optional] |
47
53
  | **started_on** | **String** | | [optional] |
48
54
  | **subtype** | **String** | | [optional] |
55
+ | **today_ugl_amount** | **Float** | | [optional] |
56
+ | **today_ugl_percentage** | **Float** | | [optional] |
49
57
  | **total_account_value** | **Float** | | [optional] |
50
58
  | **type** | **String** | | [optional] |
51
59
  | **updated_at** | **String** | | [optional] |
@@ -59,14 +67,18 @@ require 'mx-platform-ruby'
59
67
 
60
68
  instance = MxPlatformRuby::AccountResponse.new(
61
69
  account_number: 5366,
70
+ account_ownership: INDIVIDUAL,
71
+ annuity_policy_to_date: 2016-10-13T17:57:37.000Z,
72
+ annuity_provider: Metlife,
73
+ annuity_term_year: 2048,
62
74
  apr: 1.0,
63
75
  apy: 1.0,
64
76
  available_balance: 1000.0,
65
77
  available_credit: 1000.0,
66
- balance: 1000.0,
78
+ balance: 10000.0,
67
79
  cash_balance: 1000.0,
68
80
  cash_surrender_value: 1000.0,
69
- created_at: 2016-10-13T17:57:37.000Z,
81
+ created_at: 2023-07-25T17:14:46Z,
70
82
  credit_limit: 100.0,
71
83
  currency_code: USD,
72
84
  day_payment_is_due: 20,
@@ -75,14 +87,16 @@ instance = MxPlatformRuby::AccountResponse.new(
75
87
  holdings_value: 1000.0,
76
88
  id: 1040434698,
77
89
  imported_at: 2015-10-13T17:57:37.000Z,
78
- institution_code: chase,
79
- insured_name: Frodo Baggins,
80
90
  interest_rate: 1.0,
91
+ institution_code: 3af3685e-05d9-7060-359f-008d0755e993,
92
+ insured_name: Tommy Shelby,
81
93
  is_closed: false,
82
94
  is_hidden: false,
95
+ is_manual: false,
83
96
  last_payment: 100.0,
84
- last_payment_at: 2015-10-13T17:57:37.000Z,
97
+ last_payment_at: 2023-07-25T17:14:46Z,
85
98
  loan_amount: 1000.0,
99
+ margin_balance: 1000.0,
86
100
  matures_on: 2015-10-13T17:57:37.000Z,
87
101
  member_guid: MBR-7c6f361b-e582-15b6-60c0-358f12466b4b,
88
102
  member_id: member123,
@@ -100,6 +114,8 @@ instance = MxPlatformRuby::AccountResponse.new(
100
114
  routing_number: 68899990000000,
101
115
  started_on: 2015-10-13T17:57:37.000Z,
102
116
  subtype: NONE,
117
+ today_ugl_amount: 1000.5,
118
+ today_ugl_percentage: 6.9,
103
119
  total_account_value: 1.0,
104
120
  type: SAVINGS,
105
121
  updated_at: 2016-10-13T18:08:00.000Z,
@@ -10,6 +10,7 @@ All URIs are relative to *https://api.mx.com*
10
10
  | [**create_managed_account**](MxPlatformApi.md#create_managed_account) | **POST** /users/{user_guid}/managed_members/{member_guid}/accounts | Create managed account |
11
11
  | [**create_managed_member**](MxPlatformApi.md#create_managed_member) | **POST** /users/{user_guid}/managed_members | Create managed member |
12
12
  | [**create_managed_transaction**](MxPlatformApi.md#create_managed_transaction) | **POST** /users/{user_guid}/managed_members/{member_guid}/accounts/{account_guid}/transactions | Create managed transaction |
13
+ | [**create_manual_account**](MxPlatformApi.md#create_manual_account) | **POST** /users/{user_guid}/accounts | Create manual account |
13
14
  | [**create_member**](MxPlatformApi.md#create_member) | **POST** /users/{user_guid}/members | Create member |
14
15
  | [**create_tag**](MxPlatformApi.md#create_tag) | **POST** /users/{user_guid}/tags | Create tag |
15
16
  | [**create_tagging**](MxPlatformApi.md#create_tagging) | **POST** /users/{user_guid}/taggings | Create tagging |
@@ -19,6 +20,7 @@ All URIs are relative to *https://api.mx.com*
19
20
  | [**delete_managed_account**](MxPlatformApi.md#delete_managed_account) | **DELETE** /users/{user_guid}/managed_members/{member_guid}/accounts/{account_guid} | Delete managed account |
20
21
  | [**delete_managed_member**](MxPlatformApi.md#delete_managed_member) | **DELETE** /users/{user_guid}/managed_members/{member_guid} | Delete managed member |
21
22
  | [**delete_managed_transaction**](MxPlatformApi.md#delete_managed_transaction) | **DELETE** /users/{user_guid}/managed_members/{member_guid}/accounts/{account_guid}/transactions/{transaction_guid} | Delete managed transaction |
23
+ | [**delete_manual_account**](MxPlatformApi.md#delete_manual_account) | **DELETE** /users/{user_guid}/accounts/{account_guid} | Delete manual account |
22
24
  | [**delete_member**](MxPlatformApi.md#delete_member) | **DELETE** /users/{user_guid}/members/{member_guid} | Delete member |
23
25
  | [**delete_tag**](MxPlatformApi.md#delete_tag) | **DELETE** /users/{user_guid}/tags/{tag_guid} | Delete tag |
24
26
  | [**delete_tagging**](MxPlatformApi.md#delete_tagging) | **DELETE** /users/{user_guid}/taggings/{tagging_guid} | Delete tagging |
@@ -541,6 +543,78 @@ end
541
543
  - **Accept**: application/vnd.mx.api.v1+json
542
544
 
543
545
 
546
+ ## create_manual_account
547
+
548
+ > <AccountResponseBody> create_manual_account(user_guid, account_create_request_body)
549
+
550
+ Create manual account
551
+
552
+ This endpoint can only be used to create manual accounts. Creating a manual account will automatically create it under the Manual Institution member. Since a manual account has no credentials tied to the member, the account will never aggregate or include data from a data feed..
553
+
554
+ ### Examples
555
+
556
+ ```ruby
557
+ require 'time'
558
+ require 'mx-platform-ruby'
559
+ # setup authorization
560
+ MxPlatformRuby.configure do |config|
561
+ # Configure HTTP basic authorization: basicAuth
562
+ config.username = 'YOUR USERNAME'
563
+ config.password = 'YOUR PASSWORD'
564
+ end
565
+
566
+ api_instance = MxPlatformRuby::MxPlatformApi.new
567
+ user_guid = 'USR-fa7537f3-48aa-a683-a02a-b18940482f54' # String | The unique id for a `user`.
568
+ account_create_request_body = MxPlatformRuby::AccountCreateRequestBody.new # AccountCreateRequestBody | Manual account object to be created.
569
+
570
+ begin
571
+ # Create manual account
572
+ result = api_instance.create_manual_account(user_guid, account_create_request_body)
573
+ p result
574
+ rescue MxPlatformRuby::ApiError => e
575
+ puts "Error when calling MxPlatformApi->create_manual_account: #{e}"
576
+ end
577
+ ```
578
+
579
+ #### Using the create_manual_account_with_http_info variant
580
+
581
+ This returns an Array which contains the response data, status code and headers.
582
+
583
+ > <Array(<AccountResponseBody>, Integer, Hash)> create_manual_account_with_http_info(user_guid, account_create_request_body)
584
+
585
+ ```ruby
586
+ begin
587
+ # Create manual account
588
+ data, status_code, headers = api_instance.create_manual_account_with_http_info(user_guid, account_create_request_body)
589
+ p status_code # => 2xx
590
+ p headers # => { ... }
591
+ p data # => <AccountResponseBody>
592
+ rescue MxPlatformRuby::ApiError => e
593
+ puts "Error when calling MxPlatformApi->create_manual_account_with_http_info: #{e}"
594
+ end
595
+ ```
596
+
597
+ ### Parameters
598
+
599
+ | Name | Type | Description | Notes |
600
+ | ---- | ---- | ----------- | ----- |
601
+ | **user_guid** | **String** | The unique id for a &#x60;user&#x60;. | |
602
+ | **account_create_request_body** | [**AccountCreateRequestBody**](AccountCreateRequestBody.md) | Manual account object to be created. | |
603
+
604
+ ### Return type
605
+
606
+ [**AccountResponseBody**](AccountResponseBody.md)
607
+
608
+ ### Authorization
609
+
610
+ [basicAuth](../README.md#basicAuth)
611
+
612
+ ### HTTP request headers
613
+
614
+ - **Content-Type**: application/json
615
+ - **Accept**: application/vnd.mx.api.v1+json
616
+
617
+
544
618
  ## create_member
545
619
 
546
620
  > <MemberResponseBody> create_member(user_guid, member_create_request_body)
@@ -1189,6 +1263,77 @@ nil (empty response body)
1189
1263
  - **Accept**: Not defined
1190
1264
 
1191
1265
 
1266
+ ## delete_manual_account
1267
+
1268
+ > delete_manual_account(account_guid, user_guid)
1269
+
1270
+ Delete manual account
1271
+
1272
+ This endpoint deletes accounts that were manually created. The API will respond with an empty object and a status of `204 No Content`.
1273
+
1274
+ ### Examples
1275
+
1276
+ ```ruby
1277
+ require 'time'
1278
+ require 'mx-platform-ruby'
1279
+ # setup authorization
1280
+ MxPlatformRuby.configure do |config|
1281
+ # Configure HTTP basic authorization: basicAuth
1282
+ config.username = 'YOUR USERNAME'
1283
+ config.password = 'YOUR PASSWORD'
1284
+ end
1285
+
1286
+ api_instance = MxPlatformRuby::MxPlatformApi.new
1287
+ account_guid = 'ACT-06d7f44b-caae-0f6e-1384-01f52e75dcb1' # String | The unique id for an `account`.
1288
+ user_guid = 'USR-fa7537f3-48aa-a683-a02a-b18940482f54' # String | The unique id for a `user`.
1289
+
1290
+ begin
1291
+ # Delete manual account
1292
+ api_instance.delete_manual_account(account_guid, user_guid)
1293
+ rescue MxPlatformRuby::ApiError => e
1294
+ puts "Error when calling MxPlatformApi->delete_manual_account: #{e}"
1295
+ end
1296
+ ```
1297
+
1298
+ #### Using the delete_manual_account_with_http_info variant
1299
+
1300
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
1301
+
1302
+ > <Array(nil, Integer, Hash)> delete_manual_account_with_http_info(account_guid, user_guid)
1303
+
1304
+ ```ruby
1305
+ begin
1306
+ # Delete manual account
1307
+ data, status_code, headers = api_instance.delete_manual_account_with_http_info(account_guid, user_guid)
1308
+ p status_code # => 2xx
1309
+ p headers # => { ... }
1310
+ p data # => nil
1311
+ rescue MxPlatformRuby::ApiError => e
1312
+ puts "Error when calling MxPlatformApi->delete_manual_account_with_http_info: #{e}"
1313
+ end
1314
+ ```
1315
+
1316
+ ### Parameters
1317
+
1318
+ | Name | Type | Description | Notes |
1319
+ | ---- | ---- | ----------- | ----- |
1320
+ | **account_guid** | **String** | The unique id for an &#x60;account&#x60;. | |
1321
+ | **user_guid** | **String** | The unique id for a &#x60;user&#x60;. | |
1322
+
1323
+ ### Return type
1324
+
1325
+ nil (empty response body)
1326
+
1327
+ ### Authorization
1328
+
1329
+ [basicAuth](../README.md#basicAuth)
1330
+
1331
+ ### HTTP request headers
1332
+
1333
+ - **Content-Type**: Not defined
1334
+ - **Accept**: Not defined
1335
+
1336
+
1192
1337
  ## delete_member
1193
1338
 
1194
1339
  > delete_member(member_guid, user_guid)
@@ -471,6 +471,80 @@ module MxPlatformRuby
471
471
  return data, status_code, headers
472
472
  end
473
473
 
474
+ # Create manual account
475
+ # This endpoint can only be used to create manual accounts. Creating a manual account will automatically create it under the Manual Institution member. Since a manual account has no credentials tied to the member, the account will never aggregate or include data from a data feed..
476
+ # @param user_guid [String] The unique id for a &#x60;user&#x60;.
477
+ # @param account_create_request_body [AccountCreateRequestBody] Manual account object to be created.
478
+ # @param [Hash] opts the optional parameters
479
+ # @return [AccountResponseBody]
480
+ def create_manual_account(user_guid, account_create_request_body, opts = {})
481
+ data, _status_code, _headers = create_manual_account_with_http_info(user_guid, account_create_request_body, opts)
482
+ data
483
+ end
484
+
485
+ # Create manual account
486
+ # This endpoint can only be used to create manual accounts. Creating a manual account will automatically create it under the Manual Institution member. Since a manual account has no credentials tied to the member, the account will never aggregate or include data from a data feed..
487
+ # @param user_guid [String] The unique id for a &#x60;user&#x60;.
488
+ # @param account_create_request_body [AccountCreateRequestBody] Manual account object to be created.
489
+ # @param [Hash] opts the optional parameters
490
+ # @return [Array<(AccountResponseBody, Integer, Hash)>] AccountResponseBody data, response status code and response headers
491
+ def create_manual_account_with_http_info(user_guid, account_create_request_body, opts = {})
492
+ if @api_client.config.debugging
493
+ @api_client.config.logger.debug 'Calling API: MxPlatformApi.create_manual_account ...'
494
+ end
495
+ # verify the required parameter 'user_guid' is set
496
+ if @api_client.config.client_side_validation && user_guid.nil?
497
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.create_manual_account"
498
+ end
499
+ # verify the required parameter 'account_create_request_body' is set
500
+ if @api_client.config.client_side_validation && account_create_request_body.nil?
501
+ fail ArgumentError, "Missing the required parameter 'account_create_request_body' when calling MxPlatformApi.create_manual_account"
502
+ end
503
+ # resource path
504
+ local_var_path = '/users/{user_guid}/accounts'.sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
505
+
506
+ # query parameters
507
+ query_params = opts[:query_params] || {}
508
+
509
+ # header parameters
510
+ header_params = opts[:header_params] || {}
511
+ # HTTP header 'Accept' (if needed)
512
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.api.v1+json'])
513
+ # HTTP header 'Content-Type'
514
+ content_type = @api_client.select_header_content_type(['application/json'])
515
+ if !content_type.nil?
516
+ header_params['Content-Type'] = content_type
517
+ end
518
+
519
+ # form parameters
520
+ form_params = opts[:form_params] || {}
521
+
522
+ # http body (model)
523
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(account_create_request_body)
524
+
525
+ # return_type
526
+ return_type = opts[:debug_return_type] || 'AccountResponseBody'
527
+
528
+ # auth_names
529
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
530
+
531
+ new_options = opts.merge(
532
+ :operation => :"MxPlatformApi.create_manual_account",
533
+ :header_params => header_params,
534
+ :query_params => query_params,
535
+ :form_params => form_params,
536
+ :body => post_body,
537
+ :auth_names => auth_names,
538
+ :return_type => return_type
539
+ )
540
+
541
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
542
+ if @api_client.config.debugging
543
+ @api_client.config.logger.debug "API called: MxPlatformApi#create_manual_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
544
+ end
545
+ return data, status_code, headers
546
+ end
547
+
474
548
  # Create member
475
549
  # This endpoint allows you to create a new member. Members are created with the required parameters credentials and institution_code, and the optional parameters id and metadata. When creating a member, youll need to include the correct type of credential required by the financial institution and provided by the user. You can find out which credential type is required with the `/institutions/{institution_code}/credentials` endpoint. If successful, the MX Platform API will respond with the newly-created member object. Once you successfully create a member, MX will immediately validate the provided credentials and attempt to aggregate data for accounts and transactions.
476
550
  # @param user_guid [String] The unique id for a &#x60;user&#x60;.
@@ -1121,6 +1195,73 @@ module MxPlatformRuby
1121
1195
  return data, status_code, headers
1122
1196
  end
1123
1197
 
1198
+ # Delete manual account
1199
+ # This endpoint deletes accounts that were manually created. The API will respond with an empty object and a status of `204 No Content`.
1200
+ # @param account_guid [String] The unique id for an &#x60;account&#x60;.
1201
+ # @param user_guid [String] The unique id for a &#x60;user&#x60;.
1202
+ # @param [Hash] opts the optional parameters
1203
+ # @return [nil]
1204
+ def delete_manual_account(account_guid, user_guid, opts = {})
1205
+ delete_manual_account_with_http_info(account_guid, user_guid, opts)
1206
+ nil
1207
+ end
1208
+
1209
+ # Delete manual account
1210
+ # This endpoint deletes accounts that were manually created. The API will respond with an empty object and a status of &#x60;204 No Content&#x60;.
1211
+ # @param account_guid [String] The unique id for an &#x60;account&#x60;.
1212
+ # @param user_guid [String] The unique id for a &#x60;user&#x60;.
1213
+ # @param [Hash] opts the optional parameters
1214
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1215
+ def delete_manual_account_with_http_info(account_guid, user_guid, opts = {})
1216
+ if @api_client.config.debugging
1217
+ @api_client.config.logger.debug 'Calling API: MxPlatformApi.delete_manual_account ...'
1218
+ end
1219
+ # verify the required parameter 'account_guid' is set
1220
+ if @api_client.config.client_side_validation && account_guid.nil?
1221
+ fail ArgumentError, "Missing the required parameter 'account_guid' when calling MxPlatformApi.delete_manual_account"
1222
+ end
1223
+ # verify the required parameter 'user_guid' is set
1224
+ if @api_client.config.client_side_validation && user_guid.nil?
1225
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling MxPlatformApi.delete_manual_account"
1226
+ end
1227
+ # resource path
1228
+ local_var_path = '/users/{user_guid}/accounts/{account_guid}'.sub('{' + 'account_guid' + '}', CGI.escape(account_guid.to_s)).sub('{' + 'user_guid' + '}', CGI.escape(user_guid.to_s))
1229
+
1230
+ # query parameters
1231
+ query_params = opts[:query_params] || {}
1232
+
1233
+ # header parameters
1234
+ header_params = opts[:header_params] || {}
1235
+
1236
+ # form parameters
1237
+ form_params = opts[:form_params] || {}
1238
+
1239
+ # http body (model)
1240
+ post_body = opts[:debug_body]
1241
+
1242
+ # return_type
1243
+ return_type = opts[:debug_return_type]
1244
+
1245
+ # auth_names
1246
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
1247
+
1248
+ new_options = opts.merge(
1249
+ :operation => :"MxPlatformApi.delete_manual_account",
1250
+ :header_params => header_params,
1251
+ :query_params => query_params,
1252
+ :form_params => form_params,
1253
+ :body => post_body,
1254
+ :auth_names => auth_names,
1255
+ :return_type => return_type
1256
+ )
1257
+
1258
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1259
+ if @api_client.config.debugging
1260
+ @api_client.config.logger.debug "API called: MxPlatformApi#delete_manual_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1261
+ end
1262
+ return data, status_code, headers
1263
+ end
1264
+
1124
1265
  # Delete member
1125
1266
  # Accessing this endpoint will permanently delete a member.
1126
1267
  # @param member_guid [String] The unique id for a &#x60;member&#x60;.