23 lines
600 B
Ruby
23 lines
600 B
Ruby
object @teacher_distribution
|
|
|
|
attributes :id, :description, :ready, :distributed, :created_at, :amount_in_cents, :real_distribution_in_cents, :not_collectable
|
|
|
|
child(:teacher => :teacher) {
|
|
attributes :id, :teacher_profile_url
|
|
child(:teacher => :teacher) {
|
|
attributes :stripe_account_id
|
|
}
|
|
}
|
|
|
|
child(:student => :student) {
|
|
attributes :id, :first_name, :last_name, :profile_url
|
|
}
|
|
child(:teacher_payment => :teacher_payment) {
|
|
attributes :real_distribution_in_cents, :created_at
|
|
|
|
child(:teacher_payment_charge => :teacher_payment_charge) {
|
|
attributes :last_billing_attempt_at
|
|
}
|
|
}
|
|
|