Skip to content

Commit d7aed38

Browse files
authored
Merge pull request #1621 from Adyen/sdk-automation/capital
[capital] Code generation: update services and models
2 parents 3a9cc7a + 28cc6b0 commit d7aed38

17 files changed

+460
-33
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"id": "CG00000000000000000000001",
3+
"fundingBalanceAccountId": "BA00000000000000000000001",
4+
"limits": [
5+
{
6+
"amount": {
7+
"currency": "EUR",
8+
"value": 100000
9+
}
10+
}
11+
],
12+
"balances": [
13+
{
14+
"currency": "EUR",
15+
"principal": 10000,
16+
"fee": 1000,
17+
"total": 11000
18+
}
19+
]
20+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"id": "DI00000000000000000000001",
3+
"grantId": "GR00000000000000000000001",
4+
"accountHolderId": "AH00000000000000000000001",
5+
"balanceAccountId": "BA00000000000000000000001",
6+
"amount": {
7+
"currency": "EUR",
8+
"value": 10000
9+
},
10+
"fee": {
11+
"amount": {
12+
"currency": "EUR",
13+
"value": 1000
14+
}
15+
},
16+
"balances": {
17+
"currency": "EUR",
18+
"principal": 10000,
19+
"fee": 1000,
20+
"total": 11000
21+
},
22+
"repayment": {
23+
"basisPoints": 1000,
24+
"updateDescription": "string"
25+
}
26+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"disbursements": [
3+
{
4+
"id": "DI00000000000000000000001",
5+
"grantId": "GR00000000000000000000001",
6+
"accountHolderId": "AH00000000000000000000001",
7+
"balanceAccountId": "BA00000000000000000000001",
8+
"amount": {
9+
"currency": "EUR",
10+
"value": 10000
11+
},
12+
"fee": {
13+
"amount": {
14+
"currency": "EUR",
15+
"value": 1000
16+
}
17+
},
18+
"balances": {
19+
"currency": "EUR",
20+
"principal": 10000,
21+
"fee": 1000,
22+
"total": 11000
23+
},
24+
"repayment": {
25+
"basisPoints": 1000,
26+
"updateDescription": "string"
27+
}
28+
}
29+
]
30+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"id": "GO00000000000000000000001",
3+
"accountHolderId": "AH00000000000000000000001",
4+
"contractType": "cashAdvance",
5+
"amount": {
6+
"currency": "EUR",
7+
"value": 10000
8+
},
9+
"fee": {
10+
"amount": {
11+
"currency": "EUR",
12+
"value": 1000
13+
},
14+
"aprBasisPoints": 1200
15+
},
16+
"repayment": {
17+
"basisPoints": 1000,
18+
"term": {
19+
"estimatedDays": 180,
20+
"maximumDays": 365
21+
},
22+
"threshold": {
23+
"amount": {
24+
"currency": "EUR",
25+
"value": 1000
26+
}
27+
}
28+
},
29+
"startsAt": "2024-01-01T00:00:00Z",
30+
"expiresAt": "2024-01-31T23:59:59Z"
31+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"id": "GR00000000000000000000001",
3+
"grantAccountId": "CG00000000000000000000001",
4+
"grantOfferId": "GO00000000000000000000001",
5+
"counterparty": {
6+
"accountHolderId": "AH00000000000000000000001",
7+
"balanceAccountId": "BA00000000000000000000001"
8+
},
9+
"amount": {
10+
"currency": "EUR",
11+
"value": 10000
12+
},
13+
"balances": {
14+
"currency": "EUR",
15+
"principal": 10000,
16+
"fee": 1000,
17+
"total": 11000
18+
},
19+
"status": {
20+
"code": "Active"
21+
}
22+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"grantOffers": [
3+
{
4+
"id": "GO00000000000000000000001",
5+
"amount": {
6+
"currency": "EUR",
7+
"value": 10000
8+
},
9+
"fee": {
10+
"currency": "EUR",
11+
"value": 100
12+
},
13+
"repayment": {
14+
"currency": "EUR",
15+
"value": 10100
16+
}
17+
}
18+
]
19+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"grants": [
3+
{
4+
"id": "GR00000000000000000000001",
5+
"grantAccountId": "CG00000000000000000000001",
6+
"grantOfferId": "GO00000000000000000000001",
7+
"counterparty": {
8+
"accountHolderId": "AH00000000000000000000001",
9+
"balanceAccountId": "BA00000000000000000000001"
10+
},
11+
"amount": {
12+
"currency": "EUR",
13+
"value": 10000
14+
},
15+
"balances": {
16+
"currency": "EUR",
17+
"principal": 10000,
18+
"fee": 1000,
19+
"total": 11000
20+
},
21+
"status": {
22+
"code": "Active"
23+
}
24+
}
25+
]
26+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"id": "GR00000000000000000000001",
3+
"grantAccountId": "CG00000000000000000000001",
4+
"grantOfferId": "0000000000000001",
5+
"counterparty": {
6+
"accountHolderId": "AH00000000000000000000001",
7+
"balanceAccountId": "BA00000000000000000000001"
8+
},
9+
"amount": {
10+
"currency": "EUR",
11+
"value": 1000000
12+
},
13+
"fee": {
14+
"amount": {
15+
"value": 120000,
16+
"currency": "EUR"
17+
}
18+
},
19+
"balances":
20+
{
21+
"currency": "EUR",
22+
"fee": 120000,
23+
"principal": 1000000,
24+
"total": 1120000
25+
}
26+
,
27+
"repayment": {
28+
"basisPoints": 1400
29+
},
30+
"status": {
31+
"code": "Pending"
32+
}
33+
}

0 commit comments

Comments
 (0)