Sha256: 11ce18956018143114962adf47c3b92a83ed86902293e7b0395a05ed5e71e792
Contents?: true
Size: 451 Bytes
Versions: 4
Compression:
Stored size: 451 Bytes
Contents
module Spree module Reimbursement::ReimbursementTypeValidator def valid_preferred_reimbursement_type?(return_item) !past_reimbursable_time_period?(return_item) || return_item.preferred_reimbursement_type == expired_reimbursement_type end def past_reimbursable_time_period?(return_item) shipped_at = return_item.inventory_unit.shipment.shipped_at shipped_at && shipped_at < refund_time_constraint.ago end end end
Version data entries
4 entries across 4 versions & 1 rubygems