Bitrix API

Helper

Class Helper Useful methods to work with ebay.

Table of Contents

Methods

checkEnveronment()  : Result
Checks all necessary extensions etc.
createFeedFileStructure()  : bool
Creates filestructure for information exchange via sftp.
getEbayCategoryVariations()  : array<string|int, mixed>
Returns category variations.
getEbayOrderStatuses()  : array<string|int, mixed>
getSftp()  : Sftp
getSftpPath()  : string
installEvents()  : bool
Creates events for sending e-mail.
OnEventLogGetAuditTypes()  : array<string|int, mixed>
onSaleDeductOrder()  : bool
Sends tracknumber to ebay.

Methods

checkEnveronment()

Checks all necessary extensions etc.

public static checkEnveronment() : Result
Tags
throws
SystemException
Return values
Result

createFeedFileStructure()

Creates filestructure for information exchange via sftp.

public static createFeedFileStructure() : bool
Return values
bool

getEbayCategoryVariations()

Returns category variations.

public static getEbayCategoryVariations(string $ebayCategoryId, string $siteId[, bool $localInfoOnly = false ]) : array<string|int, mixed>

If variations no found in table get them through API and saves to table.

Parameters
$ebayCategoryId : string

Ebay category id.

$siteId : string

Sitte id.

$localInfoOnly : bool = false

Get it from Ebay site if not found in table.

Return values
array<string|int, mixed>

getEbayOrderStatuses()

public static getEbayOrderStatuses() : array<string|int, mixed>
Return values
array<string|int, mixed>

Ebay order statuses.

getSftp()

public static getSftp(string $siteId) : Sftp
Parameters
$siteId : string
Tags
throws
ArgumentNullException
Return values
Sftp

getSftpPath()

public static getSftpPath() : string
Return values
string

Path to SFTP exchange folders.

installEvents()

Creates events for sending e-mail.

public static installEvents() : bool
Return values
bool

OnEventLogGetAuditTypes()

public static OnEventLogGetAuditTypes() : array<string|int, mixed>
Return values
array<string|int, mixed>

Audit types. Before using it needs to execute: RegisterModuleDependences('main', 'OnEventLogGetAuditTypes', 'sale', 'Bitrix\Sale\TradingPlatform\Ebay\Ebay', 'OnEventLogGetAuditTypes');

onSaleDeductOrder()

Sends tracknumber to ebay.

public static onSaleDeductOrder(string $orderId, string $val) : bool
Parameters
$orderId : string

Order id.

$val : string

"Y"|"N"

Return values
bool

        
On this page

Search results