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
@@ -22,16 +22,18 @@ module MergeAccountingClient
22
22
  # Returns a list of `Transaction` objects.
23
23
  # @param x_account_token [String] Token identifying the end user.
24
24
  # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :company_id If provided, will only return accounting transactions for this company.
25
26
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
26
27
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
27
28
  # @option opts [String] :cursor The pagination cursor value.
28
- # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
29
29
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
30
30
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
31
31
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
32
32
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
33
33
  # @option opts [Integer] :page_size Number of results to return per page.
34
34
  # @option opts [String] :remote_id The API provider's ID for the given object.
35
+ # @option opts [Time] :transaction_date_after If provided, will only return objects created after this datetime.
36
+ # @option opts [Time] :transaction_date_before If provided, will only return objects created before this datetime.
35
37
  # @return [PaginatedTransactionList]
36
38
  def transactions_list(x_account_token, opts = {})
37
39
  data, _status_code, _headers = transactions_list_with_http_info(x_account_token, opts)
@@ -41,16 +43,18 @@ module MergeAccountingClient
41
43
  # Returns a list of `Transaction` objects.
42
44
  # @param x_account_token [String] Token identifying the end user.
43
45
  # @param [Hash] opts the optional parameters
46
+ # @option opts [String] :company_id If provided, will only return accounting transactions for this company.
44
47
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
45
48
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
46
49
  # @option opts [String] :cursor The pagination cursor value.
47
- # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
48
50
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
49
51
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
50
52
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
51
53
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
52
54
  # @option opts [Integer] :page_size Number of results to return per page.
53
55
  # @option opts [String] :remote_id The API provider's ID for the given object.
56
+ # @option opts [Time] :transaction_date_after If provided, will only return objects created after this datetime.
57
+ # @option opts [Time] :transaction_date_before If provided, will only return objects created before this datetime.
54
58
  # @return [Array<(PaginatedTransactionList, Integer, Hash)>] PaginatedTransactionList data, response status code and response headers
55
59
  def transactions_list_with_http_info(x_account_token, opts = {})
56
60
  if @api_client.config.debugging
@@ -60,25 +64,23 @@ module MergeAccountingClient
60
64
  if @api_client.config.client_side_validation && x_account_token.nil?
61
65
  fail ArgumentError, "Missing the required parameter 'x_account_token' when calling TransactionsApi.transactions_list"
62
66
  end
63
- allowable_values = ["line_items"]
64
- if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
65
- fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
66
- end
67
67
  # resource path
68
68
  local_var_path = '/transactions'
69
69
 
70
70
  # query parameters
71
71
  query_params = opts[:query_params] || {}
72
+ query_params[:'company_id'] = opts[:'company_id'] if !opts[:'company_id'].nil?
72
73
  query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
73
74
  query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
74
75
  query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
75
- query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
76
76
  query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
77
77
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
78
78
  query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
79
79
  query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
80
80
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
81
81
  query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
82
+ query_params[:'transaction_date_after'] = opts[:'transaction_date_after'] if !opts[:'transaction_date_after'].nil?
83
+ query_params[:'transaction_date_before'] = opts[:'transaction_date_before'] if !opts[:'transaction_date_before'].nil?
82
84
 
83
85
  # header parameters
84
86
  header_params = opts[:header_params] || {}
@@ -119,7 +121,6 @@ module MergeAccountingClient
119
121
  # @param x_account_token [String] Token identifying the end user.
120
122
  # @param id [String]
121
123
  # @param [Hash] opts the optional parameters
122
- # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
123
124
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
124
125
  # @return [Transaction]
125
126
  def transactions_retrieve(x_account_token, id, opts = {})
@@ -131,7 +132,6 @@ module MergeAccountingClient
131
132
  # @param x_account_token [String] Token identifying the end user.
132
133
  # @param id [String]
133
134
  # @param [Hash] opts the optional parameters
134
- # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
135
135
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
136
136
  # @return [Array<(Transaction, Integer, Hash)>] Transaction data, response status code and response headers
137
137
  def transactions_retrieve_with_http_info(x_account_token, id, opts = {})
@@ -146,16 +146,11 @@ module MergeAccountingClient
146
146
  if @api_client.config.client_side_validation && id.nil?
147
147
  fail ArgumentError, "Missing the required parameter 'id' when calling TransactionsApi.transactions_retrieve"
148
148
  end
149
- allowable_values = ["line_items"]
150
- if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
151
- fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
152
- end
153
149
  # resource path
154
150
  local_var_path = '/transactions/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
155
151
 
156
152
  # query parameters
157
153
  query_params = opts[:query_params] || {}
158
- query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
159
154
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
160
155
 
161
156
  # header parameters
@@ -22,16 +22,18 @@ module MergeAccountingClient
22
22
  # Returns a list of `VendorCredit` objects.
23
23
  # @param x_account_token [String] Token identifying the end user.
24
24
  # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :company_id If provided, will only return vendor credits for this company.
25
26
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
26
27
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
27
28
  # @option opts [String] :cursor The pagination cursor value.
28
- # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
29
29
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
30
30
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
31
31
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
32
32
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
33
33
  # @option opts [Integer] :page_size Number of results to return per page.
34
34
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
35
+ # @option opts [Time] :transaction_date_after If provided, will only return objects created after this datetime.
36
+ # @option opts [Time] :transaction_date_before If provided, will only return objects created before this datetime.
35
37
  # @return [PaginatedVendorCreditList]
36
38
  def vendor_credits_list(x_account_token, opts = {})
37
39
  data, _status_code, _headers = vendor_credits_list_with_http_info(x_account_token, opts)
@@ -41,16 +43,18 @@ module MergeAccountingClient
41
43
  # Returns a list of &#x60;VendorCredit&#x60; objects.
42
44
  # @param x_account_token [String] Token identifying the end user.
43
45
  # @param [Hash] opts the optional parameters
46
+ # @option opts [String] :company_id If provided, will only return vendor credits for this company.
44
47
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
45
48
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
46
49
  # @option opts [String] :cursor The pagination cursor value.
47
- # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
48
50
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
49
51
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
50
52
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
51
53
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
52
54
  # @option opts [Integer] :page_size Number of results to return per page.
53
55
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
56
+ # @option opts [Time] :transaction_date_after If provided, will only return objects created after this datetime.
57
+ # @option opts [Time] :transaction_date_before If provided, will only return objects created before this datetime.
54
58
  # @return [Array<(PaginatedVendorCreditList, Integer, Hash)>] PaginatedVendorCreditList data, response status code and response headers
55
59
  def vendor_credits_list_with_http_info(x_account_token, opts = {})
56
60
  if @api_client.config.debugging
@@ -60,25 +64,23 @@ module MergeAccountingClient
60
64
  if @api_client.config.client_side_validation && x_account_token.nil?
61
65
  fail ArgumentError, "Missing the required parameter 'x_account_token' when calling VendorCreditsApi.vendor_credits_list"
62
66
  end
63
- allowable_values = ["lines", "lines,vendor", "vendor"]
64
- if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
65
- fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
66
- end
67
67
  # resource path
68
68
  local_var_path = '/vendor-credits'
69
69
 
70
70
  # query parameters
71
71
  query_params = opts[:query_params] || {}
72
+ query_params[:'company_id'] = opts[:'company_id'] if !opts[:'company_id'].nil?
72
73
  query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
73
74
  query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
74
75
  query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
75
- query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
76
76
  query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
77
77
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
78
78
  query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
79
79
  query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
80
80
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
81
81
  query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
82
+ query_params[:'transaction_date_after'] = opts[:'transaction_date_after'] if !opts[:'transaction_date_after'].nil?
83
+ query_params[:'transaction_date_before'] = opts[:'transaction_date_before'] if !opts[:'transaction_date_before'].nil?
82
84
 
83
85
  # header parameters
84
86
  header_params = opts[:header_params] || {}
@@ -119,7 +121,6 @@ module MergeAccountingClient
119
121
  # @param x_account_token [String] Token identifying the end user.
120
122
  # @param id [String]
121
123
  # @param [Hash] opts the optional parameters
122
- # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
123
124
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
124
125
  # @return [VendorCredit]
125
126
  def vendor_credits_retrieve(x_account_token, id, opts = {})
@@ -131,7 +132,6 @@ module MergeAccountingClient
131
132
  # @param x_account_token [String] Token identifying the end user.
132
133
  # @param id [String]
133
134
  # @param [Hash] opts the optional parameters
134
- # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
135
135
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
136
136
  # @return [Array<(VendorCredit, Integer, Hash)>] VendorCredit data, response status code and response headers
137
137
  def vendor_credits_retrieve_with_http_info(x_account_token, id, opts = {})
@@ -146,16 +146,11 @@ module MergeAccountingClient
146
146
  if @api_client.config.client_side_validation && id.nil?
147
147
  fail ArgumentError, "Missing the required parameter 'id' when calling VendorCreditsApi.vendor_credits_retrieve"
148
148
  end
149
- allowable_values = ["lines", "lines,vendor", "vendor"]
150
- if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
151
- fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
152
- end
153
149
  # resource path
154
150
  local_var_path = '/vendor-credits/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
155
151
 
156
152
  # query parameters
157
153
  query_params = opts[:query_params] || {}
158
- query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
159
154
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
160
155
 
161
156
  # header parameters
@@ -274,9 +274,6 @@ module MergeAccountingClient
274
274
  {}.tap do |hash|
275
275
  data.each { |k, v| hash[k] = convert_to_type(v, sub_type) }
276
276
  end
277
- when 'AnyType'
278
- # Return AnyType response as Object directly
279
- data
280
277
  else
281
278
  # models (e.g. Pet) or oneOf
282
279
  klass = MergeAccountingClient.const_get(return_type)
@@ -14,50 +14,55 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeAccountingClient
17
- # # The Account Object ### Description The `Account` object is what businesses use to track transactions. Accountants often call accounts \"ledgers\". ### Usage Example Fetch from the `LIST Accounts` endpoint and view a company's accounts.
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.
18
18
  class Account
19
19
  attr_accessor :id
20
20
 
21
21
  # The third-party API ID of the matching object.
22
22
  attr_accessor :remote_id
23
23
 
24
- attr_accessor :remote_data
25
-
26
24
  # The account's name.
27
25
  attr_accessor :name
28
26
 
29
27
  # The account's description.
30
28
  attr_accessor :description
31
29
 
32
- # The account's classification.
30
+ # The account's broadest grouping. * `ASSET` - ASSET * `EQUITY` - EQUITY * `EXPENSE` - EXPENSE * `LIABILITY` - LIABILITY * `REVENUE` - REVENUE
33
31
  attr_accessor :classification
34
32
 
35
- # The account's type.
33
+ # The account's type is a narrower and more specific grouping within the account's classification.
36
34
  attr_accessor :type
37
35
 
38
- # The account's status.
36
+ # The account's status. * `ACTIVE` - ACTIVE * `PENDING` - PENDING * `INACTIVE` - INACTIVE
39
37
  attr_accessor :status
40
38
 
41
39
  # The account's current balance.
42
40
  attr_accessor :current_balance
43
41
 
44
- # The account's currency.
42
+ # The account's currency. * `XUA` - ADB Unit of Account * `AFN` - Afghan Afghani * `AFA` - Afghan Afghani (1927–2002) * `ALL` - Albanian Lek * `ALK` - Albanian Lek (1946–1965) * `DZD` - Algerian Dinar * `ADP` - Andorran Peseta * `AOA` - Angolan Kwanza * `AOK` - Angolan Kwanza (1977–1991) * `AON` - Angolan New Kwanza (1990–2000) * `AOR` - Angolan Readjusted Kwanza (1995–1999) * `ARA` - Argentine Austral * `ARS` - Argentine Peso * `ARM` - Argentine Peso (1881–1970) * `ARP` - Argentine Peso (1983–1985) * `ARL` - Argentine Peso Ley (1970–1983) * `AMD` - Armenian Dram * `AWG` - Aruban Florin * `AUD` - Australian Dollar * `ATS` - Austrian Schilling * `AZN` - Azerbaijani Manat * `AZM` - Azerbaijani Manat (1993–2006) * `BSD` - Bahamian Dollar * `BHD` - Bahraini Dinar * `BDT` - Bangladeshi Taka * `BBD` - Barbadian Dollar * `BYN` - Belarusian Ruble * `BYB` - Belarusian Ruble (1994–1999) * `BYR` - Belarusian Ruble (2000–2016) * `BEF` - Belgian Franc * `BEC` - Belgian Franc (convertible) * `BEL` - Belgian Franc (financial) * `BZD` - Belize Dollar * `BMD` - Bermudan Dollar * `BTN` - Bhutanese Ngultrum * `BOB` - Bolivian Boliviano * `BOL` - Bolivian Boliviano (1863–1963) * `BOV` - Bolivian Mvdol * `BOP` - Bolivian Peso * `BAM` - Bosnia-Herzegovina Convertible Mark * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) * `BWP` - Botswanan Pula * `BRC` - Brazilian Cruzado (1986–1989) * `BRZ` - Brazilian Cruzeiro (1942–1967) * `BRE` - Brazilian Cruzeiro (1990–1993) * `BRR` - Brazilian Cruzeiro (1993–1994) * `BRN` - Brazilian New Cruzado (1989–1990) * `BRB` - Brazilian New Cruzeiro (1967–1986) * `BRL` - Brazilian Real * `GBP` - British Pound * `BND` - Brunei Dollar * `BGL` - Bulgarian Hard Lev * `BGN` - Bulgarian Lev * `BGO` - Bulgarian Lev (1879–1952) * `BGM` - Bulgarian Socialist Lev * `BUK` - Burmese Kyat * `BIF` - Burundian Franc * `XPF` - CFP Franc * `KHR` - Cambodian Riel * `CAD` - Canadian Dollar * `CVE` - Cape Verdean Escudo * `KYD` - Cayman Islands Dollar * `XAF` - Central African CFA Franc * `CLE` - Chilean Escudo * `CLP` - Chilean Peso * `CLF` - Chilean Unit of Account (UF) * `CNX` - Chinese People’s Bank Dollar * `CNY` - Chinese Yuan * `CNH` - Chinese Yuan (offshore) * `COP` - Colombian Peso * `COU` - Colombian Real Value Unit * `KMF` - Comorian Franc * `CDF` - Congolese Franc * `CRC` - Costa Rican Colón * `HRD` - Croatian Dinar * `HRK` - Croatian Kuna * `CUC` - Cuban Convertible Peso * `CUP` - Cuban Peso * `CYP` - Cypriot Pound * `CZK` - Czech Koruna * `CSK` - Czechoslovak Hard Koruna * `DKK` - Danish Krone * `DJF` - Djiboutian Franc * `DOP` - Dominican Peso * `NLG` - Dutch Guilder * `XCD` - East Caribbean Dollar * `DDM` - East German Mark * `ECS` - Ecuadorian Sucre * `ECV` - Ecuadorian Unit of Constant Value * `EGP` - Egyptian Pound * `GQE` - Equatorial Guinean Ekwele * `ERN` - Eritrean Nakfa * `EEK` - Estonian Kroon * `ETB` - Ethiopian Birr * `EUR` - Euro * `XBA` - European Composite Unit * `XEU` - European Currency Unit * `XBB` - European Monetary Unit * `XBC` - European Unit of Account (XBC) * `XBD` - European Unit of Account (XBD) * `FKP` - Falkland Islands Pound * `FJD` - Fijian Dollar * `FIM` - Finnish Markka * `FRF` - French Franc * `XFO` - French Gold Franc * `XFU` - French UIC-Franc * `GMD` - Gambian Dalasi * `GEK` - Georgian Kupon Larit * `GEL` - Georgian Lari * `DEM` - German Mark * `GHS` - Ghanaian Cedi * `GHC` - Ghanaian Cedi (1979–2007) * `GIP` - Gibraltar Pound * `XAU` - Gold * `GRD` - Greek Drachma * `GTQ` - Guatemalan Quetzal * `GWP` - Guinea-Bissau Peso * `GNF` - Guinean Franc * `GNS` - Guinean Syli * `GYD` - Guyanaese Dollar * `HTG` - Haitian Gourde * `HNL` - Honduran Lempira * `HKD` - Hong Kong Dollar * `HUF` - Hungarian Forint * `IMP` - IMP * `ISK` - Icelandic Króna * `ISJ` - Icelandic Króna (1918–1981) * `INR` - Indian Rupee * `IDR` - Indonesian Rupiah * `IRR` - Iranian Rial * `IQD` - Iraqi Dinar * `IEP` - Irish Pound * `ILS` - Israeli New Shekel * `ILP` - Israeli Pound * `ILR` - Israeli Shekel (1980–1985) * `ITL` - Italian Lira * `JMD` - Jamaican Dollar * `JPY` - Japanese Yen * `JOD` - Jordanian Dinar * `KZT` - Kazakhstani Tenge * `KES` - Kenyan Shilling * `KWD` - Kuwaiti Dinar * `KGS` - Kyrgystani Som * `LAK` - Laotian Kip * `LVL` - Latvian Lats * `LVR` - Latvian Ruble * `LBP` - Lebanese Pound * `LSL` - Lesotho Loti * `LRD` - Liberian Dollar * `LYD` - Libyan Dinar * `LTL` - Lithuanian Litas * `LTT` - Lithuanian Talonas * `LUL` - Luxembourg Financial Franc * `LUC` - Luxembourgian Convertible Franc * `LUF` - Luxembourgian Franc * `MOP` - Macanese Pataca * `MKD` - Macedonian Denar * `MKN` - Macedonian Denar (1992–1993) * `MGA` - Malagasy Ariary * `MGF` - Malagasy Franc * `MWK` - Malawian Kwacha * `MYR` - Malaysian Ringgit * `MVR` - Maldivian Rufiyaa * `MVP` - Maldivian Rupee (1947–1981) * `MLF` - Malian Franc * `MTL` - Maltese Lira * `MTP` - Maltese Pound * `MRU` - Mauritanian Ouguiya * `MRO` - Mauritanian Ouguiya (1973–2017) * `MUR` - Mauritian Rupee * `MXV` - Mexican Investment Unit * `MXN` - Mexican Peso * `MXP` - Mexican Silver Peso (1861–1992) * `MDC` - Moldovan Cupon * `MDL` - Moldovan Leu * `MCF` - Monegasque Franc * `MNT` - Mongolian Tugrik * `MAD` - Moroccan Dirham * `MAF` - Moroccan Franc * `MZE` - Mozambican Escudo * `MZN` - Mozambican Metical * `MZM` - Mozambican Metical (1980–2006) * `MMK` - Myanmar Kyat * `NAD` - Namibian Dollar * `NPR` - Nepalese Rupee * `ANG` - Netherlands Antillean Guilder * `TWD` - New Taiwan Dollar * `NZD` - New Zealand Dollar * `NIO` - Nicaraguan Córdoba * `NIC` - Nicaraguan Córdoba (1988–1991) * `NGN` - Nigerian Naira * `KPW` - North Korean Won * `NOK` - Norwegian Krone * `OMR` - Omani Rial * `PKR` - Pakistani Rupee * `XPD` - Palladium * `PAB` - Panamanian Balboa * `PGK` - Papua New Guinean Kina * `PYG` - Paraguayan Guarani * `PEI` - Peruvian Inti * `PEN` - Peruvian Sol * `PES` - Peruvian Sol (1863–1965) * `PHP` - Philippine Peso * `XPT` - Platinum * `PLN` - Polish Zloty * `PLZ` - Polish Zloty (1950–1995) * `PTE` - Portuguese Escudo * `GWE` - Portuguese Guinea Escudo * `QAR` - Qatari Rial * `XRE` - RINET Funds * `RHD` - Rhodesian Dollar * `RON` - Romanian Leu * `ROL` - Romanian Leu (1952–2006) * `RUB` - Russian Ruble * `RUR` - Russian Ruble (1991–1998) * `RWF` - Rwandan Franc * `SVC` - Salvadoran Colón * `WST` - Samoan Tala * `SAR` - Saudi Riyal * `RSD` - Serbian Dinar * `CSD` - Serbian Dinar (2002–2006) * `SCR` - Seychellois Rupee * `SLL` - Sierra Leonean Leone * `XAG` - Silver * `SGD` - Singapore Dollar * `SKK` - Slovak Koruna * `SIT` - Slovenian Tolar * `SBD` - Solomon Islands Dollar * `SOS` - Somali Shilling * `ZAR` - South African Rand * `ZAL` - South African Rand (financial) * `KRH` - South Korean Hwan (1953–1962) * `KRW` - South Korean Won * `KRO` - South Korean Won (1945–1953) * `SSP` - South Sudanese Pound * `SUR` - Soviet Rouble * `ESP` - Spanish Peseta * `ESA` - Spanish Peseta (A account) * `ESB` - Spanish Peseta (convertible account) * `XDR` - Special Drawing Rights * `LKR` - Sri Lankan Rupee * `SHP` - St. Helena Pound * `XSU` - Sucre * `SDD` - Sudanese Dinar (1992–2007) * `SDG` - Sudanese Pound * `SDP` - Sudanese Pound (1957–1998) * `SRD` - Surinamese Dollar * `SRG` - Surinamese Guilder * `SZL` - Swazi Lilangeni * `SEK` - Swedish Krona * `CHF` - Swiss Franc * `SYP` - Syrian Pound * `STN` - São Tomé & Príncipe Dobra * `STD` - São Tomé & Príncipe Dobra (1977–2017) * `TVD` - TVD * `TJR` - Tajikistani Ruble * `TJS` - Tajikistani Somoni * `TZS` - Tanzanian Shilling * `XTS` - Testing Currency Code * `THB` - Thai Baht * `XXX` - The codes assigned for transactions where no currency is involved * `TPE` - Timorese Escudo * `TOP` - Tongan Paʻanga * `TTD` - Trinidad & Tobago Dollar * `TND` - Tunisian Dinar * `TRY` - Turkish Lira * `TRL` - Turkish Lira (1922–2005) * `TMT` - Turkmenistani Manat * `TMM` - Turkmenistani Manat (1993–2009) * `USD` - US Dollar * `USN` - US Dollar (Next day) * `USS` - US Dollar (Same day) * `UGX` - Ugandan Shilling * `UGS` - Ugandan Shilling (1966–1987) * `UAH` - Ukrainian Hryvnia * `UAK` - Ukrainian Karbovanets * `AED` - United Arab Emirates Dirham * `UYW` - Uruguayan Nominal Wage Index Unit * `UYU` - Uruguayan Peso * `UYP` - Uruguayan Peso (1975–1993) * `UYI` - Uruguayan Peso (Indexed Units) * `UZS` - Uzbekistani Som * `VUV` - Vanuatu Vatu * `VES` - Venezuelan Bolívar * `VEB` - Venezuelan Bolívar (1871–2008) * `VEF` - Venezuelan Bolívar (2008–2018) * `VND` - Vietnamese Dong * `VNN` - Vietnamese Dong (1978–1985) * `CHE` - WIR Euro * `CHW` - WIR Franc * `XOF` - West African CFA Franc * `YDD` - Yemeni Dinar * `YER` - Yemeni Rial * `YUN` - Yugoslavian Convertible Dinar (1990–1992) * `YUD` - Yugoslavian Hard Dinar (1966–1990) * `YUM` - Yugoslavian New Dinar (1994–2002) * `YUR` - Yugoslavian Reformed Dinar (1992–1993) * `ZWN` - ZWN * `ZRN` - Zairean New Zaire (1993–1998) * `ZRZ` - Zairean Zaire (1971–1993) * `ZMW` - Zambian Kwacha * `ZMK` - Zambian Kwacha (1968–2012) * `ZWD` - Zimbabwean Dollar (1980–2008) * `ZWR` - Zimbabwean Dollar (2008) * `ZWL` - Zimbabwean Dollar (2009)
45
43
  attr_accessor :currency
46
44
 
47
45
  # The account's number.
48
46
  attr_accessor :account_number
49
47
 
48
+ # ID of the parent account.
50
49
  attr_accessor :parent_account
51
50
 
51
+ # The company the account belongs to.
52
+ attr_accessor :company
53
+
52
54
  # Indicates whether or not this object has been deleted by third party webhooks.
53
55
  attr_accessor :remote_was_deleted
54
56
 
57
+ attr_accessor :field_mappings
58
+
59
+ attr_accessor :remote_data
60
+
55
61
  # Attribute mapping from ruby-style variable name to JSON key.
56
62
  def self.attribute_map
57
63
  {
58
64
  :'id' => :'id',
59
65
  :'remote_id' => :'remote_id',
60
- :'remote_data' => :'remote_data',
61
66
  :'name' => :'name',
62
67
  :'description' => :'description',
63
68
  :'classification' => :'classification',
@@ -67,7 +72,10 @@ module MergeAccountingClient
67
72
  :'currency' => :'currency',
68
73
  :'account_number' => :'account_number',
69
74
  :'parent_account' => :'parent_account',
70
- :'remote_was_deleted' => :'remote_was_deleted'
75
+ :'company' => :'company',
76
+ :'remote_was_deleted' => :'remote_was_deleted',
77
+ :'field_mappings' => :'field_mappings',
78
+ :'remote_data' => :'remote_data'
71
79
  }
72
80
  end
73
81
 
@@ -81,7 +89,6 @@ module MergeAccountingClient
81
89
  {
82
90
  :'id' => :'String',
83
91
  :'remote_id' => :'String',
84
- :'remote_data' => :'Array<RemoteData>',
85
92
  :'name' => :'String',
86
93
  :'description' => :'String',
87
94
  :'classification' => :'ClassificationEnum',
@@ -91,7 +98,10 @@ module MergeAccountingClient
91
98
  :'currency' => :'CurrencyEnum',
92
99
  :'account_number' => :'String',
93
100
  :'parent_account' => :'String',
94
- :'remote_was_deleted' => :'Boolean'
101
+ :'company' => :'String',
102
+ :'remote_was_deleted' => :'Boolean',
103
+ :'field_mappings' => :'Hash<String, Object>',
104
+ :'remote_data' => :'Array<RemoteData>'
95
105
  }
96
106
  end
97
107
 
@@ -99,7 +109,6 @@ module MergeAccountingClient
99
109
  def self.openapi_nullable
100
110
  Set.new([
101
111
  :'remote_id',
102
- :'remote_data',
103
112
  :'name',
104
113
  :'description',
105
114
  :'classification',
@@ -109,6 +118,9 @@ module MergeAccountingClient
109
118
  :'currency',
110
119
  :'account_number',
111
120
  :'parent_account',
121
+ :'company',
122
+ :'field_mappings',
123
+ :'remote_data'
112
124
  ])
113
125
  end
114
126
 
@@ -135,12 +147,6 @@ module MergeAccountingClient
135
147
  self.remote_id = attributes[:'remote_id']
136
148
  end
137
149
 
138
- if attributes.key?(:'remote_data')
139
- if (value = attributes[:'remote_data']).is_a?(Array)
140
- self.remote_data = value
141
- end
142
- end
143
-
144
150
  if attributes.key?(:'name')
145
151
  self.name = attributes[:'name']
146
152
  end
@@ -177,9 +183,25 @@ module MergeAccountingClient
177
183
  self.parent_account = attributes[:'parent_account']
178
184
  end
179
185
 
186
+ if attributes.key?(:'company')
187
+ self.company = attributes[:'company']
188
+ end
189
+
180
190
  if attributes.key?(:'remote_was_deleted')
181
191
  self.remote_was_deleted = attributes[:'remote_was_deleted']
182
192
  end
193
+
194
+ if attributes.key?(:'field_mappings')
195
+ if (value = attributes[:'field_mappings']).is_a?(Hash)
196
+ self.field_mappings = value
197
+ end
198
+ end
199
+
200
+ if attributes.key?(:'remote_data')
201
+ if (value = attributes[:'remote_data']).is_a?(Array)
202
+ self.remote_data = value
203
+ end
204
+ end
183
205
  end
184
206
 
185
207
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -202,7 +224,6 @@ module MergeAccountingClient
202
224
  self.class == o.class &&
203
225
  id == o.id &&
204
226
  remote_id == o.remote_id &&
205
- remote_data == o.remote_data &&
206
227
  name == o.name &&
207
228
  description == o.description &&
208
229
  classification == o.classification &&
@@ -212,7 +233,10 @@ module MergeAccountingClient
212
233
  currency == o.currency &&
213
234
  account_number == o.account_number &&
214
235
  parent_account == o.parent_account &&
215
- remote_was_deleted == o.remote_was_deleted
236
+ company == o.company &&
237
+ remote_was_deleted == o.remote_was_deleted &&
238
+ field_mappings == o.field_mappings &&
239
+ remote_data == o.remote_data
216
240
  end
217
241
 
218
242
  # @see the `==` method
@@ -224,7 +248,7 @@ module MergeAccountingClient
224
248
  # Calculates hash code according to all attributes.
225
249
  # @return [Integer] Hash code
226
250
  def hash
227
- [id, remote_id, remote_data, name, description, classification, type, status, current_balance, currency, account_number, parent_account, remote_was_deleted].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
228
252
  end
229
253
 
230
254
  # 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
+ AccountDetailsAndActionsStatusEnum.new.build_from_hash(value)
43
43
  end
44
44
  end
45
45
 
@@ -0,0 +1,223 @@
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 AccountEndpointRequest
18
+ attr_accessor :model
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'model' => :'model'
24
+ }
25
+ end
26
+
27
+ # Returns all the JSON keys this model knows about
28
+ def self.acceptable_attributes
29
+ attribute_map.values
30
+ end
31
+
32
+ # Attribute type mapping.
33
+ def self.openapi_types
34
+ {
35
+ :'model' => :'AccountRequest'
36
+ }
37
+ end
38
+
39
+ # List of attributes with nullable: true
40
+ def self.openapi_nullable
41
+ Set.new([
42
+ ])
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param [Hash] attributes Model attributes in the form of hash
47
+ def initialize(attributes = {})
48
+ if (!attributes.is_a?(Hash))
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MergeAccountingClient::AccountEndpointRequest` initialize method"
50
+ end
51
+
52
+ # check to see if the attribute exists and convert string to symbol for hash key
53
+ attributes = attributes.each_with_object({}) { |(k, v), h|
54
+ if (!self.class.attribute_map.key?(k.to_sym))
55
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MergeAccountingClient::AccountEndpointRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
+ end
57
+ h[k.to_sym] = v
58
+ }
59
+
60
+ if attributes.key?(:'model')
61
+ self.model = attributes[:'model']
62
+ end
63
+ end
64
+
65
+ # Show invalid properties with the reasons. Usually used together with valid?
66
+ # @return Array for valid properties with the reasons
67
+ def list_invalid_properties
68
+ invalid_properties = Array.new
69
+ if @model.nil?
70
+ invalid_properties.push('invalid value for "model", model cannot be nil.')
71
+ end
72
+
73
+ invalid_properties
74
+ end
75
+
76
+ # Check to see if the all the properties in the model are valid
77
+ # @return true if the model is valid
78
+ def valid?
79
+ return false if @model.nil?
80
+ true
81
+ end
82
+
83
+ # Checks equality by comparing each attribute.
84
+ # @param [Object] Object to be compared
85
+ def ==(o)
86
+ return true if self.equal?(o)
87
+ self.class == o.class &&
88
+ model == o.model
89
+ end
90
+
91
+ # @see the `==` method
92
+ # @param [Object] Object to be compared
93
+ def eql?(o)
94
+ self == o
95
+ end
96
+
97
+ # Calculates hash code according to all attributes.
98
+ # @return [Integer] Hash code
99
+ def hash
100
+ [model].hash
101
+ end
102
+
103
+ # Builds the object from hash
104
+ # @param [Hash] attributes Model attributes in the form of hash
105
+ # @return [Object] Returns the model itself
106
+ def self.build_from_hash(attributes)
107
+ new.build_from_hash(attributes)
108
+ end
109
+
110
+ # Builds the object from hash
111
+ # @param [Hash] attributes Model attributes in the form of hash
112
+ # @return [Object] Returns the model itself
113
+ def build_from_hash(attributes)
114
+ return nil unless attributes.is_a?(Hash)
115
+ self.class.openapi_types.each_pair do |key, type|
116
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
117
+ self.send("#{key}=", nil)
118
+ elsif type =~ /\AArray<(.*)>/i
119
+ # check to ensure the input is an array given that the attribute
120
+ # is documented as an array but the input is not
121
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
122
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
123
+ end
124
+ elsif !attributes[self.class.attribute_map[key]].nil?
125
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
126
+ end
127
+ end
128
+
129
+ self
130
+ end
131
+
132
+ # Deserializes the data based on type
133
+ # @param string type Data type
134
+ # @param string value Value to be deserialized
135
+ # @return [Object] Deserialized data
136
+ def _deserialize(type, value)
137
+ case type.to_sym
138
+ when :Time
139
+ Time.parse(value)
140
+ when :Date
141
+ Date.parse(value)
142
+ when :String
143
+ value
144
+ when :Integer
145
+ value.to_i
146
+ when :Float
147
+ value.to_f
148
+ when :Boolean
149
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
150
+ true
151
+ else
152
+ false
153
+ end
154
+ when :Object
155
+ # generic object (usually a Hash), return directly
156
+ value
157
+ when /\AArray<(?<inner_type>.+)>\z/
158
+ inner_type = Regexp.last_match[:inner_type]
159
+ value.map { |v| _deserialize(inner_type, v) }
160
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
161
+ k_type = Regexp.last_match[:k_type]
162
+ v_type = Regexp.last_match[:v_type]
163
+ {}.tap do |hash|
164
+ value.each do |k, v|
165
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
166
+ end
167
+ end
168
+ else # model
169
+ # models (e.g. Pet) or oneOf
170
+ klass = MergeAccountingClient.const_get(type)
171
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
172
+ end
173
+ end
174
+
175
+ # Returns the string representation of the object
176
+ # @return [String] String presentation of the object
177
+ def to_s
178
+ to_hash.to_s
179
+ end
180
+
181
+ # to_body is an alias to to_hash (backward compatibility)
182
+ # @return [Hash] Returns the object in the form of hash
183
+ def to_body
184
+ to_hash
185
+ end
186
+
187
+ # Returns the object in the form of hash
188
+ # @return [Hash] Returns the object in the form of hash
189
+ def to_hash
190
+ hash = {}
191
+ self.class.attribute_map.each_pair do |attr, param|
192
+ value = self.send(attr)
193
+ if value.nil?
194
+ is_nullable = self.class.openapi_nullable.include?(attr)
195
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
196
+ end
197
+
198
+ hash[param] = _to_hash(value)
199
+ end
200
+ hash
201
+ end
202
+
203
+ # Outputs non-array value in the form of hash
204
+ # For object, use to_hash. Otherwise, just return the value
205
+ # @param [Object] value Any valid value
206
+ # @return [Hash] Returns the value in the form of hash
207
+ def _to_hash(value)
208
+ if value.is_a?(Array)
209
+ value.compact.map { |v| _to_hash(v) }
210
+ elsif value.is_a?(Hash)
211
+ {}.tap do |hash|
212
+ value.each { |k, v| hash[k] = _to_hash(v) }
213
+ end
214
+ elsif value.respond_to? :to_hash
215
+ value.to_hash
216
+ else
217
+ value
218
+ end
219
+ end
220
+
221
+ end
222
+
223
+ end
@@ -18,7 +18,7 @@ module MergeAccountingClient
18
18
  # Company name.
19
19
  attr_accessor :name
20
20
 
21
- # Category or categories this integration belongs to. Multiple categories should be comma separated.<br/><br>Example: For [ats, hris], enter <i>ats,hris</i>
21
+ # Category or categories this integration belongs to. Multiple categories should be comma separated, i.e. [ats, hris].
22
22
  attr_accessor :categories
23
23
 
24
24
  # Company logo in rectangular shape. <b>Upload an image with a clear background.</b>