public virtual IEnumerable <StripeTransfer> List(int count = 10, int offset = 0, string recipientId = null, StripeTransferStatus status = StripeTransferStatus.all, StripeDateRange date = null) { var url = Urls.Transfers; url = ParameterBuilder.ApplyParameterToUrl(url, "count", count.ToString()); url = ParameterBuilder.ApplyParameterToUrl(url, "offset", offset.ToString()); if (!string.IsNullOrEmpty(recipientId)) { url = ParameterBuilder.ApplyParameterToUrl(url, "recipient", recipientId); } if (status != StripeTransferStatus.all) { url = ParameterBuilder.ApplyParameterToUrl(url, "status", status.ToString()); } if (date != null) { url = date.ApplyQueryStringParams(url, "date"); } var response = Requestor.GetString(url, ApiKey); return(Mapper <StripeTransfer> .MapCollectionFromJson(response)); }
public virtual IEnumerable<StripeCharge> List(int count = 10, int offset = 0, string customerId = null, StripeDateRange created = null) { var url = Urls.Charges; url = ParameterBuilder.ApplyParameterToUrl(url, "count", count.ToString()); url = ParameterBuilder.ApplyParameterToUrl(url, "offset", offset.ToString()); if (!string.IsNullOrEmpty(customerId)) url = ParameterBuilder.ApplyParameterToUrl(url, "customer", customerId); if (created != null) url = created.ApplyQueryStringParams(url, "created"); var response = Requestor.GetString(url, ApiKey); return Mapper<StripeCharge>.MapCollectionFromJson(response); }
public virtual IEnumerable<StripeTransfer> List(int count = 10, int offset = 0, string recipientId = null, StripeTransferStatus status = StripeTransferStatus.all, StripeDateRange date = null) { var url = Urls.Transfers; url = ParameterBuilder.ApplyParameterToUrl(url, "count", count.ToString()); url = ParameterBuilder.ApplyParameterToUrl(url, "offset", offset.ToString()); if (!string.IsNullOrEmpty(recipientId)) url = ParameterBuilder.ApplyParameterToUrl(url, "recipient", recipientId); if (status != StripeTransferStatus.all) url = ParameterBuilder.ApplyParameterToUrl(url, "status", status.ToString()); if (date != null) url = date.ApplyQueryStringParams(url, "date"); var response = Requestor.GetString(url, ApiKey); return Mapper<StripeTransfer>.MapCollectionFromJson(response); }
public virtual IEnumerable <StripeCharge> List(int count = 10, int offset = 0, string customerId = null, StripeDateRange created = null) { var url = Urls.Charges; url = ParameterBuilder.ApplyParameterToUrl(url, "count", count.ToString()); url = ParameterBuilder.ApplyParameterToUrl(url, "offset", offset.ToString()); if (!string.IsNullOrEmpty(customerId)) { url = ParameterBuilder.ApplyParameterToUrl(url, "customer", customerId); } if (created != null) { url = created.ApplyQueryStringParams(url, "created"); } var response = Requestor.GetString(url, ApiKey); return(Mapper <StripeCharge> .MapCollectionFromJson(response)); }