/// <summary> /// Digilocker Compatible endpoint to issue document. /// </summary> /// <exception cref="MyDataMyConsent.Sdk.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pushUriRequest">Push URI request payload</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (PushUriResponse)</returns> public async System.Threading.Tasks.Task <MyDataMyConsent.Sdk.Client.ApiResponse <PushUriResponse> > DigilockerCompatIssueDocumentWithHttpInfoAsync(PushUriRequest pushUriRequest, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'pushUriRequest' is set if (pushUriRequest == null) { throw new MyDataMyConsent.Sdk.Client.ApiException(400, "Missing required parameter 'pushUriRequest' when calling DigiLockerCompatIssuerApi->DigilockerCompatIssueDocument"); } MyDataMyConsent.Sdk.Client.RequestOptions localVarRequestOptions = new MyDataMyConsent.Sdk.Client.RequestOptions(); string[] _contentTypes = new string[] { "application/xml" }; // to determine the Accept header string[] _accepts = new string[] { "application/xml" }; var localVarContentType = MyDataMyConsent.Sdk.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = MyDataMyConsent.Sdk.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.Data = pushUriRequest; // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync <PushUriResponse>("/issuer/issuedoc/1/xml", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("DigilockerCompatIssueDocument", localVarResponse); if (_exception != null) { throw _exception; } } return(localVarResponse); }
/// <summary> /// Get a Data Provider details by provider id. /// </summary> /// <exception cref="MyDataMyConsent.Sdk.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="providerId">Data provider id.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (DataProvider)</returns> public async System.Threading.Tasks.Task <MyDataMyConsent.Sdk.Client.ApiResponse <DataProvider> > GetDataProviderByIdWithHttpInfoAsync(string providerId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { MyDataMyConsent.Sdk.Client.RequestOptions localVarRequestOptions = new MyDataMyConsent.Sdk.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json", "application/xml" }; var localVarContentType = MyDataMyConsent.Sdk.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = MyDataMyConsent.Sdk.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("providerId", MyDataMyConsent.Sdk.Client.ClientUtils.ParameterToString(providerId)); // path parameter // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync <DataProvider>("/v1/data-providers/{providerId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetDataProviderById", localVarResponse); if (_exception != null) { throw _exception; } } return(localVarResponse); }
/// <summary> /// Get a Data Provider details by provider id. /// </summary> /// <exception cref="MyDataMyConsent.Sdk.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="providerId">Data provider id.</param> /// <returns>ApiResponse of DataProvider</returns> public MyDataMyConsent.Sdk.Client.ApiResponse <DataProvider> GetDataProviderByIdWithHttpInfo(string providerId) { MyDataMyConsent.Sdk.Client.RequestOptions localVarRequestOptions = new MyDataMyConsent.Sdk.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json", "application/xml" }; var localVarContentType = MyDataMyConsent.Sdk.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = MyDataMyConsent.Sdk.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("providerId", MyDataMyConsent.Sdk.Client.ClientUtils.ParameterToString(providerId)); // path parameter // make the HTTP request var localVarResponse = this.Client.Get <DataProvider>("/v1/data-providers/{providerId}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetDataProviderById", localVarResponse); if (_exception != null) { throw _exception; } } return(localVarResponse); }
/// <summary> /// Get all supported identifiers by country. Get all supported identifiers by country. /// </summary> /// <exception cref="MyDataMyConsent.Sdk.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="countryIso2Code">Country ISO 2 code.</param> /// <returns>ApiResponse of SupportedIdentifier</returns> public MyDataMyConsent.Sdk.Client.ApiResponse <SupportedIdentifier> GetAllSupportedIdentifiersWithHttpInfo(string countryIso2Code) { MyDataMyConsent.Sdk.Client.RequestOptions localVarRequestOptions = new MyDataMyConsent.Sdk.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json" }; var localVarContentType = MyDataMyConsent.Sdk.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = MyDataMyConsent.Sdk.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("countryIso2Code", MyDataMyConsent.Sdk.Client.ClientUtils.ParameterToString(countryIso2Code)); // path parameter // make the HTTP request var localVarResponse = this.Client.Get <SupportedIdentifier>("/v1/supported-identifiers/{countryIso2Code}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetAllSupportedIdentifiers", localVarResponse); if (_exception != null) { throw _exception; } } return(localVarResponse); }
/// <summary> /// Discover all data providers in My Data My Consent by country and filters. /// </summary> /// <exception cref="MyDataMyConsent.Sdk.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="accountType">Account type. (optional)</param> /// <param name="documentType">Document type. (optional)</param> /// <param name="organizationCategory">Organization category. (optional)</param> /// <param name="pageNo">Page number. (optional, default to 1)</param> /// <param name="pageSize">Number of items to return. (optional, default to 25)</param> /// <param name="countryIso2Code">ISO2 Country code. (optional, default to "IN")</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (DataProviderPaginatedList)</returns> public async System.Threading.Tasks.Task <MyDataMyConsent.Sdk.Client.ApiResponse <DataProviderPaginatedList> > GetDataProvidersWithHttpInfoAsync(string?accountType = default(string?), string?documentType = default(string?), string?organizationCategory = default(string?), int?pageNo = default(int?), int?pageSize = default(int?), string?countryIso2Code = default(string?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { MyDataMyConsent.Sdk.Client.RequestOptions localVarRequestOptions = new MyDataMyConsent.Sdk.Client.RequestOptions(); string[] _contentTypes = new string[] { }; // to determine the Accept header string[] _accepts = new string[] { "application/json", "application/xml" }; var localVarContentType = MyDataMyConsent.Sdk.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = MyDataMyConsent.Sdk.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } if (accountType != null) { localVarRequestOptions.QueryParameters.Add(MyDataMyConsent.Sdk.Client.ClientUtils.ParameterToMultiMap("", "accountType", accountType)); } if (documentType != null) { localVarRequestOptions.QueryParameters.Add(MyDataMyConsent.Sdk.Client.ClientUtils.ParameterToMultiMap("", "documentType", documentType)); } if (organizationCategory != null) { localVarRequestOptions.QueryParameters.Add(MyDataMyConsent.Sdk.Client.ClientUtils.ParameterToMultiMap("", "organizationCategory", organizationCategory)); } if (pageNo != null) { localVarRequestOptions.QueryParameters.Add(MyDataMyConsent.Sdk.Client.ClientUtils.ParameterToMultiMap("", "pageNo", pageNo)); } if (pageSize != null) { localVarRequestOptions.QueryParameters.Add(MyDataMyConsent.Sdk.Client.ClientUtils.ParameterToMultiMap("", "pageSize", pageSize)); } if (countryIso2Code != null) { localVarRequestOptions.QueryParameters.Add(MyDataMyConsent.Sdk.Client.ClientUtils.ParameterToMultiMap("", "countryIso2Code", countryIso2Code)); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync <DataProviderPaginatedList>("/v1/data-providers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetDataProviders", localVarResponse); if (_exception != null) { throw _exception; } } return(localVarResponse); }