Method: ProcessOut::CustomerAction#to_json

Defined in:
lib/processout/customer_action.rb

#to_json(options) ⇒ Object

Overrides the JSON marshaller to only send the fields we want



48
49
50
51
52
53
54
# File 'lib/processout/customer_action.rb', line 48

def to_json(options)
  {
      "type": self.type,
      "value": self.value,
      "metadata": self.,
  }.to_json
end