merge_accounting_client 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AccountsApi.md +4 -0
  4. data/docs/BalanceSheetsApi.md +4 -0
  5. data/docs/CashFlowStatementsApi.md +4 -0
  6. data/docs/CompanyInfoApi.md +4 -0
  7. data/docs/ContactsApi.md +4 -0
  8. data/docs/CreditNotesApi.md +4 -0
  9. data/docs/ExpensesApi.md +4 -0
  10. data/docs/ForceResyncApi.md +1 -1
  11. data/docs/IncomeStatementsApi.md +4 -0
  12. data/docs/InvoicesApi.md +4 -0
  13. data/docs/ItemsApi.md +4 -0
  14. data/docs/JournalEntriesApi.md +4 -0
  15. data/docs/PaymentsApi.md +4 -0
  16. data/docs/PurchaseOrdersApi.md +4 -0
  17. data/docs/TaxRatesApi.md +4 -0
  18. data/docs/TrackingCategoriesApi.md +4 -0
  19. data/docs/TransactionsApi.md +4 -0
  20. data/docs/VendorCreditsApi.md +4 -0
  21. data/lib/merge_accounting_client/api/accounts_api.rb +14 -0
  22. data/lib/merge_accounting_client/api/balance_sheets_api.rb +14 -0
  23. data/lib/merge_accounting_client/api/cash_flow_statements_api.rb +14 -0
  24. data/lib/merge_accounting_client/api/company_info_api.rb +14 -0
  25. data/lib/merge_accounting_client/api/contacts_api.rb +14 -0
  26. data/lib/merge_accounting_client/api/credit_notes_api.rb +14 -0
  27. data/lib/merge_accounting_client/api/expenses_api.rb +14 -0
  28. data/lib/merge_accounting_client/api/force_resync_api.rb +2 -2
  29. data/lib/merge_accounting_client/api/income_statements_api.rb +14 -0
  30. data/lib/merge_accounting_client/api/invoices_api.rb +14 -0
  31. data/lib/merge_accounting_client/api/items_api.rb +14 -0
  32. data/lib/merge_accounting_client/api/journal_entries_api.rb +14 -0
  33. data/lib/merge_accounting_client/api/payments_api.rb +14 -0
  34. data/lib/merge_accounting_client/api/purchase_orders_api.rb +14 -0
  35. data/lib/merge_accounting_client/api/tax_rates_api.rb +14 -0
  36. data/lib/merge_accounting_client/api/tracking_categories_api.rb +14 -0
  37. data/lib/merge_accounting_client/api/transactions_api.rb +14 -0
  38. data/lib/merge_accounting_client/api/vendor_credits_api.rb +14 -0
  39. data/lib/merge_accounting_client/version.rb +1 -1
  40. data/spec/api/accounts_api_spec.rb +2 -0
  41. data/spec/api/balance_sheets_api_spec.rb +2 -0
  42. data/spec/api/cash_flow_statements_api_spec.rb +2 -0
  43. data/spec/api/company_info_api_spec.rb +2 -0
  44. data/spec/api/contacts_api_spec.rb +2 -0
  45. data/spec/api/credit_notes_api_spec.rb +2 -0
  46. data/spec/api/expenses_api_spec.rb +2 -0
  47. data/spec/api/force_resync_api_spec.rb +1 -1
  48. data/spec/api/income_statements_api_spec.rb +2 -0
  49. data/spec/api/invoices_api_spec.rb +2 -0
  50. data/spec/api/items_api_spec.rb +2 -0
  51. data/spec/api/journal_entries_api_spec.rb +2 -0
  52. data/spec/api/payments_api_spec.rb +2 -0
  53. data/spec/api/purchase_orders_api_spec.rb +2 -0
  54. data/spec/api/tax_rates_api_spec.rb +2 -0
  55. data/spec/api/tracking_categories_api_spec.rb +2 -0
  56. data/spec/api/transactions_api_spec.rb +2 -0
  57. data/spec/api/vendor_credits_api_spec.rb +2 -0
  58. metadata +2 -2
@@ -102,6 +102,7 @@ module MergeAccountingClient
102
102
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
103
103
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
104
104
  # @option opts [String] :cursor The pagination cursor value.
105
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
105
106
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
106
107
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
107
108
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
@@ -123,6 +124,7 @@ module MergeAccountingClient
123
124
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
124
125
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
125
126
  # @option opts [String] :cursor The pagination cursor value.
127
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
126
128
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
127
129
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
128
130
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
@@ -140,6 +142,10 @@ module MergeAccountingClient
140
142
  if @api_client.config.client_side_validation && x_account_token.nil?
141
143
  fail ArgumentError, "Missing the required parameter 'x_account_token' when calling AccountsApi.accounts_list"
142
144
  end
145
+ allowable_values = ["company"]
146
+ if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
147
+ fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
148
+ end
143
149
  allowable_values = ["classification", "classification,status", "status"]
144
150
  if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
145
151
  fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
@@ -157,6 +163,7 @@ module MergeAccountingClient
157
163
  query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
158
164
  query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
159
165
  query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
166
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
160
167
  query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
161
168
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
162
169
  query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
@@ -267,6 +274,7 @@ module MergeAccountingClient
267
274
  # @param x_account_token [String] Token identifying the end user.
268
275
  # @param id [String]
269
276
  # @param [Hash] opts the optional parameters
277
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
270
278
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
271
279
  # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
272
280
  # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
@@ -280,6 +288,7 @@ module MergeAccountingClient
280
288
  # @param x_account_token [String] Token identifying the end user.
281
289
  # @param id [String]
282
290
  # @param [Hash] opts the optional parameters
291
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
283
292
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
284
293
  # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
285
294
  # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
@@ -296,6 +305,10 @@ module MergeAccountingClient
296
305
  if @api_client.config.client_side_validation && id.nil?
297
306
  fail ArgumentError, "Missing the required parameter 'id' when calling AccountsApi.accounts_retrieve"
298
307
  end
308
+ allowable_values = ["company"]
309
+ if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
310
+ fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
311
+ end
299
312
  allowable_values = ["classification", "classification,status", "status"]
300
313
  if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
301
314
  fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
@@ -309,6 +322,7 @@ module MergeAccountingClient
309
322
 
310
323
  # query parameters
311
324
  query_params = opts[:query_params] || {}
325
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
312
326
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
313
327
  query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
314
328
  query_params[:'show_enum_origins'] = opts[:'show_enum_origins'] if !opts[:'show_enum_origins'].nil?
@@ -26,6 +26,7 @@ module MergeAccountingClient
26
26
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
27
27
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
28
28
  # @option opts [String] :cursor The pagination cursor value.
29
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
29
30
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
30
31
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
31
32
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
@@ -45,6 +46,7 @@ module MergeAccountingClient
45
46
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
46
47
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
47
48
  # @option opts [String] :cursor The pagination cursor value.
49
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
48
50
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
49
51
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
50
52
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
@@ -60,6 +62,10 @@ module MergeAccountingClient
60
62
  if @api_client.config.client_side_validation && x_account_token.nil?
61
63
  fail ArgumentError, "Missing the required parameter 'x_account_token' when calling BalanceSheetsApi.balance_sheets_list"
62
64
  end
65
+ allowable_values = ["company"]
66
+ if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
67
+ fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
68
+ end
63
69
  # resource path
64
70
  local_var_path = '/balance-sheets'
65
71
 
@@ -69,6 +75,7 @@ module MergeAccountingClient
69
75
  query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
70
76
  query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
71
77
  query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
78
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
72
79
  query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
73
80
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
74
81
  query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
@@ -115,6 +122,7 @@ module MergeAccountingClient
115
122
  # @param x_account_token [String] Token identifying the end user.
116
123
  # @param id [String]
117
124
  # @param [Hash] opts the optional parameters
125
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
118
126
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
119
127
  # @return [BalanceSheet]
120
128
  def balance_sheets_retrieve(x_account_token, id, opts = {})
@@ -126,6 +134,7 @@ module MergeAccountingClient
126
134
  # @param x_account_token [String] Token identifying the end user.
127
135
  # @param id [String]
128
136
  # @param [Hash] opts the optional parameters
137
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
129
138
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
130
139
  # @return [Array<(BalanceSheet, Integer, Hash)>] BalanceSheet data, response status code and response headers
131
140
  def balance_sheets_retrieve_with_http_info(x_account_token, id, opts = {})
@@ -140,11 +149,16 @@ module MergeAccountingClient
140
149
  if @api_client.config.client_side_validation && id.nil?
141
150
  fail ArgumentError, "Missing the required parameter 'id' when calling BalanceSheetsApi.balance_sheets_retrieve"
142
151
  end
152
+ allowable_values = ["company"]
153
+ if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
154
+ fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
155
+ end
143
156
  # resource path
144
157
  local_var_path = '/balance-sheets/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
145
158
 
146
159
  # query parameters
147
160
  query_params = opts[:query_params] || {}
161
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
148
162
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
149
163
 
150
164
  # header parameters
@@ -26,6 +26,7 @@ module MergeAccountingClient
26
26
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
27
27
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
28
28
  # @option opts [String] :cursor The pagination cursor value.
29
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
29
30
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
30
31
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
31
32
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
@@ -45,6 +46,7 @@ module MergeAccountingClient
45
46
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
46
47
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
47
48
  # @option opts [String] :cursor The pagination cursor value.
49
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
48
50
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
49
51
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
50
52
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
@@ -60,6 +62,10 @@ module MergeAccountingClient
60
62
  if @api_client.config.client_side_validation && x_account_token.nil?
61
63
  fail ArgumentError, "Missing the required parameter 'x_account_token' when calling CashFlowStatementsApi.cash_flow_statements_list"
62
64
  end
65
+ allowable_values = ["company"]
66
+ if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
67
+ fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
68
+ end
63
69
  # resource path
64
70
  local_var_path = '/cash-flow-statements'
65
71
 
@@ -69,6 +75,7 @@ module MergeAccountingClient
69
75
  query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
70
76
  query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
71
77
  query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
78
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
72
79
  query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
73
80
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
74
81
  query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
@@ -115,6 +122,7 @@ module MergeAccountingClient
115
122
  # @param x_account_token [String] Token identifying the end user.
116
123
  # @param id [String]
117
124
  # @param [Hash] opts the optional parameters
125
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
118
126
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
119
127
  # @return [CashFlowStatement]
120
128
  def cash_flow_statements_retrieve(x_account_token, id, opts = {})
@@ -126,6 +134,7 @@ module MergeAccountingClient
126
134
  # @param x_account_token [String] Token identifying the end user.
127
135
  # @param id [String]
128
136
  # @param [Hash] opts the optional parameters
137
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
129
138
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
130
139
  # @return [Array<(CashFlowStatement, Integer, Hash)>] CashFlowStatement data, response status code and response headers
131
140
  def cash_flow_statements_retrieve_with_http_info(x_account_token, id, opts = {})
@@ -140,11 +149,16 @@ module MergeAccountingClient
140
149
  if @api_client.config.client_side_validation && id.nil?
141
150
  fail ArgumentError, "Missing the required parameter 'id' when calling CashFlowStatementsApi.cash_flow_statements_retrieve"
142
151
  end
152
+ allowable_values = ["company"]
153
+ if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
154
+ fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
155
+ end
143
156
  # resource path
144
157
  local_var_path = '/cash-flow-statements/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
145
158
 
146
159
  # query parameters
147
160
  query_params = opts[:query_params] || {}
161
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
148
162
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
149
163
 
150
164
  # header parameters
@@ -25,6 +25,7 @@ module MergeAccountingClient
25
25
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
26
26
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
27
27
  # @option opts [String] :cursor The pagination cursor value.
28
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
28
29
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
29
30
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
30
31
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
@@ -43,6 +44,7 @@ module MergeAccountingClient
43
44
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
44
45
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
45
46
  # @option opts [String] :cursor The pagination cursor value.
47
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
46
48
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
47
49
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
48
50
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
@@ -58,6 +60,10 @@ module MergeAccountingClient
58
60
  if @api_client.config.client_side_validation && x_account_token.nil?
59
61
  fail ArgumentError, "Missing the required parameter 'x_account_token' when calling CompanyInfoApi.company_info_list"
60
62
  end
63
+ allowable_values = ["addresses", "addresses,phone_numbers", "phone_numbers"]
64
+ if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
65
+ fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
66
+ end
61
67
  # resource path
62
68
  local_var_path = '/company-info'
63
69
 
@@ -66,6 +72,7 @@ module MergeAccountingClient
66
72
  query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
67
73
  query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
68
74
  query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
75
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
69
76
  query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
70
77
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
71
78
  query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
@@ -112,6 +119,7 @@ module MergeAccountingClient
112
119
  # @param x_account_token [String] Token identifying the end user.
113
120
  # @param id [String]
114
121
  # @param [Hash] opts the optional parameters
122
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
115
123
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
116
124
  # @return [CompanyInfo]
117
125
  def company_info_retrieve(x_account_token, id, opts = {})
@@ -123,6 +131,7 @@ module MergeAccountingClient
123
131
  # @param x_account_token [String] Token identifying the end user.
124
132
  # @param id [String]
125
133
  # @param [Hash] opts the optional parameters
134
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
126
135
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
127
136
  # @return [Array<(CompanyInfo, Integer, Hash)>] CompanyInfo data, response status code and response headers
128
137
  def company_info_retrieve_with_http_info(x_account_token, id, opts = {})
@@ -137,11 +146,16 @@ module MergeAccountingClient
137
146
  if @api_client.config.client_side_validation && id.nil?
138
147
  fail ArgumentError, "Missing the required parameter 'id' when calling CompanyInfoApi.company_info_retrieve"
139
148
  end
149
+ allowable_values = ["addresses", "addresses,phone_numbers", "phone_numbers"]
150
+ if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
151
+ fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
152
+ end
140
153
  # resource path
141
154
  local_var_path = '/company-info/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
142
155
 
143
156
  # query parameters
144
157
  query_params = opts[:query_params] || {}
158
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
145
159
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
146
160
 
147
161
  # header parameters
@@ -102,6 +102,7 @@ module MergeAccountingClient
102
102
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
103
103
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
104
104
  # @option opts [String] :cursor The pagination cursor value.
105
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
105
106
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
106
107
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
107
108
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
@@ -123,6 +124,7 @@ module MergeAccountingClient
123
124
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
124
125
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
125
126
  # @option opts [String] :cursor The pagination cursor value.
127
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
126
128
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
127
129
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
128
130
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
@@ -140,6 +142,10 @@ module MergeAccountingClient
140
142
  if @api_client.config.client_side_validation && x_account_token.nil?
141
143
  fail ArgumentError, "Missing the required parameter 'x_account_token' when calling ContactsApi.contacts_list"
142
144
  end
145
+ allowable_values = ["addresses", "addresses,company", "addresses,phone_numbers", "addresses,phone_numbers,company", "company", "phone_numbers", "phone_numbers,company"]
146
+ if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
147
+ fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
148
+ end
143
149
  allowable_values = ["status"]
144
150
  if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
145
151
  fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
@@ -157,6 +163,7 @@ module MergeAccountingClient
157
163
  query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
158
164
  query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
159
165
  query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
166
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
160
167
  query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
161
168
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
162
169
  query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
@@ -267,6 +274,7 @@ module MergeAccountingClient
267
274
  # @param x_account_token [String] Token identifying the end user.
268
275
  # @param id [String]
269
276
  # @param [Hash] opts the optional parameters
277
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
270
278
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
271
279
  # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
272
280
  # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
@@ -280,6 +288,7 @@ module MergeAccountingClient
280
288
  # @param x_account_token [String] Token identifying the end user.
281
289
  # @param id [String]
282
290
  # @param [Hash] opts the optional parameters
291
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
283
292
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
284
293
  # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
285
294
  # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
@@ -296,6 +305,10 @@ module MergeAccountingClient
296
305
  if @api_client.config.client_side_validation && id.nil?
297
306
  fail ArgumentError, "Missing the required parameter 'id' when calling ContactsApi.contacts_retrieve"
298
307
  end
308
+ allowable_values = ["addresses", "addresses,company", "addresses,phone_numbers", "addresses,phone_numbers,company", "company", "phone_numbers", "phone_numbers,company"]
309
+ if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
310
+ fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
311
+ end
299
312
  allowable_values = ["status"]
300
313
  if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
301
314
  fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
@@ -309,6 +322,7 @@ module MergeAccountingClient
309
322
 
310
323
  # query parameters
311
324
  query_params = opts[:query_params] || {}
325
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
312
326
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
313
327
  query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
314
328
  query_params[:'show_enum_origins'] = opts[:'show_enum_origins'] if !opts[:'show_enum_origins'].nil?
@@ -26,6 +26,7 @@ module MergeAccountingClient
26
26
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
27
27
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
28
28
  # @option opts [String] :cursor The pagination cursor value.
29
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
29
30
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
30
31
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
31
32
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
@@ -49,6 +50,7 @@ module MergeAccountingClient
49
50
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
50
51
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
51
52
  # @option opts [String] :cursor The pagination cursor value.
53
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
52
54
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
53
55
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
54
56
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
@@ -68,6 +70,10 @@ module MergeAccountingClient
68
70
  if @api_client.config.client_side_validation && x_account_token.nil?
69
71
  fail ArgumentError, "Missing the required parameter 'x_account_token' when calling CreditNotesApi.credit_notes_list"
70
72
  end
73
+ allowable_values = ["line_items", "payments", "payments,line_items"]
74
+ if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
75
+ fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
76
+ end
71
77
  allowable_values = ["status", "status,type", "type"]
72
78
  if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
73
79
  fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
@@ -85,6 +91,7 @@ module MergeAccountingClient
85
91
  query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
86
92
  query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
87
93
  query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
94
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
88
95
  query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
89
96
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
90
97
  query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
@@ -135,6 +142,7 @@ module MergeAccountingClient
135
142
  # @param x_account_token [String] Token identifying the end user.
136
143
  # @param id [String]
137
144
  # @param [Hash] opts the optional parameters
145
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
138
146
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
139
147
  # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
140
148
  # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
@@ -148,6 +156,7 @@ module MergeAccountingClient
148
156
  # @param x_account_token [String] Token identifying the end user.
149
157
  # @param id [String]
150
158
  # @param [Hash] opts the optional parameters
159
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
151
160
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
152
161
  # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
153
162
  # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
@@ -164,6 +173,10 @@ module MergeAccountingClient
164
173
  if @api_client.config.client_side_validation && id.nil?
165
174
  fail ArgumentError, "Missing the required parameter 'id' when calling CreditNotesApi.credit_notes_retrieve"
166
175
  end
176
+ allowable_values = ["line_items", "payments", "payments,line_items"]
177
+ if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
178
+ fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
179
+ end
167
180
  allowable_values = ["status", "status,type", "type"]
168
181
  if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
169
182
  fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
@@ -177,6 +190,7 @@ module MergeAccountingClient
177
190
 
178
191
  # query parameters
179
192
  query_params = opts[:query_params] || {}
193
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
180
194
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
181
195
  query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
182
196
  query_params[:'show_enum_origins'] = opts[:'show_enum_origins'] if !opts[:'show_enum_origins'].nil?
@@ -102,6 +102,7 @@ module MergeAccountingClient
102
102
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
103
103
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
104
104
  # @option opts [String] :cursor The pagination cursor value.
105
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
105
106
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
106
107
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
107
108
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
@@ -123,6 +124,7 @@ module MergeAccountingClient
123
124
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
124
125
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
125
126
  # @option opts [String] :cursor The pagination cursor value.
127
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
126
128
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
127
129
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
128
130
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
@@ -140,6 +142,10 @@ module MergeAccountingClient
140
142
  if @api_client.config.client_side_validation && x_account_token.nil?
141
143
  fail ArgumentError, "Missing the required parameter 'x_account_token' when calling ExpensesApi.expenses_list"
142
144
  end
145
+ allowable_values = ["account", "account,company", "account,contact", "account,contact,company", "company", "contact", "contact,company"]
146
+ if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
147
+ fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
148
+ end
143
149
  # resource path
144
150
  local_var_path = '/expenses'
145
151
 
@@ -149,6 +155,7 @@ module MergeAccountingClient
149
155
  query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
150
156
  query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
151
157
  query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
158
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
152
159
  query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
153
160
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
154
161
  query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
@@ -259,6 +266,7 @@ module MergeAccountingClient
259
266
  # @param x_account_token [String] Token identifying the end user.
260
267
  # @param id [String]
261
268
  # @param [Hash] opts the optional parameters
269
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
262
270
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
263
271
  # @return [Expense]
264
272
  def expenses_retrieve(x_account_token, id, opts = {})
@@ -270,6 +278,7 @@ module MergeAccountingClient
270
278
  # @param x_account_token [String] Token identifying the end user.
271
279
  # @param id [String]
272
280
  # @param [Hash] opts the optional parameters
281
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
273
282
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
274
283
  # @return [Array<(Expense, Integer, Hash)>] Expense data, response status code and response headers
275
284
  def expenses_retrieve_with_http_info(x_account_token, id, opts = {})
@@ -284,11 +293,16 @@ module MergeAccountingClient
284
293
  if @api_client.config.client_side_validation && id.nil?
285
294
  fail ArgumentError, "Missing the required parameter 'id' when calling ExpensesApi.expenses_retrieve"
286
295
  end
296
+ allowable_values = ["account", "account,company", "account,contact", "account,contact,company", "company", "contact", "contact,company"]
297
+ if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
298
+ fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
299
+ end
287
300
  # resource path
288
301
  local_var_path = '/expenses/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
289
302
 
290
303
  # query parameters
291
304
  query_params = opts[:query_params] || {}
305
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
292
306
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
293
307
 
294
308
  # header parameters
@@ -19,7 +19,7 @@ module MergeAccountingClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Force re-sync of all models. This is only available for organizations on Merge's Grow and Expand plans.
22
+ # Force re-sync of all models. This is available for all organizations via the dashboard. Force re-sync is also available for monthly and quarterly sync frequency customers on the Core, Professional, or Enterprise plans.
23
23
  # @param x_account_token [String] Token identifying the end user.
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @return [Array<SyncStatus>]
@@ -28,7 +28,7 @@ module MergeAccountingClient
28
28
  data
29
29
  end
30
30
 
31
- # Force re-sync of all models. This is only available for organizations on Merge&#39;s Grow and Expand plans.
31
+ # Force re-sync of all models. This is available for all organizations via the dashboard. Force re-sync is also available for monthly and quarterly sync frequency customers on the Core, Professional, or Enterprise plans.
32
32
  # @param x_account_token [String] Token identifying the end user.
33
33
  # @param [Hash] opts the optional parameters
34
34
  # @return [Array<(Array<SyncStatus>, Integer, Hash)>] Array<SyncStatus> data, response status code and response headers
@@ -26,6 +26,7 @@ module MergeAccountingClient
26
26
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
27
27
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
28
28
  # @option opts [String] :cursor The pagination cursor value.
29
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
29
30
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
30
31
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
31
32
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
@@ -45,6 +46,7 @@ module MergeAccountingClient
45
46
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
46
47
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
47
48
  # @option opts [String] :cursor The pagination cursor value.
49
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
48
50
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
49
51
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
50
52
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
@@ -60,6 +62,10 @@ module MergeAccountingClient
60
62
  if @api_client.config.client_side_validation && x_account_token.nil?
61
63
  fail ArgumentError, "Missing the required parameter 'x_account_token' when calling IncomeStatementsApi.income_statements_list"
62
64
  end
65
+ allowable_values = ["company"]
66
+ if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
67
+ fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
68
+ end
63
69
  # resource path
64
70
  local_var_path = '/income-statements'
65
71
 
@@ -69,6 +75,7 @@ module MergeAccountingClient
69
75
  query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
70
76
  query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
71
77
  query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
78
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
72
79
  query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
73
80
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
74
81
  query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
@@ -115,6 +122,7 @@ module MergeAccountingClient
115
122
  # @param x_account_token [String] Token identifying the end user.
116
123
  # @param id [String]
117
124
  # @param [Hash] opts the optional parameters
125
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
118
126
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
119
127
  # @return [IncomeStatement]
120
128
  def income_statements_retrieve(x_account_token, id, opts = {})
@@ -126,6 +134,7 @@ module MergeAccountingClient
126
134
  # @param x_account_token [String] Token identifying the end user.
127
135
  # @param id [String]
128
136
  # @param [Hash] opts the optional parameters
137
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
129
138
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
130
139
  # @return [Array<(IncomeStatement, Integer, Hash)>] IncomeStatement data, response status code and response headers
131
140
  def income_statements_retrieve_with_http_info(x_account_token, id, opts = {})
@@ -140,11 +149,16 @@ module MergeAccountingClient
140
149
  if @api_client.config.client_side_validation && id.nil?
141
150
  fail ArgumentError, "Missing the required parameter 'id' when calling IncomeStatementsApi.income_statements_retrieve"
142
151
  end
152
+ allowable_values = ["company"]
153
+ if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
154
+ fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
155
+ end
143
156
  # resource path
144
157
  local_var_path = '/income-statements/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
145
158
 
146
159
  # query parameters
147
160
  query_params = opts[:query_params] || {}
161
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
148
162
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
149
163
 
150
164
  # header parameters