forked from beckn/protocol-specifications
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ravi Prakash
committed
Apr 19, 2020
0 parents
commit fb8f66b
Showing
218 changed files
with
2,614 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Ravi Prakash | ||
* __Email__ : [email protected] | ||
* __Designation__ : Principal Architect | ||
* __Organization__ : Open Shared Mobility Foundation | ||
|
||
# Pramod Varma | ||
* __Email__ : [email protected] | ||
* __Designation__ : CTO | ||
* __Organization__ : EkStep Foundation |
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Ravi Prakash | ||
* __Email__ : [email protected] | ||
* __Designation__ : Principal Architect | ||
* __Organization__ : Open Shared Mobility Foundation | ||
|
||
# Pramod Varma | ||
* __Email__ : [email protected] | ||
* __Designation__ : CTO | ||
* __Organization__ : EkStep Foundation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# beckn-protocol-specifications |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"$id": "https://developers.beckn.org/core/schema/0.7.1/ack.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"version" : "0.7.1", | ||
"description": "Describes the ACK response", | ||
"type": "object", | ||
"properties": { | ||
"header" : { | ||
"$ref" : "https://developers.beckn.org/core/schema/0.7.1/header.json" | ||
}, | ||
"body" : { | ||
"message" : { | ||
|
||
}, | ||
"code" : { | ||
|
||
}, | ||
"error" : { | ||
"type" : "array", | ||
"items" : { | ||
"type" : "object", | ||
"properties" : { | ||
"path" : { | ||
"type" : "string" | ||
}, | ||
"error_msg" : { | ||
"type" : "string" | ||
} | ||
} | ||
} | ||
|
||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"$id": "https://developers.beckn.org/core/schema/0.7.1/api.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"version" : "0.7.1", | ||
"description": "Describes contact info of a Person or Organization", | ||
"type": "object", | ||
"properties": { | ||
"url" : { | ||
"type" : "string" | ||
}, | ||
"exp" : { | ||
"type" : "string", | ||
"format" : "date-time" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"$id": "https://developers.beckn.org/core/schema/0.7.1/domain.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"version" : "0.7.1", | ||
"description": "Describes the domain of an object", | ||
"type": "string", | ||
"enum" : ["MOBILITY", "FINAL-MILE-DELIVERY", "FOOD-ORDERING"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"$id": "https://developers.beckn.org/core/schema/0.7.1/header.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"version" : "0.7.1", | ||
"description": "Describes the beckn message packet header", | ||
"type": "object", | ||
"properties": { | ||
"action" : { | ||
"type" : "string" | ||
}, | ||
"version" : { | ||
"type" : "string" | ||
}, | ||
"transaction_id" : { | ||
"type" : "string" | ||
}, | ||
"timestamp" : { | ||
"type" : "string", | ||
"format" : "date-time" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"$id": "https://developers.beckn.org/core/schema/0.7.1/image.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"version" : "0.7.1", | ||
"description": "Image of an object", | ||
"type": "object", | ||
"properties": { | ||
"type" : { | ||
"type" : "string", | ||
"enum" : ["url", "data"] | ||
}, | ||
"url" : { | ||
"type" : "string", | ||
"format" : "date-time" | ||
}, | ||
"data" : { | ||
"type" : "string" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"$id": "https://developers.beckn.org/core/schema/0.7.1/item.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"version" : "0.7.1", | ||
"description": "Describes a catalog item", | ||
"type": "object", | ||
"properties": { | ||
"id" : { | ||
"type" : "string" | ||
}, | ||
"name" : { | ||
"type" : "string" | ||
}, | ||
"description" : { | ||
"type" : "string" | ||
}, | ||
"image" : { | ||
"$ref" : "https://developers.beckn.org/core/schema/0.7.1/image.json" | ||
}, | ||
"price" : { | ||
"$ref" : "https://developers.beckn.org/core/schema/0.7.1/price.json" | ||
}, | ||
"tags" : { | ||
"type" : "array", | ||
"items" : { | ||
"type" : "string" | ||
} | ||
}, | ||
"primary" : { | ||
"type" : "boolean" | ||
}, | ||
"selected" : { | ||
"type" : "boolean" | ||
}, | ||
"quantity" : { | ||
"type" : "integer", | ||
"minimum": 0 | ||
}, | ||
"policy" : { | ||
"$ref" : "https://developers.beckn.org/core/schema/0.7.1/policy.json" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
{ | ||
"$id": "https://developers.beckn.org/core/schema/0.7.1/location.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"version" : "0.7.1", | ||
"description": "Describes the location of an object or a service", | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"enum": ["gps", "address", "station_code", "area_code", "city", "country", "polygon", "3dspace"] | ||
}, | ||
"gps": { | ||
"type": "object", | ||
"properties" : { | ||
"lat" : { | ||
"type" : "string" | ||
}, | ||
"lon" : { | ||
"type" : "string" | ||
} | ||
}, | ||
"required" : ["lat", "lon"] | ||
}, | ||
"address": { | ||
"type": "object", | ||
"properties" : { | ||
"door" : { | ||
"type" : "string" | ||
}, | ||
"building" : { | ||
"type" : "string" | ||
}, | ||
"street" : { | ||
"type" : "string" | ||
}, | ||
"area" : { | ||
"type" : "string" | ||
}, | ||
"city" : { | ||
"type" : "string" | ||
}, | ||
"country" : { | ||
"type" : "string" | ||
}, | ||
"area_code" : { | ||
"type" : "string" | ||
} | ||
} | ||
}, | ||
"station_code": { | ||
"type": "string" | ||
}, | ||
"area_code": { | ||
"type": "string" | ||
}, | ||
"city": { | ||
"type": "object", | ||
"properties" : { | ||
"name" : {"type" : "string"}, | ||
"code" : {"type" : "string"} | ||
} | ||
}, | ||
"country": { | ||
"type": "object", | ||
"properties" : { | ||
"name" : {"type" : "string"}, | ||
"code" : {"type" : "string"} | ||
} | ||
}, | ||
"polygon" : { | ||
"type" : "string" | ||
}, | ||
"3dspace" : { | ||
"type" : "string" | ||
} | ||
}, | ||
"required": [ "type" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"$id": "https://developers.beckn.org/mobility/schema/0.7.1/operator.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"version" : "0.7.1", | ||
"description": "Describes the operator of a service", | ||
"type": "object", | ||
"properties" : { | ||
"descriptor" : { | ||
"$ref" : "https://developers.beckn.org/core/schema/0.7.1/person.json" | ||
}, | ||
"experience" : { | ||
"label" : { | ||
"type" : "string" | ||
}, | ||
"value" : { | ||
"type" : "string" | ||
}, | ||
"unit" : { | ||
"type" : "string" | ||
} | ||
} | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
{ | ||
"$id": "https://developers.beckn.org/core/schema/0.7.1/person.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"version" : "0.7.1", | ||
"description": "Describes a person", | ||
"type": "object", | ||
"properties": { | ||
"title": { | ||
"type": "string", | ||
"enum": ["Mr", "Mrs", "Miss", "Dr"] | ||
}, | ||
"first_name": { | ||
"type": "string" | ||
}, | ||
"middle_name": { | ||
"type": "string" | ||
}, | ||
"last_name": { | ||
"type": "string" | ||
}, | ||
"full_name": { | ||
"type": "string" | ||
}, | ||
"image": { | ||
"type": "object", | ||
"properties" : { | ||
"format" : { | ||
"type" : "string", | ||
"enum" : [ "url", "encoded" ] | ||
}, | ||
"data" : { | ||
"type" : "string" | ||
} | ||
} | ||
}, | ||
"dob": { | ||
"type": "string", | ||
"format" : "date" | ||
}, | ||
"gender" : { | ||
"type" : "string", | ||
"enum" : [ "male", "female" ] | ||
}, | ||
"contact" : { | ||
"type": "object", | ||
"properties": { | ||
"email" : { | ||
"type" : "string", | ||
"format" : "email" | ||
}, | ||
"mobile" : { | ||
"type" : "object", | ||
"properties": { | ||
"country_code" : { | ||
"type" : "string" | ||
}, | ||
"number" : { | ||
"type" : "string" | ||
} | ||
} | ||
}, | ||
"landline" : { | ||
"type" : "object", | ||
"properties": { | ||
"country_code" : { | ||
"type" : "string" | ||
}, | ||
"std_code" : { | ||
"type" : "string" | ||
}, | ||
"number" : { | ||
"type" : "string" | ||
}, | ||
"extension" : { | ||
"type" : "string" | ||
} | ||
} | ||
}, | ||
"ivr" : { | ||
"type" : "array", | ||
"items" : { | ||
"type" : "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.