Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"info": {
"title": "Unit OpenAPI specifications",
"description": "An OpenAPI specifications for unit-sdk clients",
"version": "0.0.2"
"version": "0.0.3"
},
"servers": [
{
Expand Down
102 changes: 99 additions & 3 deletions schemas/limits.json → schemas/account_limits.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "object",
"allOf": [
{
"$ref": "limits.json"
"$ref": "account_limits.json"
},
{
"type": "object",
Expand Down Expand Up @@ -184,12 +184,108 @@
"totalsMonthly"
],
"additionalProperties": false
},
"wire": {
"type": "object",
"properties": {
"limits": {
"type": "object",
"properties": {
"dailyTransfer": {
"type": "number"
},
"monthlyTransfer": {
"type": "number"
},
"dailyTransferSoft": {
"type": "number"
},
"monthlyTransferSoft": {
"type": "number"
}
},
"required": [
"dailyTransfer",
"monthlyTransfer",
"dailyTransferSoft",
"monthlyTransferSoft"
],
"additionalProperties": false
},
"totalsDaily": {
"type": "object",
"properties": {
"transfers": {
"type": "number"
}
}
},
"totalsMonthly": {
"type": "object",
"properties": {
"transfers": {
"type": "number"
}
}
}
},
"required": [
"limits",
"totalsDaily",
"totalsMonthly"
],
"additionalProperties": false
},
"checkPayment": {
"type": "object",
"properties": {
"limits": {
"type": "object",
"properties": {
"dailySentSoft": {
"type": "number"
},
"monthlySentSoft": {
"type": "number"
}
},
"required": [
"dailySentSoft",
"monthlySentSoft"
],
"additionalProperties": false
},
"totalsDaily": {
"type": "object",
"properties": {
"sent": {
"type": "number"
}
}
},
"totalsMonthly": {
"type": "object",
"properties": {
"transfers": {
"sent": "number"
}
}
}
},
"required": [
"limits",
"totalsDaily",
"totalsMonthly"
],
"additionalProperties": false
}
},
"required": [
"ach",
"card",
"checkDeposit"
"checkDeposit",
"wire",
"checkPayment"
],
"additionalProperties": false
}
Expand All @@ -206,7 +302,7 @@
"type": "object",
"allOf": [
{
"$ref": "limits.json"
"$ref": "account_limits.json"
},
{
"type": "object",
Expand Down
51 changes: 0 additions & 51 deletions schemas/card_level_limits.json

This file was deleted.

73 changes: 20 additions & 53 deletions schemas/card_paths.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{
"UnitCardResponse": {
"type": "object",
"title": "UnitCardResponse",
"properties": {
"data": {
"$ref": "card.json"
}
}
},
"cards":{
"get":{
"tags":[
Expand Down Expand Up @@ -120,13 +129,7 @@
"content":{
"application/vnd.api+json; charset=utf-8":{
"schema":{
"type":"object",
"title":"UnitCardResponse",
"properties":{
"data":{
"$ref":"card.json"
}
}
"$ref": "card_paths.json#/UnitCardResponse"
}
}
}
Expand Down Expand Up @@ -167,7 +170,7 @@
"application/vnd.api+json; charset=utf-8":{
"schema":{
"type":"object",
"title":"UnitCardResponse",
"title":"UnitCardResponseWithIncluded",
"properties":{
"data":{
"$ref":"card.json"
Expand Down Expand Up @@ -220,13 +223,7 @@
"content":{
"application/vnd.api+json":{
"schema":{
"type":"object",
"title":"UnitCardResponse",
"properties":{
"data":{
"$ref":"card.json"
}
}
"$ref": "card_paths.json#/UnitCardResponse"
}
}
}
Expand Down Expand Up @@ -259,13 +256,7 @@
"content":{
"application/vnd.api+json; charset=utf-8":{
"schema":{
"type":"object",
"title":"UnitCardResponse",
"properties":{
"data":{
"$ref":"card.json"
}
}
"$ref": "card_paths.json#/UnitCardResponse"
}
}
}
Expand Down Expand Up @@ -298,13 +289,7 @@
"content":{
"application/vnd.api+json; charset=utf-8":{
"schema":{
"type":"object",
"title":"UnitCardResponse",
"properties":{
"data":{
"$ref":"card.json"
}
}
"$ref": "card_paths.json#/UnitCardResponse"
}
}
}
Expand Down Expand Up @@ -337,13 +322,7 @@
"content":{
"application/vnd.api+json; charset=utf-8":{
"schema":{
"type":"object",
"title":"UnitCardResponse",
"properties":{
"data":{
"$ref":"card.json"
}
}
"$ref": "card_paths.json#/UnitCardResponse"
}
}
}
Expand Down Expand Up @@ -377,7 +356,7 @@
"application/vnd.api+json; charset=utf-8":{
"schema":{
"type":"object",
"title":"UnitCardResponse",
"title":"UnitPinStatusResponse",
"properties":{
"data":{
"$ref":"card.json#/definitions/pinStatus"
Expand Down Expand Up @@ -415,13 +394,7 @@
"content":{
"application/vnd.api+json; charset=utf-8":{
"schema":{
"type":"object",
"title":"UnitCardResponse",
"properties":{
"data":{
"$ref":"card.json"
}
}
"$ref": "card_paths.json#/UnitCardResponse"
}
}
}
Expand Down Expand Up @@ -454,13 +427,7 @@
"content":{
"application/vnd.api+json; charset=utf-8":{
"schema":{
"type":"object",
"title":"UnitCardResponse",
"properties":{
"data":{
"$ref":"card.json"
}
}
"$ref": "card_paths.json#/UnitCardResponse"
}
}
}
Expand Down Expand Up @@ -494,10 +461,10 @@
"application/vnd.api+json; charset=utf-8":{
"schema":{
"type":"object",
"title":"UnitCardResponse",
"title":"UnitCardLimitsResponse",
"properties":{
"data":{
"$ref":"limits.json"
"$ref":"account_limits.json"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions schemas/check_deposit_paths.json
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@
"application/vnd.api+json; charset=utf-8": {
"schema": {
"type": "object",
"title": "UnitCheckDepositResponse",
"title": "UnitCheckDepositImageResponse",
"properties": {
"data": {
"type": "string"
Expand Down Expand Up @@ -323,7 +323,7 @@
"application/vnd.api+json; charset=utf-8": {
"schema": {
"type": "object",
"title": "UnitCheckDepositResponse",
"title": "UnitCheckDepositImageResponse",
"properties": {
"data": {
"type": "string"
Expand Down
2 changes: 1 addition & 1 deletion schemas/counterparty_paths.json
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@
"application/vnd.api+json; charset=utf-8": {
"schema": {
"type": "object",
"title": "UnitCounterpartyResponse",
"title": "UnitCounterpartyBalanceResponse",
"properties": {
"data": {
"$ref": "counterparty_balance.json"
Expand Down
8 changes: 1 addition & 7 deletions schemas/event_paths.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,7 @@
"content": {
"application/vnd.api+json; charset=utf-8": {
"schema": {
"type": "object",
"title": "UnitEventResponse",
"properties": {
"data": {
"$ref": "event.json"
}
}
"$ref": "event_paths.json#/UnitEventResponse"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion schemas/transaction_paths.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
"application/vnd.api+json; charset=utf-8": {
"schema": {
"type": "object",
"title": "UnitTransactionResponse",
"title": "UnitTransactionResponseWithIncluded",
"properties": {
"data": {
"$ref": "transaction.json"
Expand Down