Profiles
- class terminusgps.authorizenet.profiles.base.AuthorizenetProfileBase(merchant_id: int | str, id: int | str | None = None, **kwargs)[source]
-
- execute_controller(controller: APIOperationBase) dict[source]
Executes an Authorize.NET controller and returns its response.
- Parameters:
controller – An Authorize.NET API controller.
- Raises:
ValueError – If the API call fails.
- Returns:
The Authorize.NET API response.
- Return type:
- class terminusgps.authorizenet.profiles.base.AuthorizenetSubProfileBase(customer_profile_id: int | str, default: bool, *args, **kwargs)[source]
- class terminusgps.authorizenet.profiles.addresses.AddressProfile(customer_profile_id: int | str, default: bool, *args, **kwargs)[source]
- create(**kwargs) int[source]
Creates an Authorize.NET address profile.
- Parameters:
shipping_addr (
customerAddressType) – An Authorize.NET customer address.- Raises:
ValueError – If no customer address was provided.
TypeError – If the customer address is not a
customerAddressTypeobject.
- Returns:
The new address profile’s id.
- Return type:
- class terminusgps.authorizenet.profiles.customers.CustomerProfile(merchant_id: int | str, id: int | str | None = None, **kwargs)[source]
- _authorizenet_create_customer_profile(email: str, desc: str = '') dict[str, str][source]
Executes a
createCustomerProfileRequestusing the Authorize.NET API.
- _authorizenet_delete_customer_profile() dict[source]
Executes a
deleteCustomerProfileRequestusing the Authorize.NET API.
- _authorizenet_get_customer_profile(issuer_info: bool = True) dict[source]
Executes a
getCustomerProfileRequestusing the Authorize.NET API.
- _authorizenet_update_customer_profile(email: str, desc: str = '') dict[source]
Executes an
updateCustomerProfileRequestusing the Authorize.NET API.
- get_payment_profiles() list[dict] | None[source]
Retrieves the customer profile’s payment profiles list.
- class terminusgps.authorizenet.profiles.payments.PaymentProfile(customer_profile_id: int | str, default: bool, *args, **kwargs)[source]