This commit is contained in:
tolkonepiu 2022-06-22 13:21:00 +00:00
commit 693e534239
8 changed files with 19454 additions and 0 deletions

0
.nojekyll Normal file
View File

37
index.html Normal file
View File

@ -0,0 +1,37 @@
<!DOCTYPE html>
<html>
<head>
<title>Vality Payments API</title>
<!-- needed for adaptive design -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js">
</script>
<!--
ReDoc doesn't change outer page styles
-->
<style>
body {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div id='redoc'></div>
<script type="text/javascript">
Redoc.init('./swagger.json', {
theme: {
breakpoints: {
//3-panel view fix
medium: '75rem',
}
}
}, document.getElementById('redoc'));
</script>
</body>
</html>

11152
swagger.json Normal file

File diff suppressed because one or more lines are too long

8118
swagger.yaml Normal file

File diff suppressed because it is too large Load Diff

BIN
wsd/img/invoice.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

64
wsd/img/invoice.svg Normal file
View File

@ -0,0 +1,64 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="347px" style="width:329px;height:347px;" version="1.1" viewBox="0 0 329 347" width="329px">
<defs/>
<g>
<style type="text/css">
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v15/zN7GBFwfMP4uA6AR0HCoLQ.ttf) format('truetype');
}
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 700;
src: local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v15/d-6IYplOFocCacKzxwXSOKCWcynf_cDxXwCLxiixG1c.ttf) format('truetype');
}
@font-face {
font-family: 'Roboto';
font-style: italic;
font-weight: 400;
src: local('Roboto Italic'), local('Roboto-Italic'), url(https://fonts.gstatic.com/s/roboto/v15/W4wDsBUluyw0tK3tykhXEfesZW2xOQ-xsNqO47m55DA.ttf) format('truetype');
}
@font-face {
font-family: 'Roboto';
font-style: italic;
font-weight: 700;
src: local('Roboto Bold Italic'), local('Roboto-BoldItalic'), url(https://fonts.gstatic.com/s/roboto/v15/t6Nd4cfPRhZP44Q5QAjcC50EAVxt0G0biEntp43Qt6E.ttf) format('truetype');
}
</style>
<rect fill="#E57373" height="85.9424" rx="12.5" ry="12.5" style="stroke: #303030; stroke-width: 1.5;" width="86" x="242" y="8"/>
<line style="stroke: #303030; stroke-width: 1.5;" x1="242" x2="328" y1="36.4639" y2="36.4639"/>
<text fill="#000000" font-family="Roboto" font-size="14" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="62" x="254" y="27.6699">cancelled</text>
<text fill="#000000" font-family="Roboto" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="43" x="247" y="54.0381">overdue</text>
<text fill="#000000" font-family="Roboto" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="66" x="247" y="69.8643">user request</text>
<text fill="#000000" font-family="Roboto" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="36" x="247" y="85.6904">invalid</text>
<rect fill="#81C784" height="50" rx="12.5" ry="12.5" style="stroke: #303030; stroke-width: 1.5;" width="70" x="96" y="296"/>
<line style="stroke: #303030; stroke-width: 1.5;" x1="96" x2="166" y1="324.4639" y2="324.4639"/>
<text fill="#000000" font-family="Roboto" font-size="14" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="50" x="106" y="315.6699">fulfilled</text>
<ellipse cx="16" cy="51" fill="#303030" rx="10" ry="10" style="stroke: none; stroke-width: 1.0;"/>
<rect fill="#FEFEFE" height="50" rx="12.5" ry="12.5" style="stroke: #303030; stroke-width: 1.5;" width="64" x="99" y="26"/>
<line style="stroke: #303030; stroke-width: 1.5;" x1="99" x2="163" y1="54.4639" y2="54.4639"/>
<text fill="#000000" font-family="Roboto" font-size="14" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="44" x="109" y="45.6699">unpaid</text>
<rect fill="#FEFEFE" height="50" rx="12.5" ry="12.5" style="stroke: #303030; stroke-width: 1.5;" width="50" x="106" y="170"/>
<line style="stroke: #303030; stroke-width: 1.5;" x1="106" x2="156" y1="198.4639" y2="198.4639"/>
<text fill="#000000" font-family="Roboto" font-size="14" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="28" x="117" y="189.6699">paid</text>
<path d="M26.2055,51 C41.2304,51 70.0787,51 93.7094,51 " fill="none" style="stroke: #606060; stroke-width: 1.0;"/>
<polygon fill="#606060" points="98.9733,51,89.9733,47,93.9733,51,89.9733,55,98.9733,51" style="stroke: #606060; stroke-width: 1.0;"/>
<text fill="#000000" font-family="Roboto" font-size="11" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="6" x="44.5" y="44.5264">1</text>
<text fill="#000000" font-family="Roboto" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="27" x="53.5" y="44.5264">issue</text>
<path d="M163.283,51 C184.61,51 212.94,51 236.902,51 " fill="none" style="stroke: #606060; stroke-width: 1.0;"/>
<polygon fill="#606060" points="241.945,51,232.945,47,236.945,51,232.945,55,241.945,51" style="stroke: #606060; stroke-width: 1.0;"/>
<text fill="#000000" font-family="Roboto" font-size="11" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="6" x="181.5" y="44.5264">2</text>
<text fill="#000000" font-family="Roboto" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="33" x="190.5" y="44.5264">cancel</text>
<path d="M131,76.088 C131,100.568 131,138.516 131,164.717 " fill="none" style="stroke: #606060; stroke-width: 1.0;"/>
<polygon fill="#606060" points="131,169.793,135,160.793,131,164.793,127,160.793,131,169.793" style="stroke: #606060; stroke-width: 1.0;"/>
<text fill="#000000" font-family="Roboto" font-size="11" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="6" x="132" y="136.5264">3</text>
<text fill="#000000" font-family="Roboto" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="17" x="141" y="136.5264">pay</text>
<path d="M131,220.203 C131,240.43 131,269.3373 131,290.8382 " fill="none" style="stroke: #606060; stroke-width: 1.0;"/>
<polygon fill="#606060" points="131,295.8582,135,286.8582,131,290.8582,127,286.8582,131,295.8582" style="stroke: #606060; stroke-width: 1.0;"/>
<text fill="#000000" font-family="Roboto" font-size="11" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="6" x="132" y="262.5264">4</text>
<text fill="#000000" font-family="Roboto" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="26" x="141" y="262.5264">fulfill</text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 5.5 KiB

25
wsd/invoice.wsd Normal file
View File

@ -0,0 +1,25 @@
@startuml
!include "styles/serious.iwsd"
skinparam State {
BackgroundColor<<cancelled>> #e57373
BackgroundColor<<fulfilled>> #81c784
}
skinparam GenericArrowFontSize 11
state cancelled <<cancelled>>
state fulfilled <<fulfilled>>
cancelled : overdue
cancelled : user request
cancelled : invalid
[*] -r-> unpaid : <b>1</b> issue
unpaid -r-> cancelled : <b>2</b> cancel
unpaid --> paid : <b>3</b> pay
paid --> fulfilled : <b>4</b> fulfill
@enduml

58
wsd/styles/serious.iwsd Normal file
View File

@ -0,0 +1,58 @@
skinparam BackgroundColor transparent
skinparam Shadowing false
skinparam Handwritten false
skinparam Note {
BorderColor #303030
BackgroundColor #CEEEFE
FontSize 12
}
skinparam Sequence {
TitleFontSize 12
TitleFontColor #606060
ArrowColor #303030
DividerBackgroundColor #EEEEEE
GroupBackgroundColor #EEEEEE
LifeLineBackgroundColor white
LifeLineBorderColor #303030
ParticipantBackgroundColor #FEFEFE
ParticipantBorderColor #303030
BoxLineColor #303030
BoxBackgroundColor #DDDDDD
}
skinparam Title {
FontSize 12
FontColor #606060
}
skinparam Activity {
ArrowColor #303030
ArrowFontSize 10
BarColor #F0A0A0
BorderColor #303030
BackgroundColor #DEEEFE
}
skinparam State {
StartColor #303030
EndColor #303030
BackgroundColor #FEFEFE
BackgroundColor<<Failure>> #FEA0A0
BackgroundColor<<Success>> #A0FEA0
BorderColor #303030
ArrowColor #606060
FontStyle bold
}
skinparam Object {
BackgroundColor #FEFEFE
BorderColor #303030
FontStyle bold
FontSize 14
}
skinparam Package {
BorderThickness 1
}