1 package com.atlassian.marketplace.client.model;
2
3 import com.atlassian.marketplace.client.api.EnumWithKey;
4
5 /**
6 * Indicates which payment system, if any, is used for buying licenses for an add-on.
7 * @since 2.0.0
8 */
9 public enum PaymentModel implements EnumWithKey
10 {
11 /**
12 * The add-on does not require purchase.
13 */
14 FREE("free"),
15 /**
16 * The add-on can be purchased through the vendor.
17 */
18 PAID_VIA_VENDOR("vendor"),
19 /**
20 * The add-on can be purchased through the Atlassian Marketplace.
21 */
22 PAID_VIA_ATLASSIAN("atlassian");
23
24 private final String key;
25
26 private PaymentModel(String key)
27 {
28 this.key = key;
29 }
30
31 @Override
32 public String getKey()
33 {
34 return key;
35 }
36 }