Skip to content

Latest commit

 

History

History
213 lines (198 loc) · 7.31 KB

File metadata and controls

213 lines (198 loc) · 7.31 KB

VoucherWithStats

Properties

Name Type Description Notes
totalUsed Integer Total times the voucher was used [optional]
totalCustomers Integer Total amount of customers who used this voucher [optional]
totalAmountFromOrders Double Total amount of money from orders [optional]
totalDiscounted Double Total amount of money given away [optional]
averageOrderSize Double Average Order Size [optional]
voucherId Integer Voucher Id [optional]
status StatusEnum Voucher Status [optional]
voucherType VoucherTypeEnum Voucher Type [optional]
currency CurrencyEnum Currency of the voucher [optional]
storeNames List<String> Stores that this voucher applies to [optional]
promotionDetails PromotionDetails Promotion details [optional]
creditNoteDetails CreditNoteDetails Credit note details [optional]
lumpDiscountDetails LumpDiscountDetails Lump discount details [optional]
percentDiscountDetails PercentDiscountDetails Percent discount details [optional]
code String Voucher Code [optional]
description String Voucher Description (Visible on printout) [optional]
stores List<Integer> Stores that this voucher applies to [optional]
validOnOrdersOver Double Valid on orders on or above [optional]
takesPriority Boolean Takes priority [optional]
isEnabled Boolean Is voucher enabled [optional]
isAutomaticallyApplied Boolean Is voucher automatically applied [optional]
includeDeliveryFee Boolean Include delivery fees [optional]
isValidForDeliveryOrders Boolean Valid for delivery orders [optional]
isValidForPickupOrders Boolean Valid for pickup orders [optional]
isValidForOrdersPayedOnline Boolean Valid for orders payed online [optional]
isValidForOrdersPayedByCash Boolean Valid for orders payed in cash [optional]
isValidForFirstOrderOnly Boolean Valid only on the first order by the customer [optional]
isValidOncePerCustomer Boolean Valid once per customer [optional]
isValidOnlyOnce Boolean Valid only once, by any customer (once used cannot be used again by any other customer) [optional]
isDiscoverable Boolean Enables the voucher to be offered in the Voucher Discoverability feature [optional]
forceDiscount Boolean Force the discount to be applied which bypasses some menu restrictions [optional]
startDate OffsetDateTime Voucher Starts On (Time in UTC) [optional]
expiryDate OffsetDateTime Voucher Expires On (Time in UTC) [optional]
channelRestrictions List<ChannelRestrictionsEnum> Limit the channels this voucher can be used on [optional]
validityPeriods List<ValidityPeriod> Periods in which the voucher is valid. An empty list means the voucher is valid at all times. When updating the voucher, if this is set to null, the validity periods won't be updated. [optional]
voucherSubType VoucherSubTypeEnum Voucher Subtype [optional]
customerId Integer Customer UserID [optional]
maxRedemptions Integer Maximum number of times the voucher can be redeemed (used) [optional]

Enum: StatusEnum

Name Value
VALID "Valid"
NOTYETVALID "NotYetValid"
EXPIRED "Expired"
USED "Used"
DISABLED "Disabled"

Enum: VoucherTypeEnum

Name Value
PERCENTAGEDISCOUNT "PercentageDiscount"
LUMPDISCOUNT "LumpDiscount"
ADDITEM "AddItem"
CREDITNOTE "CreditNote"
FREEDELIVERY "FreeDelivery"

Enum: CurrencyEnum

Name Value
EUR "EUR"
USD "USD"
GBP "GBP"
CAD "CAD"
AUD "AUD"
DJF "DJF"
ZAR "ZAR"
ETB "ETB"
AED "AED"
BHD "BHD"
DZD "DZD"
EGP "EGP"
IQD "IQD"
JOD "JOD"
KWD "KWD"
LBP "LBP"
LYD "LYD"
MAD "MAD"
OMR "OMR"
QAR "QAR"
SAR "SAR"
SYP "SYP"
TND "TND"
YER "YER"
CLP "CLP"
INR "INR"
AZN "AZN"
RUB "RUB"
BYN "BYN"
BGN "BGN"
NGN "NGN"
BDT "BDT"
CNY "CNY"
BAM "BAM"
CZK "CZK"
DKK "DKK"
CHF "CHF"
MVR "MVR"
BTN "BTN"
XCD "XCD"
BZD "BZD"
HKD "HKD"
IDR "IDR"
JMD "JMD"
MYR "MYR"
NZD "NZD"
PHP "PHP"
SGD "SGD"
TTD "TTD"
XDR "XDR"
ARS "ARS"
BOB "BOB"
COP "COP"
CRC "CRC"
CUP "CUP"
DOP "DOP"
GTQ "GTQ"
HNL "HNL"
MXN "MXN"
NIO "NIO"
PAB "PAB"
PEN "PEN"
PYG "PYG"
UYU "UYU"
VEF "VEF"
IRR "IRR"
XOF "XOF"
CDF "CDF"
XAF "XAF"
HTG "HTG"
ILS "ILS"
HRK "HRK"
HUF "HUF"
AMD "AMD"
ISK "ISK"
JPY "JPY"
GEL "GEL"
KZT "KZT"
KHR "KHR"
KRW "KRW"
KGS "KGS"
LAK "LAK"
MKD "MKD"
MNT "MNT"
BND "BND"
MMK "MMK"
NOK "NOK"
NPR "NPR"
PKR "PKR"
PLN "PLN"
AFN "AFN"
BRL "BRL"
MDL "MDL"
RON "RON"
RWF "RWF"
SEK "SEK"
LKR "LKR"
SOS "SOS"
ALL "ALL"
RSD "RSD"
KES "KES"
TJS "TJS"
THB "THB"
ERN "ERN"
TMT "TMT"
BWP "BWP"
TRY "TRY"
UAH "UAH"
UZS "UZS"
VND "VND"
MOP "MOP"
TWD "TWD"
BMD "BMD"

Enum: List<ChannelRestrictionsEnum>

Name Value
IOS "Ios"
ANDROID "Android"
WEB "Web"
KIOSK "Kiosk"
POS "Pos"
GOOGLE "Google"

Enum: VoucherSubTypeEnum

Name Value
NONE "None"
SIGNUP "SignUp"
LOYALTY "Loyalty"
LOYALTY25 "Loyalty25"
RETENTION "Retention"
SECONDARYRETENTION "SecondaryRetention"
CUSTOM "Custom"