Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Split" /> class.
 /// </summary>
 /// <param name="account">The account to which this split applies.  &gt;Required if the type is &#x60;MarketPlace&#x60;..</param>
 /// <param name="amount">amount (required).</param>
 /// <param name="description">A description of this split..</param>
 /// <param name="reference">The reference of this split. Used to link other operations (e.g. captures and refunds) to this split.  &gt;Required if the type is &#x60;MarketPlace&#x60;..</param>
 /// <param name="type">The type of this split.  &gt;Permitted values: &#x60;Default&#x60;, &#x60;PaymentFee&#x60;, &#x60;VAT&#x60;, &#x60;Commission&#x60;, &#x60;MarketPlace&#x60;, &#x60;BalanceAccount&#x60;. (required).</param>
 public Split(string account     = default(string), SplitAmount amount = default(SplitAmount),
              string description = default(string), string reference   = default(string), TypeEnum type = default(TypeEnum))
 {
     // to ensure "amount" is required (not null)
     if (amount == null)
     {
         throw new InvalidDataException("amount is a required property for Split and cannot be null");
     }
     else
     {
         this.Amount = amount;
     }
     // to ensure "type" is required (not null)
     if (type == null)
     {
         throw new InvalidDataException("type is a required property for Split and cannot be null");
     }
     else
     {
         this.Type = type;
     }
     this.Account     = account;
     this.Description = description;
     this.Reference   = reference;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Split" /> class.
 /// </summary>
 /// <param name="Account">The account to which this split applies.  &gt;Required if the type is &#x60;MarketPlace&#x60;..</param>
 /// <param name="Amount">The amount of this split. (required).</param>
 /// <param name="Description">A description of this split..</param>
 /// <param name="Reference">The reference of this split. Used to link other operations (e.g. captures and refunds) to this split.  &gt;Required if the type is &#x60;MarketPlace&#x60;..</param>
 /// <param name="Type">The type of this split.  &gt;Permitted values: &#x60;Default&#x60;, &#x60;PaymentFee&#x60;, &#x60;VAT&#x60;, &#x60;Commission&#x60;, &#x60;MarketPlace&#x60;, &#x60;Verification&#x60;. (required).</param>
 public Split(string Account = default(string), SplitAmount Amount = default(SplitAmount), string Description = default(string), string Reference = default(string), TypeEnum Type = default(TypeEnum))
 {
     // to ensure "Amount" is required (not null)
     if (Amount == null)
     {
         throw new InvalidDataException("Amount is a required property for Split and cannot be null");
     }
     else
     {
         this.Amount = Amount;
     }
     // to ensure "Type" is required (not null)
     if (Type == null)
     {
         throw new InvalidDataException("Type is a required property for Split and cannot be null");
     }
     else
     {
         this.Type = Type;
     }
     this.Account     = Account;
     this.Description = Description;
     this.Reference   = Reference;
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Split" /> class.
 /// </summary>
 /// <param name="Account">The account to which this split applies.  &gt;Required if the type is &#x60;MarketPlace&#x60;..</param>
 /// <param name="Amount">The amount of this split. (required).</param>
 /// <param name="Description">A description of this split..</param>
 /// <param name="Reference">The reference of this split. Used to link other operations (e.g. captures and refunds) to this split.  &gt;Required if the type is &#x60;MarketPlace&#x60;..</param>
 /// <param name="Type">The type of this split.  &gt;Permitted values: &#x60;Default&#x60;, &#x60;PaymentFee&#x60;, &#x60;VAT&#x60;, &#x60;Commission&#x60;, &#x60;MarketPlace&#x60;, &#x60;Verification&#x60;. (required).</param>
 public Split(string Account     = default(string), SplitAmount Amount = default(SplitAmount),
              string Description = default(string), string Reference   = default(string), TypeEnum Type = default(TypeEnum)) : base(Account, Amount, Description, Reference, Type)
 {
 }