@@ -687,22 +687,28 @@ class TransactionService {
687687 * @summary Fetch Possible Payment Methods
688688 * @param spaceId
689689 * @param id The id of the transaction which should be returned.
690+ * @param integrationMode The integration mode defines the type of integration that is applied on the transaction.
690691 * @param {* } [options] Override http request options.
691692 */
692- public fetchPossiblePaymentMethods ( spaceId : number , id : number , options : any = { } ) : Promise < { response : http . IncomingMessage ; body : Array < PaymentMethodConfiguration > ; } > {
693- const localVarPath = this . basePath + '/transaction/fetchPossiblePaymentMethods ' ;
693+ public fetchPaymentMethods ( spaceId : number , id : number , integrationMode : string , options : any = { } ) : Promise < { response : http . IncomingMessage ; body : Array < PaymentMethodConfiguration > ; } > {
694+ const localVarPath = this . basePath + '/transaction/fetch-payment-methods ' ;
694695 let localVarQueryParameters : any = { } ;
695696 let localVarHeaderParams : any = ( < any > Object ) . assign ( { } , this . defaultHeaders ) ;
696697 let localVarFormParams : any = { } ;
697698
698699 // verify required parameter 'spaceId' is not null or undefined
699700 if ( spaceId === null || spaceId === undefined ) {
700- throw new Error ( 'Required parameter spaceId was null or undefined when calling fetchPossiblePaymentMethods .' ) ;
701+ throw new Error ( 'Required parameter spaceId was null or undefined when calling fetchPaymentMethods .' ) ;
701702 }
702703
703704 // verify required parameter 'id' is not null or undefined
704705 if ( id === null || id === undefined ) {
705- throw new Error ( 'Required parameter id was null or undefined when calling fetchPossiblePaymentMethods.' ) ;
706+ throw new Error ( 'Required parameter id was null or undefined when calling fetchPaymentMethods.' ) ;
707+ }
708+
709+ // verify required parameter 'integrationMode' is not null or undefined
710+ if ( integrationMode === null || integrationMode === undefined ) {
711+ throw new Error ( 'Required parameter integrationMode was null or undefined when calling fetchPaymentMethods.' ) ;
706712 }
707713
708714 if ( spaceId !== undefined ) {
@@ -713,6 +719,10 @@ class TransactionService {
713719 localVarQueryParameters [ 'id' ] = ObjectSerializer . serialize ( id , "number" ) ;
714720 }
715721
722+ if ( integrationMode !== undefined ) {
723+ localVarQueryParameters [ 'integrationMode' ] = ObjectSerializer . serialize ( integrationMode , "string" ) ;
724+ }
725+
716726 ( < any > Object ) . assign ( localVarHeaderParams , options . headers ) ;
717727
718728 let localVarUseFormData = false ;
@@ -780,23 +790,33 @@ class TransactionService {
780790 * This operation allows to get the payment method configurations which can be used with the provided transaction.
781791 * @summary Fetch Possible Payment Methods with Credentials
782792 * @param credentials The credentials identifies the transaction and contains the security details which grants the access this operation.
793+ * @param integrationMode The integration mode defines the type of integration that is applied on the transaction.
783794 * @param {* } [options] Override http request options.
784795 */
785- public fetchPossiblePaymentMethodsWithCredentials ( credentials : string , options : any = { } ) : Promise < { response : http . IncomingMessage ; body : Array < PaymentMethodConfiguration > ; } > {
786- const localVarPath = this . basePath + '/transaction/fetchPossiblePaymentMethodsWithCredentials ' ;
796+ public fetchPaymentMethodsWithCredentials ( credentials : string , integrationMode : string , options : any = { } ) : Promise < { response : http . IncomingMessage ; body : Array < PaymentMethodConfiguration > ; } > {
797+ const localVarPath = this . basePath + '/transaction/fetch-payment-methods-with-credentials ' ;
787798 let localVarQueryParameters : any = { } ;
788799 let localVarHeaderParams : any = ( < any > Object ) . assign ( { } , this . defaultHeaders ) ;
789800 let localVarFormParams : any = { } ;
790801
791802 // verify required parameter 'credentials' is not null or undefined
792803 if ( credentials === null || credentials === undefined ) {
793- throw new Error ( 'Required parameter credentials was null or undefined when calling fetchPossiblePaymentMethodsWithCredentials.' ) ;
804+ throw new Error ( 'Required parameter credentials was null or undefined when calling fetchPaymentMethodsWithCredentials.' ) ;
805+ }
806+
807+ // verify required parameter 'integrationMode' is not null or undefined
808+ if ( integrationMode === null || integrationMode === undefined ) {
809+ throw new Error ( 'Required parameter integrationMode was null or undefined when calling fetchPaymentMethodsWithCredentials.' ) ;
794810 }
795811
796812 if ( credentials !== undefined ) {
797813 localVarQueryParameters [ 'credentials' ] = ObjectSerializer . serialize ( credentials , "string" ) ;
798814 }
799815
816+ if ( integrationMode !== undefined ) {
817+ localVarQueryParameters [ 'integrationMode' ] = ObjectSerializer . serialize ( integrationMode , "string" ) ;
818+ }
819+
800820 ( < any > Object ) . assign ( localVarHeaderParams , options . headers ) ;
801821
802822 let localVarUseFormData = false ;
0 commit comments