/// <summary> /// Get the details of a delivery asynchronously. /// </summary> /// <param name="input">The input required to obtain the details of a delivery.</param> /// <param name="cancellationToken">The cancellation token.</param> /// <returns>The details of the requested delivery.</returns> public Task <DeliveryDetails> GetAsync(DeliveryGetInput input, CancellationToken cancellationToken = default) { Ensure.NotNull(input, nameof(input)); return(GetRequestAsync <DeliveryDetails>(input.Id.ToString(), input, cancellationToken)); }
/// <summary> /// Get the details of a delivery. /// </summary> /// <param name="input">The input required to obtain the details of a delivery.</param> /// <returns>The details of the requested delivery.</returns> public DeliveryDetails Get(DeliveryGetInput input) { Ensure.NotNull(input, nameof(input)); return(GetRequest <DeliveryDetails>(input.Id.ToString(), input)); }