|
418 | 418 | } |
419 | 419 | } |
420 | 420 | }, |
421 | | - "/settlements/{settlementId}/participants/{participantId}/accounts/{accountId}": { |
| 421 | + "/settlements/{id}": { |
422 | 422 | "get": { |
423 | 423 | "produces": [ |
424 | 424 | "application/json" |
425 | 425 | ], |
426 | 426 | "deprecated": false, |
427 | | - "summary": "Returns Settlement(s) as per filter criteria.", |
428 | | - "operationId": "getSettlementBySettlementParticipantAccount", |
| 427 | + "summary": "Returns Settlement(s) as per parameters/filter criteria.", |
| 428 | + "operationId": "getSettlementById", |
429 | 429 | "parameters": [ |
430 | 430 | { |
431 | 431 | "in": "path", |
432 | | - "name": "settlementId", |
| 432 | + "name": "id", |
433 | 433 | "required": true, |
434 | 434 | "type": "integer", |
435 | 435 | "description": "A valid Settlement Id.\n" |
436 | | - }, |
437 | | - { |
438 | | - "in": "path", |
439 | | - "name": "participantId", |
440 | | - "required": true, |
441 | | - "type": "integer", |
442 | | - "description": "A valid Participant Id.\n" |
443 | | - }, |
444 | | - { |
445 | | - "in": "path", |
446 | | - "name": "accountId", |
447 | | - "required": true, |
448 | | - "type": "integer", |
449 | | - "description": "A valid Account Id. \n" |
450 | 436 | } |
451 | 437 | ], |
452 | 438 | "tags": [ |
453 | | - "getSettlementBySettlementParticipantAccount" |
| 439 | + "getSettlementById" |
454 | 440 | ], |
455 | 441 | "responses": { |
456 | 442 | "200": { |
457 | | - "description": "Settlement, settlement windows and settlement accounts returned by the filtering parameters.", |
| 443 | + "description": "Settlement successfully returned by the filtering/Query parameters.", |
458 | 444 | "schema": { |
459 | 445 | "$ref": "#/definitions/Settlement" |
460 | 446 | } |
|
499 | 485 | "application/json" |
500 | 486 | ], |
501 | 487 | "deprecated": false, |
502 | | - "summary": "Acknowledegement of settlement by updating the reason and state by Settlements Id, Participant Id and accounts Id.", |
503 | | - "operationId": "updateSettlementBySettlementParticipantAccount", |
| 488 | + "summary": "Acknowledegement of settlement by updating with Settlement Id.", |
| 489 | + "operationId": "updateSettlementById", |
504 | 490 | "parameters": [ |
505 | 491 | { |
506 | 492 | "in": "path", |
507 | | - "name": "settlementId", |
| 493 | + "name": "id", |
508 | 494 | "description": "A valid Settlement Id.", |
509 | 495 | "required": true, |
510 | 496 | "type": "integer" |
511 | 497 | }, |
512 | | - { |
513 | | - "in": "path", |
514 | | - "name": "participantId", |
515 | | - "description": "A valid Participant Id.", |
516 | | - "required": true, |
517 | | - "type": "integer" |
518 | | - }, |
519 | | - { |
520 | | - "in": "path", |
521 | | - "name": "accountId", |
522 | | - "description": "A valid Account Id.", |
523 | | - "required": true, |
524 | | - "type": "integer" |
525 | | - }, |
526 | 498 | { |
527 | 499 | "in": "body", |
528 | 500 | "name": "payload", |
529 | 501 | "description": "A JSON object containing settlement update info.", |
530 | 502 | "schema": { |
531 | | - "$ref": "#/definitions/SettlementUpdateBySettlementParticipantAccount" |
| 503 | + "$ref": "#/definitions/SettlementUpdatebySettlementIdPayload" |
532 | 504 | }, |
533 | 505 | "required": true |
534 | 506 | } |
535 | 507 | ], |
536 | 508 | "tags": [ |
537 | | - "updateSettlementBySettlementParticipantAccount" |
| 509 | + "updateSettlementById" |
538 | 510 | ], |
539 | 511 | "responses": { |
540 | 512 | "200": { |
|
576 | 548 | } |
577 | 549 | } |
578 | 550 | }, |
579 | | - "/settlements/{id}": { |
| 551 | + "/settlements/{settlementId}/participants/{participantId}": { |
580 | 552 | "get": { |
581 | 553 | "produces": [ |
582 | 554 | "application/json" |
583 | 555 | ], |
584 | 556 | "deprecated": false, |
585 | | - "summary": "Returns Settlement(s) as per parameters/filter criteria.", |
586 | | - "operationId": "getSettlementById", |
| 557 | + "summary": "Returns Settlement(s) as per filter criteria.", |
| 558 | + "operationId": "getSettlementBySettlementParticipant", |
587 | 559 | "parameters": [ |
588 | 560 | { |
589 | 561 | "in": "path", |
590 | | - "name": "id", |
| 562 | + "name": "settlementId", |
591 | 563 | "required": true, |
592 | 564 | "type": "integer", |
593 | 565 | "description": "A valid Settlement Id.\n" |
| 566 | + }, |
| 567 | + { |
| 568 | + "in": "path", |
| 569 | + "name": "participantId", |
| 570 | + "required": true, |
| 571 | + "type": "integer", |
| 572 | + "description": "A valid Participant Id.\n" |
594 | 573 | } |
595 | 574 | ], |
596 | 575 | "tags": [ |
597 | | - "getSettlementById" |
| 576 | + "getSettlementBySettlementParticipant" |
598 | 577 | ], |
599 | 578 | "responses": { |
600 | 579 | "200": { |
601 | | - "description": "Settlement successfully returned by the filtering/Query parameters.", |
| 580 | + "description": "Settlement, settlement windows and settlement accounts returned by the filtering parameters.", |
602 | 581 | "schema": { |
603 | 582 | "$ref": "#/definitions/Settlement" |
604 | 583 | } |
|
643 | 622 | "application/json" |
644 | 623 | ], |
645 | 624 | "deprecated": false, |
646 | | - "summary": "Acknowledegement of settlement by updating with Settlement Id.", |
647 | | - "operationId": "updateSettlementById", |
| 625 | + "summary": "Acknowledegement of settlement by updating with Settlements Id and Participant Id.", |
| 626 | + "operationId": "updateSettlementBySettlementParticipant", |
648 | 627 | "parameters": [ |
649 | 628 | { |
650 | 629 | "in": "path", |
651 | | - "name": "id", |
| 630 | + "name": "settlementId", |
652 | 631 | "description": "A valid Settlement Id.", |
653 | 632 | "required": true, |
654 | 633 | "type": "integer" |
655 | 634 | }, |
| 635 | + { |
| 636 | + "in": "path", |
| 637 | + "name": "participantId", |
| 638 | + "description": "A valid Participant Id.", |
| 639 | + "required": true, |
| 640 | + "type": "integer" |
| 641 | + }, |
656 | 642 | { |
657 | 643 | "in": "body", |
658 | 644 | "name": "payload", |
659 | 645 | "description": "A JSON object containing settlement update info.", |
660 | 646 | "schema": { |
661 | | - "$ref": "#/definitions/SettlementUpdatebySettlementIdPayload" |
| 647 | + "$ref": "#/definitions/SettlementUpdateBySettlementPartricipantPayload" |
662 | 648 | }, |
663 | 649 | "required": true |
664 | 650 | } |
665 | 651 | ], |
666 | 652 | "tags": [ |
667 | | - "updateSettlementById" |
| 653 | + "updateSettlementBySettlementParticipant" |
668 | 654 | ], |
669 | 655 | "responses": { |
670 | 656 | "200": { |
|
706 | 692 | } |
707 | 693 | } |
708 | 694 | }, |
709 | | - "/settlements/{settlementId}/participants/{participantId}": { |
| 695 | + "/settlements/{settlementId}/participants/{participantId}/accounts/{accountId}": { |
710 | 696 | "get": { |
711 | 697 | "produces": [ |
712 | 698 | "application/json" |
713 | 699 | ], |
714 | 700 | "deprecated": false, |
715 | 701 | "summary": "Returns Settlement(s) as per filter criteria.", |
716 | | - "operationId": "getSettlementBySettlementParticipant", |
| 702 | + "operationId": "getSettlementBySettlementParticipantAccount", |
717 | 703 | "parameters": [ |
718 | 704 | { |
719 | 705 | "in": "path", |
|
728 | 714 | "required": true, |
729 | 715 | "type": "integer", |
730 | 716 | "description": "A valid Participant Id.\n" |
| 717 | + }, |
| 718 | + { |
| 719 | + "in": "path", |
| 720 | + "name": "accountId", |
| 721 | + "required": true, |
| 722 | + "type": "integer", |
| 723 | + "description": "A valid Account Id. \n" |
731 | 724 | } |
732 | 725 | ], |
733 | 726 | "tags": [ |
734 | | - "getSettlementBySettlementParticipant" |
| 727 | + "getSettlementBySettlementParticipantAccount" |
735 | 728 | ], |
736 | 729 | "responses": { |
737 | 730 | "200": { |
|
780 | 773 | "application/json" |
781 | 774 | ], |
782 | 775 | "deprecated": false, |
783 | | - "summary": "Acknowledegement of settlement by updating with Settlements Id and Participant Id.", |
784 | | - "operationId": "updateSettlementBySettlementParticipant", |
| 776 | + "summary": "Acknowledegement of settlement by updating the reason and state by Settlements Id, Participant Id and accounts Id.", |
| 777 | + "operationId": "updateSettlementBySettlementParticipantAccount", |
785 | 778 | "parameters": [ |
786 | 779 | { |
787 | 780 | "in": "path", |
|
797 | 790 | "required": true, |
798 | 791 | "type": "integer" |
799 | 792 | }, |
| 793 | + { |
| 794 | + "in": "path", |
| 795 | + "name": "accountId", |
| 796 | + "description": "A valid Account Id.", |
| 797 | + "required": true, |
| 798 | + "type": "integer" |
| 799 | + }, |
800 | 800 | { |
801 | 801 | "in": "body", |
802 | 802 | "name": "payload", |
803 | 803 | "description": "A JSON object containing settlement update info.", |
804 | 804 | "schema": { |
805 | | - "$ref": "#/definitions/SettlementUpdateBySettlementPartricipantPayload" |
| 805 | + "$ref": "#/definitions/SettlementUpdateBySettlementParticipantAccount" |
806 | 806 | }, |
807 | 807 | "required": true |
808 | 808 | } |
809 | 809 | ], |
810 | 810 | "tags": [ |
811 | | - "updateSettlementBySettlementParticipant" |
| 811 | + "updateSettlementBySettlementParticipantAccount" |
812 | 812 | ], |
813 | 813 | "responses": { |
814 | 814 | "200": { |
|
989 | 989 | "reason": { |
990 | 990 | "type": "string", |
991 | 991 | "example": "string" |
| 992 | + }, |
| 993 | + "externalReference": { |
| 994 | + "type": "string", |
| 995 | + "example": "external-reference-abc123" |
992 | 996 | } |
993 | 997 | }, |
994 | 998 | "required": [ |
|
0 commit comments