Performs authentication with the processing server. must begin with login.
Performs authentication with the processing server. Any interaction must begin with login.
static
Session
login
(
int $merchantAccountCode,
String $password,
HashMap $config)
-
int
$merchantAccountCode: merchantAccountCode merchant account code
-
String
$password: password password
-
HashMap
$config: config configuration map (see SessionConnection for key definitions)
Instantiates a new session.
Instantiates a new session.
Creates new active customer account
Creates new active customer account
Creates new active customer account with the values specified
Creates new active customer account with the values specified
CustomerAccount
createCustomerAccountExtended
(
String $code,
int $merchantAccountCode,
String $firstName,
String $lastName,
String $middleName,
String $title,
String $suffix,
String $customerAccountType,
String $homePhone,
String $workPhone,
String $cellPhone,
String $email,
String $street1,
String $street2,
String $city,
String $state,
String $zipCode,
String $beneficiaryInfo,
String $customerAccountGroupCode,
String $notes,
DateTime $birthDate)
-
String
$code: code the code
-
int
$merchantAccountCode: merchantAccountCode the merchant account code
-
String
$firstName: firstName the first name
-
String
$lastName: lastName the last name
-
String
$middleName: middleName the middle name
-
String
$title: title the title
-
String
$suffix: suffix the suffix
-
String
$customerAccountType: customerAccountType the customer account type
-
String
$homePhone: homePhone the home phone
-
String
$workPhone: workPhone the work phone
-
String
$cellPhone: cellPhone the cell phone
-
String
$email: email the email
-
String
$street1: street1 the street1
-
String
$street2: street2 the street2
-
String
$city: city the city
-
String
$state: state the state
-
String
$zipCode: zipCode the zip code
-
String
$beneficiaryInfo: beneficiaryInfo the buyer information, if different from CustomerAccount holder
-
String
$customerAccountGroupCode: customerAccountGroupCode the customer account group code
-
String
$notes: notes the notes
-
DateTime
$birthDate: birthDate the birth date
findAccountTransaction method.
findAccountTransaction method.
ArrayList
findAccountTransaction
(
int $merchantAccountCode,
String $code,
String $accountActivityType,
DateTime $fromCreateDate,
DateTime $toCreateDate,
String $customerAccountCode,
String $customerAccountName,
bool $isActiveCustomerAccount,
String $itemCode,
String $accountNumber,
int $fromAmount,
int $toAmount,
int $fromBalance,
int $toBalance)
-
int
$merchantAccountCode: merchantAccountCode the merchant account code
-
String
$code: code the code
-
String
$accountActivityType: accountActivityType the account activity type
-
DateTime
$fromCreateDate: fromCreateDate the from create date
-
DateTime
$toCreateDate: toCreateDate the to create date
-
String
$customerAccountCode: customerAccountCode the customer account code
-
String
$customerAccountName: customerAccountName the customer account name
-
bool
$isActiveCustomerAccount: isActiveCustomerAccount the is active customer account
-
String
$itemCode: itemCode the item code
-
String
$accountNumber: accountNumber the account number
-
int
$fromAmount: fromAmount the from amount
-
int
$toAmount: toAmount the to amount
-
int
$fromBalance: fromBalance the from balance
-
int
$toBalance: toBalance the to balance
Executes a search against CustomerAccount records using specified criteria.
Executes a search against CustomerAccount records using specified criteria.
ArrayList
findCustomerAccount
(
int $merchantAccountCode,
String $code,
String $firstName,
String $lastName,
String $middleName,
String $title,
String $suffix,
bool $isActive,
DateTime $fromCreateDate,
DateTime $toCreateDate,
String $phone,
String $email,
String $zipCode,
String $creditCardNumber,
String $bankAccountNumber,
int $fromBalance,
int $toBalance,
String $customerAccountGroupCode)
-
int
$merchantAccountCode: merchantAccountCode the merchant account code
-
String
$code: code the code - exact search
-
String
$firstName: firstName the first name - partial search is possible
-
String
$lastName: lastName the last name - partial search is possible
-
String
$middleName: middleName the middle name - exact search
-
String
$title: title the title - exact search
-
String
$suffix: suffix the suffix - exact search
-
bool
$isActive: isActive the is active - exact search
-
DateTime
$fromCreateDate: fromCreateDate the from create date - greater or equal
-
DateTime
$toCreateDate: toCreateDate the to create date - less
-
String
$phone: phone the phone - partial search is possible
-
String
$email: email the email - partial search is possible
-
String
$zipCode: zipCode the zip code - exact search
-
String
$creditCardNumber: creditCardNumber the credit card number - last 4 digits
-
String
$bankAccountNumber: bankAccountNumber the bank account number - last 4 digits
-
int
$fromBalance: fromBalance the from balance - greater or equal
-
int
$toBalance: toBalance the to balance - less than
-
String
$customerAccountGroupCode: customerAccountGroupCode the customer account group code - exact search
Executes a search against PaymentOption records using specified criteria.
Executes a search against PaymentOption records using specified criteria.
ArrayList
findPaymentOption
(
int $merchantAccountCode,
String $code,
bool $isActive,
DateTime $fromCreateDate,
DateTime $toCreateDate,
String $holderName,
String $number,
String $accessory,
String $street1,
String $street2,
String $city,
String $state,
String $zipCode,
String $paymentOptionType,
String $customerAccountCode)
-
int
$merchantAccountCode: merchantAccountCode the merchant account code - exact search
-
String
$code: code the code - exact search
-
bool
$isActive: isActive the is active - exact search
-
DateTime
$fromCreateDate: fromCreateDate the from create date - greater or equal
-
DateTime
$toCreateDate: toCreateDate the to create date - less
-
String
$holderName: holderName the holder name - partial search is possible
-
String
$number: number the number - last 4 digits
-
String
$accessory: accessory the accessory - exact search
-
String
$street1: city the city - exact search
-
String
$street2: state the state - exact search
-
String
$city: zipCode the zip code - exact search
-
String
$state: paymentOptionType the payment option type - exact search
-
String
$zipCode: customerAccountCode the customer account code - exact search
-
String
$paymentOptionType: street1 the street1 - exact search
-
String
$customerAccountCode: street2 the street2 - exact search
findPaymentPlan method.
findPaymentPlan method.
ArrayList
findPaymentPlan
(
int $merchantAccountCode,
String $code,
DateTime $fromCreateDate,
DateTime $toCreateDate,
DateTime $fromNextBillingDate,
DateTime $toNextBillingDate,
DateTime $fromFirstBillingDate,
DateTime $toFirstBillingDate,
String $status,
int $fromAmount,
int $toAmount,
String $itemCode,
String $sellerCode,
String $billingCycleCode,
String $groupCode1,
String $groupCode2,
String $groupCode3,
String $groupCode4,
String $groupCode5,
String $groupCode6,
String $groupCode7,
String $groupCode8,
String $customerAccountCode)
-
int
$merchantAccountCode: merchantAccountCode the merchant account code
-
String
$code: code the code
-
DateTime
$fromCreateDate: fromCreateDate the from create date
-
DateTime
$toCreateDate: toCreateDate the to create date
-
DateTime
$fromNextBillingDate: fromNextBillingDate the from next billing date
-
DateTime
$toNextBillingDate: toNextBillingDate the to next billing date
-
DateTime
$fromFirstBillingDate: fromFirstBillingDate the from first billing date
-
DateTime
$toFirstBillingDate: toFirstBillingDate the to first billing date
-
String
$status: status the status
-
int
$fromAmount: fromAmount the from amount
-
int
$toAmount: toAmount the to amount
-
String
$itemCode: itemCode the item code
-
String
$sellerCode: sellerCode the seller code
-
String
$billingCycleCode: billingCycleCode the billing cycle code
-
String
$groupCode1: groupCode1 the group code1
-
String
$groupCode2: groupCode2 the group code2
-
String
$groupCode3: groupCode3 the group code3
-
String
$groupCode4: groupCode4 the group code4
-
String
$groupCode5: groupCode5 the group code5
-
String
$groupCode6: groupCode6 the group code6
-
String
$groupCode7: groupCode7 the group code7
-
String
$groupCode8: groupCode8 the group code8
-
String
$customerAccountCode: customerAccountCode the customer account code
Gets the customer account.
Gets the customer account.
Completes communication session with server by sending logout command.
Completes communication session with server by sending logout command. The session can no longer be used and should be discarded.
void
logout
()
findAccountTransaction method.
findAccountTransaction method.
-
HashMap
$parameters: parameters the parameters
Executes a search against CustomerAccount records using specified criteria.
Executes a search against CustomerAccount records using specified criteria. See parameter names of findCustomerAccount for possible search criterias
-
HashMap
$parameters: parameters parameters for search
Executes a search against PaymentOption records using specified criteria.
Executes a search against PaymentOption records using specified criteria. See parameter names of findPaymentOption for possible search criterias
-
HashMap
$parameters: parameters parameters for search
findPaymentPlan method.
findPaymentPlan method.
-
HashMap
$parameters: parameters the parameters
Saves all changes made to the object and its subobjects
Saves all changes made to the object and its subobjects
-
ClientObject
$clientObject: clientObject the object to be saved
Saves list of CustomerAccount using the mechanism of save method
Saves list of CustomerAccount using the mechanism of save method
-
ArrayList
$customerAccounts: customerAccounts CustomerAccounts to be saved