Beispiel #1
0
        /// <summary>
        /// A basic add example
        /// </summary>
        /// <param name="orgCode">Organization Code</param>
        /// <param name="account">This should be a single account code</param>
        /// <param name="priceList">The price list code</param>
        /// <param name="billingCycle">This is the user-configurable Billing cycle code on the order, which is pulled from Order Cycle v20 window</param>
        /// <param name="periodCycle">This is the user-configurable Period cycle code on the order, which is pulled from Order Cycle v20 window</param>
        public MembershipOrdersModel Add(string orgCode, string account, string priceList, string billingCycle, string periodCycle)
        {
            var myMembershipOrder = new MembershipOrdersModel
            {
                OrganizationCode = orgCode,
                OrderStatus      = "A", //This is the user-configurable status code on the order
                Account          = account,
                MembershipStart  = System.DateTime.Now,
                MembershipEnd    = System.DateTime.Now,
                PriceList        = priceList,
                BillToAccount    = account, //This can be a different account code
                BillingDate      = System.DateTime.Now,
                BillingCycle     = billingCycle,
                PeriodCycle      = periodCycle,
            };

            return(APIUtil.AddMembershipOrder(USISDKClient, myMembershipOrder));
        }