Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/food dining #173

Open
wants to merge 5 commits into
base: draft-TRV14-2.0.0
Choose a base branch
from
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
1,765 changes: 1,541 additions & 224 deletions api/build/build.yaml

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions api/components/attributes/unreserved-entry-pass/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4159,31 +4159,31 @@ on_confirm:
description: Describes time for fulfillments
authorization:
type:
required: mandatory
required: optional
type: string
owner: BPP
usage: QR
description: Describes the authorization type
token:
required: mandatory
required: optional
type: string
owner: BPP
usage: iVBORw0KGgoAAAANSUhEUg
description: Describes the authorization token
valid_to:
required: mandatory
required: optional
type: string
owner: BPP
usage: '2024-06-30T05:00:16.000Z'
description: Describes the authorization token valid timestamp
status:
required: mandatory
required: optional
type: string
owner: BPP
usage: UNCLAIMED
description: Describes the authorization token status
_description:
required: mandatory
required: optional
type: object
owner: BPP
usage: '--'
Expand Down Expand Up @@ -5273,31 +5273,31 @@ on_status:
description: Describes time for fulfillments
authorization:
type:
required: mandatory
required: optional
type: string
owner: BPP
usage: QR
description: Describes the authorization type
token:
required: mandatory
required: optional
type: string
owner: BPP
usage: iVBORw0KGgoAAAANSUhEUg
description: Describes the authorization token
valid_to:
required: mandatory
required: optional
type: string
owner: BPP
usage: '2024-06-30T05:00:16.000Z'
description: Describes the authorization token valid timestamp
status:
required: mandatory
required: optional
type: string
owner: BPP
usage: UNCLAIMED
description: Describes the authorization token status
_description:
required: mandatory
required: optional
type: object
owner: BPP
usage: '--'
Expand Down
2 changes: 1 addition & 1 deletion api/components/enum/Fulfillment.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
vehicle:
category:
- code: SITE
- code: RESTAURANT
description: Describes the vehicle category as site
reference: <PR/Issue/Discussion Links md format text
stops:
Expand Down
101 changes: 101 additions & 0 deletions api/components/examples/unreserved-entry-pass/confirm/example_1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
summary: Confirm ticket booking
value:
context:
location:
country:
code: IND
city:
code: std:011
domain: ONDC:TRV14
timestamp: '2024-06-26T04:53:26.000Z'
bap_id: api.example-bap.com
transaction_id: cf7bb367-c820-4bc9-9be8-f548e0bbf222
message_id: 6d287e01-59bc-4c6d-b0ab-e07649eae6b2
version: 2.0.0
action: confirm
bap_uri: https://api.example-bap.com/beckn/
ttl: PT30S
bpp_id: api.unreserved-entry-pass.com
bpp_uri: https://api.unreserved-entry-pass.com/beckn/
message:
order:
items:
- id: 'I1'
quantity:
selected:
count: 1
# add_ons:
# - id: A1
# quantity:
# selected:
# count: 1
fulfillments:
- id: F1
billing:
name: "John Doe"
email: "[email protected]"
phone: "+91-9897867564"
provider:
id: 'P1'
payments:
- collected_by: BAP
status: NOT-PAID
type: PRE-ORDER
params:
transaction_id: 61b4be7e-d85c-456a-99e5-ce3d83be135d
currency: INR
amount: '450'

tags:
- descriptor:
code: BAP_TERMS
name: BAP Terms of Engagement
display: false
list:
- descriptor:
code: BUYER_FINDER_FEES_PERCENTAGE
value: "1"
- descriptor:
code: BUYER_FINDER_FEES_TYPE
value: "percent"
- descriptor:
code: STATIC_TERMS
value: 'https://api.example-bap.com/booking/terms'
- descriptor:
code: SETTLEMENT_BASIS
value: 'https://api.example-bap.com/booking/terms'
- descriptor:
code: SETTLEMENT_WINDOW
value: 'P30D'
- descriptor:
code: BPP_TERMS
name: BPP Terms of Engagement
display: false
list:
- descriptor:
code: BUYER_FINDER_FEES_PERCENTAGE
value: "1"
- descriptor:
code: BUYER_FINDER_FEES_TYPE
value: "percent"
- descriptor:
code: STATIC_TERMS
value: 'https://api.example-bap.com/booking/terms'
- descriptor:
code: MANDATORY_ARBITRATION
value: 'true'
- descriptor:
code: COURT_JURISDICTION
value: 'New Delhi'
- descriptor:
code: DELAY_INTEREST
value: '2.5 %'
- descriptor:
code: SETTLEMENT_AMOUNT
value: '7 INR'
- descriptor:
code: SETTLEMENT_TYPE
value: 'upi'



19 changes: 15 additions & 4 deletions api/components/examples/unreserved-entry-pass/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,41 @@ search:
select:
examples:
- $ref: ./select/example_0.yaml
- $ref: ./select/example_1.yaml
init:
examples:
- $ref: ./init/example_0.yaml
- $ref: ./init/example_1.yaml
confirm:
examples:
- $ref: ./confirm/example_0.yaml
- $ref: ./confirm/example_1.yaml
# cancel:
# examples:
# - $ref: ./cancel/example_0.yaml
# status:
# examples:
# - $ref: ./status/example_0.yaml
status:
examples:
- $ref: ./status/example_0.yaml
on_search:
examples:
- $ref: ./on_search/example_0.yaml
- $ref: ./on_search/example_1.yaml
on_select:
examples:
- $ref: ./on_select/example_0.yaml
- $ref: ./on_select/example_1.yaml
on_init:
examples:
- $ref: ./on_init/example_0.yaml
# - $ref: ./on_init/example_1.yaml
- $ref: ./on_init/example_1.yaml
on_confirm:
examples:
- $ref: ./on_confirm/example_0.yaml
- $ref: ./on_confirm/example_0.yaml
on_status:
examples:
- $ref: ./on_status/example_0.yaml
- $ref: ./on_status/example_1.yaml



64 changes: 64 additions & 0 deletions api/components/examples/unreserved-entry-pass/init/example_1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
summary: Initialize the order by providing billing details
value:
context:
location:
country:
code: IND
city:
code: std:011
domain: ONDC:TRV14
timestamp: '2024-06-26T04:52:16.000Z'
bap_id: api.example-bap.com
transaction_id: cf7bb367-c820-4bc9-9be8-f548e0bbf222
message_id: 764b4322-8f7c-402c-b907-80484e9ad40c
version: 2.0.0
action: init
bap_uri: https://api.example-bap.com/beckn/
ttl: PT30S
bpp_id: api.unreserved-entry-pass.com
bpp_uri: https://api.unreserved-entry-pass.com/beckn/
message:
order:
items:
- id: 'I1'
quantity:
selected:
count: 1
# add_ons:
# - id: A1
# quantity:
# selected:
# count: 1
fulfillments:
- id: F1
billing:
name: "John Doe"
email: "[email protected]"
phone: "+91-9897867564"
provider:
id: 'P1'
payments:
- collected_by: BAP
status: NOT-PAID
type: PRE-ORDER
tags:
- descriptor:
code: BAP_TERMS
name: BAP Terms of Engagement
display: false
list:
- descriptor:
code: BUYER_FINDER_FEES_PERCENTAGE
value: "1"
- descriptor:
code: BUYER_FINDER_FEES_TYPE
value: "percent"
- descriptor:
code: STATIC_TERMS
value: 'https://api.example-bap.com/booking/terms'
- descriptor:
code: SETTLEMENT_BASIS
value: 'https://api.example-bap.com/booking/terms'
- descriptor:
code: SETTLEMENT_WINDOW
value: 'P30D'
Loading