//---------------------------------------------------------------------------------------------
// This file was AUTO-GENERATED by "Service Contracts" Xomega.Net generator.
//
// Manual CHANGES to this file WILL BE LOST when the code is regenerated.
//---------------------------------------------------------------------------------------------

using System.Collections.Generic;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Threading.Tasks;
using Xomega.Framework.Services;

namespace AdventureWorks.Services
{
    #region IPersonCreditCardService interface

    ///<summary>
    /// Cross-reference table mapping people to their credit card information in the CreditCard table. 
    ///</summary>
    [ServiceContract]
    public interface IPersonCreditCardService
    {

        ///<summary>
        /// Reads a list of Person Credit Card objects based on the specified criteria.
        ///</summary>
        [OperationContract]
        Task<Output<ICollection<PersonCreditCard_ReadListOutput>>> ReadListAsync(int _businessEntityId);

    }
    #endregion

    #region PersonCreditCard_ReadListOutput structure

    ///<summary>
    /// The output structure of operation IPersonCreditCardService.ReadListAsync.
    ///</summary>
    [DataContract]
    public class PersonCreditCard_ReadListOutput
    {
        
        [DataMember]
        public int CreditCardId { get; set; }
        
        [DataMember]
        public string CreditCardName { get; set; }
        
        [DataMember]
        public string PersonName { get; set; }
        
        [DataMember]
        public string CardType { get; set; }
        
        [DataMember]
        public string CardNumber { get; set; }
        
        [DataMember]
        public byte ExpMonth { get; set; }
        
        [DataMember]
        public short ExpYear { get; set; }
    }
    #endregion

}