Skip to content

Commit

Permalink
fixed invalid mock data used in date fields (changed from 'string' to…
Browse files Browse the repository at this point in the history
… a valid date). changed use of DATE_FORMAT constant to a set date format to avoid having samples depend on that constant being set.
  • Loading branch information
jpsilkjr86 committed Jul 18, 2018
1 parent fd8b402 commit 89555a7
Show file tree
Hide file tree
Showing 17 changed files with 40 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<FeedSubmissionInfo>
<FeedSubmissionId>string</FeedSubmissionId>
<FeedType>string</FeedType>
<SubmittedDate>string</SubmittedDate>
<SubmittedDate>2008-09-28T17:49:45</SubmittedDate>
<FeedProcessingStatus>string</FeedProcessingStatus>
<!--Optional:-->
<StartedProcessingDate>2008-09-28T18:49:45</StartedProcessingDate>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<FeedSubmissionInfo>
<FeedSubmissionId>string</FeedSubmissionId>
<FeedType>string</FeedType>
<SubmittedDate>string</SubmittedDate>
<SubmittedDate>2008-09-28T17:49:45</SubmittedDate>
<FeedProcessingStatus>string</FeedProcessingStatus>
<!--Optional:-->
<StartedProcessingDate>2007-10-25T23:36:28</StartedProcessingDate>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<FeedSubmissionInfo>
<FeedSubmissionId>string</FeedSubmissionId>
<FeedType>string</FeedType>
<SubmittedDate>string</SubmittedDate>
<SubmittedDate>2008-09-28T17:49:45</SubmittedDate>
<FeedProcessingStatus>string</FeedProcessingStatus>
<!--Optional:-->
<StartedProcessingDate>2007-10-25T23:36:28</StartedProcessingDate>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function invokeCancelFeedSubmissions(MarketplaceWebService_Interface $service, $
if ($feedSubmissionInfo->isSetSubmittedDate())
{
echo(" SubmittedDate\n");
echo(" " . $feedSubmissionInfo->getSubmittedDate()->format(DATE_FORMAT) . "\n");
echo(" " . $feedSubmissionInfo->getSubmittedDate()->format('Y-m-d\TH:i:s\Z') . "\n");
}
if ($feedSubmissionInfo->isSetFeedProcessingStatus())
{
Expand All @@ -160,12 +160,12 @@ function invokeCancelFeedSubmissions(MarketplaceWebService_Interface $service, $
if ($feedSubmissionInfo->isSetStartedProcessingDate())
{
echo(" StartedProcessingDate\n");
echo(" " . $feedSubmissionInfo->getStartedProcessingDate()->format(DATE_FORMAT) . "\n");
echo(" " . $feedSubmissionInfo->getStartedProcessingDate()->format('Y-m-d\TH:i:s\Z') . "\n");
}
if ($feedSubmissionInfo->isSetCompletedProcessingDate())
{
echo(" CompletedProcessingDate\n");
echo(" " . $feedSubmissionInfo->getCompletedProcessingDate()->format(DATE_FORMAT) . "\n");
echo(" " . $feedSubmissionInfo->getCompletedProcessingDate()->format('Y-m-d\TH:i:s\Z') . "\n");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,17 +149,17 @@ function invokeCancelReportRequests(MarketplaceWebService_Interface $service, $r
if ($reportRequestInfo->isSetStartDate())
{
echo(" StartDate\n");
echo(" " . $reportRequestInfo->getStartDate()->format(DATE_FORMAT) . "\n");
echo(" " . $reportRequestInfo->getStartDate()->format('Y-m-d\TH:i:s\Z') . "\n");
}
if ($reportRequestInfo->isSetEndDate())
{
echo(" EndDate\n");
echo(" " . $reportRequestInfo->getEndDate()->format(DATE_FORMAT) . "\n");
echo(" " . $reportRequestInfo->getEndDate()->format('Y-m-d\TH:i:s\Z') . "\n");
}
if ($reportRequestInfo->isSetSubmittedDate())
{
echo(" SubmittedDate\n");
echo(" " . $reportRequestInfo->getSubmittedDate()->format(DATE_FORMAT) . "\n");
echo(" " . $reportRequestInfo->getSubmittedDate()->format('Y-m-d\TH:i:s\Z') . "\n");
}
if ($reportRequestInfo->isSetReportProcessingStatus())
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ function invokeGetFeedSubmissionListByNextToken(MarketplaceWebService_Interface
if ($feedSubmissionInfo->isSetSubmittedDate())
{
echo(" SubmittedDate\n");
echo(" " . $feedSubmissionInfo->getSubmittedDate()->format(DATE_FORMAT) . "\n");
echo(" " . $feedSubmissionInfo->getSubmittedDate()->format('Y-m-d\TH:i:s\Z') . "\n");
}
if ($feedSubmissionInfo->isSetFeedProcessingStatus())
{
Expand All @@ -164,12 +164,12 @@ function invokeGetFeedSubmissionListByNextToken(MarketplaceWebService_Interface
if ($feedSubmissionInfo->isSetStartedProcessingDate())
{
echo(" StartedProcessingDate\n");
echo(" " . $feedSubmissionInfo->getStartedProcessingDate()->format(DATE_FORMAT) . "\n");
echo(" " . $feedSubmissionInfo->getStartedProcessingDate()->format('Y-m-d\TH:i:s\Z') . "\n");
}
if ($feedSubmissionInfo->isSetCompletedProcessingDate())
{
echo(" CompletedProcessingDate\n");
echo(" " . $feedSubmissionInfo->getCompletedProcessingDate()->format(DATE_FORMAT) . "\n");
echo(" " . $feedSubmissionInfo->getCompletedProcessingDate()->format('Y-m-d\TH:i:s\Z') . "\n");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ function invokeGetFeedSubmissionList(MarketplaceWebService_Interface $service, $
if ($feedSubmissionInfo->isSetSubmittedDate())
{
echo(" SubmittedDate\n");
echo(" " . $feedSubmissionInfo->getSubmittedDate()->format(DATE_FORMAT) . "\n");
echo(" " . $feedSubmissionInfo->getSubmittedDate()->format('Y-m-d\TH:i:s\Z') . "\n");
}
if ($feedSubmissionInfo->isSetFeedProcessingStatus())
{
Expand All @@ -164,12 +164,12 @@ function invokeGetFeedSubmissionList(MarketplaceWebService_Interface $service, $
if ($feedSubmissionInfo->isSetStartedProcessingDate())
{
echo(" StartedProcessingDate\n");
echo(" " . $feedSubmissionInfo->getStartedProcessingDate()->format(DATE_FORMAT) . "\n");
echo(" " . $feedSubmissionInfo->getStartedProcessingDate()->format('Y-m-d\TH:i:s\Z') . "\n");
}
if ($feedSubmissionInfo->isSetCompletedProcessingDate())
{
echo(" CompletedProcessingDate\n");
echo(" " . $feedSubmissionInfo->getCompletedProcessingDate()->format(DATE_FORMAT) . "\n");
echo(" " . $feedSubmissionInfo->getCompletedProcessingDate()->format('Y-m-d\TH:i:s\Z') . "\n");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function invokeGetReportListByNextToken(MarketplaceWebService_Interface $service
if ($reportInfo->isSetAvailableDate())
{
echo(" AvailableDate\n");
echo(" " . $reportInfo->getAvailableDate()->format(DATE_FORMAT) . "\n");
echo(" " . $reportInfo->getAvailableDate()->format('Y-m-d\TH:i:s\Z') . "\n");
}
if ($reportInfo->isSetAcknowledged())
{
Expand All @@ -169,7 +169,7 @@ function invokeGetReportListByNextToken(MarketplaceWebService_Interface $service
if ($reportInfo->isSetAcknowledgedDate())
{
echo(" AcknowledgedDate\n");
echo(" " . $reportInfo->getAcknowledgedDate()->format(DATE_FORMAT) . "\n");
echo(" " . $reportInfo->getAcknowledgedDate()->format('Y-m-d\TH:i:s\Z') . "\n");
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/MarketplaceWebService/Samples/GetReportListSample.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ function invokeGetReportList(MarketplaceWebService_Interface $service, $request)
if ($reportInfo->isSetAvailableDate())
{
echo(" AvailableDate\n");
echo(" " . $reportInfo->getAvailableDate()->format(DATE_FORMAT) . "\n");
echo(" " . $reportInfo->getAvailableDate()->format('Y-m-d\TH:i:s\Z') . "\n");
}
if ($reportInfo->isSetAcknowledged())
{
Expand All @@ -170,7 +170,7 @@ function invokeGetReportList(MarketplaceWebService_Interface $service, $request)
if ($reportInfo->isSetAcknowledgedDate())
{
echo(" AcknowledgedDate\n");
echo(" " . $reportInfo->getAcknowledgedDate()->format(DATE_FORMAT) . "\n");
echo(" " . $reportInfo->getAcknowledgedDate()->format('Y-m-d\TH:i:s\Z') . "\n");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,12 @@ function invokeGetReportRequestListByNextToken(MarketplaceWebService_Interface $
if ($reportRequestInfo->isSetStartDate())
{
echo(" StartDate\n");
echo(" " . $reportRequestInfo->getStartDate()->format(DATE_FORMAT) . "\n");
echo(" " . $reportRequestInfo->getStartDate()->format('Y-m-d\TH:i:s\Z') . "\n");
}
if ($reportRequestInfo->isSetEndDate())
{
echo(" EndDate\n");
echo(" " . $reportRequestInfo->getEndDate()->format(DATE_FORMAT) . "\n");
echo(" " . $reportRequestInfo->getEndDate()->format('Y-m-d\TH:i:s\Z') . "\n");
}
// add start
if ($reportRequestInfo->isSetScheduled())
Expand All @@ -171,7 +171,7 @@ function invokeGetReportRequestListByNextToken(MarketplaceWebService_Interface $
if ($reportRequestInfo->isSetSubmittedDate())
{
echo(" SubmittedDate\n");
echo(" " . $reportRequestInfo->getSubmittedDate()->format(DATE_FORMAT) . "\n");
echo(" " . $reportRequestInfo->getSubmittedDate()->format('Y-m-d\TH:i:s\Z') . "\n");
}
if ($reportRequestInfo->isSetReportProcessingStatus())
{
Expand All @@ -187,12 +187,12 @@ function invokeGetReportRequestListByNextToken(MarketplaceWebService_Interface $
if ($reportRequestInfo->isSetStartedProcessingDate())
{
echo(" StartedProcessingDate\n");
echo(" " . $reportRequestInfo->getStartedProcessingDate()->format(DATE_FORMAT) . "\n");
echo(" " . $reportRequestInfo->getStartedProcessingDate()->format('Y-m-d\TH:i:s\Z') . "\n");
}
if ($reportRequestInfo->isSetCompletedDate())
{
echo(" CompletedDate\n");
echo(" " . $reportRequestInfo->getCompletedDate()->format(DATE_FORMAT) . "\n");
echo(" " . $reportRequestInfo->getCompletedDate()->format('Y-m-d\TH:i:s\Z') . "\n");
}
// add end
}
Expand Down
10 changes: 5 additions & 5 deletions src/MarketplaceWebService/Samples/GetReportRequestListSample.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,12 @@ function invokeGetReportRequestList(MarketplaceWebService_Interface $service, $r
if ($reportRequestInfo->isSetStartDate())
{
echo(" StartDate\n");
echo(" " . $reportRequestInfo->getStartDate()->format(DATE_FORMAT) . "\n");
echo(" " . $reportRequestInfo->getStartDate()->format('Y-m-d\TH:i:s\Z') . "\n");
}
if ($reportRequestInfo->isSetEndDate())
{
echo(" EndDate\n");
echo(" " . $reportRequestInfo->getEndDate()->format(DATE_FORMAT) . "\n");
echo(" " . $reportRequestInfo->getEndDate()->format('Y-m-d\TH:i:s\Z') . "\n");
}
// add start
if ($reportRequestInfo->isSetScheduled())
Expand All @@ -167,7 +167,7 @@ function invokeGetReportRequestList(MarketplaceWebService_Interface $service, $r
if ($reportRequestInfo->isSetSubmittedDate())
{
echo(" SubmittedDate\n");
echo(" " . $reportRequestInfo->getSubmittedDate()->format(DATE_FORMAT) . "\n");
echo(" " . $reportRequestInfo->getSubmittedDate()->format('Y-m-d\TH:i:s\Z') . "\n");
}
if ($reportRequestInfo->isSetReportProcessingStatus())
{
Expand All @@ -183,12 +183,12 @@ function invokeGetReportRequestList(MarketplaceWebService_Interface $service, $r
if ($reportRequestInfo->isSetStartedProcessingDate())
{
echo(" StartedProcessingDate\n");
echo(" " . $reportRequestInfo->getStartedProcessingDate()->format(DATE_FORMAT) . "\n");
echo(" " . $reportRequestInfo->getStartedProcessingDate()->format('Y-m-d\TH:i:s\Z') . "\n");
}
if ($reportRequestInfo->isSetCompletedDate())
{
echo(" CompletedDate\n");
echo(" " . $reportRequestInfo->getCompletedDate()->format(DATE_FORMAT) . "\n");
echo(" " . $reportRequestInfo->getCompletedDate()->format('Y-m-d\TH:i:s\Z') . "\n");
}
// add end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function invokeGetReportScheduleListByNextToken(MarketplaceWebService_Interface
if ($reportSchedule->isSetSchedule())
{
echo(" Schedule\n");
echo(" " . $reportSchedule->getSchedule()->format(DATE_FORMAT) . "\n");
echo(" " . $reportSchedule->getSchedule()->format('Y-m-d\TH:i:s\Z') . "\n");
}
if ($reportSchedule->isSetScheduledDate())
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ function invokeGetReportScheduleList(MarketplaceWebService_Interface $service, $
if ($reportSchedule->isSetScheduledDate())
{
echo(" ScheduledDate\n");
echo(" " . $reportSchedule->getScheduledDate()->format(DATE_FORMAT) . "\n");
echo(" " . $reportSchedule->getScheduledDate()->format('Y-m-d\TH:i:s\Z') . "\n");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function invokeManageReportSchedule(MarketplaceWebService_Interface $service, $r
if ($reportSchedule->isSetScheduledDate())
{
echo(" ScheduledDate\n");
echo(" " . $reportSchedule->getScheduledDate()->format(DATE_FORMAT) . "\n");
echo(" " . $reportSchedule->getScheduledDate()->format('Y-m-d\TH:i:s\Z') . "\n");
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/MarketplaceWebService/Samples/RequestReportSample.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,17 +154,17 @@ function invokeRequestReport(MarketplaceWebService_Interface $service, $request)
if ($reportRequestInfo->isSetStartDate())
{
echo(" StartDate\n");
echo(" " . $reportRequestInfo->getStartDate()->format(DATE_FORMAT) . "\n");
echo(" " . $reportRequestInfo->getStartDate()->format('Y-m-d\TH:i:s\Z') . "\n");
}
if ($reportRequestInfo->isSetEndDate())
{
echo(" EndDate\n");
echo(" " . $reportRequestInfo->getEndDate()->format(DATE_FORMAT) . "\n");
echo(" " . $reportRequestInfo->getEndDate()->format('Y-m-d\TH:i:s\Z') . "\n");
}
if ($reportRequestInfo->isSetSubmittedDate())
{
echo(" SubmittedDate\n");
echo(" " . $reportRequestInfo->getSubmittedDate()->format(DATE_FORMAT) . "\n");
echo(" " . $reportRequestInfo->getSubmittedDate()->format('Y-m-d\TH:i:s\Z') . "\n");
}
if ($reportRequestInfo->isSetReportProcessingStatus())
{
Expand Down
Loading

0 comments on commit 89555a7

Please sign in to comment.