Skip to content

Commit

Permalink
SetPrepDetailsRequest construct change to public
Browse files Browse the repository at this point in the history
  • Loading branch information
yzi committed Oct 17, 2024
1 parent 0e95a03 commit 8d3b3bb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public partial class MskuPrepDetailInput : IEquatable<MskuPrepDetailInput>, IVal
/// Initializes a new instance of the <see cref="MskuPrepDetailInput" /> class.
/// </summary>
[JsonConstructorAttribute]
protected MskuPrepDetailInput() { }
public MskuPrepDetailInput() { }
/// <summary>
/// Initializes a new instance of the <see cref="MskuPrepDetailInput" /> class.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public partial class SetPrepDetailsRequest : IEquatable<SetPrepDetailsRequest>,
/// Initializes a new instance of the <see cref="SetPrepDetailsRequest" /> class.
/// </summary>
[JsonConstructorAttribute]
protected SetPrepDetailsRequest() { }
public SetPrepDetailsRequest() { }
/// <summary>
/// Initializes a new instance of the <see cref="SetPrepDetailsRequest" /> class.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -949,6 +949,11 @@ public SetPrepDetailsResponse SetPrepDetails(SetPrepDetailsRequest setPrepDetail

public async Task<SetPrepDetailsResponse> SetPrepDetailsAsync(SetPrepDetailsRequest setPrepDetailsRequest, CancellationToken cancellationToken = default)
{
if (string.IsNullOrWhiteSpace(setPrepDetailsRequest.MarketplaceId))
{
setPrepDetailsRequest.MarketplaceId = AmazonCredential.MarketPlace.ID;
}

await CreateAuthorizedRequestAsync(FulFillmentInboundApiUrls.SetPrepDetails, RestSharp.Method.Post, postJsonObj: setPrepDetailsRequest, cancellationToken: cancellationToken);
return await ExecuteRequestAsync<SetPrepDetailsResponse>(RateLimitType.FulFillmentInboundV20240320_SetPrepDetails, cancellationToken);
}
Expand Down

0 comments on commit 8d3b3bb

Please sign in to comment.