예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1UpdateDiscountRequest" /> class.
 /// </summary>
 /// <param name="Body">An object containing the fields to POST for the request.  See the corresponding object definition for field details. (required).</param>
 public V1UpdateDiscountRequest(V1Discount Body = default(V1Discount))
 {
     // to ensure "Body" is required (not null)
     if (Body == null)
     {
         throw new InvalidDataException("Body is a required property for V1UpdateDiscountRequest and cannot be null");
     }
     else
     {
         this.Body = Body;
     }
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1CreateDiscountRequest" /> class.
 /// </summary>
 /// <param name="Body">An object containing the fields to POST for the request.  See the corresponding object definition for field details..</param>
 public V1CreateDiscountRequest(V1Discount Body = default(V1Discount))
 {
     this.Body = Body;
 }