Class: Payment::PaypalStatusResult

Inherits:
Data
  • Object
show all
Defined in:
app/models/payment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status:, message: nil) ⇒ PaypalStatusResult

Returns a new instance of PaypalStatusResult.



554
# File 'app/models/payment.rb', line 554

def initialize(status:, message: nil) = super

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



553
554
555
# File 'app/models/payment.rb', line 553

def message
  @message
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



553
554
555
# File 'app/models/payment.rb', line 553

def status
  @status
end

Instance Method Details

#ok?Boolean

Returns:

  • (Boolean)


555
# File 'app/models/payment.rb', line 555

def ok? = status.in?(%i[authorized reauthorized captured still_valid])