merge_accounting_client 1.0.8 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (242) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +238 -224
  3. data/docs/Account.md +5 -1
  4. data/docs/AccountIntegration.md +8 -2
  5. data/docs/AccountingAttachment.md +5 -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 +5 -1
  10. data/docs/AccountsApi.md +4 -4
  11. data/docs/Address.md +6 -2
  12. data/docs/AddressRequest.md +34 -0
  13. data/docs/AsyncPassthroughApi.md +155 -0
  14. data/docs/AsyncPassthroughReciept.md +18 -0
  15. data/docs/AttachmentsApi.md +4 -4
  16. data/docs/AuditLogEvent.md +32 -0
  17. data/docs/AuditTrailApi.md +91 -0
  18. data/docs/BalanceSheet.md +5 -1
  19. data/docs/BalanceSheetsApi.md +4 -4
  20. data/docs/CashFlowStatement.md +5 -1
  21. data/docs/CashFlowStatementsApi.md +4 -4
  22. data/docs/CompanyInfo.md +6 -2
  23. data/docs/CompanyInfoApi.md +4 -4
  24. data/docs/Contact.md +6 -2
  25. data/docs/ContactRequest.md +1 -1
  26. data/docs/ContactsApi.md +8 -4
  27. data/docs/CreditNote.md +14 -2
  28. data/docs/CreditNoteLineItem.md +9 -1
  29. data/docs/CreditNotesApi.md +6 -6
  30. data/docs/DeleteAccountApi.md +9 -9
  31. data/docs/EndUserDetailsRequest.md +2 -2
  32. data/docs/EventTypeEnum.md +15 -0
  33. data/docs/Expense.md +14 -2
  34. data/docs/ExpenseLine.md +11 -1
  35. data/docs/ExpenseLineRequest.md +2 -0
  36. data/docs/ExpenseRequest.md +9 -1
  37. data/docs/ExpensesApi.md +4 -4
  38. data/docs/ForceResyncApi.md +1 -1
  39. data/docs/IncomeStatement.md +5 -1
  40. data/docs/IncomeStatementsApi.md +4 -4
  41. data/docs/Invoice.md +18 -4
  42. data/docs/InvoiceLineItem.md +7 -1
  43. data/docs/InvoiceRequest.md +7 -1
  44. data/docs/InvoiceStatusEnum.md +15 -0
  45. data/docs/InvoicesApi.md +6 -6
  46. data/docs/Issue.md +2 -2
  47. data/docs/IssuesApi.md +6 -6
  48. data/docs/Item.md +5 -1
  49. data/docs/ItemsApi.md +4 -4
  50. data/docs/JournalEntriesApi.md +6 -6
  51. data/docs/JournalEntry.md +13 -1
  52. data/docs/JournalEntryRequest.md +4 -0
  53. data/docs/JournalLine.md +13 -1
  54. data/docs/JournalLineRequest.md +4 -0
  55. data/docs/LinkedAccountsApi.md +2 -2
  56. data/docs/MetaResponse.md +2 -2
  57. data/docs/PaginatedAccountingPeriodList.md +22 -0
  58. data/docs/PaginatedAuditLogEventList.md +22 -0
  59. data/docs/Payment.md +11 -1
  60. data/docs/PaymentLineItem.md +32 -0
  61. data/docs/PaymentLineItemRequest.md +30 -0
  62. data/docs/PaymentRequest.md +6 -0
  63. data/docs/PaymentsApi.md +4 -4
  64. data/docs/PurchaseOrder.md +13 -3
  65. data/docs/PurchaseOrderLineItem.md +9 -1
  66. data/docs/PurchaseOrderRequest.md +2 -0
  67. data/docs/PurchaseOrdersApi.md +6 -6
  68. data/docs/RemoteData.md +1 -1
  69. data/docs/ReportItem.md +5 -1
  70. data/docs/RoleEnum.md +15 -0
  71. data/docs/SyncStatus.md +1 -1
  72. data/docs/SyncStatusApi.md +15 -11
  73. data/docs/TaxRate.md +5 -1
  74. data/docs/TaxRatesApi.md +4 -4
  75. data/docs/TrackingCategoriesApi.md +4 -4
  76. data/docs/TrackingCategory.md +5 -1
  77. data/docs/Transaction.md +9 -3
  78. data/docs/TransactionLineItem.md +9 -1
  79. data/docs/TransactionsApi.md +4 -4
  80. data/docs/VendorCredit.md +10 -2
  81. data/docs/VendorCreditLine.md +9 -1
  82. data/docs/VendorCreditsApi.md +6 -6
  83. data/git_push.sh +58 -0
  84. data/lib/merge_accounting_client/api/accounting_periods_api.rb +167 -0
  85. data/lib/merge_accounting_client/api/accounts_api.rb +4 -4
  86. data/lib/merge_accounting_client/api/async_passthrough_api.rb +160 -0
  87. data/lib/merge_accounting_client/api/attachments_api.rb +4 -4
  88. data/lib/merge_accounting_client/api/audit_trail_api.rb +95 -0
  89. data/lib/merge_accounting_client/api/balance_sheets_api.rb +4 -4
  90. data/lib/merge_accounting_client/api/cash_flow_statements_api.rb +4 -4
  91. data/lib/merge_accounting_client/api/company_info_api.rb +4 -4
  92. data/lib/merge_accounting_client/api/contacts_api.rb +10 -4
  93. data/lib/merge_accounting_client/api/credit_notes_api.rb +6 -6
  94. data/lib/merge_accounting_client/api/delete_account_api.rb +7 -7
  95. data/lib/merge_accounting_client/api/expenses_api.rb +6 -6
  96. data/lib/merge_accounting_client/api/force_resync_api.rb +2 -2
  97. data/lib/merge_accounting_client/api/income_statements_api.rb +4 -4
  98. data/lib/merge_accounting_client/api/invoices_api.rb +6 -6
  99. data/lib/merge_accounting_client/api/issues_api.rb +6 -6
  100. data/lib/merge_accounting_client/api/items_api.rb +4 -4
  101. data/lib/merge_accounting_client/api/journal_entries_api.rb +6 -6
  102. data/lib/merge_accounting_client/api/linked_accounts_api.rb +3 -3
  103. data/lib/merge_accounting_client/api/payments_api.rb +6 -6
  104. data/lib/merge_accounting_client/api/purchase_orders_api.rb +6 -6
  105. data/lib/merge_accounting_client/api/sync_status_api.rb +2 -2
  106. data/lib/merge_accounting_client/api/tax_rates_api.rb +4 -4
  107. data/lib/merge_accounting_client/api/tracking_categories_api.rb +4 -4
  108. data/lib/merge_accounting_client/api/transactions_api.rb +6 -6
  109. data/lib/merge_accounting_client/api/vendor_credits_api.rb +6 -6
  110. data/lib/merge_accounting_client/configuration.rb +4 -0
  111. data/lib/merge_accounting_client/models/account.rb +22 -3
  112. data/lib/merge_accounting_client/models/account_integration.rb +37 -4
  113. data/lib/merge_accounting_client/models/account_request.rb +1 -1
  114. data/lib/merge_accounting_client/models/accounting_attachment.rb +21 -2
  115. data/lib/merge_accounting_client/models/accounting_period.rb +296 -0
  116. data/lib/merge_accounting_client/models/accounting_period_status_enum.rb +45 -0
  117. data/lib/merge_accounting_client/models/accounting_phone_number.rb +24 -5
  118. data/lib/merge_accounting_client/models/address.rb +24 -5
  119. data/lib/merge_accounting_client/models/address_request.rb +311 -0
  120. data/lib/merge_accounting_client/models/async_passthrough_reciept.rb +223 -0
  121. data/lib/merge_accounting_client/models/audit_log_event.rb +356 -0
  122. data/lib/merge_accounting_client/models/balance_sheet.rb +21 -2
  123. data/lib/merge_accounting_client/models/cash_flow_statement.rb +21 -2
  124. data/lib/merge_accounting_client/models/company_info.rb +22 -3
  125. data/lib/merge_accounting_client/models/contact.rb +23 -4
  126. data/lib/merge_accounting_client/models/contact_request.rb +2 -2
  127. data/lib/merge_accounting_client/models/credit_note.rb +84 -3
  128. data/lib/merge_accounting_client/models/credit_note_line_item.rb +43 -5
  129. data/lib/merge_accounting_client/models/end_user_details_request.rb +2 -2
  130. data/lib/merge_accounting_client/models/event_type_enum.rb +67 -0
  131. data/lib/merge_accounting_client/models/expense.rb +66 -3
  132. data/lib/merge_accounting_client/models/expense_line.rb +54 -5
  133. data/lib/merge_accounting_client/models/expense_line_request.rb +12 -1
  134. data/lib/merge_accounting_client/models/expense_request.rb +46 -2
  135. data/lib/merge_accounting_client/models/income_statement.rb +21 -2
  136. data/lib/merge_accounting_client/models/invoice.rb +84 -9
  137. data/lib/merge_accounting_client/models/invoice_line_item.rb +31 -2
  138. data/lib/merge_accounting_client/models/invoice_line_item_request.rb +1 -1
  139. data/lib/merge_accounting_client/models/invoice_request.rb +35 -2
  140. data/lib/merge_accounting_client/models/invoice_status_enum.rb +49 -0
  141. data/lib/merge_accounting_client/models/issue.rb +1 -0
  142. data/lib/merge_accounting_client/models/item.rb +21 -2
  143. data/lib/merge_accounting_client/models/journal_entry.rb +81 -2
  144. data/lib/merge_accounting_client/models/journal_entry_request.rb +38 -1
  145. data/lib/merge_accounting_client/models/journal_line.rb +65 -5
  146. data/lib/merge_accounting_client/models/journal_line_request.rb +23 -1
  147. data/lib/merge_accounting_client/models/paginated_accounting_period_list.rb +240 -0
  148. data/lib/merge_accounting_client/models/paginated_audit_log_event_list.rb +240 -0
  149. data/lib/merge_accounting_client/models/payment.rb +55 -2
  150. data/lib/merge_accounting_client/models/payment_line_item.rb +308 -0
  151. data/lib/merge_accounting_client/models/payment_line_item_request.rb +319 -0
  152. data/lib/merge_accounting_client/models/payment_request.rb +35 -1
  153. data/lib/merge_accounting_client/models/purchase_order.rb +70 -3
  154. data/lib/merge_accounting_client/models/purchase_order_line_item.rb +43 -5
  155. data/lib/merge_accounting_client/models/purchase_order_request.rb +12 -1
  156. data/lib/merge_accounting_client/models/remote_data.rb +3 -4
  157. data/lib/merge_accounting_client/models/report_item.rb +24 -5
  158. data/lib/merge_accounting_client/models/role_enum.rb +49 -0
  159. data/lib/merge_accounting_client/models/sync_status_status_enum.rb +1 -1
  160. data/lib/merge_accounting_client/models/tax_rate.rb +21 -2
  161. data/lib/merge_accounting_client/models/tracking_category.rb +22 -3
  162. data/lib/merge_accounting_client/models/transaction.rb +33 -3
  163. data/lib/merge_accounting_client/models/transaction_line_item.rb +43 -5
  164. data/lib/merge_accounting_client/models/vendor_credit.rb +44 -3
  165. data/lib/merge_accounting_client/models/vendor_credit_line.rb +43 -5
  166. data/lib/merge_accounting_client/version.rb +1 -1
  167. data/lib/merge_accounting_client.rb +15 -7
  168. data/spec/api/accounting_periods_api_spec.rb +63 -0
  169. data/spec/api/accounts_api_spec.rb +2 -2
  170. data/spec/api/async_passthrough_api_spec.rb +59 -0
  171. data/spec/api/attachments_api_spec.rb +2 -2
  172. data/spec/api/audit_trail_api_spec.rb +51 -0
  173. data/spec/api/balance_sheets_api_spec.rb +2 -2
  174. data/spec/api/cash_flow_statements_api_spec.rb +2 -2
  175. data/spec/api/company_info_api_spec.rb +2 -2
  176. data/spec/api/contacts_api_spec.rb +4 -2
  177. data/spec/api/credit_notes_api_spec.rb +2 -2
  178. data/spec/api/delete_account_api_spec.rb +2 -2
  179. data/spec/api/expenses_api_spec.rb +2 -2
  180. data/spec/api/force_resync_api_spec.rb +1 -1
  181. data/spec/api/income_statements_api_spec.rb +2 -2
  182. data/spec/api/invoices_api_spec.rb +2 -2
  183. data/spec/api/issues_api_spec.rb +3 -3
  184. data/spec/api/items_api_spec.rb +2 -2
  185. data/spec/api/journal_entries_api_spec.rb +2 -2
  186. data/spec/api/linked_accounts_api_spec.rb +1 -1
  187. data/spec/api/payments_api_spec.rb +2 -2
  188. data/spec/api/purchase_orders_api_spec.rb +2 -2
  189. data/spec/api/sync_status_api_spec.rb +1 -1
  190. data/spec/api/tax_rates_api_spec.rb +2 -2
  191. data/spec/api/tracking_categories_api_spec.rb +2 -2
  192. data/spec/api/transactions_api_spec.rb +2 -2
  193. data/spec/api/vendor_credits_api_spec.rb +2 -2
  194. data/spec/models/account_integration_spec.rb +18 -0
  195. data/spec/models/account_spec.rb +12 -0
  196. data/spec/models/accounting_attachment_spec.rb +12 -0
  197. data/spec/models/accounting_period_spec.rb +70 -0
  198. data/spec/models/accounting_period_status_enum_spec.rb +28 -0
  199. data/spec/models/accounting_phone_number_spec.rb +12 -0
  200. data/spec/models/address_request_spec.rb +82 -0
  201. data/spec/models/address_spec.rb +12 -0
  202. data/spec/models/async_passthrough_reciept_spec.rb +34 -0
  203. data/spec/models/audit_log_event_spec.rb +76 -0
  204. data/spec/models/balance_sheet_spec.rb +12 -0
  205. data/spec/models/cash_flow_statement_spec.rb +12 -0
  206. data/spec/models/company_info_spec.rb +12 -0
  207. data/spec/models/contact_spec.rb +12 -0
  208. data/spec/models/credit_note_line_item_spec.rb +24 -0
  209. data/spec/models/credit_note_spec.rb +36 -0
  210. data/spec/models/event_type_enum_spec.rb +28 -0
  211. data/spec/models/expense_line_request_spec.rb +6 -0
  212. data/spec/models/expense_line_spec.rb +30 -0
  213. data/spec/models/expense_request_spec.rb +24 -0
  214. data/spec/models/expense_spec.rb +36 -0
  215. data/spec/models/income_statement_spec.rb +12 -0
  216. data/spec/models/invoice_line_item_spec.rb +18 -0
  217. data/spec/models/invoice_request_spec.rb +18 -0
  218. data/spec/models/invoice_spec.rb +43 -1
  219. data/spec/models/invoice_status_enum_spec.rb +28 -0
  220. data/spec/models/item_spec.rb +12 -0
  221. data/spec/models/journal_entry_request_spec.rb +12 -0
  222. data/spec/models/journal_entry_spec.rb +36 -0
  223. data/spec/models/journal_line_request_spec.rb +12 -0
  224. data/spec/models/journal_line_spec.rb +36 -0
  225. data/spec/models/paginated_accounting_period_list_spec.rb +46 -0
  226. data/spec/models/paginated_audit_log_event_list_spec.rb +46 -0
  227. data/spec/models/payment_line_item_request_spec.rb +70 -0
  228. data/spec/models/payment_line_item_spec.rb +76 -0
  229. data/spec/models/payment_request_spec.rb +18 -0
  230. data/spec/models/payment_spec.rb +30 -0
  231. data/spec/models/purchase_order_line_item_spec.rb +24 -0
  232. data/spec/models/purchase_order_request_spec.rb +6 -0
  233. data/spec/models/purchase_order_spec.rb +30 -0
  234. data/spec/models/report_item_spec.rb +12 -0
  235. data/spec/models/role_enum_spec.rb +28 -0
  236. data/spec/models/tax_rate_spec.rb +12 -0
  237. data/spec/models/tracking_category_spec.rb +12 -0
  238. data/spec/models/transaction_line_item_spec.rb +24 -0
  239. data/spec/models/transaction_spec.rb +18 -0
  240. data/spec/models/vendor_credit_line_spec.rb +24 -0
  241. data/spec/models/vendor_credit_spec.rb +24 -0
  242. metadata +211 -150
@@ -19,7 +19,7 @@ module MergeAccountingClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PAUSED`, `SYNCING`, `PARTIALLY_SYNCED`
22
+ # Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses).
23
23
  # @param x_account_token [String] Token identifying the end user.
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [String] :cursor The pagination cursor value.
@@ -30,7 +30,7 @@ module MergeAccountingClient
30
30
  data
31
31
  end
32
32
 
33
- # Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PAUSED`, `SYNCING`, `PARTIALLY_SYNCED`
33
+ # Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses).
34
34
  # @param x_account_token [String] Token identifying the end user.
35
35
  # @param [Hash] opts the optional parameters
36
36
  # @option opts [String] :cursor The pagination cursor value.
@@ -29,8 +29,8 @@ module MergeAccountingClient
29
29
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
30
30
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
31
31
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
32
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
33
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
32
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
33
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
34
34
  # @option opts [Integer] :page_size Number of results to return per page.
35
35
  # @option opts [String] :remote_id The API provider's ID for the given object.
36
36
  # @return [PaginatedTaxRateList]
@@ -49,8 +49,8 @@ module MergeAccountingClient
49
49
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
50
50
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
51
51
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
52
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
53
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
52
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
53
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
54
54
  # @option opts [Integer] :page_size Number of results to return per page.
55
55
  # @option opts [String] :remote_id The API provider's ID for the given object.
56
56
  # @return [Array<(PaginatedTaxRateList, Integer, Hash)>] PaginatedTaxRateList data, response status code and response headers
@@ -29,8 +29,8 @@ module MergeAccountingClient
29
29
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
30
30
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
31
31
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
32
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
33
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
32
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
33
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
34
34
  # @option opts [Integer] :page_size Number of results to return per page.
35
35
  # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
36
36
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
@@ -51,8 +51,8 @@ module MergeAccountingClient
51
51
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
52
52
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
53
53
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
54
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
55
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
54
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
55
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
56
56
  # @option opts [Integer] :page_size Number of results to return per page.
57
57
  # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
58
58
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
@@ -29,8 +29,8 @@ module MergeAccountingClient
29
29
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
30
30
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
31
31
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
32
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
33
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
32
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
33
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
34
34
  # @option opts [Integer] :page_size Number of results to return per page.
35
35
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
36
36
  # @option opts [Time] :transaction_date_after If provided, will only return objects created after this datetime.
@@ -51,8 +51,8 @@ module MergeAccountingClient
51
51
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
52
52
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
53
53
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
54
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
55
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
54
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
55
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
56
56
  # @option opts [Integer] :page_size Number of results to return per page.
57
57
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
58
58
  # @option opts [Time] :transaction_date_after If provided, will only return objects created after this datetime.
@@ -66,7 +66,7 @@ module MergeAccountingClient
66
66
  if @api_client.config.client_side_validation && x_account_token.nil?
67
67
  fail ArgumentError, "Missing the required parameter 'x_account_token' when calling TransactionsApi.transactions_list"
68
68
  end
69
- allowable_values = ["account", "contact", "contact,account", "line_items", "line_items,account", "line_items,contact", "line_items,contact,account", "line_items,tracking_categories", "line_items,tracking_categories,account", "line_items,tracking_categories,contact", "line_items,tracking_categories,contact,account", "tracking_categories", "tracking_categories,account", "tracking_categories,contact", "tracking_categories,contact,account"]
69
+ allowable_values = ["account", "account,accounting_period", "accounting_period", "contact", "contact,account", "contact,account,accounting_period", "contact,accounting_period", "line_items", "line_items,account", "line_items,account,accounting_period", "line_items,accounting_period", "line_items,contact", "line_items,contact,account", "line_items,contact,account,accounting_period", "line_items,contact,accounting_period", "line_items,tracking_categories", "line_items,tracking_categories,account", "line_items,tracking_categories,account,accounting_period", "line_items,tracking_categories,accounting_period", "line_items,tracking_categories,contact", "line_items,tracking_categories,contact,account", "line_items,tracking_categories,contact,account,accounting_period", "line_items,tracking_categories,contact,accounting_period", "tracking_categories", "tracking_categories,account", "tracking_categories,account,accounting_period", "tracking_categories,accounting_period", "tracking_categories,contact", "tracking_categories,contact,account", "tracking_categories,contact,account,accounting_period", "tracking_categories,contact,accounting_period"]
70
70
  if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
71
71
  fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
72
72
  end
@@ -155,7 +155,7 @@ module MergeAccountingClient
155
155
  if @api_client.config.client_side_validation && id.nil?
156
156
  fail ArgumentError, "Missing the required parameter 'id' when calling TransactionsApi.transactions_retrieve"
157
157
  end
158
- allowable_values = ["account", "contact", "contact,account", "line_items", "line_items,account", "line_items,contact", "line_items,contact,account", "line_items,tracking_categories", "line_items,tracking_categories,account", "line_items,tracking_categories,contact", "line_items,tracking_categories,contact,account", "tracking_categories", "tracking_categories,account", "tracking_categories,contact", "tracking_categories,contact,account"]
158
+ allowable_values = ["account", "account,accounting_period", "accounting_period", "contact", "contact,account", "contact,account,accounting_period", "contact,accounting_period", "line_items", "line_items,account", "line_items,account,accounting_period", "line_items,accounting_period", "line_items,contact", "line_items,contact,account", "line_items,contact,account,accounting_period", "line_items,contact,accounting_period", "line_items,tracking_categories", "line_items,tracking_categories,account", "line_items,tracking_categories,account,accounting_period", "line_items,tracking_categories,accounting_period", "line_items,tracking_categories,contact", "line_items,tracking_categories,contact,account", "line_items,tracking_categories,contact,account,accounting_period", "line_items,tracking_categories,contact,accounting_period", "tracking_categories", "tracking_categories,account", "tracking_categories,account,accounting_period", "tracking_categories,accounting_period", "tracking_categories,contact", "tracking_categories,contact,account", "tracking_categories,contact,account,accounting_period", "tracking_categories,contact,accounting_period"]
159
159
  if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
160
160
  fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
161
161
  end
@@ -29,8 +29,8 @@ module MergeAccountingClient
29
29
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
30
30
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
31
31
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
32
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
33
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
32
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
33
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
34
34
  # @option opts [Integer] :page_size Number of results to return per page.
35
35
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
36
36
  # @option opts [Time] :transaction_date_after If provided, will only return objects created after this datetime.
@@ -51,8 +51,8 @@ module MergeAccountingClient
51
51
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
52
52
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
53
53
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
54
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
55
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
54
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
55
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
56
56
  # @option opts [Integer] :page_size Number of results to return per page.
57
57
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
58
58
  # @option opts [Time] :transaction_date_after If provided, will only return objects created after this datetime.
@@ -66,7 +66,7 @@ module MergeAccountingClient
66
66
  if @api_client.config.client_side_validation && x_account_token.nil?
67
67
  fail ArgumentError, "Missing the required parameter 'x_account_token' when calling VendorCreditsApi.vendor_credits_list"
68
68
  end
69
- allowable_values = ["company", "lines", "lines,company", "lines,vendor", "lines,vendor,company", "vendor", "vendor,company"]
69
+ allowable_values = ["accounting_period", "company", "company,accounting_period", "lines", "lines,accounting_period", "lines,company", "lines,company,accounting_period", "lines,tracking_categories", "lines,tracking_categories,accounting_period", "lines,tracking_categories,company", "lines,tracking_categories,company,accounting_period", "lines,tracking_categories,vendor", "lines,tracking_categories,vendor,accounting_period", "lines,tracking_categories,vendor,company", "lines,tracking_categories,vendor,company,accounting_period", "lines,vendor", "lines,vendor,accounting_period", "lines,vendor,company", "lines,vendor,company,accounting_period", "tracking_categories", "tracking_categories,accounting_period", "tracking_categories,company", "tracking_categories,company,accounting_period", "tracking_categories,vendor", "tracking_categories,vendor,accounting_period", "tracking_categories,vendor,company", "tracking_categories,vendor,company,accounting_period", "vendor", "vendor,accounting_period", "vendor,company", "vendor,company,accounting_period"]
70
70
  if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
71
71
  fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
72
72
  end
@@ -155,7 +155,7 @@ module MergeAccountingClient
155
155
  if @api_client.config.client_side_validation && id.nil?
156
156
  fail ArgumentError, "Missing the required parameter 'id' when calling VendorCreditsApi.vendor_credits_retrieve"
157
157
  end
158
- allowable_values = ["company", "lines", "lines,company", "lines,vendor", "lines,vendor,company", "vendor", "vendor,company"]
158
+ allowable_values = ["accounting_period", "company", "company,accounting_period", "lines", "lines,accounting_period", "lines,company", "lines,company,accounting_period", "lines,tracking_categories", "lines,tracking_categories,accounting_period", "lines,tracking_categories,company", "lines,tracking_categories,company,accounting_period", "lines,tracking_categories,vendor", "lines,tracking_categories,vendor,accounting_period", "lines,tracking_categories,vendor,company", "lines,tracking_categories,vendor,company,accounting_period", "lines,vendor", "lines,vendor,accounting_period", "lines,vendor,company", "lines,vendor,company,accounting_period", "tracking_categories", "tracking_categories,accounting_period", "tracking_categories,company", "tracking_categories,company,accounting_period", "tracking_categories,vendor", "tracking_categories,vendor,accounting_period", "tracking_categories,vendor,company", "tracking_categories,vendor,company,accounting_period", "vendor", "vendor,accounting_period", "vendor,company", "vendor,company,accounting_period"]
159
159
  if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
160
160
  fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
161
161
  end
@@ -235,6 +235,10 @@ module MergeAccountingClient
235
235
  {
236
236
  url: "https://api-sandbox.merge.dev/api/accounting/v1",
237
237
  description: "Sandbox",
238
+ },
239
+ {
240
+ url: "https://api-eu.merge.dev/api/accounting/v1",
241
+ description: "Production EU",
238
242
  }
239
243
  ]
240
244
  end
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeAccountingClient
17
- # # The Account Object ### Description The `Account` object is what companies use to track transactions. They can be both bank accounts or a general ledger account (also called a chart of accounts). ### Usage Example Fetch from the `LIST Accounts` endpoint and view a company's accounts.
17
+ # # The Account Object ### Description An `Account` represents a category in a company’s ledger in which a financial transaction is recorded against. The aggregation of each `Account` object is often referred to as the **Chart of Accounts**. An `Account` can be classified into one of the following categories, determined through the `classification` field: * __Asset:__ Accounts Receivable and Bank Accounts * __Liability:__ Accounts Payable and Credit Card Accounts * __Equity:__ Treasury Accounts and Retained Earnings * __Revenue:__ Income and Other Income * __Expense:__ Cost of Goods Sold and Office Expenses ### Usage Example Fetch from the `LIST Accounts` endpoint and view a company's accounts.
18
18
  class Account
19
19
  attr_accessor :id
20
20
 
@@ -51,9 +51,14 @@ module MergeAccountingClient
51
51
  # The company the account belongs to.
52
52
  attr_accessor :company
53
53
 
54
- # Indicates whether or not this object has been deleted by third party webhooks.
54
+ # Indicates whether or not this object has been deleted in the third party platform.
55
55
  attr_accessor :remote_was_deleted
56
56
 
57
+ attr_accessor :created_at
58
+
59
+ # This is the datetime that this object was last updated by Merge
60
+ attr_accessor :modified_at
61
+
57
62
  attr_accessor :field_mappings
58
63
 
59
64
  attr_accessor :remote_data
@@ -74,6 +79,8 @@ module MergeAccountingClient
74
79
  :'parent_account' => :'parent_account',
75
80
  :'company' => :'company',
76
81
  :'remote_was_deleted' => :'remote_was_deleted',
82
+ :'created_at' => :'created_at',
83
+ :'modified_at' => :'modified_at',
77
84
  :'field_mappings' => :'field_mappings',
78
85
  :'remote_data' => :'remote_data'
79
86
  }
@@ -100,6 +107,8 @@ module MergeAccountingClient
100
107
  :'parent_account' => :'String',
101
108
  :'company' => :'String',
102
109
  :'remote_was_deleted' => :'Boolean',
110
+ :'created_at' => :'Time',
111
+ :'modified_at' => :'Time',
103
112
  :'field_mappings' => :'Hash<String, Object>',
104
113
  :'remote_data' => :'Array<RemoteData>'
105
114
  }
@@ -191,6 +200,14 @@ module MergeAccountingClient
191
200
  self.remote_was_deleted = attributes[:'remote_was_deleted']
192
201
  end
193
202
 
203
+ if attributes.key?(:'created_at')
204
+ self.created_at = attributes[:'created_at']
205
+ end
206
+
207
+ if attributes.key?(:'modified_at')
208
+ self.modified_at = attributes[:'modified_at']
209
+ end
210
+
194
211
  if attributes.key?(:'field_mappings')
195
212
  if (value = attributes[:'field_mappings']).is_a?(Hash)
196
213
  self.field_mappings = value
@@ -235,6 +252,8 @@ module MergeAccountingClient
235
252
  parent_account == o.parent_account &&
236
253
  company == o.company &&
237
254
  remote_was_deleted == o.remote_was_deleted &&
255
+ created_at == o.created_at &&
256
+ modified_at == o.modified_at &&
238
257
  field_mappings == o.field_mappings &&
239
258
  remote_data == o.remote_data
240
259
  end
@@ -248,7 +267,7 @@ module MergeAccountingClient
248
267
  # Calculates hash code according to all attributes.
249
268
  # @return [Integer] Hash code
250
269
  def hash
251
- [id, remote_id, name, description, classification, type, status, current_balance, currency, account_number, parent_account, company, remote_was_deleted, field_mappings, remote_data].hash
270
+ [id, remote_id, name, description, classification, type, status, current_balance, currency, account_number, parent_account, company, remote_was_deleted, created_at, modified_at, field_mappings, remote_data].hash
252
271
  end
253
272
 
254
273
  # Builds the object from hash
@@ -32,6 +32,15 @@ module MergeAccountingClient
32
32
 
33
33
  attr_accessor :slug
34
34
 
35
+ # If checked, this integration will not appear in the linking flow, and will appear elsewhere with a Beta tag.
36
+ attr_accessor :is_in_beta
37
+
38
+ # Mapping of API endpoints to documentation urls for support. Example: {'GET': [['/common-model-scopes', 'https://docs.merge.dev/accounting/common-model-scopes/#common_model_scopes_retrieve'],['/common-model-actions', 'https://docs.merge.dev/accounting/common-model-actions/#common_model_actions_retrieve']], 'POST': []}
39
+ attr_accessor :api_endpoints_to_documentation_urls
40
+
41
+ # Setup guide URL for third party webhook creation. Exposed in Merge Docs.
42
+ attr_accessor :webhook_setup_guide_url
43
+
35
44
  # Attribute mapping from ruby-style variable name to JSON key.
36
45
  def self.attribute_map
37
46
  {
@@ -40,7 +49,10 @@ module MergeAccountingClient
40
49
  :'image' => :'image',
41
50
  :'square_image' => :'square_image',
42
51
  :'color' => :'color',
43
- :'slug' => :'slug'
52
+ :'slug' => :'slug',
53
+ :'is_in_beta' => :'is_in_beta',
54
+ :'api_endpoints_to_documentation_urls' => :'api_endpoints_to_documentation_urls',
55
+ :'webhook_setup_guide_url' => :'webhook_setup_guide_url'
44
56
  }
45
57
  end
46
58
 
@@ -57,7 +69,10 @@ module MergeAccountingClient
57
69
  :'image' => :'String',
58
70
  :'square_image' => :'String',
59
71
  :'color' => :'String',
60
- :'slug' => :'String'
72
+ :'slug' => :'String',
73
+ :'is_in_beta' => :'Boolean',
74
+ :'api_endpoints_to_documentation_urls' => :'Hash<String, Object>',
75
+ :'webhook_setup_guide_url' => :'String'
61
76
  }
62
77
  end
63
78
 
@@ -66,6 +81,7 @@ module MergeAccountingClient
66
81
  Set.new([
67
82
  :'image',
68
83
  :'square_image',
84
+ :'webhook_setup_guide_url'
69
85
  ])
70
86
  end
71
87
 
@@ -109,6 +125,20 @@ module MergeAccountingClient
109
125
  if attributes.key?(:'slug')
110
126
  self.slug = attributes[:'slug']
111
127
  end
128
+
129
+ if attributes.key?(:'is_in_beta')
130
+ self.is_in_beta = attributes[:'is_in_beta']
131
+ end
132
+
133
+ if attributes.key?(:'api_endpoints_to_documentation_urls')
134
+ if (value = attributes[:'api_endpoints_to_documentation_urls']).is_a?(Hash)
135
+ self.api_endpoints_to_documentation_urls = value
136
+ end
137
+ end
138
+
139
+ if attributes.key?(:'webhook_setup_guide_url')
140
+ self.webhook_setup_guide_url = attributes[:'webhook_setup_guide_url']
141
+ end
112
142
  end
113
143
 
114
144
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -165,7 +195,10 @@ module MergeAccountingClient
165
195
  image == o.image &&
166
196
  square_image == o.square_image &&
167
197
  color == o.color &&
168
- slug == o.slug
198
+ slug == o.slug &&
199
+ is_in_beta == o.is_in_beta &&
200
+ api_endpoints_to_documentation_urls == o.api_endpoints_to_documentation_urls &&
201
+ webhook_setup_guide_url == o.webhook_setup_guide_url
169
202
  end
170
203
 
171
204
  # @see the `==` method
@@ -177,7 +210,7 @@ module MergeAccountingClient
177
210
  # Calculates hash code according to all attributes.
178
211
  # @return [Integer] Hash code
179
212
  def hash
180
- [name, categories, image, square_image, color, slug].hash
213
+ [name, categories, image, square_image, color, slug, is_in_beta, api_endpoints_to_documentation_urls, webhook_setup_guide_url].hash
181
214
  end
182
215
 
183
216
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeAccountingClient
17
- # # The Account Object ### Description The `Account` object is what companies use to track transactions. They can be both bank accounts or a general ledger account (also called a chart of accounts). ### Usage Example Fetch from the `LIST Accounts` endpoint and view a company's accounts.
17
+ # # The Account Object ### Description An `Account` represents a category in a company’s ledger in which a financial transaction is recorded against. The aggregation of each `Account` object is often referred to as the **Chart of Accounts**. An `Account` can be classified into one of the following categories, determined through the `classification` field: * __Asset:__ Accounts Receivable and Bank Accounts * __Liability:__ Accounts Payable and Credit Card Accounts * __Equity:__ Treasury Accounts and Retained Earnings * __Revenue:__ Income and Other Income * __Expense:__ Cost of Goods Sold and Office Expenses ### Usage Example Fetch from the `LIST Accounts` endpoint and view a company's accounts.
18
18
  class AccountRequest
19
19
  # The account's name.
20
20
  attr_accessor :name
@@ -30,9 +30,14 @@ module MergeAccountingClient
30
30
  # The company the accounting attachment belongs to.
31
31
  attr_accessor :company
32
32
 
33
- # Indicates whether or not this object has been deleted by third party webhooks.
33
+ # Indicates whether or not this object has been deleted in the third party platform.
34
34
  attr_accessor :remote_was_deleted
35
35
 
36
+ attr_accessor :created_at
37
+
38
+ # This is the datetime that this object was last updated by Merge
39
+ attr_accessor :modified_at
40
+
36
41
  attr_accessor :field_mappings
37
42
 
38
43
  attr_accessor :remote_data
@@ -46,6 +51,8 @@ module MergeAccountingClient
46
51
  :'file_url' => :'file_url',
47
52
  :'company' => :'company',
48
53
  :'remote_was_deleted' => :'remote_was_deleted',
54
+ :'created_at' => :'created_at',
55
+ :'modified_at' => :'modified_at',
49
56
  :'field_mappings' => :'field_mappings',
50
57
  :'remote_data' => :'remote_data'
51
58
  }
@@ -65,6 +72,8 @@ module MergeAccountingClient
65
72
  :'file_url' => :'String',
66
73
  :'company' => :'String',
67
74
  :'remote_was_deleted' => :'Boolean',
75
+ :'created_at' => :'Time',
76
+ :'modified_at' => :'Time',
68
77
  :'field_mappings' => :'Hash<String, Object>',
69
78
  :'remote_data' => :'Array<RemoteData>'
70
79
  }
@@ -121,6 +130,14 @@ module MergeAccountingClient
121
130
  self.remote_was_deleted = attributes[:'remote_was_deleted']
122
131
  end
123
132
 
133
+ if attributes.key?(:'created_at')
134
+ self.created_at = attributes[:'created_at']
135
+ end
136
+
137
+ if attributes.key?(:'modified_at')
138
+ self.modified_at = attributes[:'modified_at']
139
+ end
140
+
124
141
  if attributes.key?(:'field_mappings')
125
142
  if (value = attributes[:'field_mappings']).is_a?(Hash)
126
143
  self.field_mappings = value
@@ -173,6 +190,8 @@ module MergeAccountingClient
173
190
  file_url == o.file_url &&
174
191
  company == o.company &&
175
192
  remote_was_deleted == o.remote_was_deleted &&
193
+ created_at == o.created_at &&
194
+ modified_at == o.modified_at &&
176
195
  field_mappings == o.field_mappings &&
177
196
  remote_data == o.remote_data
178
197
  end
@@ -186,7 +205,7 @@ module MergeAccountingClient
186
205
  # Calculates hash code according to all attributes.
187
206
  # @return [Integer] Hash code
188
207
  def hash
189
- [id, remote_id, file_name, file_url, company, remote_was_deleted, field_mappings, remote_data].hash
208
+ [id, remote_id, file_name, file_url, company, remote_was_deleted, created_at, modified_at, field_mappings, remote_data].hash
190
209
  end
191
210
 
192
211
  # Builds the object from hash