This request should be used for Auth only, but is backward compatible for older implementations. If you are currently using an AuthRequest with IsPreAuth = true, please change your code to use PreAuthRequest/PreAuthResponse for all PreAuth transactions.
Inheritance: TransactionRequest
 public void Auth(AuthRequest request)
 {
     Send("/Auth", request);
 }
        private void Auth(POSCard card)
        {
            StoreItems.BringToFront();
            StoreDiscounts.BringToFront();

            SaleButton.Enabled = false;
            StoreItems.Enabled = false;
            newOrderBtn.Enabled = false;

            AuthRequest request = new AuthRequest();
            request.Amount = Store.CurrentOrder.Total;
            request.ExternalId = ExternalIDUtil.GenerateRandomString(13);

            // Card Entry methods
            long CardEntry = 0;
            CardEntry |= ManualEntryCheckbox.Checked ? CloverConnector.CARD_ENTRY_METHOD_MANUAL : 0;
            CardEntry |= MagStripeCheckbox.Checked ? CloverConnector.CARD_ENTRY_METHOD_MAG_STRIPE : 0;
            CardEntry |= ChipCheckbox.Checked ? CloverConnector.CARD_ENTRY_METHOD_ICC_CONTACT : 0;
            CardEntry |= ContactlessCheckbox.Checked ? CloverConnector.CARD_ENTRY_METHOD_NFC_CONTACTLESS : 0;

            request.CardEntryMethods = CardEntry;
            request.CardNotPresent = CardNotPresentCheckbox.Checked;
            if (!offlineDefault.Checked)
            {
                request.AllowOfflinePayment = offlineYes.Checked;
            }
            if (!approveOfflineDefault.Checked)
            {
                request.ApproveOfflinePaymentWithoutPrompt = approveOfflineYes.Checked;
            }
            if (card != null)
            {
                request.VaultedCard = new com.clover.sdk.v3.payments.VaultedCard();
                request.VaultedCard.cardholderName = card.Name;
                request.VaultedCard.first6 = card.First6;
                request.VaultedCard.last4 = card.Last4;
                request.VaultedCard.expirationDate = card.Month + "" + card.Year;
                request.VaultedCard.token = card.Token;
            }
            cloverConnector.Auth(request);
        }
 public void Auth(AuthRequest request)
 {
     if (websocket != null)
     {
         AuthRequestMessage message = new AuthRequestMessage();
         message.payload = request;
         websocket.Send(JsonUtils.serialize(message));
     }
 }