Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Account" /> class.
 /// </summary>
 /// <param name="accountCode">The code of the account..</param>
 /// <param name="beneficiaryAccount">The beneficiary of the account..</param>
 /// <param name="beneficiaryMerchantReference">The reason that a beneficiary has been set up for this account. This may have been supplied during the setup of a beneficiary at the discretion of the executing user..</param>
 /// <param name="description">A description of the account..</param>
 /// <param name="metadata">A set of key and value pairs for general use by the merchant. The keys do not have specific names and may be used for storing miscellaneous data as desired. &gt; Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs..</param>
 /// <param name="payoutSchedule">payoutSchedule.</param>
 /// <param name="status">The status of the account. Possible values: &#x60;Active&#x60;, &#x60;Inactive&#x60;, &#x60;Suspended&#x60;, &#x60;Closed&#x60;..</param>
 public Account(string accountCode = default(string), string beneficiaryAccount = default(string), string beneficiaryMerchantReference = default(string), string description = default(string), Object metadata = default(Object), PayoutScheduleResponse payoutSchedule = default(PayoutScheduleResponse), string status = default(string))
 {
     this.AccountCode                  = accountCode;
     this.BeneficiaryAccount           = beneficiaryAccount;
     this.BeneficiaryMerchantReference = beneficiaryMerchantReference;
     this.Description                  = description;
     this.Metadata       = metadata;
     this.PayoutSchedule = payoutSchedule;
     this.Status         = status;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UpdateAccountResponse" /> class.
 /// </summary>
 /// <param name="accountCode">The code of the account. (required).</param>
 /// <param name="description">The description of the account..</param>
 /// <param name="invalidFields">A list of fields that caused the &#x60;/updateAccount&#x60; request to fail..</param>
 /// <param name="metadata">metadata.</param>
 /// <param name="payoutSchedule">payoutSchedule (required).</param>
 /// <param name="pspReference">The reference of a request.  Can be used to uniquely identify the request. (required).</param>
 /// <param name="resultCode">The result code..</param>
 public UpdateAccountResponse(string accountCode = default(string), string description = default(string), List <ErrorFieldType> invalidFields = default(List <ErrorFieldType>), Dictionary <string, string> metadata = default(Dictionary <string, string>), PayoutScheduleResponse payoutSchedule = default(PayoutScheduleResponse), string pspReference = default(string), string resultCode = default(string))
 {
     // to ensure "accountCode" is required (not null)
     if (accountCode == null)
     {
         throw new InvalidDataException("accountCode is a required property for UpdateAccountResponse and cannot be null");
     }
     else
     {
         this.AccountCode = accountCode;
     }
     // to ensure "payoutSchedule" is required (not null)
     if (payoutSchedule == null)
     {
         throw new InvalidDataException("payoutSchedule is a required property for UpdateAccountResponse and cannot be null");
     }
     else
     {
         this.PayoutSchedule = payoutSchedule;
     }
     // to ensure "pspReference" is required (not null)
     if (pspReference == null)
     {
         throw new InvalidDataException("pspReference is a required property for UpdateAccountResponse and cannot be null");
     }
     else
     {
         this.PspReference = pspReference;
     }
     this.Description   = description;
     this.InvalidFields = invalidFields;
     this.Metadata      = metadata;
     this.ResultCode    = resultCode;
 }