// Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/invoice/v1/keyapis_invoice_invoice_v1.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") package ru.keyapis.invoice.v1; @kotlin.jvm.JvmName("-initializeinvoice") public inline fun invoice(block: ru.keyapis.invoice.v1.InvoiceKt.Dsl.() -> kotlin.Unit): ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice = ru.keyapis.invoice.v1.InvoiceKt.Dsl._create(ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.newBuilder()).apply { block() }._build() /** * ``` * Выставленный счёт * ``` * * Protobuf type `keyapis.invoice.v1.Invoice` */ public object InvoiceKt { @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) @com.google.protobuf.kotlin.ProtoDslMarker public class Dsl private constructor( private val _builder: ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice = _builder.build() /** * ``` * Идентификатор платежа. * # Тип: Guid * ``` * * `string id = 1 [(.google.api.field_behavior) = REQUIRED];` */ public var id: kotlin.String @JvmName("getId") get() = _builder.getId() @JvmName("setId") set(value) { _builder.setId(value) } /** * ``` * Идентификатор платежа. * # Тип: Guid * ``` * * `string id = 1 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearId() { _builder.clearId() } /** * ``` * Описание платежа * ``` * * `string title = 2 [(.google.api.field_behavior) = REQUIRED];` */ public var title: kotlin.String @JvmName("getTitle") get() = _builder.getTitle() @JvmName("setTitle") set(value) { _builder.setTitle(value) } /** * ``` * Описание платежа * ``` * * `string title = 2 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearTitle() { _builder.clearTitle() } /** * ``` * Идентификатор пользователя * ``` * * `int32 user_id = 3 [(.google.api.field_behavior) = REQUIRED];` */ public var userId: kotlin.Int @JvmName("getUserId") get() = _builder.getUserId() @JvmName("setUserId") set(value) { _builder.setUserId(value) } /** * ``` * Идентификатор пользователя * ``` * * `int32 user_id = 3 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearUserId() { _builder.clearUserId() } /** * ``` * Статус платежа * ``` * * `.keyapis.invoice.v1.Invoice.InvoiceStatusType invoice_status_type = 4 [(.google.api.field_behavior) = REQUIRED];` */ public var invoiceStatusType: ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.InvoiceStatusType @JvmName("getInvoiceStatusType") get() = _builder.getInvoiceStatusType() @JvmName("setInvoiceStatusType") set(value) { _builder.setInvoiceStatusType(value) } public var invoiceStatusTypeValue: kotlin.Int @JvmName("getInvoiceStatusTypeValue") get() = _builder.getInvoiceStatusTypeValue() @JvmName("setInvoiceStatusTypeValue") set(value) { _builder.setInvoiceStatusTypeValue(value) } /** * ``` * Статус платежа * ``` * * `.keyapis.invoice.v1.Invoice.InvoiceStatusType invoice_status_type = 4 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearInvoiceStatusType() { _builder.clearInvoiceStatusType() } /** * ``` * Дата создания платежа. * # Тип: DateTime * ``` * * `.google.protobuf.Timestamp created_at = 5 [(.google.api.field_behavior) = REQUIRED];` */ public var createdAt: com.google.protobuf.Timestamp @JvmName("getCreatedAt") get() = _builder.getCreatedAt() @JvmName("setCreatedAt") set(value) { _builder.setCreatedAt(value) } /** * ``` * Дата создания платежа. * # Тип: DateTime * ``` * * `.google.protobuf.Timestamp created_at = 5 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearCreatedAt() { _builder.clearCreatedAt() } /** * ``` * Дата создания платежа. * # Тип: DateTime * ``` * * `.google.protobuf.Timestamp created_at = 5 [(.google.api.field_behavior) = REQUIRED];` * @return Whether the createdAt field is set. */ public fun hasCreatedAt(): kotlin.Boolean { return _builder.hasCreatedAt() } /** * ``` * Дата обновления платежа. * # Тип: DateTime * ``` * * `.google.protobuf.Timestamp updated_at = 6 [(.google.api.field_behavior) = REQUIRED];` */ public var updatedAt: com.google.protobuf.Timestamp @JvmName("getUpdatedAt") get() = _builder.getUpdatedAt() @JvmName("setUpdatedAt") set(value) { _builder.setUpdatedAt(value) } /** * ``` * Дата обновления платежа. * # Тип: DateTime * ``` * * `.google.protobuf.Timestamp updated_at = 6 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearUpdatedAt() { _builder.clearUpdatedAt() } /** * ``` * Дата обновления платежа. * # Тип: DateTime * ``` * * `.google.protobuf.Timestamp updated_at = 6 [(.google.api.field_behavior) = REQUIRED];` * @return Whether the updatedAt field is set. */ public fun hasUpdatedAt(): kotlin.Boolean { return _builder.hasUpdatedAt() } /** * An uninstantiable, behaviorless type to represent the field in * generics. */ @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) public class PositionsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() /** * ``` * Позиция счета * ``` * * `repeated .keyapis.invoice.v1.Invoice.Position positions = 7 [(.google.api.field_behavior) = REQUIRED];` */ public val positions: com.google.protobuf.kotlin.DslList @kotlin.jvm.JvmSynthetic get() = com.google.protobuf.kotlin.DslList( _builder.getPositionsList() ) /** * ``` * Позиция счета * ``` * * `repeated .keyapis.invoice.v1.Invoice.Position positions = 7 [(.google.api.field_behavior) = REQUIRED];` * @param value The positions to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("addPositions") public fun com.google.protobuf.kotlin.DslList.add(value: ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.Position) { _builder.addPositions(value) } /** * ``` * Позиция счета * ``` * * `repeated .keyapis.invoice.v1.Invoice.Position positions = 7 [(.google.api.field_behavior) = REQUIRED];` * @param value The positions to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("plusAssignPositions") @Suppress("NOTHING_TO_INLINE") public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.Position) { add(value) } /** * ``` * Позиция счета * ``` * * `repeated .keyapis.invoice.v1.Invoice.Position positions = 7 [(.google.api.field_behavior) = REQUIRED];` * @param values The positions to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("addAllPositions") public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { _builder.addAllPositions(values) } /** * ``` * Позиция счета * ``` * * `repeated .keyapis.invoice.v1.Invoice.Position positions = 7 [(.google.api.field_behavior) = REQUIRED];` * @param values The positions to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("plusAssignAllPositions") @Suppress("NOTHING_TO_INLINE") public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { addAll(values) } /** * ``` * Позиция счета * ``` * * `repeated .keyapis.invoice.v1.Invoice.Position positions = 7 [(.google.api.field_behavior) = REQUIRED];` * @param index The index to set the value at. * @param value The positions to set. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("setPositions") public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.Position) { _builder.setPositions(index, value) } /** * ``` * Позиция счета * ``` * * `repeated .keyapis.invoice.v1.Invoice.Position positions = 7 [(.google.api.field_behavior) = REQUIRED];` */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("clearPositions") public fun com.google.protobuf.kotlin.DslList.clear() { _builder.clearPositions() } /** * ``` * Метод платежа * ``` * * `.keyapis.invoice.v1.Invoice.PayInterfaceType pay_interface_type = 8;` */ public var payInterfaceType: ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.PayInterfaceType @JvmName("getPayInterfaceType") get() = _builder.getPayInterfaceType() @JvmName("setPayInterfaceType") set(value) { _builder.setPayInterfaceType(value) } public var payInterfaceTypeValue: kotlin.Int @JvmName("getPayInterfaceTypeValue") get() = _builder.getPayInterfaceTypeValue() @JvmName("setPayInterfaceTypeValue") set(value) { _builder.setPayInterfaceTypeValue(value) } /** * ``` * Метод платежа * ``` * * `.keyapis.invoice.v1.Invoice.PayInterfaceType pay_interface_type = 8;` */ public fun clearPayInterfaceType() { _builder.clearPayInterfaceType() } /** * ``` * Способ оплаты * ``` * * `.keyapis.invoice.v1.Invoice.PaywayType payway_type = 9;` */ public var paywayType: ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.PaywayType @JvmName("getPaywayType") get() = _builder.getPaywayType() @JvmName("setPaywayType") set(value) { _builder.setPaywayType(value) } public var paywayTypeValue: kotlin.Int @JvmName("getPaywayTypeValue") get() = _builder.getPaywayTypeValue() @JvmName("setPaywayTypeValue") set(value) { _builder.setPaywayTypeValue(value) } /** * ``` * Способ оплаты * ``` * * `.keyapis.invoice.v1.Invoice.PaywayType payway_type = 9;` */ public fun clearPaywayType() { _builder.clearPaywayType() } /** * ``` * Дата изменения статуса платежа. * # Тип: DateTime * ``` * * `.google.protobuf.Timestamp status_changed_at = 10;` */ public var statusChangedAt: com.google.protobuf.Timestamp @JvmName("getStatusChangedAt") get() = _builder.getStatusChangedAt() @JvmName("setStatusChangedAt") set(value) { _builder.setStatusChangedAt(value) } /** * ``` * Дата изменения статуса платежа. * # Тип: DateTime * ``` * * `.google.protobuf.Timestamp status_changed_at = 10;` */ public fun clearStatusChangedAt() { _builder.clearStatusChangedAt() } /** * ``` * Дата изменения статуса платежа. * # Тип: DateTime * ``` * * `.google.protobuf.Timestamp status_changed_at = 10;` * @return Whether the statusChangedAt field is set. */ public fun hasStatusChangedAt(): kotlin.Boolean { return _builder.hasStatusChangedAt() } /** * ``` * Дата платежа. * # Тип: DateTime * ``` * * `.google.protobuf.Timestamp paid_at = 11;` */ public var paidAt: com.google.protobuf.Timestamp @JvmName("getPaidAt") get() = _builder.getPaidAt() @JvmName("setPaidAt") set(value) { _builder.setPaidAt(value) } /** * ``` * Дата платежа. * # Тип: DateTime * ``` * * `.google.protobuf.Timestamp paid_at = 11;` */ public fun clearPaidAt() { _builder.clearPaidAt() } /** * ``` * Дата платежа. * # Тип: DateTime * ``` * * `.google.protobuf.Timestamp paid_at = 11;` * @return Whether the paidAt field is set. */ public fun hasPaidAt(): kotlin.Boolean { return _builder.hasPaidAt() } /** * ``` * Платежная ссылка * ``` * * `string pay_url = 12;` */ public var payUrl: kotlin.String @JvmName("getPayUrl") get() = _builder.getPayUrl() @JvmName("setPayUrl") set(value) { _builder.setPayUrl(value) } /** * ``` * Платежная ссылка * ``` * * `string pay_url = 12;` */ public fun clearPayUrl() { _builder.clearPayUrl() } /** * ``` * Маскированный номер карты при платеже * ``` * * `string paid_by_card_masked = 13;` */ public var paidByCardMasked: kotlin.String @JvmName("getPaidByCardMasked") get() = _builder.getPaidByCardMasked() @JvmName("setPaidByCardMasked") set(value) { _builder.setPaidByCardMasked(value) } /** * ``` * Маскированный номер карты при платеже * ``` * * `string paid_by_card_masked = 13;` */ public fun clearPaidByCardMasked() { _builder.clearPaidByCardMasked() } /** * ``` * Идентификатор платежного средства в внешней системы * ``` * * `string paid_by_card_espp_id = 14;` */ public var paidByCardEsppId: kotlin.String @JvmName("getPaidByCardEsppId") get() = _builder.getPaidByCardEsppId() @JvmName("setPaidByCardEsppId") set(value) { _builder.setPaidByCardEsppId(value) } /** * ``` * Идентификатор платежного средства в внешней системы * ``` * * `string paid_by_card_espp_id = 14;` */ public fun clearPaidByCardEsppId() { _builder.clearPaidByCardEsppId() } /** * ``` * Тип банковской карты * ``` * * `.keyapis.invoice.v1.Invoice.CardType card_type = 15;` */ public var cardType: ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.CardType @JvmName("getCardType") get() = _builder.getCardType() @JvmName("setCardType") set(value) { _builder.setCardType(value) } public var cardTypeValue: kotlin.Int @JvmName("getCardTypeValue") get() = _builder.getCardTypeValue() @JvmName("setCardTypeValue") set(value) { _builder.setCardTypeValue(value) } /** * ``` * Тип банковской карты * ``` * * `.keyapis.invoice.v1.Invoice.CardType card_type = 15;` */ public fun clearCardType() { _builder.clearCardType() } /** * ``` * Код ошибки внешней системы * ``` * * `int32 espp_req_status = 16;` */ public var esppReqStatus: kotlin.Int @JvmName("getEsppReqStatus") get() = _builder.getEsppReqStatus() @JvmName("setEsppReqStatus") set(value) { _builder.setEsppReqStatus(value) } /** * ``` * Код ошибки внешней системы * ``` * * `int32 espp_req_status = 16;` */ public fun clearEsppReqStatus() { _builder.clearEsppReqStatus() } /** * ``` * Комментарий к статусу платежа из внешней системы * ``` * * `string espp_req_user_msg = 17;` */ public var esppReqUserMsg: kotlin.String @JvmName("getEsppReqUserMsg") get() = _builder.getEsppReqUserMsg() @JvmName("setEsppReqUserMsg") set(value) { _builder.setEsppReqUserMsg(value) } /** * ``` * Комментарий к статусу платежа из внешней системы * ``` * * `string espp_req_user_msg = 17;` */ public fun clearEsppReqUserMsg() { _builder.clearEsppReqUserMsg() } /** * ``` * Уникальный номер транзакции в внешней системы * ``` * * `string espp_invoice_id = 18;` */ public var esppInvoiceId: kotlin.String @JvmName("getEsppInvoiceId") get() = _builder.getEsppInvoiceId() @JvmName("setEsppInvoiceId") set(value) { _builder.setEsppInvoiceId(value) } /** * ``` * Уникальный номер транзакции в внешней системы * ``` * * `string espp_invoice_id = 18;` */ public fun clearEsppInvoiceId() { _builder.clearEsppInvoiceId() } /** * ``` * Номер телефона * ``` * * `string phone_number = 19;` */ public var phoneNumber: kotlin.String @JvmName("getPhoneNumber") get() = _builder.getPhoneNumber() @JvmName("setPhoneNumber") set(value) { _builder.setPhoneNumber(value) } /** * ``` * Номер телефона * ``` * * `string phone_number = 19;` */ public fun clearPhoneNumber() { _builder.clearPhoneNumber() } /** * ``` * Электронная почта * ``` * * `string email = 20;` */ public var email: kotlin.String @JvmName("getEmail") get() = _builder.getEmail() @JvmName("setEmail") set(value) { _builder.setEmail(value) } /** * ``` * Электронная почта * ``` * * `string email = 20;` */ public fun clearEmail() { _builder.clearEmail() } } @kotlin.jvm.JvmName("-initializeexternalError") public inline fun externalError(block: ru.keyapis.invoice.v1.InvoiceKt.ExternalErrorKt.Dsl.() -> kotlin.Unit): ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.ExternalError = ru.keyapis.invoice.v1.InvoiceKt.ExternalErrorKt.Dsl._create(ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.ExternalError.newBuilder()).apply { block() }._build() /** * ``` * Ошибки внешней системы * ``` * * Protobuf type `keyapis.invoice.v1.Invoice.ExternalError` */ public object ExternalErrorKt { @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) @com.google.protobuf.kotlin.ProtoDslMarker public class Dsl private constructor( private val _builder: ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.ExternalError.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.ExternalError.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.ExternalError = _builder.build() /** * ``` * Запрос к внешней системе вернул ошибку или прекращен по таймауту * ``` * * `.keyapis.invoice.v1.Invoice.ExternalError.ExternalSystemError external_system_error = 1;` */ public var externalSystemError: ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.ExternalError.ExternalSystemError @JvmName("getExternalSystemError") get() = _builder.getExternalSystemError() @JvmName("setExternalSystemError") set(value) { _builder.setExternalSystemError(value) } /** * ``` * Запрос к внешней системе вернул ошибку или прекращен по таймауту * ``` * * `.keyapis.invoice.v1.Invoice.ExternalError.ExternalSystemError external_system_error = 1;` */ public fun clearExternalSystemError() { _builder.clearExternalSystemError() } /** * ``` * Запрос к внешней системе вернул ошибку или прекращен по таймауту * ``` * * `.keyapis.invoice.v1.Invoice.ExternalError.ExternalSystemError external_system_error = 1;` * @return Whether the externalSystemError field is set. */ public fun hasExternalSystemError(): kotlin.Boolean { return _builder.hasExternalSystemError() } public val reasonCase: ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.ExternalError.ReasonCase @JvmName("getReasonCase") get() = _builder.getReasonCase() public fun clearReason() { _builder.clearReason() } } @kotlin.jvm.JvmName("-initializeexternalSystemError") public inline fun externalSystemError(block: ru.keyapis.invoice.v1.InvoiceKt.ExternalErrorKt.ExternalSystemErrorKt.Dsl.() -> kotlin.Unit): ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.ExternalError.ExternalSystemError = ru.keyapis.invoice.v1.InvoiceKt.ExternalErrorKt.ExternalSystemErrorKt.Dsl._create(ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.ExternalError.ExternalSystemError.newBuilder()).apply { block() }._build() /** * ``` * Запрос к внешней системе вернул ошибку или прекращен по таймауту * ``` * * Protobuf type `keyapis.invoice.v1.Invoice.ExternalError.ExternalSystemError` */ public object ExternalSystemErrorKt { @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) @com.google.protobuf.kotlin.ProtoDslMarker public class Dsl private constructor( private val _builder: ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.ExternalError.ExternalSystemError.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.ExternalError.ExternalSystemError.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.ExternalError.ExternalSystemError = _builder.build() } } } @kotlin.jvm.JvmName("-initializeposition") public inline fun position(block: ru.keyapis.invoice.v1.InvoiceKt.PositionKt.Dsl.() -> kotlin.Unit): ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.Position = ru.keyapis.invoice.v1.InvoiceKt.PositionKt.Dsl._create(ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.Position.newBuilder()).apply { block() }._build() /** * ``` * Позиция счета * ``` * * Protobuf type `keyapis.invoice.v1.Invoice.Position` */ public object PositionKt { @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) @com.google.protobuf.kotlin.ProtoDslMarker public class Dsl private constructor( private val _builder: ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.Position.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.Position.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.Position = _builder.build() /** * ``` * Идентификатор позиции. * # Тип: Guid * ``` * * `string id = 1;` */ public var id: kotlin.String @JvmName("getId") get() = _builder.getId() @JvmName("setId") set(value) { _builder.setId(value) } /** * ``` * Идентификатор позиции. * # Тип: Guid * ``` * * `string id = 1;` */ public fun clearId() { _builder.clearId() } /** * ``` * Идентификатор платежа. * # Тип: Guid * ``` * * `string invoice_id = 2 [(.google.api.field_behavior) = REQUIRED];` */ public var invoiceId: kotlin.String @JvmName("getInvoiceId") get() = _builder.getInvoiceId() @JvmName("setInvoiceId") set(value) { _builder.setInvoiceId(value) } /** * ``` * Идентификатор платежа. * # Тип: Guid * ``` * * `string invoice_id = 2 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearInvoiceId() { _builder.clearInvoiceId() } /** * ``` * Название позиции * ``` * * `string title = 3 [(.google.api.field_behavior) = REQUIRED];` */ public var title: kotlin.String @JvmName("getTitle") get() = _builder.getTitle() @JvmName("setTitle") set(value) { _builder.setTitle(value) } /** * ``` * Название позиции * ``` * * `string title = 3 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearTitle() { _builder.clearTitle() } /** * ``` * Категория позиции (='subscription') * ``` * * `string category = 4 [(.google.api.field_behavior) = REQUIRED];` */ public var category: kotlin.String @JvmName("getCategory") get() = _builder.getCategory() @JvmName("setCategory") set(value) { _builder.setCategory(value) } /** * ``` * Категория позиции (='subscription') * ``` * * `string category = 4 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearCategory() { _builder.clearCategory() } /** * ``` * Цена в рублях. * Число должно быть больше 0 * ``` * * `float amount = 5 [(.google.api.field_behavior) = REQUIRED];` */ public var amount: kotlin.Float @JvmName("getAmount") get() = _builder.getAmount() @JvmName("setAmount") set(value) { _builder.setAmount(value) } /** * ``` * Цена в рублях. * Число должно быть больше 0 * ``` * * `float amount = 5 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearAmount() { _builder.clearAmount() } /** * ``` * Дата создания позиции платежа. * # Тип: DateTime * ``` * * `.google.protobuf.Timestamp created_at = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public var createdAt: com.google.protobuf.Timestamp @JvmName("getCreatedAt") get() = _builder.getCreatedAt() @JvmName("setCreatedAt") set(value) { _builder.setCreatedAt(value) } /** * ``` * Дата создания позиции платежа. * # Тип: DateTime * ``` * * `.google.protobuf.Timestamp created_at = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public fun clearCreatedAt() { _builder.clearCreatedAt() } /** * ``` * Дата создания позиции платежа. * # Тип: DateTime * ``` * * `.google.protobuf.Timestamp created_at = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];` * @return Whether the createdAt field is set. */ public fun hasCreatedAt(): kotlin.Boolean { return _builder.hasCreatedAt() } /** * ``` * Дата обновления позиции платежа. * # Тип: DateTime * ``` * * `.google.protobuf.Timestamp updated_at = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public var updatedAt: com.google.protobuf.Timestamp @JvmName("getUpdatedAt") get() = _builder.getUpdatedAt() @JvmName("setUpdatedAt") set(value) { _builder.setUpdatedAt(value) } /** * ``` * Дата обновления позиции платежа. * # Тип: DateTime * ``` * * `.google.protobuf.Timestamp updated_at = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];` */ public fun clearUpdatedAt() { _builder.clearUpdatedAt() } /** * ``` * Дата обновления позиции платежа. * # Тип: DateTime * ``` * * `.google.protobuf.Timestamp updated_at = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];` * @return Whether the updatedAt field is set. */ public fun hasUpdatedAt(): kotlin.Boolean { return _builder.hasUpdatedAt() } /** * ``` * Идентификатор МРФ * ``` * * `int32 mrf_id = 8 [(.google.api.field_behavior) = REQUIRED];` */ public var mrfId: kotlin.Int @JvmName("getMrfId") get() = _builder.getMrfId() @JvmName("setMrfId") set(value) { _builder.setMrfId(value) } /** * ``` * Идентификатор МРФ * ``` * * `int32 mrf_id = 8 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearMrfId() { _builder.clearMrfId() } /** * ``` * Идентификатор РФ * ``` * * `int32 rf_id = 9 [(.google.api.field_behavior) = REQUIRED];` */ public var rfId: kotlin.Int @JvmName("getRfId") get() = _builder.getRfId() @JvmName("setRfId") set(value) { _builder.setRfId(value) } /** * ``` * Идентификатор РФ * ``` * * `int32 rf_id = 9 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearRfId() { _builder.clearRfId() } /** * ``` * Идентификатор экземпляра оплачиваемой подписки. * # Тип: Guid * ``` * * `string instance_id = 10 [(.google.api.field_behavior) = REQUIRED];` */ public var instanceId: kotlin.String @JvmName("getInstanceId") get() = _builder.getInstanceId() @JvmName("setInstanceId") set(value) { _builder.setInstanceId(value) } /** * ``` * Идентификатор экземпляра оплачиваемой подписки. * # Тип: Guid * ``` * * `string instance_id = 10 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearInstanceId() { _builder.clearInstanceId() } /** * ``` * Идентификатор предложения оплачиваемой подписки * ``` * * `int32 offering_id = 11 [(.google.api.field_behavior) = REQUIRED];` */ public var offeringId: kotlin.Int @JvmName("getOfferingId") get() = _builder.getOfferingId() @JvmName("setOfferingId") set(value) { _builder.setOfferingId(value) } /** * ``` * Идентификатор предложения оплачиваемой подписки * ``` * * `int32 offering_id = 11 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearOfferingId() { _builder.clearOfferingId() } /** * ``` * Срок окончания оплачиваемого периода * ``` * * `.google.protobuf.Timestamp due_date_at = 12;` */ public var dueDateAt: com.google.protobuf.Timestamp @JvmName("getDueDateAt") get() = _builder.getDueDateAt() @JvmName("setDueDateAt") set(value) { _builder.setDueDateAt(value) } /** * ``` * Срок окончания оплачиваемого периода * ``` * * `.google.protobuf.Timestamp due_date_at = 12;` */ public fun clearDueDateAt() { _builder.clearDueDateAt() } /** * ``` * Срок окончания оплачиваемого периода * ``` * * `.google.protobuf.Timestamp due_date_at = 12;` * @return Whether the dueDateAt field is set. */ public fun hasDueDateAt(): kotlin.Boolean { return _builder.hasDueDateAt() } /** * ``` * Идентификатор получателя платежа * ``` * * `string svc_type_id = 13;` */ public var svcTypeId: kotlin.String @JvmName("getSvcTypeId") get() = _builder.getSvcTypeId() @JvmName("setSvcTypeId") set(value) { _builder.setSvcTypeId(value) } /** * ``` * Идентификатор получателя платежа * ``` * * `string svc_type_id = 13;` */ public fun clearSvcTypeId() { _builder.clearSvcTypeId() } /** * ``` * Признак скидки * ``` * * `bool is_discount = 14;` */ public var isDiscount: kotlin.Boolean @JvmName("getIsDiscount") get() = _builder.getIsDiscount() @JvmName("setIsDiscount") set(value) { _builder.setIsDiscount(value) } /** * ``` * Признак скидки * ``` * * `bool is_discount = 14;` */ public fun clearIsDiscount() { _builder.clearIsDiscount() } } } @kotlin.jvm.JvmName("-initializesavingError") public inline fun savingError(block: ru.keyapis.invoice.v1.InvoiceKt.SavingErrorKt.Dsl.() -> kotlin.Unit): ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.SavingError = ru.keyapis.invoice.v1.InvoiceKt.SavingErrorKt.Dsl._create(ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.SavingError.newBuilder()).apply { block() }._build() /** * ``` * Ошибка сохранения. * Эти проверки выполняются при работе с базой данных и сторонними сервисами * ``` * * Protobuf type `keyapis.invoice.v1.Invoice.SavingError` */ public object SavingErrorKt { @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) @com.google.protobuf.kotlin.ProtoDslMarker public class Dsl private constructor( private val _builder: ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.SavingError.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.SavingError.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.SavingError = _builder.build() /** * ``` * У пользователя уже есть платеж со статусом PENDING * ``` * * `.keyapis.invoice.v1.Invoice.SavingError.InvoiceAlreadyExists invoice_already_exists = 1;` */ public var invoiceAlreadyExists: ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.SavingError.InvoiceAlreadyExists @JvmName("getInvoiceAlreadyExists") get() = _builder.getInvoiceAlreadyExists() @JvmName("setInvoiceAlreadyExists") set(value) { _builder.setInvoiceAlreadyExists(value) } /** * ``` * У пользователя уже есть платеж со статусом PENDING * ``` * * `.keyapis.invoice.v1.Invoice.SavingError.InvoiceAlreadyExists invoice_already_exists = 1;` */ public fun clearInvoiceAlreadyExists() { _builder.clearInvoiceAlreadyExists() } /** * ``` * У пользователя уже есть платеж со статусом PENDING * ``` * * `.keyapis.invoice.v1.Invoice.SavingError.InvoiceAlreadyExists invoice_already_exists = 1;` * @return Whether the invoiceAlreadyExists field is set. */ public fun hasInvoiceAlreadyExists(): kotlin.Boolean { return _builder.hasInvoiceAlreadyExists() } public val reasonCase: ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.SavingError.ReasonCase @JvmName("getReasonCase") get() = _builder.getReasonCase() public fun clearReason() { _builder.clearReason() } } @kotlin.jvm.JvmName("-initializeinvoiceAlreadyExists") public inline fun invoiceAlreadyExists(block: ru.keyapis.invoice.v1.InvoiceKt.SavingErrorKt.InvoiceAlreadyExistsKt.Dsl.() -> kotlin.Unit): ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.SavingError.InvoiceAlreadyExists = ru.keyapis.invoice.v1.InvoiceKt.SavingErrorKt.InvoiceAlreadyExistsKt.Dsl._create(ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.SavingError.InvoiceAlreadyExists.newBuilder()).apply { block() }._build() /** * ``` * У пользователя уже есть платеж со статусом PENDING * ``` * * Protobuf type `keyapis.invoice.v1.Invoice.SavingError.InvoiceAlreadyExists` */ public object InvoiceAlreadyExistsKt { @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) @com.google.protobuf.kotlin.ProtoDslMarker public class Dsl private constructor( private val _builder: ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.SavingError.InvoiceAlreadyExists.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.SavingError.InvoiceAlreadyExists.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.SavingError.InvoiceAlreadyExists = _builder.build() } } } } @kotlin.jvm.JvmSynthetic public inline fun ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.copy(block: ru.keyapis.invoice.v1.InvoiceKt.Dsl.() -> kotlin.Unit): ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice = ru.keyapis.invoice.v1.InvoiceKt.Dsl._create(this.toBuilder()).apply { block() }._build() @kotlin.jvm.JvmSynthetic public inline fun ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.ExternalError.copy(block: ru.keyapis.invoice.v1.InvoiceKt.ExternalErrorKt.Dsl.() -> kotlin.Unit): ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.ExternalError = ru.keyapis.invoice.v1.InvoiceKt.ExternalErrorKt.Dsl._create(this.toBuilder()).apply { block() }._build() @kotlin.jvm.JvmSynthetic public inline fun ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.ExternalError.ExternalSystemError.copy(block: ru.keyapis.invoice.v1.InvoiceKt.ExternalErrorKt.ExternalSystemErrorKt.Dsl.() -> kotlin.Unit): ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.ExternalError.ExternalSystemError = ru.keyapis.invoice.v1.InvoiceKt.ExternalErrorKt.ExternalSystemErrorKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.ExternalErrorOrBuilder.externalSystemErrorOrNull: ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.ExternalError.ExternalSystemError? get() = if (hasExternalSystemError()) getExternalSystemError() else null @kotlin.jvm.JvmSynthetic public inline fun ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.Position.copy(block: ru.keyapis.invoice.v1.InvoiceKt.PositionKt.Dsl.() -> kotlin.Unit): ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.Position = ru.keyapis.invoice.v1.InvoiceKt.PositionKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.PositionOrBuilder.createdAtOrNull: com.google.protobuf.Timestamp? get() = if (hasCreatedAt()) getCreatedAt() else null public val ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.PositionOrBuilder.updatedAtOrNull: com.google.protobuf.Timestamp? get() = if (hasUpdatedAt()) getUpdatedAt() else null public val ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.PositionOrBuilder.dueDateAtOrNull: com.google.protobuf.Timestamp? get() = if (hasDueDateAt()) getDueDateAt() else null @kotlin.jvm.JvmSynthetic public inline fun ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.SavingError.copy(block: ru.keyapis.invoice.v1.InvoiceKt.SavingErrorKt.Dsl.() -> kotlin.Unit): ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.SavingError = ru.keyapis.invoice.v1.InvoiceKt.SavingErrorKt.Dsl._create(this.toBuilder()).apply { block() }._build() @kotlin.jvm.JvmSynthetic public inline fun ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.SavingError.InvoiceAlreadyExists.copy(block: ru.keyapis.invoice.v1.InvoiceKt.SavingErrorKt.InvoiceAlreadyExistsKt.Dsl.() -> kotlin.Unit): ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.SavingError.InvoiceAlreadyExists = ru.keyapis.invoice.v1.InvoiceKt.SavingErrorKt.InvoiceAlreadyExistsKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.SavingErrorOrBuilder.invoiceAlreadyExistsOrNull: ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.Invoice.SavingError.InvoiceAlreadyExists? get() = if (hasInvoiceAlreadyExists()) getInvoiceAlreadyExists() else null public val ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.InvoiceOrBuilder.createdAtOrNull: com.google.protobuf.Timestamp? get() = if (hasCreatedAt()) getCreatedAt() else null public val ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.InvoiceOrBuilder.updatedAtOrNull: com.google.protobuf.Timestamp? get() = if (hasUpdatedAt()) getUpdatedAt() else null public val ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.InvoiceOrBuilder.statusChangedAtOrNull: com.google.protobuf.Timestamp? get() = if (hasStatusChangedAt()) getStatusChangedAt() else null public val ru.keyapis.invoice.v1.KeyapisInvoiceV1Proto.InvoiceOrBuilder.paidAtOrNull: com.google.protobuf.Timestamp? get() = if (hasPaidAt()) getPaidAt() else null