コード例 #1
0
        /// <summary>
        /// Initializes a client that will use the domain and version provided instead of the testing endpoint.
        /// </summary>
        /// <param name="credentials"></param>
        /// <param name="domain">The domain of the endpoint (ex: "https://api.gidx-service.in").</param>
        /// <param name="version">The API version number you want to use.</param>
        public GIDXClient(MerchantCredentials credentials, string domain, string version)
        {
            if (version[0] != 'v')
                version = "v" + version;

            var path = string.Format("/{0}/api/", version);
            Init(credentials, new Uri(new Uri(domain), path));
        }
コード例 #2
0
        public WebCashierClient(MerchantCredentials credentials, Uri baseAddress)
            : base(credentials, baseAddress, "WebCashier")
        {

        }
コード例 #3
0
        public WebMyAccountClient(MerchantCredentials credentials, Uri baseAddress)
            : base(credentials, baseAddress, "WebMyAccount")
        {

        }
コード例 #4
0
        public CustomerIdentityClient(MerchantCredentials credentials, Uri baseAddress)
            : base(credentials, baseAddress, "CustomerIdentity")
        {

        }
コード例 #5
0
        public WebRegClient(MerchantCredentials credentials, Uri baseAddress)
            : base(credentials, baseAddress, "WebReg")
        {

        }
コード例 #6
0
 private void Init(MerchantCredentials credentials, Uri baseAddress)
 {
     Credentials = credentials;
     _baseAddress = baseAddress;
 }
コード例 #7
0
 public GIDXClient(MerchantCredentials credentials, string baseAddress)
 {
     Init(credentials, new Uri(baseAddress));
 }
コード例 #8
0
 /// <summary>
 /// Initializes a client that will use the testing endpoint.
 /// </summary>
 /// <param name="credentials"></param>
 public GIDXClient(MerchantCredentials credentials)
     : this(credentials, DefaultDomain, DefaultVersion)
 {
     
 }
コード例 #9
0
        public DocumentLibraryClient(MerchantCredentials credentials, Uri baseAddress)
            : base(credentials, baseAddress, "DocumentLibrary")
        {

        }