Skip to content
Tiago Guedes edited this page Mar 20, 2018 · 4 revisions

Customers

Create

%Iugu.Customer{name: "Foobar", email: "[email protected]"} |> Iugu.Customer.create()
#=> {:ok, %Iugu.Customer{cc_emails: nil, city: "Campo Mourão", complement: "Cobertura", ...}}

Show

Iugu.Customer.show("6DB324B6859D4D46A3B8689AC745A943")
#=> {:ok, %Iugu.Customer{cc_emails: nil, city: "Campo Mourão", complement: "Cobertura", ...}}

List

Iugu.Customer.list()
#=> {:ok, [%Iugu.Customer{cc_emails: nil, city: "Campo Mourão", complement: "Cobertura", ...}], 128}
Clone this wiki locally