Class InvoiceAllOf

java.lang.Object
dev.vality.anapi.v2.model.InvoiceAllOf

@Generated(value="org.openapitools.codegen.languages.SpringCodegen",
           date="2023-07-07T08:12:11.951968249Z[Etc/UTC]")
public class InvoiceAllOf
extends Object
InvoiceAllOf
  • Constructor Details

    • InvoiceAllOf

      public InvoiceAllOf()
  • Method Details

    • id

      public InvoiceAllOf id​(String id)
    • getId

      @NotNull public @NotNull String getId()
      Идентификатор инвойса
      Returns:
      id
    • setId

      public void setId​(String id)
    • externalID

      public InvoiceAllOf externalID​(String externalID)
    • getExternalID

      public String getExternalID()
      Внешний идентификатор
      Returns:
      externalID
    • setExternalID

      public void setExternalID​(String externalID)
    • shopID

      public InvoiceAllOf shopID​(String shopID)
    • getShopID

      @NotNull public @NotNull String getShopID()
      Идентификатор магазина
      Returns:
      shopID
    • setShopID

      public void setShopID​(String shopID)
    • createdAt

      public InvoiceAllOf createdAt​(OffsetDateTime createdAt)
    • getCreatedAt

      @NotNull @Valid public @NotNull @Valid OffsetDateTime getCreatedAt()
      Дата и время создания
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt​(OffsetDateTime createdAt)
    • dueDate

      public InvoiceAllOf dueDate​(OffsetDateTime dueDate)
    • getDueDate

      @NotNull @Valid public @NotNull @Valid OffsetDateTime getDueDate()
      Дата и время окончания действия
      Returns:
      dueDate
    • setDueDate

      public void setDueDate​(OffsetDateTime dueDate)
    • amount

      public InvoiceAllOf amount​(Long amount)
    • getAmount

      @NotNull @Min(1L) public @NotNull @Min(1L) Long getAmount()
      Стоимость предлагаемых товаров или услуг, в минорных денежных единицах, например в копейках в случае указания российских рублей в качестве валюты. minimum: 1
      Returns:
      amount
    • setAmount

      public void setAmount​(Long amount)
    • currency

      public InvoiceAllOf currency​(String currency)
    • getCurrency

      @NotNull @Pattern(regexp="^[A-Z]{3}$") public @NotNull @Pattern(regexp="^[A-Z]{3}$") String getCurrency()
      Валюта, символьный код согласно [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html).
      Returns:
      currency
    • setCurrency

      public void setCurrency​(String currency)
    • product

      public InvoiceAllOf product​(String product)
    • getProduct

      @NotNull @Size(max=100) public @NotNull @Size(max=100) String getProduct()
      Наименование предлагаемых товаров или услуг
      Returns:
      product
    • setProduct

      public void setProduct​(String product)
    • description

      public InvoiceAllOf description​(String description)
    • getDescription

      @Size(max=1000) public @Size(max=1000) String getDescription()
      Описание предлагаемых товаров или услуг
      Returns:
      description
    • setDescription

      public void setDescription​(String description)
    • invoiceTemplateID

      public InvoiceAllOf invoiceTemplateID​(String invoiceTemplateID)
    • getInvoiceTemplateID

      public String getInvoiceTemplateID()
      Идентификатор шаблона (для инвойсов, созданных по шаблону).
      Returns:
      invoiceTemplateID
    • setInvoiceTemplateID

      public void setInvoiceTemplateID​(String invoiceTemplateID)
    • cart

      public InvoiceAllOf cart​(List<InvoiceLine> cart)
    • addCartItem

      public InvoiceAllOf addCartItem​(InvoiceLine cartItem)
    • getCart

      @Valid @Size(min=1, max=100) public @Valid @Size(min=1,max=100) List<InvoiceLine> getCart()
      Корзина с набором позиций продаваемых товаров или услуг
      Returns:
      cart
    • setCart

      public void setCart​(List<InvoiceLine> cart)
    • metadata

      public InvoiceAllOf metadata​(Object metadata)
    • getMetadata

      @NotNull public @NotNull Object getMetadata()
      Связанные с инвойсом метаданные
      Returns:
      metadata
    • setMetadata

      public void setMetadata​(Object metadata)
    • 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