merge_accounting_client 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/IncomeStatement.md +2 -0
- data/docs/JournalEntry.md +2 -0
- data/docs/JournalEntryRequest.md +2 -0
- data/docs/RemoteResponse.md +3 -1
- data/docs/ResponseTypeEnum.md +15 -0
- data/docs/SyncStatus.md +2 -2
- data/docs/TrackingCategory.md +2 -0
- data/lib/merge_accounting_client/api_client.rb +3 -0
- data/lib/merge_accounting_client/models/account.rb +11 -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/category_type_enum.rb +45 -0
- data/lib/merge_accounting_client/models/income_statement.rb +12 -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/remote_data.rb +1 -1
- data/lib/merge_accounting_client/models/remote_response.rb +17 -11
- data/lib/merge_accounting_client/models/response_type_enum.rb +45 -0
- data/lib/merge_accounting_client/models/sync_status.rb +0 -10
- data/lib/merge_accounting_client/models/tracking_category.rb +12 -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 +6 -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: f47a7fc4ceeaef965bde229d36c1ae0de94f6c3fe4345102bc383d3f6db76fd3
|
4
|
+
data.tar.gz: 57d749a9f9a878e57d83aacee5a94b9f172b0fc0ef1ceb523179943d627636bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d8692b22156441fc77a3ef6e8fb42dfaf94411cdb3736a9e07135dfbdbb4df43ee76a427534ab58e0a5591064f21bded8735ec20179e9ed3ec91f0c784bc73c
|
7
|
+
data.tar.gz: 77c17fc995ed9b7007bc37e2362f395d7f83af0c71b8eea931a279b0773dcb7c8863efbd9aaa128a71a6f1f3e274ac76a4ce42a0fe6dd2d0fb7aa23b5749cdda
|
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.3
|
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.3.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.3.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.3'
|
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
|
+
|
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/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/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,7 @@
|
|
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] |
|
12
13
|
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted by third party webhooks. | [optional][readonly] |
|
13
14
|
|
14
15
|
## Example
|
@@ -22,6 +23,7 @@ instance = MergeAccountingClient::TrackingCategory.new(
|
|
22
23
|
remote_data: [{"path":"/actions","data":["Varies by platform"]}],
|
23
24
|
name: Marketing Department,
|
24
25
|
status: ACTIVE,
|
26
|
+
category_type: DEPARTMENT,
|
25
27
|
remote_was_deleted: null
|
26
28
|
)
|
27
29
|
```
|
@@ -274,6 +274,9 @@ module MergeAccountingClient
|
|
274
274
|
{}.tap do |hash|
|
275
275
|
data.each { |k, v| hash[k] = convert_to_type(v, sub_type) }
|
276
276
|
end
|
277
|
+
when 'AnyType'
|
278
|
+
# Return AnyType response as Object directly
|
279
|
+
data
|
277
280
|
else
|
278
281
|
# models (e.g. Pet) or oneOf
|
279
282
|
klass = MergeAccountingClient.const_get(return_type)
|
@@ -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
|
+
IssueStatusEnum.new.build_from_hash(value)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
@@ -26,6 +26,9 @@ module MergeAccountingClient
|
|
26
26
|
# The income statement's name.
|
27
27
|
attr_accessor :name
|
28
28
|
|
29
|
+
# The income statement's currency.
|
30
|
+
attr_accessor :currency
|
31
|
+
|
29
32
|
# The income statement's start period.
|
30
33
|
attr_accessor :start_period
|
31
34
|
|
@@ -59,6 +62,7 @@ module MergeAccountingClient
|
|
59
62
|
:'remote_id' => :'remote_id',
|
60
63
|
:'remote_data' => :'remote_data',
|
61
64
|
:'name' => :'name',
|
65
|
+
:'currency' => :'currency',
|
62
66
|
:'start_period' => :'start_period',
|
63
67
|
:'end_period' => :'end_period',
|
64
68
|
:'income' => :'income',
|
@@ -84,6 +88,7 @@ module MergeAccountingClient
|
|
84
88
|
:'remote_id' => :'String',
|
85
89
|
:'remote_data' => :'Array<RemoteData>',
|
86
90
|
:'name' => :'String',
|
91
|
+
:'currency' => :'CurrencyEnum',
|
87
92
|
:'start_period' => :'Time',
|
88
93
|
:'end_period' => :'Time',
|
89
94
|
:'income' => :'Array<ReportItem>',
|
@@ -103,6 +108,7 @@ module MergeAccountingClient
|
|
103
108
|
:'remote_id',
|
104
109
|
:'remote_data',
|
105
110
|
:'name',
|
111
|
+
:'currency',
|
106
112
|
:'start_period',
|
107
113
|
:'end_period',
|
108
114
|
:'gross_profit',
|
@@ -144,6 +150,10 @@ module MergeAccountingClient
|
|
144
150
|
self.name = attributes[:'name']
|
145
151
|
end
|
146
152
|
|
153
|
+
if attributes.key?(:'currency')
|
154
|
+
self.currency = attributes[:'currency']
|
155
|
+
end
|
156
|
+
|
147
157
|
if attributes.key?(:'start_period')
|
148
158
|
self.start_period = attributes[:'start_period']
|
149
159
|
end
|
@@ -215,6 +225,7 @@ module MergeAccountingClient
|
|
215
225
|
remote_id == o.remote_id &&
|
216
226
|
remote_data == o.remote_data &&
|
217
227
|
name == o.name &&
|
228
|
+
currency == o.currency &&
|
218
229
|
start_period == o.start_period &&
|
219
230
|
end_period == o.end_period &&
|
220
231
|
income == o.income &&
|
@@ -236,7 +247,7 @@ module MergeAccountingClient
|
|
236
247
|
# Calculates hash code according to all attributes.
|
237
248
|
# @return [Integer] Hash code
|
238
249
|
def hash
|
239
|
-
[id, remote_id, remote_data, name, start_period, end_period, income, cost_of_sales, gross_profit, operating_expenses, net_operating_income, non_operating_expenses, net_income, remote_was_deleted].hash
|
250
|
+
[id, remote_id, remote_data, name, currency, start_period, end_period, income, cost_of_sales, gross_profit, operating_expenses, net_operating_income, non_operating_expenses, net_income, remote_was_deleted].hash
|
240
251
|
end
|
241
252
|
|
242
253
|
# Builds the object from hash
|
@@ -29,6 +29,9 @@ module MergeAccountingClient
|
|
29
29
|
# When the third party's journal entry was created.
|
30
30
|
attr_accessor :remote_created_at
|
31
31
|
|
32
|
+
# When the third party's journal entry was updated.
|
33
|
+
attr_accessor :remote_updated_at
|
34
|
+
|
32
35
|
# Array of `Payment` object IDs.
|
33
36
|
attr_accessor :payments
|
34
37
|
|
@@ -50,6 +53,7 @@ module MergeAccountingClient
|
|
50
53
|
:'remote_data' => :'remote_data',
|
51
54
|
:'transaction_date' => :'transaction_date',
|
52
55
|
:'remote_created_at' => :'remote_created_at',
|
56
|
+
:'remote_updated_at' => :'remote_updated_at',
|
53
57
|
:'payments' => :'payments',
|
54
58
|
:'memo' => :'memo',
|
55
59
|
:'currency' => :'currency',
|
@@ -71,6 +75,7 @@ module MergeAccountingClient
|
|
71
75
|
:'remote_data' => :'Array<RemoteData>',
|
72
76
|
:'transaction_date' => :'Time',
|
73
77
|
:'remote_created_at' => :'Time',
|
78
|
+
:'remote_updated_at' => :'Time',
|
74
79
|
:'payments' => :'Array<String>',
|
75
80
|
:'memo' => :'String',
|
76
81
|
:'currency' => :'CurrencyEnum',
|
@@ -86,6 +91,7 @@ module MergeAccountingClient
|
|
86
91
|
:'remote_data',
|
87
92
|
:'transaction_date',
|
88
93
|
:'remote_created_at',
|
94
|
+
:'remote_updated_at',
|
89
95
|
:'memo',
|
90
96
|
:'currency',
|
91
97
|
])
|
@@ -128,6 +134,10 @@ module MergeAccountingClient
|
|
128
134
|
self.remote_created_at = attributes[:'remote_created_at']
|
129
135
|
end
|
130
136
|
|
137
|
+
if attributes.key?(:'remote_updated_at')
|
138
|
+
self.remote_updated_at = attributes[:'remote_updated_at']
|
139
|
+
end
|
140
|
+
|
131
141
|
if attributes.key?(:'payments')
|
132
142
|
if (value = attributes[:'payments']).is_a?(Array)
|
133
143
|
self.payments = value
|
@@ -176,6 +186,7 @@ module MergeAccountingClient
|
|
176
186
|
remote_data == o.remote_data &&
|
177
187
|
transaction_date == o.transaction_date &&
|
178
188
|
remote_created_at == o.remote_created_at &&
|
189
|
+
remote_updated_at == o.remote_updated_at &&
|
179
190
|
payments == o.payments &&
|
180
191
|
memo == o.memo &&
|
181
192
|
currency == o.currency &&
|
@@ -192,7 +203,7 @@ module MergeAccountingClient
|
|
192
203
|
# Calculates hash code according to all attributes.
|
193
204
|
# @return [Integer] Hash code
|
194
205
|
def hash
|
195
|
-
[id, remote_id, remote_data, transaction_date, remote_created_at, payments, memo, currency, lines, remote_was_deleted].hash
|
206
|
+
[id, remote_id, remote_data, transaction_date, remote_created_at, remote_updated_at, payments, memo, currency, lines, remote_was_deleted].hash
|
196
207
|
end
|
197
208
|
|
198
209
|
# Builds the object from hash
|
@@ -25,6 +25,9 @@ module MergeAccountingClient
|
|
25
25
|
# When the third party's journal entry was created.
|
26
26
|
attr_accessor :remote_created_at
|
27
27
|
|
28
|
+
# When the third party's journal entry was updated.
|
29
|
+
attr_accessor :remote_updated_at
|
30
|
+
|
28
31
|
# Array of `Payment` object IDs.
|
29
32
|
attr_accessor :payments
|
30
33
|
|
@@ -40,6 +43,7 @@ module MergeAccountingClient
|
|
40
43
|
:'remote_id' => :'remote_id',
|
41
44
|
:'transaction_date' => :'transaction_date',
|
42
45
|
:'remote_created_at' => :'remote_created_at',
|
46
|
+
:'remote_updated_at' => :'remote_updated_at',
|
43
47
|
:'payments' => :'payments',
|
44
48
|
:'memo' => :'memo',
|
45
49
|
:'currency' => :'currency'
|
@@ -57,6 +61,7 @@ module MergeAccountingClient
|
|
57
61
|
:'remote_id' => :'String',
|
58
62
|
:'transaction_date' => :'Time',
|
59
63
|
:'remote_created_at' => :'Time',
|
64
|
+
:'remote_updated_at' => :'Time',
|
60
65
|
:'payments' => :'Array<String>',
|
61
66
|
:'memo' => :'String',
|
62
67
|
:'currency' => :'CurrencyEnum'
|
@@ -69,6 +74,7 @@ module MergeAccountingClient
|
|
69
74
|
:'remote_id',
|
70
75
|
:'transaction_date',
|
71
76
|
:'remote_created_at',
|
77
|
+
:'remote_updated_at',
|
72
78
|
:'memo',
|
73
79
|
:'currency'
|
74
80
|
])
|
@@ -101,6 +107,10 @@ module MergeAccountingClient
|
|
101
107
|
self.remote_created_at = attributes[:'remote_created_at']
|
102
108
|
end
|
103
109
|
|
110
|
+
if attributes.key?(:'remote_updated_at')
|
111
|
+
self.remote_updated_at = attributes[:'remote_updated_at']
|
112
|
+
end
|
113
|
+
|
104
114
|
if attributes.key?(:'payments')
|
105
115
|
if (value = attributes[:'payments']).is_a?(Array)
|
106
116
|
self.payments = value
|
@@ -137,6 +147,7 @@ module MergeAccountingClient
|
|
137
147
|
remote_id == o.remote_id &&
|
138
148
|
transaction_date == o.transaction_date &&
|
139
149
|
remote_created_at == o.remote_created_at &&
|
150
|
+
remote_updated_at == o.remote_updated_at &&
|
140
151
|
payments == o.payments &&
|
141
152
|
memo == o.memo &&
|
142
153
|
currency == o.currency
|
@@ -151,7 +162,7 @@ module MergeAccountingClient
|
|
151
162
|
# Calculates hash code according to all attributes.
|
152
163
|
# @return [Integer] Hash code
|
153
164
|
def hash
|
154
|
-
[remote_id, transaction_date, remote_created_at, payments, memo, currency].hash
|
165
|
+
[remote_id, transaction_date, remote_created_at, remote_updated_at, payments, memo, currency].hash
|
155
166
|
end
|
156
167
|
|
157
168
|
# Builds the object from hash
|