class VendorCreate extends AbstractVendor

Create a new vendor record

Traits

Constants

RESTRICTION_TYPE_UNRESTRICTED

RESTRICTION_TYPE_TOPLEVEL

RESTRICTION_TYPE_RESTRICTED

Methods

getControlId()

Get control ID

setControlId($controlId = null)

Set control ID

__construct(string $controlId = null)

Initializes the class with the given parameters.

writeXml(XMLWriter $xml)

Write the function block XML

array
getCustomFields()

Get custom fields

setCustomFields(array $customFields)

Set custom fields

string
getVendorId()

Get vendor ID

setVendorId(string $vendorId)

Set vendor ID

string
getVendorName()

Get vendor name

setVendorName(string $vendorName)

Set vendor name

boolean
isOneTime()

Get one time

setOneTime(boolean $oneTime)

Set one time

boolean
isActive()

Get active

setActive(boolean $active)

Set active

string
getLastName()

Get last name

setLastName(string $lastName)

Set last name

string
getFirstName()

Get first name

setFirstName(string $firstName)

Set first name

string
getMiddleName()

Get middle name

setMiddleName(string $middleName)

Set middle name

string
getPrefix()

Get prefix

setPrefix(string $prefix)

Set prefix

string
getCompanyName()

Get company name

setCompanyName(string $companyName)

Set company name

string
getPrintAs()

Get print as

setPrintAs(string $printAs)

Set print as

string
getPrimaryPhoneNo()

Get primary phone number

setPrimaryPhoneNo(string $primaryPhoneNo)

Set primary phone number

string
getSecondaryPhoneNo()

Get secondary phone number

setSecondaryPhoneNo(string $secondaryPhoneNo)

Set secondary phone number

string
getCellularPhoneNo()

Get cellular phone number

setCellularPhoneNo(string $cellularPhoneNo)

Set cellular phone number

string
getPagerNo()

Get pager number

setPagerNo(string $pagerNo)

Set pager number

string
getFaxNo()

Get fax number

setFaxNo(string $faxNo)

Set fax number

string
getPrimaryEmailAddress()

Get primary email address

setPrimaryEmailAddress(string $primaryEmailAddress)

Set primary email address

string
getSecondaryEmailAddress()

Get secondary email address

setSecondaryEmailAddress(string $secondaryEmailAddress)

Set secondary email address

string
getPrimaryUrl()

Get primary URL

setPrimaryUrl(string $primaryUrl)

Set primary URL

string
getSecondaryUrl()

Get secondary URL

setSecondaryUrl(string $secondaryUrl)

Set secondary URL

string
getAddressLine1()

Get address line 1

setAddressLine1(string $addressLine1)

Set address line 1

string
getAddressLine2()

Get address line 2

setAddressLine2(string $addressLine2)

Set address line 2

string
getCity()

Get city

setCity(string $city)

Set city

string
getStateProvince()

Get state/province

setStateProvince(string $stateProvince)

Set state/province

string
getZipPostalCode()

Get zip/postal code

setZipPostalCode(string $zipPostalCode)

Set zip/postal code

string
getCountry()

Get country

setCountry(string $country)

Set country

boolean
isExcludedFromContactList()

Get excluded from contact list

setExcludedFromContactList(boolean $excludedFromContactList)

Set excluded from contact list

string
getVendorTypeId()

Get vendor type ID

setVendorTypeId(string $vendorTypeId)

Set vendor type ID

string
getParentVendorId()

Get parent vendor ID

setParentVendorId(string $parentVendorId)

Set parent vendor ID

string
getGlGroupName()

Get GL group name

setGlGroupName(string $glGroupName)

Set GL group name

string
getTaxId()

Get tax ID

setTaxId(string $taxId)

Set tax ID

string
getForm1099Name()

Get form 1099 name

setForm1099Name(string $form1099Name)

Set form 1099 name

string
getForm1099Type()

Get form 1099 type

setForm1099Type(string $form1099Type)

Set form 1099 type

int|string
getForm1099Box()

Get form 1099 box

setForm1099Box(int|string $form1099Box)

Set form 1099 box

string
getAttachmentsId()

Get attachments ID

setAttachmentsId(string $attachmentsId)

Set attachments ID

string
getDefaultExpenseGlAccountNo()

Get default expense GL account number

setDefaultExpenseGlAccountNo(string $defaultExpenseGlAccountNo)

Set default expense GL account number

boolean
isTaxable()

Get taxable

setTaxable(boolean $taxable)

Set taxable

string
getContactTaxGroupName()

Get contact tax group name

setContactTaxGroupName(string $contactTaxGroupName)

Set contact tax group name

float|int|string
getCreditLimit()

Get credit limit

setCreditLimit(float|int|string $creditLimit)

Set credit limit

boolean
isOnHold()

Get on hold

setOnHold(boolean $onHold)

Set on hold

boolean
isDoNotPay()

Get do not pay

setDoNotPay(boolean $doNotPay)

Set do not pay

string
getComments()

Get comments

setComments(string $comments)

Set comments

string
getDefaultCurrency()

Get default currency

setDefaultCurrency(string $defaultCurrency)

Set default currency

string
getPrimaryContactName()

Get primary contact name

setPrimaryContactName(string $primaryContactName)

Set primary contact name

string
getPayToContactName()

Get pay to contact name

setPayToContactName(string $payToContactName)

Set pay to contact name

string
getReturnToContactName()

Get return to contact name

setReturnToContactName(string $returnToContactName)

Set return to contact name

string
getPreferredPaymentMethod()

Get preferred payment method

setPreferredPaymentMethod(string $preferredPaymentMethod)

Set preferred payment method

boolean
isSendAutomaticPaymentNotification()

Get send automatic payment notification

setSendAutomaticPaymentNotification(boolean $sendAutomaticPaymentNotification)

Set send automatic payment notification

boolean
isMergePaymentRequests()

Get merge payment requests

setMergePaymentRequests(boolean $mergePaymentRequests)

Set merge payment requests

string
getVendorBillingType()

Get vendor billing type

setVendorBillingType(string $vendorBillingType)

Set vendor billing type

string
getPaymentPriority()

Get payment priority

setPaymentPriority(string $paymentPriority)

Set payment priority

string
getPaymentTerm()

Get payment term

setPaymentTerm(string $paymentTerm)

Set payment term

boolean
isTermDiscountDisplayedOnCheckStub()

Get term discount displayed on check stub

setTermDiscountDisplayedOnCheckStub(boolean $termDiscountDisplayedOnCheckStub)

Set term discount displayed on check stub

boolean
isAchEnabled()

Get ACH enabled

setAchEnabled(boolean $achEnabled)

Set ACH enabled

string
getAchBankRoutingNo()

Get ACH bank routing number

setAchBankRoutingNo(string $achBankRoutingNo)

Set ACH bank routing number

string
getAchBankAccountNo()

Get ACH bank account number

setAchBankAccountNo(string $achBankAccountNo)

Set ACH bank account number

string
getAchBankAccountType()

Get ACH bank account type

setAchBankAccountType(string $achBankAccountType)

Set ACH bank account type

string
getAchBankAccountClass()

Get ACH bank account class

setAchBankAccountClass(string $achBankAccountClass)

Set ACH bank account class

string
getVendorAccountNo()

Get vendor account number

setVendorAccountNo(string $vendorAccountNo)

Set vendor account number

boolean
isLocationAssignedAccountNoDisplayedOnCheckStub()

Get location assigned account numbers displayed on check stub

setLocationAssignedAccountNoDisplayedOnCheckStub(boolean $locationAssignedAccountNoDisplayedOnCheckStub)

Set location assigned account numbers displayed on check stub

string
getRestrictionType()

Get restriction type

setRestrictionType(string $restrictionType)

Set restriction type

array
getRestrictedLocations()

Get restricted locations

setRestrictedLocations(array $restrictedLocations)

Set restricted locations

array
getRestrictedDepartments()

Get restricted departments

setRestrictedDepartments(array $restrictedDepartments)

Set restricted departments

writeXmlMailAddress(XMLWriter $xml)

No description

Details

in AbstractFunction at line line 35
getControlId()

Get control ID

in AbstractFunction at line line 46
setControlId($controlId = null)

Set control ID

Parameters

$controlId

Exceptions

InvalidArgumentException

in AbstractFunction at line line 67
__construct(string $controlId = null)

Initializes the class with the given parameters.

Parameters

string $controlId Control ID, default=random UUID

at line line 35
writeXml(XMLWriter $xml)

Write the function block XML

Parameters

XMLWriter $xml

in CustomFieldsTrait at line line 33
array getCustomFields()

Get custom fields

Return Value

array

in CustomFieldsTrait at line line 43
setCustomFields(array $customFields)

Set custom fields

Parameters

array $customFields

in AbstractVendor at line line 238
string getVendorId()

Get vendor ID

Return Value

string

in AbstractVendor at line line 248
setVendorId(string $vendorId)

Set vendor ID

Parameters

string $vendorId

in AbstractVendor at line line 258
string getVendorName()

Get vendor name

Return Value

string

in AbstractVendor at line line 268
setVendorName(string $vendorName)

Set vendor name

Parameters

string $vendorName

in AbstractVendor at line line 278
boolean isOneTime()

Get one time

Return Value

boolean

in AbstractVendor at line line 288
setOneTime(boolean $oneTime)

Set one time

Parameters

boolean $oneTime

in AbstractVendor at line line 298
boolean isActive()

Get active

Return Value

boolean

in AbstractVendor at line line 308
setActive(boolean $active)

Set active

Parameters

boolean $active

in AbstractVendor at line line 318
string getLastName()

Get last name

Return Value

string

in AbstractVendor at line line 328
setLastName(string $lastName)

Set last name

Parameters

string $lastName

in AbstractVendor at line line 338
string getFirstName()

Get first name

Return Value

string

in AbstractVendor at line line 348
setFirstName(string $firstName)

Set first name

Parameters

string $firstName

in AbstractVendor at line line 358
string getMiddleName()

Get middle name

Return Value

string

in AbstractVendor at line line 368
setMiddleName(string $middleName)

Set middle name

Parameters

string $middleName

in AbstractVendor at line line 378
string getPrefix()

Get prefix

Return Value

string

in AbstractVendor at line line 388
setPrefix(string $prefix)

Set prefix

Parameters

string $prefix

in AbstractVendor at line line 398
string getCompanyName()

Get company name

Return Value

string

in AbstractVendor at line line 408
setCompanyName(string $companyName)

Set company name

Parameters

string $companyName

in AbstractVendor at line line 418
string getPrintAs()

Get print as

Return Value

string

in AbstractVendor at line line 428
setPrintAs(string $printAs)

Set print as

Parameters

string $printAs

in AbstractVendor at line line 438
string getPrimaryPhoneNo()

Get primary phone number

Return Value

string

in AbstractVendor at line line 448
setPrimaryPhoneNo(string $primaryPhoneNo)

Set primary phone number

Parameters

string $primaryPhoneNo

in AbstractVendor at line line 458
string getSecondaryPhoneNo()

Get secondary phone number

Return Value

string

in AbstractVendor at line line 468
setSecondaryPhoneNo(string $secondaryPhoneNo)

Set secondary phone number

Parameters

string $secondaryPhoneNo

in AbstractVendor at line line 478
string getCellularPhoneNo()

Get cellular phone number

Return Value

string

in AbstractVendor at line line 488
setCellularPhoneNo(string $cellularPhoneNo)

Set cellular phone number

Parameters

string $cellularPhoneNo

in AbstractVendor at line line 498
string getPagerNo()

Get pager number

Return Value

string

in AbstractVendor at line line 508
setPagerNo(string $pagerNo)

Set pager number

Parameters

string $pagerNo

in AbstractVendor at line line 518
string getFaxNo()

Get fax number

Return Value

string

in AbstractVendor at line line 528
setFaxNo(string $faxNo)

Set fax number

Parameters

string $faxNo

in AbstractVendor at line line 538
string getPrimaryEmailAddress()

Get primary email address

Return Value

string

in AbstractVendor at line line 548
setPrimaryEmailAddress(string $primaryEmailAddress)

Set primary email address

Parameters

string $primaryEmailAddress

in AbstractVendor at line line 561
string getSecondaryEmailAddress()

Get secondary email address

Return Value

string

in AbstractVendor at line line 571
setSecondaryEmailAddress(string $secondaryEmailAddress)

Set secondary email address

Parameters

string $secondaryEmailAddress

in AbstractVendor at line line 584
string getPrimaryUrl()

Get primary URL

Return Value

string

in AbstractVendor at line line 594
setPrimaryUrl(string $primaryUrl)

Set primary URL

Parameters

string $primaryUrl

in AbstractVendor at line line 604
string getSecondaryUrl()

Get secondary URL

Return Value

string

in AbstractVendor at line line 614
setSecondaryUrl(string $secondaryUrl)

Set secondary URL

Parameters

string $secondaryUrl

in AbstractVendor at line line 624
string getAddressLine1()

Get address line 1

Return Value

string

in AbstractVendor at line line 634
setAddressLine1(string $addressLine1)

Set address line 1

Parameters

string $addressLine1

in AbstractVendor at line line 644
string getAddressLine2()

Get address line 2

Return Value

string

in AbstractVendor at line line 654
setAddressLine2(string $addressLine2)

Set address line 2

Parameters

string $addressLine2

in AbstractVendor at line line 664
string getCity()

Get city

Return Value

string

in AbstractVendor at line line 674
setCity(string $city)

Set city

Parameters

string $city

in AbstractVendor at line line 684
string getStateProvince()

Get state/province

Return Value

string

in AbstractVendor at line line 694
setStateProvince(string $stateProvince)

Set state/province

Parameters

string $stateProvince

in AbstractVendor at line line 704
string getZipPostalCode()

Get zip/postal code

Return Value

string

in AbstractVendor at line line 714
setZipPostalCode(string $zipPostalCode)

Set zip/postal code

Parameters

string $zipPostalCode

in AbstractVendor at line line 724
string getCountry()

Get country

Return Value

string

in AbstractVendor at line line 734
setCountry(string $country)

Set country

Parameters

string $country

in AbstractVendor at line line 744
boolean isExcludedFromContactList()

Get excluded from contact list

Return Value

boolean

in AbstractVendor at line line 754
setExcludedFromContactList(boolean $excludedFromContactList)

Set excluded from contact list

Parameters

boolean $excludedFromContactList

in AbstractVendor at line line 764
string getVendorTypeId()

Get vendor type ID

Return Value

string

in AbstractVendor at line line 774
setVendorTypeId(string $vendorTypeId)

Set vendor type ID

Parameters

string $vendorTypeId

in AbstractVendor at line line 784
string getParentVendorId()

Get parent vendor ID

Return Value

string

in AbstractVendor at line line 794
setParentVendorId(string $parentVendorId)

Set parent vendor ID

Parameters

string $parentVendorId

in AbstractVendor at line line 804
string getGlGroupName()

Get GL group name

Return Value

string

in AbstractVendor at line line 814
setGlGroupName(string $glGroupName)

Set GL group name

Parameters

string $glGroupName

in AbstractVendor at line line 824
string getTaxId()

Get tax ID

Return Value

string

in AbstractVendor at line line 834
setTaxId(string $taxId)

Set tax ID

Parameters

string $taxId

in AbstractVendor at line line 844
string getForm1099Name()

Get form 1099 name

Return Value

string

in AbstractVendor at line line 854
setForm1099Name(string $form1099Name)

Set form 1099 name

Parameters

string $form1099Name

in AbstractVendor at line line 864
string getForm1099Type()

Get form 1099 type

Return Value

string

in AbstractVendor at line line 875
setForm1099Type(string $form1099Type)

Set form 1099 type

Parameters

string $form1099Type

in AbstractVendor at line line 885
int|string getForm1099Box()

Get form 1099 box

Return Value

int|string

in AbstractVendor at line line 895
setForm1099Box(int|string $form1099Box)

Set form 1099 box

Parameters

int|string $form1099Box

in AbstractVendor at line line 905
string getAttachmentsId()

Get attachments ID

Return Value

string

in AbstractVendor at line line 915
setAttachmentsId(string $attachmentsId)

Set attachments ID

Parameters

string $attachmentsId

in AbstractVendor at line line 925
string getDefaultExpenseGlAccountNo()

Get default expense GL account number

Return Value

string

in AbstractVendor at line line 935
setDefaultExpenseGlAccountNo(string $defaultExpenseGlAccountNo)

Set default expense GL account number

Parameters

string $defaultExpenseGlAccountNo

in AbstractVendor at line line 945
boolean isTaxable()

Get taxable

Return Value

boolean

in AbstractVendor at line line 955
setTaxable(boolean $taxable)

Set taxable

Parameters

boolean $taxable

in AbstractVendor at line line 965
string getContactTaxGroupName()

Get contact tax group name

Return Value

string

in AbstractVendor at line line 975
setContactTaxGroupName(string $contactTaxGroupName)

Set contact tax group name

Parameters

string $contactTaxGroupName

in AbstractVendor at line line 985
float|int|string getCreditLimit()

Get credit limit

Return Value

float|int|string

in AbstractVendor at line line 995
setCreditLimit(float|int|string $creditLimit)

Set credit limit

Parameters

float|int|string $creditLimit

in AbstractVendor at line line 1005
boolean isOnHold()

Get on hold

Return Value

boolean

in AbstractVendor at line line 1015
setOnHold(boolean $onHold)

Set on hold

Parameters

boolean $onHold

in AbstractVendor at line line 1025
boolean isDoNotPay()

Get do not pay

Return Value

boolean

in AbstractVendor at line line 1035
setDoNotPay(boolean $doNotPay)

Set do not pay

Parameters

boolean $doNotPay

in AbstractVendor at line line 1045
string getComments()

Get comments

Return Value

string

in AbstractVendor at line line 1055
setComments(string $comments)

Set comments

Parameters

string $comments

in AbstractVendor at line line 1065
string getDefaultCurrency()

Get default currency

Return Value

string

in AbstractVendor at line line 1075
setDefaultCurrency(string $defaultCurrency)

Set default currency

Parameters

string $defaultCurrency

in AbstractVendor at line line 1085
string getPrimaryContactName()

Get primary contact name

Return Value

string

in AbstractVendor at line line 1095
setPrimaryContactName(string $primaryContactName)

Set primary contact name

Parameters

string $primaryContactName

in AbstractVendor at line line 1105
string getPayToContactName()

Get pay to contact name

Return Value

string

in AbstractVendor at line line 1115
setPayToContactName(string $payToContactName)

Set pay to contact name

Parameters

string $payToContactName

in AbstractVendor at line line 1125
string getReturnToContactName()

Get return to contact name

Return Value

string

in AbstractVendor at line line 1135
setReturnToContactName(string $returnToContactName)

Set return to contact name

Parameters

string $returnToContactName

in AbstractVendor at line line 1145
string getPreferredPaymentMethod()

Get preferred payment method

Return Value

string

in AbstractVendor at line line 1155
setPreferredPaymentMethod(string $preferredPaymentMethod)

Set preferred payment method

Parameters

string $preferredPaymentMethod

in AbstractVendor at line line 1165
boolean isSendAutomaticPaymentNotification()

Get send automatic payment notification

Return Value

boolean

in AbstractVendor at line line 1175
setSendAutomaticPaymentNotification(boolean $sendAutomaticPaymentNotification)

Set send automatic payment notification

Parameters

boolean $sendAutomaticPaymentNotification

in AbstractVendor at line line 1185
boolean isMergePaymentRequests()

Get merge payment requests

Return Value

boolean

in AbstractVendor at line line 1195
setMergePaymentRequests(boolean $mergePaymentRequests)

Set merge payment requests

Parameters

boolean $mergePaymentRequests

in AbstractVendor at line line 1205
string getVendorBillingType()

Get vendor billing type

Return Value

string

in AbstractVendor at line line 1215
setVendorBillingType(string $vendorBillingType)

Set vendor billing type

Parameters

string $vendorBillingType

in AbstractVendor at line line 1225
string getPaymentPriority()

Get payment priority

Return Value

string

in AbstractVendor at line line 1235
setPaymentPriority(string $paymentPriority)

Set payment priority

Parameters

string $paymentPriority

in AbstractVendor at line line 1245
string getPaymentTerm()

Get payment term

Return Value

string

in AbstractVendor at line line 1255
setPaymentTerm(string $paymentTerm)

Set payment term

Parameters

string $paymentTerm

in AbstractVendor at line line 1265
boolean isTermDiscountDisplayedOnCheckStub()

Get term discount displayed on check stub

Return Value

boolean

in AbstractVendor at line line 1275
setTermDiscountDisplayedOnCheckStub(boolean $termDiscountDisplayedOnCheckStub)

Set term discount displayed on check stub

Parameters

boolean $termDiscountDisplayedOnCheckStub

in AbstractVendor at line line 1285
boolean isAchEnabled()

Get ACH enabled

Return Value

boolean

in AbstractVendor at line line 1295
setAchEnabled(boolean $achEnabled)

Set ACH enabled

Parameters

boolean $achEnabled

in AbstractVendor at line line 1305
string getAchBankRoutingNo()

Get ACH bank routing number

Return Value

string

in AbstractVendor at line line 1315
setAchBankRoutingNo(string $achBankRoutingNo)

Set ACH bank routing number

Parameters

string $achBankRoutingNo

in AbstractVendor at line line 1325
string getAchBankAccountNo()

Get ACH bank account number

Return Value

string

in AbstractVendor at line line 1335
setAchBankAccountNo(string $achBankAccountNo)

Set ACH bank account number

Parameters

string $achBankAccountNo

in AbstractVendor at line line 1345
string getAchBankAccountType()

Get ACH bank account type

Return Value

string

in AbstractVendor at line line 1356
setAchBankAccountType(string $achBankAccountType)

Set ACH bank account type

Parameters

string $achBankAccountType

in AbstractVendor at line line 1366
string getAchBankAccountClass()

Get ACH bank account class

Return Value

string

in AbstractVendor at line line 1377
setAchBankAccountClass(string $achBankAccountClass)

Set ACH bank account class

Parameters

string $achBankAccountClass

in AbstractVendor at line line 1387
string getVendorAccountNo()

Get vendor account number

Return Value

string

in AbstractVendor at line line 1397
setVendorAccountNo(string $vendorAccountNo)

Set vendor account number

Parameters

string $vendorAccountNo

in AbstractVendor at line line 1407
boolean isLocationAssignedAccountNoDisplayedOnCheckStub()

Get location assigned account numbers displayed on check stub

Return Value

boolean

in AbstractVendor at line line 1417
setLocationAssignedAccountNoDisplayedOnCheckStub(boolean $locationAssignedAccountNoDisplayedOnCheckStub)

Set location assigned account numbers displayed on check stub

Parameters

boolean $locationAssignedAccountNoDisplayedOnCheckStub

in AbstractVendor at line line 1427
string getRestrictionType()

Get restriction type

Return Value

string

in AbstractVendor at line line 1437
setRestrictionType(string $restrictionType)

Set restriction type

Parameters

string $restrictionType

in AbstractVendor at line line 1455
array getRestrictedLocations()

Get restricted locations

Return Value

array

in AbstractVendor at line line 1465
setRestrictedLocations(array $restrictedLocations)

Set restricted locations

Parameters

array $restrictedLocations

in AbstractVendor at line line 1475
array getRestrictedDepartments()

Get restricted departments

Return Value

array

in AbstractVendor at line line 1485
setRestrictedDepartments(array $restrictedDepartments)

Set restricted departments

Parameters

array $restrictedDepartments

in AbstractVendor at line line 1493
writeXmlMailAddress(XMLWriter $xml)

Parameters

XMLWriter $xml