Billcom v0.1.1 Billcom.CustomerContact View Source

Link to this section Summary

Link to this section Functions

Link to this function

create(connection, data)

View Source

Specs

create(map(), map()) :: {atom(), map()}

Billcom.CustomerContact.create/2 for bill.com api

Parameters:

  • conn: a connection strucure (see Billcom.login!/0)
  • data: data object to send for the object

return:

success:

{:ok, data}

Returned data from create for CustomerContact

failure:

{:error, val}

Where val hold information about failure reason.

Link to this function

delete(connection, data)

View Source

Specs

delete(map(), map()) :: {atom(), map()}

Billcom.CustomerContact.delete/2 for bill.com api

Parameters:

  • conn: a connection strucure (see Billcom.login!/0)
  • data: data object to send for the object

return:

success:

{:ok, data}

Returned data from delete for CustomerContact

failure:

{:error, val}

Where val hold information about failure reason.

Specs

list(map(), map()) :: {atom(), map()}

Billcom.CustomerContact.list/2 for bill.com api

Parameters:

  • conn: a connection strucure (see Billcom.login!/0)
  • data: data object to send for the object

return:

success:

{:ok, data}

Where data is a collection of CustomerContact object list

failure:

{:error, val}

Where val hold information about failure reason.

Specs

read(map(), map()) :: {atom(), map()}

Billcom.CustomerContact.read/2 for bill.com api

Parameters:

  • conn: a connection strucure (see Billcom.login!/0)
  • data: data object to send for the object

return:

success:

{:ok, data}

Returned data from read for CustomerContact

failure:

{:error, val}

Where val hold information about failure reason.

Link to this function

undelete(connection, data)

View Source

Specs

undelete(map(), map()) :: {atom(), map()}

Billcom.CustomerContact.undelete/2 for bill.com api

Parameters:

  • conn: a connection strucure (see Billcom.login!/0)
  • data: data object to send for the object

return:

success:

{:ok, data}

Returned data from undelete for CustomerContact

failure:

{:error, val}

Where val hold information about failure reason.

Link to this function

update(connection, data)

View Source

Specs

update(map(), map()) :: {atom(), map()}

Billcom.CustomerContact.update/2 for bill.com api

Parameters:

  • conn: a connection strucure (see Billcom.login!/0)
  • data: data object to send for the object

return:

success:

{:ok, data}

Returned data from update for CustomerContact

failure:

{:error, val}

Where val hold information about failure reason.