diff --git a/connectorconfig/3dsecureio.go b/connectorconfig/3dsecureio.go index f151208..b6e0b90 100644 --- a/connectorconfig/3dsecureio.go +++ b/connectorconfig/3dsecureio.go @@ -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" ) @@ -94,3 +95,7 @@ func (c *ThreeDSecureIOCredentials) Supports3RI() bool { func (c *ThreeDSecureIOCredentials) IsAccountUpdater() bool { return false } + +func (c *ThreeDSecureIOCredentials) SupportedTokenTypes() []scheduler.TokenSource { + return nil +} diff --git a/connectorconfig/adyen.go b/connectorconfig/adyen.go index 64b9687..2f728bf 100644 --- a/connectorconfig/adyen.go +++ b/connectorconfig/adyen.go @@ -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" ) @@ -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} +} diff --git a/connectorconfig/applePay.go b/connectorconfig/applePay.go index 5d146ab..4523230 100644 --- a/connectorconfig/applePay.go +++ b/connectorconfig/applePay.go @@ -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" ) @@ -320,3 +321,7 @@ func (a *ApplePayCredentials) GetAppleMerchantCapabilities() []AppleMerchantCapa func (a *ApplePayCredentials) IsAccountUpdater() bool { return false } + +func (a *ApplePayCredentials) SupportedTokenTypes() []scheduler.TokenSource { + return nil +} diff --git a/connectorconfig/authorizenet.go b/connectorconfig/authorizenet.go index 5a622c6..5b5606f 100644 --- a/connectorconfig/authorizenet.go +++ b/connectorconfig/authorizenet.go @@ -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" ) @@ -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} +} diff --git a/connectorconfig/bluesnap.go b/connectorconfig/bluesnap.go index 60ed0b5..f57e037 100644 --- a/connectorconfig/bluesnap.go +++ b/connectorconfig/bluesnap.go @@ -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" ) @@ -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} +} diff --git a/connectorconfig/bottomline.go b/connectorconfig/bottomline.go index 2e5b8e1..5db597b 100644 --- a/connectorconfig/bottomline.go +++ b/connectorconfig/bottomline.go @@ -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" ) @@ -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} +} diff --git a/connectorconfig/braintree.go b/connectorconfig/braintree.go index a5652a8..d30d6a2 100644 --- a/connectorconfig/braintree.go +++ b/connectorconfig/braintree.go @@ -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" ) @@ -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} +} diff --git a/connectorconfig/checkout.go b/connectorconfig/checkout.go index 9805550..1c1c73c 100644 --- a/connectorconfig/checkout.go +++ b/connectorconfig/checkout.go @@ -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" ) @@ -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} +} diff --git a/connectorconfig/clearhaus.go b/connectorconfig/clearhaus.go index 99f4138..e2e2488 100644 --- a/connectorconfig/clearhaus.go +++ b/connectorconfig/clearhaus.go @@ -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" ) @@ -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} +} diff --git a/connectorconfig/credentials.go b/connectorconfig/credentials.go index c8e16e6..3658780 100644 --- a/connectorconfig/credentials.go +++ b/connectorconfig/credentials.go @@ -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" ) @@ -22,6 +23,7 @@ type Credentials interface { IsRecoveryAgent() bool Supports3RI() bool IsAccountUpdater() bool + SupportedTokenTypes() []scheduler.TokenSource } type NoLibrary map[string]any @@ -81,3 +83,7 @@ func (n NoLibrary) Supports3RI() bool { func (n NoLibrary) IsAccountUpdater() bool { return false } + +func (n NoLibrary) SupportedTokenTypes() []scheduler.TokenSource { + return nil +} diff --git a/connectorconfig/cwams.go b/connectorconfig/cwams.go index a11d11f..507a2e5 100644 --- a/connectorconfig/cwams.go +++ b/connectorconfig/cwams.go @@ -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" ) @@ -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} +} diff --git a/connectorconfig/cybersource.go b/connectorconfig/cybersource.go index af3249a..003a558 100644 --- a/connectorconfig/cybersource.go +++ b/connectorconfig/cybersource.go @@ -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" ) @@ -80,3 +81,7 @@ func (c *CyberSourceCredentials) Supports3RI() bool { func (c *CyberSourceCredentials) IsAccountUpdater() bool { return false } + +func (c *CyberSourceCredentials) SupportedTokenTypes() []scheduler.TokenSource { + return nil +} diff --git a/connectorconfig/epx.go b/connectorconfig/epx.go index 6201d29..5457f80 100644 --- a/connectorconfig/epx.go +++ b/connectorconfig/epx.go @@ -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" ) @@ -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} +} diff --git a/connectorconfig/flexpay.go b/connectorconfig/flexpay.go index 672e8ea..881cbf0 100644 --- a/connectorconfig/flexpay.go +++ b/connectorconfig/flexpay.go @@ -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" ) @@ -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} +} diff --git a/connectorconfig/googlePay.go b/connectorconfig/googlePay.go index ed095ed..b3b54b4 100644 --- a/connectorconfig/googlePay.go +++ b/connectorconfig/googlePay.go @@ -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" ) @@ -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 diff --git a/connectorconfig/gpayments.go b/connectorconfig/gpayments.go index d9369eb..91f23da 100644 --- a/connectorconfig/gpayments.go +++ b/connectorconfig/gpayments.go @@ -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" ) @@ -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} +} diff --git a/connectorconfig/inoviopay.go b/connectorconfig/inoviopay.go index 2e849a8..a5845a9 100644 --- a/connectorconfig/inoviopay.go +++ b/connectorconfig/inoviopay.go @@ -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" ) @@ -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} +} diff --git a/connectorconfig/kount.go b/connectorconfig/kount.go index fad1ff8..67adc6c 100644 --- a/connectorconfig/kount.go +++ b/connectorconfig/kount.go @@ -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" ) @@ -90,3 +91,7 @@ func (c *KountCredentials) Supports3RI() bool { func (c *KountCredentials) IsAccountUpdater() bool { return false } + +func (c *KountCredentials) SupportedTokenTypes() []scheduler.TokenSource { + return nil +} diff --git a/connectorconfig/maxmind.go b/connectorconfig/maxmind.go index aa0a1da..eabd667 100644 --- a/connectorconfig/maxmind.go +++ b/connectorconfig/maxmind.go @@ -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" ) @@ -83,3 +84,7 @@ func (c *MaxMindCredentials) Supports3RI() bool { func (c *MaxMindCredentials) IsAccountUpdater() bool { return false } + +func (c *MaxMindCredentials) SupportedTokenTypes() []scheduler.TokenSource { + return nil +} diff --git a/connectorconfig/nuvei.go b/connectorconfig/nuvei.go index f4ea9ff..de64be2 100644 --- a/connectorconfig/nuvei.go +++ b/connectorconfig/nuvei.go @@ -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" ) @@ -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} +} diff --git a/connectorconfig/pagosnt.go b/connectorconfig/pagosnt.go index aa2e319..5346109 100644 --- a/connectorconfig/pagosnt.go +++ b/connectorconfig/pagosnt.go @@ -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" ) @@ -72,3 +73,7 @@ func (c *PagosNetworkTokenizationCredentials) Supports3RI() bool { func (c *PagosNetworkTokenizationCredentials) IsAccountUpdater() bool { return false } + +func (c *PagosNetworkTokenizationCredentials) SupportedTokenTypes() []scheduler.TokenSource { + return nil +} diff --git a/connectorconfig/pagosrealtimeaccountupdater.go b/connectorconfig/pagosrealtimeaccountupdater.go index bf296ec..7f6cabf 100644 --- a/connectorconfig/pagosrealtimeaccountupdater.go +++ b/connectorconfig/pagosrealtimeaccountupdater.go @@ -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" ) @@ -72,3 +73,7 @@ func (c *PagosRealtimeAccountUpdaterCredentials) Supports3RI() bool { func (c *PagosRealtimeAccountUpdaterCredentials) IsAccountUpdater() bool { return true } + +func (c *PagosRealtimeAccountUpdaterCredentials) SupportedTokenTypes() []scheduler.TokenSource { + return nil +} diff --git a/connectorconfig/paypalcompletepayments.go b/connectorconfig/paypalcompletepayments.go index 61a22ba..7185f1a 100644 --- a/connectorconfig/paypalcompletepayments.go +++ b/connectorconfig/paypalcompletepayments.go @@ -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" ) @@ -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} +} diff --git a/connectorconfig/paypalexpresscheckout.go b/connectorconfig/paypalexpresscheckout.go index 9037800..f9e6a2c 100644 --- a/connectorconfig/paypalexpresscheckout.go +++ b/connectorconfig/paypalexpresscheckout.go @@ -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" ) @@ -81,3 +82,7 @@ func (c *PayPalExpressCheckoutCredentials) Supports3RI() bool { func (c *PayPalExpressCheckoutCredentials) IsAccountUpdater() bool { return false } + +func (c *PayPalExpressCheckoutCredentials) SupportedTokenTypes() []scheduler.TokenSource { + return nil +} diff --git a/connectorconfig/paypalwebsitepaymentspro.go b/connectorconfig/paypalwebsitepaymentspro.go index 6f4fd5d..97b5653 100644 --- a/connectorconfig/paypalwebsitepaymentspro.go +++ b/connectorconfig/paypalwebsitepaymentspro.go @@ -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" ) @@ -141,3 +142,7 @@ func (c *PayPalWebsitePaymentsProCredentials) Supports3RI() bool { func (c *PayPalWebsitePaymentsProCredentials) IsAccountUpdater() bool { return false } + +func (c *PayPalWebsitePaymentsProCredentials) SupportedTokenTypes() []scheduler.TokenSource { + return []scheduler.TokenSource{scheduler.TokenSourcePan, scheduler.TokenSourceConnector} +} diff --git a/connectorconfig/paysafe.go b/connectorconfig/paysafe.go index 50bd980..6c8f8b3 100644 --- a/connectorconfig/paysafe.go +++ b/connectorconfig/paysafe.go @@ -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" ) @@ -147,3 +148,7 @@ func (c *PaySafeCredentials) Supports3RI() bool { func (c *PaySafeCredentials) IsAccountUpdater() bool { return false } + +func (c *PaySafeCredentials) SupportedTokenTypes() []scheduler.TokenSource { + return []scheduler.TokenSource{scheduler.TokenSourcePan, scheduler.TokenSourceConnector, scheduler.TokenSourceNetworkToken} +} diff --git a/connectorconfig/paysafeaccountupdater.go b/connectorconfig/paysafeaccountupdater.go index 3fdfc85..77f7166 100644 --- a/connectorconfig/paysafeaccountupdater.go +++ b/connectorconfig/paysafeaccountupdater.go @@ -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" ) @@ -87,3 +88,7 @@ func (c *PaySafeAccountUpdaterCredentials) Supports3RI() bool { func (c *PaySafeAccountUpdaterCredentials) IsAccountUpdater() bool { return true } + +func (c *PaySafeAccountUpdaterCredentials) SupportedTokenTypes() []scheduler.TokenSource { + return nil +} diff --git a/connectorconfig/qualpay.go b/connectorconfig/qualpay.go index 96212fd..cb2c7ff 100644 --- a/connectorconfig/qualpay.go +++ b/connectorconfig/qualpay.go @@ -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" ) @@ -85,3 +86,7 @@ func (c *QualpayCredentials) Supports3RI() bool { func (g *QualpayCredentials) IsAccountUpdater() bool { return false } + +func (g *QualpayCredentials) SupportedTokenTypes() []scheduler.TokenSource { + return []scheduler.TokenSource{scheduler.TokenSourcePan, scheduler.TokenSourceNetworkToken} +} diff --git a/connectorconfig/recaptcha.go b/connectorconfig/recaptcha.go index 0bc9b2b..86bc20f 100644 --- a/connectorconfig/recaptcha.go +++ b/connectorconfig/recaptcha.go @@ -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" ) @@ -76,3 +77,7 @@ func (c *RecaptchaCredentials) Supports3RI() bool { func (c *RecaptchaCredentials) IsAccountUpdater() bool { return false } + +func (c *RecaptchaCredentials) SupportedTokenTypes() []scheduler.TokenSource { + return nil +} diff --git a/connectorconfig/sandbanx.go b/connectorconfig/sandbanx.go index 7f5202e..1211ed5 100644 --- a/connectorconfig/sandbanx.go +++ b/connectorconfig/sandbanx.go @@ -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" ) @@ -90,3 +91,7 @@ func (c *SandbanxCredentials) GetApplePay() *ApplePayCredentials { func (c *SandbanxCredentials) IsAccountUpdater() bool { return false } + +func (c *SandbanxCredentials) SupportedTokenTypes() []scheduler.TokenSource { + return []scheduler.TokenSource{scheduler.TokenSourcePan, scheduler.TokenSourceConnector, scheduler.TokenSourceNetworkToken} +} diff --git a/connectorconfig/sandbox.go b/connectorconfig/sandbox.go index 4ae79c9..a0cbaf2 100644 --- a/connectorconfig/sandbox.go +++ b/connectorconfig/sandbox.go @@ -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" ) @@ -84,3 +85,7 @@ func (c *SandboxCredentials) Supports3RI() bool { func (c *SandboxCredentials) IsAccountUpdater() bool { return false } + +func (c *SandboxCredentials) SupportedTokenTypes() []scheduler.TokenSource { + return []scheduler.TokenSource{scheduler.TokenSourcePan, scheduler.TokenSourceConnector, scheduler.TokenSourceNetworkToken} +} diff --git a/connectorconfig/sticky-io.go b/connectorconfig/sticky-io.go index fd31054..4ce52e1 100644 --- a/connectorconfig/sticky-io.go +++ b/connectorconfig/sticky-io.go @@ -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" ) @@ -72,3 +73,7 @@ func (c *StickyIOCredentials) Supports3RI() bool { func (c *StickyIOCredentials) IsAccountUpdater() bool { return false } + +func (c *StickyIOCredentials) SupportedTokenTypes() []scheduler.TokenSource { + return nil +} diff --git a/connectorconfig/stripe.go b/connectorconfig/stripe.go index 2f02b84..bfaf421 100644 --- a/connectorconfig/stripe.go +++ b/connectorconfig/stripe.go @@ -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" ) @@ -74,3 +75,7 @@ func (c *StripeCredentials) Supports3RI() bool { func (g *StripeCredentials) IsAccountUpdater() bool { return false } + +func (g *StripeCredentials) SupportedTokenTypes() []scheduler.TokenSource { + return []scheduler.TokenSource{scheduler.TokenSourcePan, scheduler.TokenSourceConnector, scheduler.TokenSourceNetworkToken} +} diff --git a/connectorconfig/tokenexaccountupdater.go b/connectorconfig/tokenexaccountupdater.go index 9e8126f..2d5578e 100644 --- a/connectorconfig/tokenexaccountupdater.go +++ b/connectorconfig/tokenexaccountupdater.go @@ -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" ) @@ -97,3 +98,7 @@ func (c *TokenExAccountUpdaterCredentials) Supports3RI() bool { func (c *TokenExAccountUpdaterCredentials) IsAccountUpdater() bool { return true } + +func (c *TokenExAccountUpdaterCredentials) SupportedTokenTypes() []scheduler.TokenSource { + return nil +} diff --git a/connectorconfig/tokenexapiaccountupdater.go b/connectorconfig/tokenexapiaccountupdater.go index 3818782..03136e6 100644 --- a/connectorconfig/tokenexapiaccountupdater.go +++ b/connectorconfig/tokenexapiaccountupdater.go @@ -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" ) @@ -77,3 +78,7 @@ func (c *TokenExApiAccountUpdaterCredentials) Supports3RI() bool { func (c *TokenExApiAccountUpdaterCredentials) IsAccountUpdater() bool { return true } + +func (c *TokenExApiAccountUpdaterCredentials) SupportedTokenTypes() []scheduler.TokenSource { + return nil +} diff --git a/connectorconfig/tokenexnetworktokenization.go b/connectorconfig/tokenexnetworktokenization.go index 9941cf5..c0306d8 100644 --- a/connectorconfig/tokenexnetworktokenization.go +++ b/connectorconfig/tokenexnetworktokenization.go @@ -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" ) @@ -71,3 +72,7 @@ func (c *TokenExNetworkTokenizationCredentials) Supports3RI() bool { func (c *TokenExNetworkTokenizationCredentials) IsAccountUpdater() bool { return false } + +func (c *TokenExNetworkTokenizationCredentials) SupportedTokenTypes() []scheduler.TokenSource { + return nil +} diff --git a/connectorconfig/trustPayments.go b/connectorconfig/trustPayments.go index 19baa23..a80f859 100644 --- a/connectorconfig/trustPayments.go +++ b/connectorconfig/trustPayments.go @@ -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" ) @@ -99,3 +100,7 @@ func (c *TrustPaymentsCredentials) Supports3RI() bool { func (c *TrustPaymentsCredentials) IsAccountUpdater() bool { return false } + +func (c *TrustPaymentsCredentials) SupportedTokenTypes() []scheduler.TokenSource { + return []scheduler.TokenSource{scheduler.TokenSourcePan} +} diff --git a/connectorconfig/vindicia.go b/connectorconfig/vindicia.go index 0d58429..524d7fa 100644 --- a/connectorconfig/vindicia.go +++ b/connectorconfig/vindicia.go @@ -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" ) @@ -94,3 +95,7 @@ func (c *VindiciaCredentials) Supports3RI() bool { func (c *VindiciaCredentials) IsAccountUpdater() bool { return false } + +func (c *VindiciaCredentials) SupportedTokenTypes() []scheduler.TokenSource { + return []scheduler.TokenSource{scheduler.TokenSourcePan} +} diff --git a/connectorconfig/woodforest.go b/connectorconfig/woodforest.go index 42aac25..72f7268 100644 --- a/connectorconfig/woodforest.go +++ b/connectorconfig/woodforest.go @@ -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" ) @@ -72,3 +73,7 @@ func (c *WoodforestCredentials) Supports3RI() bool { func (c *WoodforestCredentials) IsAccountUpdater() bool { return false } + +func (c *WoodforestCredentials) SupportedTokenTypes() []scheduler.TokenSource { + return []scheduler.TokenSource{scheduler.TokenSourcePan, scheduler.TokenSourceNetworkToken} +} diff --git a/connectorconfig/worldpay.go b/connectorconfig/worldpay.go index fb7cc4a..e0b2076 100644 --- a/connectorconfig/worldpay.go +++ b/connectorconfig/worldpay.go @@ -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" ) @@ -152,3 +153,7 @@ func (c *WorldpayCredentials) Supports3RI() bool { func (c *WorldpayCredentials) IsAccountUpdater() bool { return false } + +func (c *WorldpayCredentials) SupportedTokenTypes() []scheduler.TokenSource { + return []scheduler.TokenSource{scheduler.TokenSourcePan, scheduler.TokenSourceConnector, scheduler.TokenSourceNetworkToken} +} diff --git a/connectorconfig/yapstone.go b/connectorconfig/yapstone.go index c460752..6e25525 100644 --- a/connectorconfig/yapstone.go +++ b/connectorconfig/yapstone.go @@ -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" ) @@ -89,3 +90,7 @@ func (c *YapstoneCredentials) Supports3RI() bool { func (c *YapstoneCredentials) IsAccountUpdater() bool { return false } + +func (c *YapstoneCredentials) SupportedTokenTypes() []scheduler.TokenSource { + return []scheduler.TokenSource{scheduler.TokenSourcePan} +}