Webhooks class

Constructors

Webhooks.new(API api)

Properties

api API
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

all({RazorpayPaginationOptions? params, String? accountId, void callback(RazorpayApiException?, Response<RazorpayWebhookListResponse>?)?}) Future<Response<RazorpayWebhookListResponse>>
Fetch all webhooks
create({required RazorpayWebhookCreateRequestBody params, String? accountId, void callback(RazorpayApiException?, Response<RazorpayWebhook>?)?}) Future<Response<RazorpayWebhook>>
Creates a webhook (merchant or partner context)
delete({required String webhookId, required String accountId, void callback(RazorpayApiException?, Response<RazorpayWebhookDeleteResponse>?)?}) Future<Response<RazorpayWebhookDeleteResponse>>
Delete a webhook (Only Partner context supported in JS?)
edit({required String webhookId, required RazorpayWebhookUpdateRequestBody params, String? accountId, void callback(RazorpayApiException?, Response<RazorpayWebhook>?)?}) Future<Response<RazorpayWebhook>>
Update a webhook
fetch({required String webhookId, required String accountId, void callback(RazorpayApiException?, Response<RazorpayWebhook>?)?}) Future<Response<RazorpayWebhook>>
Fetches a webhook (Only Partner context supported in JS?) Assuming fetch only works for partner accounts based on JS code structure.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

BASE_URL → const String
WEBHOOKS_BASE → const String