merge_accounting_client 1.0.3 → 1.0.4
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 +4 -4
- data/docs/EndUserDetailsRequest.md +2 -2
- data/docs/Invoice.md +1 -1
- data/docs/RemoteDataRequest.md +1 -1
- data/docs/TrackingCategory.md +2 -0
- data/lib/merge_accounting_client/api_client.rb +0 -3
- 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/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 +1 -1
- 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/invoice_type_enum.rb +1 -1
- data/lib/merge_accounting_client/models/issue.rb +1 -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.rb +1 -1
- data/lib/merge_accounting_client/models/remote_data_request.rb +1 -1
- data/lib/merge_accounting_client/models/remote_response.rb +3 -6
- 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 +1 -1
- 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_status_enum.rb +1 -1
- data/lib/merge_accounting_client/models/tracking_category.rb +11 -1
- data/lib/merge_accounting_client/version.rb +1 -1
- data/spec/models/tracking_category_spec.rb +6 -0
- metadata +2 -2
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
|
|
@@ -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/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/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/TrackingCategory.md
CHANGED
@@ -10,6 +10,7 @@
|
|
10
10
|
| **name** | **String** | The tracking category's name. | [optional] |
|
11
11
|
| **status** | [**Status7d1Enum**](Status7d1Enum.md) | The tracking category's status. | [optional] |
|
12
12
|
| **category_type** | [**CategoryTypeEnum**](CategoryTypeEnum.md) | The tracking category’s type. | [optional] |
|
13
|
+
| **parent_category** | **String** | | [optional] |
|
13
14
|
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted by third party webhooks. | [optional][readonly] |
|
14
15
|
|
15
16
|
## Example
|
@@ -24,6 +25,7 @@ instance = MergeAccountingClient::TrackingCategory.new(
|
|
24
25
|
name: Marketing Department,
|
25
26
|
status: ACTIVE,
|
26
27
|
category_type: DEPARTMENT,
|
28
|
+
parent_category: d25d609b-945f-4762-b55a-1c8fb220c43c,
|
27
29
|
remote_was_deleted: null
|
28
30
|
)
|
29
31
|
```
|
@@ -274,9 +274,6 @@ 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
|
280
277
|
else
|
281
278
|
# models (e.g. Pet) or oneOf
|
282
279
|
klass = MergeAccountingClient.const_get(return_type)
|
@@ -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.
|
@@ -53,7 +53,7 @@ module MergeAccountingClient
|
|
53
53
|
:'id' => :'String',
|
54
54
|
:'status' => :'IssueStatusEnum',
|
55
55
|
:'error_description' => :'String',
|
56
|
-
:'end_user' => :'Hash<String,
|
56
|
+
:'end_user' => :'Hash<String, Object>',
|
57
57
|
:'first_incident_time' => :'Time',
|
58
58
|
:'last_incident_time' => :'Time',
|
59
59
|
:'is_muted' => :'Boolean'
|
@@ -41,7 +41,7 @@ module MergeAccountingClient
|
|
41
41
|
# Attribute type mapping.
|
42
42
|
def self.openapi_types
|
43
43
|
{
|
44
|
-
:'request_schema' => :'Hash<String,
|
44
|
+
:'request_schema' => :'Hash<String, Object>',
|
45
45
|
:'status' => :'LinkedAccountStatus',
|
46
46
|
:'has_conditional_params' => :'Boolean',
|
47
47
|
:'has_required_linked_account_params' => :'Boolean'
|
@@ -54,10 +54,10 @@ module MergeAccountingClient
|
|
54
54
|
:'method' => :'String',
|
55
55
|
:'path' => :'String',
|
56
56
|
:'status' => :'Integer',
|
57
|
-
:'response' => :'
|
58
|
-
:'response_headers' => :'Hash<String,
|
57
|
+
:'response' => :'Object',
|
58
|
+
:'response_headers' => :'Hash<String, Object>',
|
59
59
|
:'response_type' => :'ResponseTypeEnum',
|
60
|
-
:'headers' => :'Hash<String,
|
60
|
+
:'headers' => :'Hash<String, Object>'
|
61
61
|
}
|
62
62
|
end
|
63
63
|
|
@@ -235,9 +235,6 @@ module MergeAccountingClient
|
|
235
235
|
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
236
236
|
end
|
237
237
|
end
|
238
|
-
when :AnyType
|
239
|
-
# Return AnyType response as Object directly
|
240
|
-
value
|
241
238
|
else # model
|
242
239
|
# models (e.g. Pet) or oneOf
|
243
240
|
klass = MergeAccountingClient.const_get(type)
|
@@ -32,6 +32,8 @@ module MergeAccountingClient
|
|
32
32
|
# The tracking category’s type.
|
33
33
|
attr_accessor :category_type
|
34
34
|
|
35
|
+
attr_accessor :parent_category
|
36
|
+
|
35
37
|
# Indicates whether or not this object has been deleted by third party webhooks.
|
36
38
|
attr_accessor :remote_was_deleted
|
37
39
|
|
@@ -44,6 +46,7 @@ module MergeAccountingClient
|
|
44
46
|
:'name' => :'name',
|
45
47
|
:'status' => :'status',
|
46
48
|
:'category_type' => :'category_type',
|
49
|
+
:'parent_category' => :'parent_category',
|
47
50
|
:'remote_was_deleted' => :'remote_was_deleted'
|
48
51
|
}
|
49
52
|
end
|
@@ -62,6 +65,7 @@ module MergeAccountingClient
|
|
62
65
|
:'name' => :'String',
|
63
66
|
:'status' => :'Status7d1Enum',
|
64
67
|
:'category_type' => :'CategoryTypeEnum',
|
68
|
+
:'parent_category' => :'String',
|
65
69
|
:'remote_was_deleted' => :'Boolean'
|
66
70
|
}
|
67
71
|
end
|
@@ -74,6 +78,7 @@ module MergeAccountingClient
|
|
74
78
|
:'name',
|
75
79
|
:'status',
|
76
80
|
:'category_type',
|
81
|
+
:'parent_category',
|
77
82
|
])
|
78
83
|
end
|
79
84
|
|
@@ -118,6 +123,10 @@ module MergeAccountingClient
|
|
118
123
|
self.category_type = attributes[:'category_type']
|
119
124
|
end
|
120
125
|
|
126
|
+
if attributes.key?(:'parent_category')
|
127
|
+
self.parent_category = attributes[:'parent_category']
|
128
|
+
end
|
129
|
+
|
121
130
|
if attributes.key?(:'remote_was_deleted')
|
122
131
|
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
123
132
|
end
|
@@ -147,6 +156,7 @@ module MergeAccountingClient
|
|
147
156
|
name == o.name &&
|
148
157
|
status == o.status &&
|
149
158
|
category_type == o.category_type &&
|
159
|
+
parent_category == o.parent_category &&
|
150
160
|
remote_was_deleted == o.remote_was_deleted
|
151
161
|
end
|
152
162
|
|
@@ -159,7 +169,7 @@ module MergeAccountingClient
|
|
159
169
|
# Calculates hash code according to all attributes.
|
160
170
|
# @return [Integer] Hash code
|
161
171
|
def hash
|
162
|
-
[id, remote_id, remote_data, name, status, category_type, remote_was_deleted].hash
|
172
|
+
[id, remote_id, remote_data, name, status, category_type, parent_category, remote_was_deleted].hash
|
163
173
|
end
|
164
174
|
|
165
175
|
# Builds the object from hash
|
@@ -61,6 +61,12 @@ describe MergeAccountingClient::TrackingCategory do
|
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
64
|
+
describe 'test attribute "parent_category"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
64
70
|
describe 'test attribute "remote_was_deleted"' do
|
65
71
|
it 'should work' do
|
66
72
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: merge_accounting_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|