Class CargoInvoiceDetail

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

@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 CargoInvoiceDetail extends Object
Invoice details for the product.
  • Field Details

  • Constructor Details

    • CargoInvoiceDetail

      public CargoInvoiceDetail()
  • Method Details

    • key

      public CargoInvoiceDetail key(@Nonnull String key)
    • getKey

      @Nonnull public String getKey()
      The key of the product or service associated with the cargo, a unique identifier.
      Returns:
      key
    • setKey

      public void setKey(@Nonnull String key)
    • fullName

      public CargoInvoiceDetail fullName(@Nonnull String fullName)
    • getFullName

      @Nonnull public String getFullName()
      Product name.
      Returns:
      fullName
    • setFullName

      public void setFullName(@Nonnull String fullName)
    • unitName

      public CargoInvoiceDetail unitName(@Nullable String unitName)
    • getUnitName

      @Nullable public String getUnitName()
      Product unit name.
      Returns:
      unitName
    • setUnitName

      public void setUnitName(@Nullable String unitName)
    • unitPrice

      public CargoInvoiceDetail unitPrice(@Nonnull Double unitPrice)
    • getUnitPrice

      @Nonnull public Double getUnitPrice()
      Product unit price. minimum: 0 maximum: 1000000000
      Returns:
      unitPrice
    • setUnitPrice

      public void setUnitPrice(@Nonnull Double unitPrice)
    • unitQuantity

      public CargoInvoiceDetail unitQuantity(@Nonnull Double unitQuantity)
    • getUnitQuantity

      @Nonnull public Double getUnitQuantity()
      Product quantity. minimum: 0.01 maximum: 1000000000
      Returns:
      unitQuantity
    • setUnitQuantity

      public void setUnitQuantity(@Nonnull Double unitQuantity)
    • externalId

      public CargoInvoiceDetail externalId(@Nullable String externalId)
    • getExternalId

      @Nullable public String getExternalId()
      External product identifier.
      Returns:
      externalId
    • setExternalId

      public void setExternalId(@Nullable String externalId)
    • externalUrl

      public CargoInvoiceDetail externalUrl(@Nullable String externalUrl)
    • getExternalUrl

      @Nullable public String getExternalUrl()
      Link to product description.
      Returns:
      externalUrl
    • setExternalUrl

      public void setExternalUrl(@Nullable String externalUrl)
    • tax

      public CargoInvoiceDetail tax(@Nonnull CargoInvoiceTax tax)
    • getTax

      @Nonnull public CargoInvoiceTax getTax()
      Get tax
      Returns:
      tax
    • setTax

      public void setTax(@Nonnull CargoInvoiceTax tax)
    • honestSign

      public CargoInvoiceDetail honestSign(@Nonnull CargoInvoiceHonestSign honestSign)
    • getHonestSign

      @Nonnull public CargoInvoiceHonestSign getHonestSign()
      Get honestSign
      Returns:
      honestSign
    • setHonestSign

      public void setHonestSign(@Nonnull CargoInvoiceHonestSign honestSign)
    • scanCode

      public CargoInvoiceDetail scanCode(@Nullable String scanCode)
    • getScanCode

      @Nullable public String getScanCode()
      Barcode or QR-code.
      Returns:
      scanCode
    • setScanCode

      public void setScanCode(@Nullable String scanCode)
    • ageRestriction

      public CargoInvoiceDetail ageRestriction(@Nullable Boolean ageRestriction)
    • getAgeRestriction

      @Nullable public Boolean getAgeRestriction()
      Age restrictions apply (18+).
      Returns:
      ageRestriction
    • setAgeRestriction

      public void setAgeRestriction(@Nullable Boolean ageRestriction)
    • paymentSubjectType

      public CargoInvoiceDetail paymentSubjectType(@Nullable String paymentSubjectType)
    • getPaymentSubjectType

      @Nullable public String getPaymentSubjectType()
      The item being paid. For example, Product or Service.
      Returns:
      paymentSubjectType
    • setPaymentSubjectType

      public void setPaymentSubjectType(@Nullable String paymentSubjectType)
    • partialDelivery

      public CargoInvoiceDetail partialDelivery(@Nullable Boolean partialDelivery)
    • getPartialDelivery

      @Nullable public Boolean getPartialDelivery()
      Flag indicating whether partial delivery of products is possible: * `true` - partial delivery is allowed * `false` - partial delivery is prohibited, products are delivered only in full
      Returns:
      partialDelivery
    • setPartialDelivery

      public void setPartialDelivery(@Nullable Boolean partialDelivery)
    • putAdditionalProperty

      public CargoInvoiceDetail 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 CargoInvoiceDetail 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 CargoInvoiceDetail
    • fromJson

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

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