merge_accounting_client 1.0.9 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (182) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +18 -4
  3. data/docs/Account.md +3 -1
  4. data/docs/AccountIntegration.md +4 -2
  5. data/docs/AccountingAttachment.md +3 -1
  6. data/docs/AccountingPeriod.md +30 -0
  7. data/docs/AccountingPeriodStatusEnum.md +15 -0
  8. data/docs/AccountingPeriodsApi.md +167 -0
  9. data/docs/AccountingPhoneNumber.md +2 -0
  10. data/docs/Address.md +2 -0
  11. data/docs/AddressRequest.md +34 -0
  12. data/docs/AuditLogEvent.md +32 -0
  13. data/docs/AuditTrailApi.md +91 -0
  14. data/docs/BalanceSheet.md +3 -1
  15. data/docs/CashFlowStatement.md +3 -1
  16. data/docs/CompanyInfo.md +3 -1
  17. data/docs/Contact.md +4 -2
  18. data/docs/ContactRequest.md +1 -1
  19. data/docs/ContactsApi.md +4 -0
  20. data/docs/CreditNote.md +8 -2
  21. data/docs/CreditNoteLineItem.md +6 -0
  22. data/docs/CreditNotesApi.md +2 -2
  23. data/docs/EndUserDetailsRequest.md +1 -1
  24. data/docs/EventTypeEnum.md +15 -0
  25. data/docs/Expense.md +10 -2
  26. data/docs/ExpenseLine.md +8 -0
  27. data/docs/ExpenseLineRequest.md +2 -0
  28. data/docs/ExpenseRequest.md +7 -1
  29. data/docs/IncomeStatement.md +3 -1
  30. data/docs/Invoice.md +11 -1
  31. data/docs/InvoiceLineItem.md +5 -1
  32. data/docs/InvoiceRequest.md +4 -0
  33. data/docs/InvoiceStatusEnum.md +15 -0
  34. data/docs/InvoicesApi.md +2 -2
  35. data/docs/Issue.md +1 -1
  36. data/docs/Item.md +3 -1
  37. data/docs/JournalEntriesApi.md +2 -2
  38. data/docs/JournalEntry.md +9 -1
  39. data/docs/JournalEntryRequest.md +4 -0
  40. data/docs/JournalLine.md +10 -0
  41. data/docs/JournalLineRequest.md +4 -0
  42. data/docs/LinkedAccountsApi.md +2 -2
  43. data/docs/MetaResponse.md +2 -2
  44. data/docs/PaginatedAccountingPeriodList.md +22 -0
  45. data/docs/PaginatedAuditLogEventList.md +22 -0
  46. data/docs/Payment.md +7 -1
  47. data/docs/PaymentLineItem.md +32 -0
  48. data/docs/PaymentLineItemRequest.md +30 -0
  49. data/docs/PaymentRequest.md +4 -0
  50. data/docs/PurchaseOrder.md +9 -3
  51. data/docs/PurchaseOrderLineItem.md +6 -0
  52. data/docs/PurchaseOrderRequest.md +2 -0
  53. data/docs/PurchaseOrdersApi.md +2 -2
  54. data/docs/ReportItem.md +2 -0
  55. data/docs/RoleEnum.md +15 -0
  56. data/docs/SyncStatusApi.md +1 -1
  57. data/docs/TaxRate.md +3 -1
  58. data/docs/TrackingCategory.md +3 -1
  59. data/docs/Transaction.md +7 -3
  60. data/docs/TransactionLineItem.md +6 -0
  61. data/docs/VendorCredit.md +6 -2
  62. data/docs/VendorCreditLine.md +6 -0
  63. data/docs/VendorCreditsApi.md +2 -2
  64. data/lib/merge_accounting_client/api/accounting_periods_api.rb +167 -0
  65. data/lib/merge_accounting_client/api/audit_trail_api.rb +95 -0
  66. data/lib/merge_accounting_client/api/contacts_api.rb +6 -0
  67. data/lib/merge_accounting_client/api/credit_notes_api.rb +2 -2
  68. data/lib/merge_accounting_client/api/expenses_api.rb +2 -2
  69. data/lib/merge_accounting_client/api/invoices_api.rb +2 -2
  70. data/lib/merge_accounting_client/api/journal_entries_api.rb +2 -2
  71. data/lib/merge_accounting_client/api/linked_accounts_api.rb +3 -3
  72. data/lib/merge_accounting_client/api/payments_api.rb +2 -2
  73. data/lib/merge_accounting_client/api/purchase_orders_api.rb +2 -2
  74. data/lib/merge_accounting_client/api/sync_status_api.rb +2 -2
  75. data/lib/merge_accounting_client/api/transactions_api.rb +2 -2
  76. data/lib/merge_accounting_client/api/vendor_credits_api.rb +2 -2
  77. data/lib/merge_accounting_client/configuration.rb +4 -0
  78. data/lib/merge_accounting_client/models/account.rb +12 -3
  79. data/lib/merge_accounting_client/models/account_integration.rb +15 -4
  80. data/lib/merge_accounting_client/models/account_request.rb +1 -1
  81. data/lib/merge_accounting_client/models/accounting_attachment.rb +11 -2
  82. data/lib/merge_accounting_client/models/accounting_period.rb +296 -0
  83. data/lib/merge_accounting_client/models/accounting_period_status_enum.rb +45 -0
  84. data/lib/merge_accounting_client/models/accounting_phone_number.rb +10 -1
  85. data/lib/merge_accounting_client/models/address.rb +10 -1
  86. data/lib/merge_accounting_client/models/address_request.rb +311 -0
  87. data/lib/merge_accounting_client/models/audit_log_event.rb +356 -0
  88. data/lib/merge_accounting_client/models/balance_sheet.rb +11 -2
  89. data/lib/merge_accounting_client/models/cash_flow_statement.rb +11 -2
  90. data/lib/merge_accounting_client/models/company_info.rb +12 -3
  91. data/lib/merge_accounting_client/models/contact.rb +13 -4
  92. data/lib/merge_accounting_client/models/contact_request.rb +2 -2
  93. data/lib/merge_accounting_client/models/credit_note.rb +35 -3
  94. data/lib/merge_accounting_client/models/credit_note_line_item.rb +29 -1
  95. data/lib/merge_accounting_client/models/end_user_details_request.rb +1 -1
  96. data/lib/merge_accounting_client/models/event_type_enum.rb +67 -0
  97. data/lib/merge_accounting_client/models/expense.rb +45 -3
  98. data/lib/merge_accounting_client/models/expense_line.rb +40 -1
  99. data/lib/merge_accounting_client/models/expense_line_request.rb +12 -1
  100. data/lib/merge_accounting_client/models/expense_request.rb +35 -2
  101. data/lib/merge_accounting_client/models/income_statement.rb +11 -2
  102. data/lib/merge_accounting_client/models/invoice.rb +55 -1
  103. data/lib/merge_accounting_client/models/invoice_line_item.rb +20 -1
  104. data/lib/merge_accounting_client/models/invoice_request.rb +23 -1
  105. data/lib/merge_accounting_client/models/invoice_status_enum.rb +49 -0
  106. data/lib/merge_accounting_client/models/item.rb +11 -2
  107. data/lib/merge_accounting_client/models/journal_entry.rb +60 -2
  108. data/lib/merge_accounting_client/models/journal_entry_request.rb +38 -1
  109. data/lib/merge_accounting_client/models/journal_line.rb +51 -1
  110. data/lib/merge_accounting_client/models/journal_line_request.rb +23 -1
  111. data/lib/merge_accounting_client/models/paginated_accounting_period_list.rb +240 -0
  112. data/lib/merge_accounting_client/models/paginated_audit_log_event_list.rb +240 -0
  113. data/lib/merge_accounting_client/models/payment.rb +34 -2
  114. data/lib/merge_accounting_client/models/payment_line_item.rb +308 -0
  115. data/lib/merge_accounting_client/models/payment_line_item_request.rb +319 -0
  116. data/lib/merge_accounting_client/models/payment_request.rb +24 -1
  117. data/lib/merge_accounting_client/models/purchase_order.rb +49 -3
  118. data/lib/merge_accounting_client/models/purchase_order_line_item.rb +29 -1
  119. data/lib/merge_accounting_client/models/purchase_order_request.rb +12 -1
  120. data/lib/merge_accounting_client/models/report_item.rb +10 -1
  121. data/lib/merge_accounting_client/models/role_enum.rb +49 -0
  122. data/lib/merge_accounting_client/models/tax_rate.rb +11 -2
  123. data/lib/merge_accounting_client/models/tracking_category.rb +12 -3
  124. data/lib/merge_accounting_client/models/transaction.rb +23 -3
  125. data/lib/merge_accounting_client/models/transaction_line_item.rb +29 -1
  126. data/lib/merge_accounting_client/models/vendor_credit.rb +23 -3
  127. data/lib/merge_accounting_client/models/vendor_credit_line.rb +29 -1
  128. data/lib/merge_accounting_client/version.rb +1 -1
  129. data/lib/merge_accounting_client.rb +13 -9
  130. data/spec/api/accounting_periods_api_spec.rb +63 -0
  131. data/spec/api/audit_trail_api_spec.rb +51 -0
  132. data/spec/api/contacts_api_spec.rb +2 -0
  133. data/spec/api/linked_accounts_api_spec.rb +1 -1
  134. data/spec/api/sync_status_api_spec.rb +1 -1
  135. data/spec/models/account_integration_spec.rb +6 -0
  136. data/spec/models/account_spec.rb +6 -0
  137. data/spec/models/accounting_attachment_spec.rb +6 -0
  138. data/spec/models/accounting_period_spec.rb +70 -0
  139. data/spec/models/accounting_period_status_enum_spec.rb +28 -0
  140. data/spec/models/accounting_phone_number_spec.rb +6 -0
  141. data/spec/models/address_request_spec.rb +82 -0
  142. data/spec/models/address_spec.rb +6 -0
  143. data/spec/models/audit_log_event_spec.rb +76 -0
  144. data/spec/models/balance_sheet_spec.rb +6 -0
  145. data/spec/models/cash_flow_statement_spec.rb +6 -0
  146. data/spec/models/company_info_spec.rb +6 -0
  147. data/spec/models/contact_spec.rb +6 -0
  148. data/spec/models/credit_note_line_item_spec.rb +18 -0
  149. data/spec/models/credit_note_spec.rb +18 -0
  150. data/spec/models/event_type_enum_spec.rb +28 -0
  151. data/spec/models/expense_line_request_spec.rb +6 -0
  152. data/spec/models/expense_line_spec.rb +24 -0
  153. data/spec/models/expense_request_spec.rb +18 -0
  154. data/spec/models/expense_spec.rb +24 -0
  155. data/spec/models/income_statement_spec.rb +6 -0
  156. data/spec/models/invoice_line_item_spec.rb +12 -0
  157. data/spec/models/invoice_request_spec.rb +12 -0
  158. data/spec/models/invoice_spec.rb +30 -0
  159. data/spec/models/invoice_status_enum_spec.rb +28 -0
  160. data/spec/models/item_spec.rb +6 -0
  161. data/spec/models/journal_entry_request_spec.rb +12 -0
  162. data/spec/models/journal_entry_spec.rb +24 -0
  163. data/spec/models/journal_line_request_spec.rb +12 -0
  164. data/spec/models/journal_line_spec.rb +30 -0
  165. data/spec/models/paginated_accounting_period_list_spec.rb +46 -0
  166. data/spec/models/paginated_audit_log_event_list_spec.rb +46 -0
  167. data/spec/models/payment_line_item_request_spec.rb +70 -0
  168. data/spec/models/payment_line_item_spec.rb +76 -0
  169. data/spec/models/payment_request_spec.rb +12 -0
  170. data/spec/models/payment_spec.rb +18 -0
  171. data/spec/models/purchase_order_line_item_spec.rb +18 -0
  172. data/spec/models/purchase_order_request_spec.rb +6 -0
  173. data/spec/models/purchase_order_spec.rb +18 -0
  174. data/spec/models/report_item_spec.rb +6 -0
  175. data/spec/models/role_enum_spec.rb +28 -0
  176. data/spec/models/tax_rate_spec.rb +6 -0
  177. data/spec/models/tracking_category_spec.rb +6 -0
  178. data/spec/models/transaction_line_item_spec.rb +18 -0
  179. data/spec/models/transaction_spec.rb +12 -0
  180. data/spec/models/vendor_credit_line_spec.rb +18 -0
  181. data/spec/models/vendor_credit_spec.rb +12 -0
  182. metadata +204 -152
@@ -49,6 +49,8 @@ module MergeAccountingClient
49
49
  # The purchase order's exchange rate.
50
50
  attr_accessor :exchange_rate
51
51
 
52
+ attr_accessor :tracking_categories
53
+
52
54
  attr_accessor :line_items
53
55
 
54
56
  attr_accessor :integration_params
@@ -69,6 +71,7 @@ module MergeAccountingClient
69
71
  :'total_amount' => :'total_amount',
70
72
  :'currency' => :'currency',
71
73
  :'exchange_rate' => :'exchange_rate',
74
+ :'tracking_categories' => :'tracking_categories',
72
75
  :'line_items' => :'line_items',
73
76
  :'integration_params' => :'integration_params',
74
77
  :'linked_account_params' => :'linked_account_params'
@@ -94,6 +97,7 @@ module MergeAccountingClient
94
97
  :'total_amount' => :'Float',
95
98
  :'currency' => :'CurrencyEnum',
96
99
  :'exchange_rate' => :'String',
100
+ :'tracking_categories' => :'Array<String>',
97
101
  :'line_items' => :'Array<PurchaseOrderLineItemRequest>',
98
102
  :'integration_params' => :'Hash<String, Object>',
99
103
  :'linked_account_params' => :'Hash<String, Object>'
@@ -178,6 +182,12 @@ module MergeAccountingClient
178
182
  self.exchange_rate = attributes[:'exchange_rate']
179
183
  end
180
184
 
185
+ if attributes.key?(:'tracking_categories')
186
+ if (value = attributes[:'tracking_categories']).is_a?(Array)
187
+ self.tracking_categories = value
188
+ end
189
+ end
190
+
181
191
  if attributes.key?(:'line_items')
182
192
  if (value = attributes[:'line_items']).is_a?(Array)
183
193
  self.line_items = value
@@ -243,6 +253,7 @@ module MergeAccountingClient
243
253
  total_amount == o.total_amount &&
244
254
  currency == o.currency &&
245
255
  exchange_rate == o.exchange_rate &&
256
+ tracking_categories == o.tracking_categories &&
246
257
  line_items == o.line_items &&
247
258
  integration_params == o.integration_params &&
248
259
  linked_account_params == o.linked_account_params
@@ -257,7 +268,7 @@ module MergeAccountingClient
257
268
  # Calculates hash code according to all attributes.
258
269
  # @return [Integer] Hash code
259
270
  def hash
260
- [status, issue_date, delivery_date, delivery_address, customer, vendor, memo, company, total_amount, currency, exchange_rate, line_items, integration_params, linked_account_params].hash
271
+ [status, issue_date, delivery_date, delivery_address, customer, vendor, memo, company, total_amount, currency, exchange_rate, tracking_categories, line_items, integration_params, linked_account_params].hash
261
272
  end
262
273
 
263
274
  # Builds the object from hash
@@ -30,6 +30,8 @@ module MergeAccountingClient
30
30
  # The company the report item belongs to.
31
31
  attr_accessor :company
32
32
 
33
+ attr_accessor :created_at
34
+
33
35
  # This is the datetime that this object was last updated by Merge
34
36
  attr_accessor :modified_at
35
37
 
@@ -41,6 +43,7 @@ module MergeAccountingClient
41
43
  :'value' => :'value',
42
44
  :'sub_items' => :'sub_items',
43
45
  :'company' => :'company',
46
+ :'created_at' => :'created_at',
44
47
  :'modified_at' => :'modified_at'
45
48
  }
46
49
  end
@@ -58,6 +61,7 @@ module MergeAccountingClient
58
61
  :'value' => :'Float',
59
62
  :'sub_items' => :'Hash<String, Object>',
60
63
  :'company' => :'String',
64
+ :'created_at' => :'Time',
61
65
  :'modified_at' => :'Time'
62
66
  }
63
67
  end
@@ -109,6 +113,10 @@ module MergeAccountingClient
109
113
  self.company = attributes[:'company']
110
114
  end
111
115
 
116
+ if attributes.key?(:'created_at')
117
+ self.created_at = attributes[:'created_at']
118
+ end
119
+
112
120
  if attributes.key?(:'modified_at')
113
121
  self.modified_at = attributes[:'modified_at']
114
122
  end
@@ -137,6 +145,7 @@ module MergeAccountingClient
137
145
  value == o.value &&
138
146
  sub_items == o.sub_items &&
139
147
  company == o.company &&
148
+ created_at == o.created_at &&
140
149
  modified_at == o.modified_at
141
150
  end
142
151
 
@@ -149,7 +158,7 @@ module MergeAccountingClient
149
158
  # Calculates hash code according to all attributes.
150
159
  # @return [Integer] Hash code
151
160
  def hash
152
- [remote_id, name, value, sub_items, company, modified_at].hash
161
+ [remote_id, name, value, sub_items, company, created_at, modified_at].hash
153
162
  end
154
163
 
155
164
  # Builds the object from hash
@@ -0,0 +1,49 @@
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 RoleEnum
18
+ ADMIN = "ADMIN".freeze
19
+ DEVELOPER = "DEVELOPER".freeze
20
+ MEMBER = "MEMBER".freeze
21
+ API = "API".freeze
22
+ SYSTEM = "SYSTEM".freeze
23
+ MERGE_TEAM = "MERGE_TEAM".freeze
24
+
25
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
26
+
27
+ attr_accessor :value
28
+ attr_accessor :raw_value
29
+
30
+ # Builds the enum from string
31
+ # @param [String] The enum value in the form of the string
32
+ # @return [String] The enum value
33
+ def build_from_hash(value)
34
+ @raw_value = value
35
+ if ["ADMIN", "DEVELOPER", "MEMBER", "API", "SYSTEM", "MERGE_TEAM", ].include? value
36
+ @value = value
37
+ else
38
+ @value = MERGE_NONSTANDARD_VALUE
39
+ end
40
+
41
+ self
42
+ end
43
+
44
+ def self.build_from_hash(value)
45
+ RoleEnum.new.build_from_hash(value)
46
+ end
47
+ end
48
+
49
+ end
@@ -28,7 +28,7 @@ module MergeAccountingClient
28
28
  # The company the tax rate belongs to.
29
29
  attr_accessor :company
30
30
 
31
- # Indicates whether or not this object has been deleted by third party webhooks.
31
+ # Indicates whether or not this object has been deleted in the third party platform.
32
32
  attr_accessor :remote_was_deleted
33
33
 
34
34
  attr_accessor :id
@@ -36,6 +36,8 @@ module MergeAccountingClient
36
36
  # The third-party API ID of the matching object.
37
37
  attr_accessor :remote_id
38
38
 
39
+ attr_accessor :created_at
40
+
39
41
  # This is the datetime that this object was last updated by Merge
40
42
  attr_accessor :modified_at
41
43
 
@@ -53,6 +55,7 @@ module MergeAccountingClient
53
55
  :'remote_was_deleted' => :'remote_was_deleted',
54
56
  :'id' => :'id',
55
57
  :'remote_id' => :'remote_id',
58
+ :'created_at' => :'created_at',
56
59
  :'modified_at' => :'modified_at',
57
60
  :'field_mappings' => :'field_mappings',
58
61
  :'remote_data' => :'remote_data'
@@ -74,6 +77,7 @@ module MergeAccountingClient
74
77
  :'remote_was_deleted' => :'Boolean',
75
78
  :'id' => :'String',
76
79
  :'remote_id' => :'String',
80
+ :'created_at' => :'Time',
77
81
  :'modified_at' => :'Time',
78
82
  :'field_mappings' => :'Hash<String, Object>',
79
83
  :'remote_data' => :'Array<RemoteData>'
@@ -136,6 +140,10 @@ module MergeAccountingClient
136
140
  self.remote_id = attributes[:'remote_id']
137
141
  end
138
142
 
143
+ if attributes.key?(:'created_at')
144
+ self.created_at = attributes[:'created_at']
145
+ end
146
+
139
147
  if attributes.key?(:'modified_at')
140
148
  self.modified_at = attributes[:'modified_at']
141
149
  end
@@ -178,6 +186,7 @@ module MergeAccountingClient
178
186
  remote_was_deleted == o.remote_was_deleted &&
179
187
  id == o.id &&
180
188
  remote_id == o.remote_id &&
189
+ created_at == o.created_at &&
181
190
  modified_at == o.modified_at &&
182
191
  field_mappings == o.field_mappings &&
183
192
  remote_data == o.remote_data
@@ -192,7 +201,7 @@ module MergeAccountingClient
192
201
  # Calculates hash code according to all attributes.
193
202
  # @return [Integer] Hash code
194
203
  def hash
195
- [description, total_tax_rate, effective_tax_rate, company, remote_was_deleted, id, remote_id, modified_at, field_mappings, remote_data].hash
204
+ [description, total_tax_rate, effective_tax_rate, company, remote_was_deleted, id, remote_id, created_at, modified_at, field_mappings, remote_data].hash
196
205
  end
197
206
 
198
207
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeAccountingClient
17
- # # The TrackingCategory Object ### Description The `TrackingCategory` object is used to represent a company's tracking categories. ### Usage Example Fetch from the `GET TrackingCategory` endpoint and view a company's tracking category.
17
+ # # The TrackingCategory Object ### Description A `TrackingCategory` object represents a categorization method used to classify transactions within an accounting platform. They are often used to group records for reporting and analysis purposes. The most common types of `TrackingCategories` are Classes and Departments. ### Usage Example Fetch from the `GET TrackingCategory` endpoint and view a company's tracking category.
18
18
  class TrackingCategory
19
19
  # The tracking category's name.
20
20
  attr_accessor :name
@@ -31,7 +31,7 @@ module MergeAccountingClient
31
31
  # The company the tracking category belongs to.
32
32
  attr_accessor :company
33
33
 
34
- # Indicates whether or not this object has been deleted by third party webhooks.
34
+ # Indicates whether or not this object has been deleted in the third party platform.
35
35
  attr_accessor :remote_was_deleted
36
36
 
37
37
  attr_accessor :id
@@ -39,6 +39,8 @@ module MergeAccountingClient
39
39
  # The third-party API ID of the matching object.
40
40
  attr_accessor :remote_id
41
41
 
42
+ attr_accessor :created_at
43
+
42
44
  # This is the datetime that this object was last updated by Merge
43
45
  attr_accessor :modified_at
44
46
 
@@ -57,6 +59,7 @@ module MergeAccountingClient
57
59
  :'remote_was_deleted' => :'remote_was_deleted',
58
60
  :'id' => :'id',
59
61
  :'remote_id' => :'remote_id',
62
+ :'created_at' => :'created_at',
60
63
  :'modified_at' => :'modified_at',
61
64
  :'field_mappings' => :'field_mappings',
62
65
  :'remote_data' => :'remote_data'
@@ -79,6 +82,7 @@ module MergeAccountingClient
79
82
  :'remote_was_deleted' => :'Boolean',
80
83
  :'id' => :'String',
81
84
  :'remote_id' => :'String',
85
+ :'created_at' => :'Time',
82
86
  :'modified_at' => :'Time',
83
87
  :'field_mappings' => :'Hash<String, Object>',
84
88
  :'remote_data' => :'Array<RemoteData>'
@@ -146,6 +150,10 @@ module MergeAccountingClient
146
150
  self.remote_id = attributes[:'remote_id']
147
151
  end
148
152
 
153
+ if attributes.key?(:'created_at')
154
+ self.created_at = attributes[:'created_at']
155
+ end
156
+
149
157
  if attributes.key?(:'modified_at')
150
158
  self.modified_at = attributes[:'modified_at']
151
159
  end
@@ -189,6 +197,7 @@ module MergeAccountingClient
189
197
  remote_was_deleted == o.remote_was_deleted &&
190
198
  id == o.id &&
191
199
  remote_id == o.remote_id &&
200
+ created_at == o.created_at &&
192
201
  modified_at == o.modified_at &&
193
202
  field_mappings == o.field_mappings &&
194
203
  remote_data == o.remote_data
@@ -203,7 +212,7 @@ module MergeAccountingClient
203
212
  # Calculates hash code according to all attributes.
204
213
  # @return [Integer] Hash code
205
214
  def hash
206
- [name, status, category_type, parent_category, company, remote_was_deleted, id, remote_id, modified_at, field_mappings, remote_data].hash
215
+ [name, status, category_type, parent_category, company, remote_was_deleted, id, remote_id, created_at, modified_at, field_mappings, remote_data].hash
207
216
  end
208
217
 
209
218
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeAccountingClient
17
- # # The Transaction Object ### Description The `Transaction` includes different types of transactions. The Transactions object does not cover expenses, credit notes, vendor credit, invoices, purchase orders, and journal entries. See the “transaction_type” field for more information. ### Usage Example Fetch from the `GET Transaction` endpoint and view a company's transactions.
17
+ # # The Transaction Object ### Description The `Transaction` common model includes records of all types of transactions that do not appear in other common models. The type of transaction can be identified through the type field. More specifically, it will contain all types of transactions outside of: * __Credit Notes__ * __Expenses__ * __Invoices__ * __Journal Entries__ * __Payments__ * __Purchase Orders__ * __Vendor Credits__ ### Usage Example Fetch from the `GET Transaction` endpoint and view a company's transactions.
18
18
  class Transaction
19
19
  # The type of transaction, which can by any transaction object not already included in Merge’s common model.
20
20
  attr_accessor :transaction_type
@@ -47,14 +47,19 @@ module MergeAccountingClient
47
47
 
48
48
  attr_accessor :line_items
49
49
 
50
- # Indicates whether or not this object has been deleted by third party webhooks.
50
+ # Indicates whether or not this object has been deleted in the third party platform.
51
51
  attr_accessor :remote_was_deleted
52
52
 
53
+ # The accounting period that the Transaction was generated in.
54
+ attr_accessor :accounting_period
55
+
53
56
  attr_accessor :id
54
57
 
55
58
  # The third-party API ID of the matching object.
56
59
  attr_accessor :remote_id
57
60
 
61
+ attr_accessor :created_at
62
+
58
63
  # This is the datetime that this object was last updated by Merge
59
64
  attr_accessor :modified_at
60
65
 
@@ -77,8 +82,10 @@ module MergeAccountingClient
77
82
  :'tracking_categories' => :'tracking_categories',
78
83
  :'line_items' => :'line_items',
79
84
  :'remote_was_deleted' => :'remote_was_deleted',
85
+ :'accounting_period' => :'accounting_period',
80
86
  :'id' => :'id',
81
87
  :'remote_id' => :'remote_id',
88
+ :'created_at' => :'created_at',
82
89
  :'modified_at' => :'modified_at',
83
90
  :'field_mappings' => :'field_mappings',
84
91
  :'remote_data' => :'remote_data'
@@ -105,8 +112,10 @@ module MergeAccountingClient
105
112
  :'tracking_categories' => :'Array<String>',
106
113
  :'line_items' => :'Array<TransactionLineItem>',
107
114
  :'remote_was_deleted' => :'Boolean',
115
+ :'accounting_period' => :'String',
108
116
  :'id' => :'String',
109
117
  :'remote_id' => :'String',
118
+ :'created_at' => :'Time',
110
119
  :'modified_at' => :'Time',
111
120
  :'field_mappings' => :'Hash<String, Object>',
112
121
  :'remote_data' => :'Array<RemoteData>'
@@ -125,6 +134,7 @@ module MergeAccountingClient
125
134
  :'currency',
126
135
  :'exchange_rate',
127
136
  :'company',
137
+ :'accounting_period',
128
138
  :'remote_id',
129
139
  :'field_mappings',
130
140
  :'remote_data'
@@ -198,6 +208,10 @@ module MergeAccountingClient
198
208
  self.remote_was_deleted = attributes[:'remote_was_deleted']
199
209
  end
200
210
 
211
+ if attributes.key?(:'accounting_period')
212
+ self.accounting_period = attributes[:'accounting_period']
213
+ end
214
+
201
215
  if attributes.key?(:'id')
202
216
  self.id = attributes[:'id']
203
217
  end
@@ -206,6 +220,10 @@ module MergeAccountingClient
206
220
  self.remote_id = attributes[:'remote_id']
207
221
  end
208
222
 
223
+ if attributes.key?(:'created_at')
224
+ self.created_at = attributes[:'created_at']
225
+ end
226
+
209
227
  if attributes.key?(:'modified_at')
210
228
  self.modified_at = attributes[:'modified_at']
211
229
  end
@@ -287,8 +305,10 @@ module MergeAccountingClient
287
305
  tracking_categories == o.tracking_categories &&
288
306
  line_items == o.line_items &&
289
307
  remote_was_deleted == o.remote_was_deleted &&
308
+ accounting_period == o.accounting_period &&
290
309
  id == o.id &&
291
310
  remote_id == o.remote_id &&
311
+ created_at == o.created_at &&
292
312
  modified_at == o.modified_at &&
293
313
  field_mappings == o.field_mappings &&
294
314
  remote_data == o.remote_data
@@ -303,7 +323,7 @@ module MergeAccountingClient
303
323
  # Calculates hash code according to all attributes.
304
324
  # @return [Integer] Hash code
305
325
  def hash
306
- [transaction_type, number, transaction_date, account, contact, total_amount, currency, exchange_rate, company, tracking_categories, line_items, remote_was_deleted, id, remote_id, modified_at, field_mappings, remote_data].hash
326
+ [transaction_type, number, transaction_date, account, contact, total_amount, currency, exchange_rate, company, tracking_categories, line_items, remote_was_deleted, accounting_period, id, remote_id, created_at, modified_at, field_mappings, remote_data].hash
307
327
  end
308
328
 
309
329
  # Builds the object from hash
@@ -54,6 +54,13 @@ module MergeAccountingClient
54
54
  # The company the line belongs to.
55
55
  attr_accessor :company
56
56
 
57
+ # Indicates whether or not this object has been deleted in the third party platform.
58
+ attr_accessor :remote_was_deleted
59
+
60
+ attr_accessor :id
61
+
62
+ attr_accessor :created_at
63
+
57
64
  # This is the datetime that this object was last updated by Merge
58
65
  attr_accessor :modified_at
59
66
 
@@ -73,6 +80,9 @@ module MergeAccountingClient
73
80
  :'currency' => :'currency',
74
81
  :'exchange_rate' => :'exchange_rate',
75
82
  :'company' => :'company',
83
+ :'remote_was_deleted' => :'remote_was_deleted',
84
+ :'id' => :'id',
85
+ :'created_at' => :'created_at',
76
86
  :'modified_at' => :'modified_at'
77
87
  }
78
88
  end
@@ -98,6 +108,9 @@ module MergeAccountingClient
98
108
  :'currency' => :'CurrencyEnum',
99
109
  :'exchange_rate' => :'String',
100
110
  :'company' => :'String',
111
+ :'remote_was_deleted' => :'Boolean',
112
+ :'id' => :'String',
113
+ :'created_at' => :'Time',
101
114
  :'modified_at' => :'Time'
102
115
  }
103
116
  end
@@ -189,6 +202,18 @@ module MergeAccountingClient
189
202
  self.company = attributes[:'company']
190
203
  end
191
204
 
205
+ if attributes.key?(:'remote_was_deleted')
206
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
207
+ end
208
+
209
+ if attributes.key?(:'id')
210
+ self.id = attributes[:'id']
211
+ end
212
+
213
+ if attributes.key?(:'created_at')
214
+ self.created_at = attributes[:'created_at']
215
+ end
216
+
192
217
  if attributes.key?(:'modified_at')
193
218
  self.modified_at = attributes[:'modified_at']
194
219
  end
@@ -298,6 +323,9 @@ module MergeAccountingClient
298
323
  currency == o.currency &&
299
324
  exchange_rate == o.exchange_rate &&
300
325
  company == o.company &&
326
+ remote_was_deleted == o.remote_was_deleted &&
327
+ id == o.id &&
328
+ created_at == o.created_at &&
301
329
  modified_at == o.modified_at
302
330
  end
303
331
 
@@ -310,7 +338,7 @@ module MergeAccountingClient
310
338
  # Calculates hash code according to all attributes.
311
339
  # @return [Integer] Hash code
312
340
  def hash
313
- [remote_id, memo, unit_price, quantity, item, account, tracking_category, tracking_categories, total_line_amount, tax_rate, currency, exchange_rate, company, modified_at].hash
341
+ [remote_id, memo, unit_price, quantity, item, account, tracking_category, tracking_categories, total_line_amount, tax_rate, currency, exchange_rate, company, remote_was_deleted, id, created_at, modified_at].hash
314
342
  end
315
343
 
316
344
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeAccountingClient
17
- # # The VendorCredit Object ### Description The `VendorCredit` object is an accounts receivable transaction used to show that a customer is owed a gift or refund. A vendor credit will contain information on the amount of credit owed to the customer, the vendor that owes the credit, and the account. ### Usage Example Fetch from the `GET VendorCredit` endpoint and view a company's vendor credits.
17
+ # # The VendorCredit Object ### Description A `VendorCredit` is transaction issued by a vendor to the accounting company, indicating a reduction or cancellation of the amount owed to the vendor. It is most generally used as an adjustment note used to rectify errors, returns, or overpayments related to a purchasing transaction. A `VendorCredit` can be applied to *Accounts Payable* Invoices to decrease the overall amount of the Invoice. ### Usage Example Fetch from the `GET VendorCredit` endpoint and view a company's vendor credits.
18
18
  class VendorCredit
19
19
  attr_accessor :id
20
20
 
@@ -46,9 +46,14 @@ module MergeAccountingClient
46
46
 
47
47
  attr_accessor :tracking_categories
48
48
 
49
- # Indicates whether or not this object has been deleted by third party webhooks.
49
+ # Indicates whether or not this object has been deleted in the third party platform.
50
50
  attr_accessor :remote_was_deleted
51
51
 
52
+ # The accounting period that the VendorCredit was generated in.
53
+ attr_accessor :accounting_period
54
+
55
+ attr_accessor :created_at
56
+
52
57
  # This is the datetime that this object was last updated by Merge
53
58
  attr_accessor :modified_at
54
59
 
@@ -71,6 +76,8 @@ module MergeAccountingClient
71
76
  :'lines' => :'lines',
72
77
  :'tracking_categories' => :'tracking_categories',
73
78
  :'remote_was_deleted' => :'remote_was_deleted',
79
+ :'accounting_period' => :'accounting_period',
80
+ :'created_at' => :'created_at',
74
81
  :'modified_at' => :'modified_at',
75
82
  :'field_mappings' => :'field_mappings',
76
83
  :'remote_data' => :'remote_data'
@@ -97,6 +104,8 @@ module MergeAccountingClient
97
104
  :'lines' => :'Array<VendorCreditLine>',
98
105
  :'tracking_categories' => :'Array<String>',
99
106
  :'remote_was_deleted' => :'Boolean',
107
+ :'accounting_period' => :'String',
108
+ :'created_at' => :'Time',
100
109
  :'modified_at' => :'Time',
101
110
  :'field_mappings' => :'Hash<String, Object>',
102
111
  :'remote_data' => :'Array<RemoteData>'
@@ -114,6 +123,7 @@ module MergeAccountingClient
114
123
  :'currency',
115
124
  :'exchange_rate',
116
125
  :'company',
126
+ :'accounting_period',
117
127
  :'field_mappings',
118
128
  :'remote_data'
119
129
  ])
@@ -186,6 +196,14 @@ module MergeAccountingClient
186
196
  self.remote_was_deleted = attributes[:'remote_was_deleted']
187
197
  end
188
198
 
199
+ if attributes.key?(:'accounting_period')
200
+ self.accounting_period = attributes[:'accounting_period']
201
+ end
202
+
203
+ if attributes.key?(:'created_at')
204
+ self.created_at = attributes[:'created_at']
205
+ end
206
+
189
207
  if attributes.key?(:'modified_at')
190
208
  self.modified_at = attributes[:'modified_at']
191
209
  end
@@ -250,6 +268,8 @@ module MergeAccountingClient
250
268
  lines == o.lines &&
251
269
  tracking_categories == o.tracking_categories &&
252
270
  remote_was_deleted == o.remote_was_deleted &&
271
+ accounting_period == o.accounting_period &&
272
+ created_at == o.created_at &&
253
273
  modified_at == o.modified_at &&
254
274
  field_mappings == o.field_mappings &&
255
275
  remote_data == o.remote_data
@@ -264,7 +284,7 @@ module MergeAccountingClient
264
284
  # Calculates hash code according to all attributes.
265
285
  # @return [Integer] Hash code
266
286
  def hash
267
- [id, remote_id, number, transaction_date, vendor, total_amount, currency, exchange_rate, company, lines, tracking_categories, remote_was_deleted, modified_at, field_mappings, remote_data].hash
287
+ [id, remote_id, number, transaction_date, vendor, total_amount, currency, exchange_rate, company, lines, tracking_categories, remote_was_deleted, accounting_period, created_at, modified_at, field_mappings, remote_data].hash
268
288
  end
269
289
 
270
290
  # Builds the object from hash
@@ -40,6 +40,13 @@ module MergeAccountingClient
40
40
  # The vendor credit line item's exchange rate.
41
41
  attr_accessor :exchange_rate
42
42
 
43
+ # Indicates whether or not this object has been deleted in the third party platform.
44
+ attr_accessor :remote_was_deleted
45
+
46
+ attr_accessor :id
47
+
48
+ attr_accessor :created_at
49
+
43
50
  # This is the datetime that this object was last updated by Merge
44
51
  attr_accessor :modified_at
45
52
 
@@ -54,6 +61,9 @@ module MergeAccountingClient
54
61
  :'account' => :'account',
55
62
  :'company' => :'company',
56
63
  :'exchange_rate' => :'exchange_rate',
64
+ :'remote_was_deleted' => :'remote_was_deleted',
65
+ :'id' => :'id',
66
+ :'created_at' => :'created_at',
57
67
  :'modified_at' => :'modified_at'
58
68
  }
59
69
  end
@@ -74,6 +84,9 @@ module MergeAccountingClient
74
84
  :'account' => :'String',
75
85
  :'company' => :'String',
76
86
  :'exchange_rate' => :'String',
87
+ :'remote_was_deleted' => :'Boolean',
88
+ :'id' => :'String',
89
+ :'created_at' => :'Time',
77
90
  :'modified_at' => :'Time'
78
91
  }
79
92
  end
@@ -140,6 +153,18 @@ module MergeAccountingClient
140
153
  self.exchange_rate = attributes[:'exchange_rate']
141
154
  end
142
155
 
156
+ if attributes.key?(:'remote_was_deleted')
157
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
158
+ end
159
+
160
+ if attributes.key?(:'id')
161
+ self.id = attributes[:'id']
162
+ end
163
+
164
+ if attributes.key?(:'created_at')
165
+ self.created_at = attributes[:'created_at']
166
+ end
167
+
143
168
  if attributes.key?(:'modified_at')
144
169
  self.modified_at = attributes[:'modified_at']
145
170
  end
@@ -193,6 +218,9 @@ module MergeAccountingClient
193
218
  account == o.account &&
194
219
  company == o.company &&
195
220
  exchange_rate == o.exchange_rate &&
221
+ remote_was_deleted == o.remote_was_deleted &&
222
+ id == o.id &&
223
+ created_at == o.created_at &&
196
224
  modified_at == o.modified_at
197
225
  end
198
226
 
@@ -205,7 +233,7 @@ module MergeAccountingClient
205
233
  # Calculates hash code according to all attributes.
206
234
  # @return [Integer] Hash code
207
235
  def hash
208
- [remote_id, net_amount, tracking_category, tracking_categories, description, account, company, exchange_rate, modified_at].hash
236
+ [remote_id, net_amount, tracking_category, tracking_categories, description, account, company, exchange_rate, remote_was_deleted, id, created_at, modified_at].hash
209
237
  end
210
238
 
211
239
  # 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.9'
14
+ VERSION = '1.1.0'
15
15
  end