diff --git a/lib/ioki/model/platform/user.rb b/lib/ioki/model/platform/user.rb index 13052f30..5a3a2fc4 100644 --- a/lib/ioki/model/platform/user.rb +++ b/lib/ioki/model/platform/user.rb @@ -9,6 +9,7 @@ class User < Base attribute :created_at, on: :read, type: :date_time attribute :updated_at, on: :read, type: :date_time attribute :analytics_tracking, on: [:read, :create], type: :boolean + attribute :claimed, on: [:create], type: :boolean attribute :email, type: :object, on: [:read, :create, :update], diff --git a/spec/ioki/model/platform/user_spec.rb b/spec/ioki/model/platform/user_spec.rb index c3bcba9b..7b5daeb7 100644 --- a/spec/ioki/model/platform/user_spec.rb +++ b/spec/ioki/model/platform/user_spec.rb @@ -6,6 +6,7 @@ it { is_expected.to define_attribute(:created_at).as(:date_time) } it { is_expected.to define_attribute(:updated_at).as(:date_time) } + it { is_expected.to define_attribute(:claimed).as(:boolean) } it { is_expected.to define_attribute(:email).as(:object).with(class_name: 'UserEmail') } it { is_expected.to define_attribute(:external_id).as(:string) } it { is_expected.to define_attribute(:first_name).as(:string) }