Webhook configuredWebhook = Webhook.creator()
.setName("Teste")
.setUrl("https://www.exemplo.com/webhook/asaas")
.setEmail("joe@gmail.com")
.setSendType(SendType.SEQUENTIALLY)
.addEvent(Event.PAYMENT_RECEIVED)
.create();
ResourceSet<Webhook> webhookResourceSet = Webhook.reader().read();