SunnyCashCouponCodeReader
in package
implements
SunnyCashCouponCodeReaderInterface
Class SunnyCashCouponCodeReader
Interfaces, Classes and Traits
- SunnyCashCouponCodeReaderInterface
- Interface SunnyCashCouponCodeReaderInterface
Table of Contents
- $curl : CurlRequest
- __construct() : mixed
- SunnyCashCouponCodeReader constructor.
- getCode() : SunnyCashCouponCode
- Gets a coupon code for the requested coupon.
- requestCode() : mixed
Properties
$curl
protected
CurlRequest
$curl
Methods
__construct()
SunnyCashCouponCodeReader constructor.
public
__construct(CurlRequest $curl) : mixed
Parameters
- $curl : CurlRequest
Return values
mixed —getCode()
Gets a coupon code for the requested coupon.
public
getCode(IdType $id, StringType $transactionId, SunnyCashCustomer $customer) : SunnyCashCouponCode
Parameters
- $id : IdType
- $transactionId : StringType
- $customer : SunnyCashCustomer
Return values
SunnyCashCouponCode —requestCode()
protected
requestCode(IdType $id, StringType $transactionId, SunnyCashCustomer $customer) : mixed
Parameters
- $id : IdType
- $transactionId : StringType
- $customer : SunnyCashCustomer