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_start/has_national_insurance_numbers_step.rb
Ruby
mit
19
main
536
module Flow module Steps module ProviderStart HasNationalInsuranceNumbersStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_has_national_insurance_number_path(application) }, forward: lambda do |application| if application.overriding_dwp_result? ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_start/change_of_names_interrupts_step.rb
Ruby
mit
19
main
246
module Flow module Steps module ProviderStart ChangeOfNamesInterruptsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_change_of_names_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_start/use_ccms_step.rb
Ruby
mit
19
main
213
module Flow module Steps module ProviderStart UseCCMSStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_use_ccms_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_start/open_banking_consents_step.rb
Ruby
mit
19
main
394
module Flow module Steps module ProviderStart OpenBankingConsentsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_open_banking_consents_path(application) }, forward: lambda do |application| application.provider_received_citizen_consent? ? :open_ba...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_start/use_ccms_employment_step.rb
Ruby
mit
19
main
240
module Flow module Steps module ProviderStart UseCCMSEmploymentStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_use_ccms_employment_index_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_start/has_other_proceedings_step.rb
Ruby
mit
19
main
468
module Flow module Steps module ProviderStart HasOtherProceedingsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_has_other_proceedings_path(application) }, forward: lambda do |application, add_another_proceeding| if add_another_proceeding ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_start/confirm_non_means_tested_application_step.rb
Ruby
mit
19
main
388
module Flow module Steps module ProviderStart ConfirmNonMeansTestedApplicationStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_confirm_non_means_tested_applications_path(application) }, forward: ->(application) { application.display_merits_task_list? ? :mer...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_start/proceedings_types_step.rb
Ruby
mit
19
main
929
module Flow module Steps module ProviderStart PROHIBITED_STEPS_OR_SPECIFIC_ISSUE_REGEXP = /^SE00[3478](.*)\z/ PUBLIC_LAW_FAMILY_PROCEEDING_REGEXP = /^PBM(16|17|18|19|20|21|22)[AE]?$/ ProceedingsTypesStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_proc...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_start/applicant_details_step.rb
Ruby
mit
19
main
329
module Flow module Steps module ProviderStart ApplicantDetailsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_applicant_details_path(application) }, forward: :has_national_insurance_numbers, check_answers: :check_provider_answers, ) end ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_start/open_banking_guidances_step.rb
Ruby
mit
19
main
393
module Flow module Steps module ProviderStart OpenBankingGuidancesStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_open_banking_guidance_path(application) }, forward: lambda do |_application, client_can_use_truelayer| client_can_use_truelayer ? :e...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_start/about_financial_means_step.rb
Ruby
mit
19
main
276
module Flow module Steps module ProviderStart AboutFinancialMeansStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_about_financial_means_path(application) }, forward: :applicant_employed, ) end end end
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_start/check_provider_answers_step.rb
Ruby
mit
19
main
689
module Flow module Steps module ProviderStart CheckProviderAnswersStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_check_provider_answers_path(application) }, forward: lambda do |application| if application.non_means_tested? applicatio...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_start/about_the_financial_assessments_step.rb
Ruby
mit
19
main
301
module Flow module Steps module ProviderStart AboutTheFinancialAssessmentsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_about_the_financial_assessment_path(application) }, forward: :application_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_start/change_of_names_step.rb
Ruby
mit
19
main
267
module Flow module Steps module ProviderStart ChangeOfNamesStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_change_of_names_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/provider_start/no_national_insurance_numbers_step.rb
Ruby
mit
19
main
416
module Flow module Steps module ProviderStart NoNationalInsuranceNumbersStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_no_national_insurance_number_path(application) }, forward: lambda do |application| application.change_state_machine_type("NonP...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_start/application_confirmations_step.rb
Ruby
mit
19
main
246
module Flow module Steps module ProviderStart ApplicationConfirmationsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_application_confirmation_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_start/previous_references_step.rb
Ruby
mit
19
main
333
module Flow module Steps module ProviderStart PreviousReferencesStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_previous_references_path(application) }, forward: :correspondence_address_choices, check_answers: :check_provider_answers, ) e...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_start/limitations_step.rb
Ruby
mit
19
main
654
module Flow module Steps module ProviderStart LimitationsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_limitations_path(application) }, forward: lambda do |application| if application.overriding_dwp_result? || application.non_means_tested? ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_start/email_addresses_step.rb
Ruby
mit
19
main
276
module Flow module Steps module ProviderStart EmailAddressesStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_email_address_path(application) }, forward: :about_the_financial_assessments, ) end end end
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_start/applicant_employed_step.rb
Ruby
mit
19
main
495
module Flow module Steps module ProviderStart ApplicantEmployedStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_applicant_employed_index_path(application) }, forward: lambda do |application| next_step = application.used_delegated_functions? ? :sub...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_start/bank_statements_step.rb
Ruby
mit
19
main
1,221
module Flow module Steps module ProviderStart BankStatementsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_bank_statements_path(application) }, forward: lambda do |application| status = HMRC::StatusAnalyzer.call(application) case statu...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_start/delegated_confirmation_step.rb
Ruby
mit
19
main
247
module Flow module Steps module ProviderStart DelegatedConfirmationStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_delegated_confirmation_index_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_start/applicants_step.rb
Ruby
mit
19
main
226
module Flow module Steps module ProviderStart ApplicantsStep = Step.new( path: ->(_) { Steps.urls.new_providers_applicant_path }, forward: :has_national_insurance_numbers, ) end end end
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_start/substantive_applications_step.rb
Ruby
mit
19
main
536
module Flow module Steps module ProviderStart SubstantiveApplicationsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_substantive_application_path(application) }, forward: lambda do |application| return :delegated_confirmation unless application.s...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/citizen_end/means_test_results_step.rb
Ruby
mit
19
main
225
module Flow module Steps module CitizenEnd MeansTestResultsStep = Step.new( path: ->(_) { Steps.urls.citizens_means_test_result_path(locale: I18n.locale) }, forward: nil, ) end end end
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/citizen_end/check_answers_step.rb
Ruby
mit
19
main
233
module Flow module Steps module CitizenEnd CheckAnswersStep = Step.new( path: ->(_) { Steps.urls.citizens_check_answers_path(locale: I18n.locale) }, forward: :means_test_results, ) end end end
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/partner/add_other_state_benefits_step.rb
Ruby
mit
19
main
587
module Flow module Steps module Partner AddOtherStateBenefitsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_partners_add_other_state_benefits_path(application) }, forward: lambda do |_application, add_other_state_benefits| add_other_state_benefi...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/partner/full_employment_details_step.rb
Ruby
mit
19
main
342
module Flow module Steps module Partner FullEmploymentDetailsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_partners_full_employment_details_path(application) }, forward: :partner_receives_state_benefits, check_answers: :check_income_answers, ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/partner/state_benefits_step.rb
Ruby
mit
19
main
283
module Flow module Steps module Partner StateBenefitsStep = Step.new( path: ->(application) { Steps.urls.new_providers_legal_aid_application_partners_state_benefit_path(application) }, forward: :partner_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/partner/employment_incomes_step.rb
Ruby
mit
19
main
286
module Flow module Steps module Partner EmploymentIncomesStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_partners_employment_income_path(application) }, forward: :partner_receives_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/partner/employed_step.rb
Ruby
mit
19
main
469
module Flow module Steps module Partner EmployedStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_partners_employed_index_path(application) }, forward: lambda do |application| if application.partner.self_employed? || application.partner.armed_force...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/partner/unemployed_but_hmrc_found_data_interrupts_step.rb
Ruby
mit
19
main
277
module Flow module Steps module Partner UnemployedButHMRCFoundDataInterruptsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_partners_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/partner/remove_state_benefits_step.rb
Ruby
mit
19
main
465
module Flow module Steps module Partner RemoveStateBenefitsStep = Step.new( path: ->(application, transaction) { Steps.urls.providers_legal_aid_application_partners_remove_state_benefit_path(application, transaction) }, forward: lambda do |_application, partner_has_any_state_benefits| ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/partner/employed_but_no_hmrc_data_interrupts_step.rb
Ruby
mit
19
main
267
module Flow module Steps module Partner EmployedButNoHMRCDataInterruptsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_partners_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/partner/cash_incomes_step.rb
Ruby
mit
19
main
313
module Flow module Steps module Partner CashIncomesStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_partners_cash_income_path(application) }, forward: :partner_student_finances, 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/partner/contrary_interests_step.rb
Ruby
mit
19
main
550
module Flow module Steps module Partner ContraryInterestsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_contrary_interest_path(application) }, forward: lambda do |_application, options| options[:partner_has_contrary_interest] ? :check_provider_a...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/partner/hmrc_unavailable_interrupts_step.rb
Ruby
mit
19
main
252
module Flow module Steps module Partner HMRCUnavailableInterruptsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_partners_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/partner/client_has_partners_step.rb
Ruby
mit
19
main
423
module Flow module Steps module Partner ClientHasPartnersStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_client_has_partner_path(application) }, forward: lambda do |_application, options| if options[:has_partner] :contrary_interests ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/partner/bank_statements_step.rb
Ruby
mit
19
main
1,269
module Flow module Steps module Partner BankStatementsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_partners_bank_statements_path(application) }, forward: lambda do |application| status = HMRC::PartnerStatusAnalyzer.call(application) ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/partner/receives_state_benefits_step.rb
Ruby
mit
19
main
761
module Flow module Steps module Partner ReceivesStateBenefitsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_partners_receives_state_benefits_path(application) }, forward: lambda do |_application, options| options[:receives_state_benefits] ? :par...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/partner/single_employment_interrupts_step.rb
Ruby
mit
19
main
254
module Flow module Steps module Partner SingleEmploymentInterruptsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_partners_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/partner/unexpected_employment_income_step.rb
Ruby
mit
19
main
306
module Flow module Steps module Partner UnexpectedEmploymentIncomeStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_partners_unexpected_employment_income_path(application) }, forward: :partner_receives_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/partner/multiple_employments_interrupts_step.rb
Ruby
mit
19
main
260
module Flow module Steps module Partner MultipleEmploymentsInterruptsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_partners_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/partner/no_nino_interrupts_step.rb
Ruby
mit
19
main
234
module Flow module Steps module Partner NoNinoInterruptsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_partners_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/partner/use_ccms_employment_step.rb
Ruby
mit
19
main
243
module Flow module Steps module Partner UseCCMSEmploymentStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_partners_use_ccms_employment_index_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/partner/regular_outgoings_step.rb
Ruby
mit
19
main
920
module Flow module Steps module Partner RegularOutgoingsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_partners_regular_outgoings_path(application) }, forward: lambda do |application| if application.partner_outgoing_types? :partner_c...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/partner/about_financial_means_step.rb
Ruby
mit
19
main
277
module Flow module Steps module Partner AboutFinancialMeansStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_partners_about_financial_means_path(application) }, forward: :partner_employed, ) end end end
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/partner/student_finances_step.rb
Ruby
mit
19
main
322
module Flow module Steps module Partner StudentFinancesStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_partners_student_finance_path(application) }, forward: :partner_regular_outgoings, check_answers: :check_income_answers, ) end end en...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/partner/regular_incomes_step.rb
Ruby
mit
19
main
506
module Flow module Steps module Partner RegularIncomesStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_partners_regular_incomes_path(application) }, forward: lambda do |application| application.partner_income_types? ? :partner_cash_incomes : :part...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/partner/cash_outgoings_step.rb
Ruby
mit
19
main
731
module Flow module Steps module Partner CashOutgoingsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_partners_cash_outgoing_path(application) }, forward: lambda do |application| if application.housing_payments_for?("Applicant") || application.hou...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/partner/details_step.rb
Ruby
mit
19
main
498
module Flow module Steps module Partner DetailsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_partners_details_path(application) }, forward: lambda do |application| if application.overriding_dwp_result? :check_client_details ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider/proceeding_interrupts/related_orders_step.rb
Ruby
mit
19
main
749
module Flow module Steps module Provider module ProceedingInterrupts PROHIBITED_STEPS_OR_SPECIFIC_ISSUE_PLF_REGEXP = /^PBM(16|17|20|21)[AE]?$/ RelatedOrdersStep = Step.new( path: lambda do |application, proceeding| Steps.urls.providers_legal_aid_application_related_ord...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/client_offered_undertakings_step.rb
Ruby
mit
19
main
392
module Flow module Steps module ProviderMerits ClientOfferedUndertakingsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_client_offered_undertakings_path(application) }, forward: ->(application) { Flow::MeritsLoop.forward_flow(application, :application) }, ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/statement_of_cases_step.rb
Ruby
mit
19
main
558
module Flow module Steps module ProviderMerits StatementOfCasesStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_statement_of_case_path(application) }, forward: lambda { |application, options| options[:uploaded] ? :statement_of_case_uploads : Flow:...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/second_appeals_step.rb
Ruby
mit
19
main
639
module Flow module Steps module ProviderMerits SecondAppealsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_second_appeal_path(application) }, forward: lambda do |application| if application.appeal.second_appeal? :second_appeal_court_...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/end_of_applications_step.rb
Ruby
mit
19
main
276
module Flow module Steps module ProviderMerits EndOfApplicationsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_end_of_application_path(application) }, forward: :submitted_applications, ) end end end
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/opponents_mental_capacities_step.rb
Ruby
mit
19
main
390
module Flow module Steps module ProviderMerits OpponentsMentalCapacitiesStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_opponents_mental_capacity_path(application) }, forward: ->(application) { Flow::MeritsLoop.forward_flow(application, :application) }, ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/when_contact_was_made_step.rb
Ruby
mit
19
main
379
module Flow module Steps module ProviderMerits WhenContactWasMadeStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_when_contact_was_made_path(application) }, forward: ->(application) { Flow::MeritsLoop.forward_flow(application, :application) }, check...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/has_other_involved_children_step.rb
Ruby
mit
19
main
494
module Flow module Steps module ProviderMerits HasOtherInvolvedChildrenStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_has_other_involved_children_path(application) }, forward: lambda { |application, has_other_involved_child| if has_other_involve...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/opponent_types_step.rb
Ruby
mit
19
main
375
module Flow module Steps module ProviderMerits OpponentTypesStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_opponent_type_path(application) }, forward: lambda { |_application, is_individual| is_individual ? :opponent_individuals : :opponent_exist...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/client_denial_of_allegations_step.rb
Ruby
mit
19
main
392
module Flow module Steps module ProviderMerits ClientDenialOfAllegationsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_client_denial_of_allegation_path(application) }, forward: ->(application) { Flow::MeritsLoop.forward_flow(application, :application) }, ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/court_order_copies_step.rb
Ruby
mit
19
main
544
module Flow module Steps module ProviderMerits CourtOrderCopiesStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_court_order_copy_path(application) }, forward: ->(application) { Flow::MeritsLoop.forward_flow(application, :application) }, check_answer...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/second_appeal_court_types_step.rb
Ruby
mit
19
main
412
module Flow module Steps module ProviderMerits SecondAppealCourtTypesStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_second_appeal_court_type_path(application) }, forward: lambda do |application| Flow::MeritsLoop.forward_flow(application, :applic...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/date_client_told_incidents_step.rb
Ruby
mit
19
main
388
module Flow module Steps module ProviderMerits DateClientToldIncidentsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_date_client_told_incident_path(application) }, forward: ->(application) { Flow::MeritsLoop.forward_flow(application, :application) }, ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/opponent_new_organisation_step.rb
Ruby
mit
19
main
336
module Flow module Steps module ProviderMerits OpponentNewOrganisationStep = Step.new( path: ->(application) { Steps.urls.new_providers_legal_aid_application_opponent_new_organisation_path(application) }, forward: :has_other_opponents, check_answers: :check_merits_answers, ) ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/child_care_assessment_result_step.rb
Ruby
mit
19
main
681
module Flow module Steps module ProviderMerits ChildCareAssessmentResultStep = Step.new( path: lambda do |application| proceeding = application.proceedings.find(application.provider_step_params["merits_task_list_id"]) Steps.urls.providers_merits_task_list_child_care_assessment_re...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/attempts_to_settle_step.rb
Ruby
mit
19
main
653
module Flow module Steps module ProviderMerits AttemptsToSettleStep = Step.new( path: lambda do |application| proceeding = application.proceedings.find(application.provider_step_params["merits_task_list_id"]) Steps.urls.providers_merits_task_list_attempts_to_settle_path(proceedin...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/matter_opposed_reasons_step.rb
Ruby
mit
19
main
381
module Flow module Steps module ProviderMerits MatterOpposedReasonsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_matter_opposed_reason_path(application) }, forward: ->(application) { Flow::MeritsLoop.forward_flow(application, :application) }, che...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/opponent_existing_organisations_step.rb
Ruby
mit
19
main
344
module Flow module Steps module ProviderMerits OpponentExistingOrganisationsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_opponent_existing_organisations_path(application) }, forward: :has_other_opponents, check_answers: :check_merits_answers, ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/involved_children_step.rb
Ruby
mit
19
main
1,339
module Flow module Steps module ProviderMerits InvolvedChildrenStep = Step.new( path: lambda do |application, params| involved_child_id = params.is_a?(Hash) && params.deep_symbolize_keys[:id] case involved_child_id when "new" partial_record = ApplicationMeri...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/original_judge_levels_step.rb
Ruby
mit
19
main
793
module Flow module Steps module ProviderMerits OriginalJudgeLevelsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_original_judge_level_path(application) }, forward: lambda do |application| if application.appeal.original_judge_level.in?(%w[recorde...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/vary_order_step.rb
Ruby
mit
19
main
638
module Flow module Steps module ProviderMerits VaryOrderStep = Step.new( path: lambda do |application| proceeding = application.proceedings.find(application.provider_step_params["merits_task_list_id"]) Steps.urls.providers_merits_task_list_vary_order_path(proceeding) end,...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/first_appeal_court_types_step.rb
Ruby
mit
19
main
410
module Flow module Steps module ProviderMerits FirstAppealCourtTypesStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_first_appeal_court_type_path(application) }, forward: lambda do |application| Flow::MeritsLoop.forward_flow(application, :applicat...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/child_care_assessment_step.rb
Ruby
mit
19
main
1,076
module Flow module Steps module ProviderMerits ChildCareAssessmentStep = Step.new( path: lambda do |application| proceeding = application.proceedings.find(application.provider_step_params["merits_task_list_id"]) Steps.urls.providers_merits_task_list_child_care_assessment_path(pro...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/in_scope_of_laspos_step.rb
Ruby
mit
19
main
372
module Flow module Steps module ProviderMerits InScopeOfLasposStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_in_scope_of_laspo_path(application) }, forward: ->(application) { Flow::MeritsLoop.forward_flow(application, :application) }, check_answer...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/chances_of_success_step.rb
Ruby
mit
19
main
653
module Flow module Steps module ProviderMerits ChancesOfSuccessStep = Step.new( path: lambda do |application| proceeding = application.proceedings.find(application.provider_step_params["merits_task_list_id"]) Steps.urls.providers_merits_task_list_chances_of_success_path(proceedin...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/merits_reports_step.rb
Ruby
mit
19
main
225
module Flow module Steps module ProviderMerits MeritsReportsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_merits_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_merits/confirm_client_declarations_step.rb
Ruby
mit
19
main
299
module Flow module Steps module ProviderMerits ConfirmClientDeclarationsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_confirm_client_declaration_path(application) }, forward: :review_and_print_applications, ) end end end
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/merits_task_lists_step.rb
Ruby
mit
19
main
359
module Flow module Steps module ProviderMerits MeritsTaskListsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_merits_task_list_path(application) }, forward: ->(application) { application.evidence_is_required? ? :uploaded_evidence_collections : :check_merit...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/uploaded_evidence_collections_step.rb
Ruby
mit
19
main
294
module Flow module Steps module ProviderMerits UploadedEvidenceCollectionsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_uploaded_evidence_collection_path(application) }, forward: :check_merits_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_merits/prohibited_steps_step.rb
Ruby
mit
19
main
650
module Flow module Steps module ProviderMerits ProhibitedStepsStep = Step.new( path: lambda do |application| proceeding = application.proceedings.find(application.provider_step_params["merits_task_list_id"]) Steps.urls.providers_merits_task_list_prohibited_steps_path(proceeding) ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/check_merits_answers_step.rb
Ruby
mit
19
main
284
module Flow module Steps module ProviderMerits CheckMeritsAnswersStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_check_merits_answers_path(application) }, forward: :confirm_client_declarations, ) end end end
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/opponents_application_step.rb
Ruby
mit
19
main
660
module Flow module Steps module ProviderMerits OpponentsApplicationStep = Step.new( path: lambda do |application| proceeding = application.proceedings.find(application.provider_step_params["merits_task_list_id"]) Steps.urls.providers_merits_task_list_opponents_application_path(pr...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/statement_of_case_uploads_step.rb
Ruby
mit
19
main
386
module Flow module Steps module ProviderMerits StatementOfCaseUploadsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_statement_of_case_upload_path(application) }, forward: ->(application) { Flow::MeritsLoop.forward_flow(application, :application) }, ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/opponent_individuals_step.rb
Ruby
mit
19
main
326
module Flow module Steps module ProviderMerits OpponentIndividualsStep = Step.new( path: ->(application) { Steps.urls.new_providers_legal_aid_application_opponent_individual_path(application) }, forward: :has_other_opponents, check_answers: :check_merits_answers, ) end en...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/nature_of_urgencies_step.rb
Ruby
mit
19
main
376
module Flow module Steps module ProviderMerits NatureOfUrgenciesStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_nature_of_urgencies_path(application) }, forward: ->(application) { Flow::MeritsLoop.forward_flow(application, :application) }, check_an...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/domestic_abuse_summaries_step.rb
Ruby
mit
19
main
384
module Flow module Steps module ProviderMerits DomesticAbuseSummariesStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_domestic_abuse_summary_path(application) }, forward: ->(application) { Flow::MeritsLoop.forward_flow(application, :application) }, ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/review_and_print_applications_step.rb
Ruby
mit
19
main
292
module Flow module Steps module ProviderMerits ReviewAndPrintApplicationsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_review_and_print_application_path(application) }, forward: :end_of_applications, ) end end end
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/start_involved_children_task_step.rb
Ruby
mit
19
main
668
module Flow module Steps module ProviderMerits StartInvolvedChildrenTaskStep = Step.new( # This allows the statement of case flow to check for involved children while allowing a standard path # to :involved_children from :has_other_involved_children that always goes to the new children page...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/linked_children_step.rb
Ruby
mit
19
main
648
module Flow module Steps module ProviderMerits LinkedChildrenStep = Step.new( path: lambda do |application| proceeding = application.proceedings.find(application.provider_step_params["merits_task_list_id"]) Steps.urls.providers_merits_task_list_linked_children_path(proceeding) ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/start_opponent_task_step.rb
Ruby
mit
19
main
570
module Flow module Steps module ProviderMerits StartOpponentTaskStep = Step.new( # This allows the task list to check for opponents and route to has_other_opponents # if they exist or show the new page if they do not path: lambda do |application| if application.opponents.an...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/is_matter_opposed_step.rb
Ruby
mit
19
main
372
module Flow module Steps module ProviderMerits IsMatterOpposedStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_is_matter_opposed_path(application) }, forward: ->(application) { Flow::MeritsLoop.forward_flow(application, :application) }, check_answer...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/has_other_opponents_step.rb
Ruby
mit
19
main
411
module Flow module Steps module ProviderMerits HasOtherOpponentsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_has_other_opponent_path(application) }, forward: lambda { |application, has_other_opponent| has_other_opponent ? :opponent_types : Flo...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/submitted_applications_step.rb
Ruby
mit
19
main
275
module Flow module Steps module ProviderMerits SubmittedApplicationsStep = Step.new( path: ->(application) { Steps.urls.providers_legal_aid_application_submitted_application_path(application) }, forward: :providers_home, ) end end end
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/flow/steps/provider_merits/specific_issue_step.rb
Ruby
mit
19
main
646
module Flow module Steps module ProviderMerits SpecificIssueStep = Step.new( path: lambda do |application| proceeding = application.proceedings.find(application.provider_step_params["merits_task_list_id"]) Steps.urls.providers_merits_task_list_specific_issue_path(proceeding) ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/datastore/payload_generator.rb
Ruby
mit
19
main
1,451
module Datastore class PayloadGenerator attr_reader :legal_aid_application, :transformer def initialize(legal_aid_application, transformer: Transformer) @legal_aid_application = legal_aid_application @transformer = transformer end def self.call(legal_aid_application) new(legal_aid_...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/datastore/persister.rb
Ruby
mit
19
main
729
module Datastore class Persister attr_reader :legal_aid_application, :response, :datastore_id def initialize(legal_aid_application, response:, datastore_id: nil) @legal_aid_application = legal_aid_application @response = response @datastore_id = datastore_id end def self.call(legal...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/datastore/submitter.rb
Ruby
mit
19
main
1,147
module Datastore class Submitter extend Forwardable ApiError = Class.new(StandardError) attr_reader :legal_aid_application, :connection, :persister def_delegators :connection, :post def initialize(legal_aid_application, connection: Datastore::Connection.new, persister: Datastore::Persister) ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/datastore/constants.rb
Ruby
mit
19
main
378
module Datastore module Constants STATUSES = { in_progress: { value: "APPLICATION_IN_PROGRESS", label: "In progress" }, submitted: { value: "APPLICATION_SUBMITTED", label: "Submitted" }, }.freeze def self.status_value(key) STATUSES[key]&.fetch(:value) end def self.status_label(...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
app/services/datastore/transformer.rb
Ruby
mit
19
main
354
# Simple utility class to transform hashes # from an idiomatic ruby format to an idiomatic # java format. # module Datastore class Transformer def initialize(hash) @hash = hash end def self.call(hash) new(hash).call end def call @hash.deep_transform_keys { |k| k.to_s.camelize(:...