class Tikkie::Api::V1::Responses::Payment
Payment
that is associated with a payment request.
Public Instance Methods
amount()
click to toggle source
# File lib/tikkie/api/v1/responses/payment.rb, line 20 def amount decimal = BigDecimal(data[:amountInCents]) decimal /= 100.0 decimal end
counter_party_name()
click to toggle source
# File lib/tikkie/api/v1/responses/payment.rb, line 16 def counter_party_name data[:counterPartyName] end
created_at()
click to toggle source
# File lib/tikkie/api/v1/responses/payment.rb, line 34 def created_at Time.parse(data[:created]) if data[:created] end
currency()
click to toggle source
# File lib/tikkie/api/v1/responses/payment.rb, line 26 def currency data[:amountCurrency] end
description()
click to toggle source
# File lib/tikkie/api/v1/responses/payment.rb, line 30 def description data[:description] end
online_payment_status()
click to toggle source
See PaymentStatus
# File lib/tikkie/api/v1/responses/payment.rb, line 39 def online_payment_status data[:onlinePaymentStatus] end
paid?()
click to toggle source
# File lib/tikkie/api/v1/responses/payment.rb, line 43 def paid? online_payment_status == Tikkie::Api::V1::Types::PaymentStatus::PAID end
payment_token()
click to toggle source
# File lib/tikkie/api/v1/responses/payment.rb, line 12 def payment_token data[:paymentToken] end