|
20 | 20 | }
|
21 | 21 | ],
|
22 | 22 | "paths": {
|
23 |
| - "/api/v2/webhooks/payment-event": { |
24 |
| - "post": { |
25 |
| - "tags": ["Custom Payment Webhook"], |
26 |
| - "description": "Custom payment webhook API", |
27 |
| - "operationId": "CouCustomPaymentWebhook", |
28 |
| - "parameters": [ |
29 |
| - { |
30 |
| - "name": "X-PARTNER-ID", |
31 |
| - "in": "header", |
32 |
| - "description": "Partner ID", |
33 |
| - "required": true, |
34 |
| - "schema": { |
35 |
| - "type": "integer" |
36 |
| - } |
37 |
| - } |
38 |
| - ], |
39 |
| - "requestBody": { |
40 |
| - "content": { |
41 |
| - "application/json": { |
42 |
| - "schema": { |
43 |
| - "required": [ |
44 |
| - "amount", |
45 |
| - "orderId", |
46 |
| - "paymentDateTime", |
47 |
| - "paymentMode", |
48 |
| - "paymentStatus", |
49 |
| - "transactionId" |
50 |
| - ], |
51 |
| - "type": "object", |
52 |
| - "properties": { |
53 |
| - "amount": { |
54 |
| - "type": "string", |
55 |
| - "example": "SUCCESS" |
56 |
| - }, |
57 |
| - "orderId": { |
58 |
| - "type": "string", |
59 |
| - "example": "ORDID12345" |
60 |
| - }, |
61 |
| - "paymentDateTime": { |
62 |
| - "type": "string", |
63 |
| - "example": "ORDID12345" |
64 |
| - }, |
65 |
| - "paymentMode": { |
66 |
| - "type": "string", |
67 |
| - "example": "ORDID12345" |
68 |
| - }, |
69 |
| - "paymentStatus": { |
70 |
| - "type": "string", |
71 |
| - "example": "SUCCESS" |
72 |
| - }, |
73 |
| - "transactionId": { |
74 |
| - "type": "string", |
75 |
| - "example": "ORDID12345" |
76 |
| - } |
77 |
| - }, |
78 |
| - "x-omitempty": true, |
79 |
| - "x-go-name": "CouCustomPaymentWebhook" |
80 |
| - } |
81 |
| - } |
82 |
| - }, |
83 |
| - "required": true |
84 |
| - }, |
85 |
| - "responses": { |
86 |
| - "200": { |
87 |
| - "description": "OK", |
88 |
| - "headers": { |
89 |
| - "X-Frame-Options": { |
90 |
| - "description": "X Frame options", |
91 |
| - "schema": { |
92 |
| - "type": "string" |
93 |
| - } |
94 |
| - }, |
95 |
| - "Strict-Transport-Security": { |
96 |
| - "description": "Strict transport security", |
97 |
| - "schema": { |
98 |
| - "type": "string" |
99 |
| - } |
100 |
| - }, |
101 |
| - "Cache-Control": { |
102 |
| - "description": "Cache control", |
103 |
| - "schema": { |
104 |
| - "type": "string" |
105 |
| - } |
106 |
| - }, |
107 |
| - "X-Content-Type-Options": { |
108 |
| - "description": "X Content type options", |
109 |
| - "schema": { |
110 |
| - "type": "string" |
111 |
| - } |
112 |
| - }, |
113 |
| - "Content-Security-Policy": { |
114 |
| - "description": "Content security policy", |
115 |
| - "schema": { |
116 |
| - "type": "string" |
117 |
| - } |
118 |
| - }, |
119 |
| - "Pragma": { |
120 |
| - "description": "Pragma", |
121 |
| - "schema": { |
122 |
| - "type": "string" |
123 |
| - } |
124 |
| - }, |
125 |
| - "X-XSS-Protection": { |
126 |
| - "description": "X Xss Protection", |
127 |
| - "schema": { |
128 |
| - "type": "string" |
129 |
| - } |
130 |
| - } |
131 |
| - }, |
132 |
| - "content": { |
133 |
| - "application/json": { |
134 |
| - "schema": { |
135 |
| - "required": ["status"], |
136 |
| - "type": "object", |
137 |
| - "properties": { |
138 |
| - "status": { |
139 |
| - "type": "string", |
140 |
| - "example": "acknowledged" |
141 |
| - } |
142 |
| - }, |
143 |
| - "x-go-name": "CouCustomPaymentWebhookResponse", |
144 |
| - "x-omitempty": true |
145 |
| - } |
146 |
| - } |
147 |
| - } |
148 |
| - }, |
149 |
| - "400": { |
150 |
| - "description": "Bad request", |
151 |
| - "content": { |
152 |
| - "application/json": { |
153 |
| - "schema": { |
154 |
| - "required": ["error", "success", "traceId"], |
155 |
| - "type": "object", |
156 |
| - "properties": { |
157 |
| - "error": { |
158 |
| - "required": ["code", "message"], |
159 |
| - "type": "object", |
160 |
| - "properties": { |
161 |
| - "code": { |
162 |
| - "type": "string", |
163 |
| - "example": "validation-error" |
164 |
| - }, |
165 |
| - "message": { |
166 |
| - "type": "string", |
167 |
| - "example": "Input is invalid" |
168 |
| - } |
169 |
| - } |
170 |
| - }, |
171 |
| - "success": { |
172 |
| - "type": "boolean", |
173 |
| - "example": false |
174 |
| - }, |
175 |
| - "traceId": { |
176 |
| - "type": "string", |
177 |
| - "example": "C3SFG0O6N88R6UI7EQ" |
178 |
| - } |
179 |
| - } |
180 |
| - } |
181 |
| - } |
182 |
| - } |
183 |
| - }, |
184 |
| - "500": { |
185 |
| - "description": "Bad request", |
186 |
| - "content": { |
187 |
| - "application/json": { |
188 |
| - "schema": { |
189 |
| - "required": ["error", "success", "traceId"], |
190 |
| - "type": "object", |
191 |
| - "properties": { |
192 |
| - "error": { |
193 |
| - "required": ["code", "message"], |
194 |
| - "type": "object", |
195 |
| - "properties": { |
196 |
| - "code": { |
197 |
| - "type": "string", |
198 |
| - "example": "validation-error" |
199 |
| - }, |
200 |
| - "message": { |
201 |
| - "type": "string", |
202 |
| - "example": "Input is invalid" |
203 |
| - } |
204 |
| - } |
205 |
| - }, |
206 |
| - "success": { |
207 |
| - "type": "boolean", |
208 |
| - "example": false |
209 |
| - }, |
210 |
| - "traceId": { |
211 |
| - "type": "string", |
212 |
| - "example": "C3SFG0O6N88R6UI7EQ" |
213 |
| - } |
214 |
| - } |
215 |
| - } |
216 |
| - } |
217 |
| - } |
218 |
| - } |
219 |
| - }, |
220 |
| - "x-codegen-request-body-name": "CouCustomPaymentWebhook" |
221 |
| - } |
222 |
| - }, |
223 | 23 | "/api/v2/ethereal/link": {
|
224 | 24 | "post": {
|
225 | 25 | "tags": ["Link Generation"],
|
|
0 commit comments