Class CargoInvoice

java.lang.Object
com.veeroute.lss.universal.model.CargoInvoice

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-11-23T13:48:07.156941043+03:00[Europe/Moscow]", comments="Generator version: 7.17.0") public class CargoInvoice extends Object
Cargo invoice.
  • Field Details

  • Constructor Details

    • CargoInvoice

      public CargoInvoice()
  • Method Details

    • invoiceDetails

      public CargoInvoice invoiceDetails(@Nonnull List<CargoInvoiceDetail> invoiceDetails)
    • addInvoiceDetailsItem

      public CargoInvoice addInvoiceDetailsItem(CargoInvoiceDetail invoiceDetailsItem)
    • getInvoiceDetails

      @Nonnull public List<CargoInvoiceDetail> getInvoiceDetails()
      Product data.
      Returns:
      invoiceDetails
    • setInvoiceDetails

      public void setInvoiceDetails(@Nonnull List<CargoInvoiceDetail> invoiceDetails)
    • payable

      public CargoInvoice payable(@Nullable Boolean payable)
    • getPayable

      @Nullable public Boolean getPayable()
      Flag indicating whether payment is required: * `true` - payment required * `false` - payment not required
      Returns:
      payable
    • setPayable

      public void setPayable(@Nullable Boolean payable)
    • prepayment

      public CargoInvoice prepayment(@Nullable Double prepayment)
    • getPrepayment

      @Nullable public Double getPrepayment()
      Prepayment amount. minimum: 0 maximum: 1000000000
      Returns:
      prepayment
    • setPrepayment

      public void setPrepayment(@Nullable Double prepayment)
    • receipt

      public CargoInvoice receipt(@Nullable CargoInvoiceReceipt receipt)
    • getReceipt

      @Nullable public CargoInvoiceReceipt getReceipt()
      Get receipt
      Returns:
      receipt
    • setReceipt

      public void setReceipt(@Nullable CargoInvoiceReceipt receipt)
    • waybillNeeded

      public CargoInvoice waybillNeeded(@Nullable Boolean waybillNeeded)
    • getWaybillNeeded

      @Nullable public Boolean getWaybillNeeded()
      Flag indicating whether an Electronic Waybill is required for the cargo: * `true` - waybill required * `false` - waybill not required
      Returns:
      waybillNeeded
    • setWaybillNeeded

      public void setWaybillNeeded(@Nullable Boolean waybillNeeded)
    • waybill

      public CargoInvoice waybill(@Nullable CargoInvoiceWaybill waybill)
    • getWaybill

      @Nullable public CargoInvoiceWaybill getWaybill()
      Get waybill
      Returns:
      waybill
    • setWaybill

      public void setWaybill(@Nullable CargoInvoiceWaybill waybill)
    • putAdditionalProperty

      public CargoInvoice putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - name of the property
      value - value of the property
      Returns:
      the CargoInvoice instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to CargoInvoice
    • fromJson

      public static CargoInvoice fromJson(String jsonString) throws IOException
      Create an instance of CargoInvoice given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of CargoInvoice
      Throws:
      IOException - if the JSON string is invalid with respect to CargoInvoice
    • toJson

      public String toJson()
      Convert an instance of CargoInvoice to an JSON string
      Returns:
      JSON string