mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
15 lines
354 B
Ruby
15 lines
354 B
Ruby
# frozen_string_literal: false
|
|
|
|
class Invoice
|
|
class DataPresenter
|
|
class ShippingMethod < Invoice::DataPresenter::Base
|
|
attributes :id, :name, :require_ship_address
|
|
invoice_generation_attributes :id
|
|
|
|
def category
|
|
I18n.t "invoice_shipping_category_#{require_ship_address ? 'delivery' : 'pickup'}"
|
|
end
|
|
end
|
|
end
|
|
end
|