From a5b86f3d845d5c9895f4fa6d7bc6760a00f734ca Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 12 Aug 2025 18:26:18 +0000 Subject: [PATCH 1/2] Initial plan From 04aa6e1f2b6a61095938a39cd70b3dbe6f733618 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 12 Aug 2025 18:31:32 +0000 Subject: [PATCH 2/2] Add virtual attributes us_postage_type and intl_postage_type to Letter::Batch Co-authored-by: 24c02 <163450896+24c02@users.noreply.github.com> --- app/models/letter/batch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/letter/batch.rb b/app/models/letter/batch.rb index 261f6139..55499e60 100644 --- a/app/models/letter/batch.rb +++ b/app/models/letter/batch.rb @@ -61,7 +61,7 @@ class Letter::Batch < Batch attribute :user_facing_title, :string attribute :letter_return_address_name, :string attribute :letter_queue_id, :integer - attr_accessor :template, :template_cycle + attr_accessor :template, :template_cycle, :us_postage_type, :intl_postage_type attribute :letter_mailing_date, :date validates :letter_height, :letter_width, :letter_weight, presence: true, numericality: { greater_than: 0 }