-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #199 from XeroAPI/finance-spec
adds finance api to sdk
- Loading branch information
Showing
145 changed files
with
22,048 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# XeroRuby::Finance::AccountUsage | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**month** | **String** | The month this usage item contains data for | [optional] | ||
**account_id** | **String** | The account this usage item contains data for | [optional] | ||
**currency_code** | **String** | The currency code this usage item contains data for | [optional] | ||
**total_received** | **BigDecimal** | Total received | [optional] | ||
**count_received** | **Integer** | Count of received | [optional] | ||
**total_paid** | **BigDecimal** | Total paid | [optional] | ||
**count_paid** | **Integer** | Count of paid | [optional] | ||
**total_manual_journal** | **BigDecimal** | Total value of manual journals | [optional] | ||
**count_manual_journal** | **Integer** | Count of manual journals | [optional] | ||
**account_name** | **String** | The name of the account | [optional] | ||
**reporting_code** | **String** | Shown if set | [optional] | ||
**reporting_code_name** | **String** | Shown if set | [optional] | ||
**report_code_updated_date_utc** | **DateTime** | Last modified date UTC format | [optional] | ||
|
||
## Code Sample | ||
|
||
```ruby | ||
require 'XeroRuby::Finance' | ||
|
||
instance = XeroRuby::Finance::AccountUsage.new(month: null, | ||
account_id: null, | ||
currency_code: null, | ||
total_received: null, | ||
count_received: null, | ||
total_paid: null, | ||
count_paid: null, | ||
total_manual_journal: null, | ||
count_manual_journal: null, | ||
account_name: null, | ||
reporting_code: null, | ||
reporting_code_name: null, | ||
report_code_updated_date_utc: null) | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# XeroRuby::Finance::AccountUsageResponse | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**organisation_id** | **String** | The requested Organisation to which the data pertains | [optional] | ||
**start_month** | **String** | The start month of the report | [optional] | ||
**end_month** | **String** | The end month of the report | [optional] | ||
**account_usage** | [**Array<AccountUsage>**](AccountUsage.md) | | [optional] | ||
|
||
## Code Sample | ||
|
||
```ruby | ||
require 'XeroRuby::Finance' | ||
|
||
instance = XeroRuby::Finance::AccountUsageResponse.new(organisation_id: null, | ||
start_month: null, | ||
end_month: null, | ||
account_usage: null) | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# XeroRuby::Finance::BalanceSheetAccountDetail | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**code** | **String** | Accounting code | [optional] | ||
**account_id** | **String** | ID of the account | [optional] | ||
**name** | **String** | Account name | [optional] | ||
**reporting_code** | **String** | Reporting code | [optional] | ||
**total** | **BigDecimal** | Total movement on this account | [optional] | ||
|
||
## Code Sample | ||
|
||
```ruby | ||
require 'XeroRuby::Finance' | ||
|
||
instance = XeroRuby::Finance::BalanceSheetAccountDetail.new(code: null, | ||
account_id: null, | ||
name: null, | ||
reporting_code: null, | ||
total: null) | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# XeroRuby::Finance::BalanceSheetAccountGroup | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**account_types** | [**Array<BalanceSheetAccountType>**](BalanceSheetAccountType.md) | | [optional] | ||
**total** | **BigDecimal** | Total value of all the accounts in this type | [optional] | ||
|
||
## Code Sample | ||
|
||
```ruby | ||
require 'XeroRuby::Finance' | ||
|
||
instance = XeroRuby::Finance::BalanceSheetAccountGroup.new(account_types: null, | ||
total: null) | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# XeroRuby::Finance::BalanceSheetAccountType | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**account_type** | **String** | The type of the account. See <a href='https://developer.xero.com/documentation/api/types#AccountTypes'>Account Types</a> | [optional] | ||
**accounts** | [**Array<BalanceSheetAccountDetail>**](BalanceSheetAccountDetail.md) | A list of all accounts of this type. Refer to the Account section below for each account element detail. | [optional] | ||
**total** | **BigDecimal** | Total value of all the accounts in this type | [optional] | ||
|
||
## Code Sample | ||
|
||
```ruby | ||
require 'XeroRuby::Finance' | ||
|
||
instance = XeroRuby::Finance::BalanceSheetAccountType.new(account_type: null, | ||
accounts: null, | ||
total: null) | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# XeroRuby::Finance::BalanceSheetResponse | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**balance_date** | **Date** | Balance date of the report | [optional] | ||
**asset** | [**BalanceSheetAccountGroup**](BalanceSheetAccountGroup.md) | | [optional] | ||
**liability** | [**BalanceSheetAccountGroup**](BalanceSheetAccountGroup.md) | | [optional] | ||
**equity** | [**BalanceSheetAccountGroup**](BalanceSheetAccountGroup.md) | | [optional] | ||
|
||
## Code Sample | ||
|
||
```ruby | ||
require 'XeroRuby::Finance' | ||
|
||
instance = XeroRuby::Finance::BalanceSheetResponse.new(balance_date: null, | ||
asset: null, | ||
liability: null, | ||
equity: null) | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# XeroRuby::Finance::BankStatementResponse | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**statement_lines** | [**StatementLinesResponse**](StatementLinesResponse.md) | | [optional] | ||
**current_statement** | [**CurrentStatementResponse**](CurrentStatementResponse.md) | | [optional] | ||
|
||
## Code Sample | ||
|
||
```ruby | ||
require 'XeroRuby::Finance' | ||
|
||
instance = XeroRuby::Finance::BankStatementResponse.new(statement_lines: null, | ||
current_statement: null) | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# XeroRuby::Finance::CashAccountResponse | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**unreconciled_amount_pos** | **BigDecimal** | Total value of transactions in the journals which are not reconciled to bank statement lines, and have a positive (debit) value. | [optional] | ||
**unreconciled_amount_neg** | **BigDecimal** | Total value of transactions in the journals which are not reconciled to bank statement lines, and have a negative (credit) value. | [optional] | ||
**starting_balance** | **BigDecimal** | Starting (or historic) balance from the journals (manually keyed in by users on account creation - unverified). | [optional] | ||
**account_balance** | **BigDecimal** | Current cash at bank accounting value from the journals. | [optional] | ||
**balance_currency** | **String** | Currency which the cashAccount transactions relate to. | [optional] | ||
|
||
## Code Sample | ||
|
||
```ruby | ||
require 'XeroRuby::Finance' | ||
|
||
instance = XeroRuby::Finance::CashAccountResponse.new(unreconciled_amount_pos: null, | ||
unreconciled_amount_neg: null, | ||
starting_balance: null, | ||
account_balance: null, | ||
balance_currency: null) | ||
``` | ||
|
||
|
Oops, something went wrong.