IntegrationService
Table of Contents
Constants
-
CREDENTIAL_STATUS_ACTIVATE
= 'status_activate'
-
CREDENTIAL_STATUS_CANCEL
= 'status_cancel'
-
CREDENTIAL_STATUS_STOP
= 'status_stop'
-
HANDLER_LIST
= [\Vatjar\Integration\Model\Module::MODULE_ID_AMAZON => \Vatjar\Integration\Service\IntegrationService::class, \Vatjar\Integration\Model\Module::MODULE_ID_EASYBILL => \Vatjar\Easybill\Component\IntegrationCredentialComponent::class, \Vatjar\Integration\Model\Module::MODULE_ID_SHOPIFY_AUTOMATED => \Vatjar\Shopify\Service\IntegrationService::class]
-
NO_TRACK_MODELE_ID_LIST
= [\Vatjar\Integration\Model\Module::MODULE_ID_MANUAL, \Vatjar\Integration\Model\Module::MODULE_ID_API]
Properties
-
$amazonIntegrationService
: AmazonIntegrationService
-
$authComponent
: mixed
-
$client
: mixed
-
$firstPromoterComponent
: mixed
-
$integrationComponent
: mixed
-
$integrationImporterRangeService
: IntegrationImporterRangeService
-
$integrationRepository
: IntegrationRepository
-
$moduleRepository
: ModuleRepository
-
$providerSlotSubscriptionRepository
: ProviderSlotSubscriptionRepository
-
$request
: mixed
-
$uniqueIntegrationSelectionService
: UniqueIntegrationSelectionService
-
$user
: mixed
-
$userAllowedProvidersRepository
: UserAllowedProvidersRepository
-
$userAllowedProvidersService
: UserAllowedProvidersService
-
$userModuleRepository
: UserModuleRepository
-
$userService
: UserService
Methods
-
__construct()
: mixed
-
allowedIntegrations()
: mixed
-
allowedIntegrationsForNewSeller()
: mixed
-
changeIntegrationStatusForUserModule()
: bool
-
createArrangeAndAfterJobByUserModuleId()
: mixed
-
deleteCronrequestsHavingStartDateCurrentMonth()
: mixed
-
generateCredentials()
: AmazonCredential
-
generateDefaultIntegrations()
: mixed
-
getActiveUserModuleList()
: array<string|int, UserModule>
-
getActiveUserModuleListWithout()
: array<string|int, UserModule>
-
getConfig()
: Config
-
getCredentialHandlerFor()
: mixed
-
getDI()
: Di
-
getDoctrineClientModel()
: Client|null
-
getIntegrationComponent()
: IntegrationComponent|null
-
getIntegrations()
: array<string|int, mixed>
-
getIntegrationsStatuses()
: array<string|int, mixed>
-
getIntegrationTypes()
: array<string|int, mixed>|null
-
getModuleFor()
: mixed
-
getModuleList()
: mixed
-
getRequestAsArray()
: mixed
-
getUser()
: UserWrapper|null
-
getUserIntegrationsSettings()
: mixed
-
getUserModuleAmazonAssociatedByIdFor()
: mixed
-
getUserModuleByIdFor()
: mixed
-
getUserModuleFor()
: mixed
-
getUserModuleList()
: array<string|int, UserModule>
-
getUserModuleListGroupedByUserModule()
: mixed
-
getUserModuleListWithout()
: array<string|int, UserModule>
-
getUserModulesAliasList()
: mixed
-
getUserModulesFor()
: mixed
-
getUserModuleShopifyAssociatedByShopNameFor()
: UserModule
-
handleCredential()
: array<string|int, mixed>
-
hasIntegrationsWithErrors()
: bool
-
hasPendingIntegrations()
: mixed
-
integrationIsAllowed()
: mixed
-
swapProviderSlotSubscriptionUserModuleIds()
: mixed
-
terminateUserModule()
: mixed
-
trackSignup()
: mixed
-
createCancelationJob()
: mixed
-
findByUserAndModuleAndSellerIdAndDisabled()
: mixed
-
generateDefaultAmazonIntegration()
: mixed
-
generateDefaultMOUIntegration()
: mixed
-
getAmazonCredentials()
: AmazonCredentialResponse|null
-
handleGeneratedCredentials()
: AmazonCredential
CREDENTIAL_STATUS_ACTIVATE
public
mixed
CREDENTIAL_STATUS_ACTIVATE
= 'status_activate'
CREDENTIAL_STATUS_CANCEL
public
mixed
CREDENTIAL_STATUS_CANCEL
= 'status_cancel'
CREDENTIAL_STATUS_STOP
public
mixed
CREDENTIAL_STATUS_STOP
= 'status_stop'
HANDLER_LIST
public
mixed
HANDLER_LIST
= [\Vatjar\Integration\Model\Module::MODULE_ID_AMAZON => \Vatjar\Integration\Service\IntegrationService::class, \Vatjar\Integration\Model\Module::MODULE_ID_EASYBILL => \Vatjar\Easybill\Component\IntegrationCredentialComponent::class, \Vatjar\Integration\Model\Module::MODULE_ID_SHOPIFY_AUTOMATED => \Vatjar\Shopify\Service\IntegrationService::class]
NO_TRACK_MODELE_ID_LIST
public
mixed
NO_TRACK_MODELE_ID_LIST
= [\Vatjar\Integration\Model\Module::MODULE_ID_MANUAL, \Vatjar\Integration\Model\Module::MODULE_ID_API]
__construct()
public
__construct(IntegrationRepository $integrationRepository, UserModuleRepository $userModuleRepository, ModuleRepository $moduleRepository, AuthComponent $authComponent, UserService $userService, FirstPromoterComponent $firstPromoterComponent, Request $request, ProviderSlotSubscriptionRepository $providerSlotSubscriptionRepository, UserAllowedProvidersRepository $userAllowedProvidersRepository, UserAllowedProvidersService $userAllowedProvidersService, UniqueIntegrationSelectionService $uniqueIntegrationSelectionService, IntegrationImporterRangeService $integrationImporterRangeService) : mixed
Parameters
-
$integrationRepository
: IntegrationRepository
-
-
$userModuleRepository
: UserModuleRepository
-
-
$moduleRepository
: ModuleRepository
-
-
$authComponent
: AuthComponent
-
-
$userService
: UserService
-
-
$firstPromoterComponent
: FirstPromoterComponent
-
-
$request
: Request
-
-
$providerSlotSubscriptionRepository
: ProviderSlotSubscriptionRepository
-
-
$userAllowedProvidersRepository
: UserAllowedProvidersRepository
-
-
$userAllowedProvidersService
: UserAllowedProvidersService
-
-
$uniqueIntegrationSelectionService
: UniqueIntegrationSelectionService
-
-
$integrationImporterRangeService
: IntegrationImporterRangeService
-
allowedIntegrations()
public
allowedIntegrations(UserWrapper $user) : mixed
Parameters
-
$user
: UserWrapper
-
allowedIntegrationsForNewSeller()
public
allowedIntegrationsForNewSeller(UserWrapper $user, mixed $integrations) : mixed
Parameters
-
$user
: UserWrapper
-
-
$integrations
: mixed
-
changeIntegrationStatusForUserModule()
public
changeIntegrationStatusForUserModule(UserModule $userModule, mixed $data) : bool
Parameters
-
$userModule
: UserModule
-
-
$data
: mixed
-
-
throws
-
ORMException
-
throws
-
OptimisticLockException
-
throws
-
InternalServerErrorException
-
throws
-
NonUniqueResultException
-
throws
-
ForbiddenException
-
throws
-
DataException
-
throws
-
NoResultException
createArrangeAndAfterJobByUserModuleId()
public
createArrangeAndAfterJobByUserModuleId(mixed $userModuleId) : mixed
Parameters
-
$userModuleId
: mixed
-
deleteCronrequestsHavingStartDateCurrentMonth()
public
deleteCronrequestsHavingStartDateCurrentMonth(mixed $userModuleId) : mixed
Parameters
-
$userModuleId
: mixed
-
generateCredentials()
public
generateCredentials(UserModule $userModule, mixed $data) : AmazonCredential
Parameters
-
$userModule
: UserModule
-
-
$data
: mixed
-
-
throws
-
AmazonAuthenticationFailedException
generateDefaultIntegrations()
public
generateDefaultIntegrations(UserAccount $userAccount) : mixed
Parameters
-
$userAccount
: UserAccount
-
getActiveUserModuleList()
public
getActiveUserModuleList([mixed $user = null ]) : array<string|int, UserModule>
Parameters
-
$user
: mixed
= null
-
getActiveUserModuleListWithout()
public
getActiveUserModuleListWithout(int|string|array<string|int, int|string> $without[, mixed $user = null ]) : array<string|int, UserModule>
Parameters
-
$without
: int|string|array<string|int, int|string>
-
-
$user
: mixed
= null
-
getConfig()
public
getConfig() : Config
getCredentialHandlerFor()
public
getCredentialHandlerFor(mixed $module, mixed $user) : mixed
Parameters
-
$module
: mixed
-
-
$user
: mixed
-
getDI()
public
getDI() : Di
getDoctrineClientModel()
public
getDoctrineClientModel([mixed $client = null ]) : Client|null
Parameters
-
$client
: mixed
= null
-
getIntegrationComponent()
public
getIntegrationComponent([mixed $user = null ]) : IntegrationComponent|null
Parameters
-
$user
: mixed
= null
-
getIntegrations()
public
getIntegrations(int $userId) : array<string|int, mixed>
Parameters
-
$userId
: int
-
-
throws
-
UserNotFoundException
Return values
array<string|int, mixed>
getIntegrationsStatuses()
public
getIntegrationsStatuses(int $userId) : array<string|int, mixed>
Parameters
-
$userId
: int
-
Return values
array<string|int, mixed>
getIntegrationTypes()
public
getIntegrationTypes() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null
getModuleFor()
public
getModuleFor(mixed $integration, mixed $user) : mixed
Parameters
-
$integration
: mixed
-
-
$user
: mixed
-
getModuleList()
public
getModuleList(mixed $user) : mixed
Parameters
-
$user
: mixed
-
getRequestAsArray()
public
getRequestAsArray() : mixed
getUser()
public
getUser([mixed $user = null ]) : UserWrapper|null
Parameters
-
$user
: mixed
= null
-
getUserIntegrationsSettings()
public
getUserIntegrationsSettings(UserWrapper $user) : mixed
Parameters
-
$user
: UserWrapper
-
getUserModuleAmazonAssociatedByIdFor()
public
getUserModuleAmazonAssociatedByIdFor(mixed $integration, mixed $user, mixed $userModuleId, mixed $sellerId) : mixed
Parameters
-
$integration
: mixed
-
-
$user
: mixed
-
-
$userModuleId
: mixed
-
-
$sellerId
: mixed
-
getUserModuleByIdFor()
public
getUserModuleByIdFor(mixed $integration, mixed $user, mixed $userModuleId) : mixed
Parameters
-
$integration
: mixed
-
-
$user
: mixed
-
-
$userModuleId
: mixed
-
getUserModuleFor()
public
getUserModuleFor(mixed $integration, mixed $user) : mixed
Parameters
-
$integration
: mixed
-
-
$user
: mixed
-
getUserModuleList()
public
getUserModuleList([mixed $user = null ]) : array<string|int, UserModule>
Parameters
-
$user
: mixed
= null
-
getUserModuleListGroupedByUserModule()
public
getUserModuleListGroupedByUserModule([mixed $user = null ]) : mixed
Parameters
-
$user
: mixed
= null
-
-
@return
-
getUserModuleListWithout()
public
getUserModuleListWithout(int|string|array<string|int, int|string> $without[, mixed $user = null ]) : array<string|int, UserModule>
Parameters
-
$without
: int|string|array<string|int, int|string>
-
-
$user
: mixed
= null
-
getUserModulesAliasList()
public
getUserModulesAliasList(mixed $user) : mixed
Parameters
-
$user
: mixed
-
getUserModulesFor()
public
getUserModulesFor(mixed $integration, mixed $user) : mixed
Parameters
-
$integration
: mixed
-
-
$user
: mixed
-
getUserModuleShopifyAssociatedByShopNameFor()
public
getUserModuleShopifyAssociatedByShopNameFor(mixed $integration, mixed $user, mixed $userModuleId, mixed $shopName) : UserModule
Parameters
-
$integration
: mixed
-
-
$user
: mixed
-
-
$userModuleId
: mixed
-
-
$shopName
: mixed
-
handleCredential()
public
handleCredential(UserModule $userModule, mixed $data) : array<string|int, mixed>
Parameters
-
$userModule
: UserModule
-
-
$data
: mixed
-
-
throws
-
ForbiddenException
Return values
array<string|int, mixed>
hasIntegrationsWithErrors()
public
hasIntegrationsWithErrors(int $requestUserId) : bool
Parameters
-
$requestUserId
: int
-
hasPendingIntegrations()
public
hasPendingIntegrations(mixed $user) : mixed
Parameters
-
$user
: mixed
-
integrationIsAllowed()
public
integrationIsAllowed(mixed $id, UserWrapper $user) : mixed
Parameters
-
$id
: mixed
-
-
$user
: UserWrapper
-
swapProviderSlotSubscriptionUserModuleIds()
public
swapProviderSlotSubscriptionUserModuleIds(mixed $userModule, mixed $validUserModule) : mixed
Parameters
-
$userModule
: mixed
-
-
$validUserModule
: mixed
-
terminateUserModule()
public
terminateUserModule(UserModule $userModule) : mixed
Parameters
-
$userModule
: UserModule
-
trackSignup()
public
trackSignup(mixed $user) : mixed
Parameters
-
$user
: mixed
-
createCancelationJob()
private
createCancelationJob(UserModule $userModule) : mixed
Parameters
-
$userModule
: UserModule
-
findByUserAndModuleAndSellerIdAndDisabled()
private
findByUserAndModuleAndSellerIdAndDisabled(mixed $userId, int $moduleId, mixed $sellerId) : mixed
Parameters
-
$userId
: mixed
-
-
$moduleId
: int
-
-
$sellerId
: mixed
-
generateDefaultAmazonIntegration()
private
generateDefaultAmazonIntegration(UserAccount $userAccount) : mixed
Parameters
-
$userAccount
: UserAccount
-
generateDefaultMOUIntegration()
private
generateDefaultMOUIntegration(UserAccount $userAccount) : mixed
Parameters
-
$userAccount
: UserAccount
-
getAmazonCredentials()
private
getAmazonCredentials(string $credentialsCode) : AmazonCredentialResponse|null
Parameters
-
$credentialsCode
: string
-
handleGeneratedCredentials()
private
handleGeneratedCredentials(UserModule $userModule, AmazonCredentialResponse $amazonOriginalCredential, string $sellerId, string $awsToken, string $initialPullDate, mixed $integrationAlias) : AmazonCredential
Parameters
-
$userModule
: UserModule
-
-
$amazonOriginalCredential
: AmazonCredentialResponse
-
-
$sellerId
: string
-
-
$awsToken
: string
-
-
$initialPullDate
: string
-
-
$integrationAlias
: mixed
-
-
throws
-
ORMException
-
throws
-
PhalconFormException
-
throws
-
ForbiddenException
-
throws
-
DataException