Documentation

IntegrationService
in package

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

Constants

CREDENTIAL_STATUS_ACTIVATE

public mixed CREDENTIAL_STATUS_ACTIVATE = 'status_activate'

CREDENTIAL_STATUS_CANCEL

public mixed CREDENTIAL_STATUS_CANCEL = 'status_cancel'

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]

Properties

Methods

__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

createArrangeAndAfterJobByUserModuleId()

public createArrangeAndAfterJobByUserModuleId(mixed $userModuleId) : mixed
Parameters
$userModuleId : mixed

deleteCronrequestsHavingStartDateCurrentMonth()

public deleteCronrequestsHavingStartDateCurrentMonth(mixed $userModuleId) : mixed
Parameters
$userModuleId : mixed

getActiveUserModuleList()

public getActiveUserModuleList([mixed $user = null ]) : array<string|int, UserModule>
Parameters
$user : mixed = null
Return values
array<string|int, UserModule>

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
Return values
array<string|int, UserModule>

getCredentialHandlerFor()

public getCredentialHandlerFor(mixed $module, mixed $user) : mixed
Parameters
$module : mixed
$user : mixed

getDoctrineClientModel()

public getDoctrineClientModel([mixed $client = null ]) : Client|null
Parameters
$client : mixed = null
Return values
Client|null

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

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

getUserModuleListGroupedByUserModule()

public getUserModuleListGroupedByUserModule([mixed $user = null ]) : mixed
Parameters
$user : mixed = null
Tags
@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
Return values
array<string|int, UserModule>

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
Return values
UserModule

hasIntegrationsWithErrors()

public hasIntegrationsWithErrors(int $requestUserId) : bool
Parameters
$requestUserId : int
Return values
bool

hasPendingIntegrations()

public hasPendingIntegrations(mixed $user) : mixed
Parameters
$user : mixed

swapProviderSlotSubscriptionUserModuleIds()

public swapProviderSlotSubscriptionUserModuleIds(mixed $userModule, mixed $validUserModule) : mixed
Parameters
$userModule : mixed
$validUserModule : mixed

trackSignup()

public trackSignup(mixed $user) : mixed
Parameters
$user : mixed

findByUserAndModuleAndSellerIdAndDisabled()

private findByUserAndModuleAndSellerIdAndDisabled(mixed $userId, int $moduleId, mixed $sellerId) : mixed
Parameters
$userId : mixed
$moduleId : int
$sellerId : mixed

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
Tags
throws
ORMException
throws
PhalconFormException
throws
ForbiddenException
throws
DataException
Return values
AmazonCredential

        
On this page

Search results