AccountsHelperSearchSubAccounts Method |
Saarches in sub accounts (only one level).
Namespace:
Atomia.Billing.Core.Sdk.BusinessLogic
Assembly:
Atomia.Billing.Core.Sdk (in Atomia.Billing.Core.Sdk.dll) Version: 18.10.7096.28998
Syntax public static Account[] SearchSubAccounts(
out int total,
int pageIndex,
int pageSize,
string searchPattern,
string[] allowedTypes,
string[] allowedStatuses,
string[] sortColumns,
string sortingDirection,
Guid accountId,
bool includeAccount
)
Public Shared Function SearchSubAccounts (
<OutAttribute> ByRef total As Integer,
pageIndex As Integer,
pageSize As Integer,
searchPattern As String,
allowedTypes As String(),
allowedStatuses As String(),
sortColumns As String(),
sortingDirection As String,
accountId As Guid,
includeAccount As Boolean
) As Account()
public:
static array<Account^>^ SearchSubAccounts(
[OutAttribute] int% total,
int pageIndex,
int pageSize,
String^ searchPattern,
array<String^>^ allowedTypes,
array<String^>^ allowedStatuses,
array<String^>^ sortColumns,
String^ sortingDirection,
Guid accountId,
bool includeAccount
)
static member SearchSubAccounts :
total : int byref *
pageIndex : int *
pageSize : int *
searchPattern : string *
allowedTypes : string[] *
allowedStatuses : string[] *
sortColumns : string[] *
sortingDirection : string *
accountId : Guid *
includeAccount : bool -> Account[]
Parameters
- total
- Type: SystemInt32
The total. - pageIndex
- Type: SystemInt32
Index of the page. - pageSize
- Type: SystemInt32
Size of the page. - searchPattern
- Type: SystemString
The search pattern. Method does searching in: Name, FirstName, LastName, CompanyName - allowedTypes
- Type: SystemString
The allowed types. Can be Reseller, Customer - allowedStatuses
- Type: SystemString
The allowed statuses. - sortColumns
- Type: SystemString
The sort column. Can be: Id and CompanyName - sortingDirection
- Type: SystemString
The sorting direction, can be asc or desc - accountId
- Type: SystemGuid
The account id for which we want subaccounts. - includeAccount
- Type: SystemBoolean
if set to true [include account].
Return Value
Type:
AccountFiltered accounts.
See Also