AuthorizeNet.Customer

Handles customer profiles (http://developer.authorize.net/api/reference/index.html#manage-customer-profiles).

Copyright 2015 Marcelo Gornstein marcelog@gmail.com

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Source

Summary

create(id, description, email)

Creates a customer profile. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-create-customer-profile

create_shipping_address(customer_id, address)

Creates a shipping address for the customer. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-create-customer-shipping-address

delete(customer_id)

Deletes a customer profile by customer profile ID. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-delete-customer-profile

delete_shipping_address(customer_id, address_id)

Deletes a shipping address. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-delete-customer-shipping-address

from_xml(doc)

Builds an Customer from an xmlElement record

get(profile_id)

Returns a customer profile by customer profile ID. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-get-customer-profile

get_all()

Returns all customer profile IDs known by Authorize.Net. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-get-customer-profile-ids

get_shipping_address(customer_id, address_id)

Returns a shipping address. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-get-customer-shipping-address

update(profile_id, id, description, email)

Updates a customer profile given a valid customer profile ID. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-update-customer-profile

update_shipping_address(address)

Updates a shipping address. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-update-customer-shipping-address

xmlElement(args \\ [])
xmlElement(record, args)
xmlText(args \\ [])
xmlText(record, args)

Types

t :: %AuthorizeNet.Customer{description: term, email: term, id: term, payment_profiles: term, profile_id: term, shipping_addresses: term}

Functions

create(id, description, email)

Specs:

Creates a customer profile. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-create-customer-profile

Source
create_shipping_address(customer_id, address)

Specs:

Creates a shipping address for the customer. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-create-customer-shipping-address

Source
delete(customer_id)

Specs:

  • delete(Integer) :: :ok | no_return

Deletes a customer profile by customer profile ID. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-delete-customer-profile

Source
delete_shipping_address(customer_id, address_id)

Specs:

  • delete_shipping_address(Integer, Integer) :: :ok | no_return

Deletes a shipping address. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-delete-customer-shipping-address

Source
from_xml(doc)

Specs:

Builds an Customer from an xmlElement record.

Source
get(profile_id)

Specs:

Returns a customer profile by customer profile ID. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-get-customer-profile

Source
get_all()

Specs:

  • get_all :: [Integer] | no_return

Returns all customer profile IDs known by Authorize.Net. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-get-customer-profile-ids

Source
get_shipping_address(customer_id, address_id)

Specs:

Returns a shipping address. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-get-customer-shipping-address

Source
update(profile_id, id, description, email)

Specs:

Updates a customer profile given a valid customer profile ID. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-update-customer-profile

Source
update_shipping_address(address)

Specs:

Updates a shipping address. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-update-customer-shipping-address

Source

Macros

xmlElement(args \\ [])
Source
xmlElement(record, args)
Source
xmlText(args \\ [])
Source
xmlText(record, args)
Source