Class: Mundipagg::Refund

Inherits:
ActiveMerchant::Billing::Model
  • Object
show all
Defined in:
lib/mundipagg/refund.rb

Defined Under Namespace

Classes: Response

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#order_keyObject

Returns the value of attribute order_key.



3
4
5
# File 'lib/mundipagg/refund.rb', line 3

def order_key
  @order_key
end

#transaction_keyObject

Returns the value of attribute transaction_key.



3
4
5
# File 'lib/mundipagg/refund.rb', line 3

def transaction_key
  @transaction_key
end

Instance Method Details

#payload(amount) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/mundipagg/refund.rb', line 5

def payload(amount)
  {
    manage_credit_card_transaction_collection: {
      manage_credit_card_transaction_request: {
        amount_in_cents: amount,
        transaction_key: transaction_key
      }
    },
    manage_order_operation_enum: "Void",
    order_key: order_key
  }
end