This repository has been archived by the owner on Jun 10, 2024. It is now read-only.
forked from mayurmaheshwari/protocol-server
-
Notifications
You must be signed in to change notification settings - Fork 3
/
bap-client.yaml
143 lines (127 loc) · 2.58 KB
/
bap-client.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# Mandatory
server:
port: 5001
# Mandatory.
cache:
host: "0.0.0.0"
port: 6379
ttl: "PT10M"
# Optional. Default is 0.
db: 0
# Optional.
responseCache:
mongoURL: "mongodb://tvast:password@0.0.0.0:27017/ps?authSource=admin"
ttl: "PT10M"
# Mandatory.
# Priority order will be
# 1. Synchronous
# 2. webhook
# 3. pubSub
client:
synchronous:
mongoURL: "mongodb://tvast:password@0.0.0.0:27017/ps?authSource=admin"
#webhook:
# url: "https://beckn.free.beeceptor.com/clientURL"
#messageQueue:
# amqpURL: "amqp://guest:guest@localhost:5672"
# incomingQueue: "protocol-server-incoming"
# outgoingQueue: "protocol-server-outgoing"
# Mandatory.
app:
# Mandatory.
mode: bap
# Two types of gateway mode present.
# client and network.
gateway:
mode: client
inboxQueue: "inbox"
outboxQueue: "outbox"
amqpURL: "amqp://tvast:password@0.0.0.0:5672"
# Mandatory.
actions:
requests:
search:
ttl : "PT15S"
init:
ttl : "PT15S"
select:
ttl : "PT15S"
confirm:
ttl : "PT15S"
status:
ttl : "PT15S"
track:
ttl : "PT15S"
cancel:
ttl : "PT15S"
update:
ttl : "PT15S"
rating:
ttl : "PT15S"
support:
ttl : "PT15S"
get_cancellation_reasons:
ttl : "PT15S"
get_rating_categories:
ttl : "PT15S"
cancellation:
ttl : "PT15S"
responses:
on_search:
ttl: "PT15S"
on_init:
ttl: "PT15S"
on_select:
ttl: "PT15S"
on_confirm:
ttl: "PT15S"
on_status:
ttl: "PT15S"
on_track:
ttl: "PT15S"
on_cancel:
ttl: "PT15S"
on_update:
ttl: "PT15S"
on_rating:
ttl: "PT15S"
on_support:
ttl: "PT15S"
cancellation_reasons:
ttl: "PT15S"
rating_categories:
ttl: "PT15S"
# Mandatory.
privateKey: "PRIVATE_KEY"
publicKey: "PUBLIC_KEY"
# Mandatory.
subscriberId: "BAP_SUBSCRIBER_ID"
subscriberUri: "BAP_SUBSCRIBER_URL"
# Mandatory.
registryUrl: REGISTRY_URL
auth: false
uniqueKey: "BAP_SUBSCRIBER_ID_KEY"
# Mandatory.
city: "*"
country: "IND"
# Mandatory.
ttl: "PT10M"
# Mandatory.
httpTimeout: "PT3S"
httpRetryCount: 2
telemetry:
network:
url: ""
raw:
url: ""
batchSize: 100
# In minutes
syncInterval: 1
# Either can be LOCAL or REDIS
storageType: "LOCAL"
backupFilePath: "backups"
redis:
db: 4
service:
name: "bap_client_service"
version: "1.0.0"