AbstractAmazonCredential
extends Credential
in package
AbstractYes
Table of Contents
Constants
- DEBUG_AUTH_TOKEN = "amz-dev-token"
- DEBUG_SELLER_ID = "amz-dev-id"
Properties
- $marketplaceIdList : mixed
- $opt : array<string|int, mixed>
- $sellerId : mixed
Methods
- __construct() : mixed
- checkUserModule() : mixed
- getAuthToken() : mixed
- Get the value of authToken
- getMarketplaceIdList() : array<string|int, mixed>
- getOpt() : array<string|int, mixed>
- getOptUser() : mixed
- getOptUserId() : mixed
- getOptVal() : mixed
- getOptValOr() : mixed
- getRawCredential() : User|null
- getRefreshToken() : mixed
- getSellerId() : mixed
- Get the value of sellerId
- getUser() : User|null
- getUserModule() : UserModule
- hasOptKey() : mixed
- isAuth() : mixed
- isFine() : mixed
- setMarketplaceIdList() : static
- setOpt() : static
- setSellerId() : self
- setUserModule() : self
- toJson() : mixed
- toJsonAssoc() : 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
$marketplaceIdList
private
mixed
$marketplaceIdList
$opt
private
array<string|int, mixed>
$opt
$sellerId
private
mixed
$sellerId
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
getAuthToken()
Get the value of authToken
public
abstract getAuthToken() : 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
getRawCredential()
public
getRawCredential() : User|null
Return values
User|nullgetRefreshToken()
public
abstract 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
abstract isAuth() : mixed
isFine()
public
isFine() : mixed
setMarketplaceIdList()
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
staticsetSellerId()
public
setSellerId(mixed $sellerId) : self
Parameters
- $sellerId : mixed
Return values
selfsetUserModule()
public
setUserModule(UserModule $userModule) : self
Parameters
- $userModule : UserModule
Return values
selftoJson()
public
toJson() : mixed
toJsonAssoc()
public
abstract toJsonAssoc() : mixed