diff --git a/go/types.go b/go/types.go index 965b326ef6..97ae1fdc1d 100644 --- a/go/types.go +++ b/go/types.go @@ -81,22 +81,24 @@ type ( // VerifyResponse contains the verification result // If verification fails, an error (typically *VerifyError) is returned and this will be nil type VerifyResponse struct { - IsValid bool `json:"isValid"` - InvalidReason string `json:"invalidReason,omitempty"` - InvalidMessage string `json:"invalidMessage,omitempty"` - Payer string `json:"payer,omitempty"` + IsValid bool `json:"isValid"` + InvalidReason string `json:"invalidReason,omitempty"` + InvalidMessage string `json:"invalidMessage,omitempty"` + Payer string `json:"payer,omitempty"` + Extensions map[string]interface{} `json:"extensions,omitempty"` } // SettleResponse contains the settlement result // If settlement fails, an error (typically *SettleError) is returned and this will be nil type SettleResponse struct { - Success bool `json:"success"` - ErrorReason string `json:"errorReason,omitempty"` - ErrorMessage string `json:"errorMessage,omitempty"` - Payer string `json:"payer,omitempty"` - Transaction string `json:"transaction"` - Network Network `json:"network"` - Amount string `json:"amount,omitempty"` + Success bool `json:"success"` + ErrorReason string `json:"errorReason,omitempty"` + ErrorMessage string `json:"errorMessage,omitempty"` + Payer string `json:"payer,omitempty"` + Transaction string `json:"transaction"` + Network Network `json:"network"` + Amount string `json:"amount,omitempty"` + Extensions map[string]interface{} `json:"extensions,omitempty"` } // SettlementOverrides allows overriding settlement parameters.