omise / omise-node

Omise Node.js Library
https://docs.opn.ooo
101 stars 52 forks source link

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

Closed ghost closed 3 years ago

ghost commented 3 years ago

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.

ghost commented 3 years ago

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.