class CoinsPaid::API::CallbackData
Constants
- CANCELLED
- NOT_CONFIRMED
Public Class Methods
from_json(attributes)
click to toggle source
# File lib/coins_paid/api/callback_data.rb, line 34 def self.from_json(attributes) attributes[:foreign_id] ||= attributes.dig(:crypto_address, :foreign_id) || '' new(attributes) end
Public Instance Methods
cancelled?()
click to toggle source
# File lib/coins_paid/api/callback_data.rb, line 43 def cancelled? status == CANCELLED end
pending?()
click to toggle source
# File lib/coins_paid/api/callback_data.rb, line 39 def pending? status == NOT_CONFIRMED end