Tabnine Logo
TransactionRequest.getShippingAmount
Code IndexAdd Tabnine to your IDE (free)

How to use
getShippingAmount
method
in
com.aoindustries.creditcards.TransactionRequest

Best Java code snippets using com.aoindustries.creditcards.TransactionRequest.getShippingAmount (Showing top 6 results out of 315)

origin: com.aoindustries/ao-credit-cards-authorizeNet

private static BigDecimal getAmount(TransactionRequest transactionRequest) {
  BigDecimal amount = transactionRequest.getAmount();
  BigDecimal taxAmount = transactionRequest.getTaxAmount();
  if(taxAmount!=null) amount = amount.add(taxAmount);
  BigDecimal shippingAmount = transactionRequest.getShippingAmount();
  if(shippingAmount!=null) amount = amount.add(shippingAmount);
  BigDecimal dutyAmount = transactionRequest.getDutyAmount();
  if(dutyAmount!=null) amount = amount.add(dutyAmount);
  return amount;
}
origin: com.aoindustries/ao-credit-cards-usaepay

BigDecimal taxAmount = transactionRequest.getTaxAmount();
if(taxAmount!=null) amount = amount.add(taxAmount);
BigDecimal shippingAmount = transactionRequest.getShippingAmount();
if(shippingAmount!=null) amount = amount.add(shippingAmount);
BigDecimal dutyAmount = transactionRequest.getDutyAmount();
origin: com.aoindustries/ao-credit-cards-authorizeNet

addField(querySB, "x_freight", transactionRequest.getShippingAmount());
addField(querySB, "x_duty", transactionRequest.getDutyAmount());
addField(querySB, "x_tax_exempt", transactionRequest.getTaxExempt() ? "TRUE" : "FALSE");
origin: com.aoindustries/ao-credit-cards-payflowPro

BigDecimal taxAmount = transactionRequest.getTaxAmount();
if(taxAmount!=null) amount = amount.add(taxAmount);
BigDecimal shippingAmount = transactionRequest.getShippingAmount();
if(shippingAmount!=null) amount = amount.add(shippingAmount);
BigDecimal dutyAmount = transactionRequest.getDutyAmount();
origin: com.aoindustries/ao-credit-cards-sagePayments

emptyStringIfNull(transactionRequest.getShippingAmount()==null ? null : transactionRequest.getShippingAmount().toString()),
emptyStringIfNull(transactionRequest.getTaxAmount()==null ? null : transactionRequest.getTaxAmount().toString()),
emptyStringIfNull(transactionRequest.getOrderNumber()),
emptyStringIfNull(transactionRequest.getShippingAmount()==null ? null : transactionRequest.getShippingAmount().toString()),
emptyStringIfNull(transactionRequest.getTaxAmount()==null ? null : transactionRequest.getTaxAmount().toString()),
emptyStringIfNull(transactionRequest.getOrderNumber()),
emptyStringIfNull(transactionRequest.getShippingAmount()==null ? null : transactionRequest.getShippingAmount().toString()),
emptyStringIfNull(transactionRequest.getTaxAmount()==null ? null : transactionRequest.getTaxAmount().toString()),
emptyStringIfNull(transactionRequest.getOrderNumber()),
emptyStringIfNull(transactionRequest.getShippingAmount()==null ? null : transactionRequest.getShippingAmount().toString()),
emptyStringIfNull(transactionRequest.getTaxAmount()==null ? null : transactionRequest.getTaxAmount().toString()),
emptyStringIfNull(transactionRequest.getOrderNumber()),
origin: com.aoindustries/ao-credit-cards-stripe

/**
 * Meta data contains both card meta data (also associated with "customer" for stored cards) and transaction meta data.
 * https://stripe.com/docs/api#create_charge
 */
private static Map<String,Object> makeMetadata(TransactionRequest transactionRequest, CreditCard creditCard, boolean update) {
  Map<String,Object> metadata = makeMetadata(creditCard, update);
  // Additional customer meta data
  addMetaData(update, metadata, "customer_description", creditCard.getComments(), true);
  addMetaData(update, metadata, "customer_email", creditCard.getEmail(), false);
  // Transaction meta data
  addMetaData(update, metadata, "customer_ip", transactionRequest.getCustomerIp(), false);
  addMetaData(update, metadata, "order_number", transactionRequest.getOrderNumber(), false);
  addMetaData(update, metadata, "amount", transactionRequest.getAmount(), false);
  addMetaData(update, metadata, "tax_amount", transactionRequest.getTaxAmount(), false);
  addMetaData(update, metadata, "tax_exempt", transactionRequest.getTaxExempt(), false);
  addMetaData(update, metadata, "shipping_amount", transactionRequest.getShippingAmount(), false);
  addMetaData(update, metadata, "duty_amount", transactionRequest.getDutyAmount(), false);
  addMetaData(update, metadata, "shipping_company_name", transactionRequest.getShippingCompanyName(), true);
  addMetaData(update, metadata, "invoice_number", transactionRequest.getInvoiceNumber(), false);
  addMetaData(update, metadata, "purchase_order_number", transactionRequest.getPurchaseOrderNumber(), false);
  return metadata;
}
com.aoindustries.creditcardsTransactionRequestgetShippingAmount

Popular methods of TransactionRequest

  • getAmount
  • getCurrency
  • getOrderNumber
  • getShippingCity
  • getShippingCountryCode
  • getShippingFirstName
  • getShippingLastName
  • getShippingPostalCode
  • getShippingState
  • getShippingStreetAddress1
  • getShippingStreetAddress2
  • getTaxAmount
  • getShippingStreetAddress2,
  • getTaxAmount,
  • getCustomerIp,
  • getDescription,
  • getDutyAmount,
  • getInvoiceNumber,
  • getPurchaseOrderNumber,
  • getTaxExempt,
  • getTestMode

Popular in Java

  • Making http post requests using okhttp
  • addToBackStack (FragmentTransaction)
  • findViewById (Activity)
  • onCreateOptionsMenu (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now