lib/Mollie/API/Object/Payment.rb in mollie-api-ruby-1.2.1 vs lib/Mollie/API/Object/Payment.rb in mollie-api-ruby-1.2.2
- old
+ new
@@ -27,25 +27,27 @@
end
def cancelled?
@status == STATUS_CANCELLED
end
-
+
def expired?
@status == STATUS_EXPIRED
end
def paid?
!@paidDatetime.nil?
end
-
+
def paidout?
@status == STATUS_PAIDOUT
end
def getPaymentUrl
@links && @links.paymentUrl
end
+
+ alias_method :payment_url, :getPaymentUrl
end
end
end
end