source stringclasses 1
value | repo stringlengths 5 63 | repo_url stringlengths 24 82 | path stringlengths 5 167 | language stringclasses 1
value | license stringclasses 5
values | stars int64 10 51.4k | ref stringclasses 23
values | size_bytes int64 200 258k | text stringlengths 137 258k |
|---|---|---|---|---|---|---|---|---|---|
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_income/student_finances_step.rb | Ruby | mit | 19 | main | 436 | module Flow
module Steps
module ProviderIncome
StudentFinancesStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_student_finance_path(application) },
forward: lambda do |application|
application.uploading_bank_statements? ? :regular_outgoings ... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_income/client_completed_means_step.rb | Ruby | mit | 19 | main | 1,259 | module Flow
module Steps
module ProviderIncome
ClientCompletedMeansStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_client_completed_means_path(application) },
forward: lambda do |application|
status = HMRC::StatusAnalyzer.call(application)
... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_income/unexpected_employment_incomes_step.rb | Ruby | mit | 19 | main | 509 | module Flow
module Steps
module ProviderIncome
UnexpectedEmploymentIncomesStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_unexpected_employment_income_path(application) },
forward: lambda do |application|
if application.uploading_bank_state... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_income/regular_outgoings_step.rb | Ruby | mit | 19 | main | 672 | module Flow
module Steps
module ProviderIncome
RegularOutgoingsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_regular_outgoings_path(application) },
forward: lambda do |application|
if application.applicant_outgoing_types?
:cas... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_income/cash_incomes_step.rb | Ruby | mit | 19 | main | 395 | module Flow
module Steps
module ProviderIncome
CashIncomesStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_cash_income_path(application) },
forward: :student_finances,
check_answers: ->(application) { application.client_uploading_bank_statemen... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_income/single_employment_interrupts_step.rb | Ruby | mit | 19 | main | 258 | module Flow
module Steps
module ProviderIncome
SingleEmploymentInterruptsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_single_employment_interrupt_path(application) },
)
end
end
end |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_income/unemployed_but_hmrc_found_data_interrupts_step.rb | Ruby | mit | 19 | main | 281 | module Flow
module Steps
module ProviderIncome
UnemployedButHMRCFoundDataInterruptsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_unemployed_but_hmrc_found_data_interrupt_path(application) },
)
end
end
end |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_income/cash_outgoings_step.rb | Ruby | mit | 19 | main | 1,153 | module Flow
module Steps
module ProviderIncome
CashOutgoingsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_cash_outgoing_path(application) },
forward: lambda do |application|
unless application.client_uploading_bank_statements?
... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_income/full_employment_details_step.rb | Ruby | mit | 19 | main | 506 | module Flow
module Steps
module ProviderIncome
FullEmploymentDetailsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_full_employment_details_path(application) },
forward: lambda do |application|
if application.uploading_bank_statements?
... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_income/employment_incomes_step.rb | Ruby | mit | 19 | main | 496 | module Flow
module Steps
module ProviderIncome
EmploymentIncomesStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_employment_income_path(application) },
forward: lambda do |application|
if application.uploading_bank_statements?
:r... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_income/identify_types_of_income_step.rb | Ruby | mit | 19 | main | 512 | module Flow
module Steps
module ProviderIncome
IdentifyTypesOfIncomeStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_identify_types_of_income_path(application) },
forward: lambda do |application|
application.income_types? ? :cash_incomes : :... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_income/check_income_answers_step.rb | Ruby | mit | 19 | main | 284 | module Flow
module Steps
module ProviderIncome
CheckIncomeAnswersStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_check_income_answers_path(application) },
forward: :capital_introductions,
)
end
end
end |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_income/regular_incomes_step.rb | Ruby | mit | 19 | main | 470 | module Flow
module Steps
module ProviderIncome
RegularIncomesStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_regular_incomes_path(application) },
forward: lambda do |application|
application.income_types? ? :cash_incomes : :student_finances... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_income/income_summary_step.rb | Ruby | mit | 19 | main | 581 | module Flow
module Steps
module ProviderIncome
IncomeSummaryStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_income_summary_index_path(application) },
forward: lambda do |application|
if application.outgoing_types?
:outgoings_summary
... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_income/employed_but_no_hmrc_data_interrupts_step.rb | Ruby | mit | 19 | main | 271 | module Flow
module Steps
module ProviderIncome
EmployedButNoHMRCDataInterruptsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_employed_but_no_hmrc_data_interrupt_path(application) },
)
end
end
end |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_income/identify_types_of_outgoings_step.rb | Ruby | mit | 19 | main | 808 | module Flow
module Steps
module ProviderIncome
IdentifyTypesOfOutgoingsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_identify_types_of_outgoing_path(application) },
forward: lambda do |application|
if application.outgoing_types?
... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_income/hmrc_unavailable_interrupts_step.rb | Ruby | mit | 19 | main | 256 | module Flow
module Steps
module ProviderIncome
HMRCUnavailableInterruptsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_hmrc_unavailable_interrupt_path(application) },
)
end
end
end |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_income/outgoing_transactions_step.rb | Ruby | mit | 19 | main | 318 | module Flow
module Steps
module ProviderIncome
OutgoingTransactionsStep = Step.new(
path: ->(application, params) { Steps.urls.providers_legal_aid_application_outgoing_transactions_path(application, params.slice(:transaction_type)) },
forward: :outgoings_summary,
)
end
end
end |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_income/no_nino_interrupts_step.rb | Ruby | mit | 19 | main | 238 | module Flow
module Steps
module ProviderIncome
NoNinoInterruptsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_no_nino_interrupt_path(application) },
)
end
end
end |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_income/multiple_employments_interrupts_step.rb | Ruby | mit | 19 | main | 264 | module Flow
module Steps
module ProviderIncome
MultipleEmploymentsInterruptsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_multiple_employments_interrupt_path(application) },
)
end
end
end |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_income/incoming_transactions_step.rb | Ruby | mit | 19 | main | 315 | module Flow
module Steps
module ProviderIncome
IncomingTransactionsStep = Step.new(
path: ->(application, params) { Steps.urls.providers_legal_aid_application_incoming_transactions_path(application, params.slice(:transaction_type)) },
forward: :income_summary,
)
end
end
end |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_income/outgoings_summary_step.rb | Ruby | mit | 19 | main | 820 | module Flow
module Steps
module ProviderIncome
OutgoingsSummaryStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_outgoings_summary_index_path(application) },
forward: lambda do |application|
if application.applicant.has_partner_with_no_contrary_int... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_income/housing_benefits_step.rb | Ruby | mit | 19 | main | 316 | module Flow
module Steps
module ProviderIncome
HousingBenefitsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_housing_benefits_path(application) },
forward: :has_dependants,
check_answers: :check_income_answers,
)
end
end
end |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/citizen_start/contact_provider_step.rb | Ruby | mit | 19 | main | 203 | module Flow
module Steps
module CitizenStart
ContactProviderStep = Step.new(
path: ->(_) { Steps.urls.citizens_contact_provider_path(locale: I18n.locale) },
)
end
end
end |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/citizen_start/additional_accounts_step.rb | Ruby | mit | 19 | main | 345 | module Flow
module Steps
module CitizenStart
AdditionalAccountsStep = Step.new(
path: ->(_) { Steps.urls.citizens_additional_accounts_path(locale: I18n.locale) },
forward: lambda do |application|
application.has_offline_accounts? ? :contact_providers : :check_answers
end,
... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/citizen_start/banks_step.rb | Ruby | mit | 19 | main | 212 | module Flow
module Steps
module CitizenStart
BanksStep = Step.new(
path: ->(_) { Steps.urls.citizens_banks_path(locale: I18n.locale) },
forward: :true_layer,
)
end
end
end |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/citizen_start/consents_step.rb | Ruby | mit | 19 | main | 314 | module Flow
module Steps
module CitizenStart
ConsentsStep = Step.new(
path: ->(_) { Steps.urls.citizens_consent_path(locale: I18n.locale) },
forward: lambda do |application|
application.open_banking_consent ? :banks : :contact_providers
end,
)
end
end
end |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/citizen_start/accounts_step.rb | Ruby | mit | 19 | main | 266 | module Flow
module Steps
module CitizenStart
AccountsStep = Step.new(
path: ->(_) { Steps.urls.citizens_accounts_path(locale: I18n.locale) },
forward: :additional_accounts,
check_answers: :check_answers,
)
end
end
end |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_dwp_override/has_evidence_of_benefits_step.rb | Ruby | mit | 19 | main | 686 | module Flow
module Steps
module ProviderDWPOverride
HasEvidenceOfBenefitsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_has_evidence_of_benefit_path(application) },
forward: lambda do |application, has_evidence_of_benefit|
if has_evidence_of_ben... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_dwp_override/check_client_details_step.rb | Ruby | mit | 19 | main | 292 | module Flow
module Steps
module ProviderDWPOverride
CheckClientDetailsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_check_client_details_path(application) },
forward: :received_benefit_confirmations,
)
end
end
end |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_dwp_override/received_benefit_confirmations_step.rb | Ruby | mit | 19 | main | 610 | module Flow
module Steps
module ProviderDWPOverride
ReceivedBenefitConfirmationsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_received_benefit_confirmation_path(application) },
forward: lambda do |application, has_benefit|
if has_benefit
... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_application_merits/parental_responsibilities_step.rb | Ruby | mit | 19 | main | 561 | module Flow
module Steps
module ProviderApplicationMerits
ParentalResponsibilitiesStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_client_has_parental_responsibility_path(application) },
forward: lambda do |application, options|
return :applicatio... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_application_merits/child_is_subject_step.rb | Ruby | mit | 19 | main | 540 | module Flow
module Steps
module ProviderApplicationMerits
ChildIsSubjectStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_client_is_child_subject_path(application) },
forward: lambda do |application, options|
return :application_merits_task_client_... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_application_merits/client_check_parental_answers_step.rb | Ruby | mit | 19 | main | 385 | module Flow
module Steps
module ProviderApplicationMerits
ClientCheckParentalAnswersStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_client_check_parental_answer_path(application) },
forward: lambda do |application|
Flow::MeritsLoop.forward_flow(a... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_application_merits/is_biological_parent_step.rb | Ruby | mit | 19 | main | 548 | module Flow
module Steps
module ProviderApplicationMerits
IsBiologicalParentStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_client_is_biological_parent_path(application) },
forward: lambda do |application, options|
return :application_merits_task... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_means_state_benefits/add_other_state_benefits_step.rb | Ruby | mit | 19 | main | 579 | module Flow
module Steps
module ProviderMeansStateBenefits
AddOtherStateBenefitsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_add_other_state_benefits_path(application) },
forward: lambda do |_application, add_other_state_benefits|
add_ot... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_means_state_benefits/receives_state_benefits_step.rb | Ruby | mit | 19 | main | 749 | module Flow
module Steps
module ProviderMeansStateBenefits
ReceivesStateBenefitsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_receives_state_benefits_path(application) },
forward: lambda do |_application, options|
options[:receives_state_... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_means_state_benefits/state_benefits_step.rb | Ruby | mit | 19 | main | 291 | module Flow
module Steps
module ProviderMeansStateBenefits
StateBenefitsStep = Step.new(
path: ->(application) { Steps.urls.new_providers_legal_aid_application_means_state_benefit_path(application) },
forward: :add_other_state_benefits,
)
end
end
end |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/addresses/correspondence_address_care_ofs_step.rb | Ruby | mit | 19 | main | 530 | module Flow
module Steps
module Addresses
CorrespondenceAddressCareOfsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_correspondence_address_care_of_path(application) },
forward: :home_address_statuses,
check_answers: :check_provider_answers,
... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/addresses/correspondence_address_selections_step.rb | Ruby | mit | 19 | main | 389 | module Flow
module Steps
module Addresses
CorrespondenceAddressSelectionsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_correspondence_address_selection_path(application) },
forward: :correspondence_address_care_ofs,
check_answers: :check_provider... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/addresses/home_address_manuals_step.rb | Ruby | mit | 19 | main | 326 | module Flow
module Steps
module Addresses
HomeAddressManualsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_home_address_manual_path(application) },
forward: :link_application_make_links,
check_answers: :check_provider_answers,
)
end
en... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/addresses/correspondence_address_manuals_step.rb | Ruby | mit | 19 | main | 450 | module Flow
module Steps
module Addresses
CorrespondenceAddressManualsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_correspondence_address_manual_path(application) },
forward: :correspondence_address_care_ofs,
check_answers: :correspondence_addre... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/addresses/correspondence_address_lookups_step.rb | Ruby | mit | 19 | main | 385 | module Flow
module Steps
module Addresses
CorrespondenceAddressLookupsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_correspondence_address_lookup_path(application) },
forward: :correspondence_address_selections,
check_answers: :check_provider_ans... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/addresses/home_address_statuses_step.rb | Ruby | mit | 19 | main | 584 | module Flow
module Steps
module Addresses
HomeAddressStatusesStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_home_address_status_path(application) },
forward: lambda do |application|
if application.applicant.no_fixed_residence?
:link_... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/addresses/non_uk_home_addresses_step.rb | Ruby | mit | 19 | main | 339 | module Flow
module Steps
module Addresses
NonUkHomeAddressesStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_home_address_non_uk_home_address_path(application) },
forward: :link_application_make_links,
check_answers: :check_provider_answers,
)... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/addresses/home_address_lookups_step.rb | Ruby | mit | 19 | main | 355 | module Flow
module Steps
module Addresses
HomeAddressLookupsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_home_address_lookup_path(application) },
forward: :home_address_selections,
check_answers: :check_provider_answers,
carry_on_sub_flo... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/addresses/correspondence_address_choices_step.rb | Ruby | mit | 19 | main | 823 | module Flow
module Steps
module Addresses
CorrespondenceAddressChoicesStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_correspondence_address_choice_path(application) },
forward: lambda do |application|
correspondence_address_choice = application.... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/addresses/home_address_selections_step.rb | Ruby | mit | 19 | main | 332 | module Flow
module Steps
module Addresses
HomeAddressSelectionsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_home_address_selection_path(application) },
forward: :link_application_make_links,
check_answers: :check_provider_answers,
)
en... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_dwp/dwp_results_step.rb | Ruby | mit | 19 | main | 720 | module Flow
module Steps
module ProviderDWP
DWPResultsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_dwp_result_path(application) },
forward: lambda do |application|
case application.benefit_check_status
when :unsuccessful
... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_dwp/dwp_partner_overrides_step.rb | Ruby | mit | 19 | main | 275 | module Flow
module Steps
module ProviderDWP
DWPPartnerOverridesStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_dwp_partner_override_path(application) },
forward: :check_client_details,
)
end
end
end |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_dwp/dwp_fallback_step.rb | Ruby | mit | 19 | main | 604 | module Flow
module Steps
module ProviderDWP
DWPFallbackStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_dwp_fallback_path(application) },
forward: lambda do |application, confirm_receipt_of_benefit|
if confirm_receipt_of_benefit
applic... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_proceeding_loop/substantive_defaults_step.rb | Ruby | mit | 19 | main | 776 | module Flow
module Steps
module ProviderProceedingLoop
SubstantiveDefaultsStep = Step.new(
path: lambda do |application|
proceeding = application.provider_step_params["id"]
Steps.urls.providers_legal_aid_application_substantive_default_path(application, proceeding)
end,
... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_proceeding_loop/substantive_level_of_service_step.rb | Ruby | mit | 19 | main | 648 | module Flow
module Steps
module ProviderProceedingLoop
SubstantiveLevelOfServiceStep = Step.new(
path: lambda do |application|
proceeding = application.provider_step_params["id"]
Steps.urls.providers_legal_aid_application_substantive_level_of_service_path(application, proceeding)... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_proceeding_loop/client_involvement_type_step.rb | Ruby | mit | 19 | main | 482 | module Flow
module Steps
module ProviderProceedingLoop
ClientInvolvementTypeStep = Step.new(
path: lambda do |application|
proceeding = Flow::ProceedingLoop.next_proceeding(application)
Steps.urls.providers_legal_aid_application_client_involvement_type_path(application, proceedin... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_proceeding_loop/final_hearings_step.rb | Ruby | mit | 19 | main | 643 | module Flow
module Steps
module ProviderProceedingLoop
FinalHearingsStep = Step.new(
path: lambda do |application, options|
proceeding = Proceeding.find(application.provider_step_params["id"])
Steps.urls.providers_legal_aid_application_final_hearings_path(application, proceeding,... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_proceeding_loop/confirm_delegated_functions_date_step.rb | Ruby | mit | 19 | main | 670 | module Flow
module Steps
module ProviderProceedingLoop
ConfirmDelegatedFunctionsDateStep = Step.new(
path: lambda do |application|
proceeding = application.provider_step_params["id"]
Steps.urls.providers_legal_aid_application_confirm_delegated_functions_date_path(application, pro... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_proceeding_loop/delegated_functions_step.rb | Ruby | mit | 19 | main | 671 | module Flow
module Steps
module ProviderProceedingLoop
DelegatedFunctionsStep = Step.new(
path: lambda do |application|
proceeding = application.provider_step_params["id"]
Steps.urls.providers_legal_aid_application_delegated_function_path(application, proceeding)
end,
... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_proceeding_loop/emergency_scope_limitations_step.rb | Ruby | mit | 19 | main | 496 | module Flow
module Steps
module ProviderProceedingLoop
EmergencyScopeLimitationsStep = Step.new(
path: lambda do |application|
proceeding = Proceeding.find(application.provider_step_params["id"])
Steps.urls.providers_legal_aid_application_emergency_scope_limitation_path(applicati... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_proceeding_loop/emergency_defaults_step.rb | Ruby | mit | 19 | main | 658 | module Flow
module Steps
module ProviderProceedingLoop
EmergencyDefaultsStep = Step.new(
path: lambda do |application|
proceeding = application.provider_step_params["id"]
Steps.urls.providers_legal_aid_application_emergency_default_path(application, proceeding)
end,
... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_proceeding_loop/substantive_scope_limitations_step.rb | Ruby | mit | 19 | main | 542 | module Flow
module Steps
module ProviderProceedingLoop
SubstantiveScopeLimitationsStep = Step.new(
path: lambda do |application|
proceeding = Proceeding.find(application.provider_step_params["id"])
Steps.urls.providers_legal_aid_application_substantive_scope_limitation_path(appli... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_proceeding_loop/emergency_level_of_service_step.rb | Ruby | mit | 19 | main | 642 | module Flow
module Steps
module ProviderProceedingLoop
EmergencyLevelOfServiceStep = Step.new(
path: lambda do |application|
proceeding = application.provider_step_params["id"]
Steps.urls.providers_legal_aid_application_emergency_level_of_service_path(application, proceeding)
... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/linked_applications/copy_step.rb | Ruby | mit | 19 | main | 728 | module Flow
module Steps
module LinkedApplications
CopyStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_link_application_copy_path(application) },
forward: lambda do |application|
if application.copy_case?
application.non_means_tested?... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/linked_applications/make_link_step.rb | Ruby | mit | 19 | main | 745 | module Flow
module Steps
module LinkedApplications
MakeLinkStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_link_application_make_link_path(application) },
forward: lambda do |application|
if application.lead_linked_application&.link_type_code.in?... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/linked_applications/confirm_link_step.rb | Ruby | mit | 19 | main | 781 | module Flow
module Steps
module LinkedApplications
ConfirmLinkStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_link_application_confirm_link_path(application) },
forward: lambda do |application|
link = application&.lead_linked_application
... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/linked_applications/find_link_step.rb | Ruby | mit | 19 | main | 299 | module Flow
module Steps
module LinkedApplications
FindLinkStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_link_application_find_link_application_path(application) },
forward: :link_application_confirm_links,
)
end
end
end |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_capital/check_passported_answers_step.rb | Ruby | mit | 19 | main | 292 | module Flow
module Steps
module ProviderCapital
CheckPassportedAnswersStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_check_passported_answers_path(application) },
forward: :capital_assessment_results,
)
end
end
end |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_capital/means_reports_step.rb | Ruby | mit | 19 | main | 224 | module Flow
module Steps
module ProviderCapital
MeansReportsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_report_path(application) },
)
end
end
end |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_capital/check_capital_answers_step.rb | Ruby | mit | 19 | main | 293 | module Flow
module Steps
module ProviderCapital
CheckCapitalAnswersStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_check_capital_answers_path(application) },
forward: :capital_income_assessment_results,
)
end
end
end |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_capital/other_assets_step.rb | Ruby | mit | 19 | main | 776 | module Flow
module Steps
module ProviderCapital
OtherAssetsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_other_assets_path(application) },
forward: lambda do |application|
if application.own_capital?
:restrictions
el... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_capital/remove_vehicles_step.rb | Ruby | mit | 19 | main | 458 | module Flow
module Steps
module ProviderCapital
RemoveVehiclesStep = Step.new(
path: ->(application, vehicle) { Steps.urls.providers_legal_aid_application_means_remove_vehicle_path(application, vehicle) },
forward: lambda do |_application, applicant_has_any_vehicles|
if applicant_h... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_capital/property_details_step.rb | Ruby | mit | 19 | main | 463 | module Flow
module Steps
module ProviderCapital
PropertyDetailsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_property_details_path(application) },
forward: lambda do |application|
if application.negative_equity?
:property_deta... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_capital/introductions_step.rb | Ruby | mit | 19 | main | 262 | module Flow
module Steps
module ProviderCapital
IntroductionsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_capital_introduction_path(application) },
forward: :own_homes,
)
end
end
end |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_capital/own_homes_step.rb | Ruby | mit | 19 | main | 659 | module Flow
module Steps
module ProviderCapital
OwnHomesStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_own_home_path(application) },
forward: lambda do |application|
if application.own_home_no?
application.vehicles.any? ? :add_... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_capital/policy_disregards_step.rb | Ruby | mit | 19 | main | 453 | module Flow
module Steps
module ProviderCapital
PolicyDisregardsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_policy_disregards_path(application) },
forward: :capital_disregards_discretionary,
check_answers: ->(application) { application.pr... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_capital/capital_income_assessment_results_step.rb | Ruby | mit | 19 | main | 515 | module Flow
module Steps
module ProviderCapital
CapitalIncomeAssessmentResultsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_capital_income_assessment_result_path(application) },
forward: lambda do |application|
if application.copy_case?
... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_capital/add_other_vehicles_step.rb | Ruby | mit | 19 | main | 836 | module Flow
module Steps
module ProviderCapital
AddOtherVehiclesStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_add_other_vehicles_path(application) },
forward: lambda do |application, add_other_vehicles|
if add_other_vehicles
:... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_capital/offline_accounts_step.rb | Ruby | mit | 19 | main | 413 | module Flow
module Steps
module ProviderCapital
OfflineAccountsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_offline_account_path(application) },
forward: :savings_and_investments,
check_answers: ->(application) { application.checking_non_passpor... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_capital/vehicle_details_step.rb | Ruby | mit | 19 | main | 690 | module Flow
module Steps
module ProviderCapital
VehicleDetailsStep = Step.new(
path: lambda do |application|
vehicle = application.vehicles.find_by_id(application.provider_step_params["id"])
if vehicle
Steps.urls.providers_legal_aid_application_means_vehicle_detail_p... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_capital/partner_bank_accounts_step.rb | Ruby | mit | 19 | main | 331 | module Flow
module Steps
module ProviderCapital
PartnerBankAccountsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_partners_bank_accounts_path(application) },
forward: :savings_and_investments,
check_answers: :check_capital_answers,
)
end... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_capital/property_details_interrupts_step.rb | Ruby | mit | 19 | main | 257 | module Flow
module Steps
module ProviderCapital
PropertyDetailsInterruptsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_property_details_interrupt_path(application) },
)
end
end
end |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_capital/vehicles_step.rb | Ruby | mit | 19 | main | 738 | module Flow
module Steps
module ProviderCapital
VehiclesStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_vehicle_path(application) },
forward: lambda do |application|
if application.own_vehicle?
:vehicle_details
elsif a... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_capital/capital_assessment_results_step.rb | Ruby | mit | 19 | main | 355 | module Flow
module Steps
module ProviderCapital
CapitalAssessmentResultsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_capital_assessment_result_path(application) },
forward: ->(application) { application.copy_case? ? :check_merits_answers : :merits_task_... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_capital/savings_and_investments_step.rb | Ruby | mit | 19 | main | 668 | module Flow
module Steps
module ProviderCapital
SavingsAndInvestmentsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_savings_and_investment_path(application) },
forward: lambda do |application|
if application.own_capital? && application.che... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_capital/applicant_bank_accounts_step.rb | Ruby | mit | 19 | main | 441 | module Flow
module Steps
module ProviderCapital
ApplicantBankAccountsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_applicant_bank_account_path(application) },
forward: ->(application) { application.applicant.has_partner_with_no_contrary_interest? ? :part... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_capital/restrictions_step.rb | Ruby | mit | 19 | main | 658 | module Flow
module Steps
module ProviderCapital
RestrictionsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_restrictions_path(application) },
forward: lambda do |application|
if application.capture_policy_disregards?
:capital_di... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_capital_disregards/discretionary_step.rb | Ruby | mit | 19 | main | 767 | module Flow
module Steps
module ProviderCapitalDisregards
DiscretionaryStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_capital_disregards_discretionary_path(application) },
forward: lambda do |application, disregard|
if disregard
... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_capital_disregards/add_details_step.rb | Ruby | mit | 19 | main | 967 | module Flow
module Steps
module ProviderCapitalDisregards
AddDetailsStep = Step.new(
path: lambda do |application, disregard|
Steps.urls.providers_legal_aid_application_means_capital_disregards_add_detail_path(application, disregard)
end,
forward: lambda do |application, di... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_capital_disregards/mandatory_step.rb | Ruby | mit | 19 | main | 717 | module Flow
module Steps
module ProviderCapitalDisregards
MandatoryStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_capital_disregards_mandatory_path(application) },
forward: lambda do |_application, disregard|
if disregard
:capi... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/proceedings_sca/heard_as_alternatives_step.rb | Ruby | mit | 19 | main | 613 | module Flow
module Steps
module ProceedingsSCA
HeardAsAlternativesStep = Step.new(
path: lambda do |application, options|
proceeding = options.is_a?(Proceeding) ? options : options[:proceeding]
Steps.urls.providers_legal_aid_application_heard_as_alternative_path(application, proc... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/proceedings_sca/child_subjects_step.rb | Ruby | mit | 19 | main | 266 | module Flow
module Steps
module ProceedingsSCA
ChildSubjectsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_child_subject_path(application) },
forward: :has_other_proceedings,
)
end
end
end |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/proceedings_sca/supervision_order_step.rb | Ruby | mit | 19 | main | 274 | module Flow
module Steps
module ProceedingsSCA
SupervisionOrderStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_supervision_orders_path(application) },
forward: :has_other_proceedings,
)
end
end
end |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/proceedings_sca/proceeding_issue_statuses_step.rb | Ruby | mit | 19 | main | 552 | module Flow
module Steps
module ProceedingsSCA
ProceedingIssueStatusesStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_proceeding_issue_statuses_path(application) },
forward: lambda do |_application, proceeding|
case proceeding.ccms_code
... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/proceedings_sca/heard_togethers_step.rb | Ruby | mit | 19 | main | 598 | module Flow
module Steps
module ProceedingsSCA
HeardTogethersStep = Step.new(
path: ->(application, proceeding) { Steps.urls.providers_legal_aid_application_heard_together_path(application, proceeding) },
forward: lambda do |_application, options|
return :proceedings_sca_heard_as_a... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/proceedings_sca/interrupts_step.rb | Ruby | mit | 19 | main | 264 | module Flow
module Steps
module ProceedingsSCA
InterruptsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_sca_interrupt_path(application, application.provider_step_params["type"]) },
)
end
end
end |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_dependants/has_other_dependants_step.rb | Ruby | mit | 19 | main | 535 | module Flow
module Steps
module ProviderDependants
HasOtherDependantsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_has_other_dependants_path(application) },
forward: lambda { |_application, has_other_dependant|
has_other_dependant ? :depe... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_dependants/dependants_step.rb | Ruby | mit | 19 | main | 272 | module Flow
module Steps
module ProviderDependants
DependantsStep = Step.new(
path: ->(application) { Steps.urls.new_providers_legal_aid_application_means_dependant_path(application) },
forward: :has_other_dependants,
)
end
end
end |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_dependants/has_dependants_step.rb | Ruby | mit | 19 | main | 720 | module Flow
module Steps
module ProviderDependants
HasDependantsStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_means_has_dependants_path(application) },
forward: lambda do |application|
if application.has_dependants?
:dependants
... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_dependants/remove_dependants_step.rb | Ruby | mit | 19 | main | 371 | module Flow
module Steps
module ProviderDependants
RemoveDependantsStep = Step.new(
path: ->(application, dependant) { Steps.urls.providers_legal_aid_application_means_remove_dependant_path(application, dependant) },
forward: ->(application) { application.dependants.any? ? :has_other_dependa... |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_blocked/providers_blocked_step.rb | Ruby | mit | 19 | main | 221 | module Flow
module Steps
module ProviderBlocked
ProvidersBlockedStep = Step.new(
path: ->(application) { Steps.urls.providers_legal_aid_application_block_path(application) },
)
end
end
end |
github | ministryofjustice/laa-apply-for-legal-aid | https://github.com/ministryofjustice/laa-apply-for-legal-aid | app/services/flow/steps/provider_means/remove_state_benefits_step.rb | Ruby | mit | 19 | main | 456 | module Flow
module Steps
module ProviderMeans
RemoveStateBenefitsStep = Step.new(
path: ->(application, transaction) { Steps.urls.providers_legal_aid_application_means_remove_state_benefit_path(application, transaction) },
forward: lambda do |_application, applicant_has_any_state_benefits|
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.