|
1801 | 1801 | "x-is-msdate-time" : true |
1802 | 1802 | }, |
1803 | 1803 | "BudgetLines" : { |
| 1804 | +<<<<<<< HEAD |
1804 | 1805 | "type" : "array", |
1805 | 1806 | "items" : { |
1806 | 1807 | "$ref" : "#/components/schemas/BudgetLine" |
|
1811 | 1812 | "items" : { |
1812 | 1813 | "$ref" : "#/components/schemas/TrackingCategory" |
1813 | 1814 | } |
| 1815 | +======= |
| 1816 | + "$ref" : "#/components/schemas/BudgetLines" |
| 1817 | + }, |
| 1818 | + "Tracking" : { |
| 1819 | + "$ref" : "#/components/schemas/TrackingCategory" |
| 1820 | +>>>>>>> master |
1814 | 1821 | } |
1815 | 1822 | }, |
1816 | 1823 | "description" : "", |
1817 | 1824 | "externalDocs" : { |
1818 | 1825 | "url" : "http://developer.xero.com/documentation/api/budgets/" |
1819 | 1826 | } |
1820 | 1827 | }; |
| 1828 | +<<<<<<< HEAD |
1821 | 1829 | defs["BudgetBalance"] = { |
| 1830 | +======= |
| 1831 | + defs["BudgetLines"] = { |
| 1832 | +>>>>>>> master |
1822 | 1833 | "title" : "", |
1823 | 1834 | "type" : "object", |
1824 | 1835 | "properties" : { |
|
1841 | 1852 | "description" : "Any footnotes associated with this balance" |
1842 | 1853 | } |
1843 | 1854 | }, |
| 1855 | +<<<<<<< HEAD |
1844 | 1856 | "description" : "" |
1845 | 1857 | }; |
1846 | 1858 | defs["BudgetLine"] = { |
|
1864 | 1876 | } |
1865 | 1877 | } |
1866 | 1878 | }, |
| 1879 | +======= |
| 1880 | +>>>>>>> master |
1867 | 1881 | "description" : "", |
1868 | 1882 | "externalDocs" : { |
1869 | 1883 | "url" : "http://developer.xero.com/documentation/api/budgets/" |
|
5930 | 5944 | <nav id="scrollingNav"> |
5931 | 5945 | <ul class="sidenav nav nav-list"> |
5932 | 5946 | <li class="nav-header" data-group="Accounting"><strong>SDK: </strong><span id='sdk-name'></span></li> |
| 5947 | +<<<<<<< HEAD |
5933 | 5948 | <li class="nav-header" data-group="Accounting"><strong>VSN: </strong>1.8.0</li> |
| 5949 | +======= |
| 5950 | + <li class="nav-header" data-group="Accounting"><strong>VSN: </strong>1.7.0</li> |
| 5951 | +>>>>>>> master |
5934 | 5952 | <li class="nav-header" data-group="Accounting"><a href="#api-Accounting">Methods</a></li> |
5935 | 5953 | <li data-group="Accounting" data-name="createAccount" class=""> |
5936 | 5954 | <a href="#api-Accounting-createAccount">createAccount</a> |
@@ -33931,6 +33949,7 @@ <h2>Parameters</h2> |
33931 | 33949 | <hr> |
33932 | 33950 | <div id="api-Accounting-getReportBalanceSheet"> |
33933 | 33951 | <article id="api-Accounting-getReportBalanceSheet-0" data-group="User" data-name="getReportBalanceSheet" data-version="0"> |
| 33952 | +<<<<<<< HEAD |
33934 | 33953 | <div class="pull-left"> |
33935 | 33954 | <h1>getReportBalanceSheet</h1> |
33936 | 33955 | <p>Retrieves report for balancesheet</p> |
@@ -34322,6 +34341,8 @@ <h2>Parameters</h2> |
34322 | 34341 | <hr> |
34323 | 34342 | <div id="api-Accounting-getReportBudgetSummary"> |
34324 | 34343 | <article id="api-Accounting-getReportBudgetSummary-0" data-group="User" data-name="getReportBudgetSummary" data-version="0"> |
| 34344 | +======= |
| 34345 | +>>>>>>> master |
34325 | 34346 | <div class="pull-left"> |
34326 | 34347 | <h1>getReportBudgetSummary</h1> |
34327 | 34348 | <p>Retrieves report for budget summary</p> |
@@ -34638,6 +34659,265 @@ <h3>Usage and SDK Samples</h3> |
34638 | 34659 |
|
34639 | 34660 | api_client.set_oauth2_token("YOUR_ACCESS_TOKEN") |
34640 | 34661 |
|
| 34662 | +def accounting_get_report_from_id(): |
| 34663 | + api_instance = AccountingApi(api_client) |
| 34664 | + xero_tenant_id = 'YOUR_XERO_TENANT_ID' |
| 34665 | + report_id = '00000000-0000-0000-0000-000000000000' |
| 34666 | + |
| 34667 | + try: |
| 34668 | +<<<<<<< HEAD |
| 34669 | + api_response = api_instance.get_report_from_id(xero_tenant_id, report_id) |
| 34670 | +======= |
| 34671 | + api_response = api_instance.get_report_budget_summary(xero_tenant_id, date, periods, time_frame) |
| 34672 | +>>>>>>> master |
| 34673 | + print(api_response) |
| 34674 | + except AccountingBadRequestException as e: |
| 34675 | + print("Exception when calling AccountingApi->getReportFromId: %s\n" % e)</code></pre> |
| 34676 | + </div> |
| 34677 | + </div> |
| 34678 | + <h2>Scopes</h2> |
| 34679 | + <table> |
| 34680 | + |
| 34681 | + <tr> |
| 34682 | + <td>accounting.reports.read</td> |
| 34683 | + <td>Grant read-only access to accounting reports</td> |
| 34684 | + </tr> |
| 34685 | + |
| 34686 | + </table> |
| 34687 | + <h2>Parameters</h2> |
| 34688 | + <div class="methodsubtabletitle">Path parameters</div> |
| 34689 | + <table id="methodsubtable"> |
| 34690 | + <tr> |
| 34691 | + <th width="150px">Name</th> |
| 34692 | + <th>Description</th> |
| 34693 | + </tr> |
| 34694 | + <tr><td style="width:150px;">ReportID<span style="color:red;">*</span></td> |
| 34695 | +<td> |
| 34696 | + |
| 34697 | + |
| 34698 | + <div id="d2e199_getReportFromId_reportID"> |
| 34699 | + <div class="json-schema-view"> |
| 34700 | + <div class="primitive"> |
| 34701 | + <span class="type"> |
| 34702 | + String |
| 34703 | + </span> |
| 34704 | + |
| 34705 | + <div class="inner description marked"> |
| 34706 | +Unique identifier for a Report |
| 34707 | + </div> |
| 34708 | + </div> |
| 34709 | + <div class="inner required"> |
| 34710 | + Required |
| 34711 | + </div> |
| 34712 | + </div> |
| 34713 | + </div> |
| 34714 | +</td> |
| 34715 | +</tr> |
| 34716 | + |
| 34717 | + </table> |
| 34718 | +<<<<<<< HEAD |
| 34719 | +======= |
| 34720 | + <div class="methodsubtabletitle">Query parameters</div> |
| 34721 | + <table id="methodsubtable"> |
| 34722 | + <tr> |
| 34723 | + <th width="150px">Name</th> |
| 34724 | + <th>Description</th> |
| 34725 | + </tr> |
| 34726 | + <tr><td style="width:150px;">date</td> |
| 34727 | +<td> |
| 34728 | + |
| 34729 | + |
| 34730 | + <div id="d2e199_getReportBudgetSummary_date"> |
| 34731 | + <div class="json-schema-view"> |
| 34732 | + <div class="primitive"> |
| 34733 | + <span class="type"> |
| 34734 | + date |
| 34735 | + </span> |
| 34736 | + <span class="format"> |
| 34737 | + (date) |
| 34738 | + </span> |
| 34739 | + |
| 34740 | + <div class="inner description marked"> |
| 34741 | +The date for the Bank Summary report e.g. 2018-03-31 |
| 34742 | + </div> |
| 34743 | + </div> |
| 34744 | + </div> |
| 34745 | + </div> |
| 34746 | +</td> |
| 34747 | +</tr> |
| 34748 | + |
| 34749 | + <tr><td style="width:150px;">periods</td> |
| 34750 | +<td> |
| 34751 | + |
| 34752 | + |
| 34753 | + <div id="d2e199_getReportBudgetSummary_periods"> |
| 34754 | + <div class="json-schema-view"> |
| 34755 | + <div class="primitive"> |
| 34756 | + <span class="type"> |
| 34757 | + Integer |
| 34758 | + </span> |
| 34759 | + |
| 34760 | + <div class="inner description marked"> |
| 34761 | +The number of periods to compare (integer between 1 and 12) |
| 34762 | + </div> |
| 34763 | + </div> |
| 34764 | + </div> |
| 34765 | + </div> |
| 34766 | +</td> |
| 34767 | +</tr> |
| 34768 | + |
| 34769 | + <tr><td style="width:150px;">timeframe</td> |
| 34770 | +<td> |
| 34771 | + |
| 34772 | + |
| 34773 | + <div id="d2e199_getReportBudgetSummary_timeframe"> |
| 34774 | + <div class="json-schema-view"> |
| 34775 | + <div class="primitive"> |
| 34776 | + <span class="type"> |
| 34777 | + Integer |
| 34778 | + </span> |
| 34779 | + |
| 34780 | + <div class="inner description marked"> |
| 34781 | +The period size to compare to (1=month, 3=quarter, 12=year) |
| 34782 | + </div> |
| 34783 | + </div> |
| 34784 | + </div> |
| 34785 | + </div> |
| 34786 | +</td> |
| 34787 | +</tr> |
| 34788 | + |
| 34789 | + </table> |
| 34790 | + </article> |
| 34791 | + </div> |
| 34792 | + <hr> |
| 34793 | + <div id="api-Accounting-getReportExecutiveSummary"> |
| 34794 | + <article id="api-Accounting-getReportExecutiveSummary-0" data-group="User" data-name="getReportExecutiveSummary" data-version="0"> |
| 34795 | + <div class="pull-left"> |
| 34796 | + <h1>getReportExecutiveSummary</h1> |
| 34797 | + <p>Retrieves report for executive summary</p> |
| 34798 | + </div> |
| 34799 | + <div class="pull-right"></div> |
| 34800 | + <div class="clearfix"></div> |
| 34801 | + <p></p> |
| 34802 | + <p class="marked"></p> |
| 34803 | + <p></p> |
| 34804 | + <br /> |
| 34805 | + <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/Reports/ExecutiveSummary</span></code></pre> |
| 34806 | + <p> |
| 34807 | + <h3>Usage and SDK Samples</h3> |
| 34808 | + </p> |
| 34809 | + <ul class="nav nav-tabs nav-tabs-examples"> |
| 34810 | + <!-- *****REPLACE***** comment out the other languages <li> --> |
| 34811 | + <li class=""><a href="#examples-Accounting-getReportExecutiveSummary-0-python">Python</a></li> |
| 34812 | + </ul> |
| 34813 | + <div class="tab-content"> |
| 34814 | + <!-- *****REPLACE***** comment out the other languages tab-pane --> |
| 34815 | + <div class="tab-pane" id="examples-Accounting-getReportExecutiveSummary-0-python"> |
| 34816 | + <pre class="prettyprint"><code class="language-python"># configure api_client for use with xero-python sdk client |
| 34817 | +api_client = ApiClient( |
| 34818 | + Configuration( |
| 34819 | + debug=false, |
| 34820 | + oauth2_token=OAuth2Token( |
| 34821 | + client_id="YOUR_CLIENT_ID", client_secret="YOUR_CLIENT_SECRET" |
| 34822 | + ), |
| 34823 | + ), |
| 34824 | + pool_threads=1, |
| 34825 | +) |
| 34826 | + |
| 34827 | +api_client.set_oauth2_token("YOUR_ACCESS_TOKEN") |
| 34828 | + |
| 34829 | +def accounting_get_report_executive_summary(): |
| 34830 | + api_instance = AccountingApi(api_client) |
| 34831 | + xero_tenant_id = 'YOUR_XERO_TENANT_ID' |
| 34832 | + date = dateutil.parser.parse("2019-03-31") |
| 34833 | + |
| 34834 | + try: |
| 34835 | + api_response = api_instance.get_report_executive_summary(xero_tenant_id, date) |
| 34836 | + print(api_response) |
| 34837 | + except AccountingBadRequestException as e: |
| 34838 | + print("Exception when calling AccountingApi->getReportExecutiveSummary: %s\n" % e)</code></pre> |
| 34839 | + </div> |
| 34840 | + </div> |
| 34841 | + <h2>Scopes</h2> |
| 34842 | + <table> |
| 34843 | + |
| 34844 | + <tr> |
| 34845 | + <td>accounting.reports.read</td> |
| 34846 | + <td>Grant read-only access to accounting reports</td> |
| 34847 | + </tr> |
| 34848 | + |
| 34849 | + </table> |
| 34850 | + <h2>Parameters</h2> |
| 34851 | +>>>>>>> master |
| 34852 | + <div class="methodsubtabletitle">Header parameters</div> |
| 34853 | + <table id="methodsubtable"> |
| 34854 | + <tr> |
| 34855 | + <th width="150px">Name</th> |
| 34856 | + <th>Description</th> |
| 34857 | + </tr> |
| 34858 | + <tr><td style="width:150px;">xero-tenant-id<span style="color:red;">*</span></td> |
| 34859 | +<td> |
| 34860 | + |
| 34861 | + |
| 34862 | + <div id="d2e199_getReportFromId_xeroTenantId"> |
| 34863 | + <div class="json-schema-view"> |
| 34864 | + <div class="primitive"> |
| 34865 | + <span class="type"> |
| 34866 | + String |
| 34867 | + </span> |
| 34868 | + |
| 34869 | + <div class="inner description marked"> |
| 34870 | +Xero identifier for Tenant |
| 34871 | + </div> |
| 34872 | + </div> |
| 34873 | + <div class="inner required"> |
| 34874 | + Required |
| 34875 | + </div> |
| 34876 | + </div> |
| 34877 | + </div> |
| 34878 | +</td> |
| 34879 | +</tr> |
| 34880 | + |
| 34881 | + </table> |
| 34882 | + </article> |
| 34883 | + </div> |
| 34884 | + <hr> |
| 34885 | + <div id="api-Accounting-getReportFromId"> |
| 34886 | + <article id="api-Accounting-getReportFromId-0" data-group="User" data-name="getReportFromId" data-version="0"> |
| 34887 | + <div class="pull-left"> |
| 34888 | + <h1>getReportFromId</h1> |
| 34889 | + <p>Retrieves a specific report using a unique ReportID</p> |
| 34890 | + </div> |
| 34891 | + <div class="pull-right"></div> |
| 34892 | + <div class="clearfix"></div> |
| 34893 | + <p></p> |
| 34894 | + <p class="marked"></p> |
| 34895 | + <p></p> |
| 34896 | + <br /> |
| 34897 | + <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/Reports/{ReportID}</span></code></pre> |
| 34898 | + <p> |
| 34899 | + <h3>Usage and SDK Samples</h3> |
| 34900 | + </p> |
| 34901 | + <ul class="nav nav-tabs nav-tabs-examples"> |
| 34902 | + <!-- *****REPLACE***** comment out the other languages <li> --> |
| 34903 | + <li class=""><a href="#examples-Accounting-getReportFromId-0-python">Python</a></li> |
| 34904 | + </ul> |
| 34905 | + <div class="tab-content"> |
| 34906 | + <!-- *****REPLACE***** comment out the other languages tab-pane --> |
| 34907 | + <div class="tab-pane" id="examples-Accounting-getReportFromId-0-python"> |
| 34908 | + <pre class="prettyprint"><code class="language-python"># configure api_client for use with xero-python sdk client |
| 34909 | +api_client = ApiClient( |
| 34910 | + Configuration( |
| 34911 | + debug=false, |
| 34912 | + oauth2_token=OAuth2Token( |
| 34913 | + client_id="YOUR_CLIENT_ID", client_secret="YOUR_CLIENT_SECRET" |
| 34914 | + ), |
| 34915 | + ), |
| 34916 | + pool_threads=1, |
| 34917 | +) |
| 34918 | + |
| 34919 | +api_client.set_oauth2_token("YOUR_ACCESS_TOKEN") |
| 34920 | + |
34641 | 34921 | def accounting_get_report_from_id(): |
34642 | 34922 | api_instance = AccountingApi(api_client) |
34643 | 34923 | xero_tenant_id = 'YOUR_XERO_TENANT_ID' |
|
0 commit comments