Skip to content

Latest commit

 

History

History
51 lines (42 loc) · 3.32 KB

File metadata and controls

51 lines (42 loc) · 3.32 KB

CouponCreationJob

Properties

Name Type Description Notes
id int The internal ID of this entity.
created datetime The time this entity was created.
campaign_id int The ID of the campaign that owns this entity.
application_id int The ID of the Application that owns this entity.
account_id int The ID of the account that owns this entity.
usage_limit int The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply.
discount_limit float The total discount value that the code can give. Typically used to represent a gift card value. [optional]
reservation_limit int 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]
number_of_coupons int The number of new coupon codes to generate for the campaign.
coupon_settings CodeGeneratorSettings [optional]
attributes object Arbitrary properties associated with coupons.
is_reservation_mandatory bool An indication of whether the code can be redeemed only if it has been reserved first. [optional] [default to False]
batch_id str The batch ID coupons created by this job will bear.
status str The current status of this request. Possible values: - `pending verification` - `pending` - `completed` - `failed` - `coupon pattern full`
created_amount int The number of coupon codes that were already created for this request.
fail_count int The number of times this job failed.
errors List[str] An array of individual problems encountered during the request.
created_by int ID of the user who created this effect.
communicated bool Whether or not the user that created this job was notified of its final state.
chunk_execution_count int The number of times an attempt to create a chunk of coupons was made during the processing of the job.
chunk_size int The number of coupons that will be created in a single transactions. Coupons will be created in chunks until arriving at the requested amount. [optional]

Example

from talon_one.models.coupon_creation_job import CouponCreationJob

# TODO update the JSON string below
json = "{}"
# create an instance of CouponCreationJob from a JSON string
coupon_creation_job_instance = CouponCreationJob.from_json(json)
# print the JSON string representation of the object
print(CouponCreationJob.to_json())

# convert the object into a dict
coupon_creation_job_dict = coupon_creation_job_instance.to_dict()
# create an instance of CouponCreationJob from a dict
coupon_creation_job_from_dict = CouponCreationJob.from_dict(coupon_creation_job_dict)

[Back to Model list] [Back to API list] [Back to README]