/// <summary>
        /// Countries Supported:
        /// AU - Australia
        /// AT - Austria
        /// BE
        /// - Belgium
        /// BR - Brazil
        /// CA - Canada
        /// CZ - Czech Republic
        /// FR - France
        /// DE -
        /// Germany
        /// GR - Greece
        /// HK - Hong Kong
        /// IE - Ireland
        /// IT - Italy
        /// JP - Japan
        /// LU -
        /// Luxembourg
        /// MX - Mexico
        /// NL - Netherlands
        /// NZ - New Zealand (Aotearoa)
        /// PL -
        /// Poland
        /// PT - Portugal
        /// RU - Russian Federation
        /// SG - Singapore
        /// ZA - South
        /// Africa
        /// ES - Spain
        /// CH - Switzerland
        /// UK - United Kingdom
        /// US - United
        /// States
        /// 
        /// 
        /// 
        /// 
        /// 
        /// </summary>
        ///<param name="addPaymentCardRequest"></param>
        ///<param name="credential">An explicit ICredential object that you want to authenticate this call against</param> 
        public AddPaymentCardResponse AddPaymentCard(AddPaymentCardRequest addPaymentCardRequest, ICredential credential)
        {
            IAPICallPreHandler apiCallPreHandler = new PlatformAPICallPreHandler(this.config, addPaymentCardRequest.ToNVPString(string.Empty), ServiceName, "AddPaymentCard", credential);
               	 	((PlatformAPICallPreHandler) apiCallPreHandler).SDKName = SDKName;
            ((PlatformAPICallPreHandler) apiCallPreHandler).SDKVersion = SDKVersion;
            ((PlatformAPICallPreHandler) apiCallPreHandler).PortName = "AdaptiveAccounts";

            NVPUtil util = new NVPUtil();
            return AddPaymentCardResponse.CreateInstance(util.ParseNVPString(Call(apiCallPreHandler)), string.Empty, -1);
        }
Exemplo n.º 2
0
 /**
   * Countries Supported:
   *     AU - Australia
   *     AT - Austria
   *     BE - Belgium
   *     BR - Brazil
   *     CA - Canada
   *     CZ - Czech Republic
   *     FR - France
   *     DE - Germany
   *     GR - Greece
   *     HK - Hong Kong
   *     IE - Ireland
   *     IT - Italy
   *     JP - Japan
   *     LU - Luxembourg
   *     MX - Mexico
   *     NL - Netherlands
   *     NZ - New Zealand (Aotearoa)
   *     PL - Poland
   *     PT - Portugal
   *     RU - Russian Federation
   *     SG - Singapore
   *     ZA - South Africa
   *     ES - Spain
   *     CH - Switzerland
   *     UK - United Kingdom
   *     US - United States
   *
   *
   *
   *
   *
  	  */
 public AddPaymentCardResponse AddPaymentCard(AddPaymentCardRequest addPaymentCardRequest, string apiUserName)
 {
     string response = Call("AddPaymentCard", addPaymentCardRequest.ToNVPString(""), apiUserName);
     NVPUtil util = new NVPUtil();
     return AddPaymentCardResponse.CreateInstance(util.ParseNVPString(response), "", -1);
 }