Exemplo n.º 1
0
 public virtual String ToPKIRequestString()
 {
     return(ToStringRequestBuilder.NewInstance()
            .Append("locale", Locale)
            .Append("conversationId", ConversationId)
            .GetRequestString());
 }
Exemplo n.º 2
0
 public override String ToPKIRequestString()
 {
     return(ToStringRequestBuilder.NewInstance()
            .AppendSuper(base.ToPKIRequestString())
            .Append("cardUserKey", CardUserKey)
            .GetRequestString());
 }
Exemplo n.º 3
0
 public override String ToPKIRequestString()
 {
     return(ToStringRequestBuilder.NewInstance()
            .AppendSuper(base.ToPKIRequestString())
            .Append("binNumber", BinNumber)
            .GetRequestString());
 }
 public override String ToPkiRequestString()
 {
     return(ToStringRequestBuilder.NewInstance()
            .AppendSuper(base.ToPkiRequestString())
            .Append("paymentTransactionId", PaymentTransactionId)
            .GetRequestString());
 }
 public override string ToPKIRequestString()
 {
     return(ToStringRequestBuilder.NewInstance()
            .AppendSuper(base.ToPKIRequestString())
            .Append("subMerchantExternalId", SubMerchantExternalId)
            .GetRequestString());
 }
 public override string ToPKIRequestString()
 {
     return(ToStringRequestBuilder.NewInstance()
            .AppendSuper(base.ToPKIRequestString())
            .Append("date", Date)
            .GetRequestString());
 }
Exemplo n.º 7
0
 public string ToPkiRequestString()
 {
     return(ToStringRequestBuilder.NewInstance()
            .Append("bankId", BankId)
            .AppendList("installmentPrices", InstallmentPrices)
            .GetRequestString());
 }
Exemplo n.º 8
0
 public override String ToPKIRequestString()
 {
     return(ToStringRequestBuilder.NewInstance()
            .AppendSuper(base.ToPKIRequestString())
            .Append("callbackUrl", CallbackUrl)
            .GetRequestString());
 }
Exemplo n.º 9
0
 public override string ToPkiRequestString()
 {
     return(ToStringRequestBuilder.NewInstance()
            .AppendSuper(base.ToPkiRequestString())
            .Append("token", Token)
            .GetRequestString());
 }
Exemplo n.º 10
0
        public void Should_Append_When_Value_Is_Empty()
        {
            var    toStringRequestBuilder = ToStringRequestBuilder.NewInstance().Append("conversationId", string.Empty);
            string requestString          = GetRequestStringValue(toStringRequestBuilder);

            Assert.AreEqual("conversationId=,", requestString);
        }
Exemplo n.º 11
0
        public void should_append_nothing_when_value_is_not_null()
        {
            var    toStringRequestBuilder = ToStringRequestBuilder.NewInstance().Append("conversationId", null);
            string requestString          = GetRequestStringValue(toStringRequestBuilder);

            Assert.AreEqual(string.Empty, requestString);
        }
Exemplo n.º 12
0
        public void Should_Append_When_Value_Is_Not_Null()
        {
            var    toStringRequestBuilder = ToStringRequestBuilder.NewInstance().Append("conversationId", "123456");
            string requestString          = GetRequestStringValue(toStringRequestBuilder);

            Assert.AreEqual("conversationId=123456,", requestString);
        }
Exemplo n.º 13
0
 public String ToPKIRequestString()
 {
     return(ToStringRequestBuilder.NewInstance()
            .Append("installmentNumber", InstallmentNumber)
            .AppendPrice("totalPrice", TotalPrice)
            .GetRequestString());
 }
Exemplo n.º 14
0
 public override String ToPKIRequestString()
 {
     return(ToStringRequestBuilder.NewInstance()
            .AppendSuper(base.ToPKIRequestString())
            .Append("paymentId", PaymentId)
            .Append("conversationData", ConversationData)
            .GetRequestString());
 }
Exemplo n.º 15
0
 public override String ToPKIRequestString()
 {
     return(ToStringRequestBuilder.NewInstance()
            .AppendSuper(base.ToPKIRequestString())
            .Append("paymentId", PaymentId)
            .Append("ip", Ip)
            .GetRequestString());
 }
 public override String ToPKIRequestString()
 {
     return(ToStringRequestBuilder.NewInstance()
            .AppendSuper(base.ToPKIRequestString())
            .Append("subMerchantKey", SubMerchantKey)
            .AppendPrice("price", Price)
            .Append("reason", Reason)
            .GetRequestString());
 }
Exemplo n.º 17
0
 public override string ToPKIRequestString()
 {
     return(ToStringRequestBuilder.NewInstance()
            .AppendSuper(base.ToPKIRequestString())
            .Append("subMerchantKey", SubMerchantKey)
            .Append("paymentTransactionId", PaymentTransactionId)
            .AppendPrice("subMerchantPrice", SubMerchantPrice)
            .GetRequestString());
 }
Exemplo n.º 18
0
        public void Should_Append_And_Convert_Object_To_String()
        {
            string requestString = ToStringRequestBuilder.NewInstance()
                                   .Append("conversationId", "123456")
                                   .Append("locale", Locale.TR.ToString())
                                   .Append("price", "1.0").GetRequestString();

            Assert.AreEqual("[conversationId=123456,locale=tr,price=1.0]", requestString);
        }
Exemplo n.º 19
0
 public override string ToPkiRequestString()
 {
     return(ToStringRequestBuilder.NewInstance()
            .AppendSuper(base.ToPkiRequestString())
            .Append("externalId", ExternalId)
            .Append("email", Email)
            .Append("cardUserKey", CardUserKey)
            .Append("card", Card)
            .GetRequestString());
 }
Exemplo n.º 20
0
 public override String ToPkiRequestString()
 {
     return(ToStringRequestBuilder.NewInstance()
            .AppendSuper(base.ToPkiRequestString())
            .Append("paymentId", PaymentId)
            .Append("ip", Ip)
            .Append("reason", Reason)
            .Append("description", Description)
            .GetRequestString());
 }
Exemplo n.º 21
0
 public string ToPKIRequestString()
 {
     return(ToStringRequestBuilder.NewInstance()
            .Append("cardAlias", CardAlias)
            .Append("cardNumber", CardNumber)
            .Append("expireYear", ExpireYear)
            .Append("expireMonth", ExpireMonth)
            .Append("cardHolderName", CardHolderName)
            .GetRequestString());
 }
Exemplo n.º 22
0
 public string ToPKIRequestString()
 {
     return(ToStringRequestBuilder.NewInstance()
            .Append("name", Name)
            .Append("surname", Surname)
            .Append("email", Email)
            .Append("gsmNumber", GsmNumber)
            .Append("addressList", AddressList)
            .GetRequestString());
 }
Exemplo n.º 23
0
 public string ToPkiRequestString()
 {
     return(ToStringRequestBuilder.NewInstance()
            .Append("address", Description)
            .Append("zipCode", ZipCode)
            .Append("contactName", ContactName)
            .Append("city", City)
            .Append("country", Country)
            .GetRequestString());
 }
 public override string ToPkiRequestString()
 {
     return(ToStringRequestBuilder.NewInstance()
            .AppendSuper(base.ToPkiRequestString())
            .Append("paymentId", PaymentId)
            .Append("ip", Ip)
            .AppendPrice("paidPrice", PaidPrice)
            .Append("currency", Currency)
            .GetRequestString());
 }
Exemplo n.º 25
0
        public ClinicResponse GetClientByGuid(string guid, PageFilter filter)
        {
            string request = ToStringRequestBuilder.NewInstance()
                             .AppendGetMethod("Column", filter.Column)
                             .AppendGetMethod("Descending", filter.Descending.ToString())
                             .AppendGetMethod("Index", filter.Index.ToString())
                             .AppendGetMethod("Count", filter.Count.ToString())
                             .GetRequestString();

            return(RestHttpClient.Create().Get <ClinicResponse>("https://localhost:44331/clinics/get-by-guid?guid=" + guid + "&" + request));
        }
Exemplo n.º 26
0
 public override String ToPKIRequestString()
 {
     return(ToStringRequestBuilder.NewInstance()
            .AppendSuper(base.ToPKIRequestString())
            .Append("paymentTransactionId", PaymentTransactionId)
            .AppendPrice("price", Price)
            .Append("ip", Ip)
            .Append("currency", Currency)
            .Append("reason", Reason)
            .Append("description", Description)
            .GetRequestString());
 }
 public override String ToPKIRequestString()
 {
     return(ToStringRequestBuilder.NewInstance()
            .AppendSuper(base.ToPKIRequestString())
            .Append("addNewCardEnabled", AddNewCardEnabled.ToString().ToLower())
            .Append("validateNewCard", ValidateNewCard.ToString().ToLower())
            .Append("externalId", ExternalId)
            .Append("email", Email)
            .Append("cardUserKey", CardUserKey)
            .Append("callbackUrl", CallbackUrl)
            .Append("debitCardAllowed", DebitCardAllowed.ToString().ToLower())
            .GetRequestString());
 }
Exemplo n.º 28
0
        public string ToPKIRequestString()
        {
            return(ToStringRequestBuilder.NewInstance()
                   .Append("alias", Alias)
                   .Append("addressLine1", AddressLine1)
                   .Append("addressLine2", AddressLine2)
                   .Append("zipCode", ZipCode)
                   .Append("contactName", ContactName)
                   .Append("city", City)
                   .Append("country", Country)

                   .GetRequestString());
        }
Exemplo n.º 29
0
 public string ToPKIRequestString()
 {
     return(ToStringRequestBuilder.NewInstance()
            .Append("id", Id)
            .AppendPrice("price", Price)
            .Append("name", Name)
            .Append("category1", Category1)
            .Append("category2", Category2)
            .Append("itemType", ItemType)
            .Append("subMerchantKey", SubMerchantKey)
            .AppendPrice("subMerchantPrice", SubMerchantPrice)
            .GetRequestString());
 }
Exemplo n.º 30
0
 public override string ToPKIRequestString()
 {
     return(ToStringRequestBuilder.NewInstance()
            .AppendSuper(base.ToPKIRequestString())
            .Append("connectorName", ConnectorName)
            .AppendPrice("price", Price)
            .Append("callbackUrl", CallbackUrl)
            .Append("buyerEmail", BuyerEmail)
            .Append("buyerId", BuyerId)
            .Append("buyerIp", BuyerIp)
            .Append("posOrderId", PosOrderId)
            .AppendList("installmentDetails", InstallmentDetails)
            .GetRequestString());
 }