merge_accounting_client 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (309) 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 +3 -1
  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/ReportItem.md +3 -1
  92. data/docs/SelectiveSyncApi.md +233 -0
  93. data/docs/SelectiveSyncConfigurationsUsageEnum.md +15 -0
  94. data/docs/SyncStatus.md +5 -3
  95. data/docs/TaxRate.md +11 -7
  96. data/docs/TaxRatesApi.md +2 -0
  97. data/docs/TrackingCategoriesApi.md +11 -5
  98. data/docs/TrackingCategory.md +13 -9
  99. data/docs/Transaction.md +20 -14
  100. data/docs/TransactionLineItem.md +9 -3
  101. data/docs/TransactionsApi.md +7 -5
  102. data/docs/VendorCredit.md +13 -7
  103. data/docs/VendorCreditLine.md +6 -2
  104. data/docs/VendorCreditsApi.md +7 -5
  105. data/lib/merge_accounting_client/api/accounts_api.rb +159 -4
  106. data/lib/merge_accounting_client/api/addresses_api.rb +9 -2
  107. data/lib/merge_accounting_client/api/attachments_api.rb +141 -0
  108. data/lib/merge_accounting_client/api/balance_sheets_api.rb +3 -0
  109. data/lib/merge_accounting_client/api/cash_flow_statements_api.rb +3 -0
  110. data/lib/merge_accounting_client/api/common_model_scopes_api.rb +146 -0
  111. data/lib/merge_accounting_client/api/company_info_api.rb +0 -14
  112. data/lib/merge_accounting_client/api/contacts_api.rb +159 -18
  113. data/lib/merge_accounting_client/api/credit_notes_api.rb +27 -18
  114. data/lib/merge_accounting_client/api/expenses_api.rb +147 -14
  115. data/lib/merge_accounting_client/api/income_statements_api.rb +3 -0
  116. data/lib/merge_accounting_client/api/invoices_api.rb +29 -20
  117. data/lib/merge_accounting_client/api/issues_api.rb +2 -2
  118. data/lib/merge_accounting_client/api/items_api.rb +21 -18
  119. data/lib/merge_accounting_client/api/journal_entries_api.rb +9 -14
  120. data/lib/merge_accounting_client/api/linked_accounts_api.rb +3 -3
  121. data/lib/merge_accounting_client/api/payments_api.rb +147 -14
  122. data/lib/merge_accounting_client/api/purchase_orders_api.rb +165 -18
  123. data/lib/merge_accounting_client/api/selective_sync_api.rb +225 -0
  124. data/lib/merge_accounting_client/api/tax_rates_api.rb +3 -0
  125. data/lib/merge_accounting_client/api/tracking_categories_api.rb +21 -4
  126. data/lib/merge_accounting_client/api/transactions_api.rb +9 -14
  127. data/lib/merge_accounting_client/api/vendor_credits_api.rb +9 -14
  128. data/lib/merge_accounting_client/models/account.rb +45 -21
  129. data/lib/merge_accounting_client/models/account_endpoint_request.rb +223 -0
  130. data/lib/merge_accounting_client/models/account_integration.rb +1 -1
  131. data/lib/merge_accounting_client/models/account_request.rb +344 -0
  132. data/lib/merge_accounting_client/models/account_response.rb +266 -0
  133. data/lib/merge_accounting_client/models/accounting_attachment.rb +39 -16
  134. data/lib/merge_accounting_client/models/accounting_attachment_endpoint_request.rb +223 -0
  135. data/lib/merge_accounting_client/models/accounting_attachment_request.rb +282 -0
  136. data/lib/merge_accounting_client/models/accounting_attachment_response.rb +266 -0
  137. data/lib/merge_accounting_client/models/accounting_phone_number_request.rb +256 -0
  138. data/lib/merge_accounting_client/models/address.rb +16 -5
  139. data/lib/merge_accounting_client/models/balance_sheet.rb +41 -18
  140. data/lib/merge_accounting_client/models/cash_flow_statement.rb +41 -18
  141. data/lib/merge_accounting_client/models/categories_enum.rb +3 -1
  142. data/lib/merge_accounting_client/models/category_enum.rb +3 -1
  143. data/lib/merge_accounting_client/models/common_model_scope_data.rb +234 -0
  144. data/lib/merge_accounting_client/models/common_model_scopes.rb +234 -0
  145. data/lib/merge_accounting_client/models/common_model_scopes_body_request.rb +274 -0
  146. data/lib/merge_accounting_client/models/common_model_scopes_disabled_models.rb +283 -0
  147. data/lib/merge_accounting_client/models/common_model_scopes_disabled_models_enabled_actions_enum.rb +45 -0
  148. data/lib/merge_accounting_client/models/common_model_scopes_post_inner_deserializer_request.rb +274 -0
  149. data/lib/merge_accounting_client/models/common_model_scopes_update_serializer.rb +226 -0
  150. data/lib/merge_accounting_client/models/company_info.rb +29 -17
  151. data/lib/merge_accounting_client/models/condition_schema.rb +298 -0
  152. data/lib/merge_accounting_client/models/condition_type_enum.rb +50 -0
  153. data/lib/merge_accounting_client/models/contact.rb +41 -18
  154. data/lib/merge_accounting_client/models/contact_endpoint_request.rb +223 -0
  155. data/lib/merge_accounting_client/models/contact_request.rb +346 -0
  156. data/lib/merge_accounting_client/models/contact_response.rb +266 -0
  157. data/lib/merge_accounting_client/models/credit_note.rb +43 -20
  158. data/lib/merge_accounting_client/models/credit_note_line_item.rb +40 -12
  159. data/lib/merge_accounting_client/models/data_passthrough_request.rb +1 -0
  160. data/lib/merge_accounting_client/models/enabled_actions_enum.rb +45 -0
  161. data/lib/merge_accounting_client/models/end_user_details_request.rb +18 -5
  162. data/lib/merge_accounting_client/models/expense.rb +91 -38
  163. data/lib/merge_accounting_client/models/expense_endpoint_request.rb +223 -0
  164. data/lib/merge_accounting_client/models/expense_line.rb +51 -17
  165. data/lib/merge_accounting_client/models/expense_line_request.rb +332 -0
  166. data/lib/merge_accounting_client/models/expense_request.rb +350 -0
  167. data/lib/merge_accounting_client/models/expense_response.rb +266 -0
  168. data/lib/merge_accounting_client/models/income_statement.rb +44 -21
  169. data/lib/merge_accounting_client/models/invoice.rb +94 -42
  170. data/lib/merge_accounting_client/models/invoice_line_item.rb +99 -26
  171. data/lib/merge_accounting_client/models/invoice_line_item_request.rb +102 -17
  172. data/lib/merge_accounting_client/models/invoice_request.rb +85 -32
  173. data/lib/merge_accounting_client/models/issue.rb +15 -4
  174. data/lib/merge_accounting_client/models/item.rb +44 -19
  175. data/lib/merge_accounting_client/models/journal_entry.rb +100 -38
  176. data/lib/merge_accounting_client/models/journal_entry_request.rb +92 -40
  177. data/lib/merge_accounting_client/models/journal_line.rb +28 -17
  178. data/lib/merge_accounting_client/models/journal_line_request.rb +52 -17
  179. data/lib/merge_accounting_client/models/link_token.rb +0 -5
  180. data/lib/merge_accounting_client/models/linked_account_condition.rb +282 -0
  181. data/lib/merge_accounting_client/models/linked_account_condition_request.rb +269 -0
  182. data/lib/merge_accounting_client/models/linked_account_selective_sync_configuration.rb +221 -0
  183. data/lib/merge_accounting_client/models/linked_account_selective_sync_configuration_list_request.rb +226 -0
  184. data/lib/merge_accounting_client/models/linked_account_selective_sync_configuration_request.rb +226 -0
  185. data/lib/merge_accounting_client/models/meta_response.rb +12 -1
  186. data/lib/merge_accounting_client/models/multipart_form_field_request.rb +1 -1
  187. data/lib/merge_accounting_client/models/operator_schema.rb +229 -0
  188. data/lib/merge_accounting_client/models/paginated_condition_schema_list.rb +240 -0
  189. data/lib/merge_accounting_client/models/payment.rb +82 -18
  190. data/lib/merge_accounting_client/models/payment_endpoint_request.rb +223 -0
  191. data/lib/merge_accounting_client/models/payment_request.rb +328 -0
  192. data/lib/merge_accounting_client/models/payment_response.rb +266 -0
  193. data/lib/merge_accounting_client/models/posting_status_enum.rb +45 -0
  194. data/lib/merge_accounting_client/models/purchase_order.rb +92 -41
  195. data/lib/merge_accounting_client/models/purchase_order_endpoint_request.rb +223 -0
  196. data/lib/merge_accounting_client/models/purchase_order_line_item.rb +79 -12
  197. data/lib/merge_accounting_client/models/purchase_order_line_item_request.rb +422 -0
  198. data/lib/merge_accounting_client/models/purchase_order_request.rb +383 -0
  199. data/lib/merge_accounting_client/models/purchase_order_response.rb +266 -0
  200. data/lib/merge_accounting_client/models/report_item.rb +15 -4
  201. data/lib/merge_accounting_client/models/selective_sync_configurations_usage_enum.rb +45 -0
  202. data/lib/merge_accounting_client/models/sync_status.rb +13 -4
  203. data/lib/merge_accounting_client/models/tax_rate.rb +59 -36
  204. data/lib/merge_accounting_client/models/tracking_category.rb +62 -38
  205. data/lib/merge_accounting_client/models/transaction.rb +97 -46
  206. data/lib/merge_accounting_client/models/transaction_line_item.rb +75 -19
  207. data/lib/merge_accounting_client/models/vendor_credit.rb +70 -18
  208. data/lib/merge_accounting_client/models/vendor_credit_line.rb +34 -6
  209. data/lib/merge_accounting_client/version.rb +1 -1
  210. data/lib/merge_accounting_client.rb +42 -1
  211. data/spec/api/accounts_api_spec.rb +30 -2
  212. data/spec/api/addresses_api_spec.rb +2 -1
  213. data/spec/api/attachments_api_spec.rb +26 -0
  214. data/spec/api/balance_sheets_api_spec.rb +1 -0
  215. data/spec/api/cash_flow_statements_api_spec.rb +1 -0
  216. data/spec/api/common_model_scopes_api_spec.rb +58 -0
  217. data/spec/api/company_info_api_spec.rb +0 -2
  218. data/spec/api/contacts_api_spec.rb +30 -4
  219. data/spec/api/credit_notes_api_spec.rb +7 -4
  220. data/spec/api/expenses_api_spec.rb +28 -2
  221. data/spec/api/income_statements_api_spec.rb +1 -0
  222. data/spec/api/invoices_api_spec.rb +8 -5
  223. data/spec/api/issues_api_spec.rb +1 -1
  224. data/spec/api/items_api_spec.rb +5 -4
  225. data/spec/api/journal_entries_api_spec.rb +3 -2
  226. data/spec/api/linked_accounts_api_spec.rb +1 -1
  227. data/spec/api/payments_api_spec.rb +28 -2
  228. data/spec/api/purchase_orders_api_spec.rb +32 -4
  229. data/spec/api/selective_sync_api_spec.rb +72 -0
  230. data/spec/api/tax_rates_api_spec.rb +1 -0
  231. data/spec/api/tracking_categories_api_spec.rb +5 -2
  232. data/spec/api/transactions_api_spec.rb +3 -2
  233. data/spec/api/vendor_credits_api_spec.rb +3 -2
  234. data/spec/models/account_endpoint_request_spec.rb +34 -0
  235. data/spec/models/account_request_spec.rb +100 -0
  236. data/spec/models/account_response_spec.rb +52 -0
  237. data/spec/models/account_spec.rb +18 -6
  238. data/spec/models/accounting_attachment_endpoint_request_spec.rb +34 -0
  239. data/spec/models/accounting_attachment_request_spec.rb +58 -0
  240. data/spec/models/accounting_attachment_response_spec.rb +52 -0
  241. data/spec/models/accounting_attachment_spec.rb +15 -3
  242. data/spec/models/accounting_phone_number_request_spec.rb +52 -0
  243. data/spec/models/address_spec.rb +6 -0
  244. data/spec/models/balance_sheet_spec.rb +15 -3
  245. data/spec/models/cash_flow_statement_spec.rb +15 -3
  246. data/spec/models/common_model_scope_data_spec.rb +40 -0
  247. data/spec/models/common_model_scopes_body_request_spec.rb +46 -0
  248. data/spec/models/common_model_scopes_disabled_models_enabled_actions_enum_spec.rb +28 -0
  249. data/spec/models/common_model_scopes_disabled_models_spec.rb +58 -0
  250. data/spec/models/common_model_scopes_post_inner_deserializer_request_spec.rb +46 -0
  251. data/spec/models/common_model_scopes_spec.rb +40 -0
  252. data/spec/models/common_model_scopes_update_serializer_spec.rb +34 -0
  253. data/spec/models/company_info_spec.rb +12 -6
  254. data/spec/models/condition_schema_spec.rb +70 -0
  255. data/spec/models/condition_type_enum_spec.rb +28 -0
  256. data/spec/models/contact_endpoint_request_spec.rb +34 -0
  257. data/spec/models/contact_request_spec.rb +100 -0
  258. data/spec/models/contact_response_spec.rb +52 -0
  259. data/spec/models/contact_spec.rb +18 -6
  260. data/spec/models/credit_note_line_item_spec.rb +12 -0
  261. data/spec/models/credit_note_spec.rb +17 -5
  262. data/spec/models/enabled_actions_enum_spec.rb +28 -0
  263. data/spec/models/end_user_details_request_spec.rb +6 -0
  264. data/spec/models/expense_endpoint_request_spec.rb +34 -0
  265. data/spec/models/expense_line_request_spec.rb +94 -0
  266. data/spec/models/expense_line_spec.rb +22 -4
  267. data/spec/models/expense_request_spec.rb +94 -0
  268. data/spec/models/expense_response_spec.rb +52 -0
  269. data/spec/models/expense_spec.rb +30 -12
  270. data/spec/models/income_statement_spec.rb +15 -3
  271. data/spec/models/invoice_line_item_request_spec.rb +41 -5
  272. data/spec/models/invoice_line_item_spec.rb +36 -6
  273. data/spec/models/invoice_request_spec.rb +26 -8
  274. data/spec/models/invoice_spec.rb +34 -16
  275. data/spec/models/issue_spec.rb +6 -0
  276. data/spec/models/item_spec.rb +18 -6
  277. data/spec/models/journal_entry_request_spec.rb +25 -7
  278. data/spec/models/journal_entry_spec.rb +35 -11
  279. data/spec/models/journal_line_request_spec.rb +22 -4
  280. data/spec/models/journal_line_spec.rb +10 -4
  281. data/spec/models/linked_account_condition_request_spec.rb +46 -0
  282. data/spec/models/linked_account_condition_spec.rb +64 -0
  283. data/spec/models/linked_account_selective_sync_configuration_list_request_spec.rb +34 -0
  284. data/spec/models/linked_account_selective_sync_configuration_request_spec.rb +34 -0
  285. data/spec/models/linked_account_selective_sync_configuration_spec.rb +34 -0
  286. data/spec/models/meta_response_spec.rb +6 -0
  287. data/spec/models/operator_schema_spec.rb +40 -0
  288. data/spec/models/paginated_condition_schema_list_spec.rb +46 -0
  289. data/spec/models/payment_endpoint_request_spec.rb +34 -0
  290. data/spec/models/payment_request_spec.rb +82 -0
  291. data/spec/models/payment_response_spec.rb +52 -0
  292. data/spec/models/payment_spec.rb +28 -4
  293. data/spec/models/posting_status_enum_spec.rb +28 -0
  294. data/spec/models/purchase_order_endpoint_request_spec.rb +34 -0
  295. data/spec/models/purchase_order_line_item_request_spec.rb +112 -0
  296. data/spec/models/purchase_order_line_item_spec.rb +24 -0
  297. data/spec/models/purchase_order_request_spec.rb +112 -0
  298. data/spec/models/purchase_order_response_spec.rb +52 -0
  299. data/spec/models/purchase_order_spec.rb +34 -16
  300. data/spec/models/report_item_spec.rb +6 -0
  301. data/spec/models/selective_sync_configurations_usage_enum_spec.rb +28 -0
  302. data/spec/models/sync_status_spec.rb +6 -0
  303. data/spec/models/tax_rate_spec.rb +19 -7
  304. data/spec/models/tracking_category_spec.rb +20 -8
  305. data/spec/models/transaction_line_item_spec.rb +19 -1
  306. data/spec/models/transaction_spec.rb +30 -12
  307. data/spec/models/vendor_credit_line_spec.rb +12 -0
  308. data/spec/models/vendor_credit_spec.rb +24 -6
  309. metadata +283 -115
@@ -0,0 +1,58 @@
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 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for MergeAccountingClient::CommonModelScopesApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'CommonModelScopesApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = MergeAccountingClient::CommonModelScopesApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of CommonModelScopesApi' do
30
+ it 'should create an instance of CommonModelScopesApi' do
31
+ expect(@api_instance).to be_instance_of(MergeAccountingClient::CommonModelScopesApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for common_model_scopes_create
36
+ # Update the configuration of what data is saved by Merge when syncing. Common model scopes are set as a default across all linked accounts, but can be updated to have greater granularity per account.
37
+ # @param common_model_scopes_update_serializer
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :linked_account_id ID of specific linked account to fetch
40
+ # @return [CommonModelScopes]
41
+ describe 'common_model_scopes_create test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ # unit tests for common_model_scopes_retrieve
48
+ # Fetch the configuration of what data is saved by Merge when syncing. Common model scopes are set as a default across all linked accounts, but can be updated to have greater granularity per account.
49
+ # @param [Hash] opts the optional parameters
50
+ # @option opts [String] :linked_account_id ID of specific linked account to fetch
51
+ # @return [CommonModelScopes]
52
+ describe 'common_model_scopes_retrieve test' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ end
@@ -39,7 +39,6 @@ describe 'CompanyInfoApi' do
39
39
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
40
40
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
41
41
  # @option opts [String] :cursor The pagination cursor value.
42
- # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
43
42
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
44
43
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
45
44
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
@@ -58,7 +57,6 @@ describe 'CompanyInfoApi' do
58
57
  # @param x_account_token Token identifying the end user.
59
58
  # @param id
60
59
  # @param [Hash] opts the optional parameters
61
- # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
62
60
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
63
61
  # @return [CompanyInfo]
64
62
  describe 'company_info_retrieve test' do
@@ -32,21 +32,36 @@ describe 'ContactsApi' do
32
32
  end
33
33
  end
34
34
 
35
+ # unit tests for contacts_create
36
+ # Creates a `Contact` object with the given values.
37
+ # @param x_account_token Token identifying the end user.
38
+ # @param contact_endpoint_request
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [Boolean] :is_debug_mode Whether to include debug fields (such as log file links) in the response.
41
+ # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
42
+ # @return [ContactResponse]
43
+ describe 'contacts_create test' do
44
+ it 'should work' do
45
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
46
+ end
47
+ end
48
+
35
49
  # unit tests for contacts_list
36
50
  # Returns a list of `Contact` objects.
37
51
  # @param x_account_token Token identifying the end user.
38
52
  # @param [Hash] opts the optional parameters
53
+ # @option opts [String] :company_id If provided, will only return contacts for this company.
39
54
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
40
55
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
41
56
  # @option opts [String] :cursor The pagination cursor value.
42
- # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
43
57
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
44
58
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
45
59
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
46
60
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
47
61
  # @option opts [Integer] :page_size Number of results to return per page.
48
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
62
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
49
63
  # @option opts [String] :remote_id The API provider's ID for the given object.
64
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
50
65
  # @return [PaginatedContactList]
51
66
  describe 'contacts_list test' do
52
67
  it 'should work' do
@@ -54,14 +69,25 @@ describe 'ContactsApi' do
54
69
  end
55
70
  end
56
71
 
72
+ # unit tests for contacts_meta_post_retrieve
73
+ # Returns metadata for `Contact` POSTs.
74
+ # @param x_account_token Token identifying the end user.
75
+ # @param [Hash] opts the optional parameters
76
+ # @return [MetaResponse]
77
+ describe 'contacts_meta_post_retrieve test' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
57
83
  # unit tests for contacts_retrieve
58
84
  # Returns a `Contact` object with the given `id`.
59
85
  # @param x_account_token Token identifying the end user.
60
86
  # @param id
61
87
  # @param [Hash] opts the optional parameters
62
- # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
63
88
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
64
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
89
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
90
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
65
91
  # @return [Contact]
66
92
  describe 'contacts_retrieve test' do
67
93
  it 'should work' do
@@ -36,17 +36,20 @@ describe 'CreditNotesApi' do
36
36
  # Returns a list of `CreditNote` objects.
37
37
  # @param x_account_token Token identifying the end user.
38
38
  # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :company_id If provided, will only return credit notes for this company.
39
40
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
40
41
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
41
42
  # @option opts [String] :cursor The pagination cursor value.
42
- # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
43
43
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
44
44
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
45
45
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
46
46
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
47
47
  # @option opts [Integer] :page_size Number of results to return per page.
48
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
48
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
49
49
  # @option opts [String] :remote_id The API provider's ID for the given object.
50
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
51
+ # @option opts [Time] :transaction_date_after If provided, will only return objects created after this datetime.
52
+ # @option opts [Time] :transaction_date_before If provided, will only return objects created before this datetime.
50
53
  # @return [PaginatedCreditNoteList]
51
54
  describe 'credit_notes_list test' do
52
55
  it 'should work' do
@@ -59,9 +62,9 @@ describe 'CreditNotesApi' do
59
62
  # @param x_account_token Token identifying the end user.
60
63
  # @param id
61
64
  # @param [Hash] opts the optional parameters
62
- # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
63
65
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
64
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
66
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
67
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
65
68
  # @return [CreditNote]
66
69
  describe 'credit_notes_retrieve test' do
67
70
  it 'should work' do
@@ -32,20 +32,36 @@ describe 'ExpensesApi' do
32
32
  end
33
33
  end
34
34
 
35
+ # unit tests for expenses_create
36
+ # Creates an `Expense` object with the given values.
37
+ # @param x_account_token Token identifying the end user.
38
+ # @param expense_endpoint_request
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [Boolean] :is_debug_mode Whether to include debug fields (such as log file links) in the response.
41
+ # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
42
+ # @return [ExpenseResponse]
43
+ describe 'expenses_create test' do
44
+ it 'should work' do
45
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
46
+ end
47
+ end
48
+
35
49
  # unit tests for expenses_list
36
50
  # Returns a list of `Expense` objects.
37
51
  # @param x_account_token Token identifying the end user.
38
52
  # @param [Hash] opts the optional parameters
53
+ # @option opts [String] :company_id If provided, will only return expenses for this company.
39
54
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
40
55
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
41
56
  # @option opts [String] :cursor The pagination cursor value.
42
- # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
43
57
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
44
58
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
45
59
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
46
60
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
47
61
  # @option opts [Integer] :page_size Number of results to return per page.
48
62
  # @option opts [String] :remote_id The API provider's ID for the given object.
63
+ # @option opts [Time] :transaction_date_after If provided, will only return objects created after this datetime.
64
+ # @option opts [Time] :transaction_date_before If provided, will only return objects created before this datetime.
49
65
  # @return [PaginatedExpenseList]
50
66
  describe 'expenses_list test' do
51
67
  it 'should work' do
@@ -53,12 +69,22 @@ describe 'ExpensesApi' do
53
69
  end
54
70
  end
55
71
 
72
+ # unit tests for expenses_meta_post_retrieve
73
+ # Returns metadata for `Expense` POSTs.
74
+ # @param x_account_token Token identifying the end user.
75
+ # @param [Hash] opts the optional parameters
76
+ # @return [MetaResponse]
77
+ describe 'expenses_meta_post_retrieve test' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
56
83
  # unit tests for expenses_retrieve
57
84
  # Returns an `Expense` object with the given `id`.
58
85
  # @param x_account_token Token identifying the end user.
59
86
  # @param id
60
87
  # @param [Hash] opts the optional parameters
61
- # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
62
88
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
63
89
  # @return [Expense]
64
90
  describe 'expenses_retrieve test' do
@@ -36,6 +36,7 @@ describe 'IncomeStatementsApi' do
36
36
  # Returns a list of `IncomeStatement` objects.
37
37
  # @param x_account_token Token identifying the end user.
38
38
  # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :company_id If provided, will only return income statements for this company.
39
40
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
40
41
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
41
42
  # @option opts [String] :cursor The pagination cursor value.
@@ -50,19 +50,22 @@ describe 'InvoicesApi' do
50
50
  # Returns a list of `Invoice` objects.
51
51
  # @param x_account_token Token identifying the end user.
52
52
  # @param [Hash] opts the optional parameters
53
+ # @option opts [String] :company_id If provided, will only return invoices for this company.
53
54
  # @option opts [String] :contact_id If provided, will only return invoices for this contact.
54
55
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
55
56
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
56
57
  # @option opts [String] :cursor The pagination cursor value.
57
- # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
58
58
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
59
59
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
60
+ # @option opts [Time] :issue_date_after If provided, will only return objects created after this datetime.
61
+ # @option opts [Time] :issue_date_before If provided, will only return objects created before this datetime.
60
62
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
61
63
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
62
64
  # @option opts [Integer] :page_size Number of results to return per page.
63
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
65
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
64
66
  # @option opts [String] :remote_id The API provider's ID for the given object.
65
- # @option opts [String] :type If provided, will only return Invoices with this type
67
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
68
+ # @option opts [String] :type If provided, will only return Invoices with this type * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE
66
69
  # @return [PaginatedInvoiceList]
67
70
  describe 'invoices_list test' do
68
71
  it 'should work' do
@@ -86,9 +89,9 @@ describe 'InvoicesApi' do
86
89
  # @param x_account_token Token identifying the end user.
87
90
  # @param id
88
91
  # @param [Hash] opts the optional parameters
89
- # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
90
92
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
91
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
93
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
94
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
92
95
  # @return [Invoice]
93
96
  describe 'invoices_retrieve test' do
94
97
  it 'should work' do
@@ -47,7 +47,7 @@ describe 'IssuesApi' do
47
47
  # @option opts [Time] :last_incident_time_before If provided, will only return issues whose first incident time was before this datetime.
48
48
  # @option opts [Integer] :page_size Number of results to return per page.
49
49
  # @option opts [String] :start_date If included, will only include issues whose most recent action occurred after this time
50
- # @option opts [String] :status
50
+ # @option opts [String] :status * `ONGOING` - ONGOING * `RESOLVED` - RESOLVED * `ONGOING` - ONGOING * `RESOLVED` - RESOLVED
51
51
  # @return [PaginatedIssueList]
52
52
  describe 'issues_list test' do
53
53
  it 'should work' do
@@ -36,17 +36,18 @@ describe 'ItemsApi' do
36
36
  # Returns a list of `Item` objects.
37
37
  # @param x_account_token Token identifying the end user.
38
38
  # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :company_id If provided, will only return items for this company.
39
40
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
40
41
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
41
42
  # @option opts [String] :cursor The pagination cursor value.
42
- # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
43
43
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
44
44
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
45
45
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
46
46
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
47
47
  # @option opts [Integer] :page_size Number of results to return per page.
48
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
48
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
49
49
  # @option opts [String] :remote_id The API provider's ID for the given object.
50
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
50
51
  # @return [PaginatedItemList]
51
52
  describe 'items_list test' do
52
53
  it 'should work' do
@@ -59,9 +60,9 @@ describe 'ItemsApi' do
59
60
  # @param x_account_token Token identifying the end user.
60
61
  # @param id
61
62
  # @param [Hash] opts the optional parameters
62
- # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
63
63
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
64
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
64
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
65
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
65
66
  # @return [Item]
66
67
  describe 'items_retrieve test' do
67
68
  it 'should work' do
@@ -50,16 +50,18 @@ describe 'JournalEntriesApi' do
50
50
  # Returns a list of `JournalEntry` objects.
51
51
  # @param x_account_token Token identifying the end user.
52
52
  # @param [Hash] opts the optional parameters
53
+ # @option opts [String] :company_id If provided, will only return journal entries for this company.
53
54
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
54
55
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
55
56
  # @option opts [String] :cursor The pagination cursor value.
56
- # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
57
57
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
58
58
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
59
59
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
60
60
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
61
61
  # @option opts [Integer] :page_size Number of results to return per page.
62
62
  # @option opts [String] :remote_id The API provider's ID for the given object.
63
+ # @option opts [Time] :transaction_date_after If provided, will only return objects created after this datetime.
64
+ # @option opts [Time] :transaction_date_before If provided, will only return objects created before this datetime.
63
65
  # @return [PaginatedJournalEntryList]
64
66
  describe 'journal_entries_list test' do
65
67
  it 'should work' do
@@ -83,7 +85,6 @@ describe 'JournalEntriesApi' do
83
85
  # @param x_account_token Token identifying the end user.
84
86
  # @param id
85
87
  # @param [Hash] opts the optional parameters
86
- # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
87
88
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
88
89
  # @return [JournalEntry]
89
90
  describe 'journal_entries_retrieve test' do
@@ -35,7 +35,7 @@ describe 'LinkedAccountsApi' do
35
35
  # unit tests for linked_accounts_list
36
36
  # List linked accounts for your organization.
37
37
  # @param [Hash] opts the optional parameters
38
- # @option opts [String] :category
38
+ # @option opts [String] :category * `hris` - hris * `ats` - ats * `accounting` - accounting * `ticketing` - ticketing * `crm` - crm * `mktg` - mktg * `filestorage` - filestorage * `hris` - hris * `ats` - ats * `accounting` - accounting * `ticketing` - ticketing * `crm` - crm * `mktg` - mktg * `filestorage` - filestorage
39
39
  # @option opts [String] :cursor The pagination cursor value.
40
40
  # @option opts [String] :end_user_email_address If provided, will only return linked accounts associated with the given email address.
41
41
  # @option opts [String] :end_user_organization_name If provided, will only return linked accounts associated with the given organization name.
@@ -32,22 +32,38 @@ describe 'PaymentsApi' do
32
32
  end
33
33
  end
34
34
 
35
+ # unit tests for payments_create
36
+ # Creates a `Payment` object with the given values.
37
+ # @param x_account_token Token identifying the end user.
38
+ # @param payment_endpoint_request
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [Boolean] :is_debug_mode Whether to include debug fields (such as log file links) in the response.
41
+ # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
42
+ # @return [PaymentResponse]
43
+ describe 'payments_create test' do
44
+ it 'should work' do
45
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
46
+ end
47
+ end
48
+
35
49
  # unit tests for payments_list
36
50
  # Returns a list of `Payment` objects.
37
51
  # @param x_account_token Token identifying the end user.
38
52
  # @param [Hash] opts the optional parameters
39
53
  # @option opts [String] :account_id If provided, will only return payments for this account.
54
+ # @option opts [String] :company_id If provided, will only return payments for this company.
40
55
  # @option opts [String] :contact_id If provided, will only return payments for this contact.
41
56
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
42
57
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
43
58
  # @option opts [String] :cursor The pagination cursor value.
44
- # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
45
59
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
46
60
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
47
61
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
48
62
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
49
63
  # @option opts [Integer] :page_size Number of results to return per page.
50
64
  # @option opts [String] :remote_id The API provider's ID for the given object.
65
+ # @option opts [Time] :transaction_date_after If provided, will only return objects created after this datetime.
66
+ # @option opts [Time] :transaction_date_before If provided, will only return objects created before this datetime.
51
67
  # @return [PaginatedPaymentList]
52
68
  describe 'payments_list test' do
53
69
  it 'should work' do
@@ -55,12 +71,22 @@ describe 'PaymentsApi' do
55
71
  end
56
72
  end
57
73
 
74
+ # unit tests for payments_meta_post_retrieve
75
+ # Returns metadata for `Payment` POSTs.
76
+ # @param x_account_token Token identifying the end user.
77
+ # @param [Hash] opts the optional parameters
78
+ # @return [MetaResponse]
79
+ describe 'payments_meta_post_retrieve test' do
80
+ it 'should work' do
81
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
82
+ end
83
+ end
84
+
58
85
  # unit tests for payments_retrieve
59
86
  # Returns a `Payment` object with the given `id`.
60
87
  # @param x_account_token Token identifying the end user.
61
88
  # @param id
62
89
  # @param [Hash] opts the optional parameters
63
- # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
64
90
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
65
91
  # @return [Payment]
66
92
  describe 'payments_retrieve test' do
@@ -32,21 +32,38 @@ describe 'PurchaseOrdersApi' do
32
32
  end
33
33
  end
34
34
 
35
+ # unit tests for purchase_orders_create
36
+ # Creates a `PurchaseOrder` object with the given values.
37
+ # @param x_account_token Token identifying the end user.
38
+ # @param purchase_order_endpoint_request
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [Boolean] :is_debug_mode Whether to include debug fields (such as log file links) in the response.
41
+ # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
42
+ # @return [PurchaseOrderResponse]
43
+ describe 'purchase_orders_create test' do
44
+ it 'should work' do
45
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
46
+ end
47
+ end
48
+
35
49
  # unit tests for purchase_orders_list
36
50
  # Returns a list of `PurchaseOrder` objects.
37
51
  # @param x_account_token Token identifying the end user.
38
52
  # @param [Hash] opts the optional parameters
53
+ # @option opts [String] :company_id If provided, will only return purchase orders for this company.
39
54
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
40
55
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
41
56
  # @option opts [String] :cursor The pagination cursor value.
42
- # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
43
57
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
44
58
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
59
+ # @option opts [Time] :issue_date_after If provided, will only return objects created after this datetime.
60
+ # @option opts [Time] :issue_date_before If provided, will only return objects created before this datetime.
45
61
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
46
62
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
47
63
  # @option opts [Integer] :page_size Number of results to return per page.
48
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
64
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
49
65
  # @option opts [String] :remote_id The API provider's ID for the given object.
66
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
50
67
  # @return [PaginatedPurchaseOrderList]
51
68
  describe 'purchase_orders_list test' do
52
69
  it 'should work' do
@@ -54,14 +71,25 @@ describe 'PurchaseOrdersApi' do
54
71
  end
55
72
  end
56
73
 
74
+ # unit tests for purchase_orders_meta_post_retrieve
75
+ # Returns metadata for `PurchaseOrder` POSTs.
76
+ # @param x_account_token Token identifying the end user.
77
+ # @param [Hash] opts the optional parameters
78
+ # @return [MetaResponse]
79
+ describe 'purchase_orders_meta_post_retrieve test' do
80
+ it 'should work' do
81
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
82
+ end
83
+ end
84
+
57
85
  # unit tests for purchase_orders_retrieve
58
86
  # Returns a `PurchaseOrder` object with the given `id`.
59
87
  # @param x_account_token Token identifying the end user.
60
88
  # @param id
61
89
  # @param [Hash] opts the optional parameters
62
- # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
63
90
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
64
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
91
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
92
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
65
93
  # @return [PurchaseOrder]
66
94
  describe 'purchase_orders_retrieve test' do
67
95
  it 'should work' do
@@ -0,0 +1,72 @@
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 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for MergeAccountingClient::SelectiveSyncApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'SelectiveSyncApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = MergeAccountingClient::SelectiveSyncApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of SelectiveSyncApi' do
30
+ it 'should create an instance of SelectiveSyncApi' do
31
+ expect(@api_instance).to be_instance_of(MergeAccountingClient::SelectiveSyncApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for selective_sync_configurations_list
36
+ # Get a linked account's selective syncs.
37
+ # @param x_account_token Token identifying the end user.
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [Array<LinkedAccountSelectiveSyncConfiguration>]
40
+ describe 'selective_sync_configurations_list test' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ # unit tests for selective_sync_configurations_update
47
+ # Replace a linked account&#39;s selective syncs.
48
+ # @param x_account_token Token identifying the end user.
49
+ # @param linked_account_selective_sync_configuration_list_request
50
+ # @param [Hash] opts the optional parameters
51
+ # @return [Array<LinkedAccountSelectiveSyncConfiguration>]
52
+ describe 'selective_sync_configurations_update test' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ # unit tests for selective_sync_meta_list
59
+ # Get metadata for the conditions available to a linked account.
60
+ # @param x_account_token Token identifying the end user.
61
+ # @param [Hash] opts the optional parameters
62
+ # @option opts [String] :common_model
63
+ # @option opts [String] :cursor The pagination cursor value.
64
+ # @option opts [Integer] :page_size Number of results to return per page.
65
+ # @return [PaginatedConditionSchemaList]
66
+ describe 'selective_sync_meta_list test' do
67
+ it 'should work' do
68
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
69
+ end
70
+ end
71
+
72
+ end
@@ -36,6 +36,7 @@ describe 'TaxRatesApi' do
36
36
  # Returns a list of &#x60;TaxRate&#x60; objects.
37
37
  # @param x_account_token Token identifying the end user.
38
38
  # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :company_id If provided, will only return tax rates for this company.
39
40
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
40
41
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
41
42
  # @option opts [String] :cursor The pagination cursor value.
@@ -36,6 +36,7 @@ describe 'TrackingCategoriesApi' do
36
36
  # Returns a list of &#x60;TrackingCategory&#x60; objects.
37
37
  # @param x_account_token Token identifying the end user.
38
38
  # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :company_id If provided, will only return tracking categories for this company.
39
40
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
40
41
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
41
42
  # @option opts [String] :cursor The pagination cursor value.
@@ -44,8 +45,9 @@ describe 'TrackingCategoriesApi' do
44
45
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
45
46
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
46
47
  # @option opts [Integer] :page_size Number of results to return per page.
47
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
48
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
48
49
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
50
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
49
51
  # @return [PaginatedTrackingCategoryList]
50
52
  describe 'tracking_categories_list test' do
51
53
  it 'should work' do
@@ -59,7 +61,8 @@ describe 'TrackingCategoriesApi' do
59
61
  # @param id
60
62
  # @param [Hash] opts the optional parameters
61
63
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
62
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
64
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
65
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
63
66
  # @return [TrackingCategory]
64
67
  describe 'tracking_categories_retrieve test' do
65
68
  it 'should work' do