Skip to content

Commit 2f409f3

Browse files
authored
update credential interface to determine if connector is an account updater (#248)
1 parent 8e183fb commit 2f409f3

39 files changed

+157
-0
lines changed

connectorconfig/3dsecureio.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,7 @@ func (c *ThreeDSecureIOCredentials) IsRecoveryAgent() bool {
9090
func (c *ThreeDSecureIOCredentials) Supports3RI() bool {
9191
return false
9292
}
93+
94+
func (c *ThreeDSecureIOCredentials) IsAccountUpdater() bool {
95+
return false
96+
}

connectorconfig/adyen.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,7 @@ func (c *AdyenCredentials) GetGooglePay() *GooglePayCredentials {
107107
func (c *AdyenCredentials) GetApplePay() *ApplePayCredentials {
108108
return c.ApplePay
109109
}
110+
111+
func (c *AdyenCredentials) IsAccountUpdater() bool {
112+
return false
113+
}

connectorconfig/applePay.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,3 +316,7 @@ func (a *ApplePayCredentials) GetAppleMerchantCapabilities() []AppleMerchantCapa
316316
}
317317
return a.AppleMerchantCapabilities
318318
}
319+
320+
func (a *ApplePayCredentials) IsAccountUpdater() bool {
321+
return false
322+
}

connectorconfig/authorizenet.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,7 @@ func (c *AuthorizeCredentials) IsRecoveryAgent() bool {
6666
func (c *AuthorizeCredentials) Supports3RI() bool {
6767
return false
6868
}
69+
70+
func (g *AuthorizeCredentials) IsAccountUpdater() bool {
71+
return false
72+
}

connectorconfig/bluesnap.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,7 @@ func (c *BlueSnapCredentials) IsRecoveryAgent() bool {
9999
func (c *BlueSnapCredentials) Supports3RI() bool {
100100
return false
101101
}
102+
103+
func (g *BlueSnapCredentials) IsAccountUpdater() bool {
104+
return false
105+
}

connectorconfig/bottomline.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,7 @@ func (c *BottomlineCredentials) IsRecoveryAgent() bool {
8484
func (c *BottomlineCredentials) Supports3RI() bool {
8585
return false
8686
}
87+
88+
func (c *BottomlineCredentials) IsAccountUpdater() bool {
89+
return false
90+
}

connectorconfig/braintree.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,7 @@ func (c *BraintreeCredentials) GetApplePay() *ApplePayCredentials {
131131
func (c *BraintreeCredentials) Supports3RI() bool {
132132
return false
133133
}
134+
135+
func (g *BraintreeCredentials) IsAccountUpdater() bool {
136+
return false
137+
}

connectorconfig/checkout.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,3 +148,7 @@ func (c *CheckoutCredentials) IsRecoveryAgent() bool {
148148
func (c *CheckoutCredentials) Supports3RI() bool {
149149
return false
150150
}
151+
152+
func (c *CheckoutCredentials) IsAccountUpdater() bool {
153+
return false
154+
}

connectorconfig/clearhaus.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,7 @@ func (c *ClearhausCredentials) IsRecoveryAgent() bool {
8787
func (c *ClearhausCredentials) Supports3RI() bool {
8888
return false
8989
}
90+
91+
func (c *ClearhausCredentials) IsAccountUpdater() bool {
92+
return false
93+
}

connectorconfig/credentials.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ type Credentials interface {
2121
CanPlanModeUse(mode environment.Mode) bool // Determine if this plan mode can use this configuration
2222
IsRecoveryAgent() bool
2323
Supports3RI() bool
24+
IsAccountUpdater() bool
2425
}
2526

2627
type NoLibrary map[string]any
@@ -76,3 +77,7 @@ func (n NoLibrary) IsRecoveryAgent() bool {
7677
func (n NoLibrary) Supports3RI() bool {
7778
return false
7879
}
80+
81+
func (n NoLibrary) IsAccountUpdater() bool {
82+
return false
83+
}

0 commit comments

Comments
 (0)