Class MShippingTransaction

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_M_ShippingTransaction, I_Persistent, Evaluatee

public class MShippingTransaction extends X_M_ShippingTransaction
Online shipping transaction model
See Also:
  • Constructor Details

    • MShippingTransaction

      public MShippingTransaction(Properties ctx, String M_ShippingTransaction_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      M_ShippingTransaction_UU - UUID key
      trxName - Transaction
    • MShippingTransaction

      public MShippingTransaction(Properties ctx, int M_ShippingTransaction_ID, String trxName)
      Parameters:
      ctx -
      M_ShippingTransaction_ID -
      trxName -
    • MShippingTransaction

      public MShippingTransaction(Properties ctx, ResultSet rs, String trxName)
      Parameters:
      ctx -
      rs -
      trxName -
  • Method Details

    • getLines

      public MShippingTransactionLine[] getLines(String whereClause)
      Parameters:
      whereClause -
      Returns:
      array of MShippingTransactionLine
    • setErrorMessage

      public void setErrorMessage(String errorMessage)
      Set error message
      Parameters:
      errorMessage -
    • getErrorMessage

      public String getErrorMessage()
      Returns:
      error message
    • processOnline

      public boolean processOnline()
      Submit online shipping request (shipment, rate inquiry or void shipment)
      Returns:
      true if success
    • getMShipper

      public MShipper getMShipper()
      Returns:
      shipper
    • isInternational

      public boolean isInternational()
      Returns:
      true if this is an international shipment
    • getCurrencyCode

      public String getCurrencyCode()
      Returns:
      currency ISO code
    • isPayBySender

      public boolean isPayBySender()
      Returns:
      true if freight charges will be pay by sender
    • getProductFreightID

      public int getProductFreightID()
      Returns:
      product id for freight charges
    • isPrintLabelAsImage

      public boolean isPrintLabelAsImage()
      Returns:
      true if shipping label is print as image
    • isPrintZebraLabel

      public boolean isPrintZebraLabel()
      Returns:
      true if shipping label is for printing via Zebra label printer
    • isPrintEltronLabel

      public boolean isPrintEltronLabel()
      Returns:
      true if shipping label is for printing via Eltron label printer
    • getPayorAccount

      public String getPayorAccount()
      Returns:
      payor account
    • getDutiesPayorAccount

      public String getDutiesPayorAccount()
      Returns:
      payor account for duties
    • getPayorCountryCode

      public String getPayorCountryCode()
      Returns:
      country code of payor
    • isCollect

      public boolean isCollect()
      Returns:
      true if freight charges is to be collected from receiver
    • is3rdParty

      public boolean is3rdParty()
      Returns:
      true if freight charges is pay by third party
    • getCommodityShipment

      public X_M_CommodityShipment getCommodityShipment(int M_Product_ID)
      Parameters:
      M_Product_ID -
      Returns:
      X_M_CommodityShipment
    • getCommodityShipmentID

      public int getCommodityShipmentID(int M_Product_ID)
      Parameters:
      M_Product_ID -
      Returns:
      M_CommodityShipment_ID
    • getCommodityDescription

      public String getCommodityDescription(int M_Product_ID)
      Parameters:
      M_Product_ID -
      Returns:
      commodity shipment description
    • getHarmonizedCode

      public String getHarmonizedCode(int M_Product_ID)
      Parameters:
      M_Product_ID -
      Returns:
      harmonized code of community shipment
    • getExportLicenseNum

      public String getExportLicenseNum(int M_Product_ID)
      Parameters:
      M_Product_ID -
      Returns:
      export license number of commodity shipment
    • getCountryOfManufacture

      public String getCountryOfManufacture(int M_Product_ID)
      Parameters:
      M_Product_ID -
      Returns:
      country code of manufacture country (from commodity shipment)
    • getSenderInfo

      public MShippingTransaction.PartyInfo getSenderInfo()
      Returns:
      sender details
    • getRecipientInfo

      public MShippingTransaction.PartyInfo getRecipientInfo()
      Returns:
      recipient details