Template
1
0

feat: add payment module

This commit is contained in:
2025-12-05 01:56:42 +01:00
parent a818f3135a
commit be9b8e9e55
160 changed files with 8615 additions and 1158 deletions

View File

@@ -0,0 +1,24 @@
meta {
name: Create
type: http
seq: 1
}
post {
url: {{url}}/payment/wallets
body: json
auth: inherit
}
body:json {
{
"ledgerId": "3c71d240-a375-42e1-9a78-0575bf33fabb",
"entityId": "some-external-entity",
"label": "Securities"
}
}
settings {
encodeUrl: true
timeout: 0
}

View File

@@ -0,0 +1,4 @@
meta {
name: Wallet
seq: 3
}

View File

@@ -0,0 +1,20 @@
meta {
name: Ledgers
type: http
seq: 5
}
get {
url: {{url}}/payment/beneficiaries/:id/ledgers
body: json
auth: inherit
}
params:path {
id: a0a6aa39-5d13-4717-9554-a878d7f30ea7
}
settings {
encodeUrl: true
timeout: 0
}

View File

@@ -5,17 +5,19 @@ meta {
}
post {
url: {{url}}/workspace
url: {{url}}/payment/beneficiaries
body: json
auth: inherit
}
body:json {
{
"name": ""
"tenantId": "valkyr-inc",
"label": "Valkyr Inc."
}
}
settings {
encodeUrl: true
timeout: 0
}

View File

@@ -0,0 +1,20 @@
meta {
name: Dashboard
type: http
seq: 2
}
get {
url: {{url}}/payment/dashboard/:id
body: json
auth: inherit
}
params:path {
id: 2f6dfb20-7834-484c-8472-096f72fc5f08
}
settings {
encodeUrl: true
timeout: 0
}

View File

@@ -0,0 +1,4 @@
meta {
name: Beneficiary
seq: 1
}

View File

@@ -0,0 +1,20 @@
meta {
name: :id
type: http
seq: 4
}
get {
url: {{url}}/payment/beneficiaries/:id
body: json
auth: inherit
}
params:path {
id: a0a6aa39-5d13-4717-9554-a878d7f30ea7
}
settings {
encodeUrl: true
timeout: 0
}

View File

@@ -0,0 +1,16 @@
meta {
name: List
type: http
seq: 3
}
get {
url: {{url}}/payment/beneficiaries
body: json
auth: inherit
}
settings {
encodeUrl: true
timeout: 0
}

View File

@@ -0,0 +1,4 @@
meta {
name: Payment
seq: 2
}

View File

@@ -0,0 +1,27 @@
meta {
name: Create
type: http
seq: 1
}
post {
url: {{url}}/payment/ledgers
body: json
auth: inherit
}
body:json {
{
"beneficiaryId": "2f6dfb20-7834-484c-8472-096f72fc5f08",
"label": "Sample Ledger",
"currencies": [
"NOK",
"SEK"
]
}
}
settings {
encodeUrl: true
timeout: 0
}

View File

@@ -0,0 +1,4 @@
meta {
name: Ledger
seq: 2
}

View File

@@ -0,0 +1,20 @@
meta {
name: Wallets
type: http
seq: 3
}
get {
url: {{url}}/payment/ledgers/:id/wallets
body: json
auth: inherit
}
params:path {
id: 3c71d240-a375-42e1-9a78-0575bf33fabb
}
settings {
encodeUrl: true
timeout: 0
}

View File

@@ -0,0 +1,24 @@
meta {
name: Create
type: http
seq: 1
}
post {
url: {{url}}/payment/accounts
body: json
auth: inherit
}
body:json {
{
"walletId": "56f2aba8-5687-4e63-8d6a-e120b50ef891",
"currency": "NOK",
"label": "NOK Savings"
}
}
settings {
encodeUrl: true
timeout: 0
}

View File

@@ -0,0 +1,4 @@
meta {
name: Account
seq: 4
}

View File

@@ -1,19 +0,0 @@
meta {
name: Get
type: http
seq: 2
}
get {
url: {{url}}/identity/:id
body: none
auth: inherit
}
params:path {
id:
}
settings {
encodeUrl: true
}

View File

@@ -1,32 +0,0 @@
meta {
name: Roles
type: http
seq: 4
}
put {
url: {{url}}/identity/:id/roles
body: json
auth: inherit
}
params:path {
id:
}
body:json {
[
{
"type": "add",
"roles": []
},
{
"type": "remove",
"roles": []
}
]
}
settings {
encodeUrl: true
}

View File

@@ -1,43 +0,0 @@
meta {
name: Update
type: http
seq: 4
}
put {
url: {{url}}/identity/:id
body: json
auth: inherit
}
params:path {
id:
}
body:json {
[
{
"type": "add",
"key": "",
"value": ""
},
{
"type": "push",
"key": "",
"values": ""
},
{
"type": "pop",
"key": "",
"values": ""
},
{
"type": "remove",
"key": ""
}
]
}
settings {
encodeUrl: true
}

View File

@@ -1,8 +0,0 @@
meta {
name: Identity
seq: 1
}
auth {
mode: inherit
}

View File

@@ -1,29 +0,0 @@
meta {
name: Code
type: http
seq: 3
}
post {
url: {{url}}/identity/login/code
body: json
auth: inherit
}
body:json {
{
"email": "john.doe@fixture.none",
"otp": ""
}
}
script:post-response {
const cookies = res.getHeader('set-cookie');
if (cookies) {
bru.setVar("cookie", cookies.join('; '));
}
}
settings {
encodeUrl: true
}

View File

@@ -1,21 +0,0 @@
meta {
name: Email
type: http
seq: 2
}
post {
url: {{url}}/identity/login/email
body: json
auth: inherit
}
body:json {
{
"email": "john.doe@fixture.none"
}
}
settings {
encodeUrl: true
}

View File

@@ -1,8 +0,0 @@
meta {
name: Login
seq: 3
}
auth {
mode: inherit
}

View File

@@ -1,21 +0,0 @@
meta {
name: Sudo
type: http
seq: 1
}
post {
url: {{url}}/identities/login/sudo
body: json
auth: inherit
}
body:json {
{
"email": "john.doe@fixture.none"
}
}
settings {
encodeUrl: true
}

View File

@@ -1,15 +0,0 @@
meta {
name: Me
type: http
seq: 1
}
get {
url: {{url}}/identity/me
body: none
auth: inherit
}
settings {
encodeUrl: true
}

View File

@@ -1,8 +0,0 @@
meta {
name: Workspace
seq: 2
}
auth {
mode: inherit
}