README.md in supersaas-api-client-2.0.1 vs README.md in supersaas-api-client-2.0.2

- old
+ new

@@ -170,19 +170,18 @@ Get recently changed appointments by `schedule_id`, with `from` time, `to` time, `user` user, `slot` view params (see [docs](https://www.supersaas.com/info/dev/appointment_api#recent_changes)), `changes(schedule_id, from_time = nil, to = nil, slot = false, user = nil, limit = nil, offset = nil)`: Supersaas::Client.instance.appointments.changes(12345, '2018-01-31 00:00:00', '2019-01-31 00:00:00', true) #=> [<Supersaas::Appointment>, ...] +#### Get range of appointments -#### Get list of appointments - -Get list of appointments by `schedule_id`, with `today`,`from` time, `to` time and `slot` view params (see [docs](https://www.supersaas.com/info/dev/appointment_api#range)), +Get range of appointments by `schedule_id`, with `today`, `from` time, `to` time and `slot` view params (see [docs](https://www.supersaas.com/info/dev/appointment_api#range)), `range(schedule_id, today = false, from_time = nil, to = nil, slot = false, user = nil, resource_id = nil, service_id = nil, limit = nil, offset = nil)`: Supersaas::Client.instance.appointments.range(12345, false, '2018-01-31 00:00:00', '2019-01-31 00:00:00', true) #=> [<Supersaas::Appointment>, ...]/[<Supersaas::Slot>, ...] -#### List Forms +#### List Template Forms Get all forms by template `superform_id`, with `from_time`, and `user` params ([see](https://www.supersaas.com/info/dev/form_api)): Supersaas::Client.instance.forms.list(12345, '2018-01-31 00:00:00') #=> [<Supersaas::Form>, ...] @@ -198,12 +197,12 @@ Supersaas::Client.instance.forms.forms #=> [<Supersaas::SuperForm>, ...] #### List Promotions -Get a list of promotional coupon codes with paging parameters `limit` and `offset` (see [docs](https://www.supersaas.com/info/dev/promotion_api)), -`list(template_form_id, from_time = nil, user = nil)`: +Get a list of promotional coupon codes with pagination parameters `limit` and `offset` (see [docs](https://www.supersaas.com/info/dev/promotion_api)), +`list(from_time = nil, user = nil)`: Supersaas::Client.instance.promotions.list #=> [<Supersaas::Promotion>, ...] #### Get a single coupon code @@ -211,12 +210,14 @@ Supersaas::Client.instance.promotions.promotion(12345) #=> <Supersaas::Promotion> #### Duplicate promotion code -Duplicate a template promotion by giving (new) `id` and `template_code` in that order: +Duplicate a template promotion by giving (new) `promotion_code` and `template_code` in that order, +duplicate_promotion_code(promotion_code, template_code): - Supersaas::Client.instance.promotions.duplicate_promotion_code(12345) #=> nil + + Supersaas::Client.instance.promotions.duplicate_promotion_code(12345, 94832838) #=> nil #### List Groups in an account List Groups in an account ([see](https://www.supersaas.com/info/dev/information_api)):