Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetCorporationsCorporationIdWalletsDivisionJournal200Ok" /> class.
 /// </summary>
 /// <param name="amount">The amount of ISK given or taken from the wallet as a result of the given transaction. Positive when ISK is deposited into the wallet and negative when ISK is withdrawn.</param>
 /// <param name="balance">Wallet balance after transaction occurred.</param>
 /// <param name="contextId">An ID that gives extra context to the particular transaction. Because of legacy reasons the context is completely different per ref_type and means different things. It is also possible to not have a context_id.</param>
 /// <param name="contextIdType">The type of the given context_id if present.</param>
 /// <param name="date">Date and time of transaction (required).</param>
 /// <param name="description">The reason for the transaction, mirrors what is seen in the client (required).</param>
 /// <param name="firstPartyId">The id of the first party involved in the transaction. This attribute has no consistency and is different or non existant for particular ref_types. The description attribute will help make sense of what this attribute means. For more info about the given ID it can be dropped into the /universe/names/ ESI route to determine its type and name.</param>
 /// <param name="id">Unique journal reference ID (required).</param>
 /// <param name="reason">The user stated reason for the transaction. Only applies to some ref_types.</param>
 /// <param name="refType">The transaction type for the given transaction. Different transaction types will populate different attributes. Note: If you have an existing XML API application that is using ref_types, you will need to know which string ESI ref_type maps to which integer. You can look at the following file to see string-&gt;int mappings: https://github.com/ccpgames/eve-glue/blob/master/eve_glue/wallet_journal_ref.py (required).</param>
 /// <param name="secondPartyId">The id of the second party involved in the transaction. This attribute has no consistency and is different or non existant for particular ref_types. The description attribute will help make sense of what this attribute means. For more info about the given ID it can be dropped into the /universe/names/ ESI route to determine its type and name.</param>
 /// <param name="tax">Tax amount received. Only applies to tax related transactions.</param>
 /// <param name="taxReceiverId">The corporation ID receiving any tax paid. Only applies to tax related transactions.</param>
 public GetCorporationsCorporationIdWalletsDivisionJournal200Ok(double?amount = default(double?), double?balance = default(double?), long?contextId = default(long?), ContextIdTypeEnum?contextIdType = default(ContextIdTypeEnum?), DateTime?date = default(DateTime?), string description = default(string), int?firstPartyId = default(int?), long?id = default(long?), string reason = default(string), RefTypeEnum refType = default(RefTypeEnum), int?secondPartyId = default(int?), double?tax = default(double?), int?taxReceiverId = default(int?))
 {
     // to ensure "date" is required (not null)
     if (date == null)
     {
         throw new InvalidDataException("date is a required property for GetCorporationsCorporationIdWalletsDivisionJournal200Ok and cannot be null");
     }
     else
     {
         this.Date = date;
     }
     // to ensure "description" is required (not null)
     if (description == null)
     {
         throw new InvalidDataException("description is a required property for GetCorporationsCorporationIdWalletsDivisionJournal200Ok and cannot be null");
     }
     else
     {
         this.Description = description;
     }
     // to ensure "id" is required (not null)
     if (id == null)
     {
         throw new InvalidDataException("id is a required property for GetCorporationsCorporationIdWalletsDivisionJournal200Ok and cannot be null");
     }
     else
     {
         this.Id = id;
     }
     // to ensure "refType" is required (not null)
     if (refType == null)
     {
         throw new InvalidDataException("refType is a required property for GetCorporationsCorporationIdWalletsDivisionJournal200Ok and cannot be null");
     }
     else
     {
         this.RefType = refType;
     }
     this.Amount        = amount;
     this.Balance       = balance;
     this.ContextId     = contextId;
     this.ContextIdType = contextIdType;
     this.FirstPartyId  = firstPartyId;
     this.Reason        = reason;
     this.SecondPartyId = secondPartyId;
     this.Tax           = tax;
     this.TaxReceiverId = taxReceiverId;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetCorporationsCorporationIdWalletsDivisionJournal200Ok" /> class.
 /// </summary>
 /// <param name="date">Date and time of transaction (required).</param>
 /// <param name="refId">Unique journal reference ID (required).</param>
 /// <param name="refType">Transaction type, different type of transaction will populate different fields in &#x60;extra_info&#x60; Note: If you have an existing XML API application that is using ref_types, you will need to know which string ESI ref_type maps to which integer. You can use the following gist to see string-&gt;int mappings: https://gist.github.com/ccp-zoetrope/c03db66d90c2148724c06171bc52e0ec (required).</param>
 /// <param name="firstPartyId">first_party_id integer.</param>
 /// <param name="firstPartyType">first_party_type string.</param>
 /// <param name="secondPartyId">second_party_id integer.</param>
 /// <param name="secondPartyType">second_party_type string.</param>
 /// <param name="amount">Transaction amount. Positive when value transferred to the first party. Negative otherwise.</param>
 /// <param name="balance">Wallet balance after transaction occurred.</param>
 /// <param name="reason">reason string.</param>
 /// <param name="taxReceiverId">the corporation ID receiving any tax paid.</param>
 /// <param name="tax">Tax amount received for tax related transactions.</param>
 /// <param name="extraInfo">extraInfo.</param>
 public GetCorporationsCorporationIdWalletsDivisionJournal200Ok(DateTime?date = default(DateTime?), long?refId = default(long?), RefTypeEnum refType = default(RefTypeEnum), int?firstPartyId = default(int?), FirstPartyTypeEnum?firstPartyType = default(FirstPartyTypeEnum?), int?secondPartyId = default(int?), SecondPartyTypeEnum?secondPartyType = default(SecondPartyTypeEnum?), double?amount = default(double?), double?balance = default(double?), string reason = default(string), int?taxReceiverId = default(int?), double?tax = default(double?), GetCorporationsCorporationIdWalletsDivisionJournalExtraInfo extraInfo = default(GetCorporationsCorporationIdWalletsDivisionJournalExtraInfo))
 {
     // to ensure "date" is required (not null)
     if (date == null)
     {
         throw new InvalidDataException("date is a required property for GetCorporationsCorporationIdWalletsDivisionJournal200Ok and cannot be null");
     }
     else
     {
         this.Date = date;
     }
     // to ensure "refId" is required (not null)
     if (refId == null)
     {
         throw new InvalidDataException("refId is a required property for GetCorporationsCorporationIdWalletsDivisionJournal200Ok and cannot be null");
     }
     else
     {
         this.RefId = refId;
     }
     // to ensure "refType" is required (not null)
     if (refType == null)
     {
         throw new InvalidDataException("refType is a required property for GetCorporationsCorporationIdWalletsDivisionJournal200Ok and cannot be null");
     }
     else
     {
         this.RefType = refType;
     }
     this.FirstPartyId    = firstPartyId;
     this.FirstPartyType  = firstPartyType;
     this.SecondPartyId   = secondPartyId;
     this.SecondPartyType = secondPartyType;
     this.Amount          = amount;
     this.Balance         = balance;
     this.Reason          = reason;
     this.TaxReceiverId   = taxReceiverId;
     this.Tax             = tax;
     this.ExtraInfo       = extraInfo;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetCharactersCharacterIdWalletJournal200Ok" /> class.
 /// </summary>
 /// <param name="Amount">The amount of ISK given or taken from the wallet as a result of the given transaction. Positive when ISK is deposited into the wallet and negative when ISK is withdrawn.</param>
 /// <param name="Balance">Wallet balance after transaction occurred.</param>
 /// <param name="ContextId">An ID that gives extra context to the particular transaction. Because of legacy reasons the context is completely different per ref_type and means different things. It is also possible to not have a context_id.</param>
 /// <param name="ContextIdType">The type of the given context_id if present.</param>
 /// <param name="Date">Date and time of transaction (required).</param>
 /// <param name="Description">The reason for the transaction, mirrors what is seen in the client (required).</param>
 /// <param name="FirstPartyId">The id of the first party involved in the transaction. This attribute has no consistency and is different or non existant for particular ref_types. The description attribute will help make sense of what this attribute means. For more info about the given ID it can be dropped into the /universe/names/ ESI route to determine its type and name.</param>
 /// <param name="Id">Unique journal reference ID (required).</param>
 /// <param name="Reason">The user stated reason for the transaction. Only applies to some ref_types.</param>
 /// <param name="RefType">The transaction type for the given transaction. Different transaction types will populate different attributes. Note: If you have an existing XML API application that is using ref_types, you will need to know which string ESI ref_type maps to which integer. You can look at the following file to see string-&gt;int mappings: https://github.com/ccpgames/eve-glue/blob/master/eve_glue/wallet_journal_ref.py (required).</param>
 /// <param name="SecondPartyId">The id of the second party involved in the transaction. This attribute has no consistency and is different or non existant for particular ref_types. The description attribute will help make sense of what this attribute means. For more info about the given ID it can be dropped into the /universe/names/ ESI route to determine its type and name.</param>
 /// <param name="Tax">Tax amount received. Only applies to tax related transactions.</param>
 /// <param name="TaxReceiverId">The corporation ID receiving any tax paid. Only applies to tax related transactions.</param>
 public GetCharactersCharacterIdWalletJournal200Ok(double?Amount = default(double?), double?Balance = default(double?), long?ContextId = default(long?), ContextIdTypeEnum?ContextIdType = default(ContextIdTypeEnum?), DateTime?Date = default(DateTime?), string Description = default(string), int?FirstPartyId = default(int?), long?Id = default(long?), string Reason = default(string), RefTypeEnum RefType = default(RefTypeEnum), int?SecondPartyId = default(int?), double?Tax = default(double?), int?TaxReceiverId = default(int?))
 {
     // to ensure "Date" is required (not null)
     if (Date == null)
     {
         throw new InvalidDataException("Date is a required property for GetCharactersCharacterIdWalletJournal200Ok and cannot be null");
     }
     else
     {
         this.Date = Date;
     }
     // to ensure "Description" is required (not null)
     if (Description == null)
     {
         throw new InvalidDataException("Description is a required property for GetCharactersCharacterIdWalletJournal200Ok and cannot be null");
     }
     else
     {
         this.Description = Description;
     }
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for GetCharactersCharacterIdWalletJournal200Ok and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "RefType" is required (not null)
     if (RefType == null)
     {
         throw new InvalidDataException("RefType is a required property for GetCharactersCharacterIdWalletJournal200Ok and cannot be null");
     }
     else
     {
         this.RefType = RefType;
     }
     this.Amount        = Amount;
     this.Balance       = Balance;
     this.ContextId     = ContextId;
     this.ContextIdType = ContextIdType;
     this.FirstPartyId  = FirstPartyId;
     this.Reason        = Reason;
     this.SecondPartyId = SecondPartyId;
     this.Tax           = Tax;
     this.TaxReceiverId = TaxReceiverId;
 }