Skip to content
This repository was archived by the owner on Mar 29, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 29 additions & 5 deletions PinPayments/Actions/ChargeSearch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,36 @@ public class ChargeSearch
[JsonProperty("query")]
public string Query{get;set;}

[JsonProperty("startDate")]
public DateTime? StartDate{get;set;}

[JsonProperty("endDate")]
public DateTime? EndDate{get;set;}
[JsonProperty("start_date")]
public string startDateStr
{
get
{
if (StartDate != null)
{
return ((DateTime)StartDate).ToString("yyyy/MM/dd");
}
return "";
}
}
[JsonIgnore]
public DateTime? StartDate { get; set; }

[JsonProperty("end_date")]
public string endDateStr
{
get
{
if (EndDate != null)
{
return ((DateTime)EndDate).ToString("yyyy/MM/dd");
}
return "";
}
}
[JsonIgnore]
public DateTime? EndDate { get; set; }

[JsonIgnore]
public ChargeSearchSortEnum Sort {get;set;}

Expand Down