Skip to content

Commit

Permalink
Ajoute un email spécifique pour la sandbox DGFIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jbfeldis committed Dec 12, 2024
1 parent a3792dd commit d170180
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<%= render partial: 'mailer/shared/applicant/header', locals: { entity_name: @authorization_request.applicant.full_name } %>

Votre habilitation n°<%= @authorization_request.id %> (<%= authorization_request_url(@authorization_request) %>) concernant la démarche "<%= @authorization_request.name %>" a été validée par notre équipe d’instruction.

Vous pouvez dès à présent poursuivre votre demande pour demander l’accès en production via ce lien : <%= next_authorization_request_stage_url(@authorization_request) %>


<%= render partial: 'mailer/shared/applicant/footer', locals: { authorization_definition_name: @authorization_request.definition.name } %>
6 changes: 6 additions & 0 deletions spec/mailers/previews/authorization_request_preview.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ class AuthorizationRequestPreview < ActionMailer::Preview
end
end

def approve_dgfip_sandbox
AuthorizationRequestMailer.with(
authorization_request: AuthorizationRequest::APIImpotParticulierSandbox.where(state: :validated).first
).approve
end

private

def authorization_request_mailer_method(state, mth)
Expand Down

0 comments on commit d170180

Please sign in to comment.