AmazonCredential
extends AbstractAmazonCredential
in package
implements
JsonSerializable
Table of Contents
Interfaces
- JsonSerializable
Constants
- DEBUG_AUTH_TOKEN = "amz-dev-token"
- DEBUG_SELLER_ID = "amz-dev-id"
Properties
- $cancelationPending : mixed
- $integrationAlias : mixed
- $isActive : mixed
- $pullStartDate : mixed
- $sellerId : mixed
- $user : mixed
- $authToken : mixed
- $credentialId : mixed
- $opt : array<string|int, mixed>
- $refreshToken : mixed
Methods
- __construct() : mixed
- checkUserModule() : mixed
- createFor() : AmazonCredential|null
- createForSpApi() : AmazonCredential|null
- getAuthToken() : mixed
- Get the value of authToken
- getCancelationPending() : mixed
- getCredentialId() : mixed
- getIntegrationAlias() : mixed
- getIsActive() : mixed
- getMarketplaceIdList() : array<string|int, mixed>
- getOpt() : array<string|int, mixed>
- getOptUser() : mixed
- getOptUserId() : mixed
- getOptVal() : mixed
- getOptValOr() : mixed
- getPullStartDate() : mixed
- Get the value of pullStartDate
- getRawCredential() : User|null
- getRefreshToken() : mixed
- getSellerId() : mixed
- Get the value of sellerId
- getUser() : User|null
- getUserModule() : UserModule
- hasOptKey() : mixed
- isAuth() : bool
- isDebug() : bool
- isFine() : mixed
- jsonSerialize() : array<string|int, mixed>
- setAuthToken() : AmazonCredential
- setCancelationPending() : AmazonCredential
- setCredentialId() : static
- setIntegrationAlias() : AmazonCredential
- setIsActive() : AmazonCredential
- setMarketplaceIdList() : static
- setOpt() : static
- setPullStartDate() : self
- Set the value of pullStartDate
- setRefreshToken() : AmazonCredential
- setSellerId() : self
- setUser() : AmazonCredential
- setUserModule() : self
- toJson() : mixed
- toJsonAssoc() : array<string|int, mixed>
Constants
DEBUG_AUTH_TOKEN
public
mixed
DEBUG_AUTH_TOKEN
= "amz-dev-token"
DEBUG_SELLER_ID
public
mixed
DEBUG_SELLER_ID
= "amz-dev-id"
Properties
$cancelationPending
public
mixed
$cancelationPending
$integrationAlias
public
mixed
$integrationAlias
$isActive
public
mixed
$isActive
$pullStartDate
public
mixed
$pullStartDate
$sellerId
public
mixed
$sellerId
$user
public
mixed
$user
$authToken
private
mixed
$authToken
$credentialId
private
mixed
$credentialId
$opt
private
array<string|int, mixed>
$opt
$refreshToken
private
mixed
$refreshToken
Methods
__construct()
public
__construct([UserModule|null $userModule = null ][, array<string|int, mixed> $opt = [] ]) : mixed
Parameters
- $userModule : UserModule|null = null
- $opt : array<string|int, mixed> = []
checkUserModule()
public
static checkUserModule(UserModule $userModule) : mixed
Parameters
- $userModule : UserModule
createFor()
public
static createFor(UserModule $userModule[, array<string|int, mixed> $opt = [] ]) : AmazonCredential|null
Parameters
- $userModule : UserModule
- $opt : array<string|int, mixed> = []
Return values
AmazonCredential|nullcreateForSpApi()
public
static createForSpApi(UserModule $userModule[, array<string|int, mixed> $opt = [] ]) : AmazonCredential|null
Parameters
- $userModule : UserModule
- $opt : array<string|int, mixed> = []
Return values
AmazonCredential|nullgetAuthToken()
Get the value of authToken
public
getAuthToken() : mixed
getCancelationPending()
public
getCancelationPending() : mixed
getCredentialId()
public
getCredentialId() : mixed
getIntegrationAlias()
public
getIntegrationAlias() : mixed
getIsActive()
public
getIsActive() : mixed
getMarketplaceIdList()
public
getMarketplaceIdList() : array<string|int, mixed>
Return values
array<string|int, mixed>getOpt()
public
getOpt([array<string|int, mixed> $opt = null ]) : array<string|int, mixed>
Parameters
- $opt : array<string|int, mixed> = null
Return values
array<string|int, mixed>getOptUser()
public
getOptUser() : mixed
getOptUserId()
public
getOptUserId() : mixed
getOptVal()
public
getOptVal(string $key) : mixed
Parameters
- $key : string
getOptValOr()
public
getOptValOr(string $key[, mixed $or = null ]) : mixed
Parameters
- $key : string
- $or : mixed = null
getPullStartDate()
Get the value of pullStartDate
public
getPullStartDate() : mixed
getRawCredential()
public
getRawCredential() : User|null
Return values
User|nullgetRefreshToken()
public
getRefreshToken() : mixed
getSellerId()
Get the value of sellerId
public
getSellerId() : mixed
getUser()
public
getUser() : User|null
Return values
User|nullgetUserModule()
public
getUserModule() : UserModule
Return values
UserModulehasOptKey()
public
hasOptKey(string $key) : mixed
Parameters
- $key : string
isAuth()
public
isAuth() : bool
Return values
boolisDebug()
public
isDebug() : bool
Return values
boolisFine()
public
isFine() : mixed
jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>setAuthToken()
public
setAuthToken(mixed $authToken) : AmazonCredential
Parameters
- $authToken : mixed
-
return self
Return values
AmazonCredentialsetCancelationPending()
public
setCancelationPending(mixed $cancelationPending) : AmazonCredential
Parameters
- $cancelationPending : mixed
Return values
AmazonCredentialsetCredentialId()
public
setCredentialId(mixed $credentialId) : static
Parameters
- $credentialId : mixed
Return values
staticsetIntegrationAlias()
public
setIntegrationAlias(mixed $integrationAlias) : AmazonCredential
Parameters
- $integrationAlias : mixed
Return values
AmazonCredentialsetIsActive()
public
setIsActive(mixed $isActive) : AmazonCredential
Parameters
- $isActive : mixed
Return values
AmazonCredentialsetMarketplaceIdList()
public
setMarketplaceIdList(array<string|int, mixed> $marketplaceIdList) : static
Parameters
- $marketplaceIdList : array<string|int, mixed>
Return values
staticsetOpt()
public
setOpt(array<string|int, mixed> $opt) : static
Parameters
- $opt : array<string|int, mixed>
Return values
staticsetPullStartDate()
Set the value of pullStartDate
public
setPullStartDate(mixed $pullStartDate) : self
Parameters
- $pullStartDate : mixed
Return values
selfsetRefreshToken()
public
setRefreshToken(mixed $refreshToken) : AmazonCredential
Parameters
- $refreshToken : mixed
Return values
AmazonCredentialsetSellerId()
public
setSellerId(mixed $sellerId) : self
Parameters
- $sellerId : mixed
Return values
selfsetUser()
public
setUser(mixed $user) : AmazonCredential
Parameters
- $user : mixed
-
return self
Return values
AmazonCredentialsetUserModule()
public
setUserModule(UserModule $userModule) : self
Parameters
- $userModule : UserModule
Return values
selftoJson()
public
toJson() : mixed
toJsonAssoc()
public
toJsonAssoc() : array<string|int, mixed>