Name |
Type |
Description |
Notes |
usage_limit |
Integer |
The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. |
[optional] |
discount_limit |
Float |
The total discount value that the code can give. Typically used to represent a gift card value. |
[optional] |
reservation_limit |
Integer |
The number of reservations that can be made with this coupon code. |
[optional] |
start_date |
DateTime |
Timestamp at which point the coupon becomes valid. |
[optional] |
expiry_date |
DateTime |
Expiration date of the coupon. Coupon never expires if this is omitted. |
[optional] |
limits |
Array<LimitConfig> |
Limits configuration for a coupon. These limits will override the limits set from the campaign. Note: Only usable when creating a single coupon which is not tied to a specific recipient. Only per-profile limits are allowed to be configured. |
[optional] |
recipient_integration_id |
String |
The integration ID for this coupon's beneficiary's profile. |
[optional] |
attributes |
Object |
Arbitrary properties associated with this item. |
[optional] |
is_reservation_mandatory |
Boolean |
An indication of whether the code can be redeemed only if it has been reserved first. |
[optional] [default to false] |
implicitly_reserved |
Boolean |
An indication of whether the coupon is implicitly reserved for all customers. |
[optional] |
require 'TalonOne'
instance = TalonOne::UpdateCoupon.new(usage_limit: 100,
discount_limit: 30.0,
reservation_limit: 45,
start_date: 2020-01-24T14:15:22Z,
expiry_date: 2023-08-24T14:15:22Z,
limits: null,
recipient_integration_id: URNGV8294NV,
attributes: null,
is_reservation_mandatory: false,
implicitly_reserved: false)