AuthorizeNet.PaymentProfile
Handles customer payment profiles (http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-create-customer-payment-profile).
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.
Summary↑
Types ↑
t :: %AuthorizeNet.PaymentProfile{address: term, customer_id: term, payment_type: term, profile_id: term, type: term}
profile_type :: :individual | :business
Functions
Specs:
- create_business(Integer, AuthorizeNet.Address.t, AuthorizeNet.PaymentProfile.payment_type) :: AuthorizeNet.PaymentProfile.t | no_return
Creates a payment profile for a “business”. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-create-customer-payment-profile
Specs:
- create_individual(Integer, AuthorizeNet.Address.t, AuthorizeNet.PaymentProfile.payment_type) :: AuthorizeNet.PaymentProfile.t | no_return
Creates a payment profile for an “invidual”. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-create-customer-payment-profile
Specs:
- delete(Integer, Integer) :: :ok | no_return
Deletes a Payment Profile. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-delete-customer-payment-profile
Specs:
- from_xml(Record, Integer) :: AuthorizeNet.PaymentProfile.t
Builds an PaymentProfile from an xmlElement record.
Specs:
- get(Integer, Integer) :: AuthorizeNet.PaymentProfile.t | no_return
Returns a Payment Profile. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-get-customer-payment-profile
Specs:
- valid?(Integer, Integer, String.t | nil) :: true | {false, term}
Validates a payment profile by generating a test transaction. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-validate-customer-payment-profile