/// <summary> /// Obtain time and price estimations for a delivery asynchronously. /// </summary> /// <param name="input">The details to create the quote.</param> /// <param name="cancellationToken">The cancellation token.</param> /// <returns>A <see cref="QuoteResponse"/> containing a quote.</returns> public Task <QuoteResponse> CreateAsync(QuoteCreateInput input, CancellationToken cancellationToken = default) { Ensure.NotNull(input, nameof(input)); return(PostRequestAsync <QuoteResponse>(string.Empty, input, cancellationToken)); }
/// <summary> /// Obtain time and price estimations for a delivery. /// </summary> /// <param name="input">The details to create the quote.</param> /// <returns>A <see cref="QuoteResponse"/> containing a quote.</returns> public QuoteResponse Create(QuoteCreateInput input) { Ensure.NotNull(input, nameof(input)); return(PostRequest <QuoteResponse>(string.Empty, input)); }