Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Notification" /> class.
 /// </summary>
 /// <param name="Links">Links (required).</param>
 /// <param name="NotificationId">Label of the notification (required).</param>
 /// <param name="DeliveryStatus">Status of the pings (required).</param>
 /// <param name="EventType">Type of the pings (required).</param>
 /// <param name="EventDate">date time of the pings (required).</param>
 /// <param name="WebhookId">Label of the Webhook (required).</param>
 public Notification(SelfLink Links = null, string NotificationId = null, string DeliveryStatus = null, string EventType = null, string EventDate = null, string WebhookId = null)
 {
     // to ensure "Links" is required (not null)
     if (Links == null)
     {
         throw new InvalidDataException("Links is a required property for Notification and cannot be null");
     }
     else
     {
         this.Links = Links;
     }
     // to ensure "NotificationId" is required (not null)
     if (NotificationId == null)
     {
         throw new InvalidDataException("NotificationId is a required property for Notification and cannot be null");
     }
     else
     {
         this.NotificationId = NotificationId;
     }
     // to ensure "DeliveryStatus" is required (not null)
     if (DeliveryStatus == null)
     {
         throw new InvalidDataException("DeliveryStatus is a required property for Notification and cannot be null");
     }
     else
     {
         this.DeliveryStatus = DeliveryStatus;
     }
     // to ensure "EventType" is required (not null)
     if (EventType == null)
     {
         throw new InvalidDataException("EventType is a required property for Notification and cannot be null");
     }
     else
     {
         this.EventType = EventType;
     }
     // to ensure "EventDate" is required (not null)
     if (EventDate == null)
     {
         throw new InvalidDataException("EventDate is a required property for Notification and cannot be null");
     }
     else
     {
         this.EventDate = EventDate;
     }
     // to ensure "WebhookId" is required (not null)
     if (WebhookId == null)
     {
         throw new InvalidDataException("WebhookId is a required property for Notification and cannot be null");
     }
     else
     {
         this.WebhookId = WebhookId;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetWebhookResponse" /> class.
 /// </summary>
 /// <param name="Links">Links (required).</param>
 /// <param name="WebhookId">Label of the new Webhook (required).</param>
 /// <param name="Name">Label of the new Webhook.</param>
 /// <param name="Status">Status of the new Webhook (required).</param>
 /// <param name="Url">Callback Url (required).</param>
 /// <param name="EventTypes">List of desired events for subscriptions (required).</param>
 public GetWebhookResponse(SelfLink Links = null, string WebhookId = null, string Name = null, string Status = null, string Url = null, List <string> EventTypes = null)
 {
     // to ensure "Links" is required (not null)
     if (Links == null)
     {
         throw new InvalidDataException("Links is a required property for GetWebhookResponse and cannot be null");
     }
     else
     {
         this.Links = Links;
     }
     // to ensure "WebhookId" is required (not null)
     if (WebhookId == null)
     {
         throw new InvalidDataException("WebhookId is a required property for GetWebhookResponse and cannot be null");
     }
     else
     {
         this.WebhookId = WebhookId;
     }
     // to ensure "Status" is required (not null)
     if (Status == null)
     {
         throw new InvalidDataException("Status is a required property for GetWebhookResponse and cannot be null");
     }
     else
     {
         this.Status = Status;
     }
     // to ensure "Url" is required (not null)
     if (Url == null)
     {
         throw new InvalidDataException("Url is a required property for GetWebhookResponse and cannot be null");
     }
     else
     {
         this.Url = Url;
     }
     // to ensure "EventTypes" is required (not null)
     if (EventTypes == null)
     {
         throw new InvalidDataException("EventTypes is a required property for GetWebhookResponse and cannot be null");
     }
     else
     {
         this.EventTypes = EventTypes;
     }
     this.Name = Name;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetNotificationsResponse" /> class.
 /// </summary>
 /// <param name="Links">Links (required).</param>
 /// <param name="Notifications">Notifications (required).</param>
 public GetNotificationsResponse(SelfLink Links = null, List <Notification> Notifications = null)
 {
     // to ensure "Links" is required (not null)
     if (Links == null)
     {
         throw new InvalidDataException("Links is a required property for GetNotificationsResponse and cannot be null");
     }
     else
     {
         this.Links = Links;
     }
     // to ensure "Notifications" is required (not null)
     if (Notifications == null)
     {
         throw new InvalidDataException("Notifications is a required property for GetNotificationsResponse and cannot be null");
     }
     else
     {
         this.Notifications = Notifications;
     }
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Payments" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="SubmitTimeUTC">SubmitTimeUTC.</param>
 /// <param name="TransactionStatus">TransactionStatus.</param>
 /// <param name="Links">Links.</param>
 public Payments(string Id = null, string SubmitTimeUTC = null, string TransactionStatus = null, SelfLink Links = null)
 {
     this.Id                = Id;
     this.SubmitTimeUTC     = SubmitTimeUTC;
     this.TransactionStatus = TransactionStatus;
     this.Links             = Links;
 }