Overview
Members-Overview
|
:Number |
|
:String |
|
:timapi.constants.CouponRejectionReason |
|
:timapi.constants.Currency |
|
:Number |
Methods-Overview
- toString() → {String}
- copy(loyaltyCoupon) → {timapi.LoyaltyCoupon}
Constructor
new LoyaltyCoupon(amount, couponId, currency, exponent, couponRejectionReason)
Create loyalty coupon.
Parameters:
Name | Type | Description |
---|---|---|
amount |
Number | Coupon amount. |
couponId |
String | Coupon id. |
currency |
timapi.constants.Currency | Currency. |
exponent |
Number | Exponent. |
couponRejectionReason |
timapi.constants.CouponRejectionReason | Optional: Rejection reason. Set undefined or simply omit, if coupon not rejected. |
Member-List
Methods
toString() → {String}
String representation for debugging purpose.
Returns:
String representation
Type: String
(static) copy(loyaltyCoupon) → {timapi.LoyaltyCoupon}
Creates a copy of a timapi.LoyaltyCoupon object.
Parameters:
Name | Type | Description |
---|---|---|
loyaltyCoupon |
timapi.LoyaltyCoupon | Original |
Returns:
Copy of original
Type: timapi.LoyaltyCoupon