All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.stellar.walletsdk.customer.Data.kt Maven / Gradle / Ivy

There is a newer version: 1.7.2
Show newest version
package org.stellar.walletsdk.customer

import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

@Serializable
data class AddCustomerResponse(
  @SerialName("id") var id: String,
)

enum class Sep12Status(val status: String) {
  @SerialName("NEEDS_INFO") NEEDS_INFO("NEEDS_INFO"),
  @SerialName("ACCEPTED") ACCEPTED("ACCEPTED"),
  @SerialName("PROCESSING") PROCESSING("PROCESSING"),
  @SerialName("REJECTED") REJECTED("REJECTED"),
  @SerialName("VERIFICATION_REQUIRED") VERIFICATION_REQUIRED("VERIFICATION_REQUIRED")
}

@Serializable
data class Field(
  var type: Type? = null,
  var description: String? = null,
  var choices: List? = null,
  var optional: Boolean? = null,
) {
  enum class Type(val status: String) {
    @SerialName("string") STRING("string"),
    @SerialName("binary") BINARY("binary"),
    @SerialName("number") NUMBER("number"),
    @SerialName("date") DATE("date")
  }
}

@Serializable
data class ProvidedField(
  var type: Field.Type? = null,
  var description: String? = null,
  var choices: List? = null,
  var optional: Boolean? = null,
  var status: Sep12Status? = null,
  var error: String? = null,
)

@Serializable
data class GetCustomerResponse(
  var id: String? = null,
  var status: Sep12Status? = null,
  var fields: Map? = null,
  @SerialName("provided_fields") var providedFields: Map? = null,
  var message: String? = null,
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy