/// <summary> /// Initializes a new instance of the <see cref="RequestBody1" /> class. /// </summary> /// <param name="OrganizationId">Valid CyberSource organizationId.</param> /// <param name="ReportDefinitionName">Valid Report Definition Name (required).</param> /// <param name="ReportFields">ReportFields (required).</param> /// <param name="ReportMimeType">ReportMimeType (required).</param> /// <param name="ReportFrequency">The frequency for which subscription is created. (required).</param> /// <param name="ReportName">ReportName (required).</param> /// <param name="Timezone">Timezone (required).</param> /// <param name="StartTime">The hour at which the report generation should start. It should be in hhmm format. (required).</param> /// <param name="StartDay">This is the start day if the frequency is WEEKLY or MONTHLY. The value varies from 1-7 for WEEKLY and 1-31 for MONTHLY. For WEEKLY 1 means Sunday and 7 means Saturday. By default the value is 1..</param> /// <param name="ReportFilters">List of filters to apply.</param> /// <param name="ReportPreferences">ReportPreferences.</param> /// <param name="GroupName">Valid GroupName.</param> public RequestBody1(string OrganizationId = default(string), string ReportDefinitionName = default(string), List <string> ReportFields = default(List <string>), ReportMimeTypeEnum?ReportMimeType = default(ReportMimeTypeEnum?), ReportFrequencyEnum?ReportFrequency = default(ReportFrequencyEnum?), string ReportName = default(string), string Timezone = default(string), string StartTime = default(string), int?StartDay = default(int?), Dictionary <string, List <string> > ReportFilters = default(Dictionary <string, List <string> >), ReportingV3ReportsIdGet200ResponseReportPreferences ReportPreferences = default(ReportingV3ReportsIdGet200ResponseReportPreferences), string GroupName = default(string)) { // to ensure "ReportDefinitionName" is required (not null) if (ReportDefinitionName == null) { throw new InvalidDataException("ReportDefinitionName is a required property for RequestBody1 and cannot be null"); } else { this.ReportDefinitionName = ReportDefinitionName; } // to ensure "ReportFields" is required (not null) if (ReportFields == null) { throw new InvalidDataException("ReportFields is a required property for RequestBody1 and cannot be null"); } else { this.ReportFields = ReportFields; } // to ensure "ReportMimeType" is required (not null) if (ReportMimeType == null) { throw new InvalidDataException("ReportMimeType is a required property for RequestBody1 and cannot be null"); } else { this.ReportMimeType = ReportMimeType; } // to ensure "ReportFrequency" is required (not null) if (ReportFrequency == null) { throw new InvalidDataException("ReportFrequency is a required property for RequestBody1 and cannot be null"); } else { this.ReportFrequency = ReportFrequency; } // to ensure "ReportName" is required (not null) if (ReportName == null) { throw new InvalidDataException("ReportName is a required property for RequestBody1 and cannot be null"); } else { this.ReportName = ReportName; } // to ensure "Timezone" is required (not null) if (Timezone == null) { throw new InvalidDataException("Timezone is a required property for RequestBody1 and cannot be null"); } else { this.Timezone = Timezone; } // to ensure "StartTime" is required (not null) if (StartTime == null) { throw new InvalidDataException("StartTime is a required property for RequestBody1 and cannot be null"); } else { this.StartTime = StartTime; } this.OrganizationId = OrganizationId; this.StartDay = StartDay; this.ReportFilters = ReportFilters; this.ReportPreferences = ReportPreferences; this.GroupName = GroupName; }
/// <summary> /// Initializes a new instance of the <see cref="ReportingV3ReportSubscriptionsGet200ResponseSubscriptions" /> class. /// </summary> /// <param name="OrganizationId">Selected Organization Id.</param> /// <param name="ReportDefinitionId">Report Definition Id.</param> /// <param name="ReportDefinitionName">Report Definition Class.</param> /// <param name="ReportMimeType">Report Format.</param> /// <param name="ReportFrequency">Report Frequency.</param> /// <param name="ReportName">Report Name.</param> /// <param name="Timezone">Time Zone.</param> /// <param name="StartTime">Start Time.</param> /// <param name="StartDay">Start Day.</param> /// <param name="ReportFields">List of all fields String values.</param> /// <param name="ReportFilters">List of filters to apply.</param> /// <param name="ReportPreferences">ReportPreferences.</param> /// <param name="GroupId">Id for the selected group..</param> public ReportingV3ReportSubscriptionsGet200ResponseSubscriptions(string OrganizationId = default(string), string ReportDefinitionId = default(string), string ReportDefinitionName = default(string), ReportMimeTypeEnum?ReportMimeType = default(ReportMimeTypeEnum?), ReportFrequencyEnum?ReportFrequency = default(ReportFrequencyEnum?), string ReportName = default(string), string Timezone = default(string), string StartTime = default(string), int?StartDay = default(int?), List <string> ReportFields = default(List <string>), Dictionary <string, List <string> > ReportFilters = default(Dictionary <string, List <string> >), ReportingV3ReportsIdGet200ResponseReportPreferences ReportPreferences = default(ReportingV3ReportsIdGet200ResponseReportPreferences), string GroupId = default(string)) { this.OrganizationId = OrganizationId; this.ReportDefinitionId = ReportDefinitionId; this.ReportDefinitionName = ReportDefinitionName; this.ReportMimeType = ReportMimeType; this.ReportFrequency = ReportFrequency; this.ReportName = ReportName; this.Timezone = Timezone; this.StartTime = StartTime; this.StartDay = StartDay; this.ReportFields = ReportFields; this.ReportFilters = ReportFilters; this.ReportPreferences = ReportPreferences; this.GroupId = GroupId; }
/// <summary> /// Initializes a new instance of the <see cref="ReportingV3ReportsIdGet200Response" /> class. /// </summary> /// <param name="OrganizationId">CyberSource merchant id.</param> /// <param name="ReportId">Report ID Value.</param> /// <param name="ReportDefinitionId">Report definition Id.</param> /// <param name="ReportName">Report Name.</param> /// <param name="ReportMimeType">Report Format.</param> /// <param name="ReportFrequency">Report Frequency Value.</param> /// <param name="ReportFields">List of Integer Values.</param> /// <param name="ReportStatus">Report Status Value.</param> /// <param name="ReportStartTime">Report Start Time Value.</param> /// <param name="ReportEndTime">Report End Time Value.</param> /// <param name="Timezone">Time Zone Value.</param> /// <param name="ReportFilters">List of filters to apply.</param> /// <param name="ReportPreferences">ReportPreferences.</param> /// <param name="GroupId">Id for selected group..</param> public ReportingV3ReportsIdGet200Response(string OrganizationId = default(string), string ReportId = default(string), string ReportDefinitionId = default(string), string ReportName = default(string), ReportMimeTypeEnum?ReportMimeType = default(ReportMimeTypeEnum?), ReportFrequencyEnum?ReportFrequency = default(ReportFrequencyEnum?), List <string> ReportFields = default(List <string>), ReportStatusEnum?ReportStatus = default(ReportStatusEnum?), DateTime?ReportStartTime = default(DateTime?), DateTime?ReportEndTime = default(DateTime?), string Timezone = default(string), Dictionary <string, List <string> > ReportFilters = default(Dictionary <string, List <string> >), ReportingV3ReportsIdGet200ResponseReportPreferences ReportPreferences = default(ReportingV3ReportsIdGet200ResponseReportPreferences), string GroupId = default(string)) { this.OrganizationId = OrganizationId; this.ReportId = ReportId; this.ReportDefinitionId = ReportDefinitionId; this.ReportName = ReportName; this.ReportMimeType = ReportMimeType; this.ReportFrequency = ReportFrequency; this.ReportFields = ReportFields; this.ReportStatus = ReportStatus; this.ReportStartTime = ReportStartTime; this.ReportEndTime = ReportEndTime; this.Timezone = Timezone; this.ReportFilters = ReportFilters; this.ReportPreferences = ReportPreferences; this.GroupId = GroupId; }