Billing Central Apex API Developer Reference

ffbc.AccountsService

global with sharing class AccountsService

This class adds service functionality to the standard Salesforce Account object.

Methods

getAddressSummaries

global static List<ffbc.AccountsService.AddressSummary> getAddressSummaries(Set<Id> accountIds)

Retrieves accounts using the IDs provided. Returns wrappers for the formatted address information on the accounts. If the account has a billing account, the billing address returned is taken from the billing account.

Input Parameters

Name Type Description
accountIds Set<Id> The IDs of the accounts to retrieve.

Return Value

A list of wrappers for the address information on the accounts.

getBillingContactsForEmail

global static List<ffbc.AccountsService.ContactEmailInfo> getBillingContactsForEmail(Set<Id> accountIds)

Retrieves billing contacts that are valid email recipients using the account IDs provided. Returns wrappers for the recipient email information. The contacts are ordered by first and last name.

Input Parameters

Name Type Description
accountIds Set<Id> The IDs of the accounts for which billing contacts are to be retrieved.

Return Value

A list of wrappers for the contact email information.

ffbc.AccountsService.AddressSummary

global with sharing class AddressSummary

This class wraps the address information of an account.

Properties

Name Type Description
AccountId Id Read only. The ID of the Account.
BillingName String Read only. The name of the account to be billed. If the account has a billing account, the name of the account is taken from the billing account.
ShippingName String Read only. The name of the shipping account.
BillingAddress ffbc.AccountsService.Address Read only. The billing address of the account. If the account has a billing account, the billing address is taken from the billing account. The billing address is null if the account does not have a billing address.
ShippingAddress ffbc.AccountsService.Address Read only. The Shipping Address of the Account. This address will be null if the account does not have a shipping address.

ffbc.AccountsService.Address

global with sharing class Address

This class wraps an address.

Properties

Name Type Description
Street String Read only. The street of the address.
City String Read only. The city of the address.
State String Read only. The state of the address.
Country String Read only. The country of the address.
PostalCode String Read only. The postal code of the address.

ffbc.AccountsService.ContactEmailInfo

global with sharing class ContactEmailInfo

This class wraps the email information of a contact.

Properties

Name Type Description
ContactId Id Read only. The ID of the Contact.
Name String Read only. The name of the Contact.
Email String Read only. The email address of the Contact.
© Copyright 2009–2019 FinancialForce.com, inc. All rights reserved. Various trademarks held by their respective owners.