Skip to content

Commit

Permalink
Added attributes to post requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Nesterov committed Apr 29, 2020
1 parent 4560636 commit ff84969
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public Task<List<string>> GetPaymentIntegrationSupportedCurrenciesAsync()
/// <param name="request">Check payment integration request</param>
[HttpPost("check")]
[ProducesResponseType(typeof(CheckIntegrationErrorCode), (int)HttpStatusCode.OK)]
public async Task<CheckIntegrationErrorCode> CheckPaymentIntegrationAsync(CheckPaymentIntegrationRequest request)
public async Task<CheckIntegrationErrorCode> CheckPaymentIntegrationAsync([FromBody] CheckPaymentIntegrationRequest request)
{
var integrationProperties = await _partnerIntegrationPropertiesFetcherService.FetchPropertiesAsync(request.PartnerId);
if (integrationProperties.ErrorCode != IntegrationPropertiesErrorCode.None)
Expand Down Expand Up @@ -98,7 +98,7 @@ public async Task<CheckIntegrationErrorCode> CheckPaymentIntegrationAsync(CheckP
/// <param name="request">Payment generation request</param>
[HttpPost]
[ProducesResponseType(typeof(PaymentResponse), (int)HttpStatusCode.OK)]
public async Task<PaymentResponse> GeneratePaymentAsync(GeneratePaymentRequest request)
public async Task<PaymentResponse> GeneratePaymentAsync([FromBody] GeneratePaymentRequest request)
{
var integrationProperties = await _partnerIntegrationPropertiesFetcherService.FetchPropertiesAsync(request.PartnerId);
if (integrationProperties.ErrorCode != IntegrationPropertiesErrorCode.None)
Expand Down

0 comments on commit ff84969

Please sign in to comment.