Skip to content

Latest commit

 

History

History
827 lines (680 loc) · 33 KB

File metadata and controls

827 lines (680 loc) · 33 KB

AndDoneSecureClientLibrary.Api.SecureVendorManagementApi

All URIs are relative to https://api.uat.anddone.com

Method HTTP request Description
VendorapiSecureMerchantsVendorsDeletePost POST /vendorapi/secure/merchants/vendors/delete This API deletes vendor into system
VendorapiSecureMerchantsVendorsDetailsPost POST /vendorapi/secure/merchants/vendors/details This API gets details of particular vendor
VendorapiSecureMerchantsVendorsEditPost POST /vendorapi/secure/merchants/vendors/edit This API Updates the existing vendor
VendorapiSecureMerchantsVendorsPost POST /vendorapi/secure/merchants/vendors This API creates vendor into system
VendorapiSecureMerchantsVendorsSearchPost POST /vendorapi/secure/merchants/vendors/search This API returns list of all the Vendors of Merchant
VendorapiSecureMerchantsVendorsSuspendPost POST /vendorapi/secure/merchants/vendors/suspend This API suspends vendor into system
VendorapiSecureMerchantsVendorsTimelinePost POST /vendorapi/secure/merchants/vendors/timeline This API gets timeline of particular vendor
VendorapiSecureMerchantsVendorsUnsuspendPost POST /vendorapi/secure/merchants/vendors/unsuspend This API unsuspends vendor into system

VendorapiSecureMerchantsVendorsDeletePost

void VendorapiSecureMerchantsVendorsDeletePost (string xApiKey, string xAppKey, float xVersion, string origin, SecureVendorStatusRequestDTO secureVendorStatusRequestDTO)

This API deletes vendor into system

Example

using System.Collections.Generic;
using System.Diagnostics;
using AndDoneSecureClientLibrary.Api;
using AndDoneSecureClientLibrary.Client;
using AndDoneSecureClientLibrary.Model;

namespace Example
{
    public class VendorapiSecureMerchantsVendorsDeletePostExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://api.uat.anddone.com";
            var apiInstance = new SecureVendorManagementApi(config);
            var xApiKey = "xApiKey_example";  // string | an authorization header
            var xAppKey = "xAppKey_example";  // string | an authorization header
            var xVersion = 8.14D;  // float | x-version
            var origin = "origin_example";  // string | origin
            var secureVendorStatusRequestDTO = new SecureVendorStatusRequestDTO(); // SecureVendorStatusRequestDTO | SecureVendorStatusRequestDTO

            try
            {
                // This API deletes vendor into system
                apiInstance.VendorapiSecureMerchantsVendorsDeletePost(xApiKey, xAppKey, xVersion, origin, secureVendorStatusRequestDTO);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling SecureVendorManagementApi.VendorapiSecureMerchantsVendorsDeletePost: " + e.Message);
                Debug.Print("Status Code: " + e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Using the VendorapiSecureMerchantsVendorsDeletePostWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

try
{
    // This API deletes vendor into system
    apiInstance.VendorapiSecureMerchantsVendorsDeletePostWithHttpInfo(xApiKey, xAppKey, xVersion, origin, secureVendorStatusRequestDTO);
}
catch (ApiException e)
{
    Debug.Print("Exception when calling SecureVendorManagementApi.VendorapiSecureMerchantsVendorsDeletePostWithHttpInfo: " + e.Message);
    Debug.Print("Status Code: " + e.ErrorCode);
    Debug.Print(e.StackTrace);
}

Parameters

Name Type Description Notes
xApiKey string an authorization header
xAppKey string an authorization header
xVersion float x-version
origin string origin
secureVendorStatusRequestDTO SecureVendorStatusRequestDTO SecureVendorStatusRequestDTO

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

HTTP response details

Status code Description Response headers
200 Successful operation -
400 Bad Request -
404 Not Found -
500 Internal Server Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

VendorapiSecureMerchantsVendorsDetailsPost

VendorResponseDTO VendorapiSecureMerchantsVendorsDetailsPost (string xApiKey, string xAppKey, float xVersion, string origin, SecureVendorRequestDTO secureVendorRequestDTO)

This API gets details of particular vendor

Example

using System.Collections.Generic;
using System.Diagnostics;
using AndDoneSecureClientLibrary.Api;
using AndDoneSecureClientLibrary.Client;
using AndDoneSecureClientLibrary.Model;

namespace Example
{
    public class VendorapiSecureMerchantsVendorsDetailsPostExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://api.uat.anddone.com";
            var apiInstance = new SecureVendorManagementApi(config);
            var xApiKey = "xApiKey_example";  // string | an authorization header
            var xAppKey = "xAppKey_example";  // string | an authorization header
            var xVersion = 8.14D;  // float | x-version
            var origin = "origin_example";  // string | origin
            var secureVendorRequestDTO = new SecureVendorRequestDTO(); // SecureVendorRequestDTO | SecureVendorRequestDTO

            try
            {
                // This API gets details of particular vendor
                VendorResponseDTO result = apiInstance.VendorapiSecureMerchantsVendorsDetailsPost(xApiKey, xAppKey, xVersion, origin, secureVendorRequestDTO);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling SecureVendorManagementApi.VendorapiSecureMerchantsVendorsDetailsPost: " + e.Message);
                Debug.Print("Status Code: " + e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Using the VendorapiSecureMerchantsVendorsDetailsPostWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

try
{
    // This API gets details of particular vendor
    ApiResponse<VendorResponseDTO> response = apiInstance.VendorapiSecureMerchantsVendorsDetailsPostWithHttpInfo(xApiKey, xAppKey, xVersion, origin, secureVendorRequestDTO);
    Debug.Write("Status Code: " + response.StatusCode);
    Debug.Write("Response Headers: " + response.Headers);
    Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
    Debug.Print("Exception when calling SecureVendorManagementApi.VendorapiSecureMerchantsVendorsDetailsPostWithHttpInfo: " + e.Message);
    Debug.Print("Status Code: " + e.ErrorCode);
    Debug.Print(e.StackTrace);
}

Parameters

Name Type Description Notes
xApiKey string an authorization header
xAppKey string an authorization header
xVersion float x-version
origin string origin
secureVendorRequestDTO SecureVendorRequestDTO SecureVendorRequestDTO

Return type

VendorResponseDTO

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful operation -
400 Bad Request -
404 Not Found -
500 Internal Server Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

VendorapiSecureMerchantsVendorsEditPost

SecureVendorResponseDTO VendorapiSecureMerchantsVendorsEditPost (string xApiKey, string xAppKey, float xVersion, string origin, SecureVendorUpdateRequestDTO secureVendorUpdateRequestDTO)

This API Updates the existing vendor

Example

using System.Collections.Generic;
using System.Diagnostics;
using AndDoneSecureClientLibrary.Api;
using AndDoneSecureClientLibrary.Client;
using AndDoneSecureClientLibrary.Model;

namespace Example
{
    public class VendorapiSecureMerchantsVendorsEditPostExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://api.uat.anddone.com";
            var apiInstance = new SecureVendorManagementApi(config);
            var xApiKey = "xApiKey_example";  // string | an authorization header
            var xAppKey = "xAppKey_example";  // string | an authorization header
            var xVersion = 8.14D;  // float | x-version
            var origin = "origin_example";  // string | origin
            var secureVendorUpdateRequestDTO = new SecureVendorUpdateRequestDTO(); // SecureVendorUpdateRequestDTO | SecureVendorUpdateRequestDTO

            try
            {
                // This API Updates the existing vendor
                SecureVendorResponseDTO result = apiInstance.VendorapiSecureMerchantsVendorsEditPost(xApiKey, xAppKey, xVersion, origin, secureVendorUpdateRequestDTO);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling SecureVendorManagementApi.VendorapiSecureMerchantsVendorsEditPost: " + e.Message);
                Debug.Print("Status Code: " + e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Using the VendorapiSecureMerchantsVendorsEditPostWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

try
{
    // This API Updates the existing vendor
    ApiResponse<SecureVendorResponseDTO> response = apiInstance.VendorapiSecureMerchantsVendorsEditPostWithHttpInfo(xApiKey, xAppKey, xVersion, origin, secureVendorUpdateRequestDTO);
    Debug.Write("Status Code: " + response.StatusCode);
    Debug.Write("Response Headers: " + response.Headers);
    Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
    Debug.Print("Exception when calling SecureVendorManagementApi.VendorapiSecureMerchantsVendorsEditPostWithHttpInfo: " + e.Message);
    Debug.Print("Status Code: " + e.ErrorCode);
    Debug.Print(e.StackTrace);
}

Parameters

Name Type Description Notes
xApiKey string an authorization header
xAppKey string an authorization header
xVersion float x-version
origin string origin
secureVendorUpdateRequestDTO SecureVendorUpdateRequestDTO SecureVendorUpdateRequestDTO

Return type

SecureVendorResponseDTO

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful operation -
400 Bad Request -
404 Not Found -
500 Internal Server Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

VendorapiSecureMerchantsVendorsPost

SecureVendorResponseDTO VendorapiSecureMerchantsVendorsPost (string xApiKey, string xAppKey, float xVersion, string origin, VendorRequestDTO vendorRequestDTO)

This API creates vendor into system

Example

using System.Collections.Generic;
using System.Diagnostics;
using AndDoneSecureClientLibrary.Api;
using AndDoneSecureClientLibrary.Client;
using AndDoneSecureClientLibrary.Model;

namespace Example
{
    public class VendorapiSecureMerchantsVendorsPostExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://api.uat.anddone.com";
            var apiInstance = new SecureVendorManagementApi(config);
            var xApiKey = "xApiKey_example";  // string | an authorization header
            var xAppKey = "xAppKey_example";  // string | an authorization header
            var xVersion = 8.14D;  // float | x-version
            var origin = "origin_example";  // string | origin
            var vendorRequestDTO = new VendorRequestDTO(); // VendorRequestDTO | VendorRequestDTO

            try
            {
                // This API creates vendor into system
                SecureVendorResponseDTO result = apiInstance.VendorapiSecureMerchantsVendorsPost(xApiKey, xAppKey, xVersion, origin, vendorRequestDTO);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling SecureVendorManagementApi.VendorapiSecureMerchantsVendorsPost: " + e.Message);
                Debug.Print("Status Code: " + e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Using the VendorapiSecureMerchantsVendorsPostWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

try
{
    // This API creates vendor into system
    ApiResponse<SecureVendorResponseDTO> response = apiInstance.VendorapiSecureMerchantsVendorsPostWithHttpInfo(xApiKey, xAppKey, xVersion, origin, vendorRequestDTO);
    Debug.Write("Status Code: " + response.StatusCode);
    Debug.Write("Response Headers: " + response.Headers);
    Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
    Debug.Print("Exception when calling SecureVendorManagementApi.VendorapiSecureMerchantsVendorsPostWithHttpInfo: " + e.Message);
    Debug.Print("Status Code: " + e.ErrorCode);
    Debug.Print(e.StackTrace);
}

Parameters

Name Type Description Notes
xApiKey string an authorization header
xAppKey string an authorization header
xVersion float x-version
origin string origin
vendorRequestDTO VendorRequestDTO VendorRequestDTO

Return type

SecureVendorResponseDTO

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful operation -
400 Bad Request -
404 Not Found -
500 Internal Server Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

VendorapiSecureMerchantsVendorsSearchPost

PageVendorResponseDTO VendorapiSecureMerchantsVendorsSearchPost (string xApiKey, string xAppKey, float xVersion, string origin, string paymentMethodType = null, string attention = null, string vendorId = null, string vendorName = null, string vendorStatus = null, string createdBy = null, string startDate = null, string endDate = null, int? pageSize = null, string searchText = null, string sortField = null, int? startRow = null, bool? asc = null)

This API returns list of all the Vendors of Merchant

Example

using System.Collections.Generic;
using System.Diagnostics;
using AndDoneSecureClientLibrary.Api;
using AndDoneSecureClientLibrary.Client;
using AndDoneSecureClientLibrary.Model;

namespace Example
{
    public class VendorapiSecureMerchantsVendorsSearchPostExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://api.uat.anddone.com";
            var apiInstance = new SecureVendorManagementApi(config);
            var xApiKey = "xApiKey_example";  // string | an authorization header
            var xAppKey = "xAppKey_example";  // string | an authorization header
            var xVersion = 8.14D;  // float | x-version
            var origin = "origin_example";  // string | origin
            var paymentMethodType = "Check";  // string | Set paymentMethodType (optional) 
            var attention = "attention_example";  // string | Set attention (optional) 
            var vendorId = "vendorId_example";  // string | Set vendorId (optional) 
            var vendorName = "vendorName_example";  // string | Set vendorName (optional) 
            var vendorStatus = "vendorStatus_example";  // string | Set vendorStatus (optional) 
            var createdBy = "createdBy_example";  // string | Set createdBy (optional) 
            var startDate = "startDate_example";  // string | set start Date (optional) 
            var endDate = "endDate_example";  // string | set end Date (optional) 
            var pageSize = 56;  // int? | Set PageSize (optional) 
            var searchText = "searchText_example";  // string | search Text (optional) 
            var sortField = "sortField_example";  // string | Set SortField (optional) 
            var startRow = 56;  // int? | Set StartRow (optional) 
            var asc = true;  // bool? | Set Asc (optional) 

            try
            {
                // This API returns list of all the Vendors of Merchant
                PageVendorResponseDTO result = apiInstance.VendorapiSecureMerchantsVendorsSearchPost(xApiKey, xAppKey, xVersion, origin, paymentMethodType, attention, vendorId, vendorName, vendorStatus, createdBy, startDate, endDate, pageSize, searchText, sortField, startRow, asc);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling SecureVendorManagementApi.VendorapiSecureMerchantsVendorsSearchPost: " + e.Message);
                Debug.Print("Status Code: " + e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Using the VendorapiSecureMerchantsVendorsSearchPostWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

try
{
    // This API returns list of all the Vendors of Merchant
    ApiResponse<PageVendorResponseDTO> response = apiInstance.VendorapiSecureMerchantsVendorsSearchPostWithHttpInfo(xApiKey, xAppKey, xVersion, origin, paymentMethodType, attention, vendorId, vendorName, vendorStatus, createdBy, startDate, endDate, pageSize, searchText, sortField, startRow, asc);
    Debug.Write("Status Code: " + response.StatusCode);
    Debug.Write("Response Headers: " + response.Headers);
    Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
    Debug.Print("Exception when calling SecureVendorManagementApi.VendorapiSecureMerchantsVendorsSearchPostWithHttpInfo: " + e.Message);
    Debug.Print("Status Code: " + e.ErrorCode);
    Debug.Print(e.StackTrace);
}

Parameters

Name Type Description Notes
xApiKey string an authorization header
xAppKey string an authorization header
xVersion float x-version
origin string origin
paymentMethodType string Set paymentMethodType [optional]
attention string Set attention [optional]
vendorId string Set vendorId [optional]
vendorName string Set vendorName [optional]
vendorStatus string Set vendorStatus [optional]
createdBy string Set createdBy [optional]
startDate string set start Date [optional]
endDate string set end Date [optional]
pageSize int? Set PageSize [optional]
searchText string search Text [optional]
sortField string Set SortField [optional]
startRow int? Set StartRow [optional]
asc bool? Set Asc [optional]

Return type

PageVendorResponseDTO

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful operation -
400 Bad Request -
404 Not Found -
500 Internal Server Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

VendorapiSecureMerchantsVendorsSuspendPost

void VendorapiSecureMerchantsVendorsSuspendPost (string xApiKey, string xAppKey, float xVersion, string origin, SecureVendorStatusRequestDTO secureVendorStatusRequestDTO)

This API suspends vendor into system

Example

using System.Collections.Generic;
using System.Diagnostics;
using AndDoneSecureClientLibrary.Api;
using AndDoneSecureClientLibrary.Client;
using AndDoneSecureClientLibrary.Model;

namespace Example
{
    public class VendorapiSecureMerchantsVendorsSuspendPostExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://api.uat.anddone.com";
            var apiInstance = new SecureVendorManagementApi(config);
            var xApiKey = "xApiKey_example";  // string | an authorization header
            var xAppKey = "xAppKey_example";  // string | an authorization header
            var xVersion = 8.14D;  // float | x-version
            var origin = "origin_example";  // string | origin
            var secureVendorStatusRequestDTO = new SecureVendorStatusRequestDTO(); // SecureVendorStatusRequestDTO | SecureVendorStatusRequestDTO

            try
            {
                // This API suspends vendor into system
                apiInstance.VendorapiSecureMerchantsVendorsSuspendPost(xApiKey, xAppKey, xVersion, origin, secureVendorStatusRequestDTO);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling SecureVendorManagementApi.VendorapiSecureMerchantsVendorsSuspendPost: " + e.Message);
                Debug.Print("Status Code: " + e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Using the VendorapiSecureMerchantsVendorsSuspendPostWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

try
{
    // This API suspends vendor into system
    apiInstance.VendorapiSecureMerchantsVendorsSuspendPostWithHttpInfo(xApiKey, xAppKey, xVersion, origin, secureVendorStatusRequestDTO);
}
catch (ApiException e)
{
    Debug.Print("Exception when calling SecureVendorManagementApi.VendorapiSecureMerchantsVendorsSuspendPostWithHttpInfo: " + e.Message);
    Debug.Print("Status Code: " + e.ErrorCode);
    Debug.Print(e.StackTrace);
}

Parameters

Name Type Description Notes
xApiKey string an authorization header
xAppKey string an authorization header
xVersion float x-version
origin string origin
secureVendorStatusRequestDTO SecureVendorStatusRequestDTO SecureVendorStatusRequestDTO

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

HTTP response details

Status code Description Response headers
200 Successful operation -
400 Bad Request -
404 Not Found -
500 Internal Server Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

VendorapiSecureMerchantsVendorsTimelinePost

List<VendorTimelineResponseListInner> VendorapiSecureMerchantsVendorsTimelinePost (string xApiKey, string xAppKey, float xVersion, string origin, SecureVendorTimelineRequestDTO secureVendorTimelineRequestDTO)

This API gets timeline of particular vendor

Example

using System.Collections.Generic;
using System.Diagnostics;
using AndDoneSecureClientLibrary.Api;
using AndDoneSecureClientLibrary.Client;
using AndDoneSecureClientLibrary.Model;

namespace Example
{
    public class VendorapiSecureMerchantsVendorsTimelinePostExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://api.uat.anddone.com";
            var apiInstance = new SecureVendorManagementApi(config);
            var xApiKey = "xApiKey_example";  // string | an authorization header
            var xAppKey = "xAppKey_example";  // string | an authorization header
            var xVersion = 8.14D;  // float | x-version
            var origin = "origin_example";  // string | origin
            var secureVendorTimelineRequestDTO = new SecureVendorTimelineRequestDTO(); // SecureVendorTimelineRequestDTO | SecureVendorTimelineRequestDTO

            try
            {
                // This API gets timeline of particular vendor
                List<VendorTimelineResponseListInner> result = apiInstance.VendorapiSecureMerchantsVendorsTimelinePost(xApiKey, xAppKey, xVersion, origin, secureVendorTimelineRequestDTO);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling SecureVendorManagementApi.VendorapiSecureMerchantsVendorsTimelinePost: " + e.Message);
                Debug.Print("Status Code: " + e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Using the VendorapiSecureMerchantsVendorsTimelinePostWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

try
{
    // This API gets timeline of particular vendor
    ApiResponse<List<VendorTimelineResponseListInner>> response = apiInstance.VendorapiSecureMerchantsVendorsTimelinePostWithHttpInfo(xApiKey, xAppKey, xVersion, origin, secureVendorTimelineRequestDTO);
    Debug.Write("Status Code: " + response.StatusCode);
    Debug.Write("Response Headers: " + response.Headers);
    Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
    Debug.Print("Exception when calling SecureVendorManagementApi.VendorapiSecureMerchantsVendorsTimelinePostWithHttpInfo: " + e.Message);
    Debug.Print("Status Code: " + e.ErrorCode);
    Debug.Print(e.StackTrace);
}

Parameters

Name Type Description Notes
xApiKey string an authorization header
xAppKey string an authorization header
xVersion float x-version
origin string origin
secureVendorTimelineRequestDTO SecureVendorTimelineRequestDTO SecureVendorTimelineRequestDTO

Return type

List<VendorTimelineResponseListInner>

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful operation -
400 Bad Request -
404 Not Found -
500 Internal Server Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

VendorapiSecureMerchantsVendorsUnsuspendPost

void VendorapiSecureMerchantsVendorsUnsuspendPost (string xApiKey, string xAppKey, float xVersion, string origin, SecureVendorStatusRequestDTO secureVendorStatusRequestDTO)

This API unsuspends vendor into system

Example

using System.Collections.Generic;
using System.Diagnostics;
using AndDoneSecureClientLibrary.Api;
using AndDoneSecureClientLibrary.Client;
using AndDoneSecureClientLibrary.Model;

namespace Example
{
    public class VendorapiSecureMerchantsVendorsUnsuspendPostExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://api.uat.anddone.com";
            var apiInstance = new SecureVendorManagementApi(config);
            var xApiKey = "xApiKey_example";  // string | an authorization header
            var xAppKey = "xAppKey_example";  // string | an authorization header
            var xVersion = 8.14D;  // float | x-version
            var origin = "origin_example";  // string | origin
            var secureVendorStatusRequestDTO = new SecureVendorStatusRequestDTO(); // SecureVendorStatusRequestDTO | SecureVendorStatusRequestDTO

            try
            {
                // This API unsuspends vendor into system
                apiInstance.VendorapiSecureMerchantsVendorsUnsuspendPost(xApiKey, xAppKey, xVersion, origin, secureVendorStatusRequestDTO);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling SecureVendorManagementApi.VendorapiSecureMerchantsVendorsUnsuspendPost: " + e.Message);
                Debug.Print("Status Code: " + e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Using the VendorapiSecureMerchantsVendorsUnsuspendPostWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

try
{
    // This API unsuspends vendor into system
    apiInstance.VendorapiSecureMerchantsVendorsUnsuspendPostWithHttpInfo(xApiKey, xAppKey, xVersion, origin, secureVendorStatusRequestDTO);
}
catch (ApiException e)
{
    Debug.Print("Exception when calling SecureVendorManagementApi.VendorapiSecureMerchantsVendorsUnsuspendPostWithHttpInfo: " + e.Message);
    Debug.Print("Status Code: " + e.ErrorCode);
    Debug.Print(e.StackTrace);
}

Parameters

Name Type Description Notes
xApiKey string an authorization header
xAppKey string an authorization header
xVersion float x-version
origin string origin
secureVendorStatusRequestDTO SecureVendorStatusRequestDTO SecureVendorStatusRequestDTO

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

HTTP response details

Status code Description Response headers
200 Successful operation -
400 Bad Request -
404 Not Found -
500 Internal Server Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]