PromotionsImpl class

Inheritance

Constructors

PromotionsImpl()

Properties

hashCode int
The hash code for this object.
no setterinherited
isInitialized bool
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

activatePromotionByCode(String code, {required void onSuccess(), required void onError(SyneriseError error)}) Future<void>
This function activates a promotion by a given code.
activatePromotionByUUID(String uuid, {required void onSuccess(), required void onError(SyneriseError error)}) Future<void>
This function activates a promotion by its UUID.
activatePromotionsBatch(List<PromotionIdentifier> promotionsToActivate, {required void onSuccess(), required void onError(SyneriseError error)}) Future<void>
This method activates promotions with a code or with UUID in a batch.
afterInitialization() → void
inherited
assignVoucherCode(String poolUuid, {required void onSuccess(AssignVoucherResponse), required void onError(SyneriseError error)}) Future<void>
This method assigns a voucher from a pool identified by UUID to the customer. Every request returns a different code until the pool is empty.
beforeInitialization() → void
inherited
deactivatePromotionByCode(String code, {required void onSuccess(), required void onError(SyneriseError error)}) Future<void>
This function deactivates a promotion by its code.
deactivatePromotionByUUID(String uuid, {required void onSuccess(), required void onError(SyneriseError error)}) Future<void>
This function deactivates a promotion by its UUID.
deactivatePromotionsBatch(List<PromotionIdentifier> promotionsToDeactivate, {required void onSuccess(), required void onError(SyneriseError error)}) Future<void>
This method deactivates promotions with a code or with UUID in a batch.
getAllPromotions({required void onSuccess(PromotionResponse), required void onError(SyneriseError error)}) Future<void>
This method retrieves all available promotions that are defined for a customer.
getAssignedVoucherCodes({required void onSuccess(VoucherCodesResponse), required void onError(SyneriseError error)}) Future<void>
This method retrieves voucher codes for a customer.
getOrAssignVoucher(String poolUuid, {required void onSuccess(AssignVoucherResponse), required void onError(SyneriseError error)}) Future<void>
This method retrieves an assigned voucher code or assigns a voucher from a pool identified by UUID to the customer.
getPromotionByCode(String code, {required void onSuccess(Promotion), required void onError(SyneriseError error)}) Future<void>
This function returns a promotion object by its code.
getPromotionByUUID(String uuid, {required void onSuccess(Promotion), required void onError(SyneriseError error)}) Future<void>
This function retrieves a Promotion object by its UUID.
getPromotions(PromotionsApiQuery promotionsApiQuery, {required void onSuccess(PromotionResponse), required void onError(SyneriseError error)}) Future<void>
This method retrieves promotions that match the parameters defined in an API query.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited