Sha256: a31e32b930827a5057f5afb36293c6bc511c9e806b5b409b02ed0327edf56908
Contents?: true
Size: 1.13 KB
Versions: 5
Compression:
Stored size: 1.13 KB
Contents
module Mollie module API module Object class Payment < Base STATUS_OPEN = "open" STATUS_CANCELLED = "cancelled" STATUS_EXPIRED = "expired" STATUS_PAID = "paid" STATUS_PAIDOUT = "paidout" attr_accessor :id, :status, :mode, :amount, :description, :method, :createdDatetime, :paidDatetime, :expiredDatetime, :cancelledDatetime, :metadata, :details, :links def open? @status == STATUS_OPEN 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 end end end end
Version data entries
5 entries across 5 versions & 1 rubygems