merge_accounting_client 1.0.2 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/docs/Account.md +2 -0
- data/docs/BalanceSheet.md +2 -0
- data/docs/CashFlowStatement.md +2 -0
- data/docs/CategoryTypeEnum.md +15 -0
- data/docs/EndUserDetailsRequest.md +2 -2
- data/docs/IncomeStatement.md +2 -0
- data/docs/Invoice.md +1 -1
- data/docs/JournalEntry.md +2 -0
- data/docs/JournalEntryRequest.md +2 -0
- data/docs/RemoteDataRequest.md +1 -1
- data/docs/RemoteResponse.md +3 -1
- data/docs/ResponseTypeEnum.md +15 -0
- data/docs/SyncStatus.md +2 -2
- data/docs/TrackingCategory.md +4 -0
- data/lib/merge_accounting_client/models/account.rb +11 -1
- data/lib/merge_accounting_client/models/account_details_and_actions_status_enum.rb +1 -1
- data/lib/merge_accounting_client/models/account_status_enum.rb +1 -1
- data/lib/merge_accounting_client/models/address_type_enum.rb +1 -1
- data/lib/merge_accounting_client/models/balance_sheet.rb +12 -1
- data/lib/merge_accounting_client/models/cash_flow_statement.rb +12 -1
- data/lib/merge_accounting_client/models/categories_enum.rb +1 -1
- data/lib/merge_accounting_client/models/category_enum.rb +1 -1
- data/lib/merge_accounting_client/models/category_type_enum.rb +45 -0
- data/lib/merge_accounting_client/models/classification_enum.rb +1 -1
- data/lib/merge_accounting_client/models/country_enum.rb +1 -1
- data/lib/merge_accounting_client/models/credit_note_status_enum.rb +1 -1
- data/lib/merge_accounting_client/models/currency_enum.rb +1 -1
- data/lib/merge_accounting_client/models/data_passthrough_request.rb +1 -1
- data/lib/merge_accounting_client/models/encoding_enum.rb +1 -1
- data/lib/merge_accounting_client/models/end_user_details_request.rb +2 -2
- data/lib/merge_accounting_client/models/income_statement.rb +12 -1
- data/lib/merge_accounting_client/models/invoice_type_enum.rb +1 -1
- data/lib/merge_accounting_client/models/issue.rb +1 -1
- data/lib/merge_accounting_client/models/journal_entry.rb +12 -1
- data/lib/merge_accounting_client/models/journal_entry_request.rb +12 -1
- data/lib/merge_accounting_client/models/meta_response.rb +1 -1
- data/lib/merge_accounting_client/models/method_enum.rb +1 -1
- data/lib/merge_accounting_client/models/purchase_order_status_enum.rb +1 -1
- data/lib/merge_accounting_client/models/remote_data_request.rb +1 -1
- data/lib/merge_accounting_client/models/remote_response.rb +14 -11
- data/lib/merge_accounting_client/models/report_item.rb +1 -1
- data/lib/merge_accounting_client/models/request_format_enum.rb +1 -1
- data/lib/merge_accounting_client/models/response_type_enum.rb +45 -0
- data/lib/merge_accounting_client/models/state_enum.rb +1 -1
- data/lib/merge_accounting_client/models/status7d1_enum.rb +1 -1
- data/lib/merge_accounting_client/models/sync_status.rb +0 -10
- data/lib/merge_accounting_client/models/sync_status_status_enum.rb +1 -1
- data/lib/merge_accounting_client/models/tracking_category.rb +22 -1
- data/lib/merge_accounting_client/models/transaction.rb +1 -0
- data/lib/merge_accounting_client/models/transaction_line_item.rb +1 -0
- data/lib/merge_accounting_client/version.rb +1 -1
- data/lib/merge_accounting_client.rb +2 -0
- data/spec/models/account_spec.rb +6 -0
- data/spec/models/balance_sheet_spec.rb +6 -0
- data/spec/models/cash_flow_statement_spec.rb +6 -0
- data/spec/models/category_type_enum_spec.rb +28 -0
- data/spec/models/income_statement_spec.rb +6 -0
- data/spec/models/journal_entry_request_spec.rb +6 -0
- data/spec/models/journal_entry_spec.rb +6 -0
- data/spec/models/remote_response_spec.rb +6 -0
- data/spec/models/response_type_enum_spec.rb +28 -0
- data/spec/models/tracking_category_spec.rb +12 -0
- metadata +116 -108
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bbe7060caa4de92f702eb217eea5ca0808733b557690059d0ff8c8e0db32ae9b
|
4
|
+
data.tar.gz: 5c989fa232657f7891845df726ab8b5992f27b0cea7386afa97983002abcc7b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfc8a1b800e086e33167520488e2a58724979da4798cb667a0a56d9f08a1b7270fccceafe067d9d815e5707251fe4315de074738afa82e44f872a54b104341fc
|
7
|
+
data.tar.gz: e49766984ed2d8dcc18040cc227c58b69d136b375d990aae614de621c078fc660735487a4e5243d03e42fe075e8e2c61b320bd3f9454e86d2ff7c404837b8baa
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ The unified API for building rich integrations with multiple Accounting & Financ
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: 1.0
|
10
|
-
- Package version: 1.0.
|
10
|
+
- Package version: 1.0.4
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [https://www.merge.dev/](https://www.merge.dev/)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build merge_accounting_client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./merge_accounting_client-1.0.
|
27
|
+
gem install ./merge_accounting_client-1.0.4.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./merge_accounting_client-1.0.
|
30
|
+
(for development, run `gem install --dev ./merge_accounting_client-1.0.4.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'merge_accounting_client', '~> 1.0.
|
36
|
+
gem 'merge_accounting_client', '~> 1.0.4'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -161,6 +161,7 @@ Class | Method | HTTP request | Description
|
|
161
161
|
- [MergeAccountingClient::CashFlowStatement](docs/CashFlowStatement.md)
|
162
162
|
- [MergeAccountingClient::CategoriesEnum](docs/CategoriesEnum.md)
|
163
163
|
- [MergeAccountingClient::CategoryEnum](docs/CategoryEnum.md)
|
164
|
+
- [MergeAccountingClient::CategoryTypeEnum](docs/CategoryTypeEnum.md)
|
164
165
|
- [MergeAccountingClient::ClassificationEnum](docs/ClassificationEnum.md)
|
165
166
|
- [MergeAccountingClient::CompanyInfo](docs/CompanyInfo.md)
|
166
167
|
- [MergeAccountingClient::Contact](docs/Contact.md)
|
@@ -232,6 +233,7 @@ Class | Method | HTTP request | Description
|
|
232
233
|
- [MergeAccountingClient::RemoteResponse](docs/RemoteResponse.md)
|
233
234
|
- [MergeAccountingClient::ReportItem](docs/ReportItem.md)
|
234
235
|
- [MergeAccountingClient::RequestFormatEnum](docs/RequestFormatEnum.md)
|
236
|
+
- [MergeAccountingClient::ResponseTypeEnum](docs/ResponseTypeEnum.md)
|
235
237
|
- [MergeAccountingClient::StateEnum](docs/StateEnum.md)
|
236
238
|
- [MergeAccountingClient::Status7d1Enum](docs/Status7d1Enum.md)
|
237
239
|
- [MergeAccountingClient::SyncStatus](docs/SyncStatus.md)
|
data/docs/Account.md
CHANGED
@@ -15,6 +15,7 @@
|
|
15
15
|
| **current_balance** | **Float** | The account's current balance. | [optional] |
|
16
16
|
| **currency** | [**CurrencyEnum**](CurrencyEnum.md) | The account's currency. | [optional] |
|
17
17
|
| **account_number** | **String** | The account's number. | [optional] |
|
18
|
+
| **parent_account** | **String** | | [optional] |
|
18
19
|
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted by third party webhooks. | [optional][readonly] |
|
19
20
|
|
20
21
|
## Example
|
@@ -34,6 +35,7 @@ instance = MergeAccountingClient::Account.new(
|
|
34
35
|
current_balance: null,
|
35
36
|
currency: USD,
|
36
37
|
account_number: X12Y9AB,
|
38
|
+
parent_account: 22d92d6c-22f9-11ed-861d-0242ac120002,
|
37
39
|
remote_was_deleted: null
|
38
40
|
)
|
39
41
|
```
|
data/docs/BalanceSheet.md
CHANGED
@@ -8,6 +8,7 @@
|
|
8
8
|
| **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
|
9
9
|
| **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
|
10
10
|
| **name** | **String** | The balance sheet's name. | [optional] |
|
11
|
+
| **currency** | [**CurrencyEnum**](CurrencyEnum.md) | The balance sheet's currency. | [optional] |
|
11
12
|
| **date** | **Time** | The balance sheet's date. The balance sheet data will reflect the company's financial position this point in time. | [optional] |
|
12
13
|
| **net_assets** | **Float** | The balance sheet's net assets. | [optional] |
|
13
14
|
| **assets** | [**Array<ReportItem>**](ReportItem.md) | | [optional][readonly] |
|
@@ -26,6 +27,7 @@ instance = MergeAccountingClient::BalanceSheet.new(
|
|
26
27
|
remote_id: 8937018,
|
27
28
|
remote_data: null,
|
28
29
|
name: BalanceSheet,
|
30
|
+
currency: USD,
|
29
31
|
date: null,
|
30
32
|
net_assets: 1000.0,
|
31
33
|
assets: [{"remote_id":"10010","name":"Assets","value":1000,"sub_items":null}],
|
data/docs/CashFlowStatement.md
CHANGED
@@ -8,6 +8,7 @@
|
|
8
8
|
| **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
|
9
9
|
| **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
|
10
10
|
| **name** | **String** | The cash flow statement's name. | [optional] |
|
11
|
+
| **currency** | [**CurrencyEnum**](CurrencyEnum.md) | The cash flow statement's currency. | [optional] |
|
11
12
|
| **start_period** | **Time** | The cash flow statement's start period. | [optional] |
|
12
13
|
| **end_period** | **Time** | The cash flow statement's end period. | [optional] |
|
13
14
|
| **cash_at_beginning_of_period** | **Float** | Cash and cash equivalents at the beginning of the cash flow statement's period. | [optional] |
|
@@ -28,6 +29,7 @@ instance = MergeAccountingClient::CashFlowStatement.new(
|
|
28
29
|
remote_id: 8211088,
|
29
30
|
remote_data: [{"path":"/actions","data":["Varies by platform"]}],
|
30
31
|
name: CashFlow,
|
32
|
+
currency: USD,
|
31
33
|
start_period: 2020-01-01T00:00Z,
|
32
34
|
end_period: 2020-03-31T00:00Z,
|
33
35
|
cash_at_beginning_of_period: 5000.0,
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# MergeAccountingClient::CategoryTypeEnum
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
|
8
|
+
## Example
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'merge_accounting_client'
|
12
|
+
|
13
|
+
instance = MergeAccountingClient::CategoryTypeEnum.new()
|
14
|
+
```
|
15
|
+
|
@@ -4,9 +4,9 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **end_user_email_address** | **String** | Your end user's email address. | |
|
7
|
+
| **end_user_email_address** | **String** | Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. | |
|
8
8
|
| **end_user_organization_name** | **String** | Your end user's organization. | |
|
9
|
-
| **end_user_origin_id** | **String** |
|
9
|
+
| **end_user_origin_id** | **String** | This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. | |
|
10
10
|
| **categories** | [**Array<CategoriesEnum>**](CategoriesEnum.md) | The integration categories to show in Merge Link. | |
|
11
11
|
| **integration** | **String** | The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://www.merge.dev/docs/basics/integration-metadata/. | [optional] |
|
12
12
|
| **link_expiry_mins** | **Integer** | An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. | [optional][default to 30] |
|
data/docs/IncomeStatement.md
CHANGED
@@ -8,6 +8,7 @@
|
|
8
8
|
| **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
|
9
9
|
| **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
|
10
10
|
| **name** | **String** | The income statement's name. | [optional] |
|
11
|
+
| **currency** | [**CurrencyEnum**](CurrencyEnum.md) | The income statement's currency. | [optional] |
|
11
12
|
| **start_period** | **Time** | The income statement's start period. | [optional] |
|
12
13
|
| **end_period** | **Time** | The income statement's end period. | [optional] |
|
13
14
|
| **income** | [**Array<ReportItem>**](ReportItem.md) | | [optional][readonly] |
|
@@ -29,6 +30,7 @@ instance = MergeAccountingClient::IncomeStatement.new(
|
|
29
30
|
remote_id: 1342348,
|
30
31
|
remote_data: [{"path":"/actions","data":["Varies by platform"]}],
|
31
32
|
name: IncomeStatement,
|
33
|
+
currency: USD,
|
32
34
|
start_period: null,
|
33
35
|
end_period: null,
|
34
36
|
income: [{"remote_id":"10299","name":"Total Income","value":325.0,"sub_items":[{"remote_id":"10200","name":"Landscaping Services","value":425,"sub_items":null},{"remote_id":"10201","name":"Pest Control Services","value":-100,"sub_items":null}]}],
|
data/docs/Invoice.md
CHANGED
@@ -49,7 +49,7 @@ instance = MergeAccountingClient::Invoice.new(
|
|
49
49
|
balance: 105,
|
50
50
|
remote_updated_at: 2020-04-01T00:00Z,
|
51
51
|
payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"],
|
52
|
-
line_items: [{"id":"022a2bef-57e5-4def-8ed2-7c41bd9a5ed8","remote_id":"8765432","description":"Pickleball lessons","unit_price":50.0,"quantity":2.0,"total_amount":100.0,"item":"5b3c1341-a20f-4e51-b72c-f3830a16c97b","remote_data":[{"path":"/actions","data":["Varies by platform"]}]}],
|
52
|
+
line_items: [{"id":"022a2bef-57e5-4def-8ed2-7c41bd9a5ed8","remote_id":"8765432","description":"Pickleball lessons","unit_price":50.0,"quantity":2.0,"total_amount":100.0,"item":"5b3c1341-a20f-4e51-b72c-f3830a16c97b","account":"cd0f32d4-a493-11ec-b909-0242ac120002","remote_data":[{"path":"/actions","data":["Varies by platform"]}]}],
|
53
53
|
remote_was_deleted: null
|
54
54
|
)
|
55
55
|
```
|
data/docs/JournalEntry.md
CHANGED
@@ -9,6 +9,7 @@
|
|
9
9
|
| **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
|
10
10
|
| **transaction_date** | **Time** | The journal entry's transaction date. | [optional] |
|
11
11
|
| **remote_created_at** | **Time** | When the third party's journal entry was created. | [optional] |
|
12
|
+
| **remote_updated_at** | **Time** | When the third party's journal entry was updated. | [optional] |
|
12
13
|
| **payments** | **Array<String>** | Array of `Payment` object IDs. | [optional] |
|
13
14
|
| **memo** | **String** | The journal entry's private note. | [optional] |
|
14
15
|
| **currency** | [**CurrencyEnum**](CurrencyEnum.md) | The journal's currency. | [optional] |
|
@@ -26,6 +27,7 @@ instance = MergeAccountingClient::JournalEntry.new(
|
|
26
27
|
remote_data: [{"path":"/actions","data":["Varies by platform"]}],
|
27
28
|
transaction_date: 2020-03-31T00:00Z,
|
28
29
|
remote_created_at: 2020-03-31T00:00Z,
|
30
|
+
remote_updated_at: 2020-03-31T00:00Z,
|
29
31
|
payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"],
|
30
32
|
memo: Weekly Payment,
|
31
33
|
currency: USD,
|
data/docs/JournalEntryRequest.md
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
| **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
|
8
8
|
| **transaction_date** | **Time** | The journal entry's transaction date. | [optional] |
|
9
9
|
| **remote_created_at** | **Time** | When the third party's journal entry was created. | [optional] |
|
10
|
+
| **remote_updated_at** | **Time** | When the third party's journal entry was updated. | [optional] |
|
10
11
|
| **payments** | **Array<String>** | Array of `Payment` object IDs. | [optional] |
|
11
12
|
| **memo** | **String** | The journal entry's private note. | [optional] |
|
12
13
|
| **currency** | [**CurrencyEnum**](CurrencyEnum.md) | The journal's currency. | [optional] |
|
@@ -20,6 +21,7 @@ instance = MergeAccountingClient::JournalEntryRequest.new(
|
|
20
21
|
remote_id: 088899,
|
21
22
|
transaction_date: 2020-03-31T00:00Z,
|
22
23
|
remote_created_at: 2020-03-31T00:00Z,
|
24
|
+
remote_updated_at: 2020-03-31T00:00Z,
|
23
25
|
payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"],
|
24
26
|
memo: Weekly Payment,
|
25
27
|
currency: USD
|
data/docs/RemoteDataRequest.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **path** | **String** | | |
|
8
|
-
| **data** | [**Hash<String,
|
8
|
+
| **data** | [**Hash<String, Object>**](Object.md) | | [optional] |
|
9
9
|
|
10
10
|
## Example
|
11
11
|
|
data/docs/RemoteResponse.md
CHANGED
@@ -7,8 +7,9 @@
|
|
7
7
|
| **method** | **String** | | |
|
8
8
|
| **path** | **String** | | |
|
9
9
|
| **status** | **Integer** | | |
|
10
|
-
| **response** | [**
|
10
|
+
| **response** | [**AnyType**](.md) | | |
|
11
11
|
| **response_headers** | [**Hash<String, AnyType>**](AnyType.md) | | [optional] |
|
12
|
+
| **response_type** | [**ResponseTypeEnum**](ResponseTypeEnum.md) | | [optional] |
|
12
13
|
| **headers** | [**Hash<String, AnyType>**](AnyType.md) | | [optional] |
|
13
14
|
|
14
15
|
## Example
|
@@ -22,6 +23,7 @@ instance = MergeAccountingClient::RemoteResponse.new(
|
|
22
23
|
status: 200,
|
23
24
|
response: {"scooters":[{"company":"Lime","model":"Gen 2.5"},{"company":"Bird","model":"Bird Zero"}]},
|
24
25
|
response_headers: {"X-Page-Token":"value"},
|
26
|
+
response_type: JSON,
|
25
27
|
headers: {"EXTRA-HEADER":"value","Authorization":"<redacted>"}
|
26
28
|
)
|
27
29
|
```
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# MergeAccountingClient::ResponseTypeEnum
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
|
8
|
+
## Example
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'merge_accounting_client'
|
12
|
+
|
13
|
+
instance = MergeAccountingClient::ResponseTypeEnum.new()
|
14
|
+
```
|
15
|
+
|
data/docs/SyncStatus.md
CHANGED
@@ -6,8 +6,8 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **model_name** | **String** | | |
|
8
8
|
| **model_id** | **String** | | |
|
9
|
-
| **last_sync_start** | **Time** | |
|
10
|
-
| **next_sync_start** | **Time** | |
|
9
|
+
| **last_sync_start** | **Time** | | [optional] |
|
10
|
+
| **next_sync_start** | **Time** | | [optional] |
|
11
11
|
| **status** | [**SyncStatusStatusEnum**](SyncStatusStatusEnum.md) | | |
|
12
12
|
| **is_initial_sync** | **Boolean** | | |
|
13
13
|
|
data/docs/TrackingCategory.md
CHANGED
@@ -9,6 +9,8 @@
|
|
9
9
|
| **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
|
10
10
|
| **name** | **String** | The tracking category's name. | [optional] |
|
11
11
|
| **status** | [**Status7d1Enum**](Status7d1Enum.md) | The tracking category's status. | [optional] |
|
12
|
+
| **category_type** | [**CategoryTypeEnum**](CategoryTypeEnum.md) | The tracking category’s type. | [optional] |
|
13
|
+
| **parent_category** | **String** | | [optional] |
|
12
14
|
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted by third party webhooks. | [optional][readonly] |
|
13
15
|
|
14
16
|
## Example
|
@@ -22,6 +24,8 @@ instance = MergeAccountingClient::TrackingCategory.new(
|
|
22
24
|
remote_data: [{"path":"/actions","data":["Varies by platform"]}],
|
23
25
|
name: Marketing Department,
|
24
26
|
status: ACTIVE,
|
27
|
+
category_type: DEPARTMENT,
|
28
|
+
parent_category: d25d609b-945f-4762-b55a-1c8fb220c43c,
|
25
29
|
remote_was_deleted: null
|
26
30
|
)
|
27
31
|
```
|
@@ -47,6 +47,8 @@ module MergeAccountingClient
|
|
47
47
|
# The account's number.
|
48
48
|
attr_accessor :account_number
|
49
49
|
|
50
|
+
attr_accessor :parent_account
|
51
|
+
|
50
52
|
# Indicates whether or not this object has been deleted by third party webhooks.
|
51
53
|
attr_accessor :remote_was_deleted
|
52
54
|
|
@@ -64,6 +66,7 @@ module MergeAccountingClient
|
|
64
66
|
:'current_balance' => :'current_balance',
|
65
67
|
:'currency' => :'currency',
|
66
68
|
:'account_number' => :'account_number',
|
69
|
+
:'parent_account' => :'parent_account',
|
67
70
|
:'remote_was_deleted' => :'remote_was_deleted'
|
68
71
|
}
|
69
72
|
end
|
@@ -87,6 +90,7 @@ module MergeAccountingClient
|
|
87
90
|
:'current_balance' => :'Float',
|
88
91
|
:'currency' => :'CurrencyEnum',
|
89
92
|
:'account_number' => :'String',
|
93
|
+
:'parent_account' => :'String',
|
90
94
|
:'remote_was_deleted' => :'Boolean'
|
91
95
|
}
|
92
96
|
end
|
@@ -104,6 +108,7 @@ module MergeAccountingClient
|
|
104
108
|
:'current_balance',
|
105
109
|
:'currency',
|
106
110
|
:'account_number',
|
111
|
+
:'parent_account',
|
107
112
|
])
|
108
113
|
end
|
109
114
|
|
@@ -168,6 +173,10 @@ module MergeAccountingClient
|
|
168
173
|
self.account_number = attributes[:'account_number']
|
169
174
|
end
|
170
175
|
|
176
|
+
if attributes.key?(:'parent_account')
|
177
|
+
self.parent_account = attributes[:'parent_account']
|
178
|
+
end
|
179
|
+
|
171
180
|
if attributes.key?(:'remote_was_deleted')
|
172
181
|
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
173
182
|
end
|
@@ -202,6 +211,7 @@ module MergeAccountingClient
|
|
202
211
|
current_balance == o.current_balance &&
|
203
212
|
currency == o.currency &&
|
204
213
|
account_number == o.account_number &&
|
214
|
+
parent_account == o.parent_account &&
|
205
215
|
remote_was_deleted == o.remote_was_deleted
|
206
216
|
end
|
207
217
|
|
@@ -214,7 +224,7 @@ module MergeAccountingClient
|
|
214
224
|
# Calculates hash code according to all attributes.
|
215
225
|
# @return [Integer] Hash code
|
216
226
|
def hash
|
217
|
-
[id, remote_id, remote_data, name, description, classification, type, status, current_balance, currency, account_number, remote_was_deleted].hash
|
227
|
+
[id, remote_id, remote_data, name, description, classification, type, status, current_balance, currency, account_number, parent_account, remote_was_deleted].hash
|
218
228
|
end
|
219
229
|
|
220
230
|
# Builds the object from hash
|
@@ -26,6 +26,9 @@ module MergeAccountingClient
|
|
26
26
|
# The balance sheet's name.
|
27
27
|
attr_accessor :name
|
28
28
|
|
29
|
+
# The balance sheet's currency.
|
30
|
+
attr_accessor :currency
|
31
|
+
|
29
32
|
# The balance sheet's date. The balance sheet data will reflect the company's financial position this point in time.
|
30
33
|
attr_accessor :date
|
31
34
|
|
@@ -51,6 +54,7 @@ module MergeAccountingClient
|
|
51
54
|
:'remote_id' => :'remote_id',
|
52
55
|
:'remote_data' => :'remote_data',
|
53
56
|
:'name' => :'name',
|
57
|
+
:'currency' => :'currency',
|
54
58
|
:'date' => :'date',
|
55
59
|
:'net_assets' => :'net_assets',
|
56
60
|
:'assets' => :'assets',
|
@@ -73,6 +77,7 @@ module MergeAccountingClient
|
|
73
77
|
:'remote_id' => :'String',
|
74
78
|
:'remote_data' => :'Array<RemoteData>',
|
75
79
|
:'name' => :'String',
|
80
|
+
:'currency' => :'CurrencyEnum',
|
76
81
|
:'date' => :'Time',
|
77
82
|
:'net_assets' => :'Float',
|
78
83
|
:'assets' => :'Array<ReportItem>',
|
@@ -89,6 +94,7 @@ module MergeAccountingClient
|
|
89
94
|
:'remote_id',
|
90
95
|
:'remote_data',
|
91
96
|
:'name',
|
97
|
+
:'currency',
|
92
98
|
:'date',
|
93
99
|
:'net_assets',
|
94
100
|
:'remote_generated_at',
|
@@ -128,6 +134,10 @@ module MergeAccountingClient
|
|
128
134
|
self.name = attributes[:'name']
|
129
135
|
end
|
130
136
|
|
137
|
+
if attributes.key?(:'currency')
|
138
|
+
self.currency = attributes[:'currency']
|
139
|
+
end
|
140
|
+
|
131
141
|
if attributes.key?(:'date')
|
132
142
|
self.date = attributes[:'date']
|
133
143
|
end
|
@@ -185,6 +195,7 @@ module MergeAccountingClient
|
|
185
195
|
remote_id == o.remote_id &&
|
186
196
|
remote_data == o.remote_data &&
|
187
197
|
name == o.name &&
|
198
|
+
currency == o.currency &&
|
188
199
|
date == o.date &&
|
189
200
|
net_assets == o.net_assets &&
|
190
201
|
assets == o.assets &&
|
@@ -203,7 +214,7 @@ module MergeAccountingClient
|
|
203
214
|
# Calculates hash code according to all attributes.
|
204
215
|
# @return [Integer] Hash code
|
205
216
|
def hash
|
206
|
-
[id, remote_id, remote_data, name, date, net_assets, assets, liabilities, equity, remote_generated_at, remote_was_deleted].hash
|
217
|
+
[id, remote_id, remote_data, name, currency, date, net_assets, assets, liabilities, equity, remote_generated_at, remote_was_deleted].hash
|
207
218
|
end
|
208
219
|
|
209
220
|
# Builds the object from hash
|
@@ -26,6 +26,9 @@ module MergeAccountingClient
|
|
26
26
|
# The cash flow statement's name.
|
27
27
|
attr_accessor :name
|
28
28
|
|
29
|
+
# The cash flow statement's currency.
|
30
|
+
attr_accessor :currency
|
31
|
+
|
29
32
|
# The cash flow statement's start period.
|
30
33
|
attr_accessor :start_period
|
31
34
|
|
@@ -57,6 +60,7 @@ module MergeAccountingClient
|
|
57
60
|
:'remote_id' => :'remote_id',
|
58
61
|
:'remote_data' => :'remote_data',
|
59
62
|
:'name' => :'name',
|
63
|
+
:'currency' => :'currency',
|
60
64
|
:'start_period' => :'start_period',
|
61
65
|
:'end_period' => :'end_period',
|
62
66
|
:'cash_at_beginning_of_period' => :'cash_at_beginning_of_period',
|
@@ -81,6 +85,7 @@ module MergeAccountingClient
|
|
81
85
|
:'remote_id' => :'String',
|
82
86
|
:'remote_data' => :'Array<RemoteData>',
|
83
87
|
:'name' => :'String',
|
88
|
+
:'currency' => :'CurrencyEnum',
|
84
89
|
:'start_period' => :'Time',
|
85
90
|
:'end_period' => :'Time',
|
86
91
|
:'cash_at_beginning_of_period' => :'Float',
|
@@ -99,6 +104,7 @@ module MergeAccountingClient
|
|
99
104
|
:'remote_id',
|
100
105
|
:'remote_data',
|
101
106
|
:'name',
|
107
|
+
:'currency',
|
102
108
|
:'start_period',
|
103
109
|
:'end_period',
|
104
110
|
:'cash_at_beginning_of_period',
|
@@ -140,6 +146,10 @@ module MergeAccountingClient
|
|
140
146
|
self.name = attributes[:'name']
|
141
147
|
end
|
142
148
|
|
149
|
+
if attributes.key?(:'currency')
|
150
|
+
self.currency = attributes[:'currency']
|
151
|
+
end
|
152
|
+
|
143
153
|
if attributes.key?(:'start_period')
|
144
154
|
self.start_period = attributes[:'start_period']
|
145
155
|
end
|
@@ -205,6 +215,7 @@ module MergeAccountingClient
|
|
205
215
|
remote_id == o.remote_id &&
|
206
216
|
remote_data == o.remote_data &&
|
207
217
|
name == o.name &&
|
218
|
+
currency == o.currency &&
|
208
219
|
start_period == o.start_period &&
|
209
220
|
end_period == o.end_period &&
|
210
221
|
cash_at_beginning_of_period == o.cash_at_beginning_of_period &&
|
@@ -225,7 +236,7 @@ module MergeAccountingClient
|
|
225
236
|
# Calculates hash code according to all attributes.
|
226
237
|
# @return [Integer] Hash code
|
227
238
|
def hash
|
228
|
-
[id, remote_id, remote_data, name, start_period, end_period, cash_at_beginning_of_period, cash_at_end_of_period, operating_activities, investing_activities, financing_activities, remote_generated_at, remote_was_deleted].hash
|
239
|
+
[id, remote_id, remote_data, name, currency, start_period, end_period, cash_at_beginning_of_period, cash_at_end_of_period, operating_activities, investing_activities, financing_activities, remote_generated_at, remote_was_deleted].hash
|
229
240
|
end
|
230
241
|
|
231
242
|
# Builds the object from hash
|
@@ -0,0 +1,45 @@
|
|
1
|
+
=begin
|
2
|
+
#Merge Accounting API
|
3
|
+
|
4
|
+
#The unified API for building rich integrations with multiple Accounting & Finance platforms.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: hello@merge.dev
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module MergeAccountingClient
|
17
|
+
class CategoryTypeEnum
|
18
|
+
CLASS = "CLASS".freeze
|
19
|
+
DEPARTMENT = "DEPARTMENT".freeze
|
20
|
+
|
21
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
22
|
+
|
23
|
+
attr_accessor :value
|
24
|
+
attr_accessor :raw_value
|
25
|
+
|
26
|
+
# Builds the enum from string
|
27
|
+
# @param [String] The enum value in the form of the string
|
28
|
+
# @return [String] The enum value
|
29
|
+
def build_from_hash(value)
|
30
|
+
@raw_value = value
|
31
|
+
if ["CLASS", "DEPARTMENT", ].include? value
|
32
|
+
@value = value
|
33
|
+
else
|
34
|
+
@value = MERGE_NONSTANDARD_VALUE
|
35
|
+
end
|
36
|
+
|
37
|
+
self
|
38
|
+
end
|
39
|
+
|
40
|
+
def self.build_from_hash(value)
|
41
|
+
CategoryTypeEnum.new.build_from_hash(value)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
@@ -61,7 +61,7 @@ module MergeAccountingClient
|
|
61
61
|
:'base_url_override' => :'String',
|
62
62
|
:'data' => :'String',
|
63
63
|
:'multipart_form_data' => :'Array<MultipartFormFieldRequest>',
|
64
|
-
:'headers' => :'Hash<String,
|
64
|
+
:'headers' => :'Hash<String, Object>',
|
65
65
|
:'request_format' => :'RequestFormatEnum',
|
66
66
|
:'normalize_response' => :'Boolean'
|
67
67
|
}
|
@@ -15,13 +15,13 @@ require 'time'
|
|
15
15
|
|
16
16
|
module MergeAccountingClient
|
17
17
|
class EndUserDetailsRequest
|
18
|
-
# Your end user's email address.
|
18
|
+
# Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent.
|
19
19
|
attr_accessor :end_user_email_address
|
20
20
|
|
21
21
|
# Your end user's organization.
|
22
22
|
attr_accessor :end_user_organization_name
|
23
23
|
|
24
|
-
#
|
24
|
+
# This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers.
|
25
25
|
attr_accessor :end_user_origin_id
|
26
26
|
|
27
27
|
# The integration categories to show in Merge Link.
|