Skip to content

Commit

Permalink
Add action in response
Browse files Browse the repository at this point in the history
  • Loading branch information
Arman committed Jul 11, 2018
1 parent 003634a commit 3db2741
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions response.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ type VANumber struct {
VANumber string `json:"va_number"`
}

type Action struct {
Name string `json:"name"`
Method string `json:"method"`
URL string `json:"url"`
}

// Response after calling the API
type Response struct {
StatusCode string `json:"status_code"`
Expand Down Expand Up @@ -36,6 +42,7 @@ type Response struct {
GrossAmount string `json:"gross_amount"`
VANumbers []VANumber `json:"va_numbers"`
PaymentCode string `json:"payment_code"`
Actions []Action `json:"actions"`
}

// SnapResponse : Response after calling the Snap API
Expand Down

0 comments on commit 3db2741

Please sign in to comment.