merge_accounting_client 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.md +16 -0
  3. data/README.md +10 -5
  4. data/docs/Account.md +1 -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 +1 -1
  12. data/docs/BalanceSheetsApi.md +2 -2
  13. data/docs/CashFlowStatement.md +1 -1
  14. data/docs/CashFlowStatementsApi.md +2 -2
  15. data/docs/CompanyInfo.md +1 -1
  16. data/docs/CompanyInfoApi.md +2 -2
  17. data/docs/Contact.md +1 -1
  18. data/docs/ContactsApi.md +7 -3
  19. data/docs/CreditNote.md +7 -1
  20. data/docs/CreditNoteLineItem.md +38 -0
  21. data/docs/CreditNotesApi.md +7 -3
  22. data/docs/DataPassthroughRequest.md +3 -1
  23. data/docs/EndUserDetailsRequest.md +9 -7
  24. data/docs/Expense.md +1 -1
  25. data/docs/ExpensesApi.md +2 -2
  26. data/docs/IncomeStatement.md +1 -1
  27. data/docs/IncomeStatementsApi.md +2 -2
  28. data/docs/InvoiceLineItem.md +0 -2
  29. data/docs/InvoicesApi.md +8 -4
  30. data/docs/Item.md +1 -1
  31. data/docs/ItemsApi.md +7 -3
  32. data/docs/JournalEntriesApi.md +2 -2
  33. data/docs/LinkToken.md +3 -1
  34. data/docs/LinkedAccountsApi.md +2 -0
  35. data/docs/PaginatedTransactionList.md +22 -0
  36. data/docs/Payment.md +1 -1
  37. data/docs/PaymentsApi.md +2 -2
  38. data/docs/PurchaseOrder.md +8 -2
  39. data/docs/PurchaseOrderLineItem.md +9 -1
  40. data/docs/PurchaseOrdersApi.md +7 -3
  41. data/docs/RemoteResponse.md +2 -0
  42. data/docs/SyncStatusApi.md +1 -1
  43. data/docs/TaxRate.md +1 -1
  44. data/docs/TaxRatesApi.md +2 -2
  45. data/docs/TrackingCategoriesApi.md +7 -3
  46. data/docs/TrackingCategory.md +1 -1
  47. data/docs/Transaction.md +40 -0
  48. data/docs/TransactionLineItem.md +34 -0
  49. data/docs/TransactionsApi.md +181 -0
  50. data/docs/VendorCredit.md +1 -1
  51. data/docs/VendorCreditsApi.md +2 -2
  52. data/lib/merge_accounting_client/api/accounts_api.rb +16 -2
  53. data/lib/merge_accounting_client/api/addresses_api.rb +7 -0
  54. data/lib/merge_accounting_client/api/attachments_api.rb +2 -2
  55. data/lib/merge_accounting_client/api/balance_sheets_api.rb +2 -2
  56. data/lib/merge_accounting_client/api/cash_flow_statements_api.rb +2 -2
  57. data/lib/merge_accounting_client/api/company_info_api.rb +2 -2
  58. data/lib/merge_accounting_client/api/contacts_api.rb +16 -2
  59. data/lib/merge_accounting_client/api/credit_notes_api.rb +16 -2
  60. data/lib/merge_accounting_client/api/expenses_api.rb +2 -2
  61. data/lib/merge_accounting_client/api/income_statements_api.rb +2 -2
  62. data/lib/merge_accounting_client/api/invoices_api.rb +17 -3
  63. data/lib/merge_accounting_client/api/items_api.rb +16 -2
  64. data/lib/merge_accounting_client/api/journal_entries_api.rb +2 -2
  65. data/lib/merge_accounting_client/api/linked_accounts_api.rb +3 -0
  66. data/lib/merge_accounting_client/api/payments_api.rb +2 -2
  67. data/lib/merge_accounting_client/api/purchase_orders_api.rb +16 -2
  68. data/lib/merge_accounting_client/api/sync_status_api.rb +2 -2
  69. data/lib/merge_accounting_client/api/tax_rates_api.rb +2 -2
  70. data/lib/merge_accounting_client/api/tracking_categories_api.rb +16 -2
  71. data/lib/merge_accounting_client/api/transactions_api.rb +196 -0
  72. data/lib/merge_accounting_client/api/vendor_credits_api.rb +2 -2
  73. data/lib/merge_accounting_client/models/account.rb +1 -1
  74. data/lib/merge_accounting_client/models/account_details.rb +15 -4
  75. data/lib/merge_accounting_client/models/account_details_and_actions.rb +12 -1
  76. data/lib/merge_accounting_client/models/account_details_and_actions_status_enum.rb +17 -7
  77. data/lib/merge_accounting_client/models/account_status_enum.rb +17 -7
  78. data/lib/merge_accounting_client/models/accounting_attachment.rb +1 -1
  79. data/lib/merge_accounting_client/models/address_type_enum.rb +17 -7
  80. data/lib/merge_accounting_client/models/balance_sheet.rb +1 -1
  81. data/lib/merge_accounting_client/models/cash_flow_statement.rb +1 -1
  82. data/lib/merge_accounting_client/models/categories_enum.rb +17 -7
  83. data/lib/merge_accounting_client/models/category_enum.rb +17 -7
  84. data/lib/merge_accounting_client/models/classification_enum.rb +17 -7
  85. data/lib/merge_accounting_client/models/company_info.rb +1 -1
  86. data/lib/merge_accounting_client/models/contact.rb +1 -1
  87. data/lib/merge_accounting_client/models/country_enum.rb +17 -7
  88. data/lib/merge_accounting_client/models/credit_note.rb +35 -2
  89. data/lib/merge_accounting_client/models/credit_note_line_item.rb +380 -0
  90. data/lib/merge_accounting_client/models/credit_note_status_enum.rb +17 -7
  91. data/lib/merge_accounting_client/models/currency_enum.rb +17 -7
  92. data/lib/merge_accounting_client/models/data_passthrough_request.rb +14 -5
  93. data/lib/merge_accounting_client/models/encoding_enum.rb +18 -7
  94. data/lib/merge_accounting_client/models/end_user_details_request.rb +28 -11
  95. data/lib/merge_accounting_client/models/expense.rb +1 -1
  96. data/lib/merge_accounting_client/models/income_statement.rb +1 -1
  97. data/lib/merge_accounting_client/models/invoice_line_item.rb +1 -13
  98. data/lib/merge_accounting_client/models/invoice_type_enum.rb +17 -7
  99. data/lib/merge_accounting_client/models/issue_status_enum.rb +17 -7
  100. data/lib/merge_accounting_client/models/item.rb +1 -1
  101. data/lib/merge_accounting_client/models/link_token.rb +13 -4
  102. data/lib/merge_accounting_client/models/method_enum.rb +17 -7
  103. data/lib/merge_accounting_client/models/paginated_transaction_list.rb +240 -0
  104. data/lib/merge_accounting_client/models/payment.rb +1 -1
  105. data/lib/merge_accounting_client/models/purchase_order.rb +35 -2
  106. data/lib/merge_accounting_client/models/purchase_order_line_item.rb +83 -5
  107. data/lib/merge_accounting_client/models/purchase_order_status_enum.rb +17 -7
  108. data/lib/merge_accounting_client/models/remote_response.rb +13 -2
  109. data/lib/merge_accounting_client/models/request_format_enum.rb +17 -7
  110. data/lib/merge_accounting_client/models/state_enum.rb +17 -7
  111. data/lib/merge_accounting_client/models/status7d1_enum.rb +17 -7
  112. data/lib/merge_accounting_client/models/sync_status_status_enum.rb +18 -7
  113. data/lib/merge_accounting_client/models/tax_rate.rb +1 -1
  114. data/lib/merge_accounting_client/models/tracking_category.rb +1 -1
  115. data/lib/merge_accounting_client/models/transaction.rb +356 -0
  116. data/lib/merge_accounting_client/models/transaction_line_item.rb +358 -0
  117. data/lib/merge_accounting_client/models/vendor_credit.rb +1 -1
  118. data/lib/merge_accounting_client/version.rb +1 -1
  119. data/lib/merge_accounting_client.rb +5 -1
  120. data/merge_accounting_client.gemspec +1 -1
  121. data/spec/api/accounts_api_spec.rb +3 -1
  122. data/spec/api/addresses_api_spec.rb +1 -0
  123. data/spec/api/attachments_api_spec.rb +1 -1
  124. data/spec/api/balance_sheets_api_spec.rb +1 -1
  125. data/spec/api/cash_flow_statements_api_spec.rb +1 -1
  126. data/spec/api/company_info_api_spec.rb +1 -1
  127. data/spec/api/contacts_api_spec.rb +3 -1
  128. data/spec/api/credit_notes_api_spec.rb +3 -1
  129. data/spec/api/expenses_api_spec.rb +1 -1
  130. data/spec/api/income_statements_api_spec.rb +1 -1
  131. data/spec/api/invoices_api_spec.rb +3 -1
  132. data/spec/api/items_api_spec.rb +3 -1
  133. data/spec/api/journal_entries_api_spec.rb +1 -1
  134. data/spec/api/linked_accounts_api_spec.rb +1 -0
  135. data/spec/api/payments_api_spec.rb +1 -1
  136. data/spec/api/purchase_orders_api_spec.rb +3 -1
  137. data/spec/api/sync_status_api_spec.rb +1 -1
  138. data/spec/api/tax_rates_api_spec.rb +1 -1
  139. data/spec/api/tracking_categories_api_spec.rb +3 -1
  140. data/spec/api/transactions_api_spec.rb +70 -0
  141. data/spec/api/vendor_credits_api_spec.rb +1 -1
  142. data/spec/models/account_details_and_actions_spec.rb +6 -0
  143. data/spec/models/account_details_spec.rb +6 -0
  144. data/spec/models/credit_note_line_item_spec.rb +94 -0
  145. data/spec/models/credit_note_spec.rb +18 -0
  146. data/spec/models/data_passthrough_request_spec.rb +6 -0
  147. data/spec/models/end_user_details_request_spec.rb +6 -0
  148. data/spec/models/invoice_line_item_spec.rb +0 -6
  149. data/spec/models/link_token_spec.rb +6 -0
  150. data/spec/models/paginated_transaction_list_spec.rb +46 -0
  151. data/spec/models/purchase_order_line_item_spec.rb +24 -0
  152. data/spec/models/purchase_order_spec.rb +18 -0
  153. data/spec/models/remote_response_spec.rb +6 -0
  154. data/spec/models/transaction_line_item_spec.rb +82 -0
  155. data/spec/models/transaction_spec.rb +100 -0
  156. metadata +132 -111
@@ -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.2'
15
15
  end
@@ -39,6 +39,7 @@ require 'merge_accounting_client/models/company_info'
39
39
  require 'merge_accounting_client/models/contact'
40
40
  require 'merge_accounting_client/models/country_enum'
41
41
  require 'merge_accounting_client/models/credit_note'
42
+ require 'merge_accounting_client/models/credit_note_line_item'
42
43
  require 'merge_accounting_client/models/credit_note_status_enum'
43
44
  require 'merge_accounting_client/models/currency_enum'
44
45
  require 'merge_accounting_client/models/data_passthrough_request'
@@ -92,13 +93,13 @@ require 'merge_accounting_client/models/paginated_purchase_order_list'
92
93
  require 'merge_accounting_client/models/paginated_sync_status_list'
93
94
  require 'merge_accounting_client/models/paginated_tax_rate_list'
94
95
  require 'merge_accounting_client/models/paginated_tracking_category_list'
96
+ require 'merge_accounting_client/models/paginated_transaction_list'
95
97
  require 'merge_accounting_client/models/paginated_vendor_credit_list'
96
98
  require 'merge_accounting_client/models/payment'
97
99
  require 'merge_accounting_client/models/purchase_order'
98
100
  require 'merge_accounting_client/models/purchase_order_line_item'
99
101
  require 'merge_accounting_client/models/purchase_order_status_enum'
100
102
  require 'merge_accounting_client/models/remote_data'
101
- require 'merge_accounting_client/models/remote_data_request'
102
103
  require 'merge_accounting_client/models/remote_key'
103
104
  require 'merge_accounting_client/models/remote_key_for_regeneration_request'
104
105
  require 'merge_accounting_client/models/remote_response'
@@ -110,6 +111,8 @@ require 'merge_accounting_client/models/sync_status'
110
111
  require 'merge_accounting_client/models/sync_status_status_enum'
111
112
  require 'merge_accounting_client/models/tax_rate'
112
113
  require 'merge_accounting_client/models/tracking_category'
114
+ require 'merge_accounting_client/models/transaction'
115
+ require 'merge_accounting_client/models/transaction_line_item'
113
116
  require 'merge_accounting_client/models/validation_problem_source'
114
117
  require 'merge_accounting_client/models/vendor_credit'
115
118
  require 'merge_accounting_client/models/vendor_credit_line'
@@ -148,6 +151,7 @@ require 'merge_accounting_client/api/regenerate_key_api'
148
151
  require 'merge_accounting_client/api/sync_status_api'
149
152
  require 'merge_accounting_client/api/tax_rates_api'
150
153
  require 'merge_accounting_client/api/tracking_categories_api'
154
+ require 'merge_accounting_client/api/transactions_api'
151
155
  require 'merge_accounting_client/api/vendor_credits_api'
152
156
  require 'merge_accounting_client/api/webhook_receivers_api'
153
157
 
@@ -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
@@ -0,0 +1,94 @@
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::CreditNoteLineItem
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe MergeAccountingClient::CreditNoteLineItem do
21
+ let(:instance) { MergeAccountingClient::CreditNoteLineItem.new }
22
+
23
+ describe 'test an instance of CreditNoteLineItem' do
24
+ it 'should create an instance of CreditNoteLineItem' do
25
+ expect(instance).to be_instance_of(MergeAccountingClient::CreditNoteLineItem)
26
+ end
27
+ end
28
+ describe 'test attribute "item"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ describe 'test attribute "name"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ describe 'test attribute "description"' 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
+ describe 'test attribute "quantity"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ describe 'test attribute "memo"' 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
+ describe 'test attribute "unit_price"' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
+ end
62
+ end
63
+
64
+ describe 'test attribute "tax_rate"' 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
+ describe 'test attribute "total_line_amount"' do
71
+ it 'should work' do
72
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
73
+ end
74
+ end
75
+
76
+ describe 'test attribute "tracking_category"' 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
+
82
+ describe 'test attribute "account"' 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
+
88
+ describe 'test attribute "remote_id"' do
89
+ it 'should work' do
90
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
91
+ end
92
+ end
93
+
94
+ end
@@ -55,6 +55,18 @@ describe MergeAccountingClient::CreditNote do
55
55
  end
56
56
  end
57
57
 
58
+ describe 'test attribute "number"' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
+ end
62
+ end
63
+
64
+ describe 'test attribute "contact"' 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
+
58
70
  describe 'test attribute "total_amount"' do
59
71
  it 'should work' do
60
72
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -67,6 +79,12 @@ describe MergeAccountingClient::CreditNote do
67
79
  end
68
80
  end
69
81
 
82
+ describe 'test attribute "line_items"' 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
+
70
88
  describe 'test attribute "currency"' do
71
89
  it 'should work' do
72
90
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -67,4 +67,10 @@ describe MergeAccountingClient::DataPassthroughRequest do
67
67
  end
68
68
  end
69
69
 
70
+ describe 'test attribute "normalize_response"' do
71
+ it 'should work' do
72
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
73
+ end
74
+ end
75
+
70
76
  end
@@ -61,4 +61,10 @@ describe MergeAccountingClient::EndUserDetailsRequest do
61
61
  end
62
62
  end
63
63
 
64
+ describe 'test attribute "should_create_magic_link_url"' 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
+
64
70
  end
@@ -37,12 +37,6 @@ describe MergeAccountingClient::InvoiceLineItem do
37
37
  end
38
38
  end
39
39
 
40
- describe 'test attribute "remote_data"' 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
40
  describe 'test attribute "description"' do
47
41
  it 'should work' do
48
42
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers