Class: Stripe::StripeEventNotificationHandlerBase
- Inherits:
-
Object
- Object
- Stripe::StripeEventNotificationHandlerBase
show all
- Defined in:
- lib/stripe/stripe_event_notification_handler.rb
Overview
Shared internal registration and dispatch machinery for the two user-facing event handlers.
Instance Method Summary
collapse
Constructor Details
Returns a new instance of StripeEventNotificationHandlerBase.
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 14
def initialize(client, &fallback_callback)
raise ArgumentError, "You must pass a block to act as a fallback" if fallback_callback.nil?
@client = client
@fallback_callback = fallback_callback
@registered_handlers = {}
@has_handled_events = false
@pre_handle_callback = nil
end
|
Instance Method Details
#inspect ⇒ Object
The default inspect renders every instance variable, which would
include the client's API key and the webhook secret.
27
28
29
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 27
def inspect
"#<#{self.class}:0x#{object_id.to_s(16)}>"
end
|
#on_v1_account_application_authorized(&callback) ⇒ Object
event-handler-methods: The beginning of the section generated from our OpenAPI spec
92
93
94
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 92
def on_v1_account_application_authorized(&callback)
register("v1.account.application.authorized", &callback)
end
|
#on_v1_account_application_deauthorized(&callback) ⇒ Object
96
97
98
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 96
def on_v1_account_application_deauthorized(&callback)
register("v1.account.application.deauthorized", &callback)
end
|
#on_v1_account_external_account_created(&callback) ⇒ Object
100
101
102
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 100
def on_v1_account_external_account_created(&callback)
register("v1.account.external_account.created", &callback)
end
|
#on_v1_account_external_account_deleted(&callback) ⇒ Object
104
105
106
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 104
def on_v1_account_external_account_deleted(&callback)
register("v1.account.external_account.deleted", &callback)
end
|
#on_v1_account_external_account_updated(&callback) ⇒ Object
108
109
110
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 108
def on_v1_account_external_account_updated(&callback)
register("v1.account.external_account.updated", &callback)
end
|
#on_v1_account_updated(&callback) ⇒ Object
112
113
114
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 112
def on_v1_account_updated(&callback)
register("v1.account.updated", &callback)
end
|
#on_v1_application_fee_created(&callback) ⇒ Object
116
117
118
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 116
def on_v1_application_fee_created(&callback)
register("v1.application_fee.created", &callback)
end
|
#on_v1_application_fee_refund_updated(&callback) ⇒ Object
120
121
122
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 120
def on_v1_application_fee_refund_updated(&callback)
register("v1.application_fee.refund.updated", &callback)
end
|
#on_v1_application_fee_refunded(&callback) ⇒ Object
124
125
126
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 124
def on_v1_application_fee_refunded(&callback)
register("v1.application_fee.refunded", &callback)
end
|
#on_v1_balance_available(&callback) ⇒ Object
128
129
130
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 128
def on_v1_balance_available(&callback)
register("v1.balance.available", &callback)
end
|
#on_v1_balance_settings_updated(&callback) ⇒ Object
132
133
134
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 132
def on_v1_balance_settings_updated(&callback)
register("v1.balance_settings.updated", &callback)
end
|
#on_v1_billing_alert_triggered(&callback) ⇒ Object
136
137
138
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 136
def on_v1_billing_alert_triggered(&callback)
register("v1.billing.alert.triggered", &callback)
end
|
#on_v1_billing_credit_balance_transaction_created(&callback) ⇒ Object
140
141
142
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 140
def on_v1_billing_credit_balance_transaction_created(&callback)
register("v1.billing.credit_balance_transaction.created", &callback)
end
|
#on_v1_billing_credit_grant_created(&callback) ⇒ Object
144
145
146
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 144
def on_v1_billing_credit_grant_created(&callback)
register("v1.billing.credit_grant.created", &callback)
end
|
#on_v1_billing_credit_grant_updated(&callback) ⇒ Object
148
149
150
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 148
def on_v1_billing_credit_grant_updated(&callback)
register("v1.billing.credit_grant.updated", &callback)
end
|
#on_v1_billing_meter_created(&callback) ⇒ Object
152
153
154
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 152
def on_v1_billing_meter_created(&callback)
register("v1.billing.meter.created", &callback)
end
|
#on_v1_billing_meter_deactivated(&callback) ⇒ Object
156
157
158
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 156
def on_v1_billing_meter_deactivated(&callback)
register("v1.billing.meter.deactivated", &callback)
end
|
#on_v1_billing_meter_error_report_triggered(&callback) ⇒ Object
160
161
162
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 160
def on_v1_billing_meter_error_report_triggered(&callback)
register("v1.billing.meter.error_report_triggered", &callback)
end
|
#on_v1_billing_meter_no_meter_found(&callback) ⇒ Object
164
165
166
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 164
def on_v1_billing_meter_no_meter_found(&callback)
register("v1.billing.meter.no_meter_found", &callback)
end
|
#on_v1_billing_meter_reactivated(&callback) ⇒ Object
168
169
170
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 168
def on_v1_billing_meter_reactivated(&callback)
register("v1.billing.meter.reactivated", &callback)
end
|
#on_v1_billing_meter_updated(&callback) ⇒ Object
172
173
174
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 172
def on_v1_billing_meter_updated(&callback)
register("v1.billing.meter.updated", &callback)
end
|
#on_v1_billing_portal_configuration_created(&callback) ⇒ Object
176
177
178
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 176
def on_v1_billing_portal_configuration_created(&callback)
register("v1.billing_portal.configuration.created", &callback)
end
|
#on_v1_billing_portal_configuration_updated(&callback) ⇒ Object
180
181
182
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 180
def on_v1_billing_portal_configuration_updated(&callback)
register("v1.billing_portal.configuration.updated", &callback)
end
|
#on_v1_billing_portal_session_created(&callback) ⇒ Object
184
185
186
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 184
def on_v1_billing_portal_session_created(&callback)
register("v1.billing_portal.session.created", &callback)
end
|
#on_v1_capability_updated(&callback) ⇒ Object
188
189
190
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 188
def on_v1_capability_updated(&callback)
register("v1.capability.updated", &callback)
end
|
#on_v1_cash_balance_funds_available(&callback) ⇒ Object
192
193
194
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 192
def on_v1_cash_balance_funds_available(&callback)
register("v1.cash_balance.funds_available", &callback)
end
|
#on_v1_charge_captured(&callback) ⇒ Object
196
197
198
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 196
def on_v1_charge_captured(&callback)
register("v1.charge.captured", &callback)
end
|
#on_v1_charge_dispute_closed(&callback) ⇒ Object
200
201
202
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 200
def on_v1_charge_dispute_closed(&callback)
register("v1.charge.dispute.closed", &callback)
end
|
#on_v1_charge_dispute_created(&callback) ⇒ Object
204
205
206
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 204
def on_v1_charge_dispute_created(&callback)
register("v1.charge.dispute.created", &callback)
end
|
#on_v1_charge_dispute_funds_reinstated(&callback) ⇒ Object
208
209
210
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 208
def on_v1_charge_dispute_funds_reinstated(&callback)
register("v1.charge.dispute.funds_reinstated", &callback)
end
|
#on_v1_charge_dispute_funds_withdrawn(&callback) ⇒ Object
212
213
214
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 212
def on_v1_charge_dispute_funds_withdrawn(&callback)
register("v1.charge.dispute.funds_withdrawn", &callback)
end
|
#on_v1_charge_dispute_updated(&callback) ⇒ Object
216
217
218
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 216
def on_v1_charge_dispute_updated(&callback)
register("v1.charge.dispute.updated", &callback)
end
|
#on_v1_charge_expired(&callback) ⇒ Object
220
221
222
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 220
def on_v1_charge_expired(&callback)
register("v1.charge.expired", &callback)
end
|
#on_v1_charge_failed(&callback) ⇒ Object
224
225
226
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 224
def on_v1_charge_failed(&callback)
register("v1.charge.failed", &callback)
end
|
#on_v1_charge_pending(&callback) ⇒ Object
228
229
230
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 228
def on_v1_charge_pending(&callback)
register("v1.charge.pending", &callback)
end
|
#on_v1_charge_refund_updated(&callback) ⇒ Object
232
233
234
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 232
def on_v1_charge_refund_updated(&callback)
register("v1.charge.refund.updated", &callback)
end
|
#on_v1_charge_refunded(&callback) ⇒ Object
236
237
238
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 236
def on_v1_charge_refunded(&callback)
register("v1.charge.refunded", &callback)
end
|
#on_v1_charge_succeeded(&callback) ⇒ Object
240
241
242
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 240
def on_v1_charge_succeeded(&callback)
register("v1.charge.succeeded", &callback)
end
|
#on_v1_charge_updated(&callback) ⇒ Object
244
245
246
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 244
def on_v1_charge_updated(&callback)
register("v1.charge.updated", &callback)
end
|
#on_v1_checkout_session_async_payment_failed(&callback) ⇒ Object
248
249
250
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 248
def on_v1_checkout_session_async_payment_failed(&callback)
register("v1.checkout.session.async_payment_failed", &callback)
end
|
#on_v1_checkout_session_async_payment_succeeded(&callback) ⇒ Object
252
253
254
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 252
def on_v1_checkout_session_async_payment_succeeded(&callback)
register("v1.checkout.session.async_payment_succeeded", &callback)
end
|
#on_v1_checkout_session_completed(&callback) ⇒ Object
256
257
258
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 256
def on_v1_checkout_session_completed(&callback)
register("v1.checkout.session.completed", &callback)
end
|
#on_v1_checkout_session_expired(&callback) ⇒ Object
260
261
262
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 260
def on_v1_checkout_session_expired(&callback)
register("v1.checkout.session.expired", &callback)
end
|
#on_v1_climate_order_canceled(&callback) ⇒ Object
264
265
266
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 264
def on_v1_climate_order_canceled(&callback)
register("v1.climate.order.canceled", &callback)
end
|
#on_v1_climate_order_created(&callback) ⇒ Object
268
269
270
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 268
def on_v1_climate_order_created(&callback)
register("v1.climate.order.created", &callback)
end
|
#on_v1_climate_order_delayed(&callback) ⇒ Object
272
273
274
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 272
def on_v1_climate_order_delayed(&callback)
register("v1.climate.order.delayed", &callback)
end
|
#on_v1_climate_order_delivered(&callback) ⇒ Object
276
277
278
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 276
def on_v1_climate_order_delivered(&callback)
register("v1.climate.order.delivered", &callback)
end
|
#on_v1_climate_order_product_substituted(&callback) ⇒ Object
280
281
282
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 280
def on_v1_climate_order_product_substituted(&callback)
register("v1.climate.order.product_substituted", &callback)
end
|
#on_v1_climate_product_created(&callback) ⇒ Object
284
285
286
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 284
def on_v1_climate_product_created(&callback)
register("v1.climate.product.created", &callback)
end
|
#on_v1_climate_product_pricing_updated(&callback) ⇒ Object
288
289
290
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 288
def on_v1_climate_product_pricing_updated(&callback)
register("v1.climate.product.pricing_updated", &callback)
end
|
#on_v1_coupon_created(&callback) ⇒ Object
292
293
294
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 292
def on_v1_coupon_created(&callback)
register("v1.coupon.created", &callback)
end
|
#on_v1_coupon_deleted(&callback) ⇒ Object
296
297
298
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 296
def on_v1_coupon_deleted(&callback)
register("v1.coupon.deleted", &callback)
end
|
#on_v1_coupon_updated(&callback) ⇒ Object
300
301
302
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 300
def on_v1_coupon_updated(&callback)
register("v1.coupon.updated", &callback)
end
|
#on_v1_credit_note_created(&callback) ⇒ Object
304
305
306
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 304
def on_v1_credit_note_created(&callback)
register("v1.credit_note.created", &callback)
end
|
#on_v1_credit_note_updated(&callback) ⇒ Object
308
309
310
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 308
def on_v1_credit_note_updated(&callback)
register("v1.credit_note.updated", &callback)
end
|
#on_v1_credit_note_voided(&callback) ⇒ Object
312
313
314
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 312
def on_v1_credit_note_voided(&callback)
register("v1.credit_note.voided", &callback)
end
|
#on_v1_customer_cash_balance_transaction_created(&callback) ⇒ Object
440
441
442
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 440
def on_v1_customer_cash_balance_transaction_created(&callback)
register("v1.customer_cash_balance_transaction.created", &callback)
end
|
#on_v1_customer_created(&callback) ⇒ Object
316
317
318
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 316
def on_v1_customer_created(&callback)
register("v1.customer.created", &callback)
end
|
#on_v1_customer_deleted(&callback) ⇒ Object
320
321
322
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 320
def on_v1_customer_deleted(&callback)
register("v1.customer.deleted", &callback)
end
|
#on_v1_customer_discount_created(&callback) ⇒ Object
324
325
326
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 324
def on_v1_customer_discount_created(&callback)
register("v1.customer.discount.created", &callback)
end
|
#on_v1_customer_discount_deleted(&callback) ⇒ Object
328
329
330
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 328
def on_v1_customer_discount_deleted(&callback)
register("v1.customer.discount.deleted", &callback)
end
|
#on_v1_customer_discount_source_changed(&callback) ⇒ Object
332
333
334
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 332
def on_v1_customer_discount_source_changed(&callback)
register("v1.customer.discount.source_changed", &callback)
end
|
#on_v1_customer_discount_updated(&callback) ⇒ Object
336
337
338
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 336
def on_v1_customer_discount_updated(&callback)
register("v1.customer.discount.updated", &callback)
end
|
#on_v1_customer_subscription_active(&callback) ⇒ Object
340
341
342
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 340
def on_v1_customer_subscription_active(&callback)
register("v1.customer.subscription.active", &callback)
end
|
#on_v1_customer_subscription_cancel_at_changed(&callback) ⇒ Object
344
345
346
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 344
def on_v1_customer_subscription_cancel_at_changed(&callback)
register("v1.customer.subscription.cancel_at_changed", &callback)
end
|
#on_v1_customer_subscription_created(&callback) ⇒ Object
348
349
350
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 348
def on_v1_customer_subscription_created(&callback)
register("v1.customer.subscription.created", &callback)
end
|
#on_v1_customer_subscription_default_payment_method_changed(&callback) ⇒ Object
352
353
354
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 352
def on_v1_customer_subscription_default_payment_method_changed(&callback)
register("v1.customer.subscription.default_payment_method_changed", &callback)
end
|
#on_v1_customer_subscription_deleted(&callback) ⇒ Object
356
357
358
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 356
def on_v1_customer_subscription_deleted(&callback)
register("v1.customer.subscription.deleted", &callback)
end
|
#on_v1_customer_subscription_incomplete(&callback) ⇒ Object
360
361
362
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 360
def on_v1_customer_subscription_incomplete(&callback)
register("v1.customer.subscription.incomplete", &callback)
end
|
#on_v1_customer_subscription_incomplete_expired(&callback) ⇒ Object
364
365
366
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 364
def on_v1_customer_subscription_incomplete_expired(&callback)
register("v1.customer.subscription.incomplete_expired", &callback)
end
|
#on_v1_customer_subscription_item_added(&callback) ⇒ Object
368
369
370
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 368
def on_v1_customer_subscription_item_added(&callback)
register("v1.customer.subscription.item_added", &callback)
end
|
#on_v1_customer_subscription_item_price_changed(&callback) ⇒ Object
372
373
374
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 372
def on_v1_customer_subscription_item_price_changed(&callback)
register("v1.customer.subscription.item_price_changed", &callback)
end
|
#on_v1_customer_subscription_item_quantity_changed(&callback) ⇒ Object
376
377
378
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 376
def on_v1_customer_subscription_item_quantity_changed(&callback)
register("v1.customer.subscription.item_quantity_changed", &callback)
end
|
#on_v1_customer_subscription_item_removed(&callback) ⇒ Object
380
381
382
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 380
def on_v1_customer_subscription_item_removed(&callback)
register("v1.customer.subscription.item_removed", &callback)
end
|
#on_v1_customer_subscription_item_tax_rates_changed(&callback) ⇒ Object
384
385
386
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 384
def on_v1_customer_subscription_item_tax_rates_changed(&callback)
register("v1.customer.subscription.item_tax_rates_changed", &callback)
end
|
#on_v1_customer_subscription_past_due(&callback) ⇒ Object
388
389
390
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 388
def on_v1_customer_subscription_past_due(&callback)
register("v1.customer.subscription.past_due", &callback)
end
|
#on_v1_customer_subscription_paused(&callback) ⇒ Object
392
393
394
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 392
def on_v1_customer_subscription_paused(&callback)
register("v1.customer.subscription.paused", &callback)
end
|
#on_v1_customer_subscription_pending_update_applied(&callback) ⇒ Object
396
397
398
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 396
def on_v1_customer_subscription_pending_update_applied(&callback)
register("v1.customer.subscription.pending_update_applied", &callback)
end
|
#on_v1_customer_subscription_pending_update_expired(&callback) ⇒ Object
400
401
402
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 400
def on_v1_customer_subscription_pending_update_expired(&callback)
register("v1.customer.subscription.pending_update_expired", &callback)
end
|
#on_v1_customer_subscription_resumed(&callback) ⇒ Object
404
405
406
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 404
def on_v1_customer_subscription_resumed(&callback)
register("v1.customer.subscription.resumed", &callback)
end
|
#on_v1_customer_subscription_trial_will_end(&callback) ⇒ Object
408
409
410
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 408
def on_v1_customer_subscription_trial_will_end(&callback)
register("v1.customer.subscription.trial_will_end", &callback)
end
|
#on_v1_customer_subscription_trialing(&callback) ⇒ Object
412
413
414
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 412
def on_v1_customer_subscription_trialing(&callback)
register("v1.customer.subscription.trialing", &callback)
end
|
#on_v1_customer_subscription_unpaid(&callback) ⇒ Object
416
417
418
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 416
def on_v1_customer_subscription_unpaid(&callback)
register("v1.customer.subscription.unpaid", &callback)
end
|
#on_v1_customer_subscription_updated(&callback) ⇒ Object
420
421
422
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 420
def on_v1_customer_subscription_updated(&callback)
register("v1.customer.subscription.updated", &callback)
end
|
#on_v1_customer_tax_id_created(&callback) ⇒ Object
424
425
426
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 424
def on_v1_customer_tax_id_created(&callback)
register("v1.customer.tax_id.created", &callback)
end
|
#on_v1_customer_tax_id_deleted(&callback) ⇒ Object
428
429
430
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 428
def on_v1_customer_tax_id_deleted(&callback)
register("v1.customer.tax_id.deleted", &callback)
end
|
#on_v1_customer_tax_id_updated(&callback) ⇒ Object
432
433
434
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 432
def on_v1_customer_tax_id_updated(&callback)
register("v1.customer.tax_id.updated", &callback)
end
|
#on_v1_customer_updated(&callback) ⇒ Object
436
437
438
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 436
def on_v1_customer_updated(&callback)
register("v1.customer.updated", &callback)
end
|
#on_v1_entitlements_active_entitlement_summary_entitlement_added(&callback) ⇒ Object
444
445
446
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 444
def on_v1_entitlements_active_entitlement_summary_entitlement_added(&callback)
register("v1.entitlements.active_entitlement_summary.entitlement_added", &callback)
end
|
#on_v1_entitlements_active_entitlement_summary_entitlement_removed(&callback) ⇒ Object
448
449
450
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 448
def on_v1_entitlements_active_entitlement_summary_entitlement_removed(&callback)
register("v1.entitlements.active_entitlement_summary.entitlement_removed", &callback)
end
|
#on_v1_entitlements_active_entitlement_summary_updated(&callback) ⇒ Object
452
453
454
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 452
def on_v1_entitlements_active_entitlement_summary_updated(&callback)
register("v1.entitlements.active_entitlement_summary.updated", &callback)
end
|
#on_v1_file_created(&callback) ⇒ Object
456
457
458
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 456
def on_v1_file_created(&callback)
register("v1.file.created", &callback)
end
|
#on_v1_financial_connections_account_account_numbers_updated(&callback) ⇒ Object
460
461
462
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 460
def on_v1_financial_connections_account_account_numbers_updated(&callback)
register("v1.financial_connections.account.account_numbers_updated", &callback)
end
|
#on_v1_financial_connections_account_balance_refresh_failed(&callback) ⇒ Object
464
465
466
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 464
def on_v1_financial_connections_account_balance_refresh_failed(&callback)
register("v1.financial_connections.account.balance_refresh_failed", &callback)
end
|
#on_v1_financial_connections_account_balance_refresh_succeeded(&callback) ⇒ Object
468
469
470
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 468
def on_v1_financial_connections_account_balance_refresh_succeeded(&callback)
register("v1.financial_connections.account.balance_refresh_succeeded", &callback)
end
|
#on_v1_financial_connections_account_created(&callback) ⇒ Object
472
473
474
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 472
def on_v1_financial_connections_account_created(&callback)
register("v1.financial_connections.account.created", &callback)
end
|
#on_v1_financial_connections_account_deactivated(&callback) ⇒ Object
476
477
478
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 476
def on_v1_financial_connections_account_deactivated(&callback)
register("v1.financial_connections.account.deactivated", &callback)
end
|
#on_v1_financial_connections_account_disconnected(&callback) ⇒ Object
480
481
482
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 480
def on_v1_financial_connections_account_disconnected(&callback)
register("v1.financial_connections.account.disconnected", &callback)
end
|
#on_v1_financial_connections_account_expected_deactivation_date_updated(&callback) ⇒ Object
484
485
486
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 484
def on_v1_financial_connections_account_expected_deactivation_date_updated(&callback)
register("v1.financial_connections.account.expected_deactivation_date_updated", &callback)
end
|
#on_v1_financial_connections_account_inferred_balances_refresh_failed(&callback) ⇒ Object
488
489
490
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 488
def on_v1_financial_connections_account_inferred_balances_refresh_failed(&callback)
register("v1.financial_connections.account.inferred_balances_refresh_failed", &callback)
end
|
#on_v1_financial_connections_account_inferred_balances_refresh_succeeded(&callback) ⇒ Object
492
493
494
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 492
def on_v1_financial_connections_account_inferred_balances_refresh_succeeded(&callback)
register("v1.financial_connections.account.inferred_balances_refresh_succeeded", &callback)
end
|
#on_v1_financial_connections_account_ownership_refresh_failed(&callback) ⇒ Object
496
497
498
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 496
def on_v1_financial_connections_account_ownership_refresh_failed(&callback)
register("v1.financial_connections.account.ownership_refresh_failed", &callback)
end
|
#on_v1_financial_connections_account_ownership_refresh_succeeded(&callback) ⇒ Object
500
501
502
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 500
def on_v1_financial_connections_account_ownership_refresh_succeeded(&callback)
register("v1.financial_connections.account.ownership_refresh_succeeded", &callback)
end
|
#on_v1_financial_connections_account_reactivated(&callback) ⇒ Object
504
505
506
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 504
def on_v1_financial_connections_account_reactivated(&callback)
register("v1.financial_connections.account.reactivated", &callback)
end
|
#on_v1_financial_connections_account_refreshed_balance(&callback) ⇒ Object
508
509
510
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 508
def on_v1_financial_connections_account_refreshed_balance(&callback)
register("v1.financial_connections.account.refreshed_balance", &callback)
end
|
#on_v1_financial_connections_account_refreshed_ownership(&callback) ⇒ Object
512
513
514
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 512
def on_v1_financial_connections_account_refreshed_ownership(&callback)
register("v1.financial_connections.account.refreshed_ownership", &callback)
end
|
#on_v1_financial_connections_account_refreshed_transactions(&callback) ⇒ Object
516
517
518
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 516
def on_v1_financial_connections_account_refreshed_transactions(&callback)
register("v1.financial_connections.account.refreshed_transactions", &callback)
end
|
#on_v1_financial_connections_account_risk_intelligence_refresh_failed(&callback) ⇒ Object
520
521
522
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 520
def on_v1_financial_connections_account_risk_intelligence_refresh_failed(&callback)
register("v1.financial_connections.account.risk_intelligence_refresh_failed", &callback)
end
|
#on_v1_financial_connections_account_risk_intelligence_refresh_succeeded(&callback) ⇒ Object
524
525
526
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 524
def on_v1_financial_connections_account_risk_intelligence_refresh_succeeded(&callback)
register("v1.financial_connections.account.risk_intelligence_refresh_succeeded", &callback)
end
|
#on_v1_financial_connections_account_supported_payment_method_types_updated(&callback) ⇒ Object
528
529
530
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 528
def on_v1_financial_connections_account_supported_payment_method_types_updated(&callback)
register("v1.financial_connections.account.supported_payment_method_types_updated", &callback)
end
|
#on_v1_financial_connections_account_transactions_refresh_failed(&callback) ⇒ Object
532
533
534
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 532
def on_v1_financial_connections_account_transactions_refresh_failed(&callback)
register("v1.financial_connections.account.transactions_refresh_failed", &callback)
end
|
#on_v1_financial_connections_account_transactions_refresh_succeeded(&callback) ⇒ Object
536
537
538
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 536
def on_v1_financial_connections_account_transactions_refresh_succeeded(&callback)
register("v1.financial_connections.account.transactions_refresh_succeeded", &callback)
end
|
#on_v1_financial_connections_account_upcoming_account_number_expiry(&callback) ⇒ Object
540
541
542
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 540
def on_v1_financial_connections_account_upcoming_account_number_expiry(&callback)
register("v1.financial_connections.account.upcoming_account_number_expiry", &callback)
end
|
#on_v1_financial_connections_account_upcoming_deactivation(&callback) ⇒ Object
544
545
546
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 544
def on_v1_financial_connections_account_upcoming_deactivation(&callback)
register("v1.financial_connections.account.upcoming_deactivation", &callback)
end
|
#on_v1_identity_verification_session_canceled(&callback) ⇒ Object
548
549
550
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 548
def on_v1_identity_verification_session_canceled(&callback)
register("v1.identity.verification_session.canceled", &callback)
end
|
#on_v1_identity_verification_session_created(&callback) ⇒ Object
552
553
554
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 552
def on_v1_identity_verification_session_created(&callback)
register("v1.identity.verification_session.created", &callback)
end
|
#on_v1_identity_verification_session_processing(&callback) ⇒ Object
556
557
558
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 556
def on_v1_identity_verification_session_processing(&callback)
register("v1.identity.verification_session.processing", &callback)
end
|
#on_v1_identity_verification_session_redacted(&callback) ⇒ Object
560
561
562
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 560
def on_v1_identity_verification_session_redacted(&callback)
register("v1.identity.verification_session.redacted", &callback)
end
|
564
565
566
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 564
def on_v1_identity_verification_session_requires_input(&callback)
register("v1.identity.verification_session.requires_input", &callback)
end
|
#on_v1_identity_verification_session_verified(&callback) ⇒ Object
568
569
570
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 568
def on_v1_identity_verification_session_verified(&callback)
register("v1.identity.verification_session.verified", &callback)
end
|
#on_v1_invoice_created(&callback) ⇒ Object
572
573
574
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 572
def on_v1_invoice_created(&callback)
register("v1.invoice.created", &callback)
end
|
#on_v1_invoice_deleted(&callback) ⇒ Object
576
577
578
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 576
def on_v1_invoice_deleted(&callback)
register("v1.invoice.deleted", &callback)
end
|
#on_v1_invoice_discount_added(&callback) ⇒ Object
580
581
582
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 580
def on_v1_invoice_discount_added(&callback)
register("v1.invoice.discount_added", &callback)
end
|
#on_v1_invoice_discount_removed(&callback) ⇒ Object
584
585
586
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 584
def on_v1_invoice_discount_removed(&callback)
register("v1.invoice.discount_removed", &callback)
end
|
#on_v1_invoice_finalization_failed(&callback) ⇒ Object
588
589
590
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 588
def on_v1_invoice_finalization_failed(&callback)
register("v1.invoice.finalization_failed", &callback)
end
|
#on_v1_invoice_finalized(&callback) ⇒ Object
592
593
594
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 592
def on_v1_invoice_finalized(&callback)
register("v1.invoice.finalized", &callback)
end
|
#on_v1_invoice_line_item_added(&callback) ⇒ Object
596
597
598
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 596
def on_v1_invoice_line_item_added(&callback)
register("v1.invoice.line_item_added", &callback)
end
|
#on_v1_invoice_line_item_pricing_changed(&callback) ⇒ Object
600
601
602
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 600
def on_v1_invoice_line_item_pricing_changed(&callback)
register("v1.invoice.line_item_pricing_changed", &callback)
end
|
#on_v1_invoice_line_item_quantity_changed(&callback) ⇒ Object
604
605
606
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 604
def on_v1_invoice_line_item_quantity_changed(&callback)
register("v1.invoice.line_item_quantity_changed", &callback)
end
|
#on_v1_invoice_line_item_removed(&callback) ⇒ Object
608
609
610
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 608
def on_v1_invoice_line_item_removed(&callback)
register("v1.invoice.line_item_removed", &callback)
end
|
#on_v1_invoice_marked_uncollectible(&callback) ⇒ Object
612
613
614
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 612
def on_v1_invoice_marked_uncollectible(&callback)
register("v1.invoice.marked_uncollectible", &callback)
end
|
#on_v1_invoice_overdue(&callback) ⇒ Object
616
617
618
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 616
def on_v1_invoice_overdue(&callback)
register("v1.invoice.overdue", &callback)
end
|
#on_v1_invoice_overpaid(&callback) ⇒ Object
620
621
622
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 620
def on_v1_invoice_overpaid(&callback)
register("v1.invoice.overpaid", &callback)
end
|
#on_v1_invoice_paid(&callback) ⇒ Object
624
625
626
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 624
def on_v1_invoice_paid(&callback)
register("v1.invoice.paid", &callback)
end
|
#on_v1_invoice_payment_action_required(&callback) ⇒ Object
628
629
630
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 628
def on_v1_invoice_payment_action_required(&callback)
register("v1.invoice.payment_action_required", &callback)
end
|
#on_v1_invoice_payment_attempt_required(&callback) ⇒ Object
632
633
634
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 632
def on_v1_invoice_payment_attempt_required(&callback)
register("v1.invoice.payment_attempt_required", &callback)
end
|
#on_v1_invoice_payment_canceled(&callback) ⇒ Object
664
665
666
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 664
def on_v1_invoice_payment_canceled(&callback)
register("v1.invoice_payment.canceled", &callback)
end
|
#on_v1_invoice_payment_failed(&callback) ⇒ Object
636
637
638
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 636
def on_v1_invoice_payment_failed(&callback)
register("v1.invoice.payment_failed", &callback)
end
|
#on_v1_invoice_payment_open(&callback) ⇒ Object
668
669
670
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 668
def on_v1_invoice_payment_open(&callback)
register("v1.invoice_payment.open", &callback)
end
|
#on_v1_invoice_payment_paid(&callback) ⇒ Object
672
673
674
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 672
def on_v1_invoice_payment_paid(&callback)
register("v1.invoice_payment.paid", &callback)
end
|
#on_v1_invoice_payment_succeeded(&callback) ⇒ Object
640
641
642
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 640
def on_v1_invoice_payment_succeeded(&callback)
register("v1.invoice.payment_succeeded", &callback)
end
|
#on_v1_invoice_sent(&callback) ⇒ Object
644
645
646
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 644
def on_v1_invoice_sent(&callback)
register("v1.invoice.sent", &callback)
end
|
#on_v1_invoice_upcoming(&callback) ⇒ Object
648
649
650
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 648
def on_v1_invoice_upcoming(&callback)
register("v1.invoice.upcoming", &callback)
end
|
#on_v1_invoice_updated(&callback) ⇒ Object
652
653
654
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 652
def on_v1_invoice_updated(&callback)
register("v1.invoice.updated", &callback)
end
|
#on_v1_invoice_voided(&callback) ⇒ Object
656
657
658
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 656
def on_v1_invoice_voided(&callback)
register("v1.invoice.voided", &callback)
end
|
#on_v1_invoice_will_be_due(&callback) ⇒ Object
660
661
662
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 660
def on_v1_invoice_will_be_due(&callback)
register("v1.invoice.will_be_due", &callback)
end
|
#on_v1_invoiceitem_amount_changed(&callback) ⇒ Object
676
677
678
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 676
def on_v1_invoiceitem_amount_changed(&callback)
register("v1.invoiceitem.amount_changed", &callback)
end
|
#on_v1_invoiceitem_created(&callback) ⇒ Object
680
681
682
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 680
def on_v1_invoiceitem_created(&callback)
register("v1.invoiceitem.created", &callback)
end
|
#on_v1_invoiceitem_deleted(&callback) ⇒ Object
684
685
686
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 684
def on_v1_invoiceitem_deleted(&callback)
register("v1.invoiceitem.deleted", &callback)
end
|
#on_v1_invoiceitem_discount_added(&callback) ⇒ Object
688
689
690
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 688
def on_v1_invoiceitem_discount_added(&callback)
register("v1.invoiceitem.discount_added", &callback)
end
|
#on_v1_invoiceitem_discount_removed(&callback) ⇒ Object
692
693
694
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 692
def on_v1_invoiceitem_discount_removed(&callback)
register("v1.invoiceitem.discount_removed", &callback)
end
|
#on_v1_issuing_authorization_created(&callback) ⇒ Object
696
697
698
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 696
def on_v1_issuing_authorization_created(&callback)
register("v1.issuing_authorization.created", &callback)
end
|
#on_v1_issuing_authorization_request(&callback) ⇒ Object
700
701
702
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 700
def on_v1_issuing_authorization_request(&callback)
register("v1.issuing_authorization.request", &callback)
end
|
#on_v1_issuing_authorization_updated(&callback) ⇒ Object
704
705
706
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 704
def on_v1_issuing_authorization_updated(&callback)
register("v1.issuing_authorization.updated", &callback)
end
|
#on_v1_issuing_card_created(&callback) ⇒ Object
708
709
710
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 708
def on_v1_issuing_card_created(&callback)
register("v1.issuing_card.created", &callback)
end
|
#on_v1_issuing_card_updated(&callback) ⇒ Object
712
713
714
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 712
def on_v1_issuing_card_updated(&callback)
register("v1.issuing_card.updated", &callback)
end
|
#on_v1_issuing_cardholder_created(&callback) ⇒ Object
716
717
718
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 716
def on_v1_issuing_cardholder_created(&callback)
register("v1.issuing_cardholder.created", &callback)
end
|
#on_v1_issuing_cardholder_updated(&callback) ⇒ Object
720
721
722
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 720
def on_v1_issuing_cardholder_updated(&callback)
register("v1.issuing_cardholder.updated", &callback)
end
|
#on_v1_issuing_dispute_closed(&callback) ⇒ Object
724
725
726
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 724
def on_v1_issuing_dispute_closed(&callback)
register("v1.issuing_dispute.closed", &callback)
end
|
#on_v1_issuing_dispute_created(&callback) ⇒ Object
728
729
730
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 728
def on_v1_issuing_dispute_created(&callback)
register("v1.issuing_dispute.created", &callback)
end
|
#on_v1_issuing_dispute_funds_reinstated(&callback) ⇒ Object
732
733
734
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 732
def on_v1_issuing_dispute_funds_reinstated(&callback)
register("v1.issuing_dispute.funds_reinstated", &callback)
end
|
#on_v1_issuing_dispute_funds_rescinded(&callback) ⇒ Object
736
737
738
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 736
def on_v1_issuing_dispute_funds_rescinded(&callback)
register("v1.issuing_dispute.funds_rescinded", &callback)
end
|
#on_v1_issuing_dispute_submitted(&callback) ⇒ Object
740
741
742
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 740
def on_v1_issuing_dispute_submitted(&callback)
register("v1.issuing_dispute.submitted", &callback)
end
|
#on_v1_issuing_dispute_updated(&callback) ⇒ Object
744
745
746
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 744
def on_v1_issuing_dispute_updated(&callback)
register("v1.issuing_dispute.updated", &callback)
end
|
#on_v1_issuing_personalization_design_activated(&callback) ⇒ Object
748
749
750
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 748
def on_v1_issuing_personalization_design_activated(&callback)
register("v1.issuing_personalization_design.activated", &callback)
end
|
#on_v1_issuing_personalization_design_deactivated(&callback) ⇒ Object
752
753
754
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 752
def on_v1_issuing_personalization_design_deactivated(&callback)
register("v1.issuing_personalization_design.deactivated", &callback)
end
|
#on_v1_issuing_personalization_design_rejected(&callback) ⇒ Object
756
757
758
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 756
def on_v1_issuing_personalization_design_rejected(&callback)
register("v1.issuing_personalization_design.rejected", &callback)
end
|
#on_v1_issuing_personalization_design_updated(&callback) ⇒ Object
760
761
762
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 760
def on_v1_issuing_personalization_design_updated(&callback)
register("v1.issuing_personalization_design.updated", &callback)
end
|
#on_v1_issuing_token_created(&callback) ⇒ Object
764
765
766
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 764
def on_v1_issuing_token_created(&callback)
register("v1.issuing_token.created", &callback)
end
|
#on_v1_issuing_token_updated(&callback) ⇒ Object
768
769
770
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 768
def on_v1_issuing_token_updated(&callback)
register("v1.issuing_token.updated", &callback)
end
|
#on_v1_issuing_transaction_created(&callback) ⇒ Object
772
773
774
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 772
def on_v1_issuing_transaction_created(&callback)
register("v1.issuing_transaction.created", &callback)
end
|
#on_v1_issuing_transaction_purchase_details_receipt_updated(&callback) ⇒ Object
776
777
778
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 776
def on_v1_issuing_transaction_purchase_details_receipt_updated(&callback)
register("v1.issuing_transaction.purchase_details_receipt_updated", &callback)
end
|
#on_v1_issuing_transaction_updated(&callback) ⇒ Object
780
781
782
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 780
def on_v1_issuing_transaction_updated(&callback)
register("v1.issuing_transaction.updated", &callback)
end
|
#on_v1_mandate_updated(&callback) ⇒ Object
784
785
786
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 784
def on_v1_mandate_updated(&callback)
register("v1.mandate.updated", &callback)
end
|
#on_v1_payment_intent_amount_capturable_updated(&callback) ⇒ Object
788
789
790
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 788
def on_v1_payment_intent_amount_capturable_updated(&callback)
register("v1.payment_intent.amount_capturable_updated", &callback)
end
|
#on_v1_payment_intent_canceled(&callback) ⇒ Object
792
793
794
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 792
def on_v1_payment_intent_canceled(&callback)
register("v1.payment_intent.canceled", &callback)
end
|
#on_v1_payment_intent_created(&callback) ⇒ Object
796
797
798
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 796
def on_v1_payment_intent_created(&callback)
register("v1.payment_intent.created", &callback)
end
|
#on_v1_payment_intent_partially_funded(&callback) ⇒ Object
800
801
802
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 800
def on_v1_payment_intent_partially_funded(&callback)
register("v1.payment_intent.partially_funded", &callback)
end
|
#on_v1_payment_intent_payment_failed(&callback) ⇒ Object
804
805
806
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 804
def on_v1_payment_intent_payment_failed(&callback)
register("v1.payment_intent.payment_failed", &callback)
end
|
#on_v1_payment_intent_processing(&callback) ⇒ Object
808
809
810
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 808
def on_v1_payment_intent_processing(&callback)
register("v1.payment_intent.processing", &callback)
end
|
#on_v1_payment_intent_requires_action(&callback) ⇒ Object
812
813
814
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 812
def on_v1_payment_intent_requires_action(&callback)
register("v1.payment_intent.requires_action", &callback)
end
|
#on_v1_payment_intent_succeeded(&callback) ⇒ Object
816
817
818
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 816
def on_v1_payment_intent_succeeded(&callback)
register("v1.payment_intent.succeeded", &callback)
end
|
#on_v1_payment_link_created(&callback) ⇒ Object
820
821
822
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 820
def on_v1_payment_link_created(&callback)
register("v1.payment_link.created", &callback)
end
|
#on_v1_payment_link_updated(&callback) ⇒ Object
824
825
826
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 824
def on_v1_payment_link_updated(&callback)
register("v1.payment_link.updated", &callback)
end
|
#on_v1_payment_method_attached(&callback) ⇒ Object
828
829
830
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 828
def on_v1_payment_method_attached(&callback)
register("v1.payment_method.attached", &callback)
end
|
#on_v1_payment_method_automatically_updated(&callback) ⇒ Object
832
833
834
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 832
def on_v1_payment_method_automatically_updated(&callback)
register("v1.payment_method.automatically_updated", &callback)
end
|
#on_v1_payment_method_detached(&callback) ⇒ Object
836
837
838
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 836
def on_v1_payment_method_detached(&callback)
register("v1.payment_method.detached", &callback)
end
|
#on_v1_payment_method_updated(&callback) ⇒ Object
840
841
842
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 840
def on_v1_payment_method_updated(&callback)
register("v1.payment_method.updated", &callback)
end
|
#on_v1_payout_canceled(&callback) ⇒ Object
844
845
846
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 844
def on_v1_payout_canceled(&callback)
register("v1.payout.canceled", &callback)
end
|
#on_v1_payout_created(&callback) ⇒ Object
848
849
850
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 848
def on_v1_payout_created(&callback)
register("v1.payout.created", &callback)
end
|
#on_v1_payout_failed(&callback) ⇒ Object
852
853
854
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 852
def on_v1_payout_failed(&callback)
register("v1.payout.failed", &callback)
end
|
#on_v1_payout_paid(&callback) ⇒ Object
856
857
858
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 856
def on_v1_payout_paid(&callback)
register("v1.payout.paid", &callback)
end
|
#on_v1_payout_reconciliation_completed(&callback) ⇒ Object
860
861
862
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 860
def on_v1_payout_reconciliation_completed(&callback)
register("v1.payout.reconciliation_completed", &callback)
end
|
#on_v1_payout_updated(&callback) ⇒ Object
864
865
866
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 864
def on_v1_payout_updated(&callback)
register("v1.payout.updated", &callback)
end
|
#on_v1_person_created(&callback) ⇒ Object
868
869
870
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 868
def on_v1_person_created(&callback)
register("v1.person.created", &callback)
end
|
#on_v1_person_deleted(&callback) ⇒ Object
872
873
874
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 872
def on_v1_person_deleted(&callback)
register("v1.person.deleted", &callback)
end
|
#on_v1_person_updated(&callback) ⇒ Object
876
877
878
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 876
def on_v1_person_updated(&callback)
register("v1.person.updated", &callback)
end
|
#on_v1_plan_created(&callback) ⇒ Object
880
881
882
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 880
def on_v1_plan_created(&callback)
register("v1.plan.created", &callback)
end
|
#on_v1_plan_deleted(&callback) ⇒ Object
884
885
886
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 884
def on_v1_plan_deleted(&callback)
register("v1.plan.deleted", &callback)
end
|
#on_v1_plan_updated(&callback) ⇒ Object
888
889
890
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 888
def on_v1_plan_updated(&callback)
register("v1.plan.updated", &callback)
end
|
#on_v1_price_activated(&callback) ⇒ Object
892
893
894
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 892
def on_v1_price_activated(&callback)
register("v1.price.activated", &callback)
end
|
#on_v1_price_created(&callback) ⇒ Object
896
897
898
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 896
def on_v1_price_created(&callback)
register("v1.price.created", &callback)
end
|
#on_v1_price_deactivated(&callback) ⇒ Object
900
901
902
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 900
def on_v1_price_deactivated(&callback)
register("v1.price.deactivated", &callback)
end
|
#on_v1_price_deleted(&callback) ⇒ Object
904
905
906
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 904
def on_v1_price_deleted(&callback)
register("v1.price.deleted", &callback)
end
|
#on_v1_price_lookup_key_changed(&callback) ⇒ Object
908
909
910
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 908
def on_v1_price_lookup_key_changed(&callback)
register("v1.price.lookup_key_changed", &callback)
end
|
#on_v1_price_tax_behavior_changed(&callback) ⇒ Object
912
913
914
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 912
def on_v1_price_tax_behavior_changed(&callback)
register("v1.price.tax_behavior_changed", &callback)
end
|
#on_v1_price_updated(&callback) ⇒ Object
916
917
918
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 916
def on_v1_price_updated(&callback)
register("v1.price.updated", &callback)
end
|
#on_v1_product_activated(&callback) ⇒ Object
920
921
922
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 920
def on_v1_product_activated(&callback)
register("v1.product.activated", &callback)
end
|
#on_v1_product_created(&callback) ⇒ Object
924
925
926
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 924
def on_v1_product_created(&callback)
register("v1.product.created", &callback)
end
|
#on_v1_product_deactivated(&callback) ⇒ Object
928
929
930
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 928
def on_v1_product_deactivated(&callback)
register("v1.product.deactivated", &callback)
end
|
#on_v1_product_default_price_changed(&callback) ⇒ Object
932
933
934
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 932
def on_v1_product_default_price_changed(&callback)
register("v1.product.default_price_changed", &callback)
end
|
#on_v1_product_deleted(&callback) ⇒ Object
936
937
938
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 936
def on_v1_product_deleted(&callback)
register("v1.product.deleted", &callback)
end
|
#on_v1_product_tax_code_changed(&callback) ⇒ Object
940
941
942
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 940
def on_v1_product_tax_code_changed(&callback)
register("v1.product.tax_code_changed", &callback)
end
|
#on_v1_product_updated(&callback) ⇒ Object
944
945
946
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 944
def on_v1_product_updated(&callback)
register("v1.product.updated", &callback)
end
|
948
949
950
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 948
def on_v1_promotion_code_created(&callback)
register("v1.promotion_code.created", &callback)
end
|
952
953
954
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 952
def on_v1_promotion_code_fully_redeemed(&callback)
register("v1.promotion_code.fully_redeemed", &callback)
end
|
956
957
958
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 956
def on_v1_promotion_code_updated(&callback)
register("v1.promotion_code.updated", &callback)
end
|
#on_v1_quote_accepted(&callback) ⇒ Object
960
961
962
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 960
def on_v1_quote_accepted(&callback)
register("v1.quote.accepted", &callback)
end
|
#on_v1_quote_canceled(&callback) ⇒ Object
964
965
966
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 964
def on_v1_quote_canceled(&callback)
register("v1.quote.canceled", &callback)
end
|
#on_v1_quote_created(&callback) ⇒ Object
968
969
970
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 968
def on_v1_quote_created(&callback)
register("v1.quote.created", &callback)
end
|
#on_v1_quote_finalized(&callback) ⇒ Object
972
973
974
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 972
def on_v1_quote_finalized(&callback)
register("v1.quote.finalized", &callback)
end
|
#on_v1_radar_early_fraud_warning_created(&callback) ⇒ Object
976
977
978
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 976
def on_v1_radar_early_fraud_warning_created(&callback)
register("v1.radar.early_fraud_warning.created", &callback)
end
|
#on_v1_radar_early_fraud_warning_updated(&callback) ⇒ Object
980
981
982
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 980
def on_v1_radar_early_fraud_warning_updated(&callback)
register("v1.radar.early_fraud_warning.updated", &callback)
end
|
#on_v1_refund_created(&callback) ⇒ Object
984
985
986
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 984
def on_v1_refund_created(&callback)
register("v1.refund.created", &callback)
end
|
#on_v1_refund_failed(&callback) ⇒ Object
988
989
990
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 988
def on_v1_refund_failed(&callback)
register("v1.refund.failed", &callback)
end
|
#on_v1_refund_updated(&callback) ⇒ Object
992
993
994
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 992
def on_v1_refund_updated(&callback)
register("v1.refund.updated", &callback)
end
|
#on_v1_review_closed(&callback) ⇒ Object
996
997
998
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 996
def on_v1_review_closed(&callback)
register("v1.review.closed", &callback)
end
|
#on_v1_review_opened(&callback) ⇒ Object
1000
1001
1002
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1000
def on_v1_review_opened(&callback)
register("v1.review.opened", &callback)
end
|
#on_v1_setup_intent_canceled(&callback) ⇒ Object
1004
1005
1006
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1004
def on_v1_setup_intent_canceled(&callback)
register("v1.setup_intent.canceled", &callback)
end
|
#on_v1_setup_intent_created(&callback) ⇒ Object
1008
1009
1010
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1008
def on_v1_setup_intent_created(&callback)
register("v1.setup_intent.created", &callback)
end
|
#on_v1_setup_intent_requires_action(&callback) ⇒ Object
1012
1013
1014
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1012
def on_v1_setup_intent_requires_action(&callback)
register("v1.setup_intent.requires_action", &callback)
end
|
#on_v1_setup_intent_setup_failed(&callback) ⇒ Object
1016
1017
1018
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1016
def on_v1_setup_intent_setup_failed(&callback)
register("v1.setup_intent.setup_failed", &callback)
end
|
#on_v1_setup_intent_succeeded(&callback) ⇒ Object
1020
1021
1022
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1020
def on_v1_setup_intent_succeeded(&callback)
register("v1.setup_intent.succeeded", &callback)
end
|
#on_v1_sigma_scheduled_query_run_created(&callback) ⇒ Object
1024
1025
1026
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1024
def on_v1_sigma_scheduled_query_run_created(&callback)
register("v1.sigma.scheduled_query_run.created", &callback)
end
|
#on_v1_source_canceled(&callback) ⇒ Object
1028
1029
1030
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1028
def on_v1_source_canceled(&callback)
register("v1.source.canceled", &callback)
end
|
#on_v1_source_chargeable(&callback) ⇒ Object
1032
1033
1034
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1032
def on_v1_source_chargeable(&callback)
register("v1.source.chargeable", &callback)
end
|
#on_v1_source_failed(&callback) ⇒ Object
1036
1037
1038
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1036
def on_v1_source_failed(&callback)
register("v1.source.failed", &callback)
end
|
#on_v1_source_refund_attributes_required(&callback) ⇒ Object
1040
1041
1042
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1040
def on_v1_source_refund_attributes_required(&callback)
register("v1.source.refund_attributes_required", &callback)
end
|
#on_v1_subscription_schedule_aborted(&callback) ⇒ Object
1044
1045
1046
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1044
def on_v1_subscription_schedule_aborted(&callback)
register("v1.subscription_schedule.aborted", &callback)
end
|
#on_v1_subscription_schedule_canceled(&callback) ⇒ Object
1048
1049
1050
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1048
def on_v1_subscription_schedule_canceled(&callback)
register("v1.subscription_schedule.canceled", &callback)
end
|
#on_v1_subscription_schedule_completed(&callback) ⇒ Object
1052
1053
1054
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1052
def on_v1_subscription_schedule_completed(&callback)
register("v1.subscription_schedule.completed", &callback)
end
|
#on_v1_subscription_schedule_created(&callback) ⇒ Object
1056
1057
1058
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1056
def on_v1_subscription_schedule_created(&callback)
register("v1.subscription_schedule.created", &callback)
end
|
#on_v1_subscription_schedule_expiring(&callback) ⇒ Object
1060
1061
1062
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1060
def on_v1_subscription_schedule_expiring(&callback)
register("v1.subscription_schedule.expiring", &callback)
end
|
#on_v1_subscription_schedule_phase_added(&callback) ⇒ Object
1064
1065
1066
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1064
def on_v1_subscription_schedule_phase_added(&callback)
register("v1.subscription_schedule.phase_added", &callback)
end
|
#on_v1_subscription_schedule_phase_default_tax_rates_changed(&callback) ⇒ Object
1068
1069
1070
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1068
def on_v1_subscription_schedule_phase_default_tax_rates_changed(&callback)
register("v1.subscription_schedule.phase_default_tax_rates_changed", &callback)
end
|
#on_v1_subscription_schedule_phase_end_date_changed(&callback) ⇒ Object
1072
1073
1074
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1072
def on_v1_subscription_schedule_phase_end_date_changed(&callback)
register("v1.subscription_schedule.phase_end_date_changed", &callback)
end
|
#on_v1_subscription_schedule_phase_removed(&callback) ⇒ Object
1076
1077
1078
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1076
def on_v1_subscription_schedule_phase_removed(&callback)
register("v1.subscription_schedule.phase_removed", &callback)
end
|
#on_v1_subscription_schedule_phase_trial_end_changed(&callback) ⇒ Object
1080
1081
1082
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1080
def on_v1_subscription_schedule_phase_trial_end_changed(&callback)
register("v1.subscription_schedule.phase_trial_end_changed", &callback)
end
|
#on_v1_subscription_schedule_released(&callback) ⇒ Object
1084
1085
1086
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1084
def on_v1_subscription_schedule_released(&callback)
register("v1.subscription_schedule.released", &callback)
end
|
#on_v1_subscription_schedule_updated(&callback) ⇒ Object
1088
1089
1090
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1088
def on_v1_subscription_schedule_updated(&callback)
register("v1.subscription_schedule.updated", &callback)
end
|
#on_v1_tax_rate_created(&callback) ⇒ Object
1096
1097
1098
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1096
def on_v1_tax_rate_created(&callback)
register("v1.tax_rate.created", &callback)
end
|
#on_v1_tax_rate_updated(&callback) ⇒ Object
1100
1101
1102
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1100
def on_v1_tax_rate_updated(&callback)
register("v1.tax_rate.updated", &callback)
end
|
#on_v1_tax_settings_updated(&callback) ⇒ Object
1092
1093
1094
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1092
def on_v1_tax_settings_updated(&callback)
register("v1.tax.settings.updated", &callback)
end
|
#on_v1_terminal_reader_action_failed(&callback) ⇒ Object
1104
1105
1106
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1104
def on_v1_terminal_reader_action_failed(&callback)
register("v1.terminal.reader.action_failed", &callback)
end
|
#on_v1_terminal_reader_action_succeeded(&callback) ⇒ Object
1108
1109
1110
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1108
def on_v1_terminal_reader_action_succeeded(&callback)
register("v1.terminal.reader.action_succeeded", &callback)
end
|
#on_v1_terminal_reader_action_updated(&callback) ⇒ Object
1112
1113
1114
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1112
def on_v1_terminal_reader_action_updated(&callback)
register("v1.terminal.reader.action_updated", &callback)
end
|
#on_v1_test_helpers_test_clock_advancing(&callback) ⇒ Object
1116
1117
1118
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1116
def on_v1_test_helpers_test_clock_advancing(&callback)
register("v1.test_helpers.test_clock.advancing", &callback)
end
|
#on_v1_test_helpers_test_clock_created(&callback) ⇒ Object
1120
1121
1122
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1120
def on_v1_test_helpers_test_clock_created(&callback)
register("v1.test_helpers.test_clock.created", &callback)
end
|
#on_v1_test_helpers_test_clock_deleted(&callback) ⇒ Object
1124
1125
1126
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1124
def on_v1_test_helpers_test_clock_deleted(&callback)
register("v1.test_helpers.test_clock.deleted", &callback)
end
|
#on_v1_test_helpers_test_clock_internal_failure(&callback) ⇒ Object
1128
1129
1130
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1128
def on_v1_test_helpers_test_clock_internal_failure(&callback)
register("v1.test_helpers.test_clock.internal_failure", &callback)
end
|
#on_v1_test_helpers_test_clock_ready(&callback) ⇒ Object
1132
1133
1134
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1132
def on_v1_test_helpers_test_clock_ready(&callback)
register("v1.test_helpers.test_clock.ready", &callback)
end
|
#on_v1_topup_canceled(&callback) ⇒ Object
1136
1137
1138
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1136
def on_v1_topup_canceled(&callback)
register("v1.topup.canceled", &callback)
end
|
#on_v1_topup_created(&callback) ⇒ Object
1140
1141
1142
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1140
def on_v1_topup_created(&callback)
register("v1.topup.created", &callback)
end
|
#on_v1_topup_failed(&callback) ⇒ Object
1144
1145
1146
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1144
def on_v1_topup_failed(&callback)
register("v1.topup.failed", &callback)
end
|
#on_v1_topup_reversed(&callback) ⇒ Object
1148
1149
1150
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1148
def on_v1_topup_reversed(&callback)
register("v1.topup.reversed", &callback)
end
|
#on_v1_topup_succeeded(&callback) ⇒ Object
1152
1153
1154
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1152
def on_v1_topup_succeeded(&callback)
register("v1.topup.succeeded", &callback)
end
|
#on_v1_transfer_created(&callback) ⇒ Object
1156
1157
1158
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1156
def on_v1_transfer_created(&callback)
register("v1.transfer.created", &callback)
end
|
#on_v1_transfer_reversed(&callback) ⇒ Object
1160
1161
1162
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1160
def on_v1_transfer_reversed(&callback)
register("v1.transfer.reversed", &callback)
end
|
#on_v1_transfer_updated(&callback) ⇒ Object
1164
1165
1166
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1164
def on_v1_transfer_updated(&callback)
register("v1.transfer.updated", &callback)
end
|
#on_v2_commerce_product_catalog_imports_failed(&callback) ⇒ Object
1168
1169
1170
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1168
def on_v2_commerce_product_catalog_imports_failed(&callback)
register("v2.commerce.product_catalog.imports.failed", &callback)
end
|
#on_v2_commerce_product_catalog_imports_processing(&callback) ⇒ Object
1172
1173
1174
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1172
def on_v2_commerce_product_catalog_imports_processing(&callback)
register("v2.commerce.product_catalog.imports.processing", &callback)
end
|
#on_v2_commerce_product_catalog_imports_succeeded(&callback) ⇒ Object
1176
1177
1178
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1176
def on_v2_commerce_product_catalog_imports_succeeded(&callback)
register("v2.commerce.product_catalog.imports.succeeded", &callback)
end
|
#on_v2_commerce_product_catalog_imports_succeeded_with_errors(&callback) ⇒ Object
1180
1181
1182
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1180
def on_v2_commerce_product_catalog_imports_succeeded_with_errors(&callback)
register("v2.commerce.product_catalog.imports.succeeded_with_errors", &callback)
end
|
#on_v2_core_account_closed(&callback) ⇒ Object
1184
1185
1186
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1184
def on_v2_core_account_closed(&callback)
register("v2.core.account.closed", &callback)
end
|
#on_v2_core_account_created(&callback) ⇒ Object
1188
1189
1190
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1188
def on_v2_core_account_created(&callback)
register("v2.core.account.created", &callback)
end
|
#on_v2_core_account_including_configuration_customer_capability_status_updated(&callback) ⇒ Object
1196
1197
1198
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1196
def on_v2_core_account_including_configuration_customer_capability_status_updated(&callback)
register("v2.core.account[configuration.customer].capability_status_updated", &callback)
end
|
#on_v2_core_account_including_configuration_customer_updated(&callback) ⇒ Object
1200
1201
1202
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1200
def on_v2_core_account_including_configuration_customer_updated(&callback)
register("v2.core.account[configuration.customer].updated", &callback)
end
|
#on_v2_core_account_including_configuration_merchant_capability_status_updated(&callback) ⇒ Object
1204
1205
1206
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1204
def on_v2_core_account_including_configuration_merchant_capability_status_updated(&callback)
register("v2.core.account[configuration.merchant].capability_status_updated", &callback)
end
|
#on_v2_core_account_including_configuration_merchant_updated(&callback) ⇒ Object
1208
1209
1210
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1208
def on_v2_core_account_including_configuration_merchant_updated(&callback)
register("v2.core.account[configuration.merchant].updated", &callback)
end
|
#on_v2_core_account_including_configuration_recipient_capability_status_updated(&callback) ⇒ Object
1212
1213
1214
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1212
def on_v2_core_account_including_configuration_recipient_capability_status_updated(&callback)
register("v2.core.account[configuration.recipient].capability_status_updated", &callback)
end
|
#on_v2_core_account_including_configuration_recipient_updated(&callback) ⇒ Object
1216
1217
1218
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1216
def on_v2_core_account_including_configuration_recipient_updated(&callback)
register("v2.core.account[configuration.recipient].updated", &callback)
end
|
#on_v2_core_account_including_defaults_updated(&callback) ⇒ Object
1220
1221
1222
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1220
def on_v2_core_account_including_defaults_updated(&callback)
register("v2.core.account[defaults].updated", &callback)
end
|
#on_v2_core_account_including_future_requirements_updated(&callback) ⇒ Object
1224
1225
1226
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1224
def on_v2_core_account_including_future_requirements_updated(&callback)
register("v2.core.account[future_requirements].updated", &callback)
end
|
#on_v2_core_account_including_identity_updated(&callback) ⇒ Object
1228
1229
1230
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1228
def on_v2_core_account_including_identity_updated(&callback)
register("v2.core.account[identity].updated", &callback)
end
|
#on_v2_core_account_including_requirements_updated(&callback) ⇒ Object
1232
1233
1234
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1232
def on_v2_core_account_including_requirements_updated(&callback)
register("v2.core.account[requirements].updated", &callback)
end
|
#on_v2_core_account_link_returned(&callback) ⇒ Object
1236
1237
1238
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1236
def on_v2_core_account_link_returned(&callback)
register("v2.core.account_link.returned", &callback)
end
|
#on_v2_core_account_person_created(&callback) ⇒ Object
1240
1241
1242
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1240
def on_v2_core_account_person_created(&callback)
register("v2.core.account_person.created", &callback)
end
|
#on_v2_core_account_person_deleted(&callback) ⇒ Object
1244
1245
1246
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1244
def on_v2_core_account_person_deleted(&callback)
register("v2.core.account_person.deleted", &callback)
end
|
#on_v2_core_account_person_updated(&callback) ⇒ Object
1248
1249
1250
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1248
def on_v2_core_account_person_updated(&callback)
register("v2.core.account_person.updated", &callback)
end
|
#on_v2_core_account_updated(&callback) ⇒ Object
1192
1193
1194
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1192
def on_v2_core_account_updated(&callback)
register("v2.core.account.updated", &callback)
end
|
#on_v2_core_claimable_sandbox_claimed(&callback) ⇒ Object
1252
1253
1254
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1252
def on_v2_core_claimable_sandbox_claimed(&callback)
register("v2.core.claimable_sandbox.claimed", &callback)
end
|
#on_v2_core_claimable_sandbox_created(&callback) ⇒ Object
1256
1257
1258
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1256
def on_v2_core_claimable_sandbox_created(&callback)
register("v2.core.claimable_sandbox.created", &callback)
end
|
#on_v2_core_claimable_sandbox_expired(&callback) ⇒ Object
1260
1261
1262
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1260
def on_v2_core_claimable_sandbox_expired(&callback)
register("v2.core.claimable_sandbox.expired", &callback)
end
|
#on_v2_core_claimable_sandbox_expiring(&callback) ⇒ Object
1264
1265
1266
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1264
def on_v2_core_claimable_sandbox_expiring(&callback)
register("v2.core.claimable_sandbox.expiring", &callback)
end
|
#on_v2_core_claimable_sandbox_updated(&callback) ⇒ Object
1268
1269
1270
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1268
def on_v2_core_claimable_sandbox_updated(&callback)
register("v2.core.claimable_sandbox.updated", &callback)
end
|
#on_v2_core_event_destination_ping(&callback) ⇒ Object
1272
1273
1274
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1272
def on_v2_core_event_destination_ping(&callback)
register("v2.core.event_destination.ping", &callback)
end
|
#on_v2_money_management_adjustment_created(&callback) ⇒ Object
1276
1277
1278
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1276
def on_v2_money_management_adjustment_created(&callback)
register("v2.money_management.adjustment.created", &callback)
end
|
#on_v2_money_management_financial_account_created(&callback) ⇒ Object
1280
1281
1282
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1280
def on_v2_money_management_financial_account_created(&callback)
register("v2.money_management.financial_account.created", &callback)
end
|
#on_v2_money_management_financial_account_updated(&callback) ⇒ Object
1284
1285
1286
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1284
def on_v2_money_management_financial_account_updated(&callback)
register("v2.money_management.financial_account.updated", &callback)
end
|
#on_v2_money_management_financial_address_activated(&callback) ⇒ Object
1288
1289
1290
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1288
def on_v2_money_management_financial_address_activated(&callback)
register("v2.money_management.financial_address.activated", &callback)
end
|
#on_v2_money_management_financial_address_failed(&callback) ⇒ Object
1292
1293
1294
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1292
def on_v2_money_management_financial_address_failed(&callback)
register("v2.money_management.financial_address.failed", &callback)
end
|
#on_v2_money_management_inbound_transfer_available(&callback) ⇒ Object
1296
1297
1298
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1296
def on_v2_money_management_inbound_transfer_available(&callback)
register("v2.money_management.inbound_transfer.available", &callback)
end
|
#on_v2_money_management_inbound_transfer_bank_debit_failed(&callback) ⇒ Object
1300
1301
1302
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1300
def on_v2_money_management_inbound_transfer_bank_debit_failed(&callback)
register("v2.money_management.inbound_transfer.bank_debit_failed", &callback)
end
|
#on_v2_money_management_inbound_transfer_bank_debit_processing(&callback) ⇒ Object
1304
1305
1306
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1304
def on_v2_money_management_inbound_transfer_bank_debit_processing(&callback)
register("v2.money_management.inbound_transfer.bank_debit_processing", &callback)
end
|
#on_v2_money_management_inbound_transfer_bank_debit_queued(&callback) ⇒ Object
1308
1309
1310
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1308
def on_v2_money_management_inbound_transfer_bank_debit_queued(&callback)
register("v2.money_management.inbound_transfer.bank_debit_queued", &callback)
end
|
#on_v2_money_management_inbound_transfer_bank_debit_returned(&callback) ⇒ Object
1312
1313
1314
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1312
def on_v2_money_management_inbound_transfer_bank_debit_returned(&callback)
register("v2.money_management.inbound_transfer.bank_debit_returned", &callback)
end
|
#on_v2_money_management_inbound_transfer_bank_debit_succeeded(&callback) ⇒ Object
1316
1317
1318
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1316
def on_v2_money_management_inbound_transfer_bank_debit_succeeded(&callback)
register("v2.money_management.inbound_transfer.bank_debit_succeeded", &callback)
end
|
#on_v2_money_management_outbound_payment_canceled(&callback) ⇒ Object
1320
1321
1322
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1320
def on_v2_money_management_outbound_payment_canceled(&callback)
register("v2.money_management.outbound_payment.canceled", &callback)
end
|
#on_v2_money_management_outbound_payment_created(&callback) ⇒ Object
1324
1325
1326
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1324
def on_v2_money_management_outbound_payment_created(&callback)
register("v2.money_management.outbound_payment.created", &callback)
end
|
#on_v2_money_management_outbound_payment_failed(&callback) ⇒ Object
1328
1329
1330
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1328
def on_v2_money_management_outbound_payment_failed(&callback)
register("v2.money_management.outbound_payment.failed", &callback)
end
|
#on_v2_money_management_outbound_payment_posted(&callback) ⇒ Object
1332
1333
1334
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1332
def on_v2_money_management_outbound_payment_posted(&callback)
register("v2.money_management.outbound_payment.posted", &callback)
end
|
#on_v2_money_management_outbound_payment_returned(&callback) ⇒ Object
1336
1337
1338
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1336
def on_v2_money_management_outbound_payment_returned(&callback)
register("v2.money_management.outbound_payment.returned", &callback)
end
|
#on_v2_money_management_outbound_payment_under_review(&callback) ⇒ Object
1340
1341
1342
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1340
def on_v2_money_management_outbound_payment_under_review(&callback)
register("v2.money_management.outbound_payment.under_review", &callback)
end
|
#on_v2_money_management_outbound_payment_updated(&callback) ⇒ Object
1344
1345
1346
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1344
def on_v2_money_management_outbound_payment_updated(&callback)
register("v2.money_management.outbound_payment.updated", &callback)
end
|
#on_v2_money_management_payout_intent_canceled(&callback) ⇒ Object
1348
1349
1350
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1348
def on_v2_money_management_payout_intent_canceled(&callback)
register("v2.money_management.payout_intent.canceled", &callback)
end
|
#on_v2_money_management_payout_intent_created(&callback) ⇒ Object
1352
1353
1354
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1352
def on_v2_money_management_payout_intent_created(&callback)
register("v2.money_management.payout_intent.created", &callback)
end
|
#on_v2_money_management_payout_intent_pending(&callback) ⇒ Object
1356
1357
1358
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1356
def on_v2_money_management_payout_intent_pending(&callback)
register("v2.money_management.payout_intent.pending", &callback)
end
|
#on_v2_money_management_payout_intent_posted(&callback) ⇒ Object
1360
1361
1362
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1360
def on_v2_money_management_payout_intent_posted(&callback)
register("v2.money_management.payout_intent.posted", &callback)
end
|
#on_v2_money_management_payout_intent_processing(&callback) ⇒ Object
1364
1365
1366
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1364
def on_v2_money_management_payout_intent_processing(&callback)
register("v2.money_management.payout_intent.processing", &callback)
end
|
#on_v2_money_management_payout_intent_requires_action(&callback) ⇒ Object
1368
1369
1370
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1368
def on_v2_money_management_payout_intent_requires_action(&callback)
register("v2.money_management.payout_intent.requires_action", &callback)
end
|
#on_v2_money_management_payout_intent_updated(&callback) ⇒ Object
1372
1373
1374
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1372
def on_v2_money_management_payout_intent_updated(&callback)
register("v2.money_management.payout_intent.updated", &callback)
end
|
#on_v2_money_management_payout_method_created(&callback) ⇒ Object
1376
1377
1378
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1376
def on_v2_money_management_payout_method_created(&callback)
register("v2.money_management.payout_method.created", &callback)
end
|
#on_v2_money_management_payout_method_updated(&callback) ⇒ Object
1380
1381
1382
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1380
def on_v2_money_management_payout_method_updated(&callback)
register("v2.money_management.payout_method.updated", &callback)
end
|
#on_v2_money_management_received_credit_available(&callback) ⇒ Object
1384
1385
1386
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1384
def on_v2_money_management_received_credit_available(&callback)
register("v2.money_management.received_credit.available", &callback)
end
|
#on_v2_money_management_received_credit_failed(&callback) ⇒ Object
1388
1389
1390
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1388
def on_v2_money_management_received_credit_failed(&callback)
register("v2.money_management.received_credit.failed", &callback)
end
|
#on_v2_money_management_received_credit_returned(&callback) ⇒ Object
1392
1393
1394
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1392
def on_v2_money_management_received_credit_returned(&callback)
register("v2.money_management.received_credit.returned", &callback)
end
|
#on_v2_money_management_received_credit_succeeded(&callback) ⇒ Object
1396
1397
1398
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1396
def on_v2_money_management_received_credit_succeeded(&callback)
register("v2.money_management.received_credit.succeeded", &callback)
end
|
#on_v2_money_management_recipient_verification_created(&callback) ⇒ Object
1400
1401
1402
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1400
def on_v2_money_management_recipient_verification_created(&callback)
register("v2.money_management.recipient_verification.created", &callback)
end
|
#on_v2_money_management_recipient_verification_updated(&callback) ⇒ Object
1404
1405
1406
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1404
def on_v2_money_management_recipient_verification_updated(&callback)
register("v2.money_management.recipient_verification.updated", &callback)
end
|
#on_v2_money_management_transaction_created(&callback) ⇒ Object
1408
1409
1410
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1408
def on_v2_money_management_transaction_created(&callback)
register("v2.money_management.transaction.created", &callback)
end
|
#on_v2_money_management_transaction_updated(&callback) ⇒ Object
1412
1413
1414
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1412
def on_v2_money_management_transaction_updated(&callback)
register("v2.money_management.transaction.updated", &callback)
end
|
#pre_handle(&hook) ⇒ Object
Registers a function that will be run before any event-specific callbacks. A useful
place to store event-agnostic logic, such as logging or checking for
duplicate event deliveries.
Returning true causes handling to continue as normal; returning false returns from
.handle() immediately, so neither the registered callback nor the fallback callback
are called.
42
43
44
45
46
47
48
49
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 42
def pre_handle(&hook)
assert_callback_given(hook)
assert_hasnt_handled_events
raise ArgumentError, "A pre_handle callback is already registered" if @pre_handle_callback
@pre_handle_callback = hook
end
|
#registered_event_types ⇒ Object
31
32
33
|
# File 'lib/stripe/stripe_event_notification_handler.rb', line 31
def registered_event_types
@registered_handlers.keys.sort
end
|