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.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/EndUserDetailsRequest.md +2 -2
  4. data/docs/Invoice.md +1 -1
  5. data/docs/RemoteDataRequest.md +1 -1
  6. data/docs/TrackingCategory.md +2 -0
  7. data/lib/merge_accounting_client/api_client.rb +0 -3
  8. data/lib/merge_accounting_client/models/account_details_and_actions_status_enum.rb +1 -1
  9. data/lib/merge_accounting_client/models/account_status_enum.rb +1 -1
  10. data/lib/merge_accounting_client/models/address_type_enum.rb +1 -1
  11. data/lib/merge_accounting_client/models/categories_enum.rb +1 -1
  12. data/lib/merge_accounting_client/models/category_enum.rb +1 -1
  13. data/lib/merge_accounting_client/models/category_type_enum.rb +1 -1
  14. data/lib/merge_accounting_client/models/classification_enum.rb +1 -1
  15. data/lib/merge_accounting_client/models/country_enum.rb +1 -1
  16. data/lib/merge_accounting_client/models/credit_note_status_enum.rb +1 -1
  17. data/lib/merge_accounting_client/models/currency_enum.rb +1 -1
  18. data/lib/merge_accounting_client/models/data_passthrough_request.rb +1 -1
  19. data/lib/merge_accounting_client/models/encoding_enum.rb +1 -1
  20. data/lib/merge_accounting_client/models/end_user_details_request.rb +2 -2
  21. data/lib/merge_accounting_client/models/invoice_type_enum.rb +1 -1
  22. data/lib/merge_accounting_client/models/issue.rb +1 -1
  23. data/lib/merge_accounting_client/models/meta_response.rb +1 -1
  24. data/lib/merge_accounting_client/models/method_enum.rb +1 -1
  25. data/lib/merge_accounting_client/models/purchase_order_status_enum.rb +1 -1
  26. data/lib/merge_accounting_client/models/remote_data.rb +1 -1
  27. data/lib/merge_accounting_client/models/remote_data_request.rb +1 -1
  28. data/lib/merge_accounting_client/models/remote_response.rb +3 -6
  29. data/lib/merge_accounting_client/models/report_item.rb +1 -1
  30. data/lib/merge_accounting_client/models/request_format_enum.rb +1 -1
  31. data/lib/merge_accounting_client/models/response_type_enum.rb +1 -1
  32. data/lib/merge_accounting_client/models/state_enum.rb +1 -1
  33. data/lib/merge_accounting_client/models/status7d1_enum.rb +1 -1
  34. data/lib/merge_accounting_client/models/sync_status_status_enum.rb +1 -1
  35. data/lib/merge_accounting_client/models/tracking_category.rb +11 -1
  36. data/lib/merge_accounting_client/version.rb +1 -1
  37. data/spec/models/tracking_category_spec.rb +6 -0
  38. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f47a7fc4ceeaef965bde229d36c1ae0de94f6c3fe4345102bc383d3f6db76fd3
4
- data.tar.gz: 57d749a9f9a878e57d83aacee5a94b9f172b0fc0ef1ceb523179943d627636bb
3
+ metadata.gz: bbe7060caa4de92f702eb217eea5ca0808733b557690059d0ff8c8e0db32ae9b
4
+ data.tar.gz: 5c989fa232657f7891845df726ab8b5992f27b0cea7386afa97983002abcc7b6
5
5
  SHA512:
6
- metadata.gz: 7d8692b22156441fc77a3ef6e8fb42dfaf94411cdb3736a9e07135dfbdbb4df43ee76a427534ab58e0a5591064f21bded8735ec20179e9ed3ec91f0c784bc73c
7
- data.tar.gz: 77c17fc995ed9b7007bc37e2362f395d7f83af0c71b8eea931a279b0773dcb7c8863efbd9aaa128a71a6f1f3e274ac76a4ce42a0fe6dd2d0fb7aa23b5749cdda
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.3
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.3.gem
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.3.gem` to install the development dependencies)
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.3'
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** | Unique ID for your end user. | |
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
  ```
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **path** | **String** | | |
8
- | **data** | [**Hash<String, AnyType>**](AnyType.md) | | [optional] |
8
+ | **data** | [**Hash<String, Object>**](Object.md) | | [optional] |
9
9
 
10
10
  ## Example
11
11
 
@@ -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)
@@ -39,7 +39,7 @@ module MergeAccountingClient
39
39
  end
40
40
 
41
41
  def self.build_from_hash(value)
42
- IssueStatusEnum.new.build_from_hash(value)
42
+ AccountDetailsAndActionsStatusEnum.new.build_from_hash(value)
43
43
  end
44
44
  end
45
45
 
@@ -39,7 +39,7 @@ module MergeAccountingClient
39
39
  end
40
40
 
41
41
  def self.build_from_hash(value)
42
- IssueStatusEnum.new.build_from_hash(value)
42
+ AccountStatusEnum.new.build_from_hash(value)
43
43
  end
44
44
  end
45
45
 
@@ -38,7 +38,7 @@ module MergeAccountingClient
38
38
  end
39
39
 
40
40
  def self.build_from_hash(value)
41
- IssueStatusEnum.new.build_from_hash(value)
41
+ AddressTypeEnum.new.build_from_hash(value)
42
42
  end
43
43
  end
44
44
 
@@ -41,7 +41,7 @@ module MergeAccountingClient
41
41
  end
42
42
 
43
43
  def self.build_from_hash(value)
44
- IssueStatusEnum.new.build_from_hash(value)
44
+ CategoriesEnum.new.build_from_hash(value)
45
45
  end
46
46
  end
47
47
 
@@ -41,7 +41,7 @@ module MergeAccountingClient
41
41
  end
42
42
 
43
43
  def self.build_from_hash(value)
44
- IssueStatusEnum.new.build_from_hash(value)
44
+ CategoryEnum.new.build_from_hash(value)
45
45
  end
46
46
  end
47
47
 
@@ -38,7 +38,7 @@ module MergeAccountingClient
38
38
  end
39
39
 
40
40
  def self.build_from_hash(value)
41
- IssueStatusEnum.new.build_from_hash(value)
41
+ CategoryTypeEnum.new.build_from_hash(value)
42
42
  end
43
43
  end
44
44
 
@@ -41,7 +41,7 @@ module MergeAccountingClient
41
41
  end
42
42
 
43
43
  def self.build_from_hash(value)
44
- IssueStatusEnum.new.build_from_hash(value)
44
+ ClassificationEnum.new.build_from_hash(value)
45
45
  end
46
46
  end
47
47
 
@@ -285,7 +285,7 @@ module MergeAccountingClient
285
285
  end
286
286
 
287
287
  def self.build_from_hash(value)
288
- IssueStatusEnum.new.build_from_hash(value)
288
+ CountryEnum.new.build_from_hash(value)
289
289
  end
290
290
  end
291
291
 
@@ -39,7 +39,7 @@ module MergeAccountingClient
39
39
  end
40
40
 
41
41
  def self.build_from_hash(value)
42
- IssueStatusEnum.new.build_from_hash(value)
42
+ CreditNoteStatusEnum.new.build_from_hash(value)
43
43
  end
44
44
  end
45
45
 
@@ -342,7 +342,7 @@ module MergeAccountingClient
342
342
  end
343
343
 
344
344
  def self.build_from_hash(value)
345
- IssueStatusEnum.new.build_from_hash(value)
345
+ CurrencyEnum.new.build_from_hash(value)
346
346
  end
347
347
  end
348
348
 
@@ -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, AnyType>',
64
+ :'headers' => :'Hash<String, Object>',
65
65
  :'request_format' => :'RequestFormatEnum',
66
66
  :'normalize_response' => :'Boolean'
67
67
  }
@@ -39,7 +39,7 @@ module MergeAccountingClient
39
39
  end
40
40
 
41
41
  def self.build_from_hash(value)
42
- IssueStatusEnum.new.build_from_hash(value)
42
+ EncodingEnum.new.build_from_hash(value)
43
43
  end
44
44
  end
45
45
 
@@ -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
- # Unique ID for your end user.
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.
@@ -38,7 +38,7 @@ module MergeAccountingClient
38
38
  end
39
39
 
40
40
  def self.build_from_hash(value)
41
- IssueStatusEnum.new.build_from_hash(value)
41
+ InvoiceTypeEnum.new.build_from_hash(value)
42
42
  end
43
43
  end
44
44
 
@@ -53,7 +53,7 @@ module MergeAccountingClient
53
53
  :'id' => :'String',
54
54
  :'status' => :'IssueStatusEnum',
55
55
  :'error_description' => :'String',
56
- :'end_user' => :'Hash<String, AnyType>',
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, AnyType>',
44
+ :'request_schema' => :'Hash<String, Object>',
45
45
  :'status' => :'LinkedAccountStatus',
46
46
  :'has_conditional_params' => :'Boolean',
47
47
  :'has_required_linked_account_params' => :'Boolean'
@@ -43,7 +43,7 @@ module MergeAccountingClient
43
43
  end
44
44
 
45
45
  def self.build_from_hash(value)
46
- IssueStatusEnum.new.build_from_hash(value)
46
+ MethodEnum.new.build_from_hash(value)
47
47
  end
48
48
  end
49
49
 
@@ -41,7 +41,7 @@ module MergeAccountingClient
41
41
  end
42
42
 
43
43
  def self.build_from_hash(value)
44
- IssueStatusEnum.new.build_from_hash(value)
44
+ PurchaseOrderStatusEnum.new.build_from_hash(value)
45
45
  end
46
46
  end
47
47
 
@@ -36,7 +36,7 @@ module MergeAccountingClient
36
36
  def self.openapi_types
37
37
  {
38
38
  :'path' => :'String',
39
- :'data' => :'Hash<String, AnyType>'
39
+ :'data' => :'Hash<String, Object>'
40
40
  }
41
41
  end
42
42
 
@@ -36,7 +36,7 @@ module MergeAccountingClient
36
36
  def self.openapi_types
37
37
  {
38
38
  :'path' => :'String',
39
- :'data' => :'Hash<String, AnyType>'
39
+ :'data' => :'Hash<String, Object>'
40
40
  }
41
41
  end
42
42
 
@@ -54,10 +54,10 @@ module MergeAccountingClient
54
54
  :'method' => :'String',
55
55
  :'path' => :'String',
56
56
  :'status' => :'Integer',
57
- :'response' => :'AnyType',
58
- :'response_headers' => :'Hash<String, AnyType>',
57
+ :'response' => :'Object',
58
+ :'response_headers' => :'Hash<String, Object>',
59
59
  :'response_type' => :'ResponseTypeEnum',
60
- :'headers' => :'Hash<String, AnyType>'
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)
@@ -48,7 +48,7 @@ module MergeAccountingClient
48
48
  :'remote_id' => :'String',
49
49
  :'name' => :'String',
50
50
  :'value' => :'Float',
51
- :'sub_items' => :'Hash<String, AnyType>'
51
+ :'sub_items' => :'Hash<String, Object>'
52
52
  }
53
53
  end
54
54
 
@@ -39,7 +39,7 @@ module MergeAccountingClient
39
39
  end
40
40
 
41
41
  def self.build_from_hash(value)
42
- IssueStatusEnum.new.build_from_hash(value)
42
+ RequestFormatEnum.new.build_from_hash(value)
43
43
  end
44
44
  end
45
45
 
@@ -38,7 +38,7 @@ module MergeAccountingClient
38
38
  end
39
39
 
40
40
  def self.build_from_hash(value)
41
- IssueStatusEnum.new.build_from_hash(value)
41
+ ResponseTypeEnum.new.build_from_hash(value)
42
42
  end
43
43
  end
44
44
 
@@ -95,7 +95,7 @@ module MergeAccountingClient
95
95
  end
96
96
 
97
97
  def self.build_from_hash(value)
98
- IssueStatusEnum.new.build_from_hash(value)
98
+ StateEnum.new.build_from_hash(value)
99
99
  end
100
100
  end
101
101
 
@@ -38,7 +38,7 @@ module MergeAccountingClient
38
38
  end
39
39
 
40
40
  def self.build_from_hash(value)
41
- IssueStatusEnum.new.build_from_hash(value)
41
+ Status7d1Enum.new.build_from_hash(value)
42
42
  end
43
43
  end
44
44
 
@@ -41,7 +41,7 @@ module MergeAccountingClient
41
41
  end
42
42
 
43
43
  def self.build_from_hash(value)
44
- IssueStatusEnum.new.build_from_hash(value)
44
+ SyncStatusStatusEnum.new.build_from_hash(value)
45
45
  end
46
46
  end
47
47
 
@@ -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
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.1.1
11
11
  =end
12
12
 
13
13
  module MergeAccountingClient
14
- VERSION = '1.0.3'
14
+ VERSION = '1.0.4'
15
15
  end
@@ -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.3
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-09-26 00:00:00.000000000 Z
11
+ date: 2022-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus