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
FIRST_PULL
public
mixed
FIRST_PULL
= CRONJOB_START_DATE
Properties
$authToken
private
string|null
$authToken
$credentialId
private
int|null
$credentialId
$integrationAlias
private
string|null
$integrationAlias
$marketplaceIdList
private
array<string|int, mixed>|null
$marketplaceIdList
= ["1", "2", "3", "4", "5"]
$refreshToken
private
string|null
$refreshToken
$sellerId
private
string|null
$sellerId
$startDate
private
string|null
$startDate
$type
private
string|null
$type
= 'authorisation'
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
selffromJson()
public
fromJson(string $json) : self
Parameters
- $json : string
Return values
selffromRequest()
public
fromRequest(array<string|int, mixed> $data) : self
Parameters
- $data : array<string|int, mixed>
Return values
selfgetAuthToken()
public
getAuthToken() : string|null
Return values
string|nullgetCredentialId()
public
getCredentialId() : int|null
Return values
int|nullgetFirstPullDate()
public
static getFirstPullDate() : DateTime
Return values
DateTimegetIntegrationAlias()
public
getIntegrationAlias() : mixed
getMarketplaceIdList()
public
getMarketplaceIdList() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|nullgetRefreshToken()
public
getRefreshToken() : string|null
Return values
string|nullgetSellerId()
public
getSellerId() : string|null
Return values
string|nullgetStartDate()
public
getStartDate() : mixed
getType()
public
getType() : mixed
jsonSerialize()
Specify data which should be serialized to JSON
public
jsonSerialize() : mixed
Tags
Return values
mixed —data which can be serialized by json_encode, which is a value of any type other than a resource.
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
setType()
public
setType(mixed $type) : void
Parameters
- $type : 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>