forked from softlayer/softlayer-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSoftLayer_Billing_Order_Quote.py
106 lines (101 loc) · 2.86 KB
/
SoftLayer_Billing_Order_Quote.py
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
getObject = {
'accountId': 1234,
'id': 1234,
'name': 'TestQuote1234',
'quoteKey': '1234test4321',
'order': {
'id': 37623333,
'items': [
{
'categoryCode': 'guest_core',
'description': '4 x 2.0 GHz or higher Cores',
'id': 468394713,
'itemId': 859,
'itemPriceId': '1642',
'oneTimeAfterTaxAmount': '0',
'oneTimeFee': '0',
'oneTimeFeeTaxRate': '0',
'oneTimeTaxAmount': '0',
'quantity': 1,
'recurringAfterTaxAmount': '0',
'recurringFee': '0',
'recurringTaxAmount': '0',
'setupAfterTaxAmount': '0',
'setupFee': '0',
'setupFeeDeferralMonths': None,
'setupFeeTaxRate': '0',
'setupTaxAmount': '0',
'package': {'id': 46, 'keyName': 'CLOUD_SERVER'}
},
]
}
}
getRecalculatedOrderContainer = {
'presetId': '',
'prices': [{
'id': 1921
}],
'quantity': 1,
'packageId': 50,
'useHourlyPricing': '',
'reservedCapacityId': '',
}
verifyOrder = {
'orderId': 1234,
'orderDate': '2013-08-01 15:23:45',
'useHourlyPricing': False,
'prices': [{
'id': 1,
'laborFee': '2',
'oneTimeFee': '2',
'oneTimeFeeTax': '.1',
'quantity': 1,
'recurringFee': '2',
'recurringFeeTax': '.1',
'hourlyRecurringFee': '2',
'setupFee': '1',
'item': {'id': 1, 'description': 'this is a thing', 'keyName': 'TheThing'},
}]}
placeOrder = {
'orderId': 1234,
'orderDate': '2013-08-01 15:23:45',
'orderDetails': {
'prices': [{
'id': 1,
'laborFee': '2',
'oneTimeFee': '2',
'oneTimeFeeTax': '.1',
'quantity': 1,
'recurringFee': '2',
'recurringFeeTax': '.1',
'hourlyRecurringFee': '2',
'setupFee': '1',
'item': {'id': 1, 'description': 'this is a thing'},
}],
'virtualGuests': [{
'id': 1234567,
'globalIdentifier': '1a2b3c-1701',
'fullyQualifiedDomainName': 'test.guest.com'
}],
},
'placedOrder': {
'id': 37985543,
'orderQuoteId': 2639077,
'orderTypeId': 4,
'status': 'PENDING_AUTO_APPROVAL',
'items': [
{
'categoryCode': 'guest_core',
'description': '4 x 2.0 GHz or higher Cores',
'id': 472527133,
'itemId': 859,
'itemPriceId': '1642',
'laborFee': '0',
'oneTimeFee': '0',
'recurringFee': '0',
'setupFee': '0',
}
]
}
}
saveQuote = getObject