Skip to content

Commit e5d6a61

Browse files
asc-iokiclaude
andcommitted
Add claimed to platform API user
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent c16efa4 commit e5d6a61

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

lib/ioki/model/platform/user.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class User < Base
99
attribute :created_at, on: :read, type: :date_time
1010
attribute :updated_at, on: :read, type: :date_time
1111
attribute :analytics_tracking, on: [:read, :create], type: :boolean
12+
attribute :claimed, on: [:read, :create], type: :boolean
1213
attribute :email,
1314
type: :object,
1415
on: [:read, :create, :update],

spec/ioki/model/platform/user_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
it { is_expected.to define_attribute(:created_at).as(:date_time) }
77
it { is_expected.to define_attribute(:updated_at).as(:date_time) }
88

9+
it { is_expected.to define_attribute(:claimed).as(:boolean) }
910
it { is_expected.to define_attribute(:email).as(:object).with(class_name: 'UserEmail') }
1011
it { is_expected.to define_attribute(:external_id).as(:string) }
1112
it { is_expected.to define_attribute(:first_name).as(:string) }

0 commit comments

Comments
 (0)