Method: ProcessOut::SubmerchantAddress#to_json

Defined in:
lib/processout/submerchant_address.rb

#to_json(options) ⇒ Object

Overrides the JSON marshaller to only send the fields we want



72
73
74
75
76
77
78
79
80
81
82
# File 'lib/processout/submerchant_address.rb', line 72

def to_json(options)
  {
      "line1": self.line1,
      "line2": self.line2,
      "city": self.city,
      "state": self.state,
      "country_code": self.country_code,
      "zip": self.zip,
      "county": self.county,
  }.to_json
end