{"lexicon":1,"id":"money.atmosphere.catalog.defs","defs":{"appProductRef":{"type":"object","properties":{"type":{"type":"string","knownValues":["shop","commission","membership","membership-tier","custom"],"maxLength":32},"id":{"type":"string","maxLength":512},"uri":{"type":"string","format":"at-uri"},"cid":{"type":"string","format":"cid"}}},"priceInput":{"type":"object","required":["currency","type"],"properties":{"currency":{"type":"string","minLength":3,"maxLength":16},"unitAmount":{"type":"integer","minimum":0,"description":"Amount in the smallest currency unit. Required unless billingScheme is tiered. For customer-chosen amounts, this is the sole default/preset amount shown to the buyer."},"type":{"type":"string","knownValues":["one-time","recurring"],"maxLength":16},"recurring":{"type":"ref","ref":"#recurringInput"},"customUnitAmount":{"type":"ref","ref":"#customUnitAmountInput"},"billingScheme":{"type":"string","knownValues":["per-unit","tiered"],"maxLength":32},"tiersMode":{"type":"string","knownValues":["graduated","volume"],"maxLength":32},"tiers":{"type":"array","maxLength":100,"items":{"type":"ref","ref":"#tierInput"}}}},"recurringInput":{"type":"object","required":["interval"],"properties":{"interval":{"type":"string","knownValues":["day","week","month","year"],"maxLength":16},"intervalCount":{"type":"integer","minimum":1,"maximum":1095,"description":"Number of interval units between billings. Defaults to 1."}}},"customUnitAmountInput":{"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"minimum":{"type":"integer","minimum":1},"maximum":{"type":"integer","minimum":1}}},"tierInput":{"type":"object","properties":{"upTo":{"type":"integer","minimum":1,"description":"Inclusive upper quantity bound for this tier. Omit on the final tier (no upper bound)."},"unitAmount":{"type":"integer","minimum":0},"flatAmount":{"type":"integer","minimum":0}}},"inventoryInput":{"type":"object","required":["trackInventory"],"properties":{"trackInventory":{"type":"boolean"},"quantityTotal":{"type":"integer","minimum":0,"maximum":1000000}}}}}