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
@@ -4,10 +4,91 @@ All URIs are relative to *https://api.merge.dev/api/accounting/v1*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
+ | [**purchase_orders_create**](PurchaseOrdersApi.md#purchase_orders_create) | **POST** /purchase-orders | |
7
8
  | [**purchase_orders_list**](PurchaseOrdersApi.md#purchase_orders_list) | **GET** /purchase-orders | |
9
+ | [**purchase_orders_meta_post_retrieve**](PurchaseOrdersApi.md#purchase_orders_meta_post_retrieve) | **GET** /purchase-orders/meta/post | |
8
10
  | [**purchase_orders_retrieve**](PurchaseOrdersApi.md#purchase_orders_retrieve) | **GET** /purchase-orders/{id} | |
9
11
 
10
12
 
13
+ ## purchase_orders_create
14
+
15
+ > <PurchaseOrderResponse> purchase_orders_create(x_account_token, purchase_order_endpoint_request, opts)
16
+
17
+
18
+
19
+ Creates a `PurchaseOrder` object with the given values.
20
+
21
+ ### Examples
22
+
23
+ ```ruby
24
+ require 'time'
25
+ require 'merge_accounting_client'
26
+ # setup authorization
27
+ MergeAccountingClient.configure do |config|
28
+ # Configure API key authorization: tokenAuth
29
+ config.api_key['tokenAuth'] = 'YOUR API KEY'
30
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
31
+ # config.api_key_prefix['tokenAuth'] = 'Bearer'
32
+ end
33
+
34
+ api_instance = MergeAccountingClient::PurchaseOrdersApi.new
35
+ x_account_token = 'x_account_token_example' # String | Token identifying the end user.
36
+ purchase_order_endpoint_request = MergeAccountingClient::PurchaseOrderEndpointRequest.new({model: MergeAccountingClient::PurchaseOrderRequest.new}) # PurchaseOrderEndpointRequest |
37
+ opts = {
38
+ is_debug_mode: true, # Boolean | Whether to include debug fields (such as log file links) in the response.
39
+ run_async: true # Boolean | Whether or not third-party updates should be run asynchronously.
40
+ }
41
+
42
+ begin
43
+
44
+ result = api_instance.purchase_orders_create(x_account_token, purchase_order_endpoint_request, opts)
45
+ p result
46
+ rescue MergeAccountingClient::ApiError => e
47
+ puts "Error when calling PurchaseOrdersApi->purchase_orders_create: #{e}"
48
+ end
49
+ ```
50
+
51
+ #### Using the purchase_orders_create_with_http_info variant
52
+
53
+ This returns an Array which contains the response data, status code and headers.
54
+
55
+ > <Array(<PurchaseOrderResponse>, Integer, Hash)> purchase_orders_create_with_http_info(x_account_token, purchase_order_endpoint_request, opts)
56
+
57
+ ```ruby
58
+ begin
59
+
60
+ data, status_code, headers = api_instance.purchase_orders_create_with_http_info(x_account_token, purchase_order_endpoint_request, opts)
61
+ p status_code # => 2xx
62
+ p headers # => { ... }
63
+ p data # => <PurchaseOrderResponse>
64
+ rescue MergeAccountingClient::ApiError => e
65
+ puts "Error when calling PurchaseOrdersApi->purchase_orders_create_with_http_info: #{e}"
66
+ end
67
+ ```
68
+
69
+ ### Parameters
70
+
71
+ | Name | Type | Description | Notes |
72
+ | ---- | ---- | ----------- | ----- |
73
+ | **x_account_token** | **String** | Token identifying the end user. | |
74
+ | **purchase_order_endpoint_request** | [**PurchaseOrderEndpointRequest**](PurchaseOrderEndpointRequest.md) | | |
75
+ | **is_debug_mode** | **Boolean** | Whether to include debug fields (such as log file links) in the response. | [optional] |
76
+ | **run_async** | **Boolean** | Whether or not third-party updates should be run asynchronously. | [optional] |
77
+
78
+ ### Return type
79
+
80
+ [**PurchaseOrderResponse**](PurchaseOrderResponse.md)
81
+
82
+ ### Authorization
83
+
84
+ [tokenAuth](../README.md#tokenAuth)
85
+
86
+ ### HTTP request headers
87
+
88
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
89
+ - **Accept**: application/json
90
+
91
+
11
92
  ## purchase_orders_list
12
93
 
13
94
  > <PaginatedPurchaseOrderList> purchase_orders_list(x_account_token, opts)
@@ -32,17 +113,20 @@ end
32
113
  api_instance = MergeAccountingClient::PurchaseOrdersApi.new
33
114
  x_account_token = 'x_account_token_example' # String | Token identifying the end user.
34
115
  opts = {
116
+ company_id: 'company_id_example', # String | If provided, will only return purchase orders for this company.
35
117
  created_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created after this datetime.
36
118
  created_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created before this datetime.
37
119
  cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
38
- expand: 'delivery_address', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
39
120
  include_deleted_data: true, # Boolean | Whether to include data that was marked as deleted by third party webhooks.
40
121
  include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
122
+ issue_date_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created after this datetime.
123
+ issue_date_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created before this datetime.
41
124
  modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified after this datetime.
42
125
  modified_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified before this datetime.
43
126
  page_size: 56, # Integer | Number of results to return per page.
44
- remote_fields: 'status', # String | Which fields should be returned in non-normalized form.
45
- remote_id: 'remote_id_example' # String | The API provider's ID for the given object.
127
+ remote_fields: 'status', # String | Deprecated. Use show_enum_origins.
128
+ remote_id: 'remote_id_example', # String | The API provider's ID for the given object.
129
+ show_enum_origins: 'status' # String | Which fields should be returned in non-normalized form.
46
130
  }
47
131
 
48
132
  begin
@@ -77,17 +161,20 @@ end
77
161
  | Name | Type | Description | Notes |
78
162
  | ---- | ---- | ----------- | ----- |
79
163
  | **x_account_token** | **String** | Token identifying the end user. | |
164
+ | **company_id** | **String** | If provided, will only return purchase orders for this company. | [optional] |
80
165
  | **created_after** | **Time** | If provided, will only return objects created after this datetime. | [optional] |
81
166
  | **created_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
82
167
  | **cursor** | **String** | The pagination cursor value. | [optional] |
83
- | **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
84
168
  | **include_deleted_data** | **Boolean** | Whether to include data that was marked as deleted by third party webhooks. | [optional] |
85
169
  | **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
170
+ | **issue_date_after** | **Time** | If provided, will only return objects created after this datetime. | [optional] |
171
+ | **issue_date_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
86
172
  | **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
87
173
  | **modified_before** | **Time** | If provided, will only return objects modified before this datetime. | [optional] |
88
174
  | **page_size** | **Integer** | Number of results to return per page. | [optional] |
89
- | **remote_fields** | **String** | Which fields should be returned in non-normalized form. | [optional] |
175
+ | **remote_fields** | **String** | Deprecated. Use show_enum_origins. | [optional] |
90
176
  | **remote_id** | **String** | The API provider&#39;s ID for the given object. | [optional] |
177
+ | **show_enum_origins** | **String** | Which fields should be returned in non-normalized form. | [optional] |
91
178
 
92
179
  ### Return type
93
180
 
@@ -103,6 +190,77 @@ end
103
190
  - **Accept**: application/json
104
191
 
105
192
 
193
+ ## purchase_orders_meta_post_retrieve
194
+
195
+ > <MetaResponse> purchase_orders_meta_post_retrieve(x_account_token)
196
+
197
+
198
+
199
+ Returns metadata for `PurchaseOrder` POSTs.
200
+
201
+ ### Examples
202
+
203
+ ```ruby
204
+ require 'time'
205
+ require 'merge_accounting_client'
206
+ # setup authorization
207
+ MergeAccountingClient.configure do |config|
208
+ # Configure API key authorization: tokenAuth
209
+ config.api_key['tokenAuth'] = 'YOUR API KEY'
210
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
211
+ # config.api_key_prefix['tokenAuth'] = 'Bearer'
212
+ end
213
+
214
+ api_instance = MergeAccountingClient::PurchaseOrdersApi.new
215
+ x_account_token = 'x_account_token_example' # String | Token identifying the end user.
216
+
217
+ begin
218
+
219
+ result = api_instance.purchase_orders_meta_post_retrieve(x_account_token)
220
+ p result
221
+ rescue MergeAccountingClient::ApiError => e
222
+ puts "Error when calling PurchaseOrdersApi->purchase_orders_meta_post_retrieve: #{e}"
223
+ end
224
+ ```
225
+
226
+ #### Using the purchase_orders_meta_post_retrieve_with_http_info variant
227
+
228
+ This returns an Array which contains the response data, status code and headers.
229
+
230
+ > <Array(<MetaResponse>, Integer, Hash)> purchase_orders_meta_post_retrieve_with_http_info(x_account_token)
231
+
232
+ ```ruby
233
+ begin
234
+
235
+ data, status_code, headers = api_instance.purchase_orders_meta_post_retrieve_with_http_info(x_account_token)
236
+ p status_code # => 2xx
237
+ p headers # => { ... }
238
+ p data # => <MetaResponse>
239
+ rescue MergeAccountingClient::ApiError => e
240
+ puts "Error when calling PurchaseOrdersApi->purchase_orders_meta_post_retrieve_with_http_info: #{e}"
241
+ end
242
+ ```
243
+
244
+ ### Parameters
245
+
246
+ | Name | Type | Description | Notes |
247
+ | ---- | ---- | ----------- | ----- |
248
+ | **x_account_token** | **String** | Token identifying the end user. | |
249
+
250
+ ### Return type
251
+
252
+ [**MetaResponse**](MetaResponse.md)
253
+
254
+ ### Authorization
255
+
256
+ [tokenAuth](../README.md#tokenAuth)
257
+
258
+ ### HTTP request headers
259
+
260
+ - **Content-Type**: Not defined
261
+ - **Accept**: application/json
262
+
263
+
106
264
  ## purchase_orders_retrieve
107
265
 
108
266
  > <PurchaseOrder> purchase_orders_retrieve(x_account_token, id, opts)
@@ -128,9 +286,9 @@ api_instance = MergeAccountingClient::PurchaseOrdersApi.new
128
286
  x_account_token = 'x_account_token_example' # String | Token identifying the end user.
129
287
  id = TODO # String |
130
288
  opts = {
131
- expand: 'delivery_address', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
132
289
  include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
133
- remote_fields: 'status' # String | Which fields should be returned in non-normalized form.
290
+ remote_fields: 'status', # String | Deprecated. Use show_enum_origins.
291
+ show_enum_origins: 'status' # String | Which fields should be returned in non-normalized form.
134
292
  }
135
293
 
136
294
  begin
@@ -166,9 +324,9 @@ end
166
324
  | ---- | ---- | ----------- | ----- |
167
325
  | **x_account_token** | **String** | Token identifying the end user. | |
168
326
  | **id** | [**String**](.md) | | |
169
- | **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
170
327
  | **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
171
- | **remote_fields** | **String** | Which fields should be returned in non-normalized form. | [optional] |
328
+ | **remote_fields** | **String** | Deprecated. Use show_enum_origins. | [optional] |
329
+ | **show_enum_origins** | **String** | Which fields should be returned in non-normalized form. | [optional] |
172
330
 
173
331
  ### Return type
174
332
 
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **path** | **String** | | |
8
- | **data** | [**Hash&lt;String, AnyType&gt;**](AnyType.md) | | [optional] |
8
+ | **data** | [**Hash&lt;String, Object&gt;**](Object.md) | | [optional] |
9
9
 
10
10
  ## Example
11
11
 
data/docs/ReportItem.md CHANGED
@@ -8,6 +8,7 @@
8
8
  | **name** | **String** | The report item&#39;s name. | [optional] |
9
9
  | **value** | **Float** | The report item&#39;s value. | [optional] |
10
10
  | **sub_items** | [**Hash&lt;String, AnyType&gt;**](AnyType.md) | | [optional][readonly] |
11
+ | **company** | **String** | The company the report item belongs to. | [optional] |
11
12
 
12
13
  ## Example
13
14
 
@@ -18,7 +19,8 @@ instance = MergeAccountingClient::ReportItem.new(
18
19
  remote_id: 10299,
19
20
  name: Revenue,
20
21
  value: 1000,
21
- sub_items: [{&quot;remote_id&quot;:&quot;10300&quot;,&quot;name&quot;:&quot;Revenue - San Francisco&quot;,&quot;value&quot;:500,&quot;sub_items&quot;:[]},{&quot;remote_id&quot;:&quot;10301&quot;,&quot;name&quot;:&quot;Revenue - New York&quot;,&quot;value&quot;:500,&quot;sub_items&quot;:[]}]
22
+ sub_items: [{&quot;remote_id&quot;:&quot;10300&quot;,&quot;name&quot;:&quot;Revenue - San Francisco&quot;,&quot;value&quot;:500,&quot;sub_items&quot;:[]},{&quot;remote_id&quot;:&quot;10301&quot;,&quot;name&quot;:&quot;Revenue - New York&quot;,&quot;value&quot;:500,&quot;sub_items&quot;:[]}],
23
+ company: 595c8f97-2ac4-45b7-b000-41bdf43240b5
22
24
  )
23
25
  ```
24
26
 
@@ -0,0 +1,233 @@
1
+ # MergeAccountingClient::SelectiveSyncApi
2
+
3
+ All URIs are relative to *https://api.merge.dev/api/accounting/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**selective_sync_configurations_list**](SelectiveSyncApi.md#selective_sync_configurations_list) | **GET** /selective-sync/configurations | |
8
+ | [**selective_sync_configurations_update**](SelectiveSyncApi.md#selective_sync_configurations_update) | **PUT** /selective-sync/configurations | |
9
+ | [**selective_sync_meta_list**](SelectiveSyncApi.md#selective_sync_meta_list) | **GET** /selective-sync/meta | |
10
+
11
+
12
+ ## selective_sync_configurations_list
13
+
14
+ > <Array<LinkedAccountSelectiveSyncConfiguration>> selective_sync_configurations_list(x_account_token)
15
+
16
+
17
+
18
+ Get a linked account's selective syncs.
19
+
20
+ ### Examples
21
+
22
+ ```ruby
23
+ require 'time'
24
+ require 'merge_accounting_client'
25
+ # setup authorization
26
+ MergeAccountingClient.configure do |config|
27
+ # Configure API key authorization: tokenAuth
28
+ config.api_key['tokenAuth'] = 'YOUR API KEY'
29
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
30
+ # config.api_key_prefix['tokenAuth'] = 'Bearer'
31
+ end
32
+
33
+ api_instance = MergeAccountingClient::SelectiveSyncApi.new
34
+ x_account_token = 'x_account_token_example' # String | Token identifying the end user.
35
+
36
+ begin
37
+
38
+ result = api_instance.selective_sync_configurations_list(x_account_token)
39
+ p result
40
+ rescue MergeAccountingClient::ApiError => e
41
+ puts "Error when calling SelectiveSyncApi->selective_sync_configurations_list: #{e}"
42
+ end
43
+ ```
44
+
45
+ #### Using the selective_sync_configurations_list_with_http_info variant
46
+
47
+ This returns an Array which contains the response data, status code and headers.
48
+
49
+ > <Array(<Array<LinkedAccountSelectiveSyncConfiguration>>, Integer, Hash)> selective_sync_configurations_list_with_http_info(x_account_token)
50
+
51
+ ```ruby
52
+ begin
53
+
54
+ data, status_code, headers = api_instance.selective_sync_configurations_list_with_http_info(x_account_token)
55
+ p status_code # => 2xx
56
+ p headers # => { ... }
57
+ p data # => <Array<LinkedAccountSelectiveSyncConfiguration>>
58
+ rescue MergeAccountingClient::ApiError => e
59
+ puts "Error when calling SelectiveSyncApi->selective_sync_configurations_list_with_http_info: #{e}"
60
+ end
61
+ ```
62
+
63
+ ### Parameters
64
+
65
+ | Name | Type | Description | Notes |
66
+ | ---- | ---- | ----------- | ----- |
67
+ | **x_account_token** | **String** | Token identifying the end user. | |
68
+
69
+ ### Return type
70
+
71
+ [**Array&lt;LinkedAccountSelectiveSyncConfiguration&gt;**](LinkedAccountSelectiveSyncConfiguration.md)
72
+
73
+ ### Authorization
74
+
75
+ [tokenAuth](../README.md#tokenAuth)
76
+
77
+ ### HTTP request headers
78
+
79
+ - **Content-Type**: Not defined
80
+ - **Accept**: application/json
81
+
82
+
83
+ ## selective_sync_configurations_update
84
+
85
+ > <Array<LinkedAccountSelectiveSyncConfiguration>> selective_sync_configurations_update(x_account_token, linked_account_selective_sync_configuration_list_request)
86
+
87
+
88
+
89
+ Replace a linked account's selective syncs.
90
+
91
+ ### Examples
92
+
93
+ ```ruby
94
+ require 'time'
95
+ require 'merge_accounting_client'
96
+ # setup authorization
97
+ MergeAccountingClient.configure do |config|
98
+ # Configure API key authorization: tokenAuth
99
+ config.api_key['tokenAuth'] = 'YOUR API KEY'
100
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
101
+ # config.api_key_prefix['tokenAuth'] = 'Bearer'
102
+ end
103
+
104
+ api_instance = MergeAccountingClient::SelectiveSyncApi.new
105
+ x_account_token = 'x_account_token_example' # String | Token identifying the end user.
106
+ linked_account_selective_sync_configuration_list_request = MergeAccountingClient::LinkedAccountSelectiveSyncConfigurationListRequest.new({sync_configurations: [MergeAccountingClient::LinkedAccountSelectiveSyncConfigurationRequest.new({linked_account_conditions: [MergeAccountingClient::LinkedAccountConditionRequest.new({condition_schema_id: 'condition_schema_id_example', operator: 'operator_example', value: TODO})]})]}) # LinkedAccountSelectiveSyncConfigurationListRequest |
107
+
108
+ begin
109
+
110
+ result = api_instance.selective_sync_configurations_update(x_account_token, linked_account_selective_sync_configuration_list_request)
111
+ p result
112
+ rescue MergeAccountingClient::ApiError => e
113
+ puts "Error when calling SelectiveSyncApi->selective_sync_configurations_update: #{e}"
114
+ end
115
+ ```
116
+
117
+ #### Using the selective_sync_configurations_update_with_http_info variant
118
+
119
+ This returns an Array which contains the response data, status code and headers.
120
+
121
+ > <Array(<Array<LinkedAccountSelectiveSyncConfiguration>>, Integer, Hash)> selective_sync_configurations_update_with_http_info(x_account_token, linked_account_selective_sync_configuration_list_request)
122
+
123
+ ```ruby
124
+ begin
125
+
126
+ data, status_code, headers = api_instance.selective_sync_configurations_update_with_http_info(x_account_token, linked_account_selective_sync_configuration_list_request)
127
+ p status_code # => 2xx
128
+ p headers # => { ... }
129
+ p data # => <Array<LinkedAccountSelectiveSyncConfiguration>>
130
+ rescue MergeAccountingClient::ApiError => e
131
+ puts "Error when calling SelectiveSyncApi->selective_sync_configurations_update_with_http_info: #{e}"
132
+ end
133
+ ```
134
+
135
+ ### Parameters
136
+
137
+ | Name | Type | Description | Notes |
138
+ | ---- | ---- | ----------- | ----- |
139
+ | **x_account_token** | **String** | Token identifying the end user. | |
140
+ | **linked_account_selective_sync_configuration_list_request** | [**LinkedAccountSelectiveSyncConfigurationListRequest**](LinkedAccountSelectiveSyncConfigurationListRequest.md) | | |
141
+
142
+ ### Return type
143
+
144
+ [**Array&lt;LinkedAccountSelectiveSyncConfiguration&gt;**](LinkedAccountSelectiveSyncConfiguration.md)
145
+
146
+ ### Authorization
147
+
148
+ [tokenAuth](../README.md#tokenAuth)
149
+
150
+ ### HTTP request headers
151
+
152
+ - **Content-Type**: application/json
153
+ - **Accept**: application/json
154
+
155
+
156
+ ## selective_sync_meta_list
157
+
158
+ > <PaginatedConditionSchemaList> selective_sync_meta_list(x_account_token, opts)
159
+
160
+
161
+
162
+ Get metadata for the conditions available to a linked account.
163
+
164
+ ### Examples
165
+
166
+ ```ruby
167
+ require 'time'
168
+ require 'merge_accounting_client'
169
+ # setup authorization
170
+ MergeAccountingClient.configure do |config|
171
+ # Configure API key authorization: tokenAuth
172
+ config.api_key['tokenAuth'] = 'YOUR API KEY'
173
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
174
+ # config.api_key_prefix['tokenAuth'] = 'Bearer'
175
+ end
176
+
177
+ api_instance = MergeAccountingClient::SelectiveSyncApi.new
178
+ x_account_token = 'x_account_token_example' # String | Token identifying the end user.
179
+ opts = {
180
+ common_model: 'common_model_example', # String |
181
+ cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
182
+ page_size: 56 # Integer | Number of results to return per page.
183
+ }
184
+
185
+ begin
186
+
187
+ result = api_instance.selective_sync_meta_list(x_account_token, opts)
188
+ p result
189
+ rescue MergeAccountingClient::ApiError => e
190
+ puts "Error when calling SelectiveSyncApi->selective_sync_meta_list: #{e}"
191
+ end
192
+ ```
193
+
194
+ #### Using the selective_sync_meta_list_with_http_info variant
195
+
196
+ This returns an Array which contains the response data, status code and headers.
197
+
198
+ > <Array(<PaginatedConditionSchemaList>, Integer, Hash)> selective_sync_meta_list_with_http_info(x_account_token, opts)
199
+
200
+ ```ruby
201
+ begin
202
+
203
+ data, status_code, headers = api_instance.selective_sync_meta_list_with_http_info(x_account_token, opts)
204
+ p status_code # => 2xx
205
+ p headers # => { ... }
206
+ p data # => <PaginatedConditionSchemaList>
207
+ rescue MergeAccountingClient::ApiError => e
208
+ puts "Error when calling SelectiveSyncApi->selective_sync_meta_list_with_http_info: #{e}"
209
+ end
210
+ ```
211
+
212
+ ### Parameters
213
+
214
+ | Name | Type | Description | Notes |
215
+ | ---- | ---- | ----------- | ----- |
216
+ | **x_account_token** | **String** | Token identifying the end user. | |
217
+ | **common_model** | **String** | | [optional] |
218
+ | **cursor** | **String** | The pagination cursor value. | [optional] |
219
+ | **page_size** | **Integer** | Number of results to return per page. | [optional] |
220
+
221
+ ### Return type
222
+
223
+ [**PaginatedConditionSchemaList**](PaginatedConditionSchemaList.md)
224
+
225
+ ### Authorization
226
+
227
+ [tokenAuth](../README.md#tokenAuth)
228
+
229
+ ### HTTP request headers
230
+
231
+ - **Content-Type**: Not defined
232
+ - **Accept**: application/json
233
+
@@ -0,0 +1,15 @@
1
+ # MergeAccountingClient::SelectiveSyncConfigurationsUsageEnum
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'merge_accounting_client'
12
+
13
+ instance = MergeAccountingClient::SelectiveSyncConfigurationsUsageEnum.new()
14
+ ```
15
+
data/docs/SyncStatus.md CHANGED
@@ -10,6 +10,7 @@
10
10
  | **next_sync_start** | **Time** | | [optional] |
11
11
  | **status** | [**SyncStatusStatusEnum**](SyncStatusStatusEnum.md) | | |
12
12
  | **is_initial_sync** | **Boolean** | | |
13
+ | **selective_sync_configurations_usage** | [**SelectiveSyncConfigurationsUsageEnum**](SelectiveSyncConfigurationsUsageEnum.md) | | [optional] |
13
14
 
14
15
  ## Example
15
16
 
@@ -17,12 +18,13 @@
17
18
  require 'merge_accounting_client'
18
19
 
19
20
  instance = MergeAccountingClient::SyncStatus.new(
20
- model_name: Candidate,
21
- model_id: ats.Candidate,
21
+ model_name: Invoice,
22
+ model_id: accounting.Invoices,
22
23
  last_sync_start: 2021-03-30T19:44:18.695973Z,
23
24
  next_sync_start: 2021-03-30T20:44:18.662942Z,
24
25
  status: SYNCING,
25
- is_initial_sync: true
26
+ is_initial_sync: true,
27
+ selective_sync_configurations_usage: IN_NEXT_SYNC
26
28
  )
27
29
  ```
28
30
 
data/docs/TaxRate.md CHANGED
@@ -4,13 +4,15 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **id** | **String** | | [optional][readonly] |
8
- | **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
9
- | **remote_data** | [**Array&lt;RemoteData&gt;**](RemoteData.md) | | [optional][readonly] |
10
7
  | **description** | **String** | The tax rate&#39;s description. | [optional] |
11
8
  | **total_tax_rate** | **Float** | The tax rate&#39;s total tax rate. | [optional] |
12
9
  | **effective_tax_rate** | **Float** | The tax rate&#39;s effective tax rate. | [optional] |
10
+ | **company** | **String** | The company the tax rate belongs to. | [optional] |
13
11
  | **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted by third party webhooks. | [optional][readonly] |
12
+ | **id** | **String** | | [optional][readonly] |
13
+ | **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
14
+ | **field_mappings** | [**Hash&lt;String, AnyType&gt;**](AnyType.md) | | [optional][readonly] |
15
+ | **remote_data** | [**Array&lt;RemoteData&gt;**](RemoteData.md) | | [optional][readonly] |
14
16
 
15
17
  ## Example
16
18
 
@@ -18,13 +20,15 @@
18
20
  require 'merge_accounting_client'
19
21
 
20
22
  instance = MergeAccountingClient::TaxRate.new(
21
- id: b82302de-852e-4e60-b050-edf9da3b7c02,
22
- remote_id: 039111,
23
- remote_data: [{&quot;path&quot;:&quot;/actions&quot;,&quot;data&quot;:[&quot;Varies by platform&quot;]}],
24
23
  description: Sales Tax,
25
24
  total_tax_rate: 15.0,
26
25
  effective_tax_rate: 15.0,
27
- remote_was_deleted: null
26
+ company: 595c8f97-2ac4-45b7-b000-41bdf43240b5,
27
+ remote_was_deleted: null,
28
+ id: b82302de-852e-4e60-b050-edf9da3b7c02,
29
+ remote_id: 039111,
30
+ field_mappings: {&quot;organization_defined_targets&quot;:{&quot;custom_key&quot;:&quot;custom_value&quot;},&quot;linked_account_defined_targets&quot;:{&quot;custom_key&quot;:&quot;custom_value&quot;}},
31
+ remote_data: [{&quot;path&quot;:&quot;/actions&quot;,&quot;data&quot;:[&quot;Varies by platform&quot;]}]
28
32
  )
29
33
  ```
30
34
 
data/docs/TaxRatesApi.md CHANGED
@@ -32,6 +32,7 @@ end
32
32
  api_instance = MergeAccountingClient::TaxRatesApi.new
33
33
  x_account_token = 'x_account_token_example' # String | Token identifying the end user.
34
34
  opts = {
35
+ company_id: 'company_id_example', # String | If provided, will only return tax rates for this company.
35
36
  created_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created after this datetime.
36
37
  created_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created before this datetime.
37
38
  cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
@@ -75,6 +76,7 @@ end
75
76
  | Name | Type | Description | Notes |
76
77
  | ---- | ---- | ----------- | ----- |
77
78
  | **x_account_token** | **String** | Token identifying the end user. | |
79
+ | **company_id** | **String** | If provided, will only return tax rates for this company. | [optional] |
78
80
  | **created_after** | **Time** | If provided, will only return objects created after this datetime. | [optional] |
79
81
  | **created_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
80
82
  | **cursor** | **String** | The pagination cursor value. | [optional] |
@@ -32,6 +32,7 @@ end
32
32
  api_instance = MergeAccountingClient::TrackingCategoriesApi.new
33
33
  x_account_token = 'x_account_token_example' # String | Token identifying the end user.
34
34
  opts = {
35
+ company_id: 'company_id_example', # String | If provided, will only return tracking categories for this company.
35
36
  created_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created after this datetime.
36
37
  created_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created before this datetime.
37
38
  cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
@@ -40,8 +41,9 @@ opts = {
40
41
  modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified after this datetime.
41
42
  modified_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified before this datetime.
42
43
  page_size: 56, # Integer | Number of results to return per page.
43
- remote_fields: 'status', # String | Which fields should be returned in non-normalized form.
44
- remote_id: 'remote_id_example' # String | The API provider's ID for the given object.
44
+ remote_fields: 'status', # String | Deprecated. Use show_enum_origins.
45
+ remote_id: 'remote_id_example', # String | The API provider's ID for the given object.
46
+ show_enum_origins: 'status' # String | Which fields should be returned in non-normalized form.
45
47
  }
46
48
 
47
49
  begin
@@ -76,6 +78,7 @@ end
76
78
  | Name | Type | Description | Notes |
77
79
  | ---- | ---- | ----------- | ----- |
78
80
  | **x_account_token** | **String** | Token identifying the end user. | |
81
+ | **company_id** | **String** | If provided, will only return tracking categories for this company. | [optional] |
79
82
  | **created_after** | **Time** | If provided, will only return objects created after this datetime. | [optional] |
80
83
  | **created_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
81
84
  | **cursor** | **String** | The pagination cursor value. | [optional] |
@@ -84,8 +87,9 @@ end
84
87
  | **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
85
88
  | **modified_before** | **Time** | If provided, will only return objects modified before this datetime. | [optional] |
86
89
  | **page_size** | **Integer** | Number of results to return per page. | [optional] |
87
- | **remote_fields** | **String** | Which fields should be returned in non-normalized form. | [optional] |
90
+ | **remote_fields** | **String** | Deprecated. Use show_enum_origins. | [optional] |
88
91
  | **remote_id** | **String** | The API provider&#39;s ID for the given object. | [optional] |
92
+ | **show_enum_origins** | **String** | Which fields should be returned in non-normalized form. | [optional] |
89
93
 
90
94
  ### Return type
91
95
 
@@ -127,7 +131,8 @@ x_account_token = 'x_account_token_example' # String | Token identifying the end
127
131
  id = TODO # String |
128
132
  opts = {
129
133
  include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
130
- remote_fields: 'status' # String | Which fields should be returned in non-normalized form.
134
+ remote_fields: 'status', # String | Deprecated. Use show_enum_origins.
135
+ show_enum_origins: 'status' # String | Which fields should be returned in non-normalized form.
131
136
  }
132
137
 
133
138
  begin
@@ -164,7 +169,8 @@ end
164
169
  | **x_account_token** | **String** | Token identifying the end user. | |
165
170
  | **id** | [**String**](.md) | | |
166
171
  | **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
167
- | **remote_fields** | **String** | Which fields should be returned in non-normalized form. | [optional] |
172
+ | **remote_fields** | **String** | Deprecated. Use show_enum_origins. | [optional] |
173
+ | **show_enum_origins** | **String** | Which fields should be returned in non-normalized form. | [optional] |
168
174
 
169
175
  ### Return type
170
176