Skip to content

Commit

Permalink
fix: simple name
Browse files Browse the repository at this point in the history
  • Loading branch information
brokeyourbike committed Oct 7, 2023
1 parent d3847a5 commit f5f01fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions webhook/transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ type TransactionAccount struct {

var _ Transaction = (*WebhookTransactionSettledPayload)(nil)

// TODO: remove "Webhook" form the name
// WebhookTransactionSettledPayload
// This sends a webhook notification confirming the transaction has settled
type WebhookTransactionSettledPayload struct {
Expand Down
4 changes: 2 additions & 2 deletions webhook/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ const (
FxTradeCancelled = "Fx.Trade.Cancelled"
)

type WebhookRequest struct {
type Request struct {
Type string `json:"Type"`
Version int `json:"Version"`
Nonce int `json:"Nonce"`
Payload json.RawMessage `json:"Payload"`
}

type WebhookResponse struct {
type Response struct {
// The value that you receive in the webhook request.
Nonce int `json:"Nonce"`
}
Expand Down

0 comments on commit f5f01fb

Please sign in to comment.