public void List(DataModel.Queries.PromotionTiersFilter filter, Action <ApiResponse <DataModel.PromotionTierList> > callback) { UriBuilder uriBuilder = UriBuilderExtension.WithQuery(this.client.GetUriBuilder("/promotions/tiers"), filter); this.client.DoGetRequest <DataModel.PromotionTierList>(uriBuilder.Uri, callback); }
public async Task<DataModel.PromotionTierList> List(DataModel.Queries.PromotionTiersFilter filter) { UriBuilder uriBuilder = UriBuilderExtension.WithQuery(this.client.GetUriBuilder("/promotions/tiers"), filter); return await this.client.DoGetRequest<DataModel.PromotionTierList>(uriBuilder.Uri).ConfigureAwait(false); }