omise/omise-node

Property "on" in ICreateSchedule interface it can not be optional property

Closed this issue · 1 comments

i try to call create schedule api from SDK with out "on" property. like a charge every 2 day example. i will get only this { object: 'error', location: 'https://www.omise.co/api-errors#bad-request', code: 'bad_request', message: 'on must be an object and on must contain one of these keys: days_of_month, weekday_of_month' } error.

Ok, i found it. i happen because i set schedule every 1 month, i change it to 30 days. it will be not require "on" property.