Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: extended connectors documentation #69

Merged
merged 1 commit into from
Dec 21, 2022
Merged
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
158 changes: 158 additions & 0 deletions docs/connectors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
# Connectors

## Currently supported connectors configs and typical default values

- [BankingCircle](#bankingcircle)
- [CurrencyCloud](#currencycloud)
- [Modulr](#modulr)
- [Stripe](#stripe)
- [Wise](#wise)
- [DummyPay](#dummypay)

### BankingCircle

Docs: [https://docs.bankingcircleconnect.com/](https://docs.bankingcircleconnect.com/)

```golang
Username string `json:"username" yaml:"username" bson:"username"`
Password string `json:"password" yaml:"password" bson:"password"`
Endpoint string `json:"endpoint" yaml:"endpoint" bson:"endpoint"`
AuthorizationEndpoint string `json:"authorizationEndpoint" yaml:"authorizationEndpoint" bson:"authorizationEndpoint"`
```

#### Sandbox defaults
```json
{
"username": "username",
"password": "password",
"endpoint": "https://sandbox.bankingcircle.com",
"authorizationEndpoint": "https://authorizationsandbox.bankingcircleconnect.com"
}
```

#### Production defaults
```json
{
"username": "username",
"password": "password",
"endpoint": " https://www.bankingcircleconnect.com/",
"authorizationEndpoint": "https://authorization.bankingcircleconnect.com"
}
```

### CurrencyCloud

Docs: [https://www.currencycloud.com/developers/](https://www.currencycloud.com/developers/)

```golang
LoginID string `json:"loginID" bson:"loginID"`
APIKey string `json:"apiKey" bson:"apiKey"`
Endpoint string `json:"endpoint" bson:"endpoint"`
PollingPeriod Duration `json:"pollingPeriod" bson:"pollingPeriod"`
```

#### Demo defaults
```json
{
"loginID": "loginID",
"apiKey": "apiKey",
"endpoint": "https://devapi.currencycloud.com",
"pollingPeriod": "1m"
}
```

#### Production defaults
```json
{
"loginID": "loginID",
"apiKey": "apiKey",
"endpoint": "https://api.currencycloud.com",
"pollingPeriod": "1m"
}
```

### Modulr

Docs: [https://www.modulrfinance.com/modulr-api](https://www.modulrfinance.com/modulr-api)

```golang
APIKey string `json:"apiKey" bson:"apiKey"`
APISecret string `json:"apiSecret" bson:"apiSecret"`
Endpoint string `json:"endpoint" bson:"endpoint"`
```

#### Sandbox defaults
```json
{
"apiKey": "apiKey",
"apiSecret": "apiSecret",
"endpoint": "https://api-sandbox.modulrfinance.com"
}
```

#### Production defaults
```json
{
"apiKey": "apiKey",
"apiSecret": "apiSecret",
"endpoint": "https://api.modulrfinance.com"
}
```

### Stripe

Docs: [https://stripe.com/docs/development](https://stripe.com/docs/development)

Sandbox/Production environment selection is controlled by api key and api secret types.

```golang
PollingPeriod connectors.Duration `json:"pollingPeriod" yaml:"pollingPeriod" bson:"pollingPeriod"`
APIKey string `json:"apiKey" yaml:"apiKey" bson:"apiKey"`
PageSize uint64 `json:"pageSize" yaml:"pageSize" bson:"pageSize"`
```

#### Defaults
```json
{
"pollingPeriod": "1m",
"apiKey": "apiKey",
"pageSize": 100
}
```

### Wise

Docs: [https://api-docs.wise.com/](https://api-docs.wise.com/)

Sandbox/Production environment selection is controlled by api key and api secret types.

```golang
APIKey string `json:"apiKey
````

#### Defaults
```json
{
"apiKey": "apiKey"
}
```

### DummyPay

This connector is used only for testing purposes. It does not connect to any real payment provider.

```golang
Directory string `json:"directory" yaml:"directory" bson:"directory"`
FilePollingPeriod connectors.Duration `json:"filePollingPeriod" yaml:"filePollingPeriod" bson:"filePollingPeriod"`
FileGenerationPeriod connectors.Duration `json:"fileGenerationPeriod" yaml:"fileGenerationPeriod" bson:"fileGenerationPeriod"`
```

#### Defaults
```json
{
"directory": "/tmp/payments",
"filePollingPeriod": "30s",
"fileGenerationPeriod": "10s"
}
```