Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions connectorconfig/3dsecureio.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/chargehive/configuration/environment"
"github.com/chargehive/configuration/v1/connector"
"github.com/chargehive/configuration/v1/scheduler"
"github.com/chargehive/proto/golang/chargehive/chtype"
)

Expand Down Expand Up @@ -94,3 +95,7 @@ func (c *ThreeDSecureIOCredentials) Supports3RI() bool {
func (c *ThreeDSecureIOCredentials) IsAccountUpdater() bool {
return false
}

func (c *ThreeDSecureIOCredentials) SupportedTokenTypes() []scheduler.TokenSource {
return nil
}
5 changes: 5 additions & 0 deletions connectorconfig/adyen.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/chargehive/configuration/environment"
"github.com/chargehive/configuration/v1/connector"
"github.com/chargehive/configuration/v1/scheduler"
"github.com/chargehive/proto/golang/chargehive/chtype"
)

Expand Down Expand Up @@ -111,3 +112,7 @@ func (c *AdyenCredentials) GetApplePay() *ApplePayCredentials {
func (c *AdyenCredentials) IsAccountUpdater() bool {
return false
}

func (c *AdyenCredentials) SupportedTokenTypes() []scheduler.TokenSource {
return []scheduler.TokenSource{scheduler.TokenSourcePan, scheduler.TokenSourceConnector, scheduler.TokenSourceNetworkToken}
}
5 changes: 5 additions & 0 deletions connectorconfig/applePay.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (

"github.com/chargehive/configuration/environment"
"github.com/chargehive/configuration/v1/connector"
"github.com/chargehive/configuration/v1/scheduler"
"github.com/chargehive/proto/golang/chargehive/chtype"
)

Expand Down Expand Up @@ -320,3 +321,7 @@ func (a *ApplePayCredentials) GetAppleMerchantCapabilities() []AppleMerchantCapa
func (a *ApplePayCredentials) IsAccountUpdater() bool {
return false
}

func (a *ApplePayCredentials) SupportedTokenTypes() []scheduler.TokenSource {
return nil
}
5 changes: 5 additions & 0 deletions connectorconfig/authorizenet.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/chargehive/configuration/environment"
"github.com/chargehive/configuration/v1/connector"
"github.com/chargehive/configuration/v1/scheduler"
"github.com/chargehive/proto/golang/chargehive/chtype"
)

Expand Down Expand Up @@ -70,3 +71,7 @@ func (c *AuthorizeCredentials) Supports3RI() bool {
func (g *AuthorizeCredentials) IsAccountUpdater() bool {
return false
}

func (g *AuthorizeCredentials) SupportedTokenTypes() []scheduler.TokenSource {
return []scheduler.TokenSource{scheduler.TokenSourcePan, scheduler.TokenSourceNetworkToken}
}
5 changes: 5 additions & 0 deletions connectorconfig/bluesnap.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (

"github.com/chargehive/configuration/environment"
"github.com/chargehive/configuration/v1/connector"
"github.com/chargehive/configuration/v1/scheduler"
"github.com/chargehive/proto/golang/chargehive/chtype"
)

Expand Down Expand Up @@ -103,3 +104,7 @@ func (c *BlueSnapCredentials) Supports3RI() bool {
func (g *BlueSnapCredentials) IsAccountUpdater() bool {
return false
}

func (g *BlueSnapCredentials) SupportedTokenTypes() []scheduler.TokenSource {
return []scheduler.TokenSource{scheduler.TokenSourcePan, scheduler.TokenSourceNetworkToken}
}
5 changes: 5 additions & 0 deletions connectorconfig/bottomline.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/chargehive/configuration/environment"
"github.com/chargehive/configuration/v1/connector"
"github.com/chargehive/configuration/v1/scheduler"
"github.com/chargehive/proto/golang/chargehive/chtype"
)

Expand Down Expand Up @@ -88,3 +89,7 @@ func (c *BottomlineCredentials) Supports3RI() bool {
func (c *BottomlineCredentials) IsAccountUpdater() bool {
return false
}

func (c *BottomlineCredentials) SupportedTokenTypes() []scheduler.TokenSource {
return []scheduler.TokenSource{scheduler.TokenSourcePan, scheduler.TokenSourceConnector}
}
5 changes: 5 additions & 0 deletions connectorconfig/braintree.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/chargehive/configuration/environment"
"github.com/chargehive/configuration/v1/connector"
"github.com/chargehive/configuration/v1/scheduler"
"github.com/chargehive/proto/golang/chargehive/chtype"
)

Expand Down Expand Up @@ -135,3 +136,7 @@ func (c *BraintreeCredentials) Supports3RI() bool {
func (g *BraintreeCredentials) IsAccountUpdater() bool {
return false
}

func (g *BraintreeCredentials) SupportedTokenTypes() []scheduler.TokenSource {
return []scheduler.TokenSource{scheduler.TokenSourcePan, scheduler.TokenSourceConnector, scheduler.TokenSourceNetworkToken}
}
5 changes: 5 additions & 0 deletions connectorconfig/checkout.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/chargehive/configuration/environment"
"github.com/chargehive/configuration/v1/connector"
"github.com/chargehive/configuration/v1/scheduler"
"github.com/chargehive/proto/golang/chargehive/chtype"
)

Expand Down Expand Up @@ -152,3 +153,7 @@ func (c *CheckoutCredentials) Supports3RI() bool {
func (c *CheckoutCredentials) IsAccountUpdater() bool {
return false
}

func (c *CheckoutCredentials) SupportedTokenTypes() []scheduler.TokenSource {
return []scheduler.TokenSource{scheduler.TokenSourcePan, scheduler.TokenSourceConnector, scheduler.TokenSourceNetworkToken}
}
5 changes: 5 additions & 0 deletions connectorconfig/clearhaus.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/chargehive/configuration/environment"
"github.com/chargehive/configuration/v1/connector"
"github.com/chargehive/configuration/v1/scheduler"
"github.com/chargehive/proto/golang/chargehive/chtype"
)

Expand Down Expand Up @@ -91,3 +92,7 @@ func (c *ClearhausCredentials) Supports3RI() bool {
func (c *ClearhausCredentials) IsAccountUpdater() bool {
return false
}

func (c *ClearhausCredentials) SupportedTokenTypes() []scheduler.TokenSource {
return []scheduler.TokenSource{scheduler.TokenSourcePan, scheduler.TokenSourceNetworkToken}
}
6 changes: 6 additions & 0 deletions connectorconfig/credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/chargehive/configuration/environment"
"github.com/chargehive/configuration/v1/connector"
"github.com/chargehive/configuration/v1/scheduler"
"github.com/chargehive/proto/golang/chargehive/chtype"
)

Expand All @@ -22,6 +23,7 @@ type Credentials interface {
IsRecoveryAgent() bool
Supports3RI() bool
IsAccountUpdater() bool
SupportedTokenTypes() []scheduler.TokenSource
}

type NoLibrary map[string]any
Expand Down Expand Up @@ -81,3 +83,7 @@ func (n NoLibrary) Supports3RI() bool {
func (n NoLibrary) IsAccountUpdater() bool {
return false
}

func (n NoLibrary) SupportedTokenTypes() []scheduler.TokenSource {
return nil
}
5 changes: 5 additions & 0 deletions connectorconfig/cwams.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/chargehive/configuration/environment"
"github.com/chargehive/configuration/v1/connector"
"github.com/chargehive/configuration/v1/scheduler"
"github.com/chargehive/proto/golang/chargehive/chtype"
)

Expand Down Expand Up @@ -109,3 +110,7 @@ func (c *CWAMSCredentials) Supports3RI() bool {
func (c *CWAMSCredentials) IsAccountUpdater() bool {
return false
}

func (c *CWAMSCredentials) SupportedTokenTypes() []scheduler.TokenSource {
return []scheduler.TokenSource{scheduler.TokenSourcePan, scheduler.TokenSourceNetworkToken}
}
5 changes: 5 additions & 0 deletions connectorconfig/cybersource.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/chargehive/configuration/environment"
"github.com/chargehive/configuration/v1/connector"
"github.com/chargehive/configuration/v1/scheduler"
"github.com/chargehive/proto/golang/chargehive/chtype"
)

Expand Down Expand Up @@ -80,3 +81,7 @@ func (c *CyberSourceCredentials) Supports3RI() bool {
func (c *CyberSourceCredentials) IsAccountUpdater() bool {
return false
}

func (c *CyberSourceCredentials) SupportedTokenTypes() []scheduler.TokenSource {
return nil
}
5 changes: 5 additions & 0 deletions connectorconfig/epx.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/chargehive/configuration/environment"
"github.com/chargehive/configuration/v1/connector"
"github.com/chargehive/configuration/v1/scheduler"
"github.com/chargehive/proto/golang/chargehive/chtype"
)

Expand Down Expand Up @@ -88,3 +89,7 @@ func (c *EpxCredentials) Supports3RI() bool {
func (c *EpxCredentials) IsAccountUpdater() bool {
return false
}

func (c *EpxCredentials) SupportedTokenTypes() []scheduler.TokenSource {
return []scheduler.TokenSource{scheduler.TokenSourcePan, scheduler.TokenSourceNetworkToken}
}
5 changes: 5 additions & 0 deletions connectorconfig/flexpay.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/chargehive/configuration/environment"
"github.com/chargehive/configuration/v1/connector"
"github.com/chargehive/configuration/v1/scheduler"
"github.com/chargehive/proto/golang/chargehive/chtype"
)

Expand Down Expand Up @@ -83,3 +84,7 @@ func (c *FlexPayCredentials) Supports3RI() bool {
func (c *FlexPayCredentials) IsAccountUpdater() bool {
return false
}

func (c *FlexPayCredentials) SupportedTokenTypes() []scheduler.TokenSource {
return []scheduler.TokenSource{scheduler.TokenSourcePan, scheduler.TokenSourceNetworkToken}
}
5 changes: 5 additions & 0 deletions connectorconfig/googlePay.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/chargehive/configuration/environment"
"github.com/chargehive/configuration/v1/connector"
"github.com/chargehive/configuration/v1/scheduler"
"github.com/chargehive/proto/golang/chargehive/chtype"
)

Expand Down Expand Up @@ -142,6 +143,10 @@ func (g *GooglePayCredentials) IsAccountUpdater() bool {
return false
}

func (g *GooglePayCredentials) SupportedTokenTypes() []scheduler.TokenSource {
return nil
}

func (g *GooglePayCredentials) GetSecureFields() []*string {
if g == nil {
return nil
Expand Down
5 changes: 5 additions & 0 deletions connectorconfig/gpayments.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/chargehive/configuration/environment"
"github.com/chargehive/configuration/v1/connector"
"github.com/chargehive/configuration/v1/scheduler"
"github.com/chargehive/proto/golang/chargehive/chtype"
)

Expand Down Expand Up @@ -87,3 +88,7 @@ func (c *GPaymentsCredentials) Supports3RI() bool {
func (c *GPaymentsCredentials) IsAccountUpdater() bool {
return false
}

func (c *GPaymentsCredentials) SupportedTokenTypes() []scheduler.TokenSource {
return []scheduler.TokenSource{scheduler.TokenSourcePan, scheduler.TokenSourceNetworkToken}
}
5 changes: 5 additions & 0 deletions connectorconfig/inoviopay.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/chargehive/configuration/environment"
"github.com/chargehive/configuration/v1/connector"
"github.com/chargehive/configuration/v1/scheduler"
"github.com/chargehive/proto/golang/chargehive/chtype"
)

Expand Down Expand Up @@ -87,3 +88,7 @@ func (c *InovioPayCredentials) Supports3RI() bool {
func (c *InovioPayCredentials) IsAccountUpdater() bool {
return false
}

func (c *InovioPayCredentials) SupportedTokenTypes() []scheduler.TokenSource {
return []scheduler.TokenSource{scheduler.TokenSourcePan}
}
5 changes: 5 additions & 0 deletions connectorconfig/kount.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/chargehive/configuration/environment"
"github.com/chargehive/configuration/v1/connector"
"github.com/chargehive/configuration/v1/scheduler"
"github.com/chargehive/proto/golang/chargehive/chtype"
)

Expand Down Expand Up @@ -90,3 +91,7 @@ func (c *KountCredentials) Supports3RI() bool {
func (c *KountCredentials) IsAccountUpdater() bool {
return false
}

func (c *KountCredentials) SupportedTokenTypes() []scheduler.TokenSource {
return nil
}
5 changes: 5 additions & 0 deletions connectorconfig/maxmind.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/chargehive/configuration/environment"
"github.com/chargehive/configuration/v1/connector"
"github.com/chargehive/configuration/v1/scheduler"
"github.com/chargehive/proto/golang/chargehive/chtype"
)

Expand Down Expand Up @@ -83,3 +84,7 @@ func (c *MaxMindCredentials) Supports3RI() bool {
func (c *MaxMindCredentials) IsAccountUpdater() bool {
return false
}

func (c *MaxMindCredentials) SupportedTokenTypes() []scheduler.TokenSource {
return nil
}
5 changes: 5 additions & 0 deletions connectorconfig/nuvei.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/chargehive/configuration/environment"
"github.com/chargehive/configuration/v1/connector"
"github.com/chargehive/configuration/v1/scheduler"
"github.com/chargehive/proto/golang/chargehive/chtype"
)

Expand Down Expand Up @@ -85,3 +86,7 @@ func (c *NuveiCredentials) Supports3RI() bool {
func (c *NuveiCredentials) IsAccountUpdater() bool {
return false
}

func (c *NuveiCredentials) SupportedTokenTypes() []scheduler.TokenSource {
return []scheduler.TokenSource{scheduler.TokenSourcePan, scheduler.TokenSourceNetworkToken}
}
5 changes: 5 additions & 0 deletions connectorconfig/pagosnt.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/chargehive/configuration/environment"
"github.com/chargehive/configuration/v1/connector"
"github.com/chargehive/configuration/v1/scheduler"
"github.com/chargehive/proto/golang/chargehive/chtype"
)

Expand Down Expand Up @@ -72,3 +73,7 @@ func (c *PagosNetworkTokenizationCredentials) Supports3RI() bool {
func (c *PagosNetworkTokenizationCredentials) IsAccountUpdater() bool {
return false
}

func (c *PagosNetworkTokenizationCredentials) SupportedTokenTypes() []scheduler.TokenSource {
return nil
}
5 changes: 5 additions & 0 deletions connectorconfig/pagosrealtimeaccountupdater.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/chargehive/configuration/environment"
"github.com/chargehive/configuration/v1/connector"
"github.com/chargehive/configuration/v1/scheduler"
"github.com/chargehive/proto/golang/chargehive/chtype"
)

Expand Down Expand Up @@ -72,3 +73,7 @@ func (c *PagosRealtimeAccountUpdaterCredentials) Supports3RI() bool {
func (c *PagosRealtimeAccountUpdaterCredentials) IsAccountUpdater() bool {
return true
}

func (c *PagosRealtimeAccountUpdaterCredentials) SupportedTokenTypes() []scheduler.TokenSource {
return nil
}
5 changes: 5 additions & 0 deletions connectorconfig/paypalcompletepayments.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/chargehive/configuration/environment"
"github.com/chargehive/configuration/v1/connector"
"github.com/chargehive/configuration/v1/scheduler"
"github.com/chargehive/proto/golang/chargehive/chtype"
)

Expand Down Expand Up @@ -72,3 +73,7 @@ func (c *PayPalCompletePaymentsCredentials) Supports3RI() bool {
func (c *PayPalCompletePaymentsCredentials) IsAccountUpdater() bool {
return false
}

func (c *PayPalCompletePaymentsCredentials) SupportedTokenTypes() []scheduler.TokenSource {
return []scheduler.TokenSource{scheduler.TokenSourcePan, scheduler.TokenSourceConnector, scheduler.TokenSourceNetworkToken}
}
5 changes: 5 additions & 0 deletions connectorconfig/paypalexpresscheckout.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/chargehive/configuration/environment"
"github.com/chargehive/configuration/v1/connector"
"github.com/chargehive/configuration/v1/scheduler"
"github.com/chargehive/proto/golang/chargehive/chtype"
)

Expand Down Expand Up @@ -81,3 +82,7 @@ func (c *PayPalExpressCheckoutCredentials) Supports3RI() bool {
func (c *PayPalExpressCheckoutCredentials) IsAccountUpdater() bool {
return false
}

func (c *PayPalExpressCheckoutCredentials) SupportedTokenTypes() []scheduler.TokenSource {
return nil
}
Loading
Loading