From a83a2f94a2a6ab8bbc59370106fa5b1009f7d4f5 Mon Sep 17 00:00:00 2001 From: Adam Martin Date: Tue, 4 Nov 2025 15:27:59 +0000 Subject: [PATCH] update credential interface to determine if connector is an account updater --- connectorconfig/3dsecureio.go | 4 ++++ connectorconfig/adyen.go | 4 ++++ connectorconfig/applePay.go | 4 ++++ connectorconfig/authorizenet.go | 4 ++++ connectorconfig/bluesnap.go | 4 ++++ connectorconfig/bottomline.go | 4 ++++ connectorconfig/braintree.go | 4 ++++ connectorconfig/checkout.go | 4 ++++ connectorconfig/clearhaus.go | 4 ++++ connectorconfig/credentials.go | 5 +++++ connectorconfig/cwams.go | 4 ++++ connectorconfig/cybersource.go | 4 ++++ connectorconfig/epx.go | 4 ++++ connectorconfig/flexpay.go | 4 ++++ connectorconfig/googlePay.go | 4 ++++ connectorconfig/gpayments.go | 4 ++++ connectorconfig/inoviopay.go | 4 ++++ connectorconfig/kount.go | 4 ++++ connectorconfig/maxmind.go | 4 ++++ connectorconfig/nuvei.go | 4 ++++ connectorconfig/paypalcompletepayments.go | 4 ++++ connectorconfig/paypalexpresscheckout.go | 4 ++++ connectorconfig/paypalwebsitepaymentspro.go | 4 ++++ connectorconfig/paysafe.go | 4 ++++ connectorconfig/paysafeaccountupdater.go | 4 ++++ connectorconfig/qualpay.go | 4 ++++ connectorconfig/recaptcha.go | 4 ++++ connectorconfig/sandbanx.go | 4 ++++ connectorconfig/sandbox.go | 4 ++++ connectorconfig/sticky-io.go | 4 ++++ connectorconfig/stripe.go | 4 ++++ connectorconfig/tokenexaccountupdater.go | 4 ++++ connectorconfig/tokenexapiaccountupdater.go | 4 ++++ connectorconfig/tokenexnetworktokenization.go | 4 ++++ connectorconfig/trustPayments.go | 4 ++++ connectorconfig/vindicia.go | 4 ++++ connectorconfig/woodforest.go | 4 ++++ connectorconfig/worldpay.go | 4 ++++ connectorconfig/yapstone.go | 4 ++++ 39 files changed, 157 insertions(+) diff --git a/connectorconfig/3dsecureio.go b/connectorconfig/3dsecureio.go index 94f9e24..f151208 100644 --- a/connectorconfig/3dsecureio.go +++ b/connectorconfig/3dsecureio.go @@ -90,3 +90,7 @@ func (c *ThreeDSecureIOCredentials) IsRecoveryAgent() bool { func (c *ThreeDSecureIOCredentials) Supports3RI() bool { return false } + +func (c *ThreeDSecureIOCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/adyen.go b/connectorconfig/adyen.go index 9306216..64b9687 100644 --- a/connectorconfig/adyen.go +++ b/connectorconfig/adyen.go @@ -107,3 +107,7 @@ func (c *AdyenCredentials) GetGooglePay() *GooglePayCredentials { func (c *AdyenCredentials) GetApplePay() *ApplePayCredentials { return c.ApplePay } + +func (c *AdyenCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/applePay.go b/connectorconfig/applePay.go index 682127c..5d146ab 100644 --- a/connectorconfig/applePay.go +++ b/connectorconfig/applePay.go @@ -316,3 +316,7 @@ func (a *ApplePayCredentials) GetAppleMerchantCapabilities() []AppleMerchantCapa } return a.AppleMerchantCapabilities } + +func (a *ApplePayCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/authorizenet.go b/connectorconfig/authorizenet.go index 99598e9..5a622c6 100644 --- a/connectorconfig/authorizenet.go +++ b/connectorconfig/authorizenet.go @@ -66,3 +66,7 @@ func (c *AuthorizeCredentials) IsRecoveryAgent() bool { func (c *AuthorizeCredentials) Supports3RI() bool { return false } + +func (g *AuthorizeCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/bluesnap.go b/connectorconfig/bluesnap.go index e6b7d7f..60ed0b5 100644 --- a/connectorconfig/bluesnap.go +++ b/connectorconfig/bluesnap.go @@ -99,3 +99,7 @@ func (c *BlueSnapCredentials) IsRecoveryAgent() bool { func (c *BlueSnapCredentials) Supports3RI() bool { return false } + +func (g *BlueSnapCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/bottomline.go b/connectorconfig/bottomline.go index ab336c7..2e5b8e1 100644 --- a/connectorconfig/bottomline.go +++ b/connectorconfig/bottomline.go @@ -84,3 +84,7 @@ func (c *BottomlineCredentials) IsRecoveryAgent() bool { func (c *BottomlineCredentials) Supports3RI() bool { return false } + +func (c *BottomlineCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/braintree.go b/connectorconfig/braintree.go index ca42601..a5652a8 100644 --- a/connectorconfig/braintree.go +++ b/connectorconfig/braintree.go @@ -131,3 +131,7 @@ func (c *BraintreeCredentials) GetApplePay() *ApplePayCredentials { func (c *BraintreeCredentials) Supports3RI() bool { return false } + +func (g *BraintreeCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/checkout.go b/connectorconfig/checkout.go index 63e402f..9805550 100644 --- a/connectorconfig/checkout.go +++ b/connectorconfig/checkout.go @@ -148,3 +148,7 @@ func (c *CheckoutCredentials) IsRecoveryAgent() bool { func (c *CheckoutCredentials) Supports3RI() bool { return false } + +func (c *CheckoutCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/clearhaus.go b/connectorconfig/clearhaus.go index aa49cb8..99f4138 100644 --- a/connectorconfig/clearhaus.go +++ b/connectorconfig/clearhaus.go @@ -87,3 +87,7 @@ func (c *ClearhausCredentials) IsRecoveryAgent() bool { func (c *ClearhausCredentials) Supports3RI() bool { return false } + +func (c *ClearhausCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/credentials.go b/connectorconfig/credentials.go index 0bc6efb..c8e16e6 100644 --- a/connectorconfig/credentials.go +++ b/connectorconfig/credentials.go @@ -21,6 +21,7 @@ type Credentials interface { CanPlanModeUse(mode environment.Mode) bool // Determine if this plan mode can use this configuration IsRecoveryAgent() bool Supports3RI() bool + IsAccountUpdater() bool } type NoLibrary map[string]any @@ -76,3 +77,7 @@ func (n NoLibrary) IsRecoveryAgent() bool { func (n NoLibrary) Supports3RI() bool { return false } + +func (n NoLibrary) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/cwams.go b/connectorconfig/cwams.go index 5a098b9..a11d11f 100644 --- a/connectorconfig/cwams.go +++ b/connectorconfig/cwams.go @@ -105,3 +105,7 @@ func (c *CWAMSCredentials) IsRecoveryAgent() bool { func (c *CWAMSCredentials) Supports3RI() bool { return false } + +func (c *CWAMSCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/cybersource.go b/connectorconfig/cybersource.go index a99aaec..af3249a 100644 --- a/connectorconfig/cybersource.go +++ b/connectorconfig/cybersource.go @@ -76,3 +76,7 @@ func (c *CyberSourceCredentials) IsRecoveryAgent() bool { func (c *CyberSourceCredentials) Supports3RI() bool { return false } + +func (c *CyberSourceCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/epx.go b/connectorconfig/epx.go index c07b846..6201d29 100644 --- a/connectorconfig/epx.go +++ b/connectorconfig/epx.go @@ -84,3 +84,7 @@ func (c *EpxCredentials) IsRecoveryAgent() bool { func (c *EpxCredentials) Supports3RI() bool { return false } + +func (c *EpxCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/flexpay.go b/connectorconfig/flexpay.go index 9693c3e..672e8ea 100644 --- a/connectorconfig/flexpay.go +++ b/connectorconfig/flexpay.go @@ -79,3 +79,7 @@ func (c *FlexPayCredentials) IsRecoveryAgent() bool { func (c *FlexPayCredentials) Supports3RI() bool { return false } + +func (c *FlexPayCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/googlePay.go b/connectorconfig/googlePay.go index 4363f1f..ed095ed 100644 --- a/connectorconfig/googlePay.go +++ b/connectorconfig/googlePay.go @@ -138,6 +138,10 @@ func (g *GooglePayCredentials) Supports3RI() bool { return false } +func (g *GooglePayCredentials) IsAccountUpdater() bool { + return false +} + func (g *GooglePayCredentials) GetSecureFields() []*string { if g == nil { return nil diff --git a/connectorconfig/gpayments.go b/connectorconfig/gpayments.go index ba2e61d..d9369eb 100644 --- a/connectorconfig/gpayments.go +++ b/connectorconfig/gpayments.go @@ -83,3 +83,7 @@ func (c *GPaymentsCredentials) IsRecoveryAgent() bool { func (c *GPaymentsCredentials) Supports3RI() bool { return true } + +func (c *GPaymentsCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/inoviopay.go b/connectorconfig/inoviopay.go index bde2d96..2e849a8 100644 --- a/connectorconfig/inoviopay.go +++ b/connectorconfig/inoviopay.go @@ -83,3 +83,7 @@ func (c *InovioPayCredentials) IsRecoveryAgent() bool { func (c *InovioPayCredentials) Supports3RI() bool { return false } + +func (c *InovioPayCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/kount.go b/connectorconfig/kount.go index 8d1204a..fad1ff8 100644 --- a/connectorconfig/kount.go +++ b/connectorconfig/kount.go @@ -86,3 +86,7 @@ func (c *KountCredentials) IsRecoveryAgent() bool { func (c *KountCredentials) Supports3RI() bool { return false } + +func (c *KountCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/maxmind.go b/connectorconfig/maxmind.go index 2054bb9..aa0a1da 100644 --- a/connectorconfig/maxmind.go +++ b/connectorconfig/maxmind.go @@ -79,3 +79,7 @@ func (c *MaxMindCredentials) IsRecoveryAgent() bool { func (c *MaxMindCredentials) Supports3RI() bool { return false } + +func (c *MaxMindCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/nuvei.go b/connectorconfig/nuvei.go index d662b62..f4ea9ff 100644 --- a/connectorconfig/nuvei.go +++ b/connectorconfig/nuvei.go @@ -81,3 +81,7 @@ func (c *NuveiCredentials) IsRecoveryAgent() bool { func (c *NuveiCredentials) Supports3RI() bool { return false } + +func (c *NuveiCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/paypalcompletepayments.go b/connectorconfig/paypalcompletepayments.go index 6fc67f1..61a22ba 100644 --- a/connectorconfig/paypalcompletepayments.go +++ b/connectorconfig/paypalcompletepayments.go @@ -68,3 +68,7 @@ func (c *PayPalCompletePaymentsCredentials) IsRecoveryAgent() bool { func (c *PayPalCompletePaymentsCredentials) Supports3RI() bool { return false } + +func (c *PayPalCompletePaymentsCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/paypalexpresscheckout.go b/connectorconfig/paypalexpresscheckout.go index c9cfdb2..9037800 100644 --- a/connectorconfig/paypalexpresscheckout.go +++ b/connectorconfig/paypalexpresscheckout.go @@ -77,3 +77,7 @@ func (c *PayPalExpressCheckoutCredentials) IsRecoveryAgent() bool { func (c *PayPalExpressCheckoutCredentials) Supports3RI() bool { return false } + +func (c *PayPalExpressCheckoutCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/paypalwebsitepaymentspro.go b/connectorconfig/paypalwebsitepaymentspro.go index da98750..6f4fd5d 100644 --- a/connectorconfig/paypalwebsitepaymentspro.go +++ b/connectorconfig/paypalwebsitepaymentspro.go @@ -137,3 +137,7 @@ func (c *PayPalWebsitePaymentsProCredentials) IsRecoveryAgent() bool { func (c *PayPalWebsitePaymentsProCredentials) Supports3RI() bool { return false } + +func (c *PayPalWebsitePaymentsProCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/paysafe.go b/connectorconfig/paysafe.go index bc53c83..50bd980 100644 --- a/connectorconfig/paysafe.go +++ b/connectorconfig/paysafe.go @@ -143,3 +143,7 @@ func (c *PaySafeCredentials) IsRecoveryAgent() bool { func (c *PaySafeCredentials) Supports3RI() bool { return false } + +func (c *PaySafeCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/paysafeaccountupdater.go b/connectorconfig/paysafeaccountupdater.go index 2aaf162..3fdfc85 100644 --- a/connectorconfig/paysafeaccountupdater.go +++ b/connectorconfig/paysafeaccountupdater.go @@ -83,3 +83,7 @@ func (c *PaySafeAccountUpdaterCredentials) IsRecoveryAgent() bool { func (c *PaySafeAccountUpdaterCredentials) Supports3RI() bool { return false } + +func (c *PaySafeAccountUpdaterCredentials) IsAccountUpdater() bool { + return true +} diff --git a/connectorconfig/qualpay.go b/connectorconfig/qualpay.go index 1868bdc..96212fd 100644 --- a/connectorconfig/qualpay.go +++ b/connectorconfig/qualpay.go @@ -81,3 +81,7 @@ func (c *QualpayCredentials) IsRecoveryAgent() bool { func (c *QualpayCredentials) Supports3RI() bool { return false } + +func (g *QualpayCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/recaptcha.go b/connectorconfig/recaptcha.go index 32276da..0bc9b2b 100644 --- a/connectorconfig/recaptcha.go +++ b/connectorconfig/recaptcha.go @@ -72,3 +72,7 @@ func (c *RecaptchaCredentials) IsRecoveryAgent() bool { func (c *RecaptchaCredentials) Supports3RI() bool { return false } + +func (c *RecaptchaCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/sandbanx.go b/connectorconfig/sandbanx.go index 632a29a..7f5202e 100644 --- a/connectorconfig/sandbanx.go +++ b/connectorconfig/sandbanx.go @@ -86,3 +86,7 @@ func (c *SandbanxCredentials) GetGooglePayParams() map[string]string { func (c *SandbanxCredentials) GetApplePay() *ApplePayCredentials { return c.ApplePay } + +func (c *SandbanxCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/sandbox.go b/connectorconfig/sandbox.go index 7dad36c..4ae79c9 100644 --- a/connectorconfig/sandbox.go +++ b/connectorconfig/sandbox.go @@ -80,3 +80,7 @@ func (c *SandboxCredentials) IsRecoveryAgent() bool { func (c *SandboxCredentials) Supports3RI() bool { return false } + +func (c *SandboxCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/sticky-io.go b/connectorconfig/sticky-io.go index e5ff5e8..fd31054 100644 --- a/connectorconfig/sticky-io.go +++ b/connectorconfig/sticky-io.go @@ -68,3 +68,7 @@ func (c *StickyIOCredentials) IsRecoveryAgent() bool { func (c *StickyIOCredentials) Supports3RI() bool { return false } + +func (c *StickyIOCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/stripe.go b/connectorconfig/stripe.go index 73a7ef1..2f02b84 100644 --- a/connectorconfig/stripe.go +++ b/connectorconfig/stripe.go @@ -70,3 +70,7 @@ func (c *StripeCredentials) IsRecoveryAgent() bool { func (c *StripeCredentials) Supports3RI() bool { return false } + +func (g *StripeCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/tokenexaccountupdater.go b/connectorconfig/tokenexaccountupdater.go index 0bc91cb..9e8126f 100644 --- a/connectorconfig/tokenexaccountupdater.go +++ b/connectorconfig/tokenexaccountupdater.go @@ -93,3 +93,7 @@ func (c *TokenExAccountUpdaterCredentials) IsRecoveryAgent() bool { func (c *TokenExAccountUpdaterCredentials) Supports3RI() bool { return false } + +func (c *TokenExAccountUpdaterCredentials) IsAccountUpdater() bool { + return true +} diff --git a/connectorconfig/tokenexapiaccountupdater.go b/connectorconfig/tokenexapiaccountupdater.go index 833c53c..3818782 100644 --- a/connectorconfig/tokenexapiaccountupdater.go +++ b/connectorconfig/tokenexapiaccountupdater.go @@ -73,3 +73,7 @@ func (c *TokenExApiAccountUpdaterCredentials) IsRecoveryAgent() bool { func (c *TokenExApiAccountUpdaterCredentials) Supports3RI() bool { return false } + +func (c *TokenExApiAccountUpdaterCredentials) IsAccountUpdater() bool { + return true +} diff --git a/connectorconfig/tokenexnetworktokenization.go b/connectorconfig/tokenexnetworktokenization.go index f4a1f8c..9941cf5 100644 --- a/connectorconfig/tokenexnetworktokenization.go +++ b/connectorconfig/tokenexnetworktokenization.go @@ -67,3 +67,7 @@ func (c *TokenExNetworkTokenizationCredentials) IsRecoveryAgent() bool { func (c *TokenExNetworkTokenizationCredentials) Supports3RI() bool { return false } + +func (c *TokenExNetworkTokenizationCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/trustPayments.go b/connectorconfig/trustPayments.go index db32add..19baa23 100644 --- a/connectorconfig/trustPayments.go +++ b/connectorconfig/trustPayments.go @@ -95,3 +95,7 @@ func (c *TrustPaymentsCredentials) IsRecoveryAgent() bool { func (c *TrustPaymentsCredentials) Supports3RI() bool { return false } + +func (c *TrustPaymentsCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/vindicia.go b/connectorconfig/vindicia.go index 271ade0..0d58429 100644 --- a/connectorconfig/vindicia.go +++ b/connectorconfig/vindicia.go @@ -90,3 +90,7 @@ func (c *VindiciaCredentials) IsRecoveryAgent() bool { func (c *VindiciaCredentials) Supports3RI() bool { return false } + +func (c *VindiciaCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/woodforest.go b/connectorconfig/woodforest.go index 93727fd..42aac25 100644 --- a/connectorconfig/woodforest.go +++ b/connectorconfig/woodforest.go @@ -68,3 +68,7 @@ func (c *WoodforestCredentials) IsRecoveryAgent() bool { func (c *WoodforestCredentials) Supports3RI() bool { return false } + +func (c *WoodforestCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/worldpay.go b/connectorconfig/worldpay.go index 910f825..998a491 100644 --- a/connectorconfig/worldpay.go +++ b/connectorconfig/worldpay.go @@ -146,3 +146,7 @@ func (c *WorldpayCredentials) IsRecoveryAgent() bool { func (c *WorldpayCredentials) Supports3RI() bool { return false } + +func (c *WorldpayCredentials) IsAccountUpdater() bool { + return false +} diff --git a/connectorconfig/yapstone.go b/connectorconfig/yapstone.go index a07afd0..c460752 100644 --- a/connectorconfig/yapstone.go +++ b/connectorconfig/yapstone.go @@ -85,3 +85,7 @@ func (c *YapstoneCredentials) IsRecoveryAgent() bool { func (c *YapstoneCredentials) Supports3RI() bool { return false } + +func (c *YapstoneCredentials) IsAccountUpdater() bool { + return false +}