blob: 357c8fcb12129be9d07e4f5de15c60e8b30a70fc [file] [log] [blame]
package org.apache.fineract.data.models.customer
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import com.raizlabs.android.dbflow.annotation.ConflictAction
import com.raizlabs.android.dbflow.annotation.PrimaryKey
import com.raizlabs.android.dbflow.annotation.Table
import com.raizlabs.android.dbflow.structure.BaseModel
import kotlinx.android.parcel.Parcelize
import org.apache.fineract.data.local.database.AppDatabase
@Parcelize
@Table(name = "Address", database = AppDatabase::class, allFields = true, insertConflict =
ConflictAction.REPLACE)
data class Address(
@PrimaryKey
@SerializedName("street") var street: String? = null,
@PrimaryKey
@SerializedName("city") var city: String? = null,
@PrimaryKey
@SerializedName("region") var region: String? = null,
@SerializedName("postalCode") var postalCode: String? = null,
@SerializedName("countryCode") var countryCode: String? = null,
@SerializedName("country") var country: String? = null
) : BaseModel(), Parcelable