1.0.132 • Published 19 days ago

@kontist/mock-solaris v1.0.132

Weekly downloads
310
License
Apache-2.0
Repository
github
Last release
19 days ago

Solaris Mock Server

A super minimal implementation of the Solaris backend.

Usage

Running with hot reloading enabled

You need two terminal sessions:

  1. npm run build:hot (1st terminal session)
  2. Optionally (if you haven't built before): npm run build:docker (2nd terminal session)
  3. npm run start:docker (2nd terminal session)
  4. Enjoy. You may now access the backoffice at http://localhost:2091/__BACKOFFICE__/.

Running tests

  1. npm run start:mockredis Starts mock redis instance
  2. npm run test Runs tests

Example request

curl TODO

Backoffice screenshots

mockSolarisPerson

Persons and accounts

Navigate to the URL mentioned above. From there you can send simple, random transaction(s) to your test account.

To add further persons, please have a look at the savePerson method.

Scope

This mock service currently supports (at different extents)

  • Accounts
  • Statements
  • Transfers (incl. Batch Transfers, Timed Orders and Standing Orders)
  • Change Requests
  • Cards
  • Device Binding
  • Overdraft
  • Seizures
  • Direct Debit Returns
  • Webhooks
  • Customer Due Diligence
  • ...

TAN

For device binding, you can use any combination as the 6-digit TAN (it is not actually verified).

For other TAN confirmation (Change Requests, Transfer confirmation, etc.), you can find the 6-digit code on your user's UI: TAN

Onboarding a person - Customer due diligence (CDD)

A successfully onboarded person must have "green" values for screening values. You can set screening values from the "Person data" section (More info)

Seizure Protection

When querying the balance for P-konto accounts, you will get a seizure_protection object as stated in this API. Since solaris does not support changing an account to P-konto; we mocked the existence of seizure protection.

You can modify the values of seizure protection in this section:

seizure-protection

You can also delete the object afterwards:

allow-delete-seizure-protection

Configuration

Enable Redis

Reference

The following environment variables are supported:

SOLARIS_CLIENT_ID=...
SOLARIS_CLIENT_SECRET=...
SOLARIS_CARD_AUTHORIZATION_WEBHOOK_ORIGIN_VERIFICATION_SECRET=...
SOLARIS_OVERDRAFT_APPLICATION_WEBHOOK_ORIGIN_VERIFICATION_SECRET=...
SOLARIS_BIC=SOBKDEBBXXX

MOCKSOLARIS_REDIS_PREFIX=mocksolaris
MOCKSOLARIS_REDIS_SERVER=redis://:pwd@mocks-redis/

SOLARIS_KONTIST_ACCOUNT_ID=mockaccount_id
SOLARIS_KONTIST_ACCOUNT_CLIENT_ID=...
SOLARIS_KONTIST_ACCOUNT_CLIENT_SECRET=...
SOLARIS_KONTIST_BILLING_ACCOUNT_ID=mockaccount_billing_id

KONTIST_IBAN=DE01110101000000000000
KONTIST_DD_BILLING_IBAN=DE02110101000000000000

JOBS_USERNAME=jobuser
JOBS_PASSWORD=jobpassword

Publishing New Version

Create a branch that doesn't have the same name as the tag e.g. NOT v1.0.120

git checkout <some_name>

Increase the version

npm version patch

Push the changes with tags

git push --follow-tags
1.0.132

19 days ago

1.0.131

27 days ago

1.0.130

29 days ago

1.0.129

1 month ago

1.0.128

1 month ago

1.0.127

2 months ago

1.0.125

2 months ago

1.0.124

2 months ago

1.0.126

2 months ago

1.0.123

2 months ago

1.0.121

2 months ago

1.0.120

2 months ago

1.0.122

2 months ago

1.0.119

2 months ago

1.0.118

3 months ago

1.0.117

3 months ago

1.0.116

4 months ago

1.0.114

4 months ago

1.0.115

4 months ago

1.0.113

4 months ago

1.0.93-alpha

8 months ago

1.0.101

7 months ago

1.0.100

7 months ago

1.0.107

6 months ago

1.0.106

5 months ago

1.0.109

6 months ago

1.0.103

7 months ago

1.0.102

7 months ago

1.0.105

7 months ago

1.0.104

7 months ago

1.0.88-b

10 months ago

1.0.88

9 months ago

1.0.87

10 months ago

1.0.86

10 months ago

1.0.89

9 months ago

1.0.110

5 months ago

1.0.112

5 months ago

1.0.92-alpha

8 months ago

1.0.111

5 months ago

1.0.91

8 months ago

1.0.90

9 months ago

1.0.95

7 months ago

1.0.94

8 months ago

1.0.93

8 months ago

1.0.92

8 months ago

1.0.99

7 months ago

1.0.98

7 months ago

1.0.97

7 months ago

1.0.96

7 months ago

1.0.8-5.2

10 months ago

1.0.85-1

10 months ago

1.0.85-3

10 months ago

1.0.85-0

10 months ago

1.0.85

10 months ago

1.0.84

11 months ago

1.0.83

12 months ago

1.0.82

12 months ago

1.0.77

1 year ago

1.0.76

1 year ago

1.0.79

1 year ago

1.0.78

1 year ago

1.0.80

1 year ago

1.0.81

1 year ago

1.0.69

1 year ago

1.0.68

1 year ago

1.0.73

1 year ago

1.0.72

1 year ago

1.0.71

1 year ago

1.0.70

1 year ago

1.0.75

1 year ago

1.0.74

1 year ago

1.0.62

1 year ago

1.0.61

1 year ago

1.0.60

1 year ago

1.0.66

1 year ago

1.0.65

1 year ago

1.0.64

1 year ago

1.0.63

1 year ago

1.0.67

1 year ago

1.0.59

1 year ago

1.0.58

1 year ago

1.0.57

1 year ago

1.0.49

2 years ago

1.0.51

2 years ago

1.0.50

2 years ago

1.0.55

2 years ago

1.0.54

2 years ago

1.0.53

2 years ago

1.0.52

2 years ago

1.0.56

2 years ago

1.0.39

2 years ago

1.0.48

2 years ago

1.0.47

2 years ago

1.0.38

2 years ago

1.0.37

2 years ago

1.0.36

2 years ago

1.0.35

2 years ago

1.0.34

2 years ago

1.0.33

2 years ago

1.0.32

3 years ago

1.0.31

3 years ago

1.0.30

3 years ago

1.0.29

3 years ago

1.0.28

3 years ago

1.0.26

3 years ago

1.0.27

3 years ago

1.0.25

3 years ago

1.0.24

3 years ago

1.0.23

3 years ago

1.0.22

3 years ago

1.0.21

4 years ago

1.0.20

4 years ago

1.0.19

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.12

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.2

4 years ago