feat: add payment module
This commit is contained in:
24
.bruno/Payment/account/create.bru
Normal file
24
.bruno/Payment/account/create.bru
Normal 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
|
||||
}
|
||||
4
.bruno/Payment/account/folder.bru
Normal file
4
.bruno/Payment/account/folder.bru
Normal file
@@ -0,0 +1,4 @@
|
||||
meta {
|
||||
name: Wallet
|
||||
seq: 3
|
||||
}
|
||||
20
.bruno/Payment/beneficiary/Ledgers.bru
Normal file
20
.bruno/Payment/beneficiary/Ledgers.bru
Normal 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
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
20
.bruno/Payment/beneficiary/dashboard.bru
Normal file
20
.bruno/Payment/beneficiary/dashboard.bru
Normal 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
|
||||
}
|
||||
4
.bruno/Payment/beneficiary/folder.bru
Normal file
4
.bruno/Payment/beneficiary/folder.bru
Normal file
@@ -0,0 +1,4 @@
|
||||
meta {
|
||||
name: Beneficiary
|
||||
seq: 1
|
||||
}
|
||||
20
.bruno/Payment/beneficiary/id.bru
Normal file
20
.bruno/Payment/beneficiary/id.bru
Normal 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
|
||||
}
|
||||
16
.bruno/Payment/beneficiary/list.bru
Normal file
16
.bruno/Payment/beneficiary/list.bru
Normal 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
|
||||
}
|
||||
4
.bruno/Payment/folder.bru
Normal file
4
.bruno/Payment/folder.bru
Normal file
@@ -0,0 +1,4 @@
|
||||
meta {
|
||||
name: Payment
|
||||
seq: 2
|
||||
}
|
||||
27
.bruno/Payment/ledger/create.bru
Normal file
27
.bruno/Payment/ledger/create.bru
Normal 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
|
||||
}
|
||||
4
.bruno/Payment/ledger/folder.bru
Normal file
4
.bruno/Payment/ledger/folder.bru
Normal file
@@ -0,0 +1,4 @@
|
||||
meta {
|
||||
name: Ledger
|
||||
seq: 2
|
||||
}
|
||||
20
.bruno/Payment/ledger/wallets.bru
Normal file
20
.bruno/Payment/ledger/wallets.bru
Normal 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
|
||||
}
|
||||
24
.bruno/Payment/wallet/create.bru
Normal file
24
.bruno/Payment/wallet/create.bru
Normal 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
|
||||
}
|
||||
4
.bruno/Payment/wallet/folder.bru
Normal file
4
.bruno/Payment/wallet/folder.bru
Normal file
@@ -0,0 +1,4 @@
|
||||
meta {
|
||||
name: Account
|
||||
seq: 4
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
meta {
|
||||
name: Identity
|
||||
seq: 1
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
meta {
|
||||
name: Login
|
||||
seq: 3
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
meta {
|
||||
name: Me
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{url}}/identity/me
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
meta {
|
||||
name: Workspace
|
||||
seq: 2
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
Reference in New Issue
Block a user