Allow promo codes to only be redeemed once

This commit is contained in:
NG (Graham) committed 2026-02-07 12:27:48 -05:00
1 parent 514db6fd02
commit 31d7dd462f
7 files changed
+98

No files matched your search

+1
View File
@@ -544,6 +544,7 @@ impl <C: Clone + Send> super::ConfigProvider<C> for CubeConfig {
bundle_id: val.bundle_id.to_owned().unwrap_or_else(|| key.to_owned()),
promo_id: val.promo_id.to_owned().unwrap_or_else(|| key.to_owned()),
is_serial: val.is_serial,
is_repeatable: val.is_repeatable,
value: val.value,
transaction: tx,
});
+1
View File
@@ -498,6 +498,7 @@ pub struct PromoCode {
pub bundle_id: String,
pub promo_id: String,
pub is_serial: bool,
pub is_repeatable: bool,
pub value: f32,
pub transaction: ShopAction,
}