class Instamojo::Refund

{

"refund_amount" => "100",
   "payment_id" => "MOJO5c04000J30502939",
         "body" => "Customer isn't satisfied with the quality",
       "status" => "Refunded",
   "created_at" => "2015-12-07T11:01:37.640Z",
           "id" => "C5c0751269",
 "total_amount" => "100.00",
         "type" => "QFL"

}

Attributes

body[RW]
created_at[RW]
id[RW]
original[R]
payment_id[RW]
refund_amount[RW]
status[RW]
total_amount[RW]
type[RW]

Public Class Methods

new(refund, client) click to toggle source
# File lib/client/refund.rb, line 24
def initialize(refund, client)
  assign_values(refund)
  @client = client
end

Public Instance Methods

to_s() click to toggle source
# File lib/client/refund.rb, line 29
def to_s
  sprintf("Instamojo Refund(id: %s, status: %s, payment_id: %s, refund_amount: %s)",
          id, status, payment_id, refund_amount)
end