Package dev.vality.anapi.v2.model
Class Invoice
java.lang.Object
dev.vality.anapi.v2.model.Invoice
@Generated(value="org.openapitools.codegen.languages.SpringCodegen",
date="2023-07-07T08:12:11.951968249Z[Etc/UTC]")
public class Invoice
extends Object
Invoice
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInvoice.StatusEnumСтатус инвойса -
Constructor Summary
Constructors Constructor Description Invoice() -
Method Summary
Modifier and Type Method Description InvoiceaddCartItem(InvoiceLine cartItem)Invoiceamount(Long amount)Invoicecart(List<InvoiceLine> cart)InvoicecreatedAt(OffsetDateTime createdAt)Invoicecurrency(String currency)Invoicedescription(String description)InvoicedueDate(OffsetDateTime dueDate)booleanequals(Object o)InvoiceexternalID(String externalID)@NotNull @Min(1L) LonggetAmount()Стоимость предлагаемых товаров или услуг, в минорных денежных единицах, например в копейках в случае указания российских рублей в качестве валюты.@Valid @Size(min=1,max=100) List<InvoiceLine>getCart()Корзина с набором позиций продаваемых товаров или услуг@NotNull @Valid OffsetDateTimegetCreatedAt()Дата и время создания@NotNull @Pattern(regexp="^[A-Z]{3}$") StringgetCurrency()Валюта, символьный код согласно [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html).@Size(max=1000) StringgetDescription()Описание предлагаемых товаров или услуг@NotNull @Valid OffsetDateTimegetDueDate()Дата и время окончания действияStringgetExternalID()Внешний идентификатор@NotNull StringgetId()Идентификатор инвойсаStringgetInvoiceTemplateID()Идентификатор шаблона (для инвойсов, созданных по шаблону).@NotNull ObjectgetMetadata()Связанные с инвойсом метаданные@NotNull @Size(max=100) StringgetProduct()Наименование предлагаемых товаров или услуг@Size(max=1000) StringgetReason()Причина отмены или погашения инвойса@NotNull StringgetShopID()Идентификатор магазина@NotNull Invoice.StatusEnumgetStatus()Статус инвойсаinthashCode()Invoiceid(String id)InvoiceinvoiceTemplateID(String invoiceTemplateID)Invoicemetadata(Object metadata)Invoiceproduct(String product)Invoicereason(String reason)voidsetAmount(Long amount)voidsetCart(List<InvoiceLine> cart)voidsetCreatedAt(OffsetDateTime createdAt)voidsetCurrency(String currency)voidsetDescription(String description)voidsetDueDate(OffsetDateTime dueDate)voidsetExternalID(String externalID)voidsetId(String id)voidsetInvoiceTemplateID(String invoiceTemplateID)voidsetMetadata(Object metadata)voidsetProduct(String product)voidsetReason(String reason)voidsetShopID(String shopID)voidsetStatus(Invoice.StatusEnum status)InvoiceshopID(String shopID)Invoicestatus(Invoice.StatusEnum status)StringtoString()
-
Constructor Details
-
Invoice
public Invoice()
-
-
Method Details
-
id
-
getId
Идентификатор инвойса- Returns:
- id
-
setId
-
externalID
-
getExternalID
Внешний идентификатор- Returns:
- externalID
-
setExternalID
-
shopID
-
getShopID
Идентификатор магазина- Returns:
- shopID
-
setShopID
-
createdAt
-
getCreatedAt
Дата и время создания- Returns:
- createdAt
-
setCreatedAt
-
dueDate
-
getDueDate
Дата и время окончания действия- Returns:
- dueDate
-
setDueDate
-
amount
-
getAmount
Стоимость предлагаемых товаров или услуг, в минорных денежных единицах, например в копейках в случае указания российских рублей в качестве валюты. minimum: 1- Returns:
- amount
-
setAmount
-
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
-
product
-
getProduct
Наименование предлагаемых товаров или услуг- Returns:
- product
-
setProduct
-
description
-
getDescription
Описание предлагаемых товаров или услуг- Returns:
- description
-
setDescription
-
invoiceTemplateID
-
getInvoiceTemplateID
Идентификатор шаблона (для инвойсов, созданных по шаблону).- Returns:
- invoiceTemplateID
-
setInvoiceTemplateID
-
cart
-
addCartItem
-
getCart
Корзина с набором позиций продаваемых товаров или услуг- Returns:
- cart
-
setCart
-
metadata
-
getMetadata
Связанные с инвойсом метаданные- Returns:
- metadata
-
setMetadata
-
status
-
getStatus
Статус инвойса- Returns:
- status
-
setStatus
-
reason
-
getReason
Причина отмены или погашения инвойса- Returns:
- reason
-
setReason
-
equals
-
hashCode
public int hashCode() -
toString
-