Documentation

AmazonCredential
in package
implements JsonSerializable

Table of Contents

Interfaces

JsonSerializable

Constants

FIRST_PULL  = CRONJOB_START_DATE

Properties

$authToken  : string|null
$credentialId  : int|null
$integrationAlias  : string|null
$marketplaceIdList  : array<string|int, mixed>|null
$refreshToken  : string|null
$sellerId  : string|null
$startDate  : string|null
$type  : string|null

Methods

build()  : self
fromJson()  : self
fromRequest()  : self
getAuthToken()  : string|null
getCredentialId()  : int|null
getFirstPullDate()  : DateTime
getIntegrationAlias()  : mixed
getMarketplaceIdList()  : array<string|int, mixed>|null
getRefreshToken()  : string|null
getSellerId()  : string|null
getStartDate()  : mixed
getType()  : mixed
jsonSerialize()  : mixed
Specify data which should be serialized to JSON
setAuthToken()  : void
setCredentialId()  : void
setIntegrationAlias()  : mixed
setMarketplaceIdList()  : void
setRefreshToken()  : void
setSellerId()  : void
setStartDate()  : mixed
setType()  : void
toCredentialHandlerArray()  : array<string|int, mixed>
toSpApiCredentialHandlerArray()  : array<string|int, mixed>
toValidatorArray()  : array<string|int, mixed>

Constants

Properties

$marketplaceIdList

private array<string|int, mixed>|null $marketplaceIdList = ["1", "2", "3", "4", "5"]

Methods

build()

public build(string $accessToken, string $refreshToken, string $sellerId, string $pullingStartDate, string $integrationAlias) : self
Parameters
$accessToken : string
$refreshToken : string
$sellerId : string
$pullingStartDate : string
$integrationAlias : string
Return values
self

fromJson()

public fromJson(string $json) : self
Parameters
$json : string
Return values
self

fromRequest()

public fromRequest(array<string|int, mixed> $data) : self
Parameters
$data : array<string|int, mixed>
Return values
self

getAuthToken()

public getAuthToken() : string|null
Return values
string|null

getCredentialId()

public getCredentialId() : int|null
Return values
int|null

getFirstPullDate()

public static getFirstPullDate() : DateTime
Return values
DateTime

getMarketplaceIdList()

public getMarketplaceIdList() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

getRefreshToken()

public getRefreshToken() : string|null
Return values
string|null

getSellerId()

public getSellerId() : string|null
Return values
string|null

setAuthToken()

public setAuthToken(string|null $authToken) : void
Parameters
$authToken : string|null

setCredentialId()

public setCredentialId(int|null $credentialId) : void
Parameters
$credentialId : int|null

setIntegrationAlias()

public setIntegrationAlias(mixed $integrationAlias) : mixed
Parameters
$integrationAlias : mixed

setMarketplaceIdList()

public setMarketplaceIdList(array<string|int, mixed>|null $marketplaceIdList) : void
Parameters
$marketplaceIdList : array<string|int, mixed>|null

setRefreshToken()

public setRefreshToken(string|null $refreshToken) : void
Parameters
$refreshToken : string|null

setSellerId()

public setSellerId(string|null $sellerId) : void
Parameters
$sellerId : string|null

setStartDate()

public setStartDate(mixed $startDate) : mixed
Parameters
$startDate : mixed

toCredentialHandlerArray()

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

toSpApiCredentialHandlerArray()

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

toValidatorArray()

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

        
On this page

Search results