|
1606 | 1606 | },
|
1607 | 1607 | "x-go-name": "BillAdditionalInfo"
|
1608 | 1608 | },
|
| 1609 | + "bill": { |
| 1610 | + "type": "object", |
| 1611 | + "required": [ |
| 1612 | + "billNumber", |
| 1613 | + "amount" |
| 1614 | + ], |
| 1615 | + "properties": { |
| 1616 | + "billNumber": { |
| 1617 | + "type": "string", |
| 1618 | + "example": "B123456", |
| 1619 | + "description": "Unique identifier for the bill" |
| 1620 | + }, |
| 1621 | + "amount": { |
| 1622 | + "type": "integer", |
| 1623 | + "example": 450000, |
| 1624 | + "minimum": 1, |
| 1625 | + "description": "Amount to be paid for the bill in paise" |
| 1626 | + } |
| 1627 | + } |
| 1628 | + }, |
1609 | 1629 | "billData": {
|
1610 | 1630 | "required": [
|
1611 |
| - "amount", |
1612 | 1631 | "billDate",
|
1613 | 1632 | "billNumber",
|
1614 | 1633 | "billPeriod",
|
|
1619 | 1638 | "properties": {
|
1620 | 1639 | "amount": {
|
1621 | 1640 | "type": "integer",
|
1622 |
| - "example": 120000 |
| 1641 | + "example": 1000 |
1623 | 1642 | },
|
1624 | 1643 | "billDate": {
|
1625 | 1644 | "type": "string",
|
|
1633 | 1652 | "billPeriod": {
|
1634 | 1653 | "type": "string",
|
1635 | 1654 | "enum": [
|
1636 |
| - "Onetime", |
1637 |
| - "Daily", |
1638 |
| - "Weekly", |
1639 |
| - "BiMontly", |
1640 |
| - "Monthly", |
1641 |
| - "Quarterly", |
1642 |
| - "HalfYearly", |
1643 |
| - "AsPresented" |
| 1655 | + "ONETIME", |
| 1656 | + "DAILY", |
| 1657 | + "WEEKLY", |
| 1658 | + "BIMONTHLY", |
| 1659 | + "MONTHLY", |
| 1660 | + "QUARTERLY", |
| 1661 | + "HALFYEARLY", |
| 1662 | + "YEARLY", |
| 1663 | + "ASPRESENTED", |
| 1664 | + "NA" |
1644 | 1665 | ]
|
1645 | 1666 | },
|
1646 | 1667 | "customerName": {
|
|
1651 | 1672 | "type": "string",
|
1652 | 1673 | "format": "date",
|
1653 | 1674 | "example": "2021-09-24"
|
| 1675 | + }, |
| 1676 | + "label": { |
| 1677 | + "type": "string", |
| 1678 | + "example": "Advance EMI", |
| 1679 | + "description": "Label for the bill" |
| 1680 | + }, |
| 1681 | + "minAmount": { |
| 1682 | + "type": "integer", |
| 1683 | + "example": 1, |
| 1684 | + "description": "Minimum amount that can be paid for this bill in paise" |
| 1685 | + }, |
| 1686 | + "maxAmount": { |
| 1687 | + "type": "integer", |
| 1688 | + "example": 10000, |
| 1689 | + "description": "Maximum amount that can be paid for this bill in paise" |
| 1690 | + }, |
| 1691 | + "amountMultiple": { |
| 1692 | + "type": "integer", |
| 1693 | + "example": 100, |
| 1694 | + "description": "Bill payment amount should be multiple of this value in paise" |
| 1695 | + }, |
| 1696 | + "paymentOptions": { |
| 1697 | + "type": "array", |
| 1698 | + "items": { |
| 1699 | + "$ref": "#/components/schemas/paymentOptionItem" |
| 1700 | + } |
1654 | 1701 | }
|
1655 | 1702 | },
|
1656 | 1703 | "x-go-name": "BillData"
|
|
1674 | 1721 | },
|
1675 | 1722 | "exactness": {
|
1676 | 1723 | "type": "string",
|
1677 |
| - "example": "EXACT/EXACT_UP/EXACT_DOWN/ADHOC" |
1678 |
| - }, |
| 1724 | + "enum": ["Exact", "Exact and above", "Exact and below", "Any", "RANGE"], |
| 1725 | + "example": "Exact", |
| 1726 | + "description": "Specifies the range of payment amounts allowed by the biller" |
| 1727 | + }, |
1679 | 1728 | "failureReason": {
|
1680 | 1729 | "$ref": "#/components/schemas/bbpsFailureReason"
|
1681 | 1730 | },
|
|
1693 | 1742 | },
|
1694 | 1743 | "status": {
|
1695 | 1744 | "$ref": "#/components/schemas/status"
|
| 1745 | + }, |
| 1746 | + "billerResponseType": { |
| 1747 | + "$ref": "#/components/schemas/billerResponseType" |
| 1748 | + }, |
| 1749 | + "billerSelectionType": { |
| 1750 | + "$ref": "#/components/schemas/billerSelectionType" |
1696 | 1751 | }
|
1697 | 1752 | }
|
1698 | 1753 | },
|
|
1734 | 1789 | "description": "The biller ID on BBPS",
|
1735 | 1790 | "example": "MAHI00000NATIC"
|
1736 | 1791 | },
|
| 1792 | + "bills": { |
| 1793 | + "type": "array", |
| 1794 | + "example": [ |
| 1795 | + { |
| 1796 | + "billNumber": "4705299027986032967", |
| 1797 | + "amount": 3000 |
| 1798 | + }, |
| 1799 | + { |
| 1800 | + "billNumber": "3056665275489131002", |
| 1801 | + "amount": 7000 |
| 1802 | + } |
| 1803 | + ], |
| 1804 | + "description": "Details of bills(for LIST billers) for which payment was made.", |
| 1805 | + "items": { |
| 1806 | + "$ref": "#/components/schemas/bill" |
| 1807 | + }, |
| 1808 | + "uniqueItems": true, |
| 1809 | + "nullable": true |
| 1810 | + }, |
1737 | 1811 | "billerRefId": {
|
1738 | 1812 | "type": "string",
|
1739 | 1813 | "example": "ZA6291A177"
|
|
1784 | 1858 | "payWithoutFetchAllowed",
|
1785 | 1859 | "paymentChannels",
|
1786 | 1860 | "paymentModes",
|
| 1861 | + "responseType", |
| 1862 | + "selectionType", |
1787 | 1863 | "supportsPendingStatus"
|
1788 | 1864 | ],
|
1789 | 1865 | "type": "object",
|
|
1836 | 1912 | },
|
1837 | 1913 | "exactness": {
|
1838 | 1914 | "type": "string",
|
1839 |
| - "enum": [ |
1840 |
| - "Exact", |
1841 |
| - "Exact and above", |
1842 |
| - "Exact and below" |
1843 |
| - ] |
| 1915 | + "enum": ["Exact", "Exact and above", "Exact and below", "Any", "RANGE"], |
| 1916 | + "example": "Exact", |
| 1917 | + "description": "Specifies the range of payment amounts allowed by the biller" |
1844 | 1918 | },
|
1845 | 1919 | "fetchApiType": {
|
1846 | 1920 | "type": "string",
|
|
1896 | 1970 | "$ref": "#/components/schemas/planItem"
|
1897 | 1971 | }
|
1898 | 1972 | },
|
| 1973 | + "responseType": { |
| 1974 | + "$ref": "#/components/schemas/billerResponseType" |
| 1975 | + }, |
1899 | 1976 | "state": {
|
1900 | 1977 | "type": "string",
|
1901 | 1978 | "example": "TEL"
|
1902 | 1979 | },
|
| 1980 | + "selectionType": { |
| 1981 | + "$ref": "#/components/schemas/billerSelectionType" |
| 1982 | + }, |
1903 | 1983 | "supportsPendingStatus": {
|
1904 | 1984 | "type": "boolean",
|
1905 | 1985 | "example": false
|
|
1911 | 1991 | },
|
1912 | 1992 | "x-go-name": "CouBillerDetails"
|
1913 | 1993 | },
|
| 1994 | + "billerResponseType": { |
| 1995 | + "type": "string", |
| 1996 | + "enum": ["SINGLE", "LIST", "SELECTIVE"], |
| 1997 | + "example": "LIST", |
| 1998 | + "description": "Specifies whether a biller returns a single bill or a list of bills during bill fetch", |
| 1999 | + "nullable": true |
| 2000 | + }, |
| 2001 | + "billerSelectionType": { |
| 2002 | + "type": "string", |
| 2003 | + "enum": ["SINGLE", "MULTIPLE", "ALL"], |
| 2004 | + "example": "SINGLE", |
| 2005 | + "description": "In case of LIST billers, specifies the number of bills a biller allows to be paid at once", |
| 2006 | + "nullable": true |
| 2007 | + }, |
1914 | 2008 | "billerListResponse": {
|
1915 | 2009 | "required": [
|
1916 | 2010 | "success",
|
|
2104 | 2198 | "customer": {
|
2105 | 2199 | "$ref": "#/components/schemas/customerDetails"
|
2106 | 2200 | },
|
| 2201 | + "bills": { |
| 2202 | + "type": "array", |
| 2203 | + "example": [ |
| 2204 | + { |
| 2205 | + "billNumber": "4705299027986032967", |
| 2206 | + "amount": 3000 |
| 2207 | + }, |
| 2208 | + { |
| 2209 | + "billNumber": "3056665275489131002", |
| 2210 | + "amount": 7000 |
| 2211 | + } |
| 2212 | + ], |
| 2213 | + "description": "Array of bills to be paid when making payments for LIST billers. Optional for SINGLE billers.", |
| 2214 | + "items": { |
| 2215 | + "$ref": "#/components/schemas/bill" |
| 2216 | + }, |
| 2217 | + "uniqueItems": true, |
| 2218 | + "nullable": true |
| 2219 | + }, |
2107 | 2220 | "paymentDetails": {
|
2108 | 2221 | "$ref": "#/components/schemas/paymentDetails"
|
2109 | 2222 | },
|
|
2542 | 2655 | "mode": {
|
2543 | 2656 | "$ref": "#/components/schemas/paymentMode"
|
2544 | 2657 | },
|
2545 |
| - "paymentParams": { |
2546 |
| - "$ref": "#/components/schemas/paymentParameters" |
| 2658 | + "selectedPaymentOptions": { |
| 2659 | + "$ref": "#/components/schemas/selectedPaymentOptions" |
2547 | 2660 | },
|
2548 | 2661 | "paymentRefId": {
|
2549 | 2662 | "maxLength": 35,
|
|
2603 | 2716 | }
|
2604 | 2717 | }
|
2605 | 2718 | },
|
2606 |
| - "paymentParameterItem": { |
| 2719 | + "selectedPaymentOptionItem": { |
2607 | 2720 | "required": [
|
2608 | 2721 | "name",
|
2609 |
| - "value" |
| 2722 | + "amount" |
2610 | 2723 | ],
|
2611 | 2724 | "type": "object",
|
2612 | 2725 | "properties": {
|
2613 | 2726 | "name": {
|
2614 | 2727 | "type": "string",
|
2615 |
| - "description": "The display name of the parameter. This has to match what is sent in fields.", |
| 2728 | + "description": "The display name of the selected payment option from fetch response.", |
2616 | 2729 | "example": "Early Payment Amount"
|
2617 | 2730 | },
|
2618 |
| - "value": { |
2619 |
| - "type": "string", |
2620 |
| - "description": "The value of the payment parameter", |
2621 |
| - "example": "100" |
| 2731 | + "amount": { |
| 2732 | + "type": "integer", |
| 2733 | + "description": "The amount being paid for the selected payment option in paise.", |
| 2734 | + "example": 10000 |
2622 | 2735 | }
|
2623 | 2736 | }
|
2624 | 2737 | },
|
2625 |
| - "paymentParameters": { |
| 2738 | + "selectedPaymentOptions": { |
2626 | 2739 | "type": "array",
|
2627 |
| - "description": "Additional Payment Parameters", |
| 2740 | + "description": "List of selected payment options", |
2628 | 2741 | "items": {
|
2629 |
| - "$ref": "#/components/schemas/paymentParameterItem" |
| 2742 | + "$ref": "#/components/schemas/selectedPaymentOptionItem" |
| 2743 | + } |
| 2744 | + }, |
| 2745 | + "paymentOptionItem": { |
| 2746 | + "x-go-name": "PaymentOption", |
| 2747 | + "type": "object", |
| 2748 | + "required": [ |
| 2749 | + "name" |
| 2750 | + ], |
| 2751 | + "properties": { |
| 2752 | + "name": { |
| 2753 | + "type": "string", |
| 2754 | + "example": "2 Months EMI Amount", |
| 2755 | + "description": "The display name of the option." |
| 2756 | + }, |
| 2757 | + "amount": { |
| 2758 | + "type": "integer", |
| 2759 | + "example": 2000, |
| 2760 | + "description": "The amount that can be paid for this option in paise." |
| 2761 | + }, |
| 2762 | + "minAmount": { |
| 2763 | + "type": "integer", |
| 2764 | + "example": 200, |
| 2765 | + "description": "The minimum amount that can be paid for this option in paise." |
| 2766 | + }, |
| 2767 | + "maxAmount": { |
| 2768 | + "type": "integer", |
| 2769 | + "example": 20000, |
| 2770 | + "description": "The maximum amount that can be paid for this option in paise." |
| 2771 | + }, |
| 2772 | + "amountMultiple": { |
| 2773 | + "type": "integer", |
| 2774 | + "example": 100, |
| 2775 | + "description": "The payment amount should be a multiple of this value in paise." |
| 2776 | + } |
2630 | 2777 | }
|
2631 | 2778 | },
|
2632 | 2779 | "planItem": {
|
|
2794 | 2941 | "type": "integer",
|
2795 | 2942 | "example": 120000
|
2796 | 2943 | },
|
| 2944 | + "bills": { |
| 2945 | + "type": "array", |
| 2946 | + "example": [ |
| 2947 | + { |
| 2948 | + "billNumber": "4705299027986032967", |
| 2949 | + "amount": 3000 |
| 2950 | + }, |
| 2951 | + { |
| 2952 | + "billNumber": "3056665275489131002", |
| 2953 | + "amount": 7000 |
| 2954 | + } |
| 2955 | + ], |
| 2956 | + "description": "Details of bills for which payment was made.", |
| 2957 | + "items": { |
| 2958 | + "$ref": "#/components/schemas/bill" |
| 2959 | + }, |
| 2960 | + "uniqueItems": true, |
| 2961 | + "nullable": true |
| 2962 | + }, |
2797 | 2963 | "billerId": {
|
2798 | 2964 | "type": "string",
|
2799 | 2965 | "description": "The biller ID on BBPS",
|
|
0 commit comments