{"lexicon":1,"id":"money.atmosphere.discountCode","defs":{"main":{"type":"record","description":"Public customer-facing redemption code for a money.atmosphere.discount.","key":"any","record":{"type":"object","required":["discount","code","createdAt"],"properties":{"discount":{"type":"ref","ref":"com.atproto.repo.strongRef","description":"StrongRef to the money.atmosphere.discount this code redeems."},"code":{"type":"string","maxLength":64,"description":"Customer-facing code. Case-insensitive in Stripe; ATM accepts letters, digits, and dashes."},"name":{"type":"string","maxGraphemes":100,"maxLength":1000},"restrictions":{"type":"object","properties":{"firstTimeTransaction":{"type":"boolean","description":"Stripe-compatible first-time transaction restriction."},"minimumAmount":{"type":"object","required":["currency","unitAmount"],"properties":{"currency":{"type":"string","minLength":3,"maxLength":3,"description":"Lowercase ISO 4217 currency code."},"unitAmount":{"type":"integer","minimum":1,"description":"Minimum payment amount in the smallest currency unit."}}}}},"maxRedemptions":{"type":"integer","minimum":1},"redeemBy":{"type":"string","format":"datetime"},"disabled":{"type":"boolean"},"createdAt":{"type":"string","format":"datetime"},"updatedAt":{"type":"string","format":"datetime"}}}}}}