-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathconstants.py
More file actions
59 lines (51 loc) · 1.28 KB
/
constants.py
File metadata and controls
59 lines (51 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# -*- coding: utf-8 -*-
# This file is part of the CloudBlue Connect connect-cli.
# Copyright (c) 2019-2025 CloudBlue. All Rights Reserved.
PARAM_TYPES = [
'email',
'address',
'checkbox',
'choice',
'domain',
'subdomain',
'url',
'dropdown',
'object',
'password',
'phone',
'text',
]
PRECISIONS = ('integer', 'decimal(1)', 'decimal(2)', 'decimal(4)', 'decimal(8)')
COMMITMENT = ('-', '1 year', '2 years', '3 years', '4 years', '5 years', '6 years')
BILLING_PERIOD = (
'onetime',
'monthly',
'yearly',
'2 years',
'3 years',
'4 years',
'5 years',
'6 years',
)
ALLOWED_COMMITMENTS = {
'monthly': COMMITMENT,
'yearly': COMMITMENT,
'2 years': ('-', '4 years', '6 years'),
'3 years': ('-', '6 years'),
'4 years': ('-',),
'5 years': ('-',),
'6 years': ('-',),
'onetime': ('-',),
}
CAPABILITIES = (
'Pay-as-you-go support and schema',
'Pay-as-you-go dynamic items support',
'Pay-as-you-go future charges support',
'Pay-as-you-go late charges support',
'Consumption reporting for Reservation Items',
'Dynamic Validation of the Draft Requests',
'Dynamic Validation of the Inquiring Form',
'Reseller Authorization Level',
'Tier Accounts Sync',
'Administrative Hold',
)