mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Allow promo codes to only be redeemed once
This commit is contained in:
1 parent
514db6fd02
commit
31d7dd462f
7 files changed
+98
No files matched your search
@@ -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,
|
||||
});
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user