File: SoftLayer_Billing_Order.py

package info (click to toggle)
python-softlayer 6.2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,508 kB
  • sloc: python: 57,195; makefile: 133; xml: 97; sh: 59
file content (72 lines) | stat: -rw-r--r-- 1,940 bytes parent folder | download | duplicates (2)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
getAllObjects = [{
    'accountId': 123456,
    'createDate': '2020-09-15T13:12:08-06:00',
    'id': 112356450,
    'modifyDate': '2020-09-15T13:13:13-06:00',
    'status': 'COMPLETED',
    'userRecordId': 987456321,
    'userRecord': {
        'username': 'test@test.com'
    },
    'items': [
        {
            'categoryCode': 'port_speed',
            'description': '100 Mbps Private Network Uplink'
        },
        {
            'categoryCode': 'service_port',
            'description': '100 Mbps Private Uplink'
        },
        {
            'categoryCode': 'public_port',
            'description': '0 Mbps Public Uplink'
        }
    ],
    'orderApprovalDate': '2020-09-15T13:13:13-06:00',
    'orderTotalAmount': '0'
},
    {
        'accountId': 123456,
        'createDate': '2019-09-15T13:12:08-06:00',
        'id': 645698550,
        'modifyDate': '2019-09-15T13:13:13-06:00',
        'status': 'COMPLETED',
        'userRecordId': 987456321,
        'userRecord': {
            'username': 'test@test.com'
        },
        'items': [
            {
                'categoryCode': 'port_speed',
                'description': '100 Mbps Private Network Uplink'
            },

        ],
        'orderApprovalDate': '2019-09-15T13:13:13-06:00',
        'orderTotalAmount': '0'
}]

getObject = {
    'accountId': 1234,
    'createDate': '2020-09-23T16:22:30-06:00',
    'id': 6543210,
    'impersonatingUserRecordId': None,
    'initialInvoice': {
        'amount': '0',
        'id': 60012345,
        'invoiceTotalAmount': '0'
    },
    'items': [{
        'description': 'Dual Intel Xeon Silver 4210 (20 Cores, 2.20 GHz)'
    }],
    'modifyDate': '2020-09-23T16:22:32-06:00',
    'orderQuoteId': None,
    'orderTypeId': 11,
    'presaleEventId': None,
    'privateCloudOrderFlag': False,
    'status': 'APPROVED',
    'userRecord': {
        'displayName': 'testUser'
    },
    'userRecordId': 7654321,
}