Skip to content

Commit 6dae7a9

Browse files
Merge pull request #11 from mxenabled/openapi-generator-0.3.3
Generated version 0.3.3
2 parents 8d36b89 + 7791c33 commit 6dae7a9

7 files changed

Lines changed: 389 additions & 10 deletions

File tree

MX.Platform.CSharp.sln

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio 14
33
VisualStudioVersion = 14.0.25420.1
44
MinimumVisualStudioVersion = 10.0.40219.1
5-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MX.Platform.CSharp", "src\MX.Platform.CSharp\MX.Platform.CSharp.csproj", "{8F9DCDA5-95F0-471B-A772-EF1C2E09C971}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MX.Platform.CSharp", "src\MX.Platform.CSharp\MX.Platform.CSharp.csproj", "{157D68C0-74DD-4AB0-B787-FD4C1D0CD0BD}"
66
EndProject
77
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MX.Platform.CSharp.Test", "src\MX.Platform.CSharp.Test\MX.Platform.CSharp.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
88
EndProject
@@ -12,10 +12,10 @@ Global
1212
Release|Any CPU = Release|Any CPU
1313
EndGlobalSection
1414
GlobalSection(ProjectConfigurationPlatforms) = postSolution
15-
{8F9DCDA5-95F0-471B-A772-EF1C2E09C971}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16-
{8F9DCDA5-95F0-471B-A772-EF1C2E09C971}.Debug|Any CPU.Build.0 = Debug|Any CPU
17-
{8F9DCDA5-95F0-471B-A772-EF1C2E09C971}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{8F9DCDA5-95F0-471B-A772-EF1C2E09C971}.Release|Any CPU.Build.0 = Release|Any CPU
15+
{157D68C0-74DD-4AB0-B787-FD4C1D0CD0BD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{157D68C0-74DD-4AB0-B787-FD4C1D0CD0BD}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{157D68C0-74DD-4AB0-B787-FD4C1D0CD0BD}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{157D68C0-74DD-4AB0-B787-FD4C1D0CD0BD}.Release|Any CPU.Build.0 = Release|Any CPU
1919
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2020
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
2121
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU

docs/MxPlatformApi.md

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Method | HTTP request | Description
3737
[**ListDefaultCategoriesByUser**](MxPlatformApi.md#listdefaultcategoriesbyuser) | **GET** /users/{user_guid}/categories/default | List default categories by user
3838
[**ListFavoriteInstitutions**](MxPlatformApi.md#listfavoriteinstitutions) | **GET** /institutions/favorites | List favorite institutions
3939
[**ListHoldings**](MxPlatformApi.md#listholdings) | **GET** /users/{user_guid}/holdings | List holdings
40+
[**ListHoldingsByAccount**](MxPlatformApi.md#listholdingsbyaccount) | **GET** /users/{user_guid}/accounts/{account_guid}/holdings | List holdings by account
4041
[**ListHoldingsByMember**](MxPlatformApi.md#listholdingsbymember) | **GET** /users/{user_guid}/members/{member_guid}/holdings | List holdings by member
4142
[**ListInstitutionCredentials**](MxPlatformApi.md#listinstitutioncredentials) | **GET** /institutions/{institution_code}/credentials | List institution credentials
4243
[**ListInstitutions**](MxPlatformApi.md#listinstitutions) | **GET** /institutions | List institutions
@@ -2645,6 +2646,91 @@ Name | Type | Description | Notes
26452646
- **Accept**: application/vnd.mx.api.v1+json
26462647

26472648

2649+
### HTTP response details
2650+
| Status code | Description | Response headers |
2651+
|-------------|-------------|------------------|
2652+
| **200** | OK | - |
2653+
2654+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
2655+
2656+
<a name="listholdingsbyaccount"></a>
2657+
# **ListHoldingsByAccount**
2658+
> HoldingsResponseBody ListHoldingsByAccount (string accountGuid, string userGuid, string fromDate = null, int? page = null, int? recordsPerPage = null, string toDate = null)
2659+
2660+
List holdings by account
2661+
2662+
This endpoint returns all holdings associated with the specified `account`.
2663+
2664+
### Example
2665+
```csharp
2666+
using System.Collections.Generic;
2667+
using System.Diagnostics;
2668+
using MX.Platform.CSharp.Api;
2669+
using MX.Platform.CSharp.Client;
2670+
using MX.Platform.CSharp.Model;
2671+
2672+
namespace Example
2673+
{
2674+
public class ListHoldingsByAccountExample
2675+
{
2676+
public static void Main()
2677+
{
2678+
Configuration config = new Configuration();
2679+
config.BasePath = "https://api.mx.com";
2680+
// Configure HTTP basic authorization: basicAuth
2681+
config.Username = "YOUR_USERNAME";
2682+
config.Password = "YOUR_PASSWORD";
2683+
2684+
var apiInstance = new MxPlatformApi(config);
2685+
var accountGuid = ACT-7c6f361b-e582-15b6-60c0-358f12466b4b; // string | The unique id for the `account`.
2686+
var userGuid = USR-fa7537f3-48aa-a683-a02a-b18940482f54; // string | The unique id for the `user`.
2687+
var fromDate = 2015-09-20; // string | Filter holdings from this date. (optional)
2688+
var page = 1; // int? | Specify current page. (optional)
2689+
var recordsPerPage = 10; // int? | Specify records per page. (optional)
2690+
var toDate = 2019-10-20; // string | Filter holdings to this date. (optional)
2691+
2692+
try
2693+
{
2694+
// List holdings by account
2695+
HoldingsResponseBody result = apiInstance.ListHoldingsByAccount(accountGuid, userGuid, fromDate, page, recordsPerPage, toDate);
2696+
Debug.WriteLine(result);
2697+
}
2698+
catch (ApiException e)
2699+
{
2700+
Debug.Print("Exception when calling MxPlatformApi.ListHoldingsByAccount: " + e.Message );
2701+
Debug.Print("Status Code: "+ e.ErrorCode);
2702+
Debug.Print(e.StackTrace);
2703+
}
2704+
}
2705+
}
2706+
}
2707+
```
2708+
2709+
### Parameters
2710+
2711+
Name | Type | Description | Notes
2712+
------------- | ------------- | ------------- | -------------
2713+
**accountGuid** | **string**| The unique id for the &#x60;account&#x60;. |
2714+
**userGuid** | **string**| The unique id for the &#x60;user&#x60;. |
2715+
**fromDate** | **string**| Filter holdings from this date. | [optional]
2716+
**page** | **int?**| Specify current page. | [optional]
2717+
**recordsPerPage** | **int?**| Specify records per page. | [optional]
2718+
**toDate** | **string**| Filter holdings to this date. | [optional]
2719+
2720+
### Return type
2721+
2722+
[**HoldingsResponseBody**](HoldingsResponseBody.md)
2723+
2724+
### Authorization
2725+
2726+
[basicAuth](../README.md#basicAuth)
2727+
2728+
### HTTP request headers
2729+
2730+
- **Content-Type**: Not defined
2731+
- **Accept**: application/vnd.mx.api.v1+json
2732+
2733+
26482734
### HTTP response details
26492735
| Status code | Description | Response headers |
26502736
|-------------|-------------|------------------|

openapi/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
22
packageName: MX.Platform.CSharp
3-
packageVersion: 0.3.2
3+
packageVersion: 0.3.3

src/MX.Platform.CSharp.Test/Api/MxPlatformApiTests.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,23 @@ public void ListHoldingsTest()
487487
//Assert.IsType<HoldingsResponseBody>(response);
488488
}
489489

490+
/// <summary>
491+
/// Test ListHoldingsByAccount
492+
/// </summary>
493+
[Fact]
494+
public void ListHoldingsByAccountTest()
495+
{
496+
// TODO uncomment below to test the method and replace null with proper value
497+
//string accountGuid = null;
498+
//string userGuid = null;
499+
//string fromDate = null;
500+
//int? page = null;
501+
//int? recordsPerPage = null;
502+
//string toDate = null;
503+
//var response = instance.ListHoldingsByAccount(accountGuid, userGuid, fromDate, page, recordsPerPage, toDate);
504+
//Assert.IsType<HoldingsResponseBody>(response);
505+
}
506+
490507
/// <summary>
491508
/// Test ListHoldingsByMember
492509
/// </summary>

0 commit comments

Comments
 (0)