Logidav Docs

RefundService extends TransactionalService
in package

Class Refund `

Table of Contents

Properties

$container  : ContainerInterface
$em  : EntityManager
$refundRepository  : RefundRepository
$smsService  : mixed

Methods

addPreRefund()  : mixed
Adding pre-Refund
addRefund()  : Refund
Add Refund
addRepository()  : void
Add a repository to this service
addService()  : void
Add a service to this service
find()  : Refund|object|null
findAll()  : mixed
findBy()  : mixed
getAllByIncrementId()  : mixed
getAllRefund()  : mixed
getEntityManager()  : EntityManager
Getter of the Entity Manager
getList_refund_history()  : mixed
getListPreRefundByIncrementId()  : mixed
getRefundDateLimit()  : DateTime
getRepo()  : mixed|RefundRepository
Get refundRepository
getSUMAmountCouponRefund()  : mixed
getSUMAmountRefund()  : mixed
remove()  : mixed
Delete Refund
save()  : Refund
Save a Refund
search()  : mixed
search a Refund
searchAmountSup()  : mixed
searchLog()  : mixed
sendRefundMail()  : mixed
Send refund email
sendRefundMailCoupon()  : mixed
Send Refund Email
sendSms()  : string
setEntityManager()  : mixed
Setter of the Entity Manager

Properties

Methods

addPreRefund()

Adding pre-Refund

public addPreRefund(Sale $sale, mixed $patern, mixed $status, mixed $autorisation[, mixed $user = null ]) : mixed
Parameters
$sale : Sale
$patern : mixed
$status : mixed
$autorisation : mixed
$user : mixed = null
Tags
@return

array['refund','amount']|null

throws
Exception
todo

refactor this function

addRefund()

Add Refund

public addRefund(mixed $sale, mixed $type, mixed $amount, mixed $method, mixed $transactionId, mixed $patern, mixed $doRefundRequest, mixed $status, mixed $autorisation, mixed $user) : Refund
Parameters
$sale : mixed
$type : mixed
$amount : mixed
$method : mixed
$transactionId : mixed
$patern : mixed
$doRefundRequest : mixed
$status : mixed
$autorisation : mixed
$user : mixed
Return values
Refund

addRepository()

Add a repository to this service

public addRepository(int $key, string $class) : void
Parameters
$key : int

Key

$class : string

Class

addService()

Add a service to this service

public addService(int $key, mixed $service) : void
Parameters
$key : int

Key

$service : mixed

findBy()

public findBy([array<string|int, mixed> $params = [] ]) : mixed

use getRepo()->findBy()

Parameters
$params : array<string|int, mixed> = []

getAllByIncrementId()

public getAllByIncrementId(mixed $incrementId) : mixed

use getRepo()->getAllByIncrementId()

Parameters
$incrementId : mixed

getAllRefund()

public getAllRefund(mixed $incrementId, mixed $autorisation) : mixed

use getRepo()->getAllRefund()

Parameters
$incrementId : mixed
$autorisation : mixed

getEntityManager()

Getter of the Entity Manager

public getEntityManager() : EntityManager
Return values
EntityManager

getList_refund_history()

public getList_refund_history(mixed $id) : mixed

use getRepo()->getList_refund_history()

Parameters
$id : mixed

getListPreRefundByIncrementId()

public getListPreRefundByIncrementId(mixed $incrementId) : mixed

use getRepo()->getListPreRefundByIncrementId()

Parameters
$incrementId : mixed

getRefundDateLimit()

public getRefundDateLimit(mixed $date) : DateTime
Parameters
$date : mixed
Return values
DateTime

getSUMAmountCouponRefund()

public getSUMAmountCouponRefund(mixed $incrementId) : mixed

use getRepo()->getSUMAmountCouponRefund()

Parameters
$incrementId : mixed

getSUMAmountRefund()

public getSUMAmountRefund(mixed $incrementId) : mixed

use getRepo()->getSUMAmountRefund()

Parameters
$incrementId : mixed

remove()

Delete Refund

public remove(Refund $refund) : mixed
Parameters
$refund : Refund
Tags
throws
OptimisticLockException

search a Refund

public search(mixed $data[, mixed $page = 0 ][, mixed $max = null ][, mixed $getResult = true ]) : mixed

use getRepo()->search()

Parameters
$data : mixed
$page : mixed = 0
$max : mixed = null
$getResult : mixed = true
Tags
@return

Refund[];

searchAmountSup()

public searchAmountSup(mixed $data[, int $page = 0 ][, null $max = null ][, bool $getResult = true ]) : mixed

use getRepo()->searchAmountSup()

Parameters
$data : mixed
$page : int = 0
$max : null = null
$getResult : bool = true

searchLog()

public searchLog(mixed $data[, int $page = 0 ][, null $max = null ][, bool $getResult = true ]) : mixed

use getRepo()->searchLog()

Parameters
$data : mixed
$page : int = 0
$max : null = null
$getResult : bool = true

sendRefundMail()

Send refund email

public sendRefundMail(Sale $sale, float $amount) : mixed
Parameters
$sale : Sale
$amount : float

sendRefundMailCoupon()

Send Refund Email

public sendRefundMailCoupon(Sale $sale, mixed $amount, mixed $coupon) : mixed
Parameters
$sale : Sale
$amount : mixed
$coupon : mixed

sendSms()

public sendSms(mixed $refund, mixed $sale, mixed $ruleId, mixed $message, mixed $user) : string
Parameters
$refund : mixed
$sale : mixed
$ruleId : mixed
$message : mixed
$user : mixed
Return values
string

setEntityManager()

Setter of the Entity Manager

public setEntityManager(EntityManager $em) : mixed
Parameters
$em : EntityManager

the Entity Manager


        
On this page

Search results