Package com.kakao.sdk.user.model

사용자 정보 API의 요청과 응답에 사용되는 모델 클래스들을 제공하는 패키지. 사용자 정보 가져오기, 사용자 토큰 정보 보기 등 기능 제공.

Types

Link copied to clipboard
data class AccessTokenInfo(    val id: Long?,     val expiresIn: Long,     val appId: Int,     val expiresInMillis: Long?) : Parcelable

토큰 정보 요청 API 응답 클래스

Link copied to clipboard
data class Account(    val profileNeedsAgreement: Boolean?,     val profileNicknameNeedsAgreement: Boolean?,     val profileImageNeedsAgreement: Boolean?,     val profile: Profile?,     val nameNeedsAgreement: Boolean?,     val name: String?,     val emailNeedsAgreement: Boolean?,     val isEmailValid: Boolean?,     val isEmailVerified: Boolean?,     val email: String?,     val ageRangeNeedsAgreement: Boolean?,     val ageRange: AgeRange?,     val birthyearNeedsAgreement: Boolean?,     val birthyear: String?,     val birthdayNeedsAgreement: Boolean?,     val birthday: String?,     val birthdayType: BirthdayType?,     val genderNeedsAgreement: Boolean?,     val gender: Gender?,     val ciNeedsAgreement: Boolean?,     val ci: String?,     val ciAuthenticatedAt: Date?,     val legalNameNeedsAgreement: Boolean?,     val legalName: String?,     val legalBirthDateNeedsAgreement: Boolean?,     val legalBirthDate: String?,     val legalGenderNeedsAgreement: Boolean?,     val legalGender: Gender?,     val phoneNumberNeedsAgreement: Boolean?,     val phoneNumber: String?,     val isKoreanNeedsAgreement: Boolean?,     val isKorean: Boolean?) : Parcelable

카카오계정에 등록된 사용자 개인정보.

Link copied to clipboard
enum AgeRange : Enum<AgeRange>

연령대 (한국 나이)

Link copied to clipboard
data class AppServiceTerms(    val tag: String,     val createdAt: Date,     val updatedAt: Date)

앱에 사용 설정된 서비스 약관 목록 클래스

Link copied to clipboard
enum BirthdayType : Enum<BirthdayType>

생일의 양력/음력

Link copied to clipboard
enum Gender : Enum<Gender>

성별

Link copied to clipboard
data class Profile(    val nickname: String?,     val profileImageUrl: String?,     val thumbnailImageUrl: String?,     val isDefaultImage: Boolean?) : Parcelable

카카오계정에 등록된 사용자의 프로필 정보를 제공합니다.

Link copied to clipboard
data class Scope(    val id: String,     val displayName: String,     val type: ScopeType,     val using: Boolean,     val delegated: Boolean?,     val agreed: Boolean,     val revocable: Boolean?) : Parcelable

동의 항목별 정보

Link copied to clipboard
data class ScopeInfo(val id: Long, val scopes: List<Scope>?) : Parcelable

사용자 동의 내역

Link copied to clipboard
enum ScopeType : Enum<ScopeType>

동의 항목 타입

Link copied to clipboard
data class ServiceTerms(val tag: String, val agreedAt: Date)

3rd party 서비스 약관 정보 클래스

Link copied to clipboard
data class ShippingAddress(    val id: Long,     val name: String?,     val isDefault: Boolean,     val updatedAt: Date?,     val type: ShippingAddressType?,     val baseAddress: String?,     val detailAddress: String?,     val receiverName: String?,     val receiverPhoneNumber1: String?,     val receiverPhoneNumber2: String?,     val zoneNumber: String?,     val zipCode: String?)

배송지 정보 클래스

Link copied to clipboard
enum ShippingAddressType : Enum<ShippingAddressType>
Link copied to clipboard
data class User(    val id: Long?,     val properties: Map<String, String>?,     val kakaoAccount: Account?,     val groupUserToken: String?,     val connectedAt: Date?,     val synchedAt: Date?,     val hasSignedUp: Boolean?) : Parcelable

사용자 정보 조회 API 응답으로 제공되는 사용자 정보 최상위 클래스.

Link copied to clipboard
data class UserServiceTerms(    val userId: Long?,     val allowedServiceTerms: List<ServiceTerms>?,     val appServiceTerms: List<AppServiceTerms>?)

사용자가 동의한 약관 조회 API 응답 클래스

Link copied to clipboard
data class UserShippingAddresses(    val userId: Long?,     val needsAgreement: Boolean?,     val shippingAddresses: List<ShippingAddress>?)

앱에 가입한 사용자의 배송지 정보 API 응답 클래스