Instantiates a new customer account.
Instantiates a new customer account.
CustomerAccount
__construct
([String $code = null], [DateTime $createDate = null], [String $firstName = null], [String $lastName = null], [String $middleName = null], [String $title = null], [String $suffix = null], [String $type = null], [bool $isActive = null], [String $homePhone = null], [String $workPhone = null], [String $cellPhone = null], [String $email = null], [String $street1 = null], [String $street2 = null], [String $city = null], [String $state = null], [String $zipCode = null], [int $balance = null], [String $beneficiaryInfo = null], [int $merchantAccountCode = null], [String $customerAccountGroupCode = null], [bool $isVerified = null], [String $notes = null], [DateTime $lastUpdateDate = null], [DateTime $birthDate = null], [int $id = null])
-
String
$code: code the code
-
DateTime
$createDate: createDate the create date
-
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
$type: type the type
-
bool
$isActive: isActive the is active
-
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
-
int
$balance: balance the balance
-
String
$beneficiaryInfo: beneficiaryInfo the beneficiary info
-
int
$merchantAccountCode: merchantAccountCode the merchant account code
-
String
$customerAccountGroupCode: customerAccountGroupCode the customer account group code
-
bool
$isVerified: isVerified the is verified
-
String
$notes: notes the notes
-
DateTime
$lastUpdateDate: lastUpdateDate the last update date
-
DateTime
$birthDate: birthDate the birth date
-
int
$id: id the id
Adds the asset transaction.
Adds the asset transaction.
Adds the payment option.
Adds the payment option.
Adds the payment plan.
Adds the payment plan.
Adds the revenue transaction.
Adds the revenue transaction.
Clears all associated collections of objects: PaymentOptions, RevenueTransactions, CaptureInfo, AssetTransactions and PaymentPlans.
Clears all associated collections of objects: PaymentOptions, RevenueTransactions, CaptureInfo, AssetTransactions and PaymentPlans.
void
clear
()
createAllowance method.
createAllowance method.
AssetTransaction
createAllowance
(
String $code,
int $amount,
String $note,
String $creatorCode,
String $sellerCode,
String $shiftCode,
String $terminalCode)
-
String
$code: code TODO
-
int
$amount: amount the amount
-
String
$note: note the note
-
String
$creatorCode: creatorCode the creator code
-
String
$sellerCode: sellerCode the seller code
-
String
$shiftCode: shiftCode the shift code
-
String
$terminalCode: terminalCode the terminal code
createAllowanceRefund method.
createAllowanceRefund method.
AssetTransaction
createAllowanceRefund
(
String $code,
int $amount,
String $note,
String $creatorCode,
String $sellerCode,
String $shiftCode,
String $terminalCode,
String $accountNumber,
String $accessory)
-
String
$code: code TODO
-
int
$amount: amount the amount
-
String
$note: note the note
-
String
$creatorCode: creatorCode the creator code
-
String
$sellerCode: sellerCode the seller code
-
String
$shiftCode: shiftCode the shift code
-
String
$terminalCode: terminalCode the terminal code
-
String
$accountNumber: accountNumber the account number
-
String
$accessory: accessory the accessory
createAssetTransaction method.
createAssetTransaction method.
-
bool
$addToCustomerAccount: addToCustomerAccount the add to customer account
createAssetTransaction method.
createAssetTransaction method.
AssetTransaction
createAssetTransactionExtended
(
String $accountActivityType,
String $code,
int $amount,
String $accountNumber,
String $accessory)
-
String
$accountActivityType: accountActivityType the account activity type
-
String
$code: code the code
-
int
$amount: amount the amount
-
String
$accountNumber: accountNumber the account number
-
String
$accessory: accessory the accessory
createBankAccount method.
createBankAccount method.
PaymentOption
createBankAccount
(
String $code,
String $holderName,
String $bankNumber,
String $routingNumber,
bool $isSaving)
-
String
$code: code the code
-
String
$holderName: holderName the holder name
-
String
$bankNumber: bankNumber the bank number
-
String
$routingNumber: routingNumber the routing number
-
bool
$isSaving: isSaving the is saving
createBankAccount method.
createBankAccount method.
PaymentOption
createBankAccountExtended
(
String $code,
String $holderName,
String $bankNumber,
String $routingNumber,
String $street1,
String $street2,
String $city,
String $state,
String $zipCode,
bool $isSaving)
-
String
$code: code the code
-
String
$holderName: holderName the holder name
-
String
$bankNumber: bankNumber the bank number
-
String
$routingNumber: routingNumber the routing number
-
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
-
bool
$isSaving: isSaving the is saving
createCashPayment method.
createCashPayment method.
AssetTransaction
createCashPayment
(
int $amount,
String $note,
String $creatorCode,
String $sellerCode,
String $shiftCode,
String $terminalCode,
String $code)
-
int
$amount: amount the amount
-
String
$note: note the note
-
String
$creatorCode: creatorCode the creator code
-
String
$sellerCode: sellerCode the seller code
-
String
$shiftCode: shiftCode the shift code
-
String
$terminalCode: terminalCode the terminal code
-
String
$code: code the code
createCashRefund method.
createCashRefund method.
AssetTransaction
createCashRefund
(
int $amount,
String $note,
String $creatorCode,
String $sellerCode,
String $shiftCode,
String $terminalCode,
String $accountNumber,
String $accessory,
String $code)
-
int
$amount: amount the amount
-
String
$note: note the note
-
String
$creatorCode: creatorCode the creator code
-
String
$sellerCode: sellerCode the seller code
-
String
$shiftCode: shiftCode the shift code
-
String
$terminalCode: terminalCode the terminal code
-
String
$accountNumber: accountNumber the account number
-
String
$accessory: accessory the accessory
-
String
$code: code the code
createCheckPayment method.
createCheckPayment method.
AssetTransaction
createCheckPayment
(
int $amount,
String $note,
String $creatorCode,
String $sellerCode,
String $shiftCode,
String $terminalCode,
String $checkNumber,
String $code)
-
int
$amount: amount the amount
-
String
$note: note the note
-
String
$creatorCode: creatorCode the creator code
-
String
$sellerCode: sellerCode the seller code
-
String
$shiftCode: shiftCode the shift code
-
String
$terminalCode: terminalCode the terminal code
-
String
$checkNumber: checkNumber the check number
-
String
$code: code the code
createCredit method.
createCredit method.
createCreditCard method.
createCreditCard method.
PaymentOption
createCreditCard
(
String $code,
String $holderName,
String $creditCardNumber,
String $expirationDate,
String $type)
-
String
$code: code the code
-
String
$holderName: holderName the holder name
-
String
$creditCardNumber: creditCardNumber the credit card number
-
String
$expirationDate: expirationDate the expiration date
-
String
$type: type the type
createCreditCard method.
createCreditCard method.
PaymentOption
createCreditCardExtended
(
String $code,
String $holderName,
String $creditCardNumber,
String $expirationDate,
String $type,
String $street1,
String $street2,
String $city,
String $state,
String $zipCode)
-
String
$code: code the code
-
String
$holderName: holderName the holder name
-
String
$creditCardNumber: creditCardNumber the credit card number
-
String
$expirationDate: expirationDate the expiration date
-
String
$type: type the type
-
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
createCreditCardPayment method.
createCreditCardPayment method.
AssetTransaction
createCreditCardPayment
(
int $amount,
String $note,
String $creatorCode,
String $sellerCode,
String $shiftCode,
String $terminalCode,
String $creditCardNumber,
String $expirationDate,
String $transactionType,
String $holderName,
String $city,
String $state,
String $street1,
String $street2,
String $zipCode,
String $phone,
String $email,
String $cvv2,
String $code)
-
int
$amount: amount the amount
-
String
$note: note the note
-
String
$creatorCode: creatorCode the creator code
-
String
$sellerCode: sellerCode the seller code
-
String
$shiftCode: shiftCode the shift code
-
String
$terminalCode: terminalCode the terminal code
-
String
$creditCardNumber: creditCardNumber the credit card number
-
String
$expirationDate: expirationDate the expiration date
-
String
$transactionType: transactionType the transaction type
-
String
$holderName: holderName the holder name
-
String
$city: city the city
-
String
$state: state the state
-
String
$street1: street1 the street1
-
String
$street2: street2 the street2
-
String
$zipCode: zipCode the zip code
-
String
$phone: phone the phone
-
String
$email: email the email
-
String
$cvv2: cvv2 the cvv2
-
String
$code: code the code
createCredit�ardRefund method.
createCredit�ardRefund method.
AssetTransaction
createCreditCardRefund
(
int $amount,
String $note,
String $creatorCode,
String $sellerCode,
String $shiftCode,
String $terminalCode,
String $creditCardNumber,
String $expirationDate,
String $transactionType,
String $holderName,
String $city,
String $state,
String $street1,
String $street2,
String $zipCode,
String $phone,
String $email,
String $cvv2,
String $code)
-
int
$amount: amount the amount
-
String
$note: note the note
-
String
$creatorCode: creatorCode the creator code
-
String
$sellerCode: sellerCode the seller code
-
String
$shiftCode: shiftCode the shift code
-
String
$terminalCode: terminalCode the terminal code
-
String
$creditCardNumber: creditCardNumber the credit card number
-
String
$expirationDate: expirationDate the expiration date
-
String
$transactionType: transactionType the transaction type
-
String
$holderName: holderName the holder name
-
String
$city: city the city
-
String
$state: state the state
-
String
$street1: street1 the street1
-
String
$street2: street2 the street2
-
String
$zipCode: zipCode the zip code
-
String
$phone: phone the phone
-
String
$email: email the email
-
String
$cvv2: cvv2 the cvv2
-
String
$code: code the code
Creates the credit extended.
Creates the credit extended.
RevenueTransaction
createCreditExtended
(
int $amount,
String $note,
String $creatorCode,
String $sellerCode,
String $shiftCode,
String $terminalCode,
DateTime $dueDate,
int $taxAmount,
String $itemCode)
-
int
$amount: amount the amount
-
String
$note: note the note
-
String
$creatorCode: creatorCode the creator code
-
String
$sellerCode: sellerCode the seller code
-
String
$shiftCode: shiftCode the shift code
-
String
$terminalCode: terminalCode the terminal code
-
DateTime
$dueDate: dueDate the due date
-
int
$taxAmount: taxAmount the tax amount
-
String
$itemCode: itemCode the item code
createInvoice method.
createInvoice method.
RevenueTransaction
createInvoice
(
String $type,
int $amount,
String $note,
String $creatorCode,
String $sellerCode,
String $shiftCode,
String $terminalCode,
DateTime $dueDate,
int $taxAmount,
String $itemCode,
PaymentOption $paymentOption)
-
String
$type: type the type
-
int
$amount: amount the amount
-
String
$note: note the note
-
String
$creatorCode: creatorCode the creator code
-
String
$sellerCode: sellerCode the seller code
-
String
$shiftCode: shiftCode the shift code
-
String
$terminalCode: terminalCode the terminal code
-
DateTime
$dueDate: dueDate the due date
-
int
$taxAmount: taxAmount the tax amount
-
String
$itemCode: itemCode the item code
-
PaymentOption
$paymentOption: paymentOption the payment option
Creates PaymentOption.
Creates PaymentOption.
PaymentOption
createPaymentOption
([
bool $addToCustomerAccount =
true])
-
bool
$addToCustomerAccount: addToCustomerAccount if true, adds payment option to the CustomerAccount; if false,
createPaymentOption method.
createPaymentOption method.
PaymentOption
createPaymentOptionExtended
(
String $street1,
String $street2,
String $city,
String $state,
String $zipCode)
-
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
createPaymentPlan method.
createPaymentPlan method.
PaymentPlan
createPaymentPlan
([
bool $addToCustomerAccount =
true])
-
bool
$addToCustomerAccount: addToCustomerAccount the add to customer account
createPaymentPlan method.
createPaymentPlan method.
PaymentPlan
createPaymentPlanBasic
(
String $code,
int $amount,
String $billingCycleCode,
DateTime $firstBillingDate,
int $length,
String $type)
-
String
$code: code the code
-
int
$amount: amount the amount
-
String
$billingCycleCode: billingCycleCode the billing cycle code
-
DateTime
$firstBillingDate: firstBillingDate the first billing date
-
int
$length: length the length
-
String
$type: type the type
createPaymentPlan method.
createPaymentPlan method.
PaymentPlan
createPaymentPlanExtended
(
String $code,
String $sellerCode,
int $amount,
String $groupCode1,
String $groupCode2,
String $groupCode3,
String $groupCode4,
String $groupCode5,
String $groupCode6,
String $groupCode7,
String $groupCode8,
String $itemCode,
String $taxCode,
PaymentOption $paymentOption,
int $length,
String $billingCycleCode,
DateTime $firstBillingDate,
String $type)
-
String
$code: code the code
-
String
$sellerCode: sellerCode the seller code
-
int
$amount: amount the amount
-
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
$itemCode: itemCode the item code
-
String
$taxCode: taxCode the tax code
-
PaymentOption
$paymentOption: paymentOption the payment option
-
int
$length: length the length
-
String
$billingCycleCode: billingCycleCode the billing cycle code
-
DateTime
$firstBillingDate: firstBillingDate the first billing date
-
String
$type: type the type
Creates the refund.
Creates the refund.
createRevenueTransaction method.
createRevenueTransaction method.
-
bool
$addToCustomerAccount: addToCustomerAccount the add to customer account
createRevenueTransaction method.
createRevenueTransaction method.
RevenueTransaction
createRevenueTransactionExtended
(
String $accountActivityType,
String $code,
int $amount,
int $taxAmount,
bool $isComplimantary)
-
String
$accountActivityType: accountActivityType the account activity type
-
String
$code: code the code
-
int
$amount: amount the amount
-
int
$taxAmount: taxAmount the tax amount
-
bool
$isComplimantary: isComplimantary the is complimantary
Gets the asset transactions.
Gets the asset transactions.
Gets the balance.
Gets the balance.
int
getBalance
()
Gets the beneficiary info.
Gets the beneficiary info.
String
getBeneficiaryInfo
()
Gets the birth date.
Gets the birth date.
DateTime
getBirthDate
()
Gets the cell phone.
Gets the cell phone.
String
getCellPhone
()
Gets the city.
Gets the city.
String
getCity
()
Gets the customer account group code.
Gets the customer account group code.
String
getCustomerAccountGroupCode
()
Gets the email.
Gets the email.
String
getEmail
()
Gets the first name.
Gets the first name.
String
getFirstName
()
Gets the home phone.
Gets the home phone.
String
getHomePhone
()
Gets the is active.
Gets the is active.
bool
getIsActive
()
Gets the is verified.
Gets the is verified.
bool
getIsVerified
()
Gets the last name.
Gets the last name.
String
getLastName
()
Gets the last update date.
Gets the last update date.
DateTime
getLastUpdateDate
()
Gets the middle name.
Gets the middle name.
String
getMiddleName
()
Gets the name.
Gets the name.
String
getName
()
Gets the notes.
Gets the notes.
String
getNotes
()
Gets the payment options.
Gets the payment options.
Gets the payment plans.
Gets the payment plans.
Gets the revenue transactions.
Gets the revenue transactions.
Gets the state.
Gets the state.
String
getState
()
Gets the street1.
Gets the street1.
String
getStreet1
()
Gets the street2.
Gets the street2.
String
getStreet2
()
Gets the suffix.
Gets the suffix.
String
getSuffix
()
Gets the title.
Gets the title.
String
getTitle
()
Gets the type.
Gets the type.
String
getType
()
Gets the work phone.
Gets the work phone.
String
getWorkPhone
()
Gets the zip code.
Gets the zip code.
String
getZipCode
()
Removes the asset transaction.
Removes the asset transaction.
Removes the payment option.
Removes the payment option.
Removes the payment plan.
Removes the payment plan.
Removes the revenue transaction.
Removes the revenue transaction.
voidInvoice method.
voidInvoice method.
voidInvoice method.
voidInvoice method.
-
RevenueTransaction
$revenueTransaction: revenueTransaction the revenue transaction
-
String
$code: code the code
-
String
$note: note the note
voidPayment method.
voidPayment method.
Reverse payment extended.
Reverse payment extended.
-
AssetTransaction
$assetTransaction: assetTransaction the asset transaction
-
String
$code: code the code
-
String
$note: note the note
Set a value to balance.
Set a value to balance.
void
setBalance
(int $balance)
-
int
$balance: balance the balance
Set a value to beneficiaryInfo.
Set a value to beneficiaryInfo.
void
setBeneficiaryInfo
(String $beneficiaryInfo)
-
String
$beneficiaryInfo: beneficiaryInfo the beneficiary info
Set a value to birthDate.
Set a value to birthDate.
void
setBirthDate
(DateTime $birthDate)
-
DateTime
$birthDate: birthDate The birthDate to set.
Set a value to cellPhone.
Set a value to cellPhone.
void
setCellPhone
(String $cellPhone)
-
String
$cellPhone: cellPhone the cell phone
Set a value to city.
Set a value to city.
void
setCity
(String $city)
-
String
$city: city the city
Set a value to merchantAccountCode.
Set a value to merchantAccountCode.
void
setCustomerAccountGroupCode
(String $customerAccountGroupCode)
-
String
$customerAccountGroupCode: customerAccountGroupCode The customerAccountGroupCode to set.
Set a value to email.
Set a value to email.
void
setEmail
(String $email)
-
String
$email: email the email
Sets the first name.
Sets the first name.
void
setFirstName
(String $firstName)
-
String
$firstName: firstName the new first name
Set a value to homePhone.
Set a value to homePhone.
void
setHomePhone
(String $homePhone)
-
String
$homePhone: homePhone the home phone
Set a value to isActive.
Set a value to isActive.
void
setIsActive
(bool $isActive)
-
bool
$isActive: isActive the is active
Sets the last name.
Sets the last name.
void
setLastName
(String $lastName)
-
String
$lastName: lastName the new last name
Sets the middle name.
Sets the middle name.
void
setMiddleName
(String $middleName)
-
String
$middleName: middleName the new middle name
Set a value to notes.
Set a value to notes.
void
setNotes
(String $notes)
-
String
$notes: notes The notes to set.
Set a value to state.
Set a value to state.
void
setState
(String $state)
-
String
$state: state the state
Set a value to street1.
Set a value to street1.
void
setStreet1
(String $street1)
-
String
$street1: street1 the street1
Sets the street2.
Sets the street2.
void
setStreet2
(String $street2)
-
String
$street2: street2 the new street2
Sets the suffix.
Sets the suffix.
void
setSuffix
(String $suffix)
-
String
$suffix: suffix the new suffix
Sets the title.
Sets the title.
void
setTitle
(String $title)
-
String
$title: title the new title
Set a value to type.
Set a value to type.
void
setType
(String $type)
-
String
$type: type the type
Set a value to workPhone.
Set a value to workPhone.
void
setWorkPhone
(String $workPhone)
-
String
$workPhone: workPhone the work phone
Set a value to zipCode.
Set a value to zipCode.
void
setZipCode
(String $zipCode)
-
String
$zipCode: zipCode the zip code
void
type
()
Redefinition of:
- ClientObject::type()
- Returns the type of the object instance using library's terminology In most cases it will match ClassName, but when a single class may represent multiple conceptual objects, the value will differ.
Validate first billing date.
Validate first billing date.
void
validateFirstBillingDate
(DateTime $firstBillingDate, String $billingCycleCode, String $code)
-
DateTime
$firstBillingDate: firstBillingDate the first billing date
-
String
$billingCycleCode: billingCycleCode the billing cycle code
-
String
$code: code the code
Inherited Methods
Inherited From ClientObject
ClientObject::getCode()
ClientObject::getCreateDate()
ClientObject::getId()
ClientObject::getMerchantAccountCode()
ClientObject::hashCode()
ClientObject::setCode()
ClientObject::setId()
ClientObject::setMerchantAccountCode()
ClientObject::type()