Method: GetnetApi::Customer.create

Defined in:
lib/getnet_api/customer.rb

.create(customer) ⇒ Object

a = GetnetApi::Customer.create cliente



119
120
121
122
123
124
125
126
# File 'lib/getnet_api/customer.rb', line 119

def self.create customer

  hash = customer.to_request(:customer)

  response = self.build_request self.endpoint, "post", hash

  return JSON.parse(response.read_body)
end