Liking cljdoc? Tell your friends :D

starkbank.webhook

A Webhook is used to subscribe to notification events on a user-selected endpoint. Currently available services for subscription are transfer, boleto, boleto-payment, and utility-payment

Parameters (required):

  • :url [string]: Url that will be notified when an event occurs.
  • :subscriptions [list of strings]: list of any non-empty combination of the available services. ex: ["transfer", "deposit", "brcode-payment"]

Attributes:

  • :id [string, default nil]: unique id returned when the webhook is created. ex: "5656565656565656"
A Webhook is used to subscribe to notification events on a user-selected endpoint.
Currently available services for subscription are transfer, boleto, boleto-payment,
and utility-payment

## Parameters (required):
  - `:url` [string]: Url that will be notified when an event occurs.
  - `:subscriptions` [list of strings]: list of any non-empty combination of the available services. ex: ["transfer", "deposit", "brcode-payment"]

## Attributes:
  - `:id` [string, default nil]: unique id returned when the webhook is created. ex: "5656565656565656"
raw docstring

createclj

(create webhook-params)
(create webhook-params user)

Send a single Webhook subscription for creation in the Stark Bank API

Parameters (required):

Parameters (optional):

  • :user [Project or Organization, default nil]: Project or Organization map returned from starkbank.user/project or starkbank.user/organization. Only necessary if starkbank.settings/user has not been set.

Return:

  • Webhook map with updated attributes
Send a single Webhook subscription for creation in the Stark Bank API

## Parameters (required):
  - `:url` [string]: url to which notification events will be sent to. ex: "https://webhook.site/60e9c18e-4b5c-4369-bda1-ab5fcd8e1b29"
  - `:subscriptions` [list of strings]: list of any non-empty combination of the available services. ex: ["transfer", "boleto-payment"]

## Parameters (optional):
  - `:user` [Project or Organization, default nil]: Project or Organization map returned from starkbank.user/project or starkbank.user/organization. Only necessary if starkbank.settings/user has not been set.

## Return:
  - Webhook map with updated attributes
sourceraw docstring

created-java-webhookclj

source

cursorclj

source

deleteclj

(delete id)
(delete id user)

Delete a Webhook subscription entity previously created in the Stark Bank API

Parameters (required):

  • :id [string]: Webhook unique id. ex: "5656565656565656"

Options:

  • :user [Project or Organization, default nil]: Project or Organization map returned from starkbank.user/project or starkbank.user/organization. Only necessary if starkbank.settings/user has not been set.

Return:

  • deleted Webhook map
Delete a Webhook subscription entity previously created in the Stark Bank API

## Parameters (required):
  - `:id` [string]: Webhook unique id. ex: "5656565656565656"

## Options:
  - `:user` [Project or Organization, default nil]: Project or Organization map returned from starkbank.user/project or starkbank.user/organization. Only necessary if starkbank.settings/user has not been set.

## Return:
  - deleted Webhook map
sourceraw docstring

getclj

(get id)
(get id user)

Receive a single Webhook subscription map previously created in the Stark Bank API by passing its id

Parameters (required):

  • :id [string]: map unique id. ex: "5656565656565656"

Options:

  • :user [Project or Organization, default nil]: Project or Organization map returned from starkbank.user/project or starkbank.user/organization. Only necessary if starkbank.settings/user has not been set.

Return:

  • Webhook map with updated attributes
Receive a single Webhook subscription map previously created in the Stark Bank API by passing its id

## Parameters (required):
  - `:id` [string]: map unique id. ex: "5656565656565656"

## Options:
  - `:user` [Project or Organization, default nil]: Project or Organization map returned from starkbank.user/project or starkbank.user/organization. Only necessary if starkbank.settings/user has not been set.

## Return:
  - Webhook map with updated attributes
sourceraw docstring

java-paramsclj

source

java-webhook-paramsclj

source

pageclj

(page)
(page params)
(page params user)

Receive a list of up to 100 Webhook maps previously created in the Stark Bank API and the cursor to the next page. Use this function instead of query if you want to manually page your requests.

Options:

  • :cursor [string, default nil]: cursor returned on the previous page function call
  • :limit [integer, default nil]: maximum number of maps to be retrieved. Unlimited if nil. ex: 35
  • :user [Project or Organization, default nil]: Project or Organization map returned from starkbank.user/project or starkbank.user/organization. Only necessary if starkbank.settings/user has not been set.

Return:

  • map with :webhooks and :cursor:
    • :webhooks: list of webhook maps with updated attributes
    • :cursor: cursor string to retrieve the next page of webhooks
Receive a list of up to 100 Webhook maps previously created in the Stark Bank API and the cursor to the next page.
Use this function instead of query if you want to manually page your requests.

## Options:
  - `:cursor` [string, default nil]: cursor returned on the previous page function call
  - `:limit` [integer, default nil]: maximum number of maps to be retrieved. Unlimited if nil. ex: 35
  - `:user` [Project or Organization, default nil]: Project or Organization map returned from starkbank.user/project or starkbank.user/organization. Only necessary if starkbank.settings/user has not been set.

## Return:
  - map with :webhooks and :cursor:
    - `:webhooks`: list of webhook maps with updated attributes
    - `:cursor`: cursor string to retrieve the next page of webhooks
sourceraw docstring

queryclj

(query)
(query params)
(query params user)

Receive a stream of Webhook subcription maps previously created in the Stark Bank API. Use this function instead of page if you want to stream the objects without worrying about cursors and pagination.

Options:

  • :limit [integer, default nil]: maximum number of maps to be retrieved. Unlimited if nil. ex: 35
  • :user [Project or Organization, default nil]: Project or Organization map returned from starkbank.user/project or starkbank.user/organization. Only necessary if starkbank.settings/user has not been set.

Return:

  • stream of Webhook maps with updated attributes
Receive a stream of Webhook subcription maps previously created in the Stark Bank API.
Use this function instead of page if you want to stream the objects without worrying about cursors and pagination.

## Options:
  - `:limit` [integer, default nil]: maximum number of maps to be retrieved. Unlimited if nil. ex: 35
  - `:user` [Project or Organization, default nil]: Project or Organization map returned from starkbank.user/project or starkbank.user/organization. Only necessary if starkbank.settings/user has not been set.

## Return:
  - stream of Webhook maps with updated attributes
sourceraw docstring

webhook-pageclj

source

webhooksclj

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close