From fa40901b7df544c19ffa939ed810d3d3b568369c Mon Sep 17 00:00:00 2001 From: Alex Zaldastani <73447029+alex-stytch@users.noreply.github.com> Date: Mon, 4 Mar 2024 13:52:52 -0700 Subject: [PATCH] Add email_address to UpdateMember (#116) * Add email_address to UpdateMember * version * bump --- lib/stytch/b2b_organizations.rb | 5 +++++ lib/stytch/version.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/stytch/b2b_organizations.rb b/lib/stytch/b2b_organizations.rb index ccd6601..28f8bab 100644 --- a/lib/stytch/b2b_organizations.rb +++ b/lib/stytch/b2b_organizations.rb @@ -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: @@ -623,6 +626,7 @@ def update( roles: nil, preserve_existing_sessions: nil, default_mfa_method: nil, + email_address: nil, method_options: nil ) headers = {} @@ -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 diff --git a/lib/stytch/version.rb b/lib/stytch/version.rb index 29086a3..114d5cf 100644 --- a/lib/stytch/version.rb +++ b/lib/stytch/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Stytch - VERSION = '7.3.0' + VERSION = '7.4.0' end