2929
3030## Installation
3131
32- This library requires Python 3.8 to 3.12. It was last tested against Python 2.7 in version 1.3.0.
32+ This library requires Python 3.9 to 3.12. It was last tested against Python 2.7 in version 1.3.0.
3333
3434``` sh
3535pip3 install chartmogul
@@ -106,7 +106,7 @@ except Exception as ex:
106106
107107Available methods in Import API:
108108
109- #### [ Data Sources] ( https://dev.chartmogul.com/docs/data- sources )
109+ #### [ Data Sources] ( https://dev.chartmogul.com/reference/ sources/ )
110110
111111``` python
112112chartmogul.DataSource.create(config, data = {' name' : ' In-house billing' })
@@ -115,7 +115,7 @@ chartmogul.DataSource.all(config)
115115chartmogul.DataSource.destroy(config, uuid = ' ds_5915ee5a-babd-406b-b8ce-d207133fb4cb' )
116116```
117117
118- #### [ Customers] ( https://dev.chartmogul.com/docs /customers )
118+ #### [ Customers] ( https://dev.chartmogul.com/reference /customers/ )
119119
120120``` python
121121chartmogul.Customer.create(config, data = {})
@@ -166,11 +166,13 @@ chartmogul.Customer.contacts(config, uuid='cus_5915ee5a-babd-406b-b8ce-d207133fb
166166chartmogul.Customer.createContact(config, uuid = ' cus_5915ee5a-babd-406b-b8ce-d207133fb4cb' , data = {})
167167chartmogul.Customer.notes(config, uuid = ' cus_5915ee5a-babd-406b-b8ce-d207133fb4cb' , cursor = ' aabbcc' , per_page = 20 )
168168chartmogul.Customer.createNote(config, uuid = ' cus_5915ee5a-babd-406b-b8ce-d207133fb4cb' , data = {})
169- chartmogul.Customer.opporunities (config, uuid = ' cus_5915ee5a-babd-406b-b8ce-d207133fb4cb' , cursor = ' aabbcc' , per_page = 20 )
169+ chartmogul.Customer.opportunities (config, uuid = ' cus_5915ee5a-babd-406b-b8ce-d207133fb4cb' , cursor = ' aabbcc' , per_page = 20 )
170170chartmogul.Customer.createOpportunity(config, uuid = ' cus_5915ee5a-babd-406b-b8ce-d207133fb4cb' , data = {})
171+ chartmogul.Customer.tasks(config, uuid = ' cus_5915ee5a-babd-406b-b8ce-d207133fb4cb' , cursor = ' aabbcc' , per_page = 20 )
172+ chartmogul.Customer.createTask(config, uuid = ' cus_5915ee5a-babd-406b-b8ce-d207133fb4cb' , data = {})
171173```
172174
173- #### [ Contacts] ( https://dev.chartmogul.com/docs /contacts )
175+ #### [ Contacts] ( https://dev.chartmogul.com/reference /contacts/ )
174176
175177``` python
176178chartmogul.Contact.create(config, data = {})
@@ -183,7 +185,7 @@ chartmogul.Contact.modify(config, uuid='con_5915ee5a-babd-406b-b8ce-d207133fb4cb
183185chartmogul.Contact.destroy(config, uuid = ' con_5915ee5a-babd-406b-b8ce-d207133fb4cb' )
184186```
185187
186- #### [ Customer Notes] ( https://dev.chartmogul.com/docs/customer_notes )
188+ #### [ Customer Notes] ( https://dev.chartmogul.com/reference/notes-and-call-logs/ )
187189``` python
188190chartmogul.CustomerNote.create(config, data = {})
189191chartmogul.CustomerNote.all(config, cursor = ' aabbcc' , per_page = 20 , customer_uuid = ' cus_5915ee5a-babd-406b-b8ce-d207133fb4cb' )
@@ -192,7 +194,7 @@ chartmogul.CustomerNote.patch(config, uuid='note_5915ee5a-babd-406b-b8ce-d207133
192194chartmogul.CustomerNote.destroy(config, uuid = ' note_5915ee5a-babd-406b-b8ce-d207133fb4cb' )
193195```
194196
195- #### [ Opportunities] ( https://dev.chartmogul.com/docs /opportunities )
197+ #### [ Opportunities] ( https://dev.chartmogul.com/reference /opportunities/ )
196198
197199``` python
198200chartmogul.Opportunity.create(config, data = {})
@@ -202,15 +204,25 @@ chartmogul.Opportunity.patch(config, uuid='5915ee5a-babd-406b-b8ce-d207133fb4cb'
202204chartmogul.Opportunity.destroy(config, uuid = ' 5915ee5a-babd-406b-b8ce-d207133fb4cb' )
203205```
204206
205- #### [ Customer Attributes] ( https://dev.chartmogul.com/docs/customer-attributes )
207+ #### [ Tasks] ( https://dev.chartmogul.com/reference/tasks/ )
208+
209+ ``` python
210+ chartmogul.Task.create(config, data = {})
211+ chartmogul.Task.all(config, cursor = ' aabbcc' , per_page = 20 , customer_uuid = ' cus_5915ee5a-babd-406b-b8ce-d207133fb4cb' )
212+ chartmogul.Task.retrieve(config, uuid = ' 5915ee5a-babd-406b-b8ce-d207133fb4cb' )
213+ chartmogul.Task.patch(config, uuid = ' 5915ee5a-babd-406b-b8ce-d207133fb4cb' )
214+ chartmogul.Task.destroy(config, uuid = ' 5915ee5a-babd-406b-b8ce-d207133fb4cb' )
215+ ```
216+
217+ #### [ Customer Attributes] ( https://dev.chartmogul.com/reference/customers/attributes/ )
206218
207219Note that the returned attributes of type date are not parsed and stay in string.
208220
209221``` python
210222chartmogul.Attributes.retrieve(config, uuid = ' cus_5915ee5a-babd-406b-b8ce-d207133fb4cb' )
211223```
212224
213- #### [ Tags] ( https://dev.chartmogul.com/docs/ tags )
225+ #### [ Tags] ( https://dev.chartmogul.com/reference/customers/ tags/ )
214226
215227``` python
216228chartmogul.Tags.add(config, uuid = ' cus_5915ee5a-babd-406b-b8ce-d207133fb4cb' , data = {
@@ -225,7 +237,7 @@ chartmogul.Tags.remove(config, uuid='cus_5915ee5a-babd-406b-b8ce-d207133fb4cb',
225237})
226238```
227239
228- #### [ Custom Attributes] ( https://dev.chartmogul.com/docs/custom- attributes )
240+ #### [ Custom Attributes] ( https://dev.chartmogul.com/reference/customers/ attributes/ )
229241
230242``` python
231243chartmogul.CustomAttributes.add(config, uuid = ' cus_5915ee5a-babd-406b-b8ce-d207133fb4cb' , data = {
@@ -250,7 +262,7 @@ chartmogul.CustomAttributes.remove(config, uuid='cus_5915ee5a-babd-406b-b8ce-d20
250262})
251263```
252264
253- #### [ Plans] ( https://dev.chartmogul.com/docs /plans )
265+ #### [ Plans] ( https://dev.chartmogul.com/reference /plans/ )
254266
255267``` python
256268chartmogul.Plan.create(config, data = {})
@@ -262,7 +274,7 @@ chartmogul.Plan.all(config, cursor='cursor==', external_id='')
262274chartmogul.Plan.destroy(config, uuid = ' ' )
263275```
264276
265- #### [ Plan Groups] ( https://dev.chartmogul.com/docs/plan_groups )
277+ #### [ Plan Groups] ( https://dev.chartmogul.com/reference/plan-groups/ )
266278
267279``` python
268280chartmogul.PlanGroup.create(config, data = {})
@@ -273,7 +285,7 @@ chartmogul.PlanGroup.all(config, uuid='plg_5915ee5a-babd-406b-b8ce-d207133fb4cb'
273285chartmogul.PlanGroup.destroy(config, uuid = ' ' )
274286```
275287
276- #### [ Invoices] ( https://dev.chartmogul.com/docs /invoices )
288+ #### [ Invoices] ( https://dev.chartmogul.com/reference /invoices/ )
277289
278290``` python
279291import chartmogul
@@ -284,15 +296,15 @@ chartmogul.Invoice.all(config, customer_uuid='cus_f466e33d-ff2b-4a11-8f85-417eb0
284296chartmogul.Invoice.retrieve(config, uuid = ' inv_22910fc6-c931-48e7-ac12-90d2cb5f0059' )
285297```
286298
287- #### [ Transactions] ( https://dev.chartmogul.com/docs /transactions )
299+ #### [ Transactions] ( https://dev.chartmogul.com/reference /transactions/ )
288300
289301``` python
290302import chartmogul
291303
292304chartmogul.Transaction.create(config, uuid = ' inv_745df1d4-819f-48ee-873d-b5204801e021' , data = {})
293305```
294306
295- #### [ SubscriptionEvents] ( https://dev.chartmogul.com/docs/subscription_events )
307+ #### [ SubscriptionEvents] ( https://dev.chartmogul.com/reference/subscription-events/ )
296308
297309``` python
298310import chartmogul
@@ -323,7 +335,7 @@ chartmogul.SubscriptionEvent.destroy_with_params(config, data={
323335}})
324336```
325337
326- #### [ Subscriptions] ( https://dev.chartmogul.com/docs /subscriptions )
338+ #### [ Subscriptions] ( https://dev.chartmogul.com/reference /subscriptions/ )
327339
328340``` python
329341import chartmogul
@@ -333,7 +345,7 @@ chartmogul.Subscription.cancel(config, uuid='sub_3995ee5a-bbdb-406b-a8ca-d207133
333345chartmogul.Subscription.modify(config, uuid = ' sub_3995ee5a-bbdb-406b-a8ca-d207133fb9bb' data = {' cancellation_dates' : []})
334346```
335347
336- ### [ Metrics API] ( https://dev.chartmogul.com/docs/introduction- metrics-api )
348+ ### [ Metrics API] ( https://dev.chartmogul.com/reference/ metrics/ )
337349
338350Available methods in Metrics API:
339351
0 commit comments