@@ -48,6 +48,29 @@ public interface ISymmetricKeyManagementApi : IApiAccessor
4848 /// <returns>ApiResponse of KmsV2KeysSymPost201Response</returns>
4949 ApiResponse < KmsV2KeysSymPost201Response > CreateV2SharedSecretKeysWithHttpInfo ( CreateSharedSecretKeysRequest createSharedSecretKeysRequest ) ;
5050 /// <summary>
51+ /// Create Shared-Secret Keys as per verifi spec
52+ /// </summary>
53+ /// <remarks>
54+ /// Create one or more Shared-Secret Keys as per Verifi spec with 32 chars, store digest algo during key generation.
55+ /// </remarks>
56+ /// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception>
57+ /// <param name="vIcDomain">domain</param>
58+ /// <param name="createSharedSecretKeysRequest"></param>
59+ /// <returns>KmsV2KeysSymPost201Response</returns>
60+ KmsV2KeysSymPost201Response CreateV2SharedSecretKeysVerifi ( string vIcDomain , CreateSharedSecretKeysRequest1 createSharedSecretKeysRequest ) ;
61+
62+ /// <summary>
63+ /// Create Shared-Secret Keys as per verifi spec
64+ /// </summary>
65+ /// <remarks>
66+ /// Create one or more Shared-Secret Keys as per Verifi spec with 32 chars, store digest algo during key generation.
67+ /// </remarks>
68+ /// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception>
69+ /// <param name="vIcDomain">domain</param>
70+ /// <param name="createSharedSecretKeysRequest"></param>
71+ /// <returns>ApiResponse of KmsV2KeysSymPost201Response</returns>
72+ ApiResponse < KmsV2KeysSymPost201Response > CreateV2SharedSecretKeysVerifiWithHttpInfo ( string vIcDomain , CreateSharedSecretKeysRequest1 createSharedSecretKeysRequest ) ;
73+ /// <summary>
5174 /// Delete one or more Symmetric keys
5275 /// </summary>
5376 /// <remarks>
@@ -113,6 +136,29 @@ public interface ISymmetricKeyManagementApi : IApiAccessor
113136 /// <returns>Task of ApiResponse (KmsV2KeysSymPost201Response)</returns>
114137 System . Threading . Tasks . Task < ApiResponse < KmsV2KeysSymPost201Response > > CreateV2SharedSecretKeysAsyncWithHttpInfo ( CreateSharedSecretKeysRequest createSharedSecretKeysRequest ) ;
115138 /// <summary>
139+ /// Create Shared-Secret Keys as per verifi spec
140+ /// </summary>
141+ /// <remarks>
142+ /// Create one or more Shared-Secret Keys as per Verifi spec with 32 chars, store digest algo during key generation.
143+ /// </remarks>
144+ /// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception>
145+ /// <param name="vIcDomain">domain</param>
146+ /// <param name="createSharedSecretKeysRequest"></param>
147+ /// <returns>Task of KmsV2KeysSymPost201Response</returns>
148+ System . Threading . Tasks . Task < KmsV2KeysSymPost201Response > CreateV2SharedSecretKeysVerifiAsync ( string vIcDomain , CreateSharedSecretKeysRequest1 createSharedSecretKeysRequest ) ;
149+
150+ /// <summary>
151+ /// Create Shared-Secret Keys as per verifi spec
152+ /// </summary>
153+ /// <remarks>
154+ /// Create one or more Shared-Secret Keys as per Verifi spec with 32 chars, store digest algo during key generation.
155+ /// </remarks>
156+ /// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception>
157+ /// <param name="vIcDomain">domain</param>
158+ /// <param name="createSharedSecretKeysRequest"></param>
159+ /// <returns>Task of ApiResponse (KmsV2KeysSymPost201Response)</returns>
160+ System . Threading . Tasks . Task < ApiResponse < KmsV2KeysSymPost201Response > > CreateV2SharedSecretKeysVerifiAsyncWithHttpInfo ( string vIcDomain , CreateSharedSecretKeysRequest1 createSharedSecretKeysRequest ) ;
161+ /// <summary>
116162 /// Delete one or more Symmetric keys
117163 /// </summary>
118164 /// <remarks>
@@ -467,6 +513,222 @@ public async System.Threading.Tasks.Task<ApiResponse<KmsV2KeysSymPost201Response
467513 ( KmsV2KeysSymPost201Response ) Configuration . ApiClient . Deserialize ( localVarResponse , typeof ( KmsV2KeysSymPost201Response ) ) ) ; // Return statement
468514 }
469515 /// <summary>
516+ /// Create Shared-Secret Keys as per verifi spec Create one or more Shared-Secret Keys as per Verifi spec with 32 chars, store digest algo during key generation.
517+ /// </summary>
518+ /// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception>
519+ /// <param name="vIcDomain">domain</param>
520+ /// <param name="createSharedSecretKeysRequest"></param>
521+ /// <returns>KmsV2KeysSymPost201Response</returns>
522+ public KmsV2KeysSymPost201Response CreateV2SharedSecretKeysVerifi ( string vIcDomain , CreateSharedSecretKeysRequest1 createSharedSecretKeysRequest )
523+ {
524+ logger . Debug ( "CALLING API \" CreateV2SharedSecretKeysVerifi\" STARTED" ) ;
525+ ApiResponse < KmsV2KeysSymPost201Response > localVarResponse = CreateV2SharedSecretKeysVerifiWithHttpInfo ( vIcDomain , createSharedSecretKeysRequest ) ;
526+ logger . Debug ( "CALLING API \" CreateV2SharedSecretKeysVerifi\" ENDED" ) ;
527+ return localVarResponse . Data ;
528+ }
529+
530+ /// <summary>
531+ /// Create Shared-Secret Keys as per verifi spec Create one or more Shared-Secret Keys as per Verifi spec with 32 chars, store digest algo during key generation.
532+ /// </summary>
533+ /// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception>
534+ /// <param name="vIcDomain">domain</param>
535+ /// <param name="createSharedSecretKeysRequest"></param>
536+ /// <returns>ApiResponse of KmsV2KeysSymPost201Response</returns>
537+ public ApiResponse < KmsV2KeysSymPost201Response > CreateV2SharedSecretKeysVerifiWithHttpInfo ( string vIcDomain , CreateSharedSecretKeysRequest1 createSharedSecretKeysRequest )
538+ {
539+ LogUtility logUtility = new LogUtility ( ) ;
540+
541+ // verify the required parameter 'vIcDomain' is set
542+ if ( vIcDomain == null )
543+ {
544+ logger . Error ( "ApiException : Missing required parameter 'vIcDomain' when calling SymmetricKeyManagementApi->CreateV2SharedSecretKeysVerifi" ) ;
545+ throw new ApiException ( 400 , "Missing required parameter 'vIcDomain' when calling SymmetricKeyManagementApi->CreateV2SharedSecretKeysVerifi" ) ;
546+ }
547+ // verify the required parameter 'createSharedSecretKeysRequest' is set
548+ if ( createSharedSecretKeysRequest == null )
549+ {
550+ logger . Error ( "ApiException : Missing required parameter 'createSharedSecretKeysRequest' when calling SymmetricKeyManagementApi->CreateV2SharedSecretKeysVerifi" ) ;
551+ throw new ApiException ( 400 , "Missing required parameter 'createSharedSecretKeysRequest' when calling SymmetricKeyManagementApi->CreateV2SharedSecretKeysVerifi" ) ;
552+ }
553+
554+ var localVarPath = $ "/kms/v2/keys-sym/verifi";
555+ var localVarPathParams = new Dictionary < string , string > ( ) ;
556+ var localVarQueryParams = new Dictionary < string , string > ( ) ;
557+ var localVarHeaderParams = new Dictionary < string , string > ( Configuration . DefaultHeader ) ;
558+ var localVarFormParams = new Dictionary < string , string > ( ) ;
559+ var localVarFileParams = new Dictionary < string , FileParameter > ( ) ;
560+ object localVarPostBody = null ;
561+
562+ // to determine the Content-Type header
563+ string [ ] localVarHttpContentTypes = new string [ ] {
564+ "application/json;charset=utf-8"
565+ } ;
566+ string localVarHttpContentType = Configuration . ApiClient . SelectHeaderContentType ( localVarHttpContentTypes ) ;
567+
568+ // to determine the Accept header
569+ string [ ] localVarHttpHeaderAccepts = new string [ ] {
570+ "application/hal+json;charset=utf-8"
571+ } ;
572+ string localVarHttpHeaderAccept = Configuration . ApiClient . SelectHeaderAccept ( localVarHttpHeaderAccepts ) ;
573+ if ( localVarHttpHeaderAccept != null )
574+ {
575+ localVarHeaderParams . Add ( "Accept" , localVarHttpHeaderAccept ) ;
576+ }
577+
578+ if ( vIcDomain != null )
579+ {
580+ localVarHeaderParams . Add ( "v-ic-domain" , Configuration . ApiClient . ParameterToString ( vIcDomain ) ) ; // header parameter
581+ }
582+ if ( createSharedSecretKeysRequest != null && createSharedSecretKeysRequest . GetType ( ) != typeof ( byte [ ] ) )
583+ {
584+ localVarPostBody = Configuration . ApiClient . Serialize ( createSharedSecretKeysRequest ) ; // http body (model) parameter
585+ }
586+ else
587+ {
588+ localVarPostBody = createSharedSecretKeysRequest ; // byte array
589+ }
590+
591+ if ( logUtility . IsMaskingEnabled ( logger ) )
592+ {
593+ logger . Debug ( $ "HTTP Request Body :\n { logUtility . MaskSensitiveData ( localVarPostBody . ToString ( ) ) } ") ;
594+ }
595+ else
596+ {
597+ logger . Debug ( $ "HTTP Request Body :\n { localVarPostBody } ") ;
598+ }
599+
600+
601+ // make the HTTP request
602+ IRestResponse localVarResponse = ( IRestResponse ) Configuration . ApiClient . CallApi ( localVarPath ,
603+ Method . POST , localVarQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarFileParams ,
604+ localVarPathParams , localVarHttpContentType ) ;
605+
606+ int localVarStatusCode = ( int ) localVarResponse . StatusCode ;
607+
608+ if ( ExceptionFactory != null )
609+ {
610+ Exception exception = ExceptionFactory ( "CreateV2SharedSecretKeysVerifi" , localVarResponse ) ;
611+ if ( exception != null )
612+ {
613+ logger . Error ( $ "Exception : { exception . Message } ") ;
614+ throw exception ;
615+ }
616+ }
617+
618+ return new ApiResponse < KmsV2KeysSymPost201Response > ( localVarStatusCode ,
619+ localVarResponse . Headers . ToDictionary ( x => x . Name , x => x . Value . ToString ( ) ) ,
620+ ( KmsV2KeysSymPost201Response ) Configuration . ApiClient . Deserialize ( localVarResponse , typeof ( KmsV2KeysSymPost201Response ) ) ) ; // Return statement
621+ }
622+
623+ /// <summary>
624+ /// Create Shared-Secret Keys as per verifi spec Create one or more Shared-Secret Keys as per Verifi spec with 32 chars, store digest algo during key generation.
625+ /// </summary>
626+ /// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception>
627+ /// <param name="vIcDomain">domain</param>
628+ /// <param name="createSharedSecretKeysRequest"></param>
629+ /// <returns>Task of KmsV2KeysSymPost201Response</returns>
630+ public async System . Threading . Tasks . Task < KmsV2KeysSymPost201Response > CreateV2SharedSecretKeysVerifiAsync ( string vIcDomain , CreateSharedSecretKeysRequest1 createSharedSecretKeysRequest )
631+ {
632+ logger . Debug ( "CALLING API \" CreateV2SharedSecretKeysVerifiAsync\" STARTED" ) ;
633+ ApiResponse < KmsV2KeysSymPost201Response > localVarResponse = await CreateV2SharedSecretKeysVerifiAsyncWithHttpInfo ( vIcDomain , createSharedSecretKeysRequest ) ;
634+ logger . Debug ( "CALLING API \" CreateV2SharedSecretKeysVerifiAsync\" STARTED" ) ;
635+ return localVarResponse . Data ;
636+
637+ }
638+
639+ /// <summary>
640+ /// Create Shared-Secret Keys as per verifi spec Create one or more Shared-Secret Keys as per Verifi spec with 32 chars, store digest algo during key generation.
641+ /// </summary>
642+ /// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception>
643+ /// <param name="vIcDomain">domain</param>
644+ /// <param name="createSharedSecretKeysRequest"></param>
645+ /// <returns>Task of ApiResponse (KmsV2KeysSymPost201Response)</returns>
646+ public async System . Threading . Tasks . Task < ApiResponse < KmsV2KeysSymPost201Response > > CreateV2SharedSecretKeysVerifiAsyncWithHttpInfo ( string vIcDomain , CreateSharedSecretKeysRequest1 createSharedSecretKeysRequest )
647+ {
648+ LogUtility logUtility = new LogUtility ( ) ;
649+
650+ // verify the required parameter 'vIcDomain' is set
651+ if ( vIcDomain == null )
652+ {
653+ logger . Error ( "ApiException : Missing required parameter 'vIcDomain' when calling SymmetricKeyManagementApi->CreateV2SharedSecretKeysVerifi" ) ;
654+ throw new ApiException ( 400 , "Missing required parameter 'vIcDomain' when calling SymmetricKeyManagementApi->CreateV2SharedSecretKeysVerifi" ) ;
655+ }
656+ // verify the required parameter 'createSharedSecretKeysRequest' is set
657+ if ( createSharedSecretKeysRequest == null )
658+ {
659+ logger . Error ( "ApiException : Missing required parameter 'createSharedSecretKeysRequest' when calling SymmetricKeyManagementApi->CreateV2SharedSecretKeysVerifi" ) ;
660+ throw new ApiException ( 400 , "Missing required parameter 'createSharedSecretKeysRequest' when calling SymmetricKeyManagementApi->CreateV2SharedSecretKeysVerifi" ) ;
661+ }
662+
663+ var localVarPath = $ "/kms/v2/keys-sym/verifi";
664+ var localVarPathParams = new Dictionary < string , string > ( ) ;
665+ var localVarQueryParams = new Dictionary < string , string > ( ) ;
666+ var localVarHeaderParams = new Dictionary < string , string > ( Configuration . DefaultHeader ) ;
667+ var localVarFormParams = new Dictionary < string , string > ( ) ;
668+ var localVarFileParams = new Dictionary < string , FileParameter > ( ) ;
669+ object localVarPostBody = null ;
670+
671+ // to determine the Content-Type header
672+ string [ ] localVarHttpContentTypes = new string [ ] {
673+ "application/json;charset=utf-8"
674+ } ;
675+ string localVarHttpContentType = Configuration . ApiClient . SelectHeaderContentType ( localVarHttpContentTypes ) ;
676+
677+ // to determine the Accept header
678+ string [ ] localVarHttpHeaderAccepts = new string [ ] {
679+ "application/hal+json;charset=utf-8"
680+ } ;
681+ string localVarHttpHeaderAccept = Configuration . ApiClient . SelectHeaderAccept ( localVarHttpHeaderAccepts ) ;
682+ if ( localVarHttpHeaderAccept != null )
683+ {
684+ localVarHeaderParams . Add ( "Accept" , localVarHttpHeaderAccept ) ;
685+ }
686+
687+ if ( vIcDomain != null )
688+ {
689+ localVarHeaderParams . Add ( "v-ic-domain" , Configuration . ApiClient . ParameterToString ( vIcDomain ) ) ; // header parameter
690+ }
691+ if ( createSharedSecretKeysRequest != null && createSharedSecretKeysRequest . GetType ( ) != typeof ( byte [ ] ) )
692+ {
693+ localVarPostBody = Configuration . ApiClient . Serialize ( createSharedSecretKeysRequest ) ; // http body (model) parameter
694+ }
695+ else
696+ {
697+ localVarPostBody = createSharedSecretKeysRequest ; // byte array
698+ }
699+
700+ if ( logUtility . IsMaskingEnabled ( logger ) )
701+ {
702+ logger . Debug ( $ "HTTP Request Body :\n { logUtility . MaskSensitiveData ( localVarPostBody . ToString ( ) ) } ") ;
703+ }
704+ else
705+ {
706+ logger . Debug ( $ "HTTP Request Body :\n { localVarPostBody } ") ;
707+ }
708+
709+
710+ // make the HTTP request
711+ IRestResponse localVarResponse = ( IRestResponse ) await Configuration . ApiClient . CallApiAsync ( localVarPath ,
712+ Method . POST , localVarQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarFileParams ,
713+ localVarPathParams , localVarHttpContentType ) ;
714+
715+ int localVarStatusCode = ( int ) localVarResponse . StatusCode ;
716+
717+ if ( ExceptionFactory != null )
718+ {
719+ Exception exception = ExceptionFactory ( "CreateV2SharedSecretKeysVerifi" , localVarResponse ) ;
720+ if ( exception != null )
721+ {
722+ logger . Error ( $ "Exception : { exception . Message } ") ;
723+ throw exception ;
724+ }
725+ }
726+
727+ return new ApiResponse < KmsV2KeysSymPost201Response > ( localVarStatusCode ,
728+ localVarResponse . Headers . ToDictionary ( x => x . Name , x => x . Value . ToString ( ) ) ,
729+ ( KmsV2KeysSymPost201Response ) Configuration . ApiClient . Deserialize ( localVarResponse , typeof ( KmsV2KeysSymPost201Response ) ) ) ; // Return statement
730+ }
731+ /// <summary>
470732 /// Delete one or more Symmetric keys 'Delete one or more Symmetric keys'
471733 /// </summary>
472734 /// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception>
0 commit comments