Skip to content

Commit

Permalink
Merge pull request #91 from hanzoai/commerce/promos-update
Browse files Browse the repository at this point in the history
Commerce: updated promos
  • Loading branch information
zeekay authored Apr 16, 2024
2 parents 1d746db + 4ae5433 commit 1fa431e
Showing 1 changed file with 68 additions and 1 deletion.
69 changes: 68 additions & 1 deletion packages/commerce/util/promo-codes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

import type { Promo } from '../types'

const referallCodeDiscountedSkus = [
'LXM-CR-B-ABT', 'LXM-CR-B-GM', 'LXM-CR-F-CC', 'LXM-CR-F-IC', 'LXM-CR-E-24G', 'LXM-CR-E-SS', 'LXM-CR-S-RT', // credit cards
'LXM-VL-GN', 'LXM-VL-VL', 'LXM-VL-MI', 'LXM-VL-NA', // validators
'LXM-PS-PS', // pass
'LXM-AG-B-1_OZ', // silver
]

const PROMO_CODES: Promo[] = [
{
type: 'percent',
Expand All @@ -11,7 +18,7 @@ const PROMO_CODES: Promo[] = [
{
type: 'percent',
code: 'NASSER',
value: 20
value: 11.11
},
{
type: 'percent',
Expand All @@ -33,6 +40,66 @@ const PROMO_CODES: Promo[] = [
code: 'GENESIS',
value: 99,
skus: ['LXM-PS-PS']
},
{
type: 'percent',
code: 'ANTJE',
value: 33,
skus: referallCodeDiscountedSkus
},
{
type: 'percent',
code: 'ASHLEY',
value: 33,
skus: referallCodeDiscountedSkus
},
{
type: 'percent',
code: 'CALE',
value: 33,
skus: referallCodeDiscountedSkus
},
{
type: 'percent',
code: 'DARA',
value: 33,
skus: referallCodeDiscountedSkus
},
{
type: 'percent',
code: 'KENJI',
value: 33,
skus: referallCodeDiscountedSkus
},
{
type: 'percent',
code: 'MAJOR',
value: 33,
skus: referallCodeDiscountedSkus
},
{
type: 'percent',
code: 'CYRUS',
value: 33,
skus: referallCodeDiscountedSkus
},
{
type: 'percent',
code: 'STOBIE',
value: 33,
skus: referallCodeDiscountedSkus
},
{
type: 'percent',
code: 'SKYLER',
value: 33,
skus: referallCodeDiscountedSkus
},
{
type: 'percent',
code: 'ZEEKAY',
value: 33,
skus: referallCodeDiscountedSkus
}
]

Expand Down

0 comments on commit 1fa431e

Please sign in to comment.