Class: IntegrationApi::AccountingApi
- Inherits:
-
Object
- Object
- IntegrationApi::AccountingApi
- Defined in:
- lib/integration_api/api/accounting_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#create_or_update_accounting_bill_payment(nucleus_invoice_id, opts = {}) ⇒ AccountingFinalResponseVO
Create/Update bill payment in Nucleus for a given nucleus_invoice_id Create/Update bill payment in Nucleus for a given nucleus_invoice_id.
-
#create_or_update_accounting_bill_payment_with_http_info(nucleus_invoice_id, opts = {}) ⇒ Array<(AccountingFinalResponseVO, Fixnum, Hash)>
Create/Update bill payment in Nucleus for a given nucleus_invoice_id Create/Update bill payment in Nucleus for a given nucleus_invoice_id.
-
#create_or_update_accounting_bills(nucleus_contact_id, start_date, opts = {}) ⇒ AccountingFinalResponseVO
Update/Create all bills in Nucleus for a given nucleus_client_id Update/Create all bills in Nucleus for a given nucleus_client_id.
-
#create_or_update_accounting_bills_with_http_info(nucleus_contact_id, start_date, opts = {}) ⇒ Array<(AccountingFinalResponseVO, Fixnum, Hash)>
Update/Create all bills in Nucleus for a given nucleus_client_id Update/Create all bills in Nucleus for a given nucleus_client_id.
-
#create_or_update_accounting_customer(opts = {}) ⇒ AccountingFinalResponseVO
Update/Create all customers in Nucleus for a given nucleus_client_id Update/Create all customers in Nucleus for a given nucleus_client_id.
-
#create_or_update_accounting_customer_revenue(nucleus_contact_id, start_date, opts = {}) ⇒ AccountingFinalResponseVO
Update/Create all customers revenue in Nucleus for a given nucleus_contact_id Update/Create all customers revenue in Nucleus for a given nucleus_contact_id.
-
#create_or_update_accounting_customer_revenue_with_http_info(nucleus_contact_id, start_date, opts = {}) ⇒ Array<(AccountingFinalResponseVO, Fixnum, Hash)>
Update/Create all customers revenue in Nucleus for a given nucleus_contact_id Update/Create all customers revenue in Nucleus for a given nucleus_contact_id.
-
#create_or_update_accounting_customer_with_http_info(opts = {}) ⇒ Array<(AccountingFinalResponseVO, Fixnum, Hash)>
Update/Create all customers in Nucleus for a given nucleus_client_id Update/Create all customers in Nucleus for a given nucleus_client_id.
-
#create_or_update_accounting_invoice(nucleus_contact_id, start_date, opts = {}) ⇒ AccountingFinalResponseVO
Update/Create all invoices in Nucleus for a given nucleus_client_id Update/Create all invoices in Nucleus for a given nucleus_client_id.
-
#create_or_update_accounting_invoice_payment(nucleus_invoice_id, opts = {}) ⇒ AccountingFinalResponseVO
Create/Update invoice payment in Nucleus for a given nucleus_invoice_id Create/Update invoice payment in Nucleus for a given nucleus_invoice_id.
-
#create_or_update_accounting_invoice_payment_with_http_info(nucleus_invoice_id, opts = {}) ⇒ Array<(AccountingFinalResponseVO, Fixnum, Hash)>
Create/Update invoice payment in Nucleus for a given nucleus_invoice_id Create/Update invoice payment in Nucleus for a given nucleus_invoice_id.
-
#create_or_update_accounting_invoice_with_http_info(nucleus_contact_id, start_date, opts = {}) ⇒ Array<(AccountingFinalResponseVO, Fixnum, Hash)>
Update/Create all invoices in Nucleus for a given nucleus_client_id Update/Create all invoices in Nucleus for a given nucleus_client_id.
-
#create_or_update_accounting_supplier(opts = {}) ⇒ AccountingFinalResponseVO
Update/Create all suppliers in Nucleus for a given nucleus_client_id Update/Create all suppliers in Nucleus for a given nucleus_client_id.
-
#create_or_update_accounting_supplier_with_http_info(opts = {}) ⇒ Array<(AccountingFinalResponseVO, Fixnum, Hash)>
Update/Create all suppliers in Nucleus for a given nucleus_client_id Update/Create all suppliers in Nucleus for a given nucleus_client_id.
-
#delete_accounting_vendor_access_config_is_active_by_id(id, opts = {}) ⇒ nil
Permanently delete relation with particular accounting vendor.
-
#delete_accounting_vendor_access_config_is_active_by_id_with_http_info(id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Permanently delete relation with particular accounting vendor.
-
#get_accounting_stats(opts = {}) ⇒ AccountingFinalResponseVO
Get accounting stats from financial statements at the vendor for the business provided Get accounting stats from financial statements at the vendor for the business provided.
-
#get_accounting_stats_with_http_info(opts = {}) ⇒ Array<(AccountingFinalResponseVO, Fixnum, Hash)>
Get accounting stats from financial statements at the vendor for the business provided Get accounting stats from financial statements at the vendor for the business provided.
-
#get_accounting_vendor_info_using_client_id(nucleus_client_id, opts = {}) ⇒ Array<VendorAccessConfigVO>
Get Accounting Vendor Config Get Accounting vendor config information with its status.
-
#get_accounting_vendor_info_using_client_id_with_http_info(nucleus_client_id, opts = {}) ⇒ Array<(Array<VendorAccessConfigVO>, Fixnum, Hash)>
Get Accounting Vendor Config Get Accounting vendor config information with its status.
-
#initialize(api_client = ApiClient.default) ⇒ AccountingApi
constructor
A new instance of AccountingApi.
-
#update_accounting_bill(nucleus_invoice_id, opts = {}) ⇒ AccountingFinalResponseVO
Update bill in Nucleus for a given nucleus_invoice_id Update bill in Nucleus for a given nucleus_invoice_id.
-
#update_accounting_bill_with_http_info(nucleus_invoice_id, opts = {}) ⇒ Array<(AccountingFinalResponseVO, Fixnum, Hash)>
Update bill in Nucleus for a given nucleus_invoice_id Update bill in Nucleus for a given nucleus_invoice_id.
-
#update_accounting_customer(nucleus_contact_id, opts = {}) ⇒ AccountingFinalResponseVO
Update customer in Nucleus for a given nucleus_contact_id Update customer in Nucleus for a given nucleus_contact_id.
-
#update_accounting_customer_with_http_info(nucleus_contact_id, opts = {}) ⇒ Array<(AccountingFinalResponseVO, Fixnum, Hash)>
Update customer in Nucleus for a given nucleus_contact_id Update customer in Nucleus for a given nucleus_contact_id.
-
#update_accounting_invoice(nucleus_invoice_id, opts = {}) ⇒ AccountingFinalResponseVO
Update invoice in Nucleus for a given nucleus_invoice_id Update invoice in Nucleus for a given nucleus_invoice_id.
-
#update_accounting_invoice_with_http_info(nucleus_invoice_id, opts = {}) ⇒ Array<(AccountingFinalResponseVO, Fixnum, Hash)>
Update invoice in Nucleus for a given nucleus_invoice_id Update invoice in Nucleus for a given nucleus_invoice_id.
-
#update_accounting_supplier(nucleus_contact_id, opts = {}) ⇒ AccountingFinalResponseVO
Update supplier in Nucleus for a given nucleus_contact_id Update supplier in Nucleus for a given nucleus_contact_id.
-
#update_accounting_supplier_with_http_info(nucleus_contact_id, opts = {}) ⇒ Array<(AccountingFinalResponseVO, Fixnum, Hash)>
Update supplier in Nucleus for a given nucleus_contact_id Update supplier in Nucleus for a given nucleus_contact_id.
-
#update_accounting_vendor_access_config_is_active_by_id(id, is_active, opts = {}) ⇒ VendorAccessConfigVO
Enable/Disable relation with particular accounting vendor.
-
#update_accounting_vendor_access_config_is_active_by_id_with_http_info(id, is_active, opts = {}) ⇒ Array<(VendorAccessConfigVO, Fixnum, Hash)>
Enable/Disable relation with particular accounting vendor.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ AccountingApi
Returns a new instance of AccountingApi.
19 20 21 |
# File 'lib/integration_api/api/accounting_api.rb', line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/integration_api/api/accounting_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#create_or_update_accounting_bill_payment(nucleus_invoice_id, opts = {}) ⇒ AccountingFinalResponseVO
Create/Update bill payment in Nucleus for a given nucleus_invoice_id Create/Update bill payment in Nucleus for a given nucleus_invoice_id
27 28 29 30 |
# File 'lib/integration_api/api/accounting_api.rb', line 27 def create_or_update_accounting_bill_payment(nucleus_invoice_id, opts = {}) data, _status_code, _headers = create_or_update_accounting_bill_payment_with_http_info(nucleus_invoice_id, opts) data end |
#create_or_update_accounting_bill_payment_with_http_info(nucleus_invoice_id, opts = {}) ⇒ Array<(AccountingFinalResponseVO, Fixnum, Hash)>
Create/Update bill payment in Nucleus for a given nucleus_invoice_id Create/Update bill payment in Nucleus for a given nucleus_invoice_id
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/integration_api/api/accounting_api.rb', line 37 def create_or_update_accounting_bill_payment_with_http_info(nucleus_invoice_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountingApi.create_or_update_accounting_bill_payment ...' end # verify the required parameter 'nucleus_invoice_id' is set if @api_client.config.client_side_validation && nucleus_invoice_id.nil? fail ArgumentError, "Missing the required parameter 'nucleus_invoice_id' when calling AccountingApi.create_or_update_accounting_bill_payment" end # resource path local_var_path = '/accounting/bill_payment/{nucleus_invoice_id}'.sub('{' + 'nucleus_invoice_id' + '}', nucleus_invoice_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'AccountingFinalResponseVO') if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountingApi#create_or_update_accounting_bill_payment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_or_update_accounting_bills(nucleus_contact_id, start_date, opts = {}) ⇒ AccountingFinalResponseVO
Update/Create all bills in Nucleus for a given nucleus_client_id Update/Create all bills in Nucleus for a given nucleus_client_id
81 82 83 84 |
# File 'lib/integration_api/api/accounting_api.rb', line 81 def create_or_update_accounting_bills(nucleus_contact_id, start_date, opts = {}) data, _status_code, _headers = create_or_update_accounting_bills_with_http_info(nucleus_contact_id, start_date, opts) data end |
#create_or_update_accounting_bills_with_http_info(nucleus_contact_id, start_date, opts = {}) ⇒ Array<(AccountingFinalResponseVO, Fixnum, Hash)>
Update/Create all bills in Nucleus for a given nucleus_client_id Update/Create all bills in Nucleus for a given nucleus_client_id
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/integration_api/api/accounting_api.rb', line 93 def create_or_update_accounting_bills_with_http_info(nucleus_contact_id, start_date, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountingApi.create_or_update_accounting_bills ...' end # verify the required parameter 'nucleus_contact_id' is set if @api_client.config.client_side_validation && nucleus_contact_id.nil? fail ArgumentError, "Missing the required parameter 'nucleus_contact_id' when calling AccountingApi.create_or_update_accounting_bills" end # verify the required parameter 'start_date' is set if @api_client.config.client_side_validation && start_date.nil? fail ArgumentError, "Missing the required parameter 'start_date' when calling AccountingApi.create_or_update_accounting_bills" end # resource path local_var_path = '/accounting/bill' # query parameters query_params = {} query_params[:'nucleus_contact_id'] = nucleus_contact_id query_params[:'start_date'] = start_date query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'AccountingFinalResponseVO') if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountingApi#create_or_update_accounting_bills\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_or_update_accounting_customer(opts = {}) ⇒ AccountingFinalResponseVO
Update/Create all customers in Nucleus for a given nucleus_client_id Update/Create all customers in Nucleus for a given nucleus_client_id
143 144 145 146 |
# File 'lib/integration_api/api/accounting_api.rb', line 143 def create_or_update_accounting_customer(opts = {}) data, _status_code, _headers = create_or_update_accounting_customer_with_http_info(opts) data end |
#create_or_update_accounting_customer_revenue(nucleus_contact_id, start_date, opts = {}) ⇒ AccountingFinalResponseVO
Update/Create all customers revenue in Nucleus for a given nucleus_contact_id Update/Create all customers revenue in Nucleus for a given nucleus_contact_id
197 198 199 200 |
# File 'lib/integration_api/api/accounting_api.rb', line 197 def create_or_update_accounting_customer_revenue(nucleus_contact_id, start_date, opts = {}) data, _status_code, _headers = create_or_update_accounting_customer_revenue_with_http_info(nucleus_contact_id, start_date, opts) data end |
#create_or_update_accounting_customer_revenue_with_http_info(nucleus_contact_id, start_date, opts = {}) ⇒ Array<(AccountingFinalResponseVO, Fixnum, Hash)>
Update/Create all customers revenue in Nucleus for a given nucleus_contact_id Update/Create all customers revenue in Nucleus for a given nucleus_contact_id
210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 |
# File 'lib/integration_api/api/accounting_api.rb', line 210 def create_or_update_accounting_customer_revenue_with_http_info(nucleus_contact_id, start_date, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountingApi.create_or_update_accounting_customer_revenue ...' end # verify the required parameter 'nucleus_contact_id' is set if @api_client.config.client_side_validation && nucleus_contact_id.nil? fail ArgumentError, "Missing the required parameter 'nucleus_contact_id' when calling AccountingApi.create_or_update_accounting_customer_revenue" end # verify the required parameter 'start_date' is set if @api_client.config.client_side_validation && start_date.nil? fail ArgumentError, "Missing the required parameter 'start_date' when calling AccountingApi.create_or_update_accounting_customer_revenue" end # resource path local_var_path = '/accounting/customer_revenue/{nucleus_contact_id}'.sub('{' + 'nucleus_contact_id' + '}', nucleus_contact_id.to_s) # query parameters query_params = {} query_params[:'start_date'] = start_date query_params[:'accounting_method'] = opts[:'accounting_method'] if !opts[:'accounting_method'].nil? query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'AccountingFinalResponseVO') if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountingApi#create_or_update_accounting_customer_revenue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_or_update_accounting_customer_with_http_info(opts = {}) ⇒ Array<(AccountingFinalResponseVO, Fixnum, Hash)>
Update/Create all customers in Nucleus for a given nucleus_client_id Update/Create all customers in Nucleus for a given nucleus_client_id
154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 |
# File 'lib/integration_api/api/accounting_api.rb', line 154 def create_or_update_accounting_customer_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountingApi.create_or_update_accounting_customer ...' end # resource path local_var_path = '/accounting/customer' # query parameters query_params = {} query_params[:'nucleus_business_id'] = opts[:'nucleus_business_id'] if !opts[:'nucleus_business_id'].nil? query_params[:'nucleus_client_id'] = opts[:'nucleus_client_id'] if !opts[:'nucleus_client_id'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'AccountingFinalResponseVO') if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountingApi#create_or_update_accounting_customer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_or_update_accounting_invoice(nucleus_contact_id, start_date, opts = {}) ⇒ AccountingFinalResponseVO
Update/Create all invoices in Nucleus for a given nucleus_client_id Update/Create all invoices in Nucleus for a given nucleus_client_id
261 262 263 264 |
# File 'lib/integration_api/api/accounting_api.rb', line 261 def create_or_update_accounting_invoice(nucleus_contact_id, start_date, opts = {}) data, _status_code, _headers = create_or_update_accounting_invoice_with_http_info(nucleus_contact_id, start_date, opts) data end |
#create_or_update_accounting_invoice_payment(nucleus_invoice_id, opts = {}) ⇒ AccountingFinalResponseVO
Create/Update invoice payment in Nucleus for a given nucleus_invoice_id Create/Update invoice payment in Nucleus for a given nucleus_invoice_id
322 323 324 325 |
# File 'lib/integration_api/api/accounting_api.rb', line 322 def create_or_update_accounting_invoice_payment(nucleus_invoice_id, opts = {}) data, _status_code, _headers = create_or_update_accounting_invoice_payment_with_http_info(nucleus_invoice_id, opts) data end |
#create_or_update_accounting_invoice_payment_with_http_info(nucleus_invoice_id, opts = {}) ⇒ Array<(AccountingFinalResponseVO, Fixnum, Hash)>
Create/Update invoice payment in Nucleus for a given nucleus_invoice_id Create/Update invoice payment in Nucleus for a given nucleus_invoice_id
332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 |
# File 'lib/integration_api/api/accounting_api.rb', line 332 def create_or_update_accounting_invoice_payment_with_http_info(nucleus_invoice_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountingApi.create_or_update_accounting_invoice_payment ...' end # verify the required parameter 'nucleus_invoice_id' is set if @api_client.config.client_side_validation && nucleus_invoice_id.nil? fail ArgumentError, "Missing the required parameter 'nucleus_invoice_id' when calling AccountingApi.create_or_update_accounting_invoice_payment" end # resource path local_var_path = '/accounting/invoice_payment/{nucleus_invoice_id}'.sub('{' + 'nucleus_invoice_id' + '}', nucleus_invoice_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'AccountingFinalResponseVO') if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountingApi#create_or_update_accounting_invoice_payment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_or_update_accounting_invoice_with_http_info(nucleus_contact_id, start_date, opts = {}) ⇒ Array<(AccountingFinalResponseVO, Fixnum, Hash)>
Update/Create all invoices in Nucleus for a given nucleus_client_id Update/Create all invoices in Nucleus for a given nucleus_client_id
273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 |
# File 'lib/integration_api/api/accounting_api.rb', line 273 def create_or_update_accounting_invoice_with_http_info(nucleus_contact_id, start_date, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountingApi.create_or_update_accounting_invoice ...' end # verify the required parameter 'nucleus_contact_id' is set if @api_client.config.client_side_validation && nucleus_contact_id.nil? fail ArgumentError, "Missing the required parameter 'nucleus_contact_id' when calling AccountingApi.create_or_update_accounting_invoice" end # verify the required parameter 'start_date' is set if @api_client.config.client_side_validation && start_date.nil? fail ArgumentError, "Missing the required parameter 'start_date' when calling AccountingApi.create_or_update_accounting_invoice" end # resource path local_var_path = '/accounting/invoice' # query parameters query_params = {} query_params[:'nucleus_contact_id'] = nucleus_contact_id query_params[:'start_date'] = start_date query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'AccountingFinalResponseVO') if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountingApi#create_or_update_accounting_invoice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_or_update_accounting_supplier(opts = {}) ⇒ AccountingFinalResponseVO
Update/Create all suppliers in Nucleus for a given nucleus_client_id Update/Create all suppliers in Nucleus for a given nucleus_client_id
375 376 377 378 |
# File 'lib/integration_api/api/accounting_api.rb', line 375 def create_or_update_accounting_supplier(opts = {}) data, _status_code, _headers = create_or_update_accounting_supplier_with_http_info(opts) data end |
#create_or_update_accounting_supplier_with_http_info(opts = {}) ⇒ Array<(AccountingFinalResponseVO, Fixnum, Hash)>
Update/Create all suppliers in Nucleus for a given nucleus_client_id Update/Create all suppliers in Nucleus for a given nucleus_client_id
386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 |
# File 'lib/integration_api/api/accounting_api.rb', line 386 def create_or_update_accounting_supplier_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountingApi.create_or_update_accounting_supplier ...' end # resource path local_var_path = '/accounting/supplier' # query parameters query_params = {} query_params[:'nucleus_business_id'] = opts[:'nucleus_business_id'] if !opts[:'nucleus_business_id'].nil? query_params[:'nucleus_client_id'] = opts[:'nucleus_client_id'] if !opts[:'nucleus_client_id'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'AccountingFinalResponseVO') if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountingApi#create_or_update_accounting_supplier\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_accounting_vendor_access_config_is_active_by_id(id, opts = {}) ⇒ nil
Permanently delete relation with particular accounting vendor. Permanently delete relation with particular accounting vendor.
426 427 428 429 |
# File 'lib/integration_api/api/accounting_api.rb', line 426 def delete_accounting_vendor_access_config_is_active_by_id(id, opts = {}) delete_accounting_vendor_access_config_is_active_by_id_with_http_info(id, opts) nil end |
#delete_accounting_vendor_access_config_is_active_by_id_with_http_info(id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Permanently delete relation with particular accounting vendor. Permanently delete relation with particular accounting vendor.
436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 |
# File 'lib/integration_api/api/accounting_api.rb', line 436 def delete_accounting_vendor_access_config_is_active_by_id_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountingApi.delete_accounting_vendor_access_config_is_active_by_id ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling AccountingApi.delete_accounting_vendor_access_config_is_active_by_id" end # resource path local_var_path = '/accounting/vendor/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountingApi#delete_accounting_vendor_access_config_is_active_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_accounting_stats(opts = {}) ⇒ AccountingFinalResponseVO
Get accounting stats from financial statements at the vendor for the business provided Get accounting stats from financial statements at the vendor for the business provided
486 487 488 489 |
# File 'lib/integration_api/api/accounting_api.rb', line 486 def get_accounting_stats(opts = {}) data, _status_code, _headers = get_accounting_stats_with_http_info(opts) data end |
#get_accounting_stats_with_http_info(opts = {}) ⇒ Array<(AccountingFinalResponseVO, Fixnum, Hash)>
Get accounting stats from financial statements at the vendor for the business provided Get accounting stats from financial statements at the vendor for the business provided
505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 |
# File 'lib/integration_api/api/accounting_api.rb', line 505 def get_accounting_stats_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountingApi.get_accounting_stats ...' end # resource path local_var_path = '/accounting/report' # query parameters query_params = {} query_params[:'accounting_method'] = opts[:'accounting_method'] if !opts[:'accounting_method'].nil? query_params[:'nucleus_business_id'] = opts[:'nucleus_business_id'] if !opts[:'nucleus_business_id'].nil? query_params[:'nucleus_client_id'] = opts[:'nucleus_client_id'] if !opts[:'nucleus_client_id'].nil? query_params[:'period_length'] = opts[:'period_length'] if !opts[:'period_length'].nil? query_params[:'period_month'] = opts[:'period_month'] if !opts[:'period_month'].nil? query_params[:'period_quarter'] = opts[:'period_quarter'] if !opts[:'period_quarter'].nil? query_params[:'period_type'] = opts[:'period_type'] if !opts[:'period_type'].nil? query_params[:'period_year'] = opts[:'period_year'] if !opts[:'period_year'].nil? query_params[:'report'] = opts[:'report'] if !opts[:'report'].nil? query_params[:'statement_date'] = opts[:'statement_date'] if !opts[:'statement_date'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'AccountingFinalResponseVO') if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountingApi#get_accounting_stats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_accounting_vendor_info_using_client_id(nucleus_client_id, opts = {}) ⇒ Array<VendorAccessConfigVO>
Get Accounting Vendor Config Get Accounting vendor config information with its status.
553 554 555 556 |
# File 'lib/integration_api/api/accounting_api.rb', line 553 def get_accounting_vendor_info_using_client_id(nucleus_client_id, opts = {}) data, _status_code, _headers = get_accounting_vendor_info_using_client_id_with_http_info(nucleus_client_id, opts) data end |
#get_accounting_vendor_info_using_client_id_with_http_info(nucleus_client_id, opts = {}) ⇒ Array<(Array<VendorAccessConfigVO>, Fixnum, Hash)>
Get Accounting Vendor Config Get Accounting vendor config information with its status.
563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 |
# File 'lib/integration_api/api/accounting_api.rb', line 563 def get_accounting_vendor_info_using_client_id_with_http_info(nucleus_client_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountingApi.get_accounting_vendor_info_using_client_id ...' end # verify the required parameter 'nucleus_client_id' is set if @api_client.config.client_side_validation && nucleus_client_id.nil? fail ArgumentError, "Missing the required parameter 'nucleus_client_id' when calling AccountingApi.get_accounting_vendor_info_using_client_id" end # resource path local_var_path = '/accounting/vendor/{nucleus_client_id}'.sub('{' + 'nucleus_client_id' + '}', nucleus_client_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<VendorAccessConfigVO>') if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountingApi#get_accounting_vendor_info_using_client_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_accounting_bill(nucleus_invoice_id, opts = {}) ⇒ AccountingFinalResponseVO
Update bill in Nucleus for a given nucleus_invoice_id Update bill in Nucleus for a given nucleus_invoice_id
605 606 607 608 |
# File 'lib/integration_api/api/accounting_api.rb', line 605 def update_accounting_bill(nucleus_invoice_id, opts = {}) data, _status_code, _headers = update_accounting_bill_with_http_info(nucleus_invoice_id, opts) data end |
#update_accounting_bill_with_http_info(nucleus_invoice_id, opts = {}) ⇒ Array<(AccountingFinalResponseVO, Fixnum, Hash)>
Update bill in Nucleus for a given nucleus_invoice_id Update bill in Nucleus for a given nucleus_invoice_id
615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 |
# File 'lib/integration_api/api/accounting_api.rb', line 615 def update_accounting_bill_with_http_info(nucleus_invoice_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountingApi.update_accounting_bill ...' end # verify the required parameter 'nucleus_invoice_id' is set if @api_client.config.client_side_validation && nucleus_invoice_id.nil? fail ArgumentError, "Missing the required parameter 'nucleus_invoice_id' when calling AccountingApi.update_accounting_bill" end # resource path local_var_path = '/accounting/bill/{nucleus_invoice_id}'.sub('{' + 'nucleus_invoice_id' + '}', nucleus_invoice_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'AccountingFinalResponseVO') if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountingApi#update_accounting_bill\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_accounting_customer(nucleus_contact_id, opts = {}) ⇒ AccountingFinalResponseVO
Update customer in Nucleus for a given nucleus_contact_id Update customer in Nucleus for a given nucleus_contact_id
657 658 659 660 |
# File 'lib/integration_api/api/accounting_api.rb', line 657 def update_accounting_customer(nucleus_contact_id, opts = {}) data, _status_code, _headers = update_accounting_customer_with_http_info(nucleus_contact_id, opts) data end |
#update_accounting_customer_with_http_info(nucleus_contact_id, opts = {}) ⇒ Array<(AccountingFinalResponseVO, Fixnum, Hash)>
Update customer in Nucleus for a given nucleus_contact_id Update customer in Nucleus for a given nucleus_contact_id
667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 |
# File 'lib/integration_api/api/accounting_api.rb', line 667 def update_accounting_customer_with_http_info(nucleus_contact_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountingApi.update_accounting_customer ...' end # verify the required parameter 'nucleus_contact_id' is set if @api_client.config.client_side_validation && nucleus_contact_id.nil? fail ArgumentError, "Missing the required parameter 'nucleus_contact_id' when calling AccountingApi.update_accounting_customer" end # resource path local_var_path = '/accounting/customer/{nucleus_contact_id}'.sub('{' + 'nucleus_contact_id' + '}', nucleus_contact_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'AccountingFinalResponseVO') if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountingApi#update_accounting_customer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_accounting_invoice(nucleus_invoice_id, opts = {}) ⇒ AccountingFinalResponseVO
Update invoice in Nucleus for a given nucleus_invoice_id Update invoice in Nucleus for a given nucleus_invoice_id
709 710 711 712 |
# File 'lib/integration_api/api/accounting_api.rb', line 709 def update_accounting_invoice(nucleus_invoice_id, opts = {}) data, _status_code, _headers = update_accounting_invoice_with_http_info(nucleus_invoice_id, opts) data end |
#update_accounting_invoice_with_http_info(nucleus_invoice_id, opts = {}) ⇒ Array<(AccountingFinalResponseVO, Fixnum, Hash)>
Update invoice in Nucleus for a given nucleus_invoice_id Update invoice in Nucleus for a given nucleus_invoice_id
719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 |
# File 'lib/integration_api/api/accounting_api.rb', line 719 def update_accounting_invoice_with_http_info(nucleus_invoice_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountingApi.update_accounting_invoice ...' end # verify the required parameter 'nucleus_invoice_id' is set if @api_client.config.client_side_validation && nucleus_invoice_id.nil? fail ArgumentError, "Missing the required parameter 'nucleus_invoice_id' when calling AccountingApi.update_accounting_invoice" end # resource path local_var_path = '/accounting/invoice/{nucleus_invoice_id}'.sub('{' + 'nucleus_invoice_id' + '}', nucleus_invoice_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'AccountingFinalResponseVO') if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountingApi#update_accounting_invoice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_accounting_supplier(nucleus_contact_id, opts = {}) ⇒ AccountingFinalResponseVO
Update supplier in Nucleus for a given nucleus_contact_id Update supplier in Nucleus for a given nucleus_contact_id
761 762 763 764 |
# File 'lib/integration_api/api/accounting_api.rb', line 761 def update_accounting_supplier(nucleus_contact_id, opts = {}) data, _status_code, _headers = update_accounting_supplier_with_http_info(nucleus_contact_id, opts) data end |
#update_accounting_supplier_with_http_info(nucleus_contact_id, opts = {}) ⇒ Array<(AccountingFinalResponseVO, Fixnum, Hash)>
Update supplier in Nucleus for a given nucleus_contact_id Update supplier in Nucleus for a given nucleus_contact_id
771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 |
# File 'lib/integration_api/api/accounting_api.rb', line 771 def update_accounting_supplier_with_http_info(nucleus_contact_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountingApi.update_accounting_supplier ...' end # verify the required parameter 'nucleus_contact_id' is set if @api_client.config.client_side_validation && nucleus_contact_id.nil? fail ArgumentError, "Missing the required parameter 'nucleus_contact_id' when calling AccountingApi.update_accounting_supplier" end # resource path local_var_path = '/accounting/supplier/{nucleus_contact_id}'.sub('{' + 'nucleus_contact_id' + '}', nucleus_contact_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'AccountingFinalResponseVO') if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountingApi#update_accounting_supplier\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_accounting_vendor_access_config_is_active_by_id(id, is_active, opts = {}) ⇒ VendorAccessConfigVO
Enable/Disable relation with particular accounting vendor. Enable/Disable link with particular accounting vendor.
814 815 816 817 |
# File 'lib/integration_api/api/accounting_api.rb', line 814 def update_accounting_vendor_access_config_is_active_by_id(id, is_active, opts = {}) data, _status_code, _headers = update_accounting_vendor_access_config_is_active_by_id_with_http_info(id, is_active, opts) data end |
#update_accounting_vendor_access_config_is_active_by_id_with_http_info(id, is_active, opts = {}) ⇒ Array<(VendorAccessConfigVO, Fixnum, Hash)>
Enable/Disable relation with particular accounting vendor. Enable/Disable link with particular accounting vendor.
825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 |
# File 'lib/integration_api/api/accounting_api.rb', line 825 def update_accounting_vendor_access_config_is_active_by_id_with_http_info(id, is_active, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountingApi.update_accounting_vendor_access_config_is_active_by_id ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling AccountingApi.update_accounting_vendor_access_config_is_active_by_id" end # verify the required parameter 'is_active' is set if @api_client.config.client_side_validation && is_active.nil? fail ArgumentError, "Missing the required parameter 'is_active' when calling AccountingApi.update_accounting_vendor_access_config_is_active_by_id" end # resource path local_var_path = '/accounting/vendor/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} query_params[:'is_active'] = is_active # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'VendorAccessConfigVO') if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountingApi#update_accounting_vendor_access_config_is_active_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |