@@ -0,0 +1,2803 @@
+package com.iyzipay.model.sample;%0A%0Aimport com.iyzipay.model.ConnectPaymentPreAuth;%0Aimport com.iyzipay.model.Locale;%0Aimport com.iyzipay.model.PaymentCard;%0Aimport com.iyzipay.request.CreateConnectPaymentRequest;%0Aimport org.junit.Test;%0A%0Aimport java.math.BigDecimal;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertNotNull;%0A%0Apublic class ConnectPaymentPreAuthSample extends Sample %7B%0A%0A    @Test%0A    public void should_pay_with_card() %7B%0A        CreateConnectPaymentRequest request = new CreateConnectPaymentRequest();%0A        request.setLocale(Locale.TR.getValue());%0A        request.setConversationId(%22123456789%22);%0A        request.setBuyerEmail(%22email@email.com%22);%0A        request.setBuyerId(%22B2323%22);%0A        request.setBuyerIp(%22127.0.0.1%22);%0A        request.setConnectorName(%22connector name%22);%0A        request.setInstallment(1);%0A        request.setPaidPrice(new BigDecimal(%221%22));%0A        request.setPrice(new BigDecimal(%221%22));%0A%0A        PaymentCard paymentCard = new PaymentCard();%0A        paymentCard.setCardHolderName(%22John Doe%22);%0A        paymentCard.setCardNumber(%225528790000000008%22);%0A        paymentCard.setExpireMonth(%2212%22);%0A        paymentCard.setExpireYear(%222030%22);%0A        paymentCard.setCvc(%22123%22);%0A        paymentCard.setRegisterCard(0);%0A        request.setPaymentCard(paymentCard);%0A%0A        ConnectPaymentPreAuth connectPaymentPreAuth = ConnectPaymentPreAuth.create(request, options);%0A%0A        System.out.println(connectPaymentPreAuth);%0A%0A        assertNotNull(connectPaymentPreAuth.getConversationId());%0A        assertNotNull(connectPaymentPreAuth.getLocale());%0A        assertEquals(Locale.TR.getValue(), connectPaymentPreAuth.getLocale());%0A    %7D%0A%0A    @Test%0A    public void should_pay_with_card_token() %7B%0A        CreateConnectPaymentRequest request = new CreateConnectPaymentRequest();%0A        request.setLocale(Locale.TR.getValue());%0A        request.setConversationId(%22123456789%22);%0A        request.setBuyerEmail(%22email@email.com%22);%0A        request.setBuyerId(%22B2323%22);%0A        request.setBuyerIp(%22127.0.0.1%22);%0A        request.setConnectorName(%22connector name%22);%0A        request.setInstallment(1);%0A        request.setPaidPrice(new BigDecimal(%221%22));%0A        request.setPrice(new BigDecimal(%221%22));%0A%0A        PaymentCard paymentCard = new PaymentCard();%0A        paymentCard.setCardToken(%22card token%22);%0A        paymentCard.setCardUserKey(%22card user key%22);%0A        request.setPaymentCard(paymentCard);%0A%0A        ConnectPaymentPreAuth connectPaymentPreAuth = ConnectPaymentPreAuth.create(request, options);%0A%0A        System.out.println(connectPaymentPreAuth);%0A%0A        assertNotNull(connectPaymentPreAuth.getConversationId());%0A        assertNotNull(connectPaymentPreAuth.getLocale());%0A        assertEquals(Locale.TR.getValue(), connectPaymentPreAuth.getLocale());%0A    %7D%0A%7D%0A

connect pre auth sample added