app/representers/openstax/accounts/api/v1/account_representer.rb in openstax_accounts-9.0.3 vs app/representers/openstax/accounts/api/v1/account_representer.rb in openstax_accounts-9.0.4

- old
+ new

@@ -7,12 +7,13 @@ class AccountRepresenter < Roar::Decorator # This representer is used to communicate with Accounts # and so must allow read/write on all properties # Do not use it in create/update APIs! - # Otherwise, this representer can be used directly or subclassed - # for an object that delegates openstax_uid, username, first_name, last_name, full_name, # title, faculty_status, role, school_type and salesforce_contact_id to an account + # This representer can be used directly or subclassed for an object that delegates + # openstax_uid, username, first_name, last_name, full_name, title, faculty_status, + # role, school_type, school_location and salesforce_contact_id to an account include Roar::JSON property :openstax_uid, as: :id, @@ -80,9 +81,17 @@ property :school_type, type: String, schema_info: { description: "One of #{ OpenStax::Accounts::Account.school_types.keys.map(&:to_s).inspect + }" + } + + property :school_location, + type: String, + schema_info: { + description: "One of #{ + OpenStax::Accounts::Account.school_locations.keys.map(&:to_s).inspect }" } property :uuid, type: String,