-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathdeepdataintegrations.py
More file actions
180 lines (114 loc) · 3.81 KB
/
deepdataintegrations.py
File metadata and controls
180 lines (114 loc) · 3.81 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
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
class DeepDataIntegrations(object):
def __init__(self, client):
self.client = client
def create_a_connection(self, data):
"""
Create a connection resource
Args:
data:
Returns:
"""
return self.client._post("/connections", json=data)
def retrieve_a_connection(self, connection_id):
"""
Retrieve an existing connection resource
Args:
connection_id:
Returns:
"""
return self.client._get("/connections/{}".format(connection_id))
def update_a_connection(self, connection_id, data):
"""
Update an existing connection resource
Args:
connection_id:
data:
Returns:
"""
return self.client._put("/connections/{}".format(connection_id), json=data)
def delete_a_connection(self, connection_id):
"""
Delete an existing connection resource
Args:
connection_id:
Returns:
"""
return self.client._delete("/connections/{}".format(connection_id))
def list_all_connections(self, **params):
return self.client._get("/connections", params=params)
def create_an_ecommerce_customer(self, data):
"""
Create a new e-commerce customer resource
Args:
data:
Returns:
"""
return self.client._post("/ecomCustomers", json=data)
def retrieve_an_ecommerce_customer(self, customer_id):
"""
Retrieve an existing e-commerce customer resource
Args:
customer_id:
Returns:
"""
return self.client._get("/ecomCustomers/{}".format(customer_id))
def update_an_ecommerce_customer(self, customer_id, data):
"""
Retrieve an existing e-commerce customer resource
Args:
customer_id:
data:
Returns:
"""
return self.client._put("/ecomCustomers/{}".format(customer_id), json=data)
def delete_an_ecommerce_customer(self, customer_id):
"""
Delete an existing e-commerce customer resource
Args:
customer_id:
Returns:
"""
return self.client._delete("/ecomCustomers/{}".format(customer_id))
def list_all_ecommerce_customers(self, **params):
return self.client._get("/ecomCustomers", params=params)
def create_an_ecommerce_order(self, data):
"""
Create a new e-commerce order resource
Args:
data:
Returns:
"""
return self.client._post("/ecomOrders", json=data)
def retrieve_an_ecommerce_order(self, order_id):
"""
Retrieve an existing new e-commerce order resource
Args:
order_id:
Returns:
"""
return self.client._get("/ecomOrders/{}".format(order_id))
def delete_an_ecommerce_order(self, order_id):
"""
Delete an existing e-commerce order resource
Args:
order_id:
Returns:
"""
return self.client._delete("/ecomOrders/{}".format(order_id))
def list_all_ecommerce_orders(self, **params):
return self.client._get("/ecomOrders", params=params)
def update_an_ecommerce_order(self, order_id, data):
"""
Update an existing ecommerce order/cart resource.
Args:
order_id:
data:
Returns:
"""
return self.client._put("/ecomOrders/{}".format(order_id), json=data)
def list_ecommerce_order_products(self):
raise NotImplementedError
def list_ecommerce_order_products_for_a_specific_ecommerce_order(self):
raise NotImplementedError
def retrieve_an_ecommerce_order_product(self):
raise NotImplementedError