Class Incentive
Class Incentive
A resource representing a incentive.
-
PayPal\Common\PayPalModel
-
PayPal\Api\Incentive
Methods summary
public
|
#
setId( string $id )
Identifier of the instrument in PayPal Wallet
Identifier of the instrument in PayPal Wallet
Parameters
Returns
$this
|
public
string
|
#
getId( )
Identifier of the instrument in PayPal Wallet
Identifier of the instrument in PayPal Wallet
Returns
string
|
public
|
#
setCode( string $code )
Code that identifies the incentive.
Code that identifies the incentive.
Parameters
Returns
$this
|
public
string
|
#
getCode( )
Code that identifies the incentive.
Code that identifies the incentive.
Returns
string
|
public
|
#
setName( string $name )
Name of the incentive.
Parameters
Returns
$this
|
public
string
|
#
getName( )
Name of the incentive.
Returns
string
|
public
|
#
setDescription( string $description )
Description of the incentive.
Description of the incentive.
Parameters
Returns
$this
|
public
string
|
#
getDescription( )
Description of the incentive.
Description of the incentive.
Returns
string
|
public
|
#
setMinimumPurchaseAmount( PayPal\Api\Currency $minimum_purchase_amount )
Indicates incentive is applicable for this minimum purchase amount.
Indicates incentive is applicable for this minimum purchase amount.
Parameters
Returns
$this
|
public
PayPal\Api\Currency
|
#
getMinimumPurchaseAmount( )
Indicates incentive is applicable for this minimum purchase amount.
Indicates incentive is applicable for this minimum purchase amount.
Returns
|
public
|
#
setLogoImageUrl( string $logo_image_url )
Logo image url for the incentive.
Logo image url for the incentive.
Parameters
Returns
$this
Throws
InvalidArgumentException
|
public
string
|
#
getLogoImageUrl( )
Logo image url for the incentive.
Logo image url for the incentive.
Returns
string
|
public
|
#
setExpiryDate( string $expiry_date )
expiry date of the incentive.
expiry date of the incentive.
Parameters
Returns
$this
|
public
string
|
#
getExpiryDate( )
expiry date of the incentive.
expiry date of the incentive.
Returns
string
|
public
|
#
setType( string $type )
Specifies type of incentive
Valid Values: ["COUPON", "GIFT_CARD", "MERCHANT_SPECIFIC_BALANCE", "VOUCHER"]
Specifies type of incentive
Valid Values: ["COUPON", "GIFT_CARD", "MERCHANT_SPECIFIC_BALANCE", "VOUCHER"]
Parameters
Returns
$this
|
public
string
|
#
getType( )
Specifies type of incentive
Specifies type of incentive
Returns
string
|
public
|
#
setTerms( string $terms )
URI to the associated terms
URI to the associated terms
Parameters
Returns
$this
|
public
string
|
#
getTerms( )
URI to the associated terms
URI to the associated terms
Returns
string
|
__construct()
,
__get()
,
__isset()
,
__set()
,
__toString()
,
__unset()
,
fromArray()
,
fromJson()
,
getList()
,
setCredential()
,
toArray()
,
toJSON()