merge_accounting_client 1.0.3 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (331) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +61 -5
  3. data/docs/Account.md +12 -8
  4. data/docs/AccountEndpointRequest.md +18 -0
  5. data/docs/AccountIntegration.md +1 -1
  6. data/docs/AccountRequest.md +40 -0
  7. data/docs/AccountResponse.md +24 -0
  8. data/docs/AccountingAttachment.md +7 -3
  9. data/docs/AccountingAttachmentEndpointRequest.md +18 -0
  10. data/docs/AccountingAttachmentRequest.md +26 -0
  11. data/docs/AccountingAttachmentResponse.md +24 -0
  12. data/docs/AccountingPhoneNumberRequest.md +24 -0
  13. data/docs/AccountsApi.md +163 -5
  14. data/docs/Address.md +5 -3
  15. data/docs/AddressesApi.md +4 -2
  16. data/docs/AttachmentsApi.md +154 -0
  17. data/docs/BalanceSheet.md +11 -7
  18. data/docs/BalanceSheetsApi.md +2 -0
  19. data/docs/CashFlowStatement.md +11 -7
  20. data/docs/CashFlowStatementsApi.md +2 -0
  21. data/docs/CommonModelScopeData.md +20 -0
  22. data/docs/CommonModelScopes.md +20 -0
  23. data/docs/CommonModelScopesApi.md +157 -0
  24. data/docs/CommonModelScopesBodyRequest.md +22 -0
  25. data/docs/CommonModelScopesDisabledModels.md +26 -0
  26. data/docs/CommonModelScopesDisabledModelsEnabledActionsEnum.md +15 -0
  27. data/docs/CommonModelScopesPostInnerDeserializerRequest.md +22 -0
  28. data/docs/CommonModelScopesUpdateSerializer.md +18 -0
  29. data/docs/CompanyInfo.md +6 -4
  30. data/docs/CompanyInfoApi.md +0 -4
  31. data/docs/ConditionSchema.md +30 -0
  32. data/docs/ConditionTypeEnum.md +15 -0
  33. data/docs/Contact.md +8 -4
  34. data/docs/ContactEndpointRequest.md +18 -0
  35. data/docs/ContactRequest.md +40 -0
  36. data/docs/ContactResponse.md +24 -0
  37. data/docs/ContactsApi.md +163 -9
  38. data/docs/CreditNote.md +12 -8
  39. data/docs/CreditNoteLineItem.md +7 -3
  40. data/docs/CreditNotesApi.md +15 -9
  41. data/docs/DataPassthroughRequest.md +1 -1
  42. data/docs/EnabledActionsEnum.md +15 -0
  43. data/docs/EndUserDetailsRequest.md +5 -3
  44. data/docs/Expense.md +18 -12
  45. data/docs/ExpenseEndpointRequest.md +18 -0
  46. data/docs/ExpenseLine.md +11 -5
  47. data/docs/ExpenseLineRequest.md +38 -0
  48. data/docs/ExpenseRequest.md +38 -0
  49. data/docs/ExpenseResponse.md +24 -0
  50. data/docs/ExpensesApi.md +159 -5
  51. data/docs/IncomeStatement.md +15 -11
  52. data/docs/IncomeStatementsApi.md +2 -0
  53. data/docs/Invoice.md +21 -15
  54. data/docs/InvoiceLineItem.md +15 -5
  55. data/docs/InvoiceLineItemRequest.md +15 -3
  56. data/docs/InvoiceRequest.md +17 -11
  57. data/docs/InvoicesApi.md +16 -10
  58. data/docs/Issue.md +9 -7
  59. data/docs/IssuesApi.md +2 -2
  60. data/docs/Item.md +11 -7
  61. data/docs/ItemsApi.md +11 -9
  62. data/docs/JournalEntriesApi.md +7 -5
  63. data/docs/JournalEntry.md +18 -10
  64. data/docs/JournalEntryRequest.md +14 -8
  65. data/docs/JournalLine.md +6 -4
  66. data/docs/JournalLineRequest.md +10 -4
  67. data/docs/LinkToken.md +1 -1
  68. data/docs/LinkedAccountCondition.md +28 -0
  69. data/docs/LinkedAccountConditionRequest.md +22 -0
  70. data/docs/LinkedAccountSelectiveSyncConfiguration.md +18 -0
  71. data/docs/LinkedAccountSelectiveSyncConfigurationListRequest.md +18 -0
  72. data/docs/LinkedAccountSelectiveSyncConfigurationRequest.md +18 -0
  73. data/docs/LinkedAccountsApi.md +2 -2
  74. data/docs/MetaResponse.md +2 -0
  75. data/docs/MultipartFormFieldRequest.md +1 -1
  76. data/docs/OperatorSchema.md +20 -0
  77. data/docs/PaginatedConditionSchemaList.md +22 -0
  78. data/docs/Payment.md +14 -6
  79. data/docs/PaymentEndpointRequest.md +18 -0
  80. data/docs/PaymentRequest.md +34 -0
  81. data/docs/PaymentResponse.md +24 -0
  82. data/docs/PaymentsApi.md +159 -5
  83. data/docs/PostingStatusEnum.md +15 -0
  84. data/docs/PurchaseOrder.md +19 -13
  85. data/docs/PurchaseOrderEndpointRequest.md +18 -0
  86. data/docs/PurchaseOrderLineItem.md +10 -2
  87. data/docs/PurchaseOrderLineItemRequest.md +44 -0
  88. data/docs/PurchaseOrderRequest.md +44 -0
  89. data/docs/PurchaseOrderResponse.md +24 -0
  90. data/docs/PurchaseOrdersApi.md +167 -9
  91. data/docs/RemoteDataRequest.md +1 -1
  92. data/docs/ReportItem.md +3 -1
  93. data/docs/SelectiveSyncApi.md +233 -0
  94. data/docs/SelectiveSyncConfigurationsUsageEnum.md +15 -0
  95. data/docs/SyncStatus.md +5 -3
  96. data/docs/TaxRate.md +11 -7
  97. data/docs/TaxRatesApi.md +2 -0
  98. data/docs/TrackingCategoriesApi.md +11 -5
  99. data/docs/TrackingCategory.md +14 -8
  100. data/docs/Transaction.md +20 -14
  101. data/docs/TransactionLineItem.md +9 -3
  102. data/docs/TransactionsApi.md +7 -5
  103. data/docs/VendorCredit.md +13 -7
  104. data/docs/VendorCreditLine.md +6 -2
  105. data/docs/VendorCreditsApi.md +7 -5
  106. data/lib/merge_accounting_client/api/accounts_api.rb +159 -4
  107. data/lib/merge_accounting_client/api/addresses_api.rb +9 -2
  108. data/lib/merge_accounting_client/api/attachments_api.rb +141 -0
  109. data/lib/merge_accounting_client/api/balance_sheets_api.rb +3 -0
  110. data/lib/merge_accounting_client/api/cash_flow_statements_api.rb +3 -0
  111. data/lib/merge_accounting_client/api/common_model_scopes_api.rb +146 -0
  112. data/lib/merge_accounting_client/api/company_info_api.rb +0 -14
  113. data/lib/merge_accounting_client/api/contacts_api.rb +159 -18
  114. data/lib/merge_accounting_client/api/credit_notes_api.rb +27 -18
  115. data/lib/merge_accounting_client/api/expenses_api.rb +147 -14
  116. data/lib/merge_accounting_client/api/income_statements_api.rb +3 -0
  117. data/lib/merge_accounting_client/api/invoices_api.rb +29 -20
  118. data/lib/merge_accounting_client/api/issues_api.rb +2 -2
  119. data/lib/merge_accounting_client/api/items_api.rb +21 -18
  120. data/lib/merge_accounting_client/api/journal_entries_api.rb +9 -14
  121. data/lib/merge_accounting_client/api/linked_accounts_api.rb +3 -3
  122. data/lib/merge_accounting_client/api/payments_api.rb +147 -14
  123. data/lib/merge_accounting_client/api/purchase_orders_api.rb +165 -18
  124. data/lib/merge_accounting_client/api/selective_sync_api.rb +225 -0
  125. data/lib/merge_accounting_client/api/tax_rates_api.rb +3 -0
  126. data/lib/merge_accounting_client/api/tracking_categories_api.rb +21 -4
  127. data/lib/merge_accounting_client/api/transactions_api.rb +9 -14
  128. data/lib/merge_accounting_client/api/vendor_credits_api.rb +9 -14
  129. data/lib/merge_accounting_client/api_client.rb +0 -3
  130. data/lib/merge_accounting_client/models/account.rb +45 -21
  131. data/lib/merge_accounting_client/models/account_details_and_actions_status_enum.rb +1 -1
  132. data/lib/merge_accounting_client/models/account_endpoint_request.rb +223 -0
  133. data/lib/merge_accounting_client/models/account_integration.rb +1 -1
  134. data/lib/merge_accounting_client/models/account_request.rb +344 -0
  135. data/lib/merge_accounting_client/models/account_response.rb +266 -0
  136. data/lib/merge_accounting_client/models/account_status_enum.rb +1 -1
  137. data/lib/merge_accounting_client/models/accounting_attachment.rb +39 -16
  138. data/lib/merge_accounting_client/models/accounting_attachment_endpoint_request.rb +223 -0
  139. data/lib/merge_accounting_client/models/accounting_attachment_request.rb +282 -0
  140. data/lib/merge_accounting_client/models/accounting_attachment_response.rb +266 -0
  141. data/lib/merge_accounting_client/models/accounting_phone_number_request.rb +256 -0
  142. data/lib/merge_accounting_client/models/address.rb +16 -5
  143. data/lib/merge_accounting_client/models/address_type_enum.rb +1 -1
  144. data/lib/merge_accounting_client/models/balance_sheet.rb +41 -18
  145. data/lib/merge_accounting_client/models/cash_flow_statement.rb +41 -18
  146. data/lib/merge_accounting_client/models/categories_enum.rb +4 -2
  147. data/lib/merge_accounting_client/models/category_enum.rb +4 -2
  148. data/lib/merge_accounting_client/models/category_type_enum.rb +1 -1
  149. data/lib/merge_accounting_client/models/classification_enum.rb +1 -1
  150. data/lib/merge_accounting_client/models/common_model_scope_data.rb +234 -0
  151. data/lib/merge_accounting_client/models/common_model_scopes.rb +234 -0
  152. data/lib/merge_accounting_client/models/common_model_scopes_body_request.rb +274 -0
  153. data/lib/merge_accounting_client/models/common_model_scopes_disabled_models.rb +283 -0
  154. data/lib/merge_accounting_client/models/common_model_scopes_disabled_models_enabled_actions_enum.rb +45 -0
  155. data/lib/merge_accounting_client/models/common_model_scopes_post_inner_deserializer_request.rb +274 -0
  156. data/lib/merge_accounting_client/models/common_model_scopes_update_serializer.rb +226 -0
  157. data/lib/merge_accounting_client/models/company_info.rb +29 -17
  158. data/lib/merge_accounting_client/models/condition_schema.rb +298 -0
  159. data/lib/merge_accounting_client/models/condition_type_enum.rb +50 -0
  160. data/lib/merge_accounting_client/models/contact.rb +41 -18
  161. data/lib/merge_accounting_client/models/contact_endpoint_request.rb +223 -0
  162. data/lib/merge_accounting_client/models/contact_request.rb +346 -0
  163. data/lib/merge_accounting_client/models/contact_response.rb +266 -0
  164. data/lib/merge_accounting_client/models/country_enum.rb +1 -1
  165. data/lib/merge_accounting_client/models/credit_note.rb +43 -20
  166. data/lib/merge_accounting_client/models/credit_note_line_item.rb +40 -12
  167. data/lib/merge_accounting_client/models/credit_note_status_enum.rb +1 -1
  168. data/lib/merge_accounting_client/models/currency_enum.rb +1 -1
  169. data/lib/merge_accounting_client/models/data_passthrough_request.rb +2 -1
  170. data/lib/merge_accounting_client/models/enabled_actions_enum.rb +45 -0
  171. data/lib/merge_accounting_client/models/encoding_enum.rb +1 -1
  172. data/lib/merge_accounting_client/models/end_user_details_request.rb +20 -7
  173. data/lib/merge_accounting_client/models/expense.rb +91 -38
  174. data/lib/merge_accounting_client/models/expense_endpoint_request.rb +223 -0
  175. data/lib/merge_accounting_client/models/expense_line.rb +51 -17
  176. data/lib/merge_accounting_client/models/expense_line_request.rb +332 -0
  177. data/lib/merge_accounting_client/models/expense_request.rb +350 -0
  178. data/lib/merge_accounting_client/models/expense_response.rb +266 -0
  179. data/lib/merge_accounting_client/models/income_statement.rb +44 -21
  180. data/lib/merge_accounting_client/models/invoice.rb +94 -42
  181. data/lib/merge_accounting_client/models/invoice_line_item.rb +99 -26
  182. data/lib/merge_accounting_client/models/invoice_line_item_request.rb +102 -17
  183. data/lib/merge_accounting_client/models/invoice_request.rb +85 -32
  184. data/lib/merge_accounting_client/models/invoice_type_enum.rb +1 -1
  185. data/lib/merge_accounting_client/models/issue.rb +16 -5
  186. data/lib/merge_accounting_client/models/item.rb +44 -19
  187. data/lib/merge_accounting_client/models/journal_entry.rb +100 -38
  188. data/lib/merge_accounting_client/models/journal_entry_request.rb +92 -40
  189. data/lib/merge_accounting_client/models/journal_line.rb +28 -17
  190. data/lib/merge_accounting_client/models/journal_line_request.rb +52 -17
  191. data/lib/merge_accounting_client/models/link_token.rb +0 -5
  192. data/lib/merge_accounting_client/models/linked_account_condition.rb +282 -0
  193. data/lib/merge_accounting_client/models/linked_account_condition_request.rb +269 -0
  194. data/lib/merge_accounting_client/models/linked_account_selective_sync_configuration.rb +221 -0
  195. data/lib/merge_accounting_client/models/linked_account_selective_sync_configuration_list_request.rb +226 -0
  196. data/lib/merge_accounting_client/models/linked_account_selective_sync_configuration_request.rb +226 -0
  197. data/lib/merge_accounting_client/models/meta_response.rb +13 -2
  198. data/lib/merge_accounting_client/models/method_enum.rb +1 -1
  199. data/lib/merge_accounting_client/models/multipart_form_field_request.rb +1 -1
  200. data/lib/merge_accounting_client/models/operator_schema.rb +229 -0
  201. data/lib/merge_accounting_client/models/paginated_condition_schema_list.rb +240 -0
  202. data/lib/merge_accounting_client/models/payment.rb +82 -18
  203. data/lib/merge_accounting_client/models/payment_endpoint_request.rb +223 -0
  204. data/lib/merge_accounting_client/models/payment_request.rb +328 -0
  205. data/lib/merge_accounting_client/models/payment_response.rb +266 -0
  206. data/lib/merge_accounting_client/models/posting_status_enum.rb +45 -0
  207. data/lib/merge_accounting_client/models/purchase_order.rb +92 -41
  208. data/lib/merge_accounting_client/models/purchase_order_endpoint_request.rb +223 -0
  209. data/lib/merge_accounting_client/models/purchase_order_line_item.rb +79 -12
  210. data/lib/merge_accounting_client/models/purchase_order_line_item_request.rb +422 -0
  211. data/lib/merge_accounting_client/models/purchase_order_request.rb +383 -0
  212. data/lib/merge_accounting_client/models/purchase_order_response.rb +266 -0
  213. data/lib/merge_accounting_client/models/purchase_order_status_enum.rb +1 -1
  214. data/lib/merge_accounting_client/models/remote_data.rb +1 -1
  215. data/lib/merge_accounting_client/models/remote_data_request.rb +1 -1
  216. data/lib/merge_accounting_client/models/remote_response.rb +3 -6
  217. data/lib/merge_accounting_client/models/report_item.rb +15 -4
  218. data/lib/merge_accounting_client/models/request_format_enum.rb +1 -1
  219. data/lib/merge_accounting_client/models/response_type_enum.rb +1 -1
  220. data/lib/merge_accounting_client/models/selective_sync_configurations_usage_enum.rb +45 -0
  221. data/lib/merge_accounting_client/models/state_enum.rb +1 -1
  222. data/lib/merge_accounting_client/models/status7d1_enum.rb +1 -1
  223. data/lib/merge_accounting_client/models/sync_status.rb +13 -4
  224. data/lib/merge_accounting_client/models/sync_status_status_enum.rb +1 -1
  225. data/lib/merge_accounting_client/models/tax_rate.rb +59 -36
  226. data/lib/merge_accounting_client/models/tracking_category.rb +72 -38
  227. data/lib/merge_accounting_client/models/transaction.rb +97 -46
  228. data/lib/merge_accounting_client/models/transaction_line_item.rb +75 -19
  229. data/lib/merge_accounting_client/models/vendor_credit.rb +70 -18
  230. data/lib/merge_accounting_client/models/vendor_credit_line.rb +34 -6
  231. data/lib/merge_accounting_client/version.rb +1 -1
  232. data/lib/merge_accounting_client.rb +42 -1
  233. data/spec/api/accounts_api_spec.rb +30 -2
  234. data/spec/api/addresses_api_spec.rb +2 -1
  235. data/spec/api/attachments_api_spec.rb +26 -0
  236. data/spec/api/balance_sheets_api_spec.rb +1 -0
  237. data/spec/api/cash_flow_statements_api_spec.rb +1 -0
  238. data/spec/api/common_model_scopes_api_spec.rb +58 -0
  239. data/spec/api/company_info_api_spec.rb +0 -2
  240. data/spec/api/contacts_api_spec.rb +30 -4
  241. data/spec/api/credit_notes_api_spec.rb +7 -4
  242. data/spec/api/expenses_api_spec.rb +28 -2
  243. data/spec/api/income_statements_api_spec.rb +1 -0
  244. data/spec/api/invoices_api_spec.rb +8 -5
  245. data/spec/api/issues_api_spec.rb +1 -1
  246. data/spec/api/items_api_spec.rb +5 -4
  247. data/spec/api/journal_entries_api_spec.rb +3 -2
  248. data/spec/api/linked_accounts_api_spec.rb +1 -1
  249. data/spec/api/payments_api_spec.rb +28 -2
  250. data/spec/api/purchase_orders_api_spec.rb +32 -4
  251. data/spec/api/selective_sync_api_spec.rb +72 -0
  252. data/spec/api/tax_rates_api_spec.rb +1 -0
  253. data/spec/api/tracking_categories_api_spec.rb +5 -2
  254. data/spec/api/transactions_api_spec.rb +3 -2
  255. data/spec/api/vendor_credits_api_spec.rb +3 -2
  256. data/spec/models/account_endpoint_request_spec.rb +34 -0
  257. data/spec/models/account_request_spec.rb +100 -0
  258. data/spec/models/account_response_spec.rb +52 -0
  259. data/spec/models/account_spec.rb +18 -6
  260. data/spec/models/accounting_attachment_endpoint_request_spec.rb +34 -0
  261. data/spec/models/accounting_attachment_request_spec.rb +58 -0
  262. data/spec/models/accounting_attachment_response_spec.rb +52 -0
  263. data/spec/models/accounting_attachment_spec.rb +15 -3
  264. data/spec/models/accounting_phone_number_request_spec.rb +52 -0
  265. data/spec/models/address_spec.rb +6 -0
  266. data/spec/models/balance_sheet_spec.rb +15 -3
  267. data/spec/models/cash_flow_statement_spec.rb +15 -3
  268. data/spec/models/common_model_scope_data_spec.rb +40 -0
  269. data/spec/models/common_model_scopes_body_request_spec.rb +46 -0
  270. data/spec/models/common_model_scopes_disabled_models_enabled_actions_enum_spec.rb +28 -0
  271. data/spec/models/common_model_scopes_disabled_models_spec.rb +58 -0
  272. data/spec/models/common_model_scopes_post_inner_deserializer_request_spec.rb +46 -0
  273. data/spec/models/common_model_scopes_spec.rb +40 -0
  274. data/spec/models/common_model_scopes_update_serializer_spec.rb +34 -0
  275. data/spec/models/company_info_spec.rb +12 -6
  276. data/spec/models/condition_schema_spec.rb +70 -0
  277. data/spec/models/condition_type_enum_spec.rb +28 -0
  278. data/spec/models/contact_endpoint_request_spec.rb +34 -0
  279. data/spec/models/contact_request_spec.rb +100 -0
  280. data/spec/models/contact_response_spec.rb +52 -0
  281. data/spec/models/contact_spec.rb +18 -6
  282. data/spec/models/credit_note_line_item_spec.rb +12 -0
  283. data/spec/models/credit_note_spec.rb +17 -5
  284. data/spec/models/enabled_actions_enum_spec.rb +28 -0
  285. data/spec/models/end_user_details_request_spec.rb +6 -0
  286. data/spec/models/expense_endpoint_request_spec.rb +34 -0
  287. data/spec/models/expense_line_request_spec.rb +94 -0
  288. data/spec/models/expense_line_spec.rb +22 -4
  289. data/spec/models/expense_request_spec.rb +94 -0
  290. data/spec/models/expense_response_spec.rb +52 -0
  291. data/spec/models/expense_spec.rb +30 -12
  292. data/spec/models/income_statement_spec.rb +15 -3
  293. data/spec/models/invoice_line_item_request_spec.rb +41 -5
  294. data/spec/models/invoice_line_item_spec.rb +36 -6
  295. data/spec/models/invoice_request_spec.rb +26 -8
  296. data/spec/models/invoice_spec.rb +34 -16
  297. data/spec/models/issue_spec.rb +6 -0
  298. data/spec/models/item_spec.rb +18 -6
  299. data/spec/models/journal_entry_request_spec.rb +25 -7
  300. data/spec/models/journal_entry_spec.rb +35 -11
  301. data/spec/models/journal_line_request_spec.rb +22 -4
  302. data/spec/models/journal_line_spec.rb +10 -4
  303. data/spec/models/linked_account_condition_request_spec.rb +46 -0
  304. data/spec/models/linked_account_condition_spec.rb +64 -0
  305. data/spec/models/linked_account_selective_sync_configuration_list_request_spec.rb +34 -0
  306. data/spec/models/linked_account_selective_sync_configuration_request_spec.rb +34 -0
  307. data/spec/models/linked_account_selective_sync_configuration_spec.rb +34 -0
  308. data/spec/models/meta_response_spec.rb +6 -0
  309. data/spec/models/operator_schema_spec.rb +40 -0
  310. data/spec/models/paginated_condition_schema_list_spec.rb +46 -0
  311. data/spec/models/payment_endpoint_request_spec.rb +34 -0
  312. data/spec/models/payment_request_spec.rb +82 -0
  313. data/spec/models/payment_response_spec.rb +52 -0
  314. data/spec/models/payment_spec.rb +28 -4
  315. data/spec/models/posting_status_enum_spec.rb +28 -0
  316. data/spec/models/purchase_order_endpoint_request_spec.rb +34 -0
  317. data/spec/models/purchase_order_line_item_request_spec.rb +112 -0
  318. data/spec/models/purchase_order_line_item_spec.rb +24 -0
  319. data/spec/models/purchase_order_request_spec.rb +112 -0
  320. data/spec/models/purchase_order_response_spec.rb +52 -0
  321. data/spec/models/purchase_order_spec.rb +34 -16
  322. data/spec/models/report_item_spec.rb +6 -0
  323. data/spec/models/selective_sync_configurations_usage_enum_spec.rb +28 -0
  324. data/spec/models/sync_status_spec.rb +6 -0
  325. data/spec/models/tax_rate_spec.rb +19 -7
  326. data/spec/models/tracking_category_spec.rb +25 -7
  327. data/spec/models/transaction_line_item_spec.rb +19 -1
  328. data/spec/models/transaction_spec.rb +30 -12
  329. data/spec/models/vendor_credit_line_spec.rb +12 -0
  330. data/spec/models/vendor_credit_spec.rb +24 -6
  331. metadata +283 -115
@@ -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)
@@ -27,13 +27,17 @@ module MergeAccountingClient
27
27
 
28
28
  attr_accessor :sub_items
29
29
 
30
+ # The company the report item belongs to.
31
+ attr_accessor :company
32
+
30
33
  # Attribute mapping from ruby-style variable name to JSON key.
31
34
  def self.attribute_map
32
35
  {
33
36
  :'remote_id' => :'remote_id',
34
37
  :'name' => :'name',
35
38
  :'value' => :'value',
36
- :'sub_items' => :'sub_items'
39
+ :'sub_items' => :'sub_items',
40
+ :'company' => :'company'
37
41
  }
38
42
  end
39
43
 
@@ -48,7 +52,8 @@ module MergeAccountingClient
48
52
  :'remote_id' => :'String',
49
53
  :'name' => :'String',
50
54
  :'value' => :'Float',
51
- :'sub_items' => :'Hash<String, AnyType>'
55
+ :'sub_items' => :'Hash<String, Object>',
56
+ :'company' => :'String'
52
57
  }
53
58
  end
54
59
 
@@ -58,6 +63,7 @@ module MergeAccountingClient
58
63
  :'remote_id',
59
64
  :'name',
60
65
  :'value',
66
+ :'company'
61
67
  ])
62
68
  end
63
69
 
@@ -93,6 +99,10 @@ module MergeAccountingClient
93
99
  self.sub_items = value
94
100
  end
95
101
  end
102
+
103
+ if attributes.key?(:'company')
104
+ self.company = attributes[:'company']
105
+ end
96
106
  end
97
107
 
98
108
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -116,7 +126,8 @@ module MergeAccountingClient
116
126
  remote_id == o.remote_id &&
117
127
  name == o.name &&
118
128
  value == o.value &&
119
- sub_items == o.sub_items
129
+ sub_items == o.sub_items &&
130
+ company == o.company
120
131
  end
121
132
 
122
133
  # @see the `==` method
@@ -128,7 +139,7 @@ module MergeAccountingClient
128
139
  # Calculates hash code according to all attributes.
129
140
  # @return [Integer] Hash code
130
141
  def hash
131
- [remote_id, name, value, sub_items].hash
142
+ [remote_id, name, value, sub_items, company].hash
132
143
  end
133
144
 
134
145
  # Builds the object from hash
@@ -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
 
@@ -0,0 +1,45 @@
1
+ =begin
2
+ #Merge Accounting API
3
+
4
+ #The unified API for building rich integrations with multiple Accounting & Finance platforms.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: hello@merge.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module MergeAccountingClient
17
+ class SelectiveSyncConfigurationsUsageEnum
18
+ NEXT_SYNC = "IN_NEXT_SYNC".freeze
19
+ LAST_SYNC = "IN_LAST_SYNC".freeze
20
+
21
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
22
+
23
+ attr_accessor :value
24
+ attr_accessor :raw_value
25
+
26
+ # Builds the enum from string
27
+ # @param [String] The enum value in the form of the string
28
+ # @return [String] The enum value
29
+ def build_from_hash(value)
30
+ @raw_value = value
31
+ if ["IN_NEXT_SYNC", "IN_LAST_SYNC", ].include? value
32
+ @value = value
33
+ else
34
+ @value = MERGE_NONSTANDARD_VALUE
35
+ end
36
+
37
+ self
38
+ end
39
+
40
+ def self.build_from_hash(value)
41
+ SelectiveSyncConfigurationsUsageEnum.new.build_from_hash(value)
42
+ end
43
+ end
44
+
45
+ end
@@ -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
 
@@ -28,6 +28,8 @@ module MergeAccountingClient
28
28
 
29
29
  attr_accessor :is_initial_sync
30
30
 
31
+ attr_accessor :selective_sync_configurations_usage
32
+
31
33
  # Attribute mapping from ruby-style variable name to JSON key.
32
34
  def self.attribute_map
33
35
  {
@@ -36,7 +38,8 @@ module MergeAccountingClient
36
38
  :'last_sync_start' => :'last_sync_start',
37
39
  :'next_sync_start' => :'next_sync_start',
38
40
  :'status' => :'status',
39
- :'is_initial_sync' => :'is_initial_sync'
41
+ :'is_initial_sync' => :'is_initial_sync',
42
+ :'selective_sync_configurations_usage' => :'selective_sync_configurations_usage'
40
43
  }
41
44
  end
42
45
 
@@ -53,7 +56,8 @@ module MergeAccountingClient
53
56
  :'last_sync_start' => :'Time',
54
57
  :'next_sync_start' => :'Time',
55
58
  :'status' => :'SyncStatusStatusEnum',
56
- :'is_initial_sync' => :'Boolean'
59
+ :'is_initial_sync' => :'Boolean',
60
+ :'selective_sync_configurations_usage' => :'SelectiveSyncConfigurationsUsageEnum'
57
61
  }
58
62
  end
59
63
 
@@ -101,6 +105,10 @@ module MergeAccountingClient
101
105
  if attributes.key?(:'is_initial_sync')
102
106
  self.is_initial_sync = attributes[:'is_initial_sync']
103
107
  end
108
+
109
+ if attributes.key?(:'selective_sync_configurations_usage')
110
+ self.selective_sync_configurations_usage = attributes[:'selective_sync_configurations_usage']
111
+ end
104
112
  end
105
113
 
106
114
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -146,7 +154,8 @@ module MergeAccountingClient
146
154
  last_sync_start == o.last_sync_start &&
147
155
  next_sync_start == o.next_sync_start &&
148
156
  status == o.status &&
149
- is_initial_sync == o.is_initial_sync
157
+ is_initial_sync == o.is_initial_sync &&
158
+ selective_sync_configurations_usage == o.selective_sync_configurations_usage
150
159
  end
151
160
 
152
161
  # @see the `==` method
@@ -158,7 +167,7 @@ module MergeAccountingClient
158
167
  # Calculates hash code according to all attributes.
159
168
  # @return [Integer] Hash code
160
169
  def hash
161
- [model_name, model_id, last_sync_start, next_sync_start, status, is_initial_sync].hash
170
+ [model_name, model_id, last_sync_start, next_sync_start, status, is_initial_sync, selective_sync_configurations_usage].hash
162
171
  end
163
172
 
164
173
  # Builds the object from hash
@@ -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
 
@@ -16,13 +16,6 @@ require 'time'
16
16
  module MergeAccountingClient
17
17
  # # The TaxRate Object ### Description The `TaxRate` object is used to represent a tax rate. ### Usage Example Fetch from the `LIST TaxRates` endpoint and view tax rates relevant to a company.
18
18
  class TaxRate
19
- attr_accessor :id
20
-
21
- # The third-party API ID of the matching object.
22
- attr_accessor :remote_id
23
-
24
- attr_accessor :remote_data
25
-
26
19
  # The tax rate's description.
27
20
  attr_accessor :description
28
21
 
@@ -32,19 +25,33 @@ module MergeAccountingClient
32
25
  # The tax rate's effective tax rate.
33
26
  attr_accessor :effective_tax_rate
34
27
 
28
+ # The company the tax rate belongs to.
29
+ attr_accessor :company
30
+
35
31
  # Indicates whether or not this object has been deleted by third party webhooks.
36
32
  attr_accessor :remote_was_deleted
37
33
 
34
+ attr_accessor :id
35
+
36
+ # The third-party API ID of the matching object.
37
+ attr_accessor :remote_id
38
+
39
+ attr_accessor :field_mappings
40
+
41
+ attr_accessor :remote_data
42
+
38
43
  # Attribute mapping from ruby-style variable name to JSON key.
39
44
  def self.attribute_map
40
45
  {
41
- :'id' => :'id',
42
- :'remote_id' => :'remote_id',
43
- :'remote_data' => :'remote_data',
44
46
  :'description' => :'description',
45
47
  :'total_tax_rate' => :'total_tax_rate',
46
48
  :'effective_tax_rate' => :'effective_tax_rate',
47
- :'remote_was_deleted' => :'remote_was_deleted'
49
+ :'company' => :'company',
50
+ :'remote_was_deleted' => :'remote_was_deleted',
51
+ :'id' => :'id',
52
+ :'remote_id' => :'remote_id',
53
+ :'field_mappings' => :'field_mappings',
54
+ :'remote_data' => :'remote_data'
48
55
  }
49
56
  end
50
57
 
@@ -56,24 +63,28 @@ module MergeAccountingClient
56
63
  # Attribute type mapping.
57
64
  def self.openapi_types
58
65
  {
59
- :'id' => :'String',
60
- :'remote_id' => :'String',
61
- :'remote_data' => :'Array<RemoteData>',
62
66
  :'description' => :'String',
63
67
  :'total_tax_rate' => :'Float',
64
68
  :'effective_tax_rate' => :'Float',
65
- :'remote_was_deleted' => :'Boolean'
69
+ :'company' => :'String',
70
+ :'remote_was_deleted' => :'Boolean',
71
+ :'id' => :'String',
72
+ :'remote_id' => :'String',
73
+ :'field_mappings' => :'Hash<String, Object>',
74
+ :'remote_data' => :'Array<RemoteData>'
66
75
  }
67
76
  end
68
77
 
69
78
  # List of attributes with nullable: true
70
79
  def self.openapi_nullable
71
80
  Set.new([
72
- :'remote_id',
73
- :'remote_data',
74
81
  :'description',
75
82
  :'total_tax_rate',
76
83
  :'effective_tax_rate',
84
+ :'company',
85
+ :'remote_id',
86
+ :'field_mappings',
87
+ :'remote_data'
77
88
  ])
78
89
  end
79
90
 
@@ -92,20 +103,6 @@ module MergeAccountingClient
92
103
  h[k.to_sym] = v
93
104
  }
94
105
 
95
- if attributes.key?(:'id')
96
- self.id = attributes[:'id']
97
- end
98
-
99
- if attributes.key?(:'remote_id')
100
- self.remote_id = attributes[:'remote_id']
101
- end
102
-
103
- if attributes.key?(:'remote_data')
104
- if (value = attributes[:'remote_data']).is_a?(Array)
105
- self.remote_data = value
106
- end
107
- end
108
-
109
106
  if attributes.key?(:'description')
110
107
  self.description = attributes[:'description']
111
108
  end
@@ -118,9 +115,33 @@ module MergeAccountingClient
118
115
  self.effective_tax_rate = attributes[:'effective_tax_rate']
119
116
  end
120
117
 
118
+ if attributes.key?(:'company')
119
+ self.company = attributes[:'company']
120
+ end
121
+
121
122
  if attributes.key?(:'remote_was_deleted')
122
123
  self.remote_was_deleted = attributes[:'remote_was_deleted']
123
124
  end
125
+
126
+ if attributes.key?(:'id')
127
+ self.id = attributes[:'id']
128
+ end
129
+
130
+ if attributes.key?(:'remote_id')
131
+ self.remote_id = attributes[:'remote_id']
132
+ end
133
+
134
+ if attributes.key?(:'field_mappings')
135
+ if (value = attributes[:'field_mappings']).is_a?(Hash)
136
+ self.field_mappings = value
137
+ end
138
+ end
139
+
140
+ if attributes.key?(:'remote_data')
141
+ if (value = attributes[:'remote_data']).is_a?(Array)
142
+ self.remote_data = value
143
+ end
144
+ end
124
145
  end
125
146
 
126
147
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -141,13 +162,15 @@ module MergeAccountingClient
141
162
  def ==(o)
142
163
  return true if self.equal?(o)
143
164
  self.class == o.class &&
144
- id == o.id &&
145
- remote_id == o.remote_id &&
146
- remote_data == o.remote_data &&
147
165
  description == o.description &&
148
166
  total_tax_rate == o.total_tax_rate &&
149
167
  effective_tax_rate == o.effective_tax_rate &&
150
- remote_was_deleted == o.remote_was_deleted
168
+ company == o.company &&
169
+ remote_was_deleted == o.remote_was_deleted &&
170
+ id == o.id &&
171
+ remote_id == o.remote_id &&
172
+ field_mappings == o.field_mappings &&
173
+ remote_data == o.remote_data
151
174
  end
152
175
 
153
176
  # @see the `==` method
@@ -159,7 +182,7 @@ module MergeAccountingClient
159
182
  # Calculates hash code according to all attributes.
160
183
  # @return [Integer] Hash code
161
184
  def hash
162
- [id, remote_id, remote_data, description, total_tax_rate, effective_tax_rate, remote_was_deleted].hash
185
+ [description, total_tax_rate, effective_tax_rate, company, remote_was_deleted, id, remote_id, field_mappings, remote_data].hash
163
186
  end
164
187
 
165
188
  # Builds the object from hash
@@ -16,35 +16,46 @@ require 'time'
16
16
  module MergeAccountingClient
17
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.
18
18
  class TrackingCategory
19
- attr_accessor :id
20
-
21
- # The third-party API ID of the matching object.
22
- attr_accessor :remote_id
23
-
24
- attr_accessor :remote_data
25
-
26
19
  # The tracking category's name.
27
20
  attr_accessor :name
28
21
 
29
- # The tracking category's status.
22
+ # The tracking category's status. * `ACTIVE` - ACTIVE * `ARCHIVED` - ARCHIVED
30
23
  attr_accessor :status
31
24
 
32
- # The tracking category’s type.
25
+ # The tracking category’s type. * `CLASS` - CLASS * `DEPARTMENT` - DEPARTMENT
33
26
  attr_accessor :category_type
34
27
 
28
+ # ID of the parent tracking category.
29
+ attr_accessor :parent_category
30
+
31
+ # The company the tracking category belongs to.
32
+ attr_accessor :company
33
+
35
34
  # Indicates whether or not this object has been deleted by third party webhooks.
36
35
  attr_accessor :remote_was_deleted
37
36
 
37
+ attr_accessor :id
38
+
39
+ # The third-party API ID of the matching object.
40
+ attr_accessor :remote_id
41
+
42
+ attr_accessor :field_mappings
43
+
44
+ attr_accessor :remote_data
45
+
38
46
  # Attribute mapping from ruby-style variable name to JSON key.
39
47
  def self.attribute_map
40
48
  {
41
- :'id' => :'id',
42
- :'remote_id' => :'remote_id',
43
- :'remote_data' => :'remote_data',
44
49
  :'name' => :'name',
45
50
  :'status' => :'status',
46
51
  :'category_type' => :'category_type',
47
- :'remote_was_deleted' => :'remote_was_deleted'
52
+ :'parent_category' => :'parent_category',
53
+ :'company' => :'company',
54
+ :'remote_was_deleted' => :'remote_was_deleted',
55
+ :'id' => :'id',
56
+ :'remote_id' => :'remote_id',
57
+ :'field_mappings' => :'field_mappings',
58
+ :'remote_data' => :'remote_data'
48
59
  }
49
60
  end
50
61
 
@@ -56,24 +67,30 @@ module MergeAccountingClient
56
67
  # Attribute type mapping.
57
68
  def self.openapi_types
58
69
  {
59
- :'id' => :'String',
60
- :'remote_id' => :'String',
61
- :'remote_data' => :'Array<RemoteData>',
62
70
  :'name' => :'String',
63
71
  :'status' => :'Status7d1Enum',
64
72
  :'category_type' => :'CategoryTypeEnum',
65
- :'remote_was_deleted' => :'Boolean'
73
+ :'parent_category' => :'String',
74
+ :'company' => :'String',
75
+ :'remote_was_deleted' => :'Boolean',
76
+ :'id' => :'String',
77
+ :'remote_id' => :'String',
78
+ :'field_mappings' => :'Hash<String, Object>',
79
+ :'remote_data' => :'Array<RemoteData>'
66
80
  }
67
81
  end
68
82
 
69
83
  # List of attributes with nullable: true
70
84
  def self.openapi_nullable
71
85
  Set.new([
72
- :'remote_id',
73
- :'remote_data',
74
86
  :'name',
75
87
  :'status',
76
88
  :'category_type',
89
+ :'parent_category',
90
+ :'company',
91
+ :'remote_id',
92
+ :'field_mappings',
93
+ :'remote_data'
77
94
  ])
78
95
  end
79
96
 
@@ -92,20 +109,6 @@ module MergeAccountingClient
92
109
  h[k.to_sym] = v
93
110
  }
94
111
 
95
- if attributes.key?(:'id')
96
- self.id = attributes[:'id']
97
- end
98
-
99
- if attributes.key?(:'remote_id')
100
- self.remote_id = attributes[:'remote_id']
101
- end
102
-
103
- if attributes.key?(:'remote_data')
104
- if (value = attributes[:'remote_data']).is_a?(Array)
105
- self.remote_data = value
106
- end
107
- end
108
-
109
112
  if attributes.key?(:'name')
110
113
  self.name = attributes[:'name']
111
114
  end
@@ -118,9 +121,37 @@ module MergeAccountingClient
118
121
  self.category_type = attributes[:'category_type']
119
122
  end
120
123
 
124
+ if attributes.key?(:'parent_category')
125
+ self.parent_category = attributes[:'parent_category']
126
+ end
127
+
128
+ if attributes.key?(:'company')
129
+ self.company = attributes[:'company']
130
+ end
131
+
121
132
  if attributes.key?(:'remote_was_deleted')
122
133
  self.remote_was_deleted = attributes[:'remote_was_deleted']
123
134
  end
135
+
136
+ if attributes.key?(:'id')
137
+ self.id = attributes[:'id']
138
+ end
139
+
140
+ if attributes.key?(:'remote_id')
141
+ self.remote_id = attributes[:'remote_id']
142
+ end
143
+
144
+ if attributes.key?(:'field_mappings')
145
+ if (value = attributes[:'field_mappings']).is_a?(Hash)
146
+ self.field_mappings = value
147
+ end
148
+ end
149
+
150
+ if attributes.key?(:'remote_data')
151
+ if (value = attributes[:'remote_data']).is_a?(Array)
152
+ self.remote_data = value
153
+ end
154
+ end
124
155
  end
125
156
 
126
157
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -141,13 +172,16 @@ module MergeAccountingClient
141
172
  def ==(o)
142
173
  return true if self.equal?(o)
143
174
  self.class == o.class &&
144
- id == o.id &&
145
- remote_id == o.remote_id &&
146
- remote_data == o.remote_data &&
147
175
  name == o.name &&
148
176
  status == o.status &&
149
177
  category_type == o.category_type &&
150
- remote_was_deleted == o.remote_was_deleted
178
+ parent_category == o.parent_category &&
179
+ company == o.company &&
180
+ remote_was_deleted == o.remote_was_deleted &&
181
+ id == o.id &&
182
+ remote_id == o.remote_id &&
183
+ field_mappings == o.field_mappings &&
184
+ remote_data == o.remote_data
151
185
  end
152
186
 
153
187
  # @see the `==` method
@@ -159,7 +193,7 @@ module MergeAccountingClient
159
193
  # Calculates hash code according to all attributes.
160
194
  # @return [Integer] Hash code
161
195
  def hash
162
- [id, remote_id, remote_data, name, status, category_type, remote_was_deleted].hash
196
+ [name, status, category_type, parent_category, company, remote_was_deleted, id, remote_id, field_mappings, remote_data].hash
163
197
  end
164
198
 
165
199
  # Builds the object from hash