Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.plaid.myplaidprototype.networking
- import android.os.Parcelable
- import kotlinx.android.parcel.Parcelize
- /*
- * Copyright (c) 2020 Plaid Technologies, Inc. <support@plaid.com>
- */
- @Parcelize
- data class PreviewResponse(
- val activity: List<ActivityResponse>,
- val apps: List<AppPreviewResponse>,
- val institutions: List<InstitutionPreviewResponse>
- ) : Parcelable {
- @Parcelize
- data class ActivityResponse(
- val date: String,
- val description: String,
- val institutionName: String
- ) : Parcelable
- @Parcelize
- data class AppPreviewResponse(
- val id: String,
- val name: String
- ) : Parcelable
- @Parcelize
- data class InstitutionPreviewResponse(
- val id: String,
- val name: String,
- val numAccounts: Int
- ) : Parcelable
- }
- @Parcelize
- data class AppDetailsResponse(
- val id: String,
- val name: String,
- val dataShared: Map<Account, List<DataPermission>>
- ) : Parcelable {
- @Parcelize
- data class Account(
- val accountName: String,
- val accountId: String,
- val institution: Institution
- ) : Parcelable
- @Parcelize
- data class Institution(
- val id: String,
- val name: String
- ) : Parcelable
- @Parcelize
- enum class DataPermission : Parcelable {
- TRANSACTIONS,
- BALANCE,
- LIABILITIES
- }
- }
- @Parcelize
- data class InstitutionDetailsResponse(
- val accounts: List<Account>
- ) : Parcelable {
- @Parcelize
- data class Account(
- val accountName: String,
- val accountId: String,
- val transactions: List<Transaction>
- ) : Parcelable
- @Parcelize
- data class Transaction(
- val date: String,
- val description: String,
- val amountUsdCents: Long
- ) : Parcelable
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement