{"lexicon":1,"id":"money.atmosphere.discount","defs":{"main":{"type":"record","description":"Public ATM discount terms that can be mirrored to processor coupon objects at checkout.","key":"any","record":{"type":"object","required":["createdAt"],"properties":{"name":{"type":"string","maxGraphemes":100,"maxLength":1000},"percentOffBps":{"type":"integer","minimum":1,"maximum":10000,"description":"Percentage discount in basis points. 2500 = 25%. Mutually exclusive with amountOff."},"amountOff":{"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":"Amount off in the smallest currency unit."}}},"duration":{"type":"string","knownValues":["once","forever","repeating"],"maxLength":16,"description":"Stripe-compatible discount duration. Omitted means once."},"durationInMonths":{"type":"integer","minimum":1,"maximum":36,"description":"Required when duration is repeating."},"appliesTo":{"type":"object","properties":{"productUris":{"type":"array","items":{"type":"string","format":"at-uri"},"description":"ATM product URIs this discount can apply to. Empty/absent means any product."},"priceUris":{"type":"array","items":{"type":"string","format":"at-uri"},"description":"ATM price URIs this discount can apply to. Empty/absent means any price."}}},"maxRedemptions":{"type":"integer","minimum":1},"redeemBy":{"type":"string","format":"datetime"},"disabled":{"type":"boolean"},"createdAt":{"type":"string","format":"datetime"},"updatedAt":{"type":"string","format":"datetime"}}}}}}