﻿if (!window.ephip)
    window.ephip = {};

window.ephip.data = {

    DTOs: function () {
        var that = this;
        this.MembershipTerm = {
            OneYear: 1,
            ThreeYears: 2,
            FiveYears: 3
        };
        this.MembershipInfo = {
            AccountNumber: "",
            Term: that.MembershipTerm.OneYear,
            NameOnCard: ""
        };
        this.AddressInfo = {
            AddressLine1: "",
            AddressLine2: "",
            AddressLine3: "",
            CityName: "",
            CountrySubdivisionCode: "",
            PostalCode: "",
            CountryCode: "US",
            TelephoneAreaCode: "",
            TelephoneExchAndNumber: ""
        };
        this.PaymentInfo = {
            CCNumber: "",
            Type: "Credit Card",
            NameOnAccount: "",
            CardCode: "",
            ExpMM: "",
            ExpYYYY: "",
            Amount: 0.0,
            BillingAddress: that.AddressInfo
        };
        this.PersonInfo = {
            Title: "",
            GivenName: "",
            MiddleName: "",
            FamilyName: "",
            SuffixName: "",
            BirthDateTime: "01/01/1950",
            Email: ""
        };
        this.SecondaryPersonInfo = {
            Title: "",
            GivenName: "",
            MiddleName: "",
            FamilyName: "",
            SuffixName: "",
            BirthDateTime: "",
            Email: ""
        };
        this.RenewOrJoin = {
            IsRenewal: false,
            MembershipInfo: that.MembershipInfo,
            PaymentInfo: that.PaymentInfo,
            AddressInfo: that.AddressInfo,
            PrimaryPersonInfo: that.PersonInfo,
            SecondaryPersonInfo: that.SecondaryPersonInfo
        };
        this.MembershipInquiry = {
            AccountNumber: "",
            GivenName: "",
            MiddleName: "",
            FamilyName: "",
            PostalCode: "",
            BirthDateTime: "01/01/1950"
        };
        this.ProductRequest = {
            AccountNumber: "",
            GivenName: "",
            MiddleName: "",
            FamilyName: "",
            BirthDateTime: "01/01/1950",
            //MedicarePartBDate: "12/12/1999",
            //Gender: "",
            InsuredStatusCode: "",
            AddressLine1: "",
            AddressLine2: "",
            City: "",
            StateOrProvince: "",
            PostalCode: "",
            Telephone: "",
            EmailAddress: ""
        };
    }

}
