11{
22 "openapi" : " 3.0.2" ,
33 "info" : {
4- "title" : " Order Service" ,
5- "version" : " 1.0.0"
4+ "title" : " Basalam OpenAPI Gateway" ,
5+ "version" : " 1.0.0" ,
6+ "description" : " Filtered OpenAPI endpoints from core service"
67 },
78 "paths" : {
8- "/v2/basket/product/{product_id}/status " : {
9+ "/v1/invoices/payable " : {
910 "get" : {
1011 "tags" : [
11- " Product" ,
12- " v2"
12+ " Order"
1313 ],
14- "summary" : " Get Product Variation Status " ,
15- "operationId" : " get_product_variation_status_v2_basket_product__product_id__status_get " ,
14+ "summary" : " Get Payable Invoices " ,
15+ "operationId" : " get_payable_invoices_v2_invoice_payable_get " ,
1616 "parameters" : [
1717 {
1818 "required" : true ,
1919 "schema" : {
20- "title" : " Product Id " ,
20+ "title" : " Page " ,
2121 "type" : " integer"
2222 },
23- "name" : " product_id" ,
24- "in" : " path"
25- }
26- ],
27- "responses" : {
28- "200" : {
29- "description" : " Successful Response" ,
30- "content" : {
31- "application/json" : {
32- "schema" : {}
33- }
34- }
23+ "name" : " page" ,
24+ "in" : " query"
3525 },
36- "422" : {
37- "description" : " Validation Error" ,
38- "content" : {
39- "application/json" : {
40- "schema" : {
41- "$ref" : " #/components/schemas/HTTPValidationError"
42- }
43- }
44- }
45- }
46- }
47- }
48- },
49- "/v2/invoice/{invoice_id}/payment" : {
50- "post" : {
51- "tags" : [
52- " Payment" ,
53- " v2"
54- ],
55- "summary" : " Create Payment" ,
56- "operationId" : " create_payment_v2_invoice__invoice_id__payment_post" ,
57- "parameters" : [
5826 {
5927 "required" : true ,
6028 "schema" : {
61- "title" : " Invoice Id " ,
29+ "title" : " Per Page " ,
6230 "type" : " integer"
6331 },
64- "name" : " invoice_id " ,
65- "in" : " path "
32+ "name" : " per_page " ,
33+ "in" : " query "
6634 }
6735 ],
68- "requestBody" : {
69- "content" : {
70- "application/json" : {
71- "schema" : {
72- "$ref" : " #/components/schemas/CreatePaymentRequestModel"
73- }
74- }
75- },
76- "required" : true
77- },
7836 "responses" : {
7937 "200" : {
8038 "description" : " Successful Response" ,
9755 }
9856 }
9957 },
100- "/v2/invoice/payable " : {
58+ "/v1/baskets/products/{product_id}/status " : {
10159 "get" : {
10260 "tags" : [
103- " Invoices" ,
104- " v2"
61+ " Order"
10562 ],
106- "summary" : " Get Payable Invoices " ,
107- "operationId" : " get_payable_invoices_v2_invoice_payable_get " ,
63+ "summary" : " Get Product Variation Status " ,
64+ "operationId" : " get_product_variation_status_v2_basket_product__product_id__status_get " ,
10865 "parameters" : [
10966 {
11067 "required" : true ,
11168 "schema" : {
112- "title" : " Page" ,
113- "type" : " integer"
114- },
115- "name" : " page" ,
116- "in" : " query"
117- },
118- {
119- "required" : true ,
120- "schema" : {
121- "title" : " Per Page" ,
69+ "title" : " Product Id" ,
12270 "type" : " integer"
12371 },
124- "name" : " per_page " ,
125- "in" : " query "
72+ "name" : " product_id " ,
73+ "in" : " path "
12674 }
12775 ],
12876 "responses" : {
14795 }
14896 }
14997 },
150- "/v2/invoice /unpaid" : {
98+ "/v1/invoices /unpaid" : {
15199 "get" : {
152100 "tags" : [
153- " Invoices" ,
154- " v2"
101+ " Order"
155102 ],
156103 "summary" : " Get Payable Invoices" ,
157104 "operationId" : " get_payable_invoices_v2_invoice_unpaid_get" ,
229176 }
230177 }
231178 },
232- "/v2/payment/{pay_id}/callback" : {
179+ "/v1/invoices/{invoice_id}/payments" : {
180+ "post" : {
181+ "tags" : [
182+ " Order"
183+ ],
184+ "summary" : " Create Payment" ,
185+ "operationId" : " create_payment_v2_invoice__invoice_id__payment_post" ,
186+ "parameters" : [
187+ {
188+ "required" : true ,
189+ "schema" : {
190+ "title" : " Invoice Id" ,
191+ "type" : " integer"
192+ },
193+ "name" : " invoice_id" ,
194+ "in" : " path"
195+ }
196+ ],
197+ "requestBody" : {
198+ "content" : {
199+ "application/json" : {
200+ "schema" : {
201+ "$ref" : " #/components/schemas/CreatePaymentRequestModel"
202+ }
203+ }
204+ },
205+ "required" : true
206+ },
207+ "responses" : {
208+ "200" : {
209+ "description" : " Successful Response" ,
210+ "content" : {
211+ "application/json" : {
212+ "schema" : {}
213+ }
214+ }
215+ },
216+ "422" : {
217+ "description" : " Validation Error" ,
218+ "content" : {
219+ "application/json" : {
220+ "schema" : {
221+ "$ref" : " #/components/schemas/HTTPValidationError"
222+ }
223+ }
224+ }
225+ }
226+ }
227+ }
228+ },
229+ "/v1/payments/{payment_id}/callbacks" : {
233230 "get" : {
234231 "tags" : [
235- " Payment" ,
236- " v2"
232+ " Order"
237233 ],
238234 "summary" : " Payment Callback" ,
239- "operationId" : " payment_callback_v2_payment__pay_id__callback_post " ,
235+ "operationId" : " payment_callback_v2_payment__pay_id__callback_get " ,
240236 "parameters" : [
241237 {
242238 "required" : true ,
243239 "schema" : {
244240 "title" : " Pay Id" ,
245241 "type" : " integer"
246242 },
247- "name" : " pay_id " ,
243+ "name" : " payment_id " ,
248244 "in" : " path"
249245 },
250246 {
280276 },
281277 "post" : {
282278 "tags" : [
283- " Payment" ,
284- " v2"
279+ " Order"
285280 ],
286281 "summary" : " Payment Callback" ,
287- "operationId" : " payment_callback_v2_payment__pay_id__callback_post " ,
282+ "operationId" : " payment_callback_v2_payment__pay_id__callback_get " ,
288283 "parameters" : [
289284 {
290285 "required" : true ,
291286 "schema" : {
292287 "title" : " Pay Id" ,
293288 "type" : " integer"
294289 },
295- "name" : " pay_id " ,
290+ "name" : " payment_id " ,
296291 "in" : " path"
297292 },
298293 {
327322 }
328323 }
329324 },
330- "/v2/basket " : {
325+ "/v1/baskets " : {
331326 "get" : {
332327 "tags" : [
333- " Basket" ,
334- " v2"
328+ " Order"
335329 ],
336330 "summary" : " Get Active Basket" ,
337331 "operationId" : " get_active_basket_v2_basket_get" ,
372366 },
373367 "components" : {
374368 "schemas" : {
369+ "Order" : {
370+ "title" : " Order" ,
371+ "enum" : [
372+ " ASC" ,
373+ " DESC"
374+ ],
375+ "description" : " An enumeration."
376+ },
377+ "UnpaidInvoiceStatusEnum" : {
378+ "title" : " UnpaidInvoiceStatusEnum" ,
379+ "enum" : [
380+ " saleable" ,
381+ " payable" ,
382+ " unpaid"
383+ ],
384+ "description" : " An enumeration."
385+ },
386+ "PaymentDriver" : {
387+ "title" : " PaymentDriver" ,
388+ "required" : [
389+ " amount"
390+ ],
391+ "type" : " object" ,
392+ "properties" : {
393+ "amount" : {
394+ "title" : " Amount" ,
395+ "type" : " integer" ,
396+ "gte" : 0
397+ }
398+ }
399+ },
375400 "CreatePaymentRequestModel" : {
376401 "title" : " CreatePaymentRequestModel" ,
377402 "required" : [
403428 }
404429 }
405430 },
406- "HTTPValidationError" : {
407- "title" : " HTTPValidationError" ,
408- "type" : " object" ,
409- "properties" : {
410- "message" : {
411- "title" : " Error Message" ,
412- "type" : " string"
413- },
414- "errors" : {
415- "title" : " Errors" ,
416- "type" : " array" ,
417- "items" : {
418- "$ref" : " #/components/schemas/ValidationError"
419- }
420- }
421- }
422- },
423- "Order" : {
424- "title" : " Order" ,
425- "enum" : [
426- " ASC" ,
427- " DESC"
428- ],
429- "description" : " An enumeration."
430- },
431- "PaymentDriver" : {
432- "title" : " PaymentDriver" ,
433- "required" : [
434- " amount"
435- ],
436- "type" : " object" ,
437- "properties" : {
438- "amount" : {
439- "title" : " Amount" ,
440- "type" : " integer" ,
441- "gte" : 0
442- }
443- }
444- },
445- "UnpaidInvoiceStatusEnum" : {
446- "title" : " UnpaidInvoiceStatusEnum" ,
447- "enum" : [
448- " saleable" ,
449- " payable" ,
450- " unpaid"
451- ],
452- "description" : " An enumeration."
453- },
454431 "ValidationError" : {
455432 "title" : " ValidationError" ,
456433 "required" : [
473450 "type" : " string"
474451 }
475452 }
453+ },
454+ "HTTPValidationError" : {
455+ "title" : " HTTPValidationError" ,
456+ "type" : " object" ,
457+ "properties" : {
458+ "message" : {
459+ "title" : " Error Message" ,
460+ "type" : " string"
461+ },
462+ "errors" : {
463+ "title" : " Errors" ,
464+ "type" : " array" ,
465+ "items" : {
466+ "$ref" : " #/components/schemas/ValidationError"
467+ }
468+ }
469+ }
476470 }
477471 }
478- }
472+ },
473+ "servers" : [
474+ {
475+ "url" : " https://openapi.basalam.com" ,
476+ "description" : " Production Gateway"
477+ }
478+ ]
479479}
0 commit comments