summaryrefslogtreecommitdiff
path: root/app/models/solidus_subscriptions/installment.rb
diff options
context:
space:
mode:
authorBrendan Deere <brendan@stembolt.com>2016-10-04 10:31:19 -0700
committerBrendan Deere <brendan@stembolt.com>2016-10-04 14:03:56 -0700
commit03595412826db21aaf2b62c7009de976a06694d7 (patch)
treeebf72127a2dde569d133f3e2e17b09e588d96dbf /app/models/solidus_subscriptions/installment.rb
parentfa4d3ea0be1968938b4a3ade9f421748ab800858 (diff)
Add missing documentation
Diffstat (limited to 'app/models/solidus_subscriptions/installment.rb')
-rw-r--r--app/models/solidus_subscriptions/installment.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/solidus_subscriptions/installment.rb b/app/models/solidus_subscriptions/installment.rb
index de4a734..8b0ebf3 100644
--- a/app/models/solidus_subscriptions/installment.rb
+++ b/app/models/solidus_subscriptions/installment.rb
@@ -73,6 +73,10 @@ module SolidusSubscriptions
order_id.nil? || !order.completed?
end
+ # Mark this installment as having a failed payment
+ #
+ # @return [SolidusSubscriptions::InstallmentDetail] The record of the
+ # failed processing attempt
def payment_failed!
advance_actionable_date!