Skip to content

Commit

Permalink
Add email_address to UpdateMember (#116)
Browse files Browse the repository at this point in the history
* Add email_address to UpdateMember

* version

* bump
  • Loading branch information
alex-stytch authored Mar 4, 2024
1 parent 63c4c21 commit fa40901
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/stytch/b2b_organizations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,9 @@ def initialize(connection)
# If this field is provided and a session header is passed into the request, the Member Session must have permission to perform the `update.settings.default-mfa-method` action on the `stytch.member` Resource.
# Alternatively, if the Member Session matches the Member associated with the `member_id` passed in the request, the authorization check will also allow a Member Session that has permission to perform the `update.settings.default-mfa-method` action on the `stytch.self` Resource.
# The type of this field is nilable +String+.
# email_address::
# Updates the Member's `email_address`, if provided.
# The type of this field is nilable +String+.
#
# == Returns:
# An object with the following fields:
Expand Down Expand Up @@ -623,6 +626,7 @@ def update(
roles: nil,
preserve_existing_sessions: nil,
default_mfa_method: nil,
email_address: nil,
method_options: nil
)
headers = {}
Expand All @@ -637,6 +641,7 @@ def update(
request[:roles] = roles unless roles.nil?
request[:preserve_existing_sessions] = preserve_existing_sessions unless preserve_existing_sessions.nil?
request[:default_mfa_method] = default_mfa_method unless default_mfa_method.nil?
request[:email_address] = email_address unless email_address.nil?

put_request("/v1/b2b/organizations/#{organization_id}/members/#{member_id}", request, headers)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/stytch/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Stytch
VERSION = '7.3.0'
VERSION = '7.4.0'
end

0 comments on commit fa40901

Please sign in to comment.