/// <summary>
        /// Migrate &lt;p align&#x3D;\&quot;right\&quot;&gt;status: &lt;strong&gt;disabled&lt;/strong&gt;&lt;/p&gt; &lt;strong&gt;⚠️IMPORTANT⚠️&lt;/strong&gt; This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon.  &lt;hr/&gt;  Submit one or more transactions which transfers all funds from a Shelley wallet to a set of addresses.  This operation attempts to preserve the UTxO \&quot;shape\&quot; of a wallet as far as possible. That is, coins will not be agglomerated. Therefore, if the wallet has a large UTxO set, several transactions may be needed.  A typical usage would be when one wants to move all funds from an old wallet to another by providing addresses coming from the new wallet.
        /// </summary>
        /// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="body"></param>
        /// <param name="walletId"></param>
        /// <returns>Task of List&lt;InlineResponse2004&gt;</returns>
        public async System.Threading.Tasks.Task <List <InlineResponse2004> > MigrateShelleyWalletAsync(Body11 body, string walletId)
        {
            ApiResponse <List <InlineResponse2004> > localVarResponse = await MigrateShelleyWalletAsyncWithHttpInfo(body, walletId);

            return(localVarResponse.Data);
        }
        /// <summary>
        /// Migrate &lt;p align&#x3D;\&quot;right\&quot;&gt;status: &lt;strong&gt;disabled&lt;/strong&gt;&lt;/p&gt; &lt;strong&gt;⚠️IMPORTANT⚠️&lt;/strong&gt; This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon.  &lt;hr/&gt;  Submit one or more transactions which transfers all funds from a Shelley wallet to a set of addresses.  This operation attempts to preserve the UTxO \&quot;shape\&quot; of a wallet as far as possible. That is, coins will not be agglomerated. Therefore, if the wallet has a large UTxO set, several transactions may be needed.  A typical usage would be when one wants to move all funds from an old wallet to another by providing addresses coming from the new wallet.
        /// </summary>
        /// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="body"></param>
        /// <param name="walletId"></param>
        /// <returns>Task of ApiResponse (List&lt;InlineResponse2004&gt;)</returns>
        public async System.Threading.Tasks.Task <ApiResponse <List <InlineResponse2004> > > MigrateShelleyWalletAsyncWithHttpInfo(Body11 body, string walletId)
        {
            // verify the required parameter 'body' is set
            if (body == null)
            {
                throw new ApiException(400, "Missing required parameter 'body' when calling MigrationsApi->MigrateShelleyWallet");
            }
            // verify the required parameter 'walletId' is set
            if (walletId == null)
            {
                throw new ApiException(400, "Missing required parameter 'walletId' when calling MigrationsApi->MigrateShelleyWallet");
            }

            var    localVarPath         = "/wallets/{walletId}/migrations";
            var    localVarPathParams   = new Dictionary <String, String>();
            var    localVarQueryParams  = new List <KeyValuePair <String, String> >();
            var    localVarHeaderParams = new Dictionary <String, String>(this.Configuration.DefaultHeader);
            var    localVarFormParams   = new Dictionary <String, String>();
            var    localVarFileParams   = new Dictionary <String, FileParameter>();
            Object localVarPostBody     = null;

            // to determine the Content-Type header
            String[] localVarHttpContentTypes = new String[] {
                "application/json"
            };
            String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);

            // to determine the Accept header
            String[] localVarHttpHeaderAccepts = new String[] {
                "application/json"
            };
            String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);

            if (localVarHttpHeaderAccept != null)
            {
                localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
            }

            if (walletId != null)
            {
                localVarPathParams.Add("walletId", this.Configuration.ApiClient.ParameterToString(walletId));                   // path parameter
            }
            if (body != null && body.GetType() != typeof(byte[]))
            {
                localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
            }
            else
            {
                localVarPostBody = body; // byte array
            }

            // make the HTTP request
            IRestResponse localVarResponse = (IRestResponse)await this.Configuration.ApiClient.CallApiAsync(localVarPath,
                                                                                                            Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
                                                                                                            localVarPathParams, localVarHttpContentType);

            int localVarStatusCode = (int)localVarResponse.StatusCode;

            if (ExceptionFactory != null)
            {
                Exception exception = ExceptionFactory("MigrateShelleyWallet", localVarResponse);
                if (exception != null)
                {
                    throw exception;
                }
            }

            return(new ApiResponse <List <InlineResponse2004> >(localVarStatusCode,
                                                                localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
                                                                (List <InlineResponse2004>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List <InlineResponse2004>))));
        }
        /// <summary>
        /// Migrate &lt;p align&#x3D;\&quot;right\&quot;&gt;status: &lt;strong&gt;disabled&lt;/strong&gt;&lt;/p&gt; &lt;strong&gt;⚠️IMPORTANT⚠️&lt;/strong&gt; This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon.  &lt;hr/&gt;  Submit one or more transactions which transfers all funds from a Shelley wallet to a set of addresses.  This operation attempts to preserve the UTxO \&quot;shape\&quot; of a wallet as far as possible. That is, coins will not be agglomerated. Therefore, if the wallet has a large UTxO set, several transactions may be needed.  A typical usage would be when one wants to move all funds from an old wallet to another by providing addresses coming from the new wallet.
        /// </summary>
        /// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="body"></param>
        /// <param name="walletId"></param>
        /// <returns>List&lt;InlineResponse2004&gt;</returns>
        public List <InlineResponse2004> MigrateShelleyWallet(Body11 body, string walletId)
        {
            ApiResponse <List <InlineResponse2004> > localVarResponse = MigrateShelleyWalletWithHttpInfo(body, walletId);

            return(localVarResponse.Data);
        }