Class: LoyaltyCoupon

timapi.LoyaltyCoupon(amount, couponId, currency, exponent, couponRejectionReason)

Contains information for a loyalty coupon.

Overview

Members-Overview

Methods-Overview

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

amount :Number

Coupon amount.

couponId :String

Coupon ID.

exponent :Number

Exponent.

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