merge_accounting_client 1.0.1 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (177) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.md +16 -0
  3. data/README.md +12 -5
  4. data/docs/Account.md +3 -1
  5. data/docs/AccountDetails.md +3 -1
  6. data/docs/AccountDetailsAndActions.md +2 -0
  7. data/docs/AccountingAttachment.md +1 -1
  8. data/docs/AccountsApi.md +7 -3
  9. data/docs/AddressesApi.md +3 -1
  10. data/docs/AttachmentsApi.md +2 -2
  11. data/docs/BalanceSheet.md +3 -1
  12. data/docs/BalanceSheetsApi.md +2 -2
  13. data/docs/CashFlowStatement.md +3 -1
  14. data/docs/CashFlowStatementsApi.md +2 -2
  15. data/docs/CategoryTypeEnum.md +15 -0
  16. data/docs/CompanyInfo.md +1 -1
  17. data/docs/CompanyInfoApi.md +2 -2
  18. data/docs/Contact.md +1 -1
  19. data/docs/ContactsApi.md +7 -3
  20. data/docs/CreditNote.md +7 -1
  21. data/docs/CreditNoteLineItem.md +38 -0
  22. data/docs/CreditNotesApi.md +7 -3
  23. data/docs/DataPassthroughRequest.md +3 -1
  24. data/docs/EndUserDetailsRequest.md +9 -7
  25. data/docs/Expense.md +1 -1
  26. data/docs/ExpensesApi.md +2 -2
  27. data/docs/IncomeStatement.md +3 -1
  28. data/docs/IncomeStatementsApi.md +2 -2
  29. data/docs/InvoiceLineItem.md +0 -2
  30. data/docs/InvoicesApi.md +8 -4
  31. data/docs/Item.md +1 -1
  32. data/docs/ItemsApi.md +7 -3
  33. data/docs/JournalEntriesApi.md +2 -2
  34. data/docs/JournalEntry.md +2 -0
  35. data/docs/JournalEntryRequest.md +2 -0
  36. data/docs/LinkToken.md +3 -1
  37. data/docs/LinkedAccountsApi.md +2 -0
  38. data/docs/PaginatedTransactionList.md +22 -0
  39. data/docs/Payment.md +1 -1
  40. data/docs/PaymentsApi.md +2 -2
  41. data/docs/PurchaseOrder.md +8 -2
  42. data/docs/PurchaseOrderLineItem.md +9 -1
  43. data/docs/PurchaseOrdersApi.md +7 -3
  44. data/docs/RemoteResponse.md +5 -1
  45. data/docs/ResponseTypeEnum.md +15 -0
  46. data/docs/SyncStatus.md +2 -2
  47. data/docs/SyncStatusApi.md +1 -1
  48. data/docs/TaxRate.md +1 -1
  49. data/docs/TaxRatesApi.md +2 -2
  50. data/docs/TrackingCategoriesApi.md +7 -3
  51. data/docs/TrackingCategory.md +3 -1
  52. data/docs/Transaction.md +40 -0
  53. data/docs/TransactionLineItem.md +34 -0
  54. data/docs/TransactionsApi.md +181 -0
  55. data/docs/VendorCredit.md +1 -1
  56. data/docs/VendorCreditsApi.md +2 -2
  57. data/lib/merge_accounting_client/api/accounts_api.rb +16 -2
  58. data/lib/merge_accounting_client/api/addresses_api.rb +7 -0
  59. data/lib/merge_accounting_client/api/attachments_api.rb +2 -2
  60. data/lib/merge_accounting_client/api/balance_sheets_api.rb +2 -2
  61. data/lib/merge_accounting_client/api/cash_flow_statements_api.rb +2 -2
  62. data/lib/merge_accounting_client/api/company_info_api.rb +2 -2
  63. data/lib/merge_accounting_client/api/contacts_api.rb +16 -2
  64. data/lib/merge_accounting_client/api/credit_notes_api.rb +16 -2
  65. data/lib/merge_accounting_client/api/expenses_api.rb +2 -2
  66. data/lib/merge_accounting_client/api/income_statements_api.rb +2 -2
  67. data/lib/merge_accounting_client/api/invoices_api.rb +17 -3
  68. data/lib/merge_accounting_client/api/items_api.rb +16 -2
  69. data/lib/merge_accounting_client/api/journal_entries_api.rb +2 -2
  70. data/lib/merge_accounting_client/api/linked_accounts_api.rb +3 -0
  71. data/lib/merge_accounting_client/api/payments_api.rb +2 -2
  72. data/lib/merge_accounting_client/api/purchase_orders_api.rb +16 -2
  73. data/lib/merge_accounting_client/api/sync_status_api.rb +2 -2
  74. data/lib/merge_accounting_client/api/tax_rates_api.rb +2 -2
  75. data/lib/merge_accounting_client/api/tracking_categories_api.rb +16 -2
  76. data/lib/merge_accounting_client/api/transactions_api.rb +196 -0
  77. data/lib/merge_accounting_client/api/vendor_credits_api.rb +2 -2
  78. data/lib/merge_accounting_client/api_client.rb +3 -0
  79. data/lib/merge_accounting_client/models/account.rb +12 -2
  80. data/lib/merge_accounting_client/models/account_details.rb +15 -4
  81. data/lib/merge_accounting_client/models/account_details_and_actions.rb +12 -1
  82. data/lib/merge_accounting_client/models/account_details_and_actions_status_enum.rb +17 -7
  83. data/lib/merge_accounting_client/models/account_status_enum.rb +17 -7
  84. data/lib/merge_accounting_client/models/accounting_attachment.rb +1 -1
  85. data/lib/merge_accounting_client/models/address_type_enum.rb +17 -7
  86. data/lib/merge_accounting_client/models/balance_sheet.rb +13 -2
  87. data/lib/merge_accounting_client/models/cash_flow_statement.rb +13 -2
  88. data/lib/merge_accounting_client/models/categories_enum.rb +17 -7
  89. data/lib/merge_accounting_client/models/category_enum.rb +17 -7
  90. data/lib/merge_accounting_client/models/category_type_enum.rb +45 -0
  91. data/lib/merge_accounting_client/models/classification_enum.rb +17 -7
  92. data/lib/merge_accounting_client/models/company_info.rb +1 -1
  93. data/lib/merge_accounting_client/models/contact.rb +1 -1
  94. data/lib/merge_accounting_client/models/country_enum.rb +17 -7
  95. data/lib/merge_accounting_client/models/credit_note.rb +35 -2
  96. data/lib/merge_accounting_client/models/credit_note_line_item.rb +380 -0
  97. data/lib/merge_accounting_client/models/credit_note_status_enum.rb +17 -7
  98. data/lib/merge_accounting_client/models/currency_enum.rb +17 -7
  99. data/lib/merge_accounting_client/models/data_passthrough_request.rb +14 -5
  100. data/lib/merge_accounting_client/models/encoding_enum.rb +18 -7
  101. data/lib/merge_accounting_client/models/end_user_details_request.rb +28 -11
  102. data/lib/merge_accounting_client/models/expense.rb +1 -1
  103. data/lib/merge_accounting_client/models/income_statement.rb +13 -2
  104. data/lib/merge_accounting_client/models/invoice_line_item.rb +1 -13
  105. data/lib/merge_accounting_client/models/invoice_type_enum.rb +17 -7
  106. data/lib/merge_accounting_client/models/issue_status_enum.rb +17 -7
  107. data/lib/merge_accounting_client/models/item.rb +1 -1
  108. data/lib/merge_accounting_client/models/journal_entry.rb +12 -1
  109. data/lib/merge_accounting_client/models/journal_entry_request.rb +12 -1
  110. data/lib/merge_accounting_client/models/link_token.rb +13 -4
  111. data/lib/merge_accounting_client/models/method_enum.rb +17 -7
  112. data/lib/merge_accounting_client/models/paginated_transaction_list.rb +240 -0
  113. data/lib/merge_accounting_client/models/payment.rb +1 -1
  114. data/lib/merge_accounting_client/models/purchase_order.rb +35 -2
  115. data/lib/merge_accounting_client/models/purchase_order_line_item.rb +83 -5
  116. data/lib/merge_accounting_client/models/purchase_order_status_enum.rb +17 -7
  117. data/lib/merge_accounting_client/models/remote_data.rb +1 -1
  118. data/lib/merge_accounting_client/models/remote_response.rb +27 -10
  119. data/lib/merge_accounting_client/models/request_format_enum.rb +17 -7
  120. data/lib/merge_accounting_client/models/response_type_enum.rb +45 -0
  121. data/lib/merge_accounting_client/models/state_enum.rb +17 -7
  122. data/lib/merge_accounting_client/models/status7d1_enum.rb +17 -7
  123. data/lib/merge_accounting_client/models/sync_status.rb +0 -10
  124. data/lib/merge_accounting_client/models/sync_status_status_enum.rb +18 -7
  125. data/lib/merge_accounting_client/models/tax_rate.rb +1 -1
  126. data/lib/merge_accounting_client/models/tracking_category.rb +13 -2
  127. data/lib/merge_accounting_client/models/transaction.rb +357 -0
  128. data/lib/merge_accounting_client/models/transaction_line_item.rb +359 -0
  129. data/lib/merge_accounting_client/models/vendor_credit.rb +1 -1
  130. data/lib/merge_accounting_client/version.rb +1 -1
  131. data/lib/merge_accounting_client.rb +7 -1
  132. data/merge_accounting_client.gemspec +1 -1
  133. data/spec/api/accounts_api_spec.rb +3 -1
  134. data/spec/api/addresses_api_spec.rb +1 -0
  135. data/spec/api/attachments_api_spec.rb +1 -1
  136. data/spec/api/balance_sheets_api_spec.rb +1 -1
  137. data/spec/api/cash_flow_statements_api_spec.rb +1 -1
  138. data/spec/api/company_info_api_spec.rb +1 -1
  139. data/spec/api/contacts_api_spec.rb +3 -1
  140. data/spec/api/credit_notes_api_spec.rb +3 -1
  141. data/spec/api/expenses_api_spec.rb +1 -1
  142. data/spec/api/income_statements_api_spec.rb +1 -1
  143. data/spec/api/invoices_api_spec.rb +3 -1
  144. data/spec/api/items_api_spec.rb +3 -1
  145. data/spec/api/journal_entries_api_spec.rb +1 -1
  146. data/spec/api/linked_accounts_api_spec.rb +1 -0
  147. data/spec/api/payments_api_spec.rb +1 -1
  148. data/spec/api/purchase_orders_api_spec.rb +3 -1
  149. data/spec/api/sync_status_api_spec.rb +1 -1
  150. data/spec/api/tax_rates_api_spec.rb +1 -1
  151. data/spec/api/tracking_categories_api_spec.rb +3 -1
  152. data/spec/api/transactions_api_spec.rb +70 -0
  153. data/spec/api/vendor_credits_api_spec.rb +1 -1
  154. data/spec/models/account_details_and_actions_spec.rb +6 -0
  155. data/spec/models/account_details_spec.rb +6 -0
  156. data/spec/models/account_spec.rb +6 -0
  157. data/spec/models/balance_sheet_spec.rb +6 -0
  158. data/spec/models/cash_flow_statement_spec.rb +6 -0
  159. data/spec/models/category_type_enum_spec.rb +28 -0
  160. data/spec/models/credit_note_line_item_spec.rb +94 -0
  161. data/spec/models/credit_note_spec.rb +18 -0
  162. data/spec/models/data_passthrough_request_spec.rb +6 -0
  163. data/spec/models/end_user_details_request_spec.rb +6 -0
  164. data/spec/models/income_statement_spec.rb +6 -0
  165. data/spec/models/invoice_line_item_spec.rb +0 -6
  166. data/spec/models/journal_entry_request_spec.rb +6 -0
  167. data/spec/models/journal_entry_spec.rb +6 -0
  168. data/spec/models/link_token_spec.rb +6 -0
  169. data/spec/models/paginated_transaction_list_spec.rb +46 -0
  170. data/spec/models/purchase_order_line_item_spec.rb +24 -0
  171. data/spec/models/purchase_order_spec.rb +18 -0
  172. data/spec/models/remote_response_spec.rb +12 -0
  173. data/spec/models/response_type_enum_spec.rb +28 -0
  174. data/spec/models/tracking_category_spec.rb +6 -0
  175. data/spec/models/transaction_line_item_spec.rb +82 -0
  176. data/spec/models/transaction_spec.rb +100 -0
  177. metadata +136 -107
@@ -39,7 +39,7 @@ module MergeAccountingClient
39
39
 
40
40
  attr_accessor :lines
41
41
 
42
- # Indicates whether or not this object has been deleted on the third-party.
42
+ # Indicates whether or not this object has been deleted by third party webhooks.
43
43
  attr_accessor :remote_was_deleted
44
44
 
45
45
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.1.1
11
11
  =end
12
12
 
13
13
  module MergeAccountingClient
14
- VERSION = "1.0.1"
14
+ VERSION = '1.0.3'
15
15
  end
@@ -34,11 +34,13 @@ require 'merge_accounting_client/models/balance_sheet'
34
34
  require 'merge_accounting_client/models/cash_flow_statement'
35
35
  require 'merge_accounting_client/models/categories_enum'
36
36
  require 'merge_accounting_client/models/category_enum'
37
+ require 'merge_accounting_client/models/category_type_enum'
37
38
  require 'merge_accounting_client/models/classification_enum'
38
39
  require 'merge_accounting_client/models/company_info'
39
40
  require 'merge_accounting_client/models/contact'
40
41
  require 'merge_accounting_client/models/country_enum'
41
42
  require 'merge_accounting_client/models/credit_note'
43
+ require 'merge_accounting_client/models/credit_note_line_item'
42
44
  require 'merge_accounting_client/models/credit_note_status_enum'
43
45
  require 'merge_accounting_client/models/currency_enum'
44
46
  require 'merge_accounting_client/models/data_passthrough_request'
@@ -92,24 +94,27 @@ require 'merge_accounting_client/models/paginated_purchase_order_list'
92
94
  require 'merge_accounting_client/models/paginated_sync_status_list'
93
95
  require 'merge_accounting_client/models/paginated_tax_rate_list'
94
96
  require 'merge_accounting_client/models/paginated_tracking_category_list'
97
+ require 'merge_accounting_client/models/paginated_transaction_list'
95
98
  require 'merge_accounting_client/models/paginated_vendor_credit_list'
96
99
  require 'merge_accounting_client/models/payment'
97
100
  require 'merge_accounting_client/models/purchase_order'
98
101
  require 'merge_accounting_client/models/purchase_order_line_item'
99
102
  require 'merge_accounting_client/models/purchase_order_status_enum'
100
103
  require 'merge_accounting_client/models/remote_data'
101
- require 'merge_accounting_client/models/remote_data_request'
102
104
  require 'merge_accounting_client/models/remote_key'
103
105
  require 'merge_accounting_client/models/remote_key_for_regeneration_request'
104
106
  require 'merge_accounting_client/models/remote_response'
105
107
  require 'merge_accounting_client/models/report_item'
106
108
  require 'merge_accounting_client/models/request_format_enum'
109
+ require 'merge_accounting_client/models/response_type_enum'
107
110
  require 'merge_accounting_client/models/state_enum'
108
111
  require 'merge_accounting_client/models/status7d1_enum'
109
112
  require 'merge_accounting_client/models/sync_status'
110
113
  require 'merge_accounting_client/models/sync_status_status_enum'
111
114
  require 'merge_accounting_client/models/tax_rate'
112
115
  require 'merge_accounting_client/models/tracking_category'
116
+ require 'merge_accounting_client/models/transaction'
117
+ require 'merge_accounting_client/models/transaction_line_item'
113
118
  require 'merge_accounting_client/models/validation_problem_source'
114
119
  require 'merge_accounting_client/models/vendor_credit'
115
120
  require 'merge_accounting_client/models/vendor_credit_line'
@@ -148,6 +153,7 @@ require 'merge_accounting_client/api/regenerate_key_api'
148
153
  require 'merge_accounting_client/api/sync_status_api'
149
154
  require 'merge_accounting_client/api/tax_rates_api'
150
155
  require 'merge_accounting_client/api/tracking_categories_api'
156
+ require 'merge_accounting_client/api/transactions_api'
151
157
  require 'merge_accounting_client/api/vendor_credits_api'
152
158
  require 'merge_accounting_client/api/webhook_receivers_api'
153
159
 
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
24
24
  s.homepage = "https://openapi-generator.tech"
25
25
  s.summary = "Merge Accounting API Ruby Gem"
26
26
  s.description = "The unified API for building rich integrations with multiple Accounting & Finance platforms."
27
- s.license = "Unlicense"
27
+ s.license = "Nonstandard"
28
28
  s.required_ruby_version = ">= 2.4"
29
29
 
30
30
  s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
@@ -39,11 +39,12 @@ describe 'AccountsApi' 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 [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
42
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
43
43
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
44
44
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
45
45
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
46
46
  # @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.
47
48
  # @option opts [String] :remote_id The API provider's ID for the given object.
48
49
  # @return [PaginatedAccountList]
49
50
  describe 'accounts_list test' do
@@ -58,6 +59,7 @@ describe 'AccountsApi' do
58
59
  # @param id
59
60
  # @param [Hash] opts the optional parameters
60
61
  # @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.
61
63
  # @return [Account]
62
64
  describe 'accounts_retrieve test' do
63
65
  it 'should work' do
@@ -38,6 +38,7 @@ describe 'AddressesApi' do
38
38
  # @param id
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
41
+ # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
41
42
  # @return [Address]
42
43
  describe 'addresses_retrieve test' do
43
44
  it 'should work' do
@@ -39,7 +39,7 @@ describe 'AttachmentsApi' 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 [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
42
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
43
43
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
44
44
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
45
45
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
@@ -39,7 +39,7 @@ describe 'BalanceSheetsApi' 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 [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
42
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
43
43
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
44
44
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
45
45
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
@@ -39,7 +39,7 @@ describe 'CashFlowStatementsApi' 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 [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
42
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
43
43
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
44
44
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
45
45
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
@@ -40,7 +40,7 @@ describe 'CompanyInfoApi' do
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
42
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
43
- # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
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.
@@ -40,11 +40,12 @@ describe 'ContactsApi' do
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
42
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
43
- # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
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
49
  # @option opts [String] :remote_id The API provider's ID for the given object.
49
50
  # @return [PaginatedContactList]
50
51
  describe 'contacts_list test' do
@@ -60,6 +61,7 @@ describe 'ContactsApi' do
60
61
  # @param [Hash] opts the optional parameters
61
62
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
62
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.
63
65
  # @return [Contact]
64
66
  describe 'contacts_retrieve test' do
65
67
  it 'should work' do
@@ -40,11 +40,12 @@ describe 'CreditNotesApi' do
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
42
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
43
- # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
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
49
  # @option opts [String] :remote_id The API provider's ID for the given object.
49
50
  # @return [PaginatedCreditNoteList]
50
51
  describe 'credit_notes_list test' do
@@ -60,6 +61,7 @@ describe 'CreditNotesApi' do
60
61
  # @param [Hash] opts the optional parameters
61
62
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
62
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.
63
65
  # @return [CreditNote]
64
66
  describe 'credit_notes_retrieve test' do
65
67
  it 'should work' do
@@ -40,7 +40,7 @@ describe 'ExpensesApi' do
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
42
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
43
- # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
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.
@@ -39,7 +39,7 @@ describe 'IncomeStatementsApi' 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 [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
42
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
43
43
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
44
44
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
45
45
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
@@ -55,11 +55,12 @@ describe 'InvoicesApi' do
55
55
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
56
56
  # @option opts [String] :cursor The pagination cursor value.
57
57
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
58
- # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
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
60
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
61
61
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
62
62
  # @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.
63
64
  # @option opts [String] :remote_id The API provider's ID for the given object.
64
65
  # @option opts [String] :type If provided, will only return Invoices with this type
65
66
  # @return [PaginatedInvoiceList]
@@ -87,6 +88,7 @@ describe 'InvoicesApi' do
87
88
  # @param [Hash] opts the optional parameters
88
89
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
89
90
  # @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.
90
92
  # @return [Invoice]
91
93
  describe 'invoices_retrieve test' do
92
94
  it 'should work' do
@@ -40,11 +40,12 @@ describe 'ItemsApi' do
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
42
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
43
- # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
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
49
  # @option opts [String] :remote_id The API provider's ID for the given object.
49
50
  # @return [PaginatedItemList]
50
51
  describe 'items_list test' do
@@ -60,6 +61,7 @@ describe 'ItemsApi' do
60
61
  # @param [Hash] opts the optional parameters
61
62
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
62
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.
63
65
  # @return [Item]
64
66
  describe 'items_retrieve test' do
65
67
  it 'should work' do
@@ -54,7 +54,7 @@ describe 'JournalEntriesApi' do
54
54
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
55
55
  # @option opts [String] :cursor The pagination cursor value.
56
56
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
57
- # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
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.
@@ -43,6 +43,7 @@ describe 'LinkedAccountsApi' do
43
43
  # @option opts [String] :end_user_origin_ids Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once.
44
44
  # @option opts [String] :id
45
45
  # @option opts [String] :ids Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once.
46
+ # @option opts [Boolean] :include_duplicates If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account.
46
47
  # @option opts [String] :integration_name If provided, will only return linked accounts associated with the given integration name.
47
48
  # @option opts [String] :is_test_account If included, will only include test linked accounts. If not included, will only include non-test linked accounts.
48
49
  # @option opts [Integer] :page_size Number of results to return per page.
@@ -42,7 +42,7 @@ describe 'PaymentsApi' do
42
42
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
43
43
  # @option opts [String] :cursor The pagination cursor value.
44
44
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
45
- # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
45
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
46
46
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
47
47
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
48
48
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
@@ -40,11 +40,12 @@ describe 'PurchaseOrdersApi' do
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
42
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
43
- # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
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
49
  # @option opts [String] :remote_id The API provider's ID for the given object.
49
50
  # @return [PaginatedPurchaseOrderList]
50
51
  describe 'purchase_orders_list test' do
@@ -60,6 +61,7 @@ describe 'PurchaseOrdersApi' do
60
61
  # @param [Hash] opts the optional parameters
61
62
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
62
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.
63
65
  # @return [PurchaseOrder]
64
66
  describe 'purchase_orders_retrieve test' do
65
67
  it 'should work' do
@@ -33,7 +33,7 @@ describe 'SyncStatusApi' do
33
33
  end
34
34
 
35
35
  # unit tests for sync_status_list
36
- # Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `SYNCING`
36
+ # Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PAUSED`, `SYNCING`
37
37
  # @param x_account_token Token identifying the end user.
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @option opts [String] :cursor The pagination cursor value.
@@ -39,7 +39,7 @@ describe 'TaxRatesApi' 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 [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
42
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
43
43
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
44
44
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
45
45
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
@@ -39,11 +39,12 @@ describe 'TrackingCategoriesApi' 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 [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
42
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
43
43
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
44
44
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
45
45
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
46
46
  # @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.
47
48
  # @option opts [String] :remote_id The API provider's ID for the given object.
48
49
  # @return [PaginatedTrackingCategoryList]
49
50
  describe 'tracking_categories_list test' do
@@ -58,6 +59,7 @@ describe 'TrackingCategoriesApi' do
58
59
  # @param id
59
60
  # @param [Hash] opts the optional parameters
60
61
  # @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.
61
63
  # @return [TrackingCategory]
62
64
  describe 'tracking_categories_retrieve test' do
63
65
  it 'should work' do
@@ -0,0 +1,70 @@
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::TransactionsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'TransactionsApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = MergeAccountingClient::TransactionsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of TransactionsApi' do
30
+ it 'should create an instance of TransactionsApi' do
31
+ expect(@api_instance).to be_instance_of(MergeAccountingClient::TransactionsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for transactions_list
36
+ # Returns a list of `Transaction` objects.
37
+ # @param x_account_token Token identifying the end user.
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
40
+ # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
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
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
44
+ # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
45
+ # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
46
+ # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
47
+ # @option opts [Integer] :page_size Number of results to return per page.
48
+ # @option opts [String] :remote_id The API provider's ID for the given object.
49
+ # @return [PaginatedTransactionList]
50
+ describe 'transactions_list test' do
51
+ it 'should work' do
52
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
53
+ end
54
+ end
55
+
56
+ # unit tests for transactions_retrieve
57
+ # Returns a `Transaction` object with the given `id`.
58
+ # @param x_account_token Token identifying the end user.
59
+ # @param id
60
+ # @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
+ # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
63
+ # @return [Transaction]
64
+ describe 'transactions_retrieve test' do
65
+ it 'should work' do
66
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
+ end
68
+ end
69
+
70
+ end
@@ -40,7 +40,7 @@ describe 'VendorCreditsApi' do
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
42
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
43
- # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
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.
@@ -73,6 +73,12 @@ describe MergeAccountingClient::AccountDetailsAndActions do
73
73
  end
74
74
  end
75
75
 
76
+ describe 'test attribute "is_duplicate"' do
77
+ it 'should work' do
78
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
79
+ end
80
+ end
81
+
76
82
  describe 'test attribute "integration"' do
77
83
  it 'should work' do
78
84
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -79,4 +79,10 @@ describe MergeAccountingClient::AccountDetails do
79
79
  end
80
80
  end
81
81
 
82
+ describe 'test attribute "is_duplicate"' do
83
+ it 'should work' do
84
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
85
+ end
86
+ end
87
+
82
88
  end
@@ -91,6 +91,12 @@ describe MergeAccountingClient::Account do
91
91
  end
92
92
  end
93
93
 
94
+ describe 'test attribute "parent_account"' do
95
+ it 'should work' do
96
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
97
+ end
98
+ end
99
+
94
100
  describe 'test attribute "remote_was_deleted"' do
95
101
  it 'should work' do
96
102
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -49,6 +49,12 @@ describe MergeAccountingClient::BalanceSheet do
49
49
  end
50
50
  end
51
51
 
52
+ describe 'test attribute "currency"' 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
+
52
58
  describe 'test attribute "date"' do
53
59
  it 'should work' do
54
60
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -49,6 +49,12 @@ describe MergeAccountingClient::CashFlowStatement do
49
49
  end
50
50
  end
51
51
 
52
+ describe 'test attribute "currency"' 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
+
52
58
  describe 'test attribute "start_period"' do
53
59
  it 'should work' do
54
60
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -0,0 +1,28 @@
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
+ require 'date'
16
+
17
+ # Unit tests for MergeAccountingClient::CategoryTypeEnum
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe MergeAccountingClient::CategoryTypeEnum do
21
+ let(:instance) { MergeAccountingClient::CategoryTypeEnum.new }
22
+
23
+ describe 'test an instance of CategoryTypeEnum' do
24
+ it 'should create an instance of CategoryTypeEnum' do
25
+ expect(instance).to be_instance_of(MergeAccountingClient::CategoryTypeEnum)
26
+ end
27
+ end
28
+ end