GiftVouchersService
in package
Class GiftVouchersService
Table of Contents
- $giftVouchersConfiguration : mixed
- __construct() : mixed
- createGiftVoucher() : mixed
- createQueueEntry() : IdType
- createVoucherCode() : string
- getAmountByCouponCode() : float
- getCouponByCouponCode() : mixed
- getUnreleasedQueueEntriesByOrder() : array<string|int, mixed>
- releaseQueueEntry() : CouponEntity
Properties
$giftVouchersConfiguration
protected
mixed
$giftVouchersConfiguration
Methods
__construct()
public
__construct(GiftVouchersConfigurationStorage $configuration) : mixed
Parameters
- $configuration : GiftVouchersConfigurationStorage
Return values
mixed —createGiftVoucher()
public
createGiftVoucher(DecimalType $amount) : mixed
Parameters
- $amount : DecimalType
Return values
mixed —createQueueEntry()
public
createQueueEntry(float $amount[, IdType $customerId = null ][, IdType $orderId = null ][, IdType $ordersProductsId = null ]) : IdType
Parameters
- $amount : float
- $customerId : IdType = null
- $orderId : IdType = null
- $ordersProductsId : IdType = null
Return values
IdType —createVoucherCode()
public
createVoucherCode() : string
Return values
string —getAmountByCouponCode()
public
getAmountByCouponCode(string $couponCode) : float
Parameters
- $couponCode : string
Tags
Return values
float —getCouponByCouponCode()
public
getCouponByCouponCode(string $couponCode) : mixed
Parameters
- $couponCode : string
Tags
Return values
mixed —getUnreleasedQueueEntriesByOrder()
public
getUnreleasedQueueEntriesByOrder(IdType $orderId) : array<string|int, mixed>
Parameters
- $orderId : IdType
Tags
Return values
array<string|int, mixed> —releaseQueueEntry()
public
releaseQueueEntry(IdType $uniqueId[, DecimalType|null $amount = null ]) : CouponEntity
Parameters
- $uniqueId : IdType
- $amount : DecimalType|null = null