-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recurly.Event #459
Recurly.Event #459
Conversation
20e7c76
to
fb7c2c7
Compare
lib/recurly/event.js
Outdated
* @param {Object} options | ||
* @param {String} options.name event name | ||
*/ | ||
payload ({ name }) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you planning on using other properties in the future? If not, probably easier to just accept a single string argument instead of passing in the whole object and pulling a single prop.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes exactly, the payload here will accept more properties as they are introduced. Those will come in an upcoming PR to this branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
- Adds `EventDispatcher`, instantiated on each `Recurly` instance at `recurly.event` Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
- Queues requests to fire until the instance is ready to make requests Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
- Improved organization of error generation Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
- Fixes ErrorDirectory init Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
- Adds IntervalWorker - Updates EventDispatcher to use a worker to dispatch events in ten second intervals - Updates Request to accept empty responses Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
- Dispatches events when pricing changes occur Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
- Metadata is used to send useful information alongside an event Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
- Adds Recurly.report to simplify calls - Updates pricing meta payloads Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
- differentiates between ‘checkout’ and ‘subscription’ reporting Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
- Clones owned objects before they are emitted - Checkout and Subscription pricing instances would return objects in their proomise chains which could mutate the corresponding item on the pricing instance Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
- Setting a coupon on a pricing instance would unnecessarily try to unset prior coupoons, resulting in noisy events - unset.coupon will now only fire if an exisiting coupoon oon a pricing instance is removed Signed-off-by: Christopher Rogers <chrissrogers@gmail.com> # Conflicts: # lib/recurly/pricing/checkout/index.js
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Recurly.event
feature