Beispiel #1
0
        public returntype process_wsdl(argtype args)
        {
            object[] results = this.Invoke("process_wsdl", new object[] {
                args
            });

            return((returntype)(results[0]));
        }
Beispiel #2
0
 /// <remarks/>
 public void process_wsdlAsync(argtype args, object userState)
 {
     if ((this.process_wsdlOperationCompleted == null))
     {
         this.process_wsdlOperationCompleted = new System.Threading.SendOrPostCallback(this.Onprocess_wsdlOperationCompleted);
     }
     this.InvokeAsync("process_wsdl", new object[] {
         args
     }, this.process_wsdlOperationCompleted, userState);
 }
        public static argtype TranslateToSfgRequest(CreditCardServiceRequest ahRequest)
        {
            EventLogger.LogEvent("ENTERING -> SFGWrapper.CreditCardTranslators.TranslateToSfgRequest()");
            argtype sfgRequest = new argtype();

            #region readonly properties
            sfgRequest.org = ahRequest.Org;
            sfgRequest.test_mode = ahRequest.TestMode ? "Y" : "N";
            sfgRequest.app_version = ahRequest.AppVersion;
            sfgRequest.program_id = ahRequest.ProgramId;
            sfgRequest.program_type_id = ahRequest.ProgramTypeId;
            #endregion
                        
            sfgRequest.cc_name = ahRequest.CreditCardData.CCName;
            sfgRequest.cc_number = ahRequest.CreditCardData.CCNumber;
            sfgRequest.cc_exp_mm = ahRequest.CreditCardData.CCExpMonth.ToString().PadLeft(2,'0');
            sfgRequest.cc_exp_yyyy = ahRequest.CreditCardData.CCExpYear.ToString().PadLeft(4,'0');
            sfgRequest.cc_amount = ahRequest.CreditCardData.AmountPaid;
            sfgRequest.cc_trans_type = ahRequest.CreditCardData.TransactionType;

            sfgRequest.cc_addr = ahRequest.CreditCardData.CCAddress;
            sfgRequest.cc_city = ahRequest.CreditCardData.CCCity;
            sfgRequest.cc_state = ahRequest.CreditCardData.CCState;
            sfgRequest.cc_zip = ahRequest.CreditCardData.CCPostalCode;
            sfgRequest.cc_country = ahRequest.CreditCardData.CCCountry;

            sfgRequest.business_name = ahRequest.MemberData.Address.BusinessName;
            sfgRequest.add1 = ahRequest.MemberData.Address.Address1;
            sfgRequest.add2 = ahRequest.MemberData.Address.Address2;
            sfgRequest.add3 = ahRequest.MemberData.Address.Address3;
            sfgRequest.city = ahRequest.MemberData.Address.City;
            sfgRequest.st = ahRequest.MemberData.Address.State;
            sfgRequest.zip = ahRequest.MemberData.Address.PostalCode;
            sfgRequest.phone = ahRequest.MemberData.Address.Phone;
            sfgRequest.fax = ahRequest.MemberData.Address.Fax;
            sfgRequest.altcity = ahRequest.MemberData.Address.AltCity;
            sfgRequest.country = ahRequest.MemberData.Address.Country;
            sfgRequest.title = ahRequest.MemberData.Salutation;
            sfgRequest.first = ahRequest.MemberData.FirstName;
            sfgRequest.mi = ahRequest.MemberData.MiddleInitial;
            sfgRequest.last = ahRequest.MemberData.LastName;
            sfgRequest.suffix = ahRequest.MemberData.Suffix;
            sfgRequest.professional_title = ahRequest.MemberData.ProfessionalTitle;
            sfgRequest.email = ahRequest.MemberData.Email;
            sfgRequest.optin = ahRequest.MemberData.OptIn ? "Y" : "N";

            sfgRequest.refresh_customer = "N";

            EventLogger.LogEvent("LEAVING -> SFGWrapper.CreditCardTranslators.TranslateToSfgRequest()");
            return sfgRequest;
        }
Beispiel #4
0
 /// <remarks/>
 public void process_wsdlAsync(argtype args, object userState) {
     if ((this.process_wsdlOperationCompleted == null)) {
         this.process_wsdlOperationCompleted = new System.Threading.SendOrPostCallback(this.Onprocess_wsdlOperationCompleted);
     }
     this.InvokeAsync("process_wsdl", new object[] {
                 args}, this.process_wsdlOperationCompleted, userState);
 }
Beispiel #5
0
 /// <remarks/>
 public void process_wsdlAsync(argtype args) {
     this.process_wsdlAsync(args, null);
 }
Beispiel #6
0
 public returntype process_wsdl(argtype args) {
     object[] results = this.Invoke("process_wsdl", new object[] {
                 args});
     return ((returntype)(results[0]));
 }
Beispiel #7
0
 /// <remarks/>
 public void process_wsdlAsync(argtype args)
 {
     this.process_wsdlAsync(args, null);
 }