mirror of
https://github.com/hanzo-fi/webhooks.git
synced 2026-10-30 20:32:55 +00:00
43 lines
936 B
Go
43 lines
936 B
Go
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
package components
|
|
|
|
import (
|
|
"github.com/hanzo-fi/webhooks/pkg/client/internal/utils"
|
|
)
|
|
|
|
type Security struct {
|
|
ClientID string `security:"scheme,type=oauth2,subtype=client_credentials,name=clientID"`
|
|
ClientSecret string `security:"scheme,type=oauth2,subtype=client_credentials,name=clientSecret"`
|
|
tokenURL string `const:"/oauth/token"`
|
|
}
|
|
|
|
func (s Security) MarshalJSON() ([]byte, error) {
|
|
return utils.MarshalJSON(s, "", false)
|
|
}
|
|
|
|
func (s *Security) UnmarshalJSON(data []byte) error {
|
|
if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (o *Security) GetClientID() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.ClientID
|
|
}
|
|
|
|
func (o *Security) GetClientSecret() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.ClientSecret
|
|
}
|
|
|
|
func (o *Security) GetTokenURL() string {
|
|
return "/oauth/token"
|
|
}
|