Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit 4bfe3bc

Browse files
committed
Fix and add parameters to api hub's payables intent
1 parent 4139b47 commit 4bfe3bc

File tree

2 files changed

+27
-13
lines changed

2 files changed

+27
-13
lines changed

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v12.16.1

scripts/data/apis/apihub.json

+26-13
Original file line numberDiff line numberDiff line change
@@ -2119,15 +2119,33 @@
21192119
"type": "object",
21202120
"description": "Arquivo e código do boleto",
21212121
"required": [
2122-
"link",
2122+
"url",
21232123
"code"
21242124
],
21252125
"properties": {
2126-
"link": {
2126+
"type": {
2127+
"type": "string",
2128+
"enum": [
2129+
"link",
2130+
"image",
2131+
"file"
2132+
],
2133+
"description": "Tipo do anexo do boleto. Pode ser imagem (image), link ou um arquivo (file)",
2134+
"required": false,
2135+
"example": "file",
2136+
"default": "file"
2137+
},
2138+
"title": {
2139+
"type": "string",
2140+
"description": "Nome do arquivo",
2141+
"required": false,
2142+
"example": "Boleto de rematrícula 2020"
2143+
},
2144+
"url": {
21272145
"type": "string",
2128-
"description": "URL de download do boleto. Obrigatóriamente uma url HTTPS",
2146+
"description": "URL do boleto. Obrigatóriamente uma URL HTTPS",
21292147
"required": true,
2130-
"example": "https://boleto.pdf"
2148+
"example": "https://url.para-download.com"
21312149
},
21322150
"code": {
21332151
"type": "string",
@@ -2144,13 +2162,14 @@
21442162
"items": {
21452163
"type": "object",
21462164
"properties": {
2147-
"kind": {
2165+
"type": {
21482166
"type": "string",
21492167
"enum": [
2150-
"invoice",
2168+
"link",
2169+
"image",
21512170
"file"
21522171
],
2153-
"description": "Tipo do anexo. Pode ser nota fiscal (invoice) ou um arquivo (file)",
2172+
"description": "Tipo do anexo. Pode ser imagem (image), link ou um arquivo (file)",
21542173
"required": true,
21552174
"example": "file"
21562175
},
@@ -2160,12 +2179,6 @@
21602179
"required": true,
21612180
"example": "Comprovante de estorno"
21622181
},
2163-
"description": {
2164-
"type": "string",
2165-
"description": "Descrição do anexo",
2166-
"required": false,
2167-
"example": "Estorno realizado em 31/10/2019"
2168-
},
21692182
"url": {
21702183
"type": "string",
21712184
"description": "Link para baixar o anexo. Obrigatóriamente uma url HTTPS",

0 commit comments

Comments
 (0)