xero-ruby 3.16.0 → 10.0.0
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.
- checksums.yaml +4 -4
- data/lib/xero-ruby/api/accounting_api.rb +645 -3
- data/lib/xero-ruby/api/app_store_api.rb +6 -0
- data/lib/xero-ruby/api/asset_api.rb +16 -6
- data/lib/xero-ruby/api/files_api.rb +156 -20
- data/lib/xero-ruby/api/payroll_au_api.rb +326 -30
- data/lib/xero-ruby/api/payroll_nz_api.rb +417 -7
- data/lib/xero-ruby/api/payroll_uk_api.rb +81 -0
- data/lib/xero-ruby/api/project_api.rb +21 -0
- data/lib/xero-ruby/api_client.rb +7 -7
- data/lib/xero-ruby/models/accounting/account_type.rb +0 -4
- data/lib/xero-ruby/models/accounting/allocation.rb +21 -1
- data/lib/xero-ruby/models/accounting/bank_transactions.rb +23 -1
- data/lib/xero-ruby/models/accounting/contact.rb +1 -11
- data/lib/xero-ruby/models/accounting/contacts.rb +23 -1
- data/lib/xero-ruby/models/accounting/credit_note.rb +17 -5
- data/lib/xero-ruby/models/accounting/credit_notes.rb +23 -1
- data/lib/xero-ruby/models/accounting/currency_code.rb +10 -8
- data/lib/xero-ruby/models/accounting/invoice.rb +16 -4
- data/lib/xero-ruby/models/accounting/invoice_address.rb +338 -0
- data/lib/xero-ruby/models/accounting/invoices.rb +23 -1
- data/lib/xero-ruby/models/accounting/journals.rb +13 -1
- data/lib/xero-ruby/models/accounting/line_item.rb +75 -4
- data/lib/xero-ruby/models/accounting/manual_journals.rb +23 -1
- data/lib/xero-ruby/models/accounting/organisation.rb +9 -2
- data/lib/xero-ruby/models/accounting/overpayments.rb +23 -1
- data/lib/xero-ruby/models/accounting/pagination.rb +252 -0
- data/lib/xero-ruby/models/accounting/payment.rb +16 -4
- data/lib/xero-ruby/models/accounting/payments.rb +23 -1
- data/lib/xero-ruby/models/accounting/prepayments.rb +23 -1
- data/lib/xero-ruby/models/accounting/purchase_orders.rb +23 -1
- data/lib/xero-ruby/models/accounting/tax_breakdown_component.rb +351 -0
- data/lib/xero-ruby/models/accounting/tax_rate.rb +13 -6
- data/lib/xero-ruby/models/accounting/tax_type.rb +45 -4
- data/lib/xero-ruby/models/accounting/ten_ninety_nine_contact.rb +75 -4
- data/lib/xero-ruby/models/files/association.rb +31 -1
- data/lib/xero-ruby/models/finance/current_statement_response.rb +1 -1
- data/lib/xero-ruby/models/finance/data_source_response.rb +13 -43
- data/lib/xero-ruby/models/finance/problem_type.rb +1 -0
- data/lib/xero-ruby/models/finance/statement_line_response.rb +11 -1
- data/lib/xero-ruby/models/finance/statement_response.rb +24 -4
- data/lib/xero-ruby/models/payroll_au/allowance_type.rb +0 -1
- data/lib/xero-ruby/models/payroll_au/country_of_residence.rb +0 -1
- data/lib/xero-ruby/models/payroll_au/earnings_rate.rb +21 -1
- data/lib/xero-ruby/models/payroll_au/leave_application.rb +11 -1
- data/lib/xero-ruby/models/payroll_au/leave_earnings_line.rb +14 -4
- data/lib/xero-ruby/models/payroll_au/leave_line_calculation_type.rb +0 -1
- data/lib/xero-ruby/models/payroll_au/leave_period_status.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/opening_balances.rb +16 -4
- data/lib/xero-ruby/models/payroll_au/paid_leave_earnings_line.rb +272 -0
- data/lib/xero-ruby/models/payroll_au/pay_out_type.rb +36 -0
- data/lib/xero-ruby/models/payroll_nz/employee.rb +34 -4
- data/lib/xero-ruby/models/payroll_nz/employee_leave_setup.rb +56 -6
- data/lib/xero-ruby/models/payroll_nz/employee_leave_type.rb +47 -7
- data/lib/xero-ruby/models/payroll_nz/employee_working_pattern.rb +242 -0
- data/lib/xero-ruby/models/payroll_nz/employee_working_pattern_with_working_weeks.rb +254 -0
- data/lib/xero-ruby/models/payroll_nz/employee_working_pattern_with_working_weeks_object.rb +242 -0
- data/lib/xero-ruby/models/payroll_nz/employee_working_pattern_with_working_weeks_request.rb +244 -0
- data/lib/xero-ruby/models/payroll_nz/employee_working_patterns_object.rb +244 -0
- data/lib/xero-ruby/models/payroll_nz/employment.rb +24 -4
- data/lib/xero-ruby/models/payroll_nz/leave_period.rb +35 -4
- data/lib/xero-ruby/models/payroll_nz/leave_type.rb +24 -4
- data/lib/xero-ruby/models/payroll_nz/salary_and_wage.rb +28 -4
- data/lib/xero-ruby/models/payroll_nz/working_week.rb +317 -0
- data/lib/xero-ruby/models/payroll_uk/earnings_rate.rb +3 -3
- data/lib/xero-ruby/models/payroll_uk/employee_leave_type.rb +14 -4
- data/lib/xero-ruby/models/projects/currency_code.rb +0 -1
- data/lib/xero-ruby/version.rb +2 -2
- data/lib/xero-ruby/where.rb +37 -37
- data/lib/xero-ruby.rb +11 -0
- data/spec/api_client_spec.rb +56 -56
- data/spec/api_error_spec.rb +1 -1
- data/spec/configuration_spec.rb +2 -2
- data/spec/helper_methods_spec.rb +3 -3
- data/spec/where_spec.rb +2 -2
- metadata +38 -27
|
@@ -20,6 +20,7 @@ module XeroRuby
|
|
|
20
20
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
21
21
|
# @param account [Account] Account object in body of request
|
|
22
22
|
# @param [Hash] opts the optional parameters
|
|
23
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
23
24
|
# @return [Accounts]
|
|
24
25
|
def create_account(xero_tenant_id, account, opts = {})
|
|
25
26
|
data, _status_code, _headers = create_account_with_http_info(xero_tenant_id, account, opts)
|
|
@@ -30,6 +31,7 @@ module XeroRuby
|
|
|
30
31
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
31
32
|
# @param account [Account] Account object in body of request
|
|
32
33
|
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
33
35
|
# @return [Array<(Accounts, Integer, Hash)>] Accounts data, response status code and response headers
|
|
34
36
|
def create_account_with_http_info(xero_tenant_id, account, options = {})
|
|
35
37
|
opts = options.dup
|
|
@@ -64,6 +66,7 @@ module XeroRuby
|
|
|
64
66
|
# HTTP header 'Content-Type'
|
|
65
67
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
66
68
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
69
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
67
70
|
|
|
68
71
|
# form parameters
|
|
69
72
|
form_params = opts[:form_params] || {}
|
|
@@ -99,6 +102,7 @@ module XeroRuby
|
|
|
99
102
|
# @param file_name [String] Name of the attachment
|
|
100
103
|
# @param body [String] Byte array of file in body of request
|
|
101
104
|
# @param [Hash] opts the optional parameters
|
|
105
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
102
106
|
# @return [Attachments]
|
|
103
107
|
def create_account_attachment_by_file_name(xero_tenant_id, account_id, file_name, body, opts = {})
|
|
104
108
|
data, _status_code, _headers = create_account_attachment_by_file_name_with_http_info(xero_tenant_id, account_id, file_name, body, opts)
|
|
@@ -111,6 +115,7 @@ module XeroRuby
|
|
|
111
115
|
# @param file_name [String] Name of the attachment
|
|
112
116
|
# @param body [String] Byte array of file in body of request
|
|
113
117
|
# @param [Hash] opts the optional parameters
|
|
118
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
114
119
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
|
115
120
|
def create_account_attachment_by_file_name_with_http_info(xero_tenant_id, account_id, file_name, body, options = {})
|
|
116
121
|
opts = options.dup
|
|
@@ -153,6 +158,7 @@ module XeroRuby
|
|
|
153
158
|
# HTTP header 'Content-Type'
|
|
154
159
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
|
155
160
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
161
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
156
162
|
|
|
157
163
|
# form parameters
|
|
158
164
|
form_params = opts[:form_params] || {}
|
|
@@ -188,6 +194,7 @@ module XeroRuby
|
|
|
188
194
|
# @param file_name [String] Name of the attachment
|
|
189
195
|
# @param body [String] Byte array of file in body of request
|
|
190
196
|
# @param [Hash] opts the optional parameters
|
|
197
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
191
198
|
# @return [Attachments]
|
|
192
199
|
def create_bank_transaction_attachment_by_file_name(xero_tenant_id, bank_transaction_id, file_name, body, opts = {})
|
|
193
200
|
data, _status_code, _headers = create_bank_transaction_attachment_by_file_name_with_http_info(xero_tenant_id, bank_transaction_id, file_name, body, opts)
|
|
@@ -200,6 +207,7 @@ module XeroRuby
|
|
|
200
207
|
# @param file_name [String] Name of the attachment
|
|
201
208
|
# @param body [String] Byte array of file in body of request
|
|
202
209
|
# @param [Hash] opts the optional parameters
|
|
210
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
203
211
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
|
204
212
|
def create_bank_transaction_attachment_by_file_name_with_http_info(xero_tenant_id, bank_transaction_id, file_name, body, options = {})
|
|
205
213
|
opts = options.dup
|
|
@@ -242,6 +250,7 @@ module XeroRuby
|
|
|
242
250
|
# HTTP header 'Content-Type'
|
|
243
251
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
|
244
252
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
253
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
245
254
|
|
|
246
255
|
# form parameters
|
|
247
256
|
form_params = opts[:form_params] || {}
|
|
@@ -276,6 +285,7 @@ module XeroRuby
|
|
|
276
285
|
# @param bank_transaction_id [String] Xero generated unique identifier for a bank transaction
|
|
277
286
|
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
278
287
|
# @param [Hash] opts the optional parameters
|
|
288
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
279
289
|
# @return [HistoryRecords]
|
|
280
290
|
def create_bank_transaction_history_record(xero_tenant_id, bank_transaction_id, history_records, opts = {})
|
|
281
291
|
data, _status_code, _headers = create_bank_transaction_history_record_with_http_info(xero_tenant_id, bank_transaction_id, history_records, opts)
|
|
@@ -287,6 +297,7 @@ module XeroRuby
|
|
|
287
297
|
# @param bank_transaction_id [String] Xero generated unique identifier for a bank transaction
|
|
288
298
|
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
289
299
|
# @param [Hash] opts the optional parameters
|
|
300
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
290
301
|
# @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
|
|
291
302
|
def create_bank_transaction_history_record_with_http_info(xero_tenant_id, bank_transaction_id, history_records, options = {})
|
|
292
303
|
opts = options.dup
|
|
@@ -325,6 +336,7 @@ module XeroRuby
|
|
|
325
336
|
# HTTP header 'Content-Type'
|
|
326
337
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
327
338
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
339
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
328
340
|
|
|
329
341
|
# form parameters
|
|
330
342
|
form_params = opts[:form_params] || {}
|
|
@@ -360,6 +372,7 @@ module XeroRuby
|
|
|
360
372
|
# @param [Hash] opts the optional parameters
|
|
361
373
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
362
374
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
375
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
363
376
|
# @return [BankTransactions]
|
|
364
377
|
def create_bank_transactions(xero_tenant_id, bank_transactions, opts = {})
|
|
365
378
|
data, _status_code, _headers = create_bank_transactions_with_http_info(xero_tenant_id, bank_transactions, opts)
|
|
@@ -372,6 +385,7 @@ module XeroRuby
|
|
|
372
385
|
# @param [Hash] opts the optional parameters
|
|
373
386
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
374
387
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
388
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
375
389
|
# @return [Array<(BankTransactions, Integer, Hash)>] BankTransactions data, response status code and response headers
|
|
376
390
|
def create_bank_transactions_with_http_info(xero_tenant_id, bank_transactions, options = {})
|
|
377
391
|
opts = options.dup
|
|
@@ -408,6 +422,7 @@ module XeroRuby
|
|
|
408
422
|
# HTTP header 'Content-Type'
|
|
409
423
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
410
424
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
425
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
411
426
|
|
|
412
427
|
# form parameters
|
|
413
428
|
form_params = opts[:form_params] || {}
|
|
@@ -441,6 +456,7 @@ module XeroRuby
|
|
|
441
456
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
442
457
|
# @param bank_transfers [BankTransfers] BankTransfers with array of BankTransfer objects in request body
|
|
443
458
|
# @param [Hash] opts the optional parameters
|
|
459
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
444
460
|
# @return [BankTransfers]
|
|
445
461
|
def create_bank_transfer(xero_tenant_id, bank_transfers, opts = {})
|
|
446
462
|
data, _status_code, _headers = create_bank_transfer_with_http_info(xero_tenant_id, bank_transfers, opts)
|
|
@@ -451,6 +467,7 @@ module XeroRuby
|
|
|
451
467
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
452
468
|
# @param bank_transfers [BankTransfers] BankTransfers with array of BankTransfer objects in request body
|
|
453
469
|
# @param [Hash] opts the optional parameters
|
|
470
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
454
471
|
# @return [Array<(BankTransfers, Integer, Hash)>] BankTransfers data, response status code and response headers
|
|
455
472
|
def create_bank_transfer_with_http_info(xero_tenant_id, bank_transfers, options = {})
|
|
456
473
|
opts = options.dup
|
|
@@ -485,6 +502,7 @@ module XeroRuby
|
|
|
485
502
|
# HTTP header 'Content-Type'
|
|
486
503
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
487
504
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
505
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
488
506
|
|
|
489
507
|
# form parameters
|
|
490
508
|
form_params = opts[:form_params] || {}
|
|
@@ -519,6 +537,7 @@ module XeroRuby
|
|
|
519
537
|
# @param file_name [String] Name of the attachment
|
|
520
538
|
# @param body [String] Byte array of file in body of request
|
|
521
539
|
# @param [Hash] opts the optional parameters
|
|
540
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
522
541
|
# @return [Attachments]
|
|
523
542
|
def create_bank_transfer_attachment_by_file_name(xero_tenant_id, bank_transfer_id, file_name, body, opts = {})
|
|
524
543
|
data, _status_code, _headers = create_bank_transfer_attachment_by_file_name_with_http_info(xero_tenant_id, bank_transfer_id, file_name, body, opts)
|
|
@@ -530,6 +549,7 @@ module XeroRuby
|
|
|
530
549
|
# @param file_name [String] Name of the attachment
|
|
531
550
|
# @param body [String] Byte array of file in body of request
|
|
532
551
|
# @param [Hash] opts the optional parameters
|
|
552
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
533
553
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
|
534
554
|
def create_bank_transfer_attachment_by_file_name_with_http_info(xero_tenant_id, bank_transfer_id, file_name, body, options = {})
|
|
535
555
|
opts = options.dup
|
|
@@ -572,6 +592,7 @@ module XeroRuby
|
|
|
572
592
|
# HTTP header 'Content-Type'
|
|
573
593
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
|
574
594
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
595
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
575
596
|
|
|
576
597
|
# form parameters
|
|
577
598
|
form_params = opts[:form_params] || {}
|
|
@@ -606,6 +627,7 @@ module XeroRuby
|
|
|
606
627
|
# @param bank_transfer_id [String] Xero generated unique identifier for a bank transfer
|
|
607
628
|
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
608
629
|
# @param [Hash] opts the optional parameters
|
|
630
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
609
631
|
# @return [HistoryRecords]
|
|
610
632
|
def create_bank_transfer_history_record(xero_tenant_id, bank_transfer_id, history_records, opts = {})
|
|
611
633
|
data, _status_code, _headers = create_bank_transfer_history_record_with_http_info(xero_tenant_id, bank_transfer_id, history_records, opts)
|
|
@@ -617,6 +639,7 @@ module XeroRuby
|
|
|
617
639
|
# @param bank_transfer_id [String] Xero generated unique identifier for a bank transfer
|
|
618
640
|
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
619
641
|
# @param [Hash] opts the optional parameters
|
|
642
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
620
643
|
# @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
|
|
621
644
|
def create_bank_transfer_history_record_with_http_info(xero_tenant_id, bank_transfer_id, history_records, options = {})
|
|
622
645
|
opts = options.dup
|
|
@@ -655,6 +678,7 @@ module XeroRuby
|
|
|
655
678
|
# HTTP header 'Content-Type'
|
|
656
679
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
657
680
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
681
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
658
682
|
|
|
659
683
|
# form parameters
|
|
660
684
|
form_params = opts[:form_params] || {}
|
|
@@ -689,6 +713,7 @@ module XeroRuby
|
|
|
689
713
|
# @param batch_payments [BatchPayments] BatchPayments with an array of Payments in body of request
|
|
690
714
|
# @param [Hash] opts the optional parameters
|
|
691
715
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
716
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
692
717
|
# @return [BatchPayments]
|
|
693
718
|
def create_batch_payment(xero_tenant_id, batch_payments, opts = {})
|
|
694
719
|
data, _status_code, _headers = create_batch_payment_with_http_info(xero_tenant_id, batch_payments, opts)
|
|
@@ -700,6 +725,7 @@ module XeroRuby
|
|
|
700
725
|
# @param batch_payments [BatchPayments] BatchPayments with an array of Payments in body of request
|
|
701
726
|
# @param [Hash] opts the optional parameters
|
|
702
727
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
728
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
703
729
|
# @return [Array<(BatchPayments, Integer, Hash)>] BatchPayments data, response status code and response headers
|
|
704
730
|
def create_batch_payment_with_http_info(xero_tenant_id, batch_payments, options = {})
|
|
705
731
|
opts = options.dup
|
|
@@ -735,6 +761,7 @@ module XeroRuby
|
|
|
735
761
|
# HTTP header 'Content-Type'
|
|
736
762
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
737
763
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
764
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
738
765
|
|
|
739
766
|
# form parameters
|
|
740
767
|
form_params = opts[:form_params] || {}
|
|
@@ -769,6 +796,7 @@ module XeroRuby
|
|
|
769
796
|
# @param batch_payment_id [String] Unique identifier for BatchPayment
|
|
770
797
|
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
771
798
|
# @param [Hash] opts the optional parameters
|
|
799
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
772
800
|
# @return [HistoryRecords]
|
|
773
801
|
def create_batch_payment_history_record(xero_tenant_id, batch_payment_id, history_records, opts = {})
|
|
774
802
|
data, _status_code, _headers = create_batch_payment_history_record_with_http_info(xero_tenant_id, batch_payment_id, history_records, opts)
|
|
@@ -780,6 +808,7 @@ module XeroRuby
|
|
|
780
808
|
# @param batch_payment_id [String] Unique identifier for BatchPayment
|
|
781
809
|
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
782
810
|
# @param [Hash] opts the optional parameters
|
|
811
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
783
812
|
# @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
|
|
784
813
|
def create_batch_payment_history_record_with_http_info(xero_tenant_id, batch_payment_id, history_records, options = {})
|
|
785
814
|
opts = options.dup
|
|
@@ -818,6 +847,7 @@ module XeroRuby
|
|
|
818
847
|
# HTTP header 'Content-Type'
|
|
819
848
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
820
849
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
850
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
821
851
|
|
|
822
852
|
# form parameters
|
|
823
853
|
form_params = opts[:form_params] || {}
|
|
@@ -852,6 +882,7 @@ module XeroRuby
|
|
|
852
882
|
# @param branding_theme_id [String] Unique identifier for a Branding Theme
|
|
853
883
|
# @param payment_services [PaymentServices] PaymentServices array with PaymentService object in body of request
|
|
854
884
|
# @param [Hash] opts the optional parameters
|
|
885
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
855
886
|
# @return [PaymentServices]
|
|
856
887
|
def create_branding_theme_payment_services(xero_tenant_id, branding_theme_id, payment_services, opts = {})
|
|
857
888
|
data, _status_code, _headers = create_branding_theme_payment_services_with_http_info(xero_tenant_id, branding_theme_id, payment_services, opts)
|
|
@@ -863,6 +894,7 @@ module XeroRuby
|
|
|
863
894
|
# @param branding_theme_id [String] Unique identifier for a Branding Theme
|
|
864
895
|
# @param payment_services [PaymentServices] PaymentServices array with PaymentService object in body of request
|
|
865
896
|
# @param [Hash] opts the optional parameters
|
|
897
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
866
898
|
# @return [Array<(PaymentServices, Integer, Hash)>] PaymentServices data, response status code and response headers
|
|
867
899
|
def create_branding_theme_payment_services_with_http_info(xero_tenant_id, branding_theme_id, payment_services, options = {})
|
|
868
900
|
opts = options.dup
|
|
@@ -901,6 +933,7 @@ module XeroRuby
|
|
|
901
933
|
# HTTP header 'Content-Type'
|
|
902
934
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
903
935
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
936
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
904
937
|
|
|
905
938
|
# form parameters
|
|
906
939
|
form_params = opts[:form_params] || {}
|
|
@@ -935,6 +968,7 @@ module XeroRuby
|
|
|
935
968
|
# @param file_name [String] Name of the attachment
|
|
936
969
|
# @param body [String] Byte array of file in body of request
|
|
937
970
|
# @param [Hash] opts the optional parameters
|
|
971
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
938
972
|
# @return [Attachments]
|
|
939
973
|
def create_contact_attachment_by_file_name(xero_tenant_id, contact_id, file_name, body, opts = {})
|
|
940
974
|
data, _status_code, _headers = create_contact_attachment_by_file_name_with_http_info(xero_tenant_id, contact_id, file_name, body, opts)
|
|
@@ -946,6 +980,7 @@ module XeroRuby
|
|
|
946
980
|
# @param file_name [String] Name of the attachment
|
|
947
981
|
# @param body [String] Byte array of file in body of request
|
|
948
982
|
# @param [Hash] opts the optional parameters
|
|
983
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
949
984
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
|
950
985
|
def create_contact_attachment_by_file_name_with_http_info(xero_tenant_id, contact_id, file_name, body, options = {})
|
|
951
986
|
opts = options.dup
|
|
@@ -988,6 +1023,7 @@ module XeroRuby
|
|
|
988
1023
|
# HTTP header 'Content-Type'
|
|
989
1024
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
|
990
1025
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
1026
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
991
1027
|
|
|
992
1028
|
# form parameters
|
|
993
1029
|
form_params = opts[:form_params] || {}
|
|
@@ -1021,6 +1057,7 @@ module XeroRuby
|
|
|
1021
1057
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1022
1058
|
# @param contact_groups [ContactGroups] ContactGroups with an array of names in request body
|
|
1023
1059
|
# @param [Hash] opts the optional parameters
|
|
1060
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1024
1061
|
# @return [ContactGroups]
|
|
1025
1062
|
def create_contact_group(xero_tenant_id, contact_groups, opts = {})
|
|
1026
1063
|
data, _status_code, _headers = create_contact_group_with_http_info(xero_tenant_id, contact_groups, opts)
|
|
@@ -1031,6 +1068,7 @@ module XeroRuby
|
|
|
1031
1068
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1032
1069
|
# @param contact_groups [ContactGroups] ContactGroups with an array of names in request body
|
|
1033
1070
|
# @param [Hash] opts the optional parameters
|
|
1071
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1034
1072
|
# @return [Array<(ContactGroups, Integer, Hash)>] ContactGroups data, response status code and response headers
|
|
1035
1073
|
def create_contact_group_with_http_info(xero_tenant_id, contact_groups, options = {})
|
|
1036
1074
|
opts = options.dup
|
|
@@ -1065,6 +1103,7 @@ module XeroRuby
|
|
|
1065
1103
|
# HTTP header 'Content-Type'
|
|
1066
1104
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1067
1105
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
1106
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
1068
1107
|
|
|
1069
1108
|
# form parameters
|
|
1070
1109
|
form_params = opts[:form_params] || {}
|
|
@@ -1099,6 +1138,7 @@ module XeroRuby
|
|
|
1099
1138
|
# @param contact_group_id [String] Unique identifier for a Contact Group
|
|
1100
1139
|
# @param contacts [Contacts] Contacts with array of contacts specifying the ContactID to be added to ContactGroup in body of request
|
|
1101
1140
|
# @param [Hash] opts the optional parameters
|
|
1141
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1102
1142
|
# @return [Contacts]
|
|
1103
1143
|
def create_contact_group_contacts(xero_tenant_id, contact_group_id, contacts, opts = {})
|
|
1104
1144
|
data, _status_code, _headers = create_contact_group_contacts_with_http_info(xero_tenant_id, contact_group_id, contacts, opts)
|
|
@@ -1110,6 +1150,7 @@ module XeroRuby
|
|
|
1110
1150
|
# @param contact_group_id [String] Unique identifier for a Contact Group
|
|
1111
1151
|
# @param contacts [Contacts] Contacts with array of contacts specifying the ContactID to be added to ContactGroup in body of request
|
|
1112
1152
|
# @param [Hash] opts the optional parameters
|
|
1153
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1113
1154
|
# @return [Array<(Contacts, Integer, Hash)>] Contacts data, response status code and response headers
|
|
1114
1155
|
def create_contact_group_contacts_with_http_info(xero_tenant_id, contact_group_id, contacts, options = {})
|
|
1115
1156
|
opts = options.dup
|
|
@@ -1148,6 +1189,7 @@ module XeroRuby
|
|
|
1148
1189
|
# HTTP header 'Content-Type'
|
|
1149
1190
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1150
1191
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
1192
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
1151
1193
|
|
|
1152
1194
|
# form parameters
|
|
1153
1195
|
form_params = opts[:form_params] || {}
|
|
@@ -1182,6 +1224,7 @@ module XeroRuby
|
|
|
1182
1224
|
# @param contact_id [String] Unique identifier for a Contact
|
|
1183
1225
|
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
1184
1226
|
# @param [Hash] opts the optional parameters
|
|
1227
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1185
1228
|
# @return [HistoryRecords]
|
|
1186
1229
|
def create_contact_history(xero_tenant_id, contact_id, history_records, opts = {})
|
|
1187
1230
|
data, _status_code, _headers = create_contact_history_with_http_info(xero_tenant_id, contact_id, history_records, opts)
|
|
@@ -1193,6 +1236,7 @@ module XeroRuby
|
|
|
1193
1236
|
# @param contact_id [String] Unique identifier for a Contact
|
|
1194
1237
|
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
1195
1238
|
# @param [Hash] opts the optional parameters
|
|
1239
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1196
1240
|
# @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
|
|
1197
1241
|
def create_contact_history_with_http_info(xero_tenant_id, contact_id, history_records, options = {})
|
|
1198
1242
|
opts = options.dup
|
|
@@ -1231,6 +1275,7 @@ module XeroRuby
|
|
|
1231
1275
|
# HTTP header 'Content-Type'
|
|
1232
1276
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1233
1277
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
1278
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
1234
1279
|
|
|
1235
1280
|
# form parameters
|
|
1236
1281
|
form_params = opts[:form_params] || {}
|
|
@@ -1265,6 +1310,7 @@ module XeroRuby
|
|
|
1265
1310
|
# @param contacts [Contacts] Contacts with an array of Contact objects to create in body of request
|
|
1266
1311
|
# @param [Hash] opts the optional parameters
|
|
1267
1312
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
1313
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1268
1314
|
# @return [Contacts]
|
|
1269
1315
|
def create_contacts(xero_tenant_id, contacts, opts = {})
|
|
1270
1316
|
data, _status_code, _headers = create_contacts_with_http_info(xero_tenant_id, contacts, opts)
|
|
@@ -1276,6 +1322,7 @@ module XeroRuby
|
|
|
1276
1322
|
# @param contacts [Contacts] Contacts with an array of Contact objects to create in body of request
|
|
1277
1323
|
# @param [Hash] opts the optional parameters
|
|
1278
1324
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
1325
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1279
1326
|
# @return [Array<(Contacts, Integer, Hash)>] Contacts data, response status code and response headers
|
|
1280
1327
|
def create_contacts_with_http_info(xero_tenant_id, contacts, options = {})
|
|
1281
1328
|
opts = options.dup
|
|
@@ -1311,6 +1358,7 @@ module XeroRuby
|
|
|
1311
1358
|
# HTTP header 'Content-Type'
|
|
1312
1359
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1313
1360
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
1361
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
1314
1362
|
|
|
1315
1363
|
# form parameters
|
|
1316
1364
|
form_params = opts[:form_params] || {}
|
|
@@ -1346,6 +1394,7 @@ module XeroRuby
|
|
|
1346
1394
|
# @param allocations [Allocations] Allocations with array of Allocation object in body of request.
|
|
1347
1395
|
# @param [Hash] opts the optional parameters
|
|
1348
1396
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
1397
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1349
1398
|
# @return [Allocations]
|
|
1350
1399
|
def create_credit_note_allocation(xero_tenant_id, credit_note_id, allocations, opts = {})
|
|
1351
1400
|
data, _status_code, _headers = create_credit_note_allocation_with_http_info(xero_tenant_id, credit_note_id, allocations, opts)
|
|
@@ -1358,6 +1407,7 @@ module XeroRuby
|
|
|
1358
1407
|
# @param allocations [Allocations] Allocations with array of Allocation object in body of request.
|
|
1359
1408
|
# @param [Hash] opts the optional parameters
|
|
1360
1409
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
1410
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1361
1411
|
# @return [Array<(Allocations, Integer, Hash)>] Allocations data, response status code and response headers
|
|
1362
1412
|
def create_credit_note_allocation_with_http_info(xero_tenant_id, credit_note_id, allocations, options = {})
|
|
1363
1413
|
opts = options.dup
|
|
@@ -1397,6 +1447,7 @@ module XeroRuby
|
|
|
1397
1447
|
# HTTP header 'Content-Type'
|
|
1398
1448
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1399
1449
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
1450
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
1400
1451
|
|
|
1401
1452
|
# form parameters
|
|
1402
1453
|
form_params = opts[:form_params] || {}
|
|
@@ -1433,6 +1484,7 @@ module XeroRuby
|
|
|
1433
1484
|
# @param body [String] Byte array of file in body of request
|
|
1434
1485
|
# @param [Hash] opts the optional parameters
|
|
1435
1486
|
# @option opts [Boolean] :include_online Allows an attachment to be seen by the end customer within their online invoice (default to false)
|
|
1487
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1436
1488
|
# @return [Attachments]
|
|
1437
1489
|
def create_credit_note_attachment_by_file_name(xero_tenant_id, credit_note_id, file_name, body, opts = {})
|
|
1438
1490
|
data, _status_code, _headers = create_credit_note_attachment_by_file_name_with_http_info(xero_tenant_id, credit_note_id, file_name, body, opts)
|
|
@@ -1446,6 +1498,7 @@ module XeroRuby
|
|
|
1446
1498
|
# @param body [String] Byte array of file in body of request
|
|
1447
1499
|
# @param [Hash] opts the optional parameters
|
|
1448
1500
|
# @option opts [Boolean] :include_online Allows an attachment to be seen by the end customer within their online invoice
|
|
1501
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1449
1502
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
|
1450
1503
|
def create_credit_note_attachment_by_file_name_with_http_info(xero_tenant_id, credit_note_id, file_name, body, options = {})
|
|
1451
1504
|
opts = options.dup
|
|
@@ -1489,6 +1542,7 @@ module XeroRuby
|
|
|
1489
1542
|
# HTTP header 'Content-Type'
|
|
1490
1543
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
|
1491
1544
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
1545
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
1492
1546
|
|
|
1493
1547
|
# form parameters
|
|
1494
1548
|
form_params = opts[:form_params] || {}
|
|
@@ -1523,6 +1577,7 @@ module XeroRuby
|
|
|
1523
1577
|
# @param credit_note_id [String] Unique identifier for a Credit Note
|
|
1524
1578
|
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
1525
1579
|
# @param [Hash] opts the optional parameters
|
|
1580
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1526
1581
|
# @return [HistoryRecords]
|
|
1527
1582
|
def create_credit_note_history(xero_tenant_id, credit_note_id, history_records, opts = {})
|
|
1528
1583
|
data, _status_code, _headers = create_credit_note_history_with_http_info(xero_tenant_id, credit_note_id, history_records, opts)
|
|
@@ -1534,6 +1589,7 @@ module XeroRuby
|
|
|
1534
1589
|
# @param credit_note_id [String] Unique identifier for a Credit Note
|
|
1535
1590
|
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
1536
1591
|
# @param [Hash] opts the optional parameters
|
|
1592
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1537
1593
|
# @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
|
|
1538
1594
|
def create_credit_note_history_with_http_info(xero_tenant_id, credit_note_id, history_records, options = {})
|
|
1539
1595
|
opts = options.dup
|
|
@@ -1572,6 +1628,7 @@ module XeroRuby
|
|
|
1572
1628
|
# HTTP header 'Content-Type'
|
|
1573
1629
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1574
1630
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
1631
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
1575
1632
|
|
|
1576
1633
|
# form parameters
|
|
1577
1634
|
form_params = opts[:form_params] || {}
|
|
@@ -1607,6 +1664,7 @@ module XeroRuby
|
|
|
1607
1664
|
# @param [Hash] opts the optional parameters
|
|
1608
1665
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
1609
1666
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
1667
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1610
1668
|
# @return [CreditNotes]
|
|
1611
1669
|
def create_credit_notes(xero_tenant_id, credit_notes, opts = {})
|
|
1612
1670
|
data, _status_code, _headers = create_credit_notes_with_http_info(xero_tenant_id, credit_notes, opts)
|
|
@@ -1619,6 +1677,7 @@ module XeroRuby
|
|
|
1619
1677
|
# @param [Hash] opts the optional parameters
|
|
1620
1678
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
1621
1679
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
1680
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1622
1681
|
# @return [Array<(CreditNotes, Integer, Hash)>] CreditNotes data, response status code and response headers
|
|
1623
1682
|
def create_credit_notes_with_http_info(xero_tenant_id, credit_notes, options = {})
|
|
1624
1683
|
opts = options.dup
|
|
@@ -1655,6 +1714,7 @@ module XeroRuby
|
|
|
1655
1714
|
# HTTP header 'Content-Type'
|
|
1656
1715
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1657
1716
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
1717
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
1658
1718
|
|
|
1659
1719
|
# form parameters
|
|
1660
1720
|
form_params = opts[:form_params] || {}
|
|
@@ -1688,6 +1748,7 @@ module XeroRuby
|
|
|
1688
1748
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1689
1749
|
# @param currency [Currency] Currency object in the body of request
|
|
1690
1750
|
# @param [Hash] opts the optional parameters
|
|
1751
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1691
1752
|
# @return [Currencies]
|
|
1692
1753
|
def create_currency(xero_tenant_id, currency, opts = {})
|
|
1693
1754
|
data, _status_code, _headers = create_currency_with_http_info(xero_tenant_id, currency, opts)
|
|
@@ -1698,6 +1759,7 @@ module XeroRuby
|
|
|
1698
1759
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1699
1760
|
# @param currency [Currency] Currency object in the body of request
|
|
1700
1761
|
# @param [Hash] opts the optional parameters
|
|
1762
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1701
1763
|
# @return [Array<(Currencies, Integer, Hash)>] Currencies data, response status code and response headers
|
|
1702
1764
|
def create_currency_with_http_info(xero_tenant_id, currency, options = {})
|
|
1703
1765
|
opts = options.dup
|
|
@@ -1732,6 +1794,7 @@ module XeroRuby
|
|
|
1732
1794
|
# HTTP header 'Content-Type'
|
|
1733
1795
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1734
1796
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
1797
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
1735
1798
|
|
|
1736
1799
|
# form parameters
|
|
1737
1800
|
form_params = opts[:form_params] || {}
|
|
@@ -1766,6 +1829,7 @@ module XeroRuby
|
|
|
1766
1829
|
# @param employees [Employees] Employees with array of Employee object in body of request
|
|
1767
1830
|
# @param [Hash] opts the optional parameters
|
|
1768
1831
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
1832
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1769
1833
|
# @return [Employees]
|
|
1770
1834
|
def create_employees(xero_tenant_id, employees, opts = {})
|
|
1771
1835
|
data, _status_code, _headers = create_employees_with_http_info(xero_tenant_id, employees, opts)
|
|
@@ -1777,6 +1841,7 @@ module XeroRuby
|
|
|
1777
1841
|
# @param employees [Employees] Employees with array of Employee object in body of request
|
|
1778
1842
|
# @param [Hash] opts the optional parameters
|
|
1779
1843
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
1844
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1780
1845
|
# @return [Array<(Employees, Integer, Hash)>] Employees data, response status code and response headers
|
|
1781
1846
|
def create_employees_with_http_info(xero_tenant_id, employees, options = {})
|
|
1782
1847
|
opts = options.dup
|
|
@@ -1812,6 +1877,7 @@ module XeroRuby
|
|
|
1812
1877
|
# HTTP header 'Content-Type'
|
|
1813
1878
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1814
1879
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
1880
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
1815
1881
|
|
|
1816
1882
|
# form parameters
|
|
1817
1883
|
form_params = opts[:form_params] || {}
|
|
@@ -1846,6 +1912,7 @@ module XeroRuby
|
|
|
1846
1912
|
# @param expense_claim_id [String] Unique identifier for a ExpenseClaim
|
|
1847
1913
|
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
1848
1914
|
# @param [Hash] opts the optional parameters
|
|
1915
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1849
1916
|
# @return [HistoryRecords]
|
|
1850
1917
|
def create_expense_claim_history(xero_tenant_id, expense_claim_id, history_records, opts = {})
|
|
1851
1918
|
data, _status_code, _headers = create_expense_claim_history_with_http_info(xero_tenant_id, expense_claim_id, history_records, opts)
|
|
@@ -1857,6 +1924,7 @@ module XeroRuby
|
|
|
1857
1924
|
# @param expense_claim_id [String] Unique identifier for a ExpenseClaim
|
|
1858
1925
|
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
1859
1926
|
# @param [Hash] opts the optional parameters
|
|
1927
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1860
1928
|
# @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
|
|
1861
1929
|
def create_expense_claim_history_with_http_info(xero_tenant_id, expense_claim_id, history_records, options = {})
|
|
1862
1930
|
opts = options.dup
|
|
@@ -1895,6 +1963,7 @@ module XeroRuby
|
|
|
1895
1963
|
# HTTP header 'Content-Type'
|
|
1896
1964
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1897
1965
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
1966
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
1898
1967
|
|
|
1899
1968
|
# form parameters
|
|
1900
1969
|
form_params = opts[:form_params] || {}
|
|
@@ -1928,6 +1997,7 @@ module XeroRuby
|
|
|
1928
1997
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1929
1998
|
# @param expense_claims [ExpenseClaims] ExpenseClaims with array of ExpenseClaim object in body of request
|
|
1930
1999
|
# @param [Hash] opts the optional parameters
|
|
2000
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1931
2001
|
# @return [ExpenseClaims]
|
|
1932
2002
|
def create_expense_claims(xero_tenant_id, expense_claims, opts = {})
|
|
1933
2003
|
data, _status_code, _headers = create_expense_claims_with_http_info(xero_tenant_id, expense_claims, opts)
|
|
@@ -1938,6 +2008,7 @@ module XeroRuby
|
|
|
1938
2008
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1939
2009
|
# @param expense_claims [ExpenseClaims] ExpenseClaims with array of ExpenseClaim object in body of request
|
|
1940
2010
|
# @param [Hash] opts the optional parameters
|
|
2011
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1941
2012
|
# @return [Array<(ExpenseClaims, Integer, Hash)>] ExpenseClaims data, response status code and response headers
|
|
1942
2013
|
def create_expense_claims_with_http_info(xero_tenant_id, expense_claims, options = {})
|
|
1943
2014
|
opts = options.dup
|
|
@@ -1972,6 +2043,7 @@ module XeroRuby
|
|
|
1972
2043
|
# HTTP header 'Content-Type'
|
|
1973
2044
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1974
2045
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
2046
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
1975
2047
|
|
|
1976
2048
|
# form parameters
|
|
1977
2049
|
form_params = opts[:form_params] || {}
|
|
@@ -2008,6 +2080,7 @@ module XeroRuby
|
|
|
2008
2080
|
# @param body [String] Byte array of file in body of request
|
|
2009
2081
|
# @param [Hash] opts the optional parameters
|
|
2010
2082
|
# @option opts [Boolean] :include_online Allows an attachment to be seen by the end customer within their online invoice (default to false)
|
|
2083
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2011
2084
|
# @return [Attachments]
|
|
2012
2085
|
def create_invoice_attachment_by_file_name(xero_tenant_id, invoice_id, file_name, body, opts = {})
|
|
2013
2086
|
data, _status_code, _headers = create_invoice_attachment_by_file_name_with_http_info(xero_tenant_id, invoice_id, file_name, body, opts)
|
|
@@ -2021,6 +2094,7 @@ module XeroRuby
|
|
|
2021
2094
|
# @param body [String] Byte array of file in body of request
|
|
2022
2095
|
# @param [Hash] opts the optional parameters
|
|
2023
2096
|
# @option opts [Boolean] :include_online Allows an attachment to be seen by the end customer within their online invoice
|
|
2097
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2024
2098
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
|
2025
2099
|
def create_invoice_attachment_by_file_name_with_http_info(xero_tenant_id, invoice_id, file_name, body, options = {})
|
|
2026
2100
|
opts = options.dup
|
|
@@ -2064,6 +2138,7 @@ module XeroRuby
|
|
|
2064
2138
|
# HTTP header 'Content-Type'
|
|
2065
2139
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
|
2066
2140
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
2141
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
2067
2142
|
|
|
2068
2143
|
# form parameters
|
|
2069
2144
|
form_params = opts[:form_params] || {}
|
|
@@ -2098,6 +2173,7 @@ module XeroRuby
|
|
|
2098
2173
|
# @param invoice_id [String] Unique identifier for an Invoice
|
|
2099
2174
|
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
2100
2175
|
# @param [Hash] opts the optional parameters
|
|
2176
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2101
2177
|
# @return [HistoryRecords]
|
|
2102
2178
|
def create_invoice_history(xero_tenant_id, invoice_id, history_records, opts = {})
|
|
2103
2179
|
data, _status_code, _headers = create_invoice_history_with_http_info(xero_tenant_id, invoice_id, history_records, opts)
|
|
@@ -2109,6 +2185,7 @@ module XeroRuby
|
|
|
2109
2185
|
# @param invoice_id [String] Unique identifier for an Invoice
|
|
2110
2186
|
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
2111
2187
|
# @param [Hash] opts the optional parameters
|
|
2188
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2112
2189
|
# @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
|
|
2113
2190
|
def create_invoice_history_with_http_info(xero_tenant_id, invoice_id, history_records, options = {})
|
|
2114
2191
|
opts = options.dup
|
|
@@ -2147,6 +2224,7 @@ module XeroRuby
|
|
|
2147
2224
|
# HTTP header 'Content-Type'
|
|
2148
2225
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
2149
2226
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
2227
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
2150
2228
|
|
|
2151
2229
|
# form parameters
|
|
2152
2230
|
form_params = opts[:form_params] || {}
|
|
@@ -2182,6 +2260,7 @@ module XeroRuby
|
|
|
2182
2260
|
# @param [Hash] opts the optional parameters
|
|
2183
2261
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
2184
2262
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
2263
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2185
2264
|
# @return [Invoices]
|
|
2186
2265
|
def create_invoices(xero_tenant_id, invoices, opts = {})
|
|
2187
2266
|
data, _status_code, _headers = create_invoices_with_http_info(xero_tenant_id, invoices, opts)
|
|
@@ -2194,6 +2273,7 @@ module XeroRuby
|
|
|
2194
2273
|
# @param [Hash] opts the optional parameters
|
|
2195
2274
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
2196
2275
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
2276
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2197
2277
|
# @return [Array<(Invoices, Integer, Hash)>] Invoices data, response status code and response headers
|
|
2198
2278
|
def create_invoices_with_http_info(xero_tenant_id, invoices, options = {})
|
|
2199
2279
|
opts = options.dup
|
|
@@ -2230,6 +2310,7 @@ module XeroRuby
|
|
|
2230
2310
|
# HTTP header 'Content-Type'
|
|
2231
2311
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
2232
2312
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
2313
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
2233
2314
|
|
|
2234
2315
|
# form parameters
|
|
2235
2316
|
form_params = opts[:form_params] || {}
|
|
@@ -2264,6 +2345,7 @@ module XeroRuby
|
|
|
2264
2345
|
# @param item_id [String] Unique identifier for an Item
|
|
2265
2346
|
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
2266
2347
|
# @param [Hash] opts the optional parameters
|
|
2348
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2267
2349
|
# @return [HistoryRecords]
|
|
2268
2350
|
def create_item_history(xero_tenant_id, item_id, history_records, opts = {})
|
|
2269
2351
|
data, _status_code, _headers = create_item_history_with_http_info(xero_tenant_id, item_id, history_records, opts)
|
|
@@ -2275,6 +2357,7 @@ module XeroRuby
|
|
|
2275
2357
|
# @param item_id [String] Unique identifier for an Item
|
|
2276
2358
|
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
2277
2359
|
# @param [Hash] opts the optional parameters
|
|
2360
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2278
2361
|
# @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
|
|
2279
2362
|
def create_item_history_with_http_info(xero_tenant_id, item_id, history_records, options = {})
|
|
2280
2363
|
opts = options.dup
|
|
@@ -2313,6 +2396,7 @@ module XeroRuby
|
|
|
2313
2396
|
# HTTP header 'Content-Type'
|
|
2314
2397
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
2315
2398
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
2399
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
2316
2400
|
|
|
2317
2401
|
# form parameters
|
|
2318
2402
|
form_params = opts[:form_params] || {}
|
|
@@ -2348,6 +2432,7 @@ module XeroRuby
|
|
|
2348
2432
|
# @param [Hash] opts the optional parameters
|
|
2349
2433
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
2350
2434
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
2435
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2351
2436
|
# @return [Items]
|
|
2352
2437
|
def create_items(xero_tenant_id, items, opts = {})
|
|
2353
2438
|
data, _status_code, _headers = create_items_with_http_info(xero_tenant_id, items, opts)
|
|
@@ -2360,6 +2445,7 @@ module XeroRuby
|
|
|
2360
2445
|
# @param [Hash] opts the optional parameters
|
|
2361
2446
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
2362
2447
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
2448
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2363
2449
|
# @return [Array<(Items, Integer, Hash)>] Items data, response status code and response headers
|
|
2364
2450
|
def create_items_with_http_info(xero_tenant_id, items, options = {})
|
|
2365
2451
|
opts = options.dup
|
|
@@ -2396,6 +2482,7 @@ module XeroRuby
|
|
|
2396
2482
|
# HTTP header 'Content-Type'
|
|
2397
2483
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
2398
2484
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
2485
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
2399
2486
|
|
|
2400
2487
|
# form parameters
|
|
2401
2488
|
form_params = opts[:form_params] || {}
|
|
@@ -2429,6 +2516,7 @@ module XeroRuby
|
|
|
2429
2516
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2430
2517
|
# @param linked_transaction [LinkedTransaction] LinkedTransaction object in body of request
|
|
2431
2518
|
# @param [Hash] opts the optional parameters
|
|
2519
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2432
2520
|
# @return [LinkedTransactions]
|
|
2433
2521
|
def create_linked_transaction(xero_tenant_id, linked_transaction, opts = {})
|
|
2434
2522
|
data, _status_code, _headers = create_linked_transaction_with_http_info(xero_tenant_id, linked_transaction, opts)
|
|
@@ -2439,6 +2527,7 @@ module XeroRuby
|
|
|
2439
2527
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2440
2528
|
# @param linked_transaction [LinkedTransaction] LinkedTransaction object in body of request
|
|
2441
2529
|
# @param [Hash] opts the optional parameters
|
|
2530
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2442
2531
|
# @return [Array<(LinkedTransactions, Integer, Hash)>] LinkedTransactions data, response status code and response headers
|
|
2443
2532
|
def create_linked_transaction_with_http_info(xero_tenant_id, linked_transaction, options = {})
|
|
2444
2533
|
opts = options.dup
|
|
@@ -2473,6 +2562,7 @@ module XeroRuby
|
|
|
2473
2562
|
# HTTP header 'Content-Type'
|
|
2474
2563
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
2475
2564
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
2565
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
2476
2566
|
|
|
2477
2567
|
# form parameters
|
|
2478
2568
|
form_params = opts[:form_params] || {}
|
|
@@ -2508,6 +2598,7 @@ module XeroRuby
|
|
|
2508
2598
|
# @param file_name [String] Name of the attachment
|
|
2509
2599
|
# @param body [String] Byte array of file in body of request
|
|
2510
2600
|
# @param [Hash] opts the optional parameters
|
|
2601
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2511
2602
|
# @return [Attachments]
|
|
2512
2603
|
def create_manual_journal_attachment_by_file_name(xero_tenant_id, manual_journal_id, file_name, body, opts = {})
|
|
2513
2604
|
data, _status_code, _headers = create_manual_journal_attachment_by_file_name_with_http_info(xero_tenant_id, manual_journal_id, file_name, body, opts)
|
|
@@ -2520,6 +2611,7 @@ module XeroRuby
|
|
|
2520
2611
|
# @param file_name [String] Name of the attachment
|
|
2521
2612
|
# @param body [String] Byte array of file in body of request
|
|
2522
2613
|
# @param [Hash] opts the optional parameters
|
|
2614
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2523
2615
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
|
2524
2616
|
def create_manual_journal_attachment_by_file_name_with_http_info(xero_tenant_id, manual_journal_id, file_name, body, options = {})
|
|
2525
2617
|
opts = options.dup
|
|
@@ -2562,6 +2654,7 @@ module XeroRuby
|
|
|
2562
2654
|
# HTTP header 'Content-Type'
|
|
2563
2655
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
|
2564
2656
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
2657
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
2565
2658
|
|
|
2566
2659
|
# form parameters
|
|
2567
2660
|
form_params = opts[:form_params] || {}
|
|
@@ -2596,6 +2689,7 @@ module XeroRuby
|
|
|
2596
2689
|
# @param manual_journal_id [String] Unique identifier for a ManualJournal
|
|
2597
2690
|
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
2598
2691
|
# @param [Hash] opts the optional parameters
|
|
2692
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2599
2693
|
# @return [HistoryRecords]
|
|
2600
2694
|
def create_manual_journal_history_record(xero_tenant_id, manual_journal_id, history_records, opts = {})
|
|
2601
2695
|
data, _status_code, _headers = create_manual_journal_history_record_with_http_info(xero_tenant_id, manual_journal_id, history_records, opts)
|
|
@@ -2607,6 +2701,7 @@ module XeroRuby
|
|
|
2607
2701
|
# @param manual_journal_id [String] Unique identifier for a ManualJournal
|
|
2608
2702
|
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
2609
2703
|
# @param [Hash] opts the optional parameters
|
|
2704
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2610
2705
|
# @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
|
|
2611
2706
|
def create_manual_journal_history_record_with_http_info(xero_tenant_id, manual_journal_id, history_records, options = {})
|
|
2612
2707
|
opts = options.dup
|
|
@@ -2645,6 +2740,7 @@ module XeroRuby
|
|
|
2645
2740
|
# HTTP header 'Content-Type'
|
|
2646
2741
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
2647
2742
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
2743
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
2648
2744
|
|
|
2649
2745
|
# form parameters
|
|
2650
2746
|
form_params = opts[:form_params] || {}
|
|
@@ -2679,6 +2775,7 @@ module XeroRuby
|
|
|
2679
2775
|
# @param manual_journals [ManualJournals] ManualJournals array with ManualJournal object in body of request
|
|
2680
2776
|
# @param [Hash] opts the optional parameters
|
|
2681
2777
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
2778
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2682
2779
|
# @return [ManualJournals]
|
|
2683
2780
|
def create_manual_journals(xero_tenant_id, manual_journals, opts = {})
|
|
2684
2781
|
data, _status_code, _headers = create_manual_journals_with_http_info(xero_tenant_id, manual_journals, opts)
|
|
@@ -2690,6 +2787,7 @@ module XeroRuby
|
|
|
2690
2787
|
# @param manual_journals [ManualJournals] ManualJournals array with ManualJournal object in body of request
|
|
2691
2788
|
# @param [Hash] opts the optional parameters
|
|
2692
2789
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
2790
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2693
2791
|
# @return [Array<(ManualJournals, Integer, Hash)>] ManualJournals data, response status code and response headers
|
|
2694
2792
|
def create_manual_journals_with_http_info(xero_tenant_id, manual_journals, options = {})
|
|
2695
2793
|
opts = options.dup
|
|
@@ -2725,6 +2823,7 @@ module XeroRuby
|
|
|
2725
2823
|
# HTTP header 'Content-Type'
|
|
2726
2824
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
2727
2825
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
2826
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
2728
2827
|
|
|
2729
2828
|
# form parameters
|
|
2730
2829
|
form_params = opts[:form_params] || {}
|
|
@@ -2760,6 +2859,7 @@ module XeroRuby
|
|
|
2760
2859
|
# @param allocations [Allocations] Allocations array with Allocation object in body of request
|
|
2761
2860
|
# @param [Hash] opts the optional parameters
|
|
2762
2861
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
2862
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2763
2863
|
# @return [Allocations]
|
|
2764
2864
|
def create_overpayment_allocations(xero_tenant_id, overpayment_id, allocations, opts = {})
|
|
2765
2865
|
data, _status_code, _headers = create_overpayment_allocations_with_http_info(xero_tenant_id, overpayment_id, allocations, opts)
|
|
@@ -2772,6 +2872,7 @@ module XeroRuby
|
|
|
2772
2872
|
# @param allocations [Allocations] Allocations array with Allocation object in body of request
|
|
2773
2873
|
# @param [Hash] opts the optional parameters
|
|
2774
2874
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
2875
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2775
2876
|
# @return [Array<(Allocations, Integer, Hash)>] Allocations data, response status code and response headers
|
|
2776
2877
|
def create_overpayment_allocations_with_http_info(xero_tenant_id, overpayment_id, allocations, options = {})
|
|
2777
2878
|
opts = options.dup
|
|
@@ -2811,6 +2912,7 @@ module XeroRuby
|
|
|
2811
2912
|
# HTTP header 'Content-Type'
|
|
2812
2913
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
2813
2914
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
2915
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
2814
2916
|
|
|
2815
2917
|
# form parameters
|
|
2816
2918
|
form_params = opts[:form_params] || {}
|
|
@@ -2845,6 +2947,7 @@ module XeroRuby
|
|
|
2845
2947
|
# @param overpayment_id [String] Unique identifier for a Overpayment
|
|
2846
2948
|
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
2847
2949
|
# @param [Hash] opts the optional parameters
|
|
2950
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2848
2951
|
# @return [HistoryRecords]
|
|
2849
2952
|
def create_overpayment_history(xero_tenant_id, overpayment_id, history_records, opts = {})
|
|
2850
2953
|
data, _status_code, _headers = create_overpayment_history_with_http_info(xero_tenant_id, overpayment_id, history_records, opts)
|
|
@@ -2856,6 +2959,7 @@ module XeroRuby
|
|
|
2856
2959
|
# @param overpayment_id [String] Unique identifier for a Overpayment
|
|
2857
2960
|
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
2858
2961
|
# @param [Hash] opts the optional parameters
|
|
2962
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2859
2963
|
# @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
|
|
2860
2964
|
def create_overpayment_history_with_http_info(xero_tenant_id, overpayment_id, history_records, options = {})
|
|
2861
2965
|
opts = options.dup
|
|
@@ -2894,6 +2998,7 @@ module XeroRuby
|
|
|
2894
2998
|
# HTTP header 'Content-Type'
|
|
2895
2999
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
2896
3000
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
3001
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
2897
3002
|
|
|
2898
3003
|
# form parameters
|
|
2899
3004
|
form_params = opts[:form_params] || {}
|
|
@@ -2927,6 +3032,7 @@ module XeroRuby
|
|
|
2927
3032
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2928
3033
|
# @param payment [Payment] Request body with a single Payment object
|
|
2929
3034
|
# @param [Hash] opts the optional parameters
|
|
3035
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2930
3036
|
# @return [Payments]
|
|
2931
3037
|
def create_payment(xero_tenant_id, payment, opts = {})
|
|
2932
3038
|
data, _status_code, _headers = create_payment_with_http_info(xero_tenant_id, payment, opts)
|
|
@@ -2937,6 +3043,7 @@ module XeroRuby
|
|
|
2937
3043
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2938
3044
|
# @param payment [Payment] Request body with a single Payment object
|
|
2939
3045
|
# @param [Hash] opts the optional parameters
|
|
3046
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2940
3047
|
# @return [Array<(Payments, Integer, Hash)>] Payments data, response status code and response headers
|
|
2941
3048
|
def create_payment_with_http_info(xero_tenant_id, payment, options = {})
|
|
2942
3049
|
opts = options.dup
|
|
@@ -2971,6 +3078,7 @@ module XeroRuby
|
|
|
2971
3078
|
# HTTP header 'Content-Type'
|
|
2972
3079
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
2973
3080
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
3081
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
2974
3082
|
|
|
2975
3083
|
# form parameters
|
|
2976
3084
|
form_params = opts[:form_params] || {}
|
|
@@ -3005,6 +3113,7 @@ module XeroRuby
|
|
|
3005
3113
|
# @param payment_id [String] Unique identifier for a Payment
|
|
3006
3114
|
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
3007
3115
|
# @param [Hash] opts the optional parameters
|
|
3116
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3008
3117
|
# @return [HistoryRecords]
|
|
3009
3118
|
def create_payment_history(xero_tenant_id, payment_id, history_records, opts = {})
|
|
3010
3119
|
data, _status_code, _headers = create_payment_history_with_http_info(xero_tenant_id, payment_id, history_records, opts)
|
|
@@ -3016,6 +3125,7 @@ module XeroRuby
|
|
|
3016
3125
|
# @param payment_id [String] Unique identifier for a Payment
|
|
3017
3126
|
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
3018
3127
|
# @param [Hash] opts the optional parameters
|
|
3128
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3019
3129
|
# @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
|
|
3020
3130
|
def create_payment_history_with_http_info(xero_tenant_id, payment_id, history_records, options = {})
|
|
3021
3131
|
opts = options.dup
|
|
@@ -3054,6 +3164,7 @@ module XeroRuby
|
|
|
3054
3164
|
# HTTP header 'Content-Type'
|
|
3055
3165
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
3056
3166
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
3167
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
3057
3168
|
|
|
3058
3169
|
# form parameters
|
|
3059
3170
|
form_params = opts[:form_params] || {}
|
|
@@ -3087,6 +3198,7 @@ module XeroRuby
|
|
|
3087
3198
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3088
3199
|
# @param payment_services [PaymentServices] PaymentServices array with PaymentService object in body of request
|
|
3089
3200
|
# @param [Hash] opts the optional parameters
|
|
3201
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3090
3202
|
# @return [PaymentServices]
|
|
3091
3203
|
def create_payment_service(xero_tenant_id, payment_services, opts = {})
|
|
3092
3204
|
data, _status_code, _headers = create_payment_service_with_http_info(xero_tenant_id, payment_services, opts)
|
|
@@ -3097,6 +3209,7 @@ module XeroRuby
|
|
|
3097
3209
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3098
3210
|
# @param payment_services [PaymentServices] PaymentServices array with PaymentService object in body of request
|
|
3099
3211
|
# @param [Hash] opts the optional parameters
|
|
3212
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3100
3213
|
# @return [Array<(PaymentServices, Integer, Hash)>] PaymentServices data, response status code and response headers
|
|
3101
3214
|
def create_payment_service_with_http_info(xero_tenant_id, payment_services, options = {})
|
|
3102
3215
|
opts = options.dup
|
|
@@ -3131,6 +3244,7 @@ module XeroRuby
|
|
|
3131
3244
|
# HTTP header 'Content-Type'
|
|
3132
3245
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
3133
3246
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
3247
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
3134
3248
|
|
|
3135
3249
|
# form parameters
|
|
3136
3250
|
form_params = opts[:form_params] || {}
|
|
@@ -3165,6 +3279,7 @@ module XeroRuby
|
|
|
3165
3279
|
# @param payments [Payments] Payments array with Payment object in body of request
|
|
3166
3280
|
# @param [Hash] opts the optional parameters
|
|
3167
3281
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
3282
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3168
3283
|
# @return [Payments]
|
|
3169
3284
|
def create_payments(xero_tenant_id, payments, opts = {})
|
|
3170
3285
|
data, _status_code, _headers = create_payments_with_http_info(xero_tenant_id, payments, opts)
|
|
@@ -3176,6 +3291,7 @@ module XeroRuby
|
|
|
3176
3291
|
# @param payments [Payments] Payments array with Payment object in body of request
|
|
3177
3292
|
# @param [Hash] opts the optional parameters
|
|
3178
3293
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
3294
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3179
3295
|
# @return [Array<(Payments, Integer, Hash)>] Payments data, response status code and response headers
|
|
3180
3296
|
def create_payments_with_http_info(xero_tenant_id, payments, options = {})
|
|
3181
3297
|
opts = options.dup
|
|
@@ -3211,6 +3327,7 @@ module XeroRuby
|
|
|
3211
3327
|
# HTTP header 'Content-Type'
|
|
3212
3328
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
3213
3329
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
3330
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
3214
3331
|
|
|
3215
3332
|
# form parameters
|
|
3216
3333
|
form_params = opts[:form_params] || {}
|
|
@@ -3246,6 +3363,7 @@ module XeroRuby
|
|
|
3246
3363
|
# @param allocations [Allocations] Allocations with an array of Allocation object in body of request
|
|
3247
3364
|
# @param [Hash] opts the optional parameters
|
|
3248
3365
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
3366
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3249
3367
|
# @return [Allocations]
|
|
3250
3368
|
def create_prepayment_allocations(xero_tenant_id, prepayment_id, allocations, opts = {})
|
|
3251
3369
|
data, _status_code, _headers = create_prepayment_allocations_with_http_info(xero_tenant_id, prepayment_id, allocations, opts)
|
|
@@ -3258,6 +3376,7 @@ module XeroRuby
|
|
|
3258
3376
|
# @param allocations [Allocations] Allocations with an array of Allocation object in body of request
|
|
3259
3377
|
# @param [Hash] opts the optional parameters
|
|
3260
3378
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
3379
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3261
3380
|
# @return [Array<(Allocations, Integer, Hash)>] Allocations data, response status code and response headers
|
|
3262
3381
|
def create_prepayment_allocations_with_http_info(xero_tenant_id, prepayment_id, allocations, options = {})
|
|
3263
3382
|
opts = options.dup
|
|
@@ -3297,6 +3416,7 @@ module XeroRuby
|
|
|
3297
3416
|
# HTTP header 'Content-Type'
|
|
3298
3417
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
3299
3418
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
3419
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
3300
3420
|
|
|
3301
3421
|
# form parameters
|
|
3302
3422
|
form_params = opts[:form_params] || {}
|
|
@@ -3331,6 +3451,7 @@ module XeroRuby
|
|
|
3331
3451
|
# @param prepayment_id [String] Unique identifier for a PrePayment
|
|
3332
3452
|
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
3333
3453
|
# @param [Hash] opts the optional parameters
|
|
3454
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3334
3455
|
# @return [HistoryRecords]
|
|
3335
3456
|
def create_prepayment_history(xero_tenant_id, prepayment_id, history_records, opts = {})
|
|
3336
3457
|
data, _status_code, _headers = create_prepayment_history_with_http_info(xero_tenant_id, prepayment_id, history_records, opts)
|
|
@@ -3342,6 +3463,7 @@ module XeroRuby
|
|
|
3342
3463
|
# @param prepayment_id [String] Unique identifier for a PrePayment
|
|
3343
3464
|
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
3344
3465
|
# @param [Hash] opts the optional parameters
|
|
3466
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3345
3467
|
# @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
|
|
3346
3468
|
def create_prepayment_history_with_http_info(xero_tenant_id, prepayment_id, history_records, options = {})
|
|
3347
3469
|
opts = options.dup
|
|
@@ -3380,6 +3502,7 @@ module XeroRuby
|
|
|
3380
3502
|
# HTTP header 'Content-Type'
|
|
3381
3503
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
3382
3504
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
3505
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
3383
3506
|
|
|
3384
3507
|
# form parameters
|
|
3385
3508
|
form_params = opts[:form_params] || {}
|
|
@@ -3415,6 +3538,7 @@ module XeroRuby
|
|
|
3415
3538
|
# @param file_name [String] Name of the attachment
|
|
3416
3539
|
# @param body [String] Byte array of file in body of request
|
|
3417
3540
|
# @param [Hash] opts the optional parameters
|
|
3541
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3418
3542
|
# @return [Attachments]
|
|
3419
3543
|
def create_purchase_order_attachment_by_file_name(xero_tenant_id, purchase_order_id, file_name, body, opts = {})
|
|
3420
3544
|
data, _status_code, _headers = create_purchase_order_attachment_by_file_name_with_http_info(xero_tenant_id, purchase_order_id, file_name, body, opts)
|
|
@@ -3427,6 +3551,7 @@ module XeroRuby
|
|
|
3427
3551
|
# @param file_name [String] Name of the attachment
|
|
3428
3552
|
# @param body [String] Byte array of file in body of request
|
|
3429
3553
|
# @param [Hash] opts the optional parameters
|
|
3554
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3430
3555
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
|
3431
3556
|
def create_purchase_order_attachment_by_file_name_with_http_info(xero_tenant_id, purchase_order_id, file_name, body, options = {})
|
|
3432
3557
|
opts = options.dup
|
|
@@ -3469,6 +3594,7 @@ module XeroRuby
|
|
|
3469
3594
|
# HTTP header 'Content-Type'
|
|
3470
3595
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
|
3471
3596
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
3597
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
3472
3598
|
|
|
3473
3599
|
# form parameters
|
|
3474
3600
|
form_params = opts[:form_params] || {}
|
|
@@ -3503,6 +3629,7 @@ module XeroRuby
|
|
|
3503
3629
|
# @param purchase_order_id [String] Unique identifier for an Purchase Order
|
|
3504
3630
|
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
3505
3631
|
# @param [Hash] opts the optional parameters
|
|
3632
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3506
3633
|
# @return [HistoryRecords]
|
|
3507
3634
|
def create_purchase_order_history(xero_tenant_id, purchase_order_id, history_records, opts = {})
|
|
3508
3635
|
data, _status_code, _headers = create_purchase_order_history_with_http_info(xero_tenant_id, purchase_order_id, history_records, opts)
|
|
@@ -3514,6 +3641,7 @@ module XeroRuby
|
|
|
3514
3641
|
# @param purchase_order_id [String] Unique identifier for an Purchase Order
|
|
3515
3642
|
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
3516
3643
|
# @param [Hash] opts the optional parameters
|
|
3644
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3517
3645
|
# @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
|
|
3518
3646
|
def create_purchase_order_history_with_http_info(xero_tenant_id, purchase_order_id, history_records, options = {})
|
|
3519
3647
|
opts = options.dup
|
|
@@ -3552,6 +3680,7 @@ module XeroRuby
|
|
|
3552
3680
|
# HTTP header 'Content-Type'
|
|
3553
3681
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
3554
3682
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
3683
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
3555
3684
|
|
|
3556
3685
|
# form parameters
|
|
3557
3686
|
form_params = opts[:form_params] || {}
|
|
@@ -3586,6 +3715,7 @@ module XeroRuby
|
|
|
3586
3715
|
# @param purchase_orders [PurchaseOrders] PurchaseOrders with an array of PurchaseOrder object in body of request
|
|
3587
3716
|
# @param [Hash] opts the optional parameters
|
|
3588
3717
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
3718
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3589
3719
|
# @return [PurchaseOrders]
|
|
3590
3720
|
def create_purchase_orders(xero_tenant_id, purchase_orders, opts = {})
|
|
3591
3721
|
data, _status_code, _headers = create_purchase_orders_with_http_info(xero_tenant_id, purchase_orders, opts)
|
|
@@ -3597,6 +3727,7 @@ module XeroRuby
|
|
|
3597
3727
|
# @param purchase_orders [PurchaseOrders] PurchaseOrders with an array of PurchaseOrder object in body of request
|
|
3598
3728
|
# @param [Hash] opts the optional parameters
|
|
3599
3729
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
3730
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3600
3731
|
# @return [Array<(PurchaseOrders, Integer, Hash)>] PurchaseOrders data, response status code and response headers
|
|
3601
3732
|
def create_purchase_orders_with_http_info(xero_tenant_id, purchase_orders, options = {})
|
|
3602
3733
|
opts = options.dup
|
|
@@ -3632,6 +3763,7 @@ module XeroRuby
|
|
|
3632
3763
|
# HTTP header 'Content-Type'
|
|
3633
3764
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
3634
3765
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
3766
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
3635
3767
|
|
|
3636
3768
|
# form parameters
|
|
3637
3769
|
form_params = opts[:form_params] || {}
|
|
@@ -3667,6 +3799,7 @@ module XeroRuby
|
|
|
3667
3799
|
# @param file_name [String] Name of the attachment
|
|
3668
3800
|
# @param body [String] Byte array of file in body of request
|
|
3669
3801
|
# @param [Hash] opts the optional parameters
|
|
3802
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3670
3803
|
# @return [Attachments]
|
|
3671
3804
|
def create_quote_attachment_by_file_name(xero_tenant_id, quote_id, file_name, body, opts = {})
|
|
3672
3805
|
data, _status_code, _headers = create_quote_attachment_by_file_name_with_http_info(xero_tenant_id, quote_id, file_name, body, opts)
|
|
@@ -3679,6 +3812,7 @@ module XeroRuby
|
|
|
3679
3812
|
# @param file_name [String] Name of the attachment
|
|
3680
3813
|
# @param body [String] Byte array of file in body of request
|
|
3681
3814
|
# @param [Hash] opts the optional parameters
|
|
3815
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3682
3816
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
|
3683
3817
|
def create_quote_attachment_by_file_name_with_http_info(xero_tenant_id, quote_id, file_name, body, options = {})
|
|
3684
3818
|
opts = options.dup
|
|
@@ -3721,6 +3855,7 @@ module XeroRuby
|
|
|
3721
3855
|
# HTTP header 'Content-Type'
|
|
3722
3856
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
|
3723
3857
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
3858
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
3724
3859
|
|
|
3725
3860
|
# form parameters
|
|
3726
3861
|
form_params = opts[:form_params] || {}
|
|
@@ -3755,6 +3890,7 @@ module XeroRuby
|
|
|
3755
3890
|
# @param quote_id [String] Unique identifier for an Quote
|
|
3756
3891
|
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
3757
3892
|
# @param [Hash] opts the optional parameters
|
|
3893
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3758
3894
|
# @return [HistoryRecords]
|
|
3759
3895
|
def create_quote_history(xero_tenant_id, quote_id, history_records, opts = {})
|
|
3760
3896
|
data, _status_code, _headers = create_quote_history_with_http_info(xero_tenant_id, quote_id, history_records, opts)
|
|
@@ -3766,6 +3902,7 @@ module XeroRuby
|
|
|
3766
3902
|
# @param quote_id [String] Unique identifier for an Quote
|
|
3767
3903
|
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
3768
3904
|
# @param [Hash] opts the optional parameters
|
|
3905
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3769
3906
|
# @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
|
|
3770
3907
|
def create_quote_history_with_http_info(xero_tenant_id, quote_id, history_records, options = {})
|
|
3771
3908
|
opts = options.dup
|
|
@@ -3804,6 +3941,7 @@ module XeroRuby
|
|
|
3804
3941
|
# HTTP header 'Content-Type'
|
|
3805
3942
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
3806
3943
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
3944
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
3807
3945
|
|
|
3808
3946
|
# form parameters
|
|
3809
3947
|
form_params = opts[:form_params] || {}
|
|
@@ -3838,6 +3976,7 @@ module XeroRuby
|
|
|
3838
3976
|
# @param quotes [Quotes] Quotes with an array of Quote object in body of request
|
|
3839
3977
|
# @param [Hash] opts the optional parameters
|
|
3840
3978
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
3979
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3841
3980
|
# @return [Quotes]
|
|
3842
3981
|
def create_quotes(xero_tenant_id, quotes, opts = {})
|
|
3843
3982
|
data, _status_code, _headers = create_quotes_with_http_info(xero_tenant_id, quotes, opts)
|
|
@@ -3849,6 +3988,7 @@ module XeroRuby
|
|
|
3849
3988
|
# @param quotes [Quotes] Quotes with an array of Quote object in body of request
|
|
3850
3989
|
# @param [Hash] opts the optional parameters
|
|
3851
3990
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
3991
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3852
3992
|
# @return [Array<(Quotes, Integer, Hash)>] Quotes data, response status code and response headers
|
|
3853
3993
|
def create_quotes_with_http_info(xero_tenant_id, quotes, options = {})
|
|
3854
3994
|
opts = options.dup
|
|
@@ -3884,6 +4024,7 @@ module XeroRuby
|
|
|
3884
4024
|
# HTTP header 'Content-Type'
|
|
3885
4025
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
3886
4026
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
4027
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
3887
4028
|
|
|
3888
4029
|
# form parameters
|
|
3889
4030
|
form_params = opts[:form_params] || {}
|
|
@@ -3918,6 +4059,7 @@ module XeroRuby
|
|
|
3918
4059
|
# @param receipts [Receipts] Receipts with an array of Receipt object in body of request
|
|
3919
4060
|
# @param [Hash] opts the optional parameters
|
|
3920
4061
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
4062
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3921
4063
|
# @return [Receipts]
|
|
3922
4064
|
def create_receipt(xero_tenant_id, receipts, opts = {})
|
|
3923
4065
|
data, _status_code, _headers = create_receipt_with_http_info(xero_tenant_id, receipts, opts)
|
|
@@ -3929,6 +4071,7 @@ module XeroRuby
|
|
|
3929
4071
|
# @param receipts [Receipts] Receipts with an array of Receipt object in body of request
|
|
3930
4072
|
# @param [Hash] opts the optional parameters
|
|
3931
4073
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
4074
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3932
4075
|
# @return [Array<(Receipts, Integer, Hash)>] Receipts data, response status code and response headers
|
|
3933
4076
|
def create_receipt_with_http_info(xero_tenant_id, receipts, options = {})
|
|
3934
4077
|
opts = options.dup
|
|
@@ -3964,6 +4107,7 @@ module XeroRuby
|
|
|
3964
4107
|
# HTTP header 'Content-Type'
|
|
3965
4108
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
3966
4109
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
4110
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
3967
4111
|
|
|
3968
4112
|
# form parameters
|
|
3969
4113
|
form_params = opts[:form_params] || {}
|
|
@@ -3999,6 +4143,7 @@ module XeroRuby
|
|
|
3999
4143
|
# @param file_name [String] Name of the attachment
|
|
4000
4144
|
# @param body [String] Byte array of file in body of request
|
|
4001
4145
|
# @param [Hash] opts the optional parameters
|
|
4146
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
4002
4147
|
# @return [Attachments]
|
|
4003
4148
|
def create_receipt_attachment_by_file_name(xero_tenant_id, receipt_id, file_name, body, opts = {})
|
|
4004
4149
|
data, _status_code, _headers = create_receipt_attachment_by_file_name_with_http_info(xero_tenant_id, receipt_id, file_name, body, opts)
|
|
@@ -4011,6 +4156,7 @@ module XeroRuby
|
|
|
4011
4156
|
# @param file_name [String] Name of the attachment
|
|
4012
4157
|
# @param body [String] Byte array of file in body of request
|
|
4013
4158
|
# @param [Hash] opts the optional parameters
|
|
4159
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
4014
4160
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
|
4015
4161
|
def create_receipt_attachment_by_file_name_with_http_info(xero_tenant_id, receipt_id, file_name, body, options = {})
|
|
4016
4162
|
opts = options.dup
|
|
@@ -4053,6 +4199,7 @@ module XeroRuby
|
|
|
4053
4199
|
# HTTP header 'Content-Type'
|
|
4054
4200
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
|
4055
4201
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
4202
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
4056
4203
|
|
|
4057
4204
|
# form parameters
|
|
4058
4205
|
form_params = opts[:form_params] || {}
|
|
@@ -4087,6 +4234,7 @@ module XeroRuby
|
|
|
4087
4234
|
# @param receipt_id [String] Unique identifier for a Receipt
|
|
4088
4235
|
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
4089
4236
|
# @param [Hash] opts the optional parameters
|
|
4237
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
4090
4238
|
# @return [HistoryRecords]
|
|
4091
4239
|
def create_receipt_history(xero_tenant_id, receipt_id, history_records, opts = {})
|
|
4092
4240
|
data, _status_code, _headers = create_receipt_history_with_http_info(xero_tenant_id, receipt_id, history_records, opts)
|
|
@@ -4098,6 +4246,7 @@ module XeroRuby
|
|
|
4098
4246
|
# @param receipt_id [String] Unique identifier for a Receipt
|
|
4099
4247
|
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
4100
4248
|
# @param [Hash] opts the optional parameters
|
|
4249
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
4101
4250
|
# @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
|
|
4102
4251
|
def create_receipt_history_with_http_info(xero_tenant_id, receipt_id, history_records, options = {})
|
|
4103
4252
|
opts = options.dup
|
|
@@ -4136,6 +4285,7 @@ module XeroRuby
|
|
|
4136
4285
|
# HTTP header 'Content-Type'
|
|
4137
4286
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
4138
4287
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
4288
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
4139
4289
|
|
|
4140
4290
|
# form parameters
|
|
4141
4291
|
form_params = opts[:form_params] || {}
|
|
@@ -4171,6 +4321,7 @@ module XeroRuby
|
|
|
4171
4321
|
# @param file_name [String] Name of the attachment
|
|
4172
4322
|
# @param body [String] Byte array of file in body of request
|
|
4173
4323
|
# @param [Hash] opts the optional parameters
|
|
4324
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
4174
4325
|
# @return [Attachments]
|
|
4175
4326
|
def create_repeating_invoice_attachment_by_file_name(xero_tenant_id, repeating_invoice_id, file_name, body, opts = {})
|
|
4176
4327
|
data, _status_code, _headers = create_repeating_invoice_attachment_by_file_name_with_http_info(xero_tenant_id, repeating_invoice_id, file_name, body, opts)
|
|
@@ -4183,6 +4334,7 @@ module XeroRuby
|
|
|
4183
4334
|
# @param file_name [String] Name of the attachment
|
|
4184
4335
|
# @param body [String] Byte array of file in body of request
|
|
4185
4336
|
# @param [Hash] opts the optional parameters
|
|
4337
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
4186
4338
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
|
4187
4339
|
def create_repeating_invoice_attachment_by_file_name_with_http_info(xero_tenant_id, repeating_invoice_id, file_name, body, options = {})
|
|
4188
4340
|
opts = options.dup
|
|
@@ -4225,6 +4377,7 @@ module XeroRuby
|
|
|
4225
4377
|
# HTTP header 'Content-Type'
|
|
4226
4378
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
|
4227
4379
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
4380
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
4228
4381
|
|
|
4229
4382
|
# form parameters
|
|
4230
4383
|
form_params = opts[:form_params] || {}
|
|
@@ -4259,6 +4412,7 @@ module XeroRuby
|
|
|
4259
4412
|
# @param repeating_invoice_id [String] Unique identifier for a Repeating Invoice
|
|
4260
4413
|
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
4261
4414
|
# @param [Hash] opts the optional parameters
|
|
4415
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
4262
4416
|
# @return [HistoryRecords]
|
|
4263
4417
|
def create_repeating_invoice_history(xero_tenant_id, repeating_invoice_id, history_records, opts = {})
|
|
4264
4418
|
data, _status_code, _headers = create_repeating_invoice_history_with_http_info(xero_tenant_id, repeating_invoice_id, history_records, opts)
|
|
@@ -4270,6 +4424,7 @@ module XeroRuby
|
|
|
4270
4424
|
# @param repeating_invoice_id [String] Unique identifier for a Repeating Invoice
|
|
4271
4425
|
# @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
4272
4426
|
# @param [Hash] opts the optional parameters
|
|
4427
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
4273
4428
|
# @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
|
|
4274
4429
|
def create_repeating_invoice_history_with_http_info(xero_tenant_id, repeating_invoice_id, history_records, options = {})
|
|
4275
4430
|
opts = options.dup
|
|
@@ -4308,6 +4463,7 @@ module XeroRuby
|
|
|
4308
4463
|
# HTTP header 'Content-Type'
|
|
4309
4464
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
4310
4465
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
4466
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
4311
4467
|
|
|
4312
4468
|
# form parameters
|
|
4313
4469
|
form_params = opts[:form_params] || {}
|
|
@@ -4342,6 +4498,7 @@ module XeroRuby
|
|
|
4342
4498
|
# @param repeating_invoices [RepeatingInvoices] RepeatingInvoices with an array of repeating invoice objects in body of request
|
|
4343
4499
|
# @param [Hash] opts the optional parameters
|
|
4344
4500
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
4501
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
4345
4502
|
# @return [RepeatingInvoices]
|
|
4346
4503
|
def create_repeating_invoices(xero_tenant_id, repeating_invoices, opts = {})
|
|
4347
4504
|
data, _status_code, _headers = create_repeating_invoices_with_http_info(xero_tenant_id, repeating_invoices, opts)
|
|
@@ -4353,6 +4510,7 @@ module XeroRuby
|
|
|
4353
4510
|
# @param repeating_invoices [RepeatingInvoices] RepeatingInvoices with an array of repeating invoice objects in body of request
|
|
4354
4511
|
# @param [Hash] opts the optional parameters
|
|
4355
4512
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
4513
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
4356
4514
|
# @return [Array<(RepeatingInvoices, Integer, Hash)>] RepeatingInvoices data, response status code and response headers
|
|
4357
4515
|
def create_repeating_invoices_with_http_info(xero_tenant_id, repeating_invoices, options = {})
|
|
4358
4516
|
opts = options.dup
|
|
@@ -4388,6 +4546,7 @@ module XeroRuby
|
|
|
4388
4546
|
# HTTP header 'Content-Type'
|
|
4389
4547
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
4390
4548
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
4549
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
4391
4550
|
|
|
4392
4551
|
# form parameters
|
|
4393
4552
|
form_params = opts[:form_params] || {}
|
|
@@ -4421,6 +4580,7 @@ module XeroRuby
|
|
|
4421
4580
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4422
4581
|
# @param tax_rates [TaxRates] TaxRates array with TaxRate object in body of request
|
|
4423
4582
|
# @param [Hash] opts the optional parameters
|
|
4583
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
4424
4584
|
# @return [TaxRates]
|
|
4425
4585
|
def create_tax_rates(xero_tenant_id, tax_rates, opts = {})
|
|
4426
4586
|
data, _status_code, _headers = create_tax_rates_with_http_info(xero_tenant_id, tax_rates, opts)
|
|
@@ -4431,6 +4591,7 @@ module XeroRuby
|
|
|
4431
4591
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4432
4592
|
# @param tax_rates [TaxRates] TaxRates array with TaxRate object in body of request
|
|
4433
4593
|
# @param [Hash] opts the optional parameters
|
|
4594
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
4434
4595
|
# @return [Array<(TaxRates, Integer, Hash)>] TaxRates data, response status code and response headers
|
|
4435
4596
|
def create_tax_rates_with_http_info(xero_tenant_id, tax_rates, options = {})
|
|
4436
4597
|
opts = options.dup
|
|
@@ -4465,6 +4626,7 @@ module XeroRuby
|
|
|
4465
4626
|
# HTTP header 'Content-Type'
|
|
4466
4627
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
4467
4628
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
4629
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
4468
4630
|
|
|
4469
4631
|
# form parameters
|
|
4470
4632
|
form_params = opts[:form_params] || {}
|
|
@@ -4498,6 +4660,7 @@ module XeroRuby
|
|
|
4498
4660
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4499
4661
|
# @param tracking_category [TrackingCategory] TrackingCategory object in body of request
|
|
4500
4662
|
# @param [Hash] opts the optional parameters
|
|
4663
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
4501
4664
|
# @return [TrackingCategories]
|
|
4502
4665
|
def create_tracking_category(xero_tenant_id, tracking_category, opts = {})
|
|
4503
4666
|
data, _status_code, _headers = create_tracking_category_with_http_info(xero_tenant_id, tracking_category, opts)
|
|
@@ -4508,6 +4671,7 @@ module XeroRuby
|
|
|
4508
4671
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4509
4672
|
# @param tracking_category [TrackingCategory] TrackingCategory object in body of request
|
|
4510
4673
|
# @param [Hash] opts the optional parameters
|
|
4674
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
4511
4675
|
# @return [Array<(TrackingCategories, Integer, Hash)>] TrackingCategories data, response status code and response headers
|
|
4512
4676
|
def create_tracking_category_with_http_info(xero_tenant_id, tracking_category, options = {})
|
|
4513
4677
|
opts = options.dup
|
|
@@ -4542,6 +4706,7 @@ module XeroRuby
|
|
|
4542
4706
|
# HTTP header 'Content-Type'
|
|
4543
4707
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
4544
4708
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
4709
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
4545
4710
|
|
|
4546
4711
|
# form parameters
|
|
4547
4712
|
form_params = opts[:form_params] || {}
|
|
@@ -4576,6 +4741,7 @@ module XeroRuby
|
|
|
4576
4741
|
# @param tracking_category_id [String] Unique identifier for a TrackingCategory
|
|
4577
4742
|
# @param tracking_option [TrackingOption] TrackingOption object in body of request
|
|
4578
4743
|
# @param [Hash] opts the optional parameters
|
|
4744
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
4579
4745
|
# @return [TrackingOptions]
|
|
4580
4746
|
def create_tracking_options(xero_tenant_id, tracking_category_id, tracking_option, opts = {})
|
|
4581
4747
|
data, _status_code, _headers = create_tracking_options_with_http_info(xero_tenant_id, tracking_category_id, tracking_option, opts)
|
|
@@ -4587,6 +4753,7 @@ module XeroRuby
|
|
|
4587
4753
|
# @param tracking_category_id [String] Unique identifier for a TrackingCategory
|
|
4588
4754
|
# @param tracking_option [TrackingOption] TrackingOption object in body of request
|
|
4589
4755
|
# @param [Hash] opts the optional parameters
|
|
4756
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
4590
4757
|
# @return [Array<(TrackingOptions, Integer, Hash)>] TrackingOptions data, response status code and response headers
|
|
4591
4758
|
def create_tracking_options_with_http_info(xero_tenant_id, tracking_category_id, tracking_option, options = {})
|
|
4592
4759
|
opts = options.dup
|
|
@@ -4625,6 +4792,7 @@ module XeroRuby
|
|
|
4625
4792
|
# HTTP header 'Content-Type'
|
|
4626
4793
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
4627
4794
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
4795
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
4628
4796
|
|
|
4629
4797
|
# form parameters
|
|
4630
4798
|
form_params = opts[:form_params] || {}
|
|
@@ -4733,6 +4901,7 @@ module XeroRuby
|
|
|
4733
4901
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4734
4902
|
# @param batch_payment_delete [BatchPaymentDelete]
|
|
4735
4903
|
# @param [Hash] opts the optional parameters
|
|
4904
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
4736
4905
|
# @return [BatchPayments]
|
|
4737
4906
|
def delete_batch_payment(xero_tenant_id, batch_payment_delete, opts = {})
|
|
4738
4907
|
data, _status_code, _headers = delete_batch_payment_with_http_info(xero_tenant_id, batch_payment_delete, opts)
|
|
@@ -4743,6 +4912,7 @@ module XeroRuby
|
|
|
4743
4912
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4744
4913
|
# @param batch_payment_delete [BatchPaymentDelete]
|
|
4745
4914
|
# @param [Hash] opts the optional parameters
|
|
4915
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
4746
4916
|
# @return [Array<(BatchPayments, Integer, Hash)>] BatchPayments data, response status code and response headers
|
|
4747
4917
|
def delete_batch_payment_with_http_info(xero_tenant_id, batch_payment_delete, options = {})
|
|
4748
4918
|
opts = options.dup
|
|
@@ -4777,6 +4947,7 @@ module XeroRuby
|
|
|
4777
4947
|
# HTTP header 'Content-Type'
|
|
4778
4948
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
4779
4949
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
4950
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
4780
4951
|
|
|
4781
4952
|
# form parameters
|
|
4782
4953
|
form_params = opts[:form_params] || {}
|
|
@@ -4811,6 +4982,7 @@ module XeroRuby
|
|
|
4811
4982
|
# @param batch_payment_id [String] Unique identifier for BatchPayment
|
|
4812
4983
|
# @param batch_payment_delete_by_url_param [BatchPaymentDeleteByUrlParam]
|
|
4813
4984
|
# @param [Hash] opts the optional parameters
|
|
4985
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
4814
4986
|
# @return [BatchPayments]
|
|
4815
4987
|
def delete_batch_payment_by_url_param(xero_tenant_id, batch_payment_id, batch_payment_delete_by_url_param, opts = {})
|
|
4816
4988
|
data, _status_code, _headers = delete_batch_payment_by_url_param_with_http_info(xero_tenant_id, batch_payment_id, batch_payment_delete_by_url_param, opts)
|
|
@@ -4822,6 +4994,7 @@ module XeroRuby
|
|
|
4822
4994
|
# @param batch_payment_id [String] Unique identifier for BatchPayment
|
|
4823
4995
|
# @param batch_payment_delete_by_url_param [BatchPaymentDeleteByUrlParam]
|
|
4824
4996
|
# @param [Hash] opts the optional parameters
|
|
4997
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
4825
4998
|
# @return [Array<(BatchPayments, Integer, Hash)>] BatchPayments data, response status code and response headers
|
|
4826
4999
|
def delete_batch_payment_by_url_param_with_http_info(xero_tenant_id, batch_payment_id, batch_payment_delete_by_url_param, options = {})
|
|
4827
5000
|
opts = options.dup
|
|
@@ -4860,6 +5033,7 @@ module XeroRuby
|
|
|
4860
5033
|
# HTTP header 'Content-Type'
|
|
4861
5034
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
4862
5035
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
5036
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
4863
5037
|
|
|
4864
5038
|
# form parameters
|
|
4865
5039
|
form_params = opts[:form_params] || {}
|
|
@@ -5043,6 +5217,87 @@ module XeroRuby
|
|
|
5043
5217
|
return data, status_code, headers
|
|
5044
5218
|
end
|
|
5045
5219
|
|
|
5220
|
+
# Deletes an Allocation from a Credit Note
|
|
5221
|
+
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
5222
|
+
# @param credit_note_id [String] Unique identifier for a Credit Note
|
|
5223
|
+
# @param allocation_id [String] Unique identifier for Allocation object
|
|
5224
|
+
# @param [Hash] opts the optional parameters
|
|
5225
|
+
# @return [Allocation]
|
|
5226
|
+
def delete_credit_note_allocations(xero_tenant_id, credit_note_id, allocation_id, opts = {})
|
|
5227
|
+
data, _status_code, _headers = delete_credit_note_allocations_with_http_info(xero_tenant_id, credit_note_id, allocation_id, opts)
|
|
5228
|
+
data
|
|
5229
|
+
end
|
|
5230
|
+
|
|
5231
|
+
# Deletes an Allocation from a Credit Note
|
|
5232
|
+
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
5233
|
+
# @param credit_note_id [String] Unique identifier for a Credit Note
|
|
5234
|
+
# @param allocation_id [String] Unique identifier for Allocation object
|
|
5235
|
+
# @param [Hash] opts the optional parameters
|
|
5236
|
+
# @return [Array<(Allocation, Integer, Hash)>] Allocation data, response status code and response headers
|
|
5237
|
+
def delete_credit_note_allocations_with_http_info(xero_tenant_id, credit_note_id, allocation_id, options = {})
|
|
5238
|
+
opts = options.dup
|
|
5239
|
+
if @api_client.config.debugging
|
|
5240
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.delete_credit_note_allocations ...'
|
|
5241
|
+
end
|
|
5242
|
+
# verify the required parameter 'xero_tenant_id' is set
|
|
5243
|
+
if @api_client.config.client_side_validation && xero_tenant_id.nil?
|
|
5244
|
+
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.delete_credit_note_allocations"
|
|
5245
|
+
end
|
|
5246
|
+
# verify the required parameter 'credit_note_id' is set
|
|
5247
|
+
if @api_client.config.client_side_validation && credit_note_id.nil?
|
|
5248
|
+
fail ArgumentError, "Missing the required parameter 'credit_note_id' when calling AccountingApi.delete_credit_note_allocations"
|
|
5249
|
+
end
|
|
5250
|
+
# verify the required parameter 'allocation_id' is set
|
|
5251
|
+
if @api_client.config.client_side_validation && allocation_id.nil?
|
|
5252
|
+
fail ArgumentError, "Missing the required parameter 'allocation_id' when calling AccountingApi.delete_credit_note_allocations"
|
|
5253
|
+
end
|
|
5254
|
+
# resource path
|
|
5255
|
+
local_var_path = '/CreditNotes/{CreditNoteID}/Allocations/{AllocationID}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s).sub('{' + 'AllocationID' + '}', allocation_id.to_s)
|
|
5256
|
+
|
|
5257
|
+
# camelize keys of incoming `where` opts
|
|
5258
|
+
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
5259
|
+
|
|
5260
|
+
# query parameters
|
|
5261
|
+
query_params = opts[:query_params] || {}
|
|
5262
|
+
|
|
5263
|
+
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
|
5264
|
+
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
|
5265
|
+
query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
|
|
5266
|
+
|
|
5267
|
+
# header parameters
|
|
5268
|
+
header_params = opts[:header_params] || {}
|
|
5269
|
+
# HTTP header 'Accept' (if needed)
|
|
5270
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
5271
|
+
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
5272
|
+
|
|
5273
|
+
# form parameters
|
|
5274
|
+
form_params = opts[:form_params] || {}
|
|
5275
|
+
|
|
5276
|
+
# http body (model)
|
|
5277
|
+
post_body = opts[:body]
|
|
5278
|
+
|
|
5279
|
+
# return_type
|
|
5280
|
+
return_type = opts[:return_type] || 'Allocation'
|
|
5281
|
+
|
|
5282
|
+
# auth_names
|
|
5283
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
|
5284
|
+
|
|
5285
|
+
new_options = opts.merge(
|
|
5286
|
+
:header_params => header_params,
|
|
5287
|
+
:query_params => query_params,
|
|
5288
|
+
:form_params => form_params,
|
|
5289
|
+
:body => post_body,
|
|
5290
|
+
:auth_names => auth_names,
|
|
5291
|
+
:return_type => return_type
|
|
5292
|
+
)
|
|
5293
|
+
|
|
5294
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, "AccountingApi", new_options)
|
|
5295
|
+
if @api_client.config.debugging
|
|
5296
|
+
@api_client.config.logger.debug "API called: AccountingApi#delete_credit_note_allocations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
5297
|
+
end
|
|
5298
|
+
return data, status_code, headers
|
|
5299
|
+
end
|
|
5300
|
+
|
|
5046
5301
|
# Deletes a specific item
|
|
5047
5302
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
5048
5303
|
# @param item_id [String] Unique identifier for an Item
|
|
@@ -5193,11 +5448,93 @@ module XeroRuby
|
|
|
5193
5448
|
return data, status_code, headers
|
|
5194
5449
|
end
|
|
5195
5450
|
|
|
5451
|
+
# Deletes an Allocation from an overpayment
|
|
5452
|
+
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
5453
|
+
# @param overpayment_id [String] Unique identifier for a Overpayment
|
|
5454
|
+
# @param allocation_id [String] Unique identifier for Allocation object
|
|
5455
|
+
# @param [Hash] opts the optional parameters
|
|
5456
|
+
# @return [Allocation]
|
|
5457
|
+
def delete_overpayment_allocations(xero_tenant_id, overpayment_id, allocation_id, opts = {})
|
|
5458
|
+
data, _status_code, _headers = delete_overpayment_allocations_with_http_info(xero_tenant_id, overpayment_id, allocation_id, opts)
|
|
5459
|
+
data
|
|
5460
|
+
end
|
|
5461
|
+
|
|
5462
|
+
# Deletes an Allocation from an overpayment
|
|
5463
|
+
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
5464
|
+
# @param overpayment_id [String] Unique identifier for a Overpayment
|
|
5465
|
+
# @param allocation_id [String] Unique identifier for Allocation object
|
|
5466
|
+
# @param [Hash] opts the optional parameters
|
|
5467
|
+
# @return [Array<(Allocation, Integer, Hash)>] Allocation data, response status code and response headers
|
|
5468
|
+
def delete_overpayment_allocations_with_http_info(xero_tenant_id, overpayment_id, allocation_id, options = {})
|
|
5469
|
+
opts = options.dup
|
|
5470
|
+
if @api_client.config.debugging
|
|
5471
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.delete_overpayment_allocations ...'
|
|
5472
|
+
end
|
|
5473
|
+
# verify the required parameter 'xero_tenant_id' is set
|
|
5474
|
+
if @api_client.config.client_side_validation && xero_tenant_id.nil?
|
|
5475
|
+
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.delete_overpayment_allocations"
|
|
5476
|
+
end
|
|
5477
|
+
# verify the required parameter 'overpayment_id' is set
|
|
5478
|
+
if @api_client.config.client_side_validation && overpayment_id.nil?
|
|
5479
|
+
fail ArgumentError, "Missing the required parameter 'overpayment_id' when calling AccountingApi.delete_overpayment_allocations"
|
|
5480
|
+
end
|
|
5481
|
+
# verify the required parameter 'allocation_id' is set
|
|
5482
|
+
if @api_client.config.client_side_validation && allocation_id.nil?
|
|
5483
|
+
fail ArgumentError, "Missing the required parameter 'allocation_id' when calling AccountingApi.delete_overpayment_allocations"
|
|
5484
|
+
end
|
|
5485
|
+
# resource path
|
|
5486
|
+
local_var_path = '/Overpayments/{OverpaymentID}/Allocations/{AllocationID}'.sub('{' + 'OverpaymentID' + '}', overpayment_id.to_s).sub('{' + 'AllocationID' + '}', allocation_id.to_s)
|
|
5487
|
+
|
|
5488
|
+
# camelize keys of incoming `where` opts
|
|
5489
|
+
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
5490
|
+
|
|
5491
|
+
# query parameters
|
|
5492
|
+
query_params = opts[:query_params] || {}
|
|
5493
|
+
|
|
5494
|
+
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
|
5495
|
+
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
|
5496
|
+
query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
|
|
5497
|
+
|
|
5498
|
+
# header parameters
|
|
5499
|
+
header_params = opts[:header_params] || {}
|
|
5500
|
+
# HTTP header 'Accept' (if needed)
|
|
5501
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
5502
|
+
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
5503
|
+
|
|
5504
|
+
# form parameters
|
|
5505
|
+
form_params = opts[:form_params] || {}
|
|
5506
|
+
|
|
5507
|
+
# http body (model)
|
|
5508
|
+
post_body = opts[:body]
|
|
5509
|
+
|
|
5510
|
+
# return_type
|
|
5511
|
+
return_type = opts[:return_type] || 'Allocation'
|
|
5512
|
+
|
|
5513
|
+
# auth_names
|
|
5514
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
|
5515
|
+
|
|
5516
|
+
new_options = opts.merge(
|
|
5517
|
+
:header_params => header_params,
|
|
5518
|
+
:query_params => query_params,
|
|
5519
|
+
:form_params => form_params,
|
|
5520
|
+
:body => post_body,
|
|
5521
|
+
:auth_names => auth_names,
|
|
5522
|
+
:return_type => return_type
|
|
5523
|
+
)
|
|
5524
|
+
|
|
5525
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, "AccountingApi", new_options)
|
|
5526
|
+
if @api_client.config.debugging
|
|
5527
|
+
@api_client.config.logger.debug "API called: AccountingApi#delete_overpayment_allocations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
5528
|
+
end
|
|
5529
|
+
return data, status_code, headers
|
|
5530
|
+
end
|
|
5531
|
+
|
|
5196
5532
|
# Updates a specific payment for invoices and credit notes
|
|
5197
5533
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
5198
5534
|
# @param payment_id [String] Unique identifier for a Payment
|
|
5199
5535
|
# @param payment_delete [PaymentDelete]
|
|
5200
5536
|
# @param [Hash] opts the optional parameters
|
|
5537
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
5201
5538
|
# @return [Payments]
|
|
5202
5539
|
def delete_payment(xero_tenant_id, payment_id, payment_delete, opts = {})
|
|
5203
5540
|
data, _status_code, _headers = delete_payment_with_http_info(xero_tenant_id, payment_id, payment_delete, opts)
|
|
@@ -5209,6 +5546,7 @@ module XeroRuby
|
|
|
5209
5546
|
# @param payment_id [String] Unique identifier for a Payment
|
|
5210
5547
|
# @param payment_delete [PaymentDelete]
|
|
5211
5548
|
# @param [Hash] opts the optional parameters
|
|
5549
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
5212
5550
|
# @return [Array<(Payments, Integer, Hash)>] Payments data, response status code and response headers
|
|
5213
5551
|
def delete_payment_with_http_info(xero_tenant_id, payment_id, payment_delete, options = {})
|
|
5214
5552
|
opts = options.dup
|
|
@@ -5247,6 +5585,7 @@ module XeroRuby
|
|
|
5247
5585
|
# HTTP header 'Content-Type'
|
|
5248
5586
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
5249
5587
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
5588
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
5250
5589
|
|
|
5251
5590
|
# form parameters
|
|
5252
5591
|
form_params = opts[:form_params] || {}
|
|
@@ -5276,6 +5615,87 @@ module XeroRuby
|
|
|
5276
5615
|
return data, status_code, headers
|
|
5277
5616
|
end
|
|
5278
5617
|
|
|
5618
|
+
# Deletes an Allocation from a Prepayment
|
|
5619
|
+
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
5620
|
+
# @param prepayment_id [String] Unique identifier for a PrePayment
|
|
5621
|
+
# @param allocation_id [String] Unique identifier for Allocation object
|
|
5622
|
+
# @param [Hash] opts the optional parameters
|
|
5623
|
+
# @return [Allocation]
|
|
5624
|
+
def delete_prepayment_allocations(xero_tenant_id, prepayment_id, allocation_id, opts = {})
|
|
5625
|
+
data, _status_code, _headers = delete_prepayment_allocations_with_http_info(xero_tenant_id, prepayment_id, allocation_id, opts)
|
|
5626
|
+
data
|
|
5627
|
+
end
|
|
5628
|
+
|
|
5629
|
+
# Deletes an Allocation from a Prepayment
|
|
5630
|
+
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
5631
|
+
# @param prepayment_id [String] Unique identifier for a PrePayment
|
|
5632
|
+
# @param allocation_id [String] Unique identifier for Allocation object
|
|
5633
|
+
# @param [Hash] opts the optional parameters
|
|
5634
|
+
# @return [Array<(Allocation, Integer, Hash)>] Allocation data, response status code and response headers
|
|
5635
|
+
def delete_prepayment_allocations_with_http_info(xero_tenant_id, prepayment_id, allocation_id, options = {})
|
|
5636
|
+
opts = options.dup
|
|
5637
|
+
if @api_client.config.debugging
|
|
5638
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.delete_prepayment_allocations ...'
|
|
5639
|
+
end
|
|
5640
|
+
# verify the required parameter 'xero_tenant_id' is set
|
|
5641
|
+
if @api_client.config.client_side_validation && xero_tenant_id.nil?
|
|
5642
|
+
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.delete_prepayment_allocations"
|
|
5643
|
+
end
|
|
5644
|
+
# verify the required parameter 'prepayment_id' is set
|
|
5645
|
+
if @api_client.config.client_side_validation && prepayment_id.nil?
|
|
5646
|
+
fail ArgumentError, "Missing the required parameter 'prepayment_id' when calling AccountingApi.delete_prepayment_allocations"
|
|
5647
|
+
end
|
|
5648
|
+
# verify the required parameter 'allocation_id' is set
|
|
5649
|
+
if @api_client.config.client_side_validation && allocation_id.nil?
|
|
5650
|
+
fail ArgumentError, "Missing the required parameter 'allocation_id' when calling AccountingApi.delete_prepayment_allocations"
|
|
5651
|
+
end
|
|
5652
|
+
# resource path
|
|
5653
|
+
local_var_path = '/Prepayments/{PrepaymentID}/Allocations/{AllocationID}'.sub('{' + 'PrepaymentID' + '}', prepayment_id.to_s).sub('{' + 'AllocationID' + '}', allocation_id.to_s)
|
|
5654
|
+
|
|
5655
|
+
# camelize keys of incoming `where` opts
|
|
5656
|
+
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
5657
|
+
|
|
5658
|
+
# query parameters
|
|
5659
|
+
query_params = opts[:query_params] || {}
|
|
5660
|
+
|
|
5661
|
+
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
|
5662
|
+
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
|
5663
|
+
query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
|
|
5664
|
+
|
|
5665
|
+
# header parameters
|
|
5666
|
+
header_params = opts[:header_params] || {}
|
|
5667
|
+
# HTTP header 'Accept' (if needed)
|
|
5668
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
5669
|
+
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
5670
|
+
|
|
5671
|
+
# form parameters
|
|
5672
|
+
form_params = opts[:form_params] || {}
|
|
5673
|
+
|
|
5674
|
+
# http body (model)
|
|
5675
|
+
post_body = opts[:body]
|
|
5676
|
+
|
|
5677
|
+
# return_type
|
|
5678
|
+
return_type = opts[:return_type] || 'Allocation'
|
|
5679
|
+
|
|
5680
|
+
# auth_names
|
|
5681
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
|
5682
|
+
|
|
5683
|
+
new_options = opts.merge(
|
|
5684
|
+
:header_params => header_params,
|
|
5685
|
+
:query_params => query_params,
|
|
5686
|
+
:form_params => form_params,
|
|
5687
|
+
:body => post_body,
|
|
5688
|
+
:auth_names => auth_names,
|
|
5689
|
+
:return_type => return_type
|
|
5690
|
+
)
|
|
5691
|
+
|
|
5692
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, "AccountingApi", new_options)
|
|
5693
|
+
if @api_client.config.debugging
|
|
5694
|
+
@api_client.config.logger.debug "API called: AccountingApi#delete_prepayment_allocations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
5695
|
+
end
|
|
5696
|
+
return data, status_code, headers
|
|
5697
|
+
end
|
|
5698
|
+
|
|
5279
5699
|
# Deletes a specific tracking category
|
|
5280
5700
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
5281
5701
|
# @param tracking_category_id [String] Unique identifier for a TrackingCategory
|
|
@@ -5437,6 +5857,7 @@ module XeroRuby
|
|
|
5437
5857
|
# @param invoice_id [String] Unique identifier for an Invoice
|
|
5438
5858
|
# @param request_empty [RequestEmpty]
|
|
5439
5859
|
# @param [Hash] opts the optional parameters
|
|
5860
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
5440
5861
|
# @return [nil]
|
|
5441
5862
|
def email_invoice(xero_tenant_id, invoice_id, request_empty, opts = {})
|
|
5442
5863
|
email_invoice_with_http_info(xero_tenant_id, invoice_id, request_empty, opts)
|
|
@@ -5448,6 +5869,7 @@ module XeroRuby
|
|
|
5448
5869
|
# @param invoice_id [String] Unique identifier for an Invoice
|
|
5449
5870
|
# @param request_empty [RequestEmpty]
|
|
5450
5871
|
# @param [Hash] opts the optional parameters
|
|
5872
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
5451
5873
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
5452
5874
|
def email_invoice_with_http_info(xero_tenant_id, invoice_id, request_empty, options = {})
|
|
5453
5875
|
opts = options.dup
|
|
@@ -5486,6 +5908,7 @@ module XeroRuby
|
|
|
5486
5908
|
# HTTP header 'Content-Type'
|
|
5487
5909
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
5488
5910
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
5911
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
5489
5912
|
|
|
5490
5913
|
# form parameters
|
|
5491
5914
|
form_params = opts[:form_params] || {}
|
|
@@ -6256,6 +6679,7 @@ module XeroRuby
|
|
|
6256
6679
|
# @option opts [String] :order Order by an any element
|
|
6257
6680
|
# @option opts [Integer] :page Up to 100 bank transactions will be returned in a single API call with line items details
|
|
6258
6681
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
6682
|
+
# @option opts [Integer] :page_size Number of records to retrieve per page
|
|
6259
6683
|
# @return [BankTransactions]
|
|
6260
6684
|
def get_bank_transactions(xero_tenant_id, opts = {})
|
|
6261
6685
|
data, _status_code, _headers = get_bank_transactions_with_http_info(xero_tenant_id, opts)
|
|
@@ -6270,6 +6694,7 @@ module XeroRuby
|
|
|
6270
6694
|
# @option opts [String] :order Order by an any element
|
|
6271
6695
|
# @option opts [Integer] :page Up to 100 bank transactions will be returned in a single API call with line items details
|
|
6272
6696
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
6697
|
+
# @option opts [Integer] :page_size Number of records to retrieve per page
|
|
6273
6698
|
# @return [Array<(BankTransactions, Integer, Hash)>] BankTransactions data, response status code and response headers
|
|
6274
6699
|
def get_bank_transactions_with_http_info(xero_tenant_id, options = {})
|
|
6275
6700
|
opts = options.dup
|
|
@@ -6292,6 +6717,7 @@ module XeroRuby
|
|
|
6292
6717
|
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
|
6293
6718
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
6294
6719
|
query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
|
|
6720
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
6295
6721
|
|
|
6296
6722
|
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
|
6297
6723
|
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
|
@@ -8204,6 +8630,7 @@ module XeroRuby
|
|
|
8204
8630
|
# @option opts [Boolean] :include_archived e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response
|
|
8205
8631
|
# @option opts [Boolean] :summary_only Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. (default to false)
|
|
8206
8632
|
# @option opts [String] :search_term Search parameter that performs a case-insensitive text search across the Name, FirstName, LastName, ContactNumber and EmailAddress fields.
|
|
8633
|
+
# @option opts [Integer] :page_size Number of records to retrieve per page
|
|
8207
8634
|
# @return [Contacts]
|
|
8208
8635
|
def get_contacts(xero_tenant_id, opts = {})
|
|
8209
8636
|
data, _status_code, _headers = get_contacts_with_http_info(xero_tenant_id, opts)
|
|
@@ -8221,6 +8648,7 @@ module XeroRuby
|
|
|
8221
8648
|
# @option opts [Boolean] :include_archived e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response
|
|
8222
8649
|
# @option opts [Boolean] :summary_only Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient.
|
|
8223
8650
|
# @option opts [String] :search_term Search parameter that performs a case-insensitive text search across the Name, FirstName, LastName, ContactNumber and EmailAddress fields.
|
|
8651
|
+
# @option opts [Integer] :page_size Number of records to retrieve per page
|
|
8224
8652
|
# @return [Array<(Contacts, Integer, Hash)>] Contacts data, response status code and response headers
|
|
8225
8653
|
def get_contacts_with_http_info(xero_tenant_id, options = {})
|
|
8226
8654
|
opts = options.dup
|
|
@@ -8246,6 +8674,7 @@ module XeroRuby
|
|
|
8246
8674
|
query_params[:'includeArchived'] = opts[:'include_archived'] if !opts[:'include_archived'].nil?
|
|
8247
8675
|
query_params[:'summaryOnly'] = opts[:'summary_only'] if !opts[:'summary_only'].nil?
|
|
8248
8676
|
query_params[:'searchTerm'] = opts[:'search_term'] if !opts[:'search_term'].nil?
|
|
8677
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
8249
8678
|
|
|
8250
8679
|
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
|
8251
8680
|
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
|
@@ -8773,6 +9202,7 @@ module XeroRuby
|
|
|
8773
9202
|
# @option opts [String] :order Order by an any element
|
|
8774
9203
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 credit notes will be returned in a single API call with line items shown for each credit note
|
|
8775
9204
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
9205
|
+
# @option opts [Integer] :page_size Number of records to retrieve per page
|
|
8776
9206
|
# @return [CreditNotes]
|
|
8777
9207
|
def get_credit_notes(xero_tenant_id, opts = {})
|
|
8778
9208
|
data, _status_code, _headers = get_credit_notes_with_http_info(xero_tenant_id, opts)
|
|
@@ -8787,6 +9217,7 @@ module XeroRuby
|
|
|
8787
9217
|
# @option opts [String] :order Order by an any element
|
|
8788
9218
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 credit notes will be returned in a single API call with line items shown for each credit note
|
|
8789
9219
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
9220
|
+
# @option opts [Integer] :page_size Number of records to retrieve per page
|
|
8790
9221
|
# @return [Array<(CreditNotes, Integer, Hash)>] CreditNotes data, response status code and response headers
|
|
8791
9222
|
def get_credit_notes_with_http_info(xero_tenant_id, options = {})
|
|
8792
9223
|
opts = options.dup
|
|
@@ -8809,6 +9240,7 @@ module XeroRuby
|
|
|
8809
9240
|
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
|
8810
9241
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
8811
9242
|
query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
|
|
9243
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
8812
9244
|
|
|
8813
9245
|
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
|
8814
9246
|
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
|
@@ -9868,6 +10300,8 @@ module XeroRuby
|
|
|
9868
10300
|
# @option opts [Boolean] :created_by_my_app When set to true you'll only retrieve Invoices created by your app
|
|
9869
10301
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
9870
10302
|
# @option opts [Boolean] :summary_only Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. (default to false)
|
|
10303
|
+
# @option opts [Integer] :page_size Number of records to retrieve per page
|
|
10304
|
+
# @option opts [String] :search_term Search parameter that performs a case-insensitive text search across the fields e.g. InvoiceNumber, Reference.
|
|
9871
10305
|
# @return [Invoices]
|
|
9872
10306
|
def get_invoices(xero_tenant_id, opts = {})
|
|
9873
10307
|
data, _status_code, _headers = get_invoices_with_http_info(xero_tenant_id, opts)
|
|
@@ -9889,6 +10323,8 @@ module XeroRuby
|
|
|
9889
10323
|
# @option opts [Boolean] :created_by_my_app When set to true you'll only retrieve Invoices created by your app
|
|
9890
10324
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
9891
10325
|
# @option opts [Boolean] :summary_only Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient.
|
|
10326
|
+
# @option opts [Integer] :page_size Number of records to retrieve per page
|
|
10327
|
+
# @option opts [String] :search_term Search parameter that performs a case-insensitive text search across the fields e.g. InvoiceNumber, Reference.
|
|
9892
10328
|
# @return [Array<(Invoices, Integer, Hash)>] Invoices data, response status code and response headers
|
|
9893
10329
|
def get_invoices_with_http_info(xero_tenant_id, options = {})
|
|
9894
10330
|
opts = options.dup
|
|
@@ -9918,6 +10354,8 @@ module XeroRuby
|
|
|
9918
10354
|
query_params[:'createdByMyApp'] = opts[:'created_by_my_app'] if !opts[:'created_by_my_app'].nil?
|
|
9919
10355
|
query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
|
|
9920
10356
|
query_params[:'summaryOnly'] = opts[:'summary_only'] if !opts[:'summary_only'].nil?
|
|
10357
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
10358
|
+
query_params[:'searchTerm'] = opts[:'search_term'] if !opts[:'search_term'].nil?
|
|
9921
10359
|
|
|
9922
10360
|
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
|
9923
10361
|
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
|
@@ -10915,6 +11353,7 @@ module XeroRuby
|
|
|
10915
11353
|
# @option opts [String] :where Filter by an any element
|
|
10916
11354
|
# @option opts [String] :order Order by an any element
|
|
10917
11355
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 manual journals will be returned in a single API call with line items shown for each overpayment
|
|
11356
|
+
# @option opts [Integer] :page_size Number of records to retrieve per page
|
|
10918
11357
|
# @return [ManualJournals]
|
|
10919
11358
|
def get_manual_journals(xero_tenant_id, opts = {})
|
|
10920
11359
|
data, _status_code, _headers = get_manual_journals_with_http_info(xero_tenant_id, opts)
|
|
@@ -10928,6 +11367,7 @@ module XeroRuby
|
|
|
10928
11367
|
# @option opts [String] :where Filter by an any element
|
|
10929
11368
|
# @option opts [String] :order Order by an any element
|
|
10930
11369
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 manual journals will be returned in a single API call with line items shown for each overpayment
|
|
11370
|
+
# @option opts [Integer] :page_size Number of records to retrieve per page
|
|
10931
11371
|
# @return [Array<(ManualJournals, Integer, Hash)>] ManualJournals data, response status code and response headers
|
|
10932
11372
|
def get_manual_journals_with_http_info(xero_tenant_id, options = {})
|
|
10933
11373
|
opts = options.dup
|
|
@@ -10949,6 +11389,7 @@ module XeroRuby
|
|
|
10949
11389
|
query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
|
|
10950
11390
|
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
|
10951
11391
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
11392
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
10952
11393
|
|
|
10953
11394
|
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
|
10954
11395
|
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
|
@@ -11510,6 +11951,7 @@ module XeroRuby
|
|
|
11510
11951
|
# @option opts [String] :order Order by an any element
|
|
11511
11952
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 overpayments will be returned in a single API call with line items shown for each overpayment
|
|
11512
11953
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
11954
|
+
# @option opts [Integer] :page_size Number of records to retrieve per page
|
|
11513
11955
|
# @return [Overpayments]
|
|
11514
11956
|
def get_overpayments(xero_tenant_id, opts = {})
|
|
11515
11957
|
data, _status_code, _headers = get_overpayments_with_http_info(xero_tenant_id, opts)
|
|
@@ -11524,6 +11966,7 @@ module XeroRuby
|
|
|
11524
11966
|
# @option opts [String] :order Order by an any element
|
|
11525
11967
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 overpayments will be returned in a single API call with line items shown for each overpayment
|
|
11526
11968
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
11969
|
+
# @option opts [Integer] :page_size Number of records to retrieve per page
|
|
11527
11970
|
# @return [Array<(Overpayments, Integer, Hash)>] Overpayments data, response status code and response headers
|
|
11528
11971
|
def get_overpayments_with_http_info(xero_tenant_id, options = {})
|
|
11529
11972
|
opts = options.dup
|
|
@@ -11546,6 +11989,7 @@ module XeroRuby
|
|
|
11546
11989
|
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
|
11547
11990
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
11548
11991
|
query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
|
|
11992
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
11549
11993
|
|
|
11550
11994
|
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
|
11551
11995
|
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
|
@@ -11812,6 +12256,7 @@ module XeroRuby
|
|
|
11812
12256
|
# @option opts [String] :where Filter by an any element
|
|
11813
12257
|
# @option opts [String] :order Order by an any element
|
|
11814
12258
|
# @option opts [Integer] :page Up to 100 payments will be returned in a single API call
|
|
12259
|
+
# @option opts [Integer] :page_size Number of records to retrieve per page
|
|
11815
12260
|
# @return [Payments]
|
|
11816
12261
|
def get_payments(xero_tenant_id, opts = {})
|
|
11817
12262
|
data, _status_code, _headers = get_payments_with_http_info(xero_tenant_id, opts)
|
|
@@ -11825,6 +12270,7 @@ module XeroRuby
|
|
|
11825
12270
|
# @option opts [String] :where Filter by an any element
|
|
11826
12271
|
# @option opts [String] :order Order by an any element
|
|
11827
12272
|
# @option opts [Integer] :page Up to 100 payments will be returned in a single API call
|
|
12273
|
+
# @option opts [Integer] :page_size Number of records to retrieve per page
|
|
11828
12274
|
# @return [Array<(Payments, Integer, Hash)>] Payments data, response status code and response headers
|
|
11829
12275
|
def get_payments_with_http_info(xero_tenant_id, options = {})
|
|
11830
12276
|
opts = options.dup
|
|
@@ -11846,6 +12292,7 @@ module XeroRuby
|
|
|
11846
12292
|
query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
|
|
11847
12293
|
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
|
11848
12294
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
12295
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
11849
12296
|
|
|
11850
12297
|
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
|
11851
12298
|
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
|
@@ -12044,6 +12491,7 @@ module XeroRuby
|
|
|
12044
12491
|
# @option opts [String] :order Order by an any element
|
|
12045
12492
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each overpayment
|
|
12046
12493
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
12494
|
+
# @option opts [Integer] :page_size Number of records to retrieve per page
|
|
12047
12495
|
# @return [Prepayments]
|
|
12048
12496
|
def get_prepayments(xero_tenant_id, opts = {})
|
|
12049
12497
|
data, _status_code, _headers = get_prepayments_with_http_info(xero_tenant_id, opts)
|
|
@@ -12058,6 +12506,7 @@ module XeroRuby
|
|
|
12058
12506
|
# @option opts [String] :order Order by an any element
|
|
12059
12507
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each overpayment
|
|
12060
12508
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
12509
|
+
# @option opts [Integer] :page_size Number of records to retrieve per page
|
|
12061
12510
|
# @return [Array<(Prepayments, Integer, Hash)>] Prepayments data, response status code and response headers
|
|
12062
12511
|
def get_prepayments_with_http_info(xero_tenant_id, options = {})
|
|
12063
12512
|
opts = options.dup
|
|
@@ -12080,6 +12529,7 @@ module XeroRuby
|
|
|
12080
12529
|
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
|
12081
12530
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
12082
12531
|
query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
|
|
12532
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
12083
12533
|
|
|
12084
12534
|
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
|
12085
12535
|
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
|
@@ -12680,6 +13130,7 @@ module XeroRuby
|
|
|
12680
13130
|
# @option opts [String] :date_to Filter by purchase order date (e.g. GET https://.../PurchaseOrders?DateFrom=2015-12-01&DateTo=2015-12-31
|
|
12681
13131
|
# @option opts [String] :order Order by an any element
|
|
12682
13132
|
# @option opts [Integer] :page To specify a page, append the page parameter to the URL e.g. ?page=1. If there are 100 records in the response you will need to check if there is any more data by fetching the next page e.g ?page=2 and continuing this process until no more results are returned.
|
|
13133
|
+
# @option opts [Integer] :page_size Number of records to retrieve per page
|
|
12683
13134
|
# @return [PurchaseOrders]
|
|
12684
13135
|
def get_purchase_orders(xero_tenant_id, opts = {})
|
|
12685
13136
|
data, _status_code, _headers = get_purchase_orders_with_http_info(xero_tenant_id, opts)
|
|
@@ -12695,6 +13146,7 @@ module XeroRuby
|
|
|
12695
13146
|
# @option opts [String] :date_to Filter by purchase order date (e.g. GET https://.../PurchaseOrders?DateFrom=2015-12-01&DateTo=2015-12-31
|
|
12696
13147
|
# @option opts [String] :order Order by an any element
|
|
12697
13148
|
# @option opts [Integer] :page To specify a page, append the page parameter to the URL e.g. ?page=1. If there are 100 records in the response you will need to check if there is any more data by fetching the next page e.g ?page=2 and continuing this process until no more results are returned.
|
|
13149
|
+
# @option opts [Integer] :page_size Number of records to retrieve per page
|
|
12698
13150
|
# @return [Array<(PurchaseOrders, Integer, Hash)>] PurchaseOrders data, response status code and response headers
|
|
12699
13151
|
def get_purchase_orders_with_http_info(xero_tenant_id, options = {})
|
|
12700
13152
|
opts = options.dup
|
|
@@ -12722,6 +13174,7 @@ module XeroRuby
|
|
|
12722
13174
|
query_params[:'DateTo'] = opts[:'date_to'] if !opts[:'date_to'].nil?
|
|
12723
13175
|
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
|
12724
13176
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
13177
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
12725
13178
|
|
|
12726
13179
|
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
|
12727
13180
|
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
|
@@ -15181,12 +15634,86 @@ module XeroRuby
|
|
|
15181
15634
|
return data, status_code, headers
|
|
15182
15635
|
end
|
|
15183
15636
|
|
|
15637
|
+
# Retrieves a specific tax rate according to given TaxType code
|
|
15638
|
+
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
15639
|
+
# @param tax_type [String] A valid TaxType code
|
|
15640
|
+
# @param [Hash] opts the optional parameters
|
|
15641
|
+
# @return [TaxRates]
|
|
15642
|
+
def get_tax_rate_by_tax_type(xero_tenant_id, tax_type, opts = {})
|
|
15643
|
+
data, _status_code, _headers = get_tax_rate_by_tax_type_with_http_info(xero_tenant_id, tax_type, opts)
|
|
15644
|
+
data
|
|
15645
|
+
end
|
|
15646
|
+
|
|
15647
|
+
# Retrieves a specific tax rate according to given TaxType code
|
|
15648
|
+
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
15649
|
+
# @param tax_type [String] A valid TaxType code
|
|
15650
|
+
# @param [Hash] opts the optional parameters
|
|
15651
|
+
# @return [Array<(TaxRates, Integer, Hash)>] TaxRates data, response status code and response headers
|
|
15652
|
+
def get_tax_rate_by_tax_type_with_http_info(xero_tenant_id, tax_type, options = {})
|
|
15653
|
+
opts = options.dup
|
|
15654
|
+
if @api_client.config.debugging
|
|
15655
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.get_tax_rate_by_tax_type ...'
|
|
15656
|
+
end
|
|
15657
|
+
# verify the required parameter 'xero_tenant_id' is set
|
|
15658
|
+
if @api_client.config.client_side_validation && xero_tenant_id.nil?
|
|
15659
|
+
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_tax_rate_by_tax_type"
|
|
15660
|
+
end
|
|
15661
|
+
# verify the required parameter 'tax_type' is set
|
|
15662
|
+
if @api_client.config.client_side_validation && tax_type.nil?
|
|
15663
|
+
fail ArgumentError, "Missing the required parameter 'tax_type' when calling AccountingApi.get_tax_rate_by_tax_type"
|
|
15664
|
+
end
|
|
15665
|
+
# resource path
|
|
15666
|
+
local_var_path = '/TaxRates/{TaxType}'.sub('{' + 'TaxType' + '}', tax_type.to_s)
|
|
15667
|
+
|
|
15668
|
+
# camelize keys of incoming `where` opts
|
|
15669
|
+
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
15670
|
+
|
|
15671
|
+
# query parameters
|
|
15672
|
+
query_params = opts[:query_params] || {}
|
|
15673
|
+
|
|
15674
|
+
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
|
15675
|
+
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
|
15676
|
+
query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
|
|
15677
|
+
|
|
15678
|
+
# header parameters
|
|
15679
|
+
header_params = opts[:header_params] || {}
|
|
15680
|
+
# HTTP header 'Accept' (if needed)
|
|
15681
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
15682
|
+
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
15683
|
+
|
|
15684
|
+
# form parameters
|
|
15685
|
+
form_params = opts[:form_params] || {}
|
|
15686
|
+
|
|
15687
|
+
# http body (model)
|
|
15688
|
+
post_body = opts[:body]
|
|
15689
|
+
|
|
15690
|
+
# return_type
|
|
15691
|
+
return_type = opts[:return_type] || 'TaxRates'
|
|
15692
|
+
|
|
15693
|
+
# auth_names
|
|
15694
|
+
auth_names = opts[:auth_names] || ['OAuth2']
|
|
15695
|
+
|
|
15696
|
+
new_options = opts.merge(
|
|
15697
|
+
:header_params => header_params,
|
|
15698
|
+
:query_params => query_params,
|
|
15699
|
+
:form_params => form_params,
|
|
15700
|
+
:body => post_body,
|
|
15701
|
+
:auth_names => auth_names,
|
|
15702
|
+
:return_type => return_type
|
|
15703
|
+
)
|
|
15704
|
+
|
|
15705
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
|
|
15706
|
+
if @api_client.config.debugging
|
|
15707
|
+
@api_client.config.logger.debug "API called: AccountingApi#get_tax_rate_by_tax_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
15708
|
+
end
|
|
15709
|
+
return data, status_code, headers
|
|
15710
|
+
end
|
|
15711
|
+
|
|
15184
15712
|
# Retrieves tax rates
|
|
15185
15713
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
15186
15714
|
# @param [Hash] opts the optional parameters
|
|
15187
15715
|
# @option opts [String] :where Filter by an any element
|
|
15188
15716
|
# @option opts [String] :order Order by an any element
|
|
15189
|
-
# @option opts [String] :tax_type Filter by tax type
|
|
15190
15717
|
# @return [TaxRates]
|
|
15191
15718
|
def get_tax_rates(xero_tenant_id, opts = {})
|
|
15192
15719
|
data, _status_code, _headers = get_tax_rates_with_http_info(xero_tenant_id, opts)
|
|
@@ -15198,7 +15725,6 @@ module XeroRuby
|
|
|
15198
15725
|
# @param [Hash] opts the optional parameters
|
|
15199
15726
|
# @option opts [String] :where Filter by an any element
|
|
15200
15727
|
# @option opts [String] :order Order by an any element
|
|
15201
|
-
# @option opts [String] :tax_type Filter by tax type
|
|
15202
15728
|
# @return [Array<(TaxRates, Integer, Hash)>] TaxRates data, response status code and response headers
|
|
15203
15729
|
def get_tax_rates_with_http_info(xero_tenant_id, options = {})
|
|
15204
15730
|
opts = options.dup
|
|
@@ -15219,7 +15745,6 @@ module XeroRuby
|
|
|
15219
15745
|
query_params = opts[:query_params] || {}
|
|
15220
15746
|
query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
|
|
15221
15747
|
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
|
15222
|
-
query_params[:'TaxType'] = opts[:'tax_type'] if !opts[:'tax_type'].nil?
|
|
15223
15748
|
|
|
15224
15749
|
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
|
15225
15750
|
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
|
@@ -15569,6 +16094,7 @@ module XeroRuby
|
|
|
15569
16094
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
15570
16095
|
# @param setup [Setup] Object including an accounts array, a conversion balances array and a conversion date object in body of request
|
|
15571
16096
|
# @param [Hash] opts the optional parameters
|
|
16097
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
15572
16098
|
# @return [ImportSummaryObject]
|
|
15573
16099
|
def post_setup(xero_tenant_id, setup, opts = {})
|
|
15574
16100
|
data, _status_code, _headers = post_setup_with_http_info(xero_tenant_id, setup, opts)
|
|
@@ -15579,6 +16105,7 @@ module XeroRuby
|
|
|
15579
16105
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
15580
16106
|
# @param setup [Setup] Object including an accounts array, a conversion balances array and a conversion date object in body of request
|
|
15581
16107
|
# @param [Hash] opts the optional parameters
|
|
16108
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
15582
16109
|
# @return [Array<(ImportSummaryObject, Integer, Hash)>] ImportSummaryObject data, response status code and response headers
|
|
15583
16110
|
def post_setup_with_http_info(xero_tenant_id, setup, options = {})
|
|
15584
16111
|
opts = options.dup
|
|
@@ -15613,6 +16140,7 @@ module XeroRuby
|
|
|
15613
16140
|
# HTTP header 'Content-Type'
|
|
15614
16141
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
15615
16142
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
16143
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
15616
16144
|
|
|
15617
16145
|
# form parameters
|
|
15618
16146
|
form_params = opts[:form_params] || {}
|
|
@@ -15647,6 +16175,7 @@ module XeroRuby
|
|
|
15647
16175
|
# @param account_id [String] Unique identifier for Account object
|
|
15648
16176
|
# @param accounts [Accounts] Request of type Accounts array with one Account
|
|
15649
16177
|
# @param [Hash] opts the optional parameters
|
|
16178
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
15650
16179
|
# @return [Accounts]
|
|
15651
16180
|
def update_account(xero_tenant_id, account_id, accounts, opts = {})
|
|
15652
16181
|
data, _status_code, _headers = update_account_with_http_info(xero_tenant_id, account_id, accounts, opts)
|
|
@@ -15658,6 +16187,7 @@ module XeroRuby
|
|
|
15658
16187
|
# @param account_id [String] Unique identifier for Account object
|
|
15659
16188
|
# @param accounts [Accounts] Request of type Accounts array with one Account
|
|
15660
16189
|
# @param [Hash] opts the optional parameters
|
|
16190
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
15661
16191
|
# @return [Array<(Accounts, Integer, Hash)>] Accounts data, response status code and response headers
|
|
15662
16192
|
def update_account_with_http_info(xero_tenant_id, account_id, accounts, options = {})
|
|
15663
16193
|
opts = options.dup
|
|
@@ -15696,6 +16226,7 @@ module XeroRuby
|
|
|
15696
16226
|
# HTTP header 'Content-Type'
|
|
15697
16227
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
15698
16228
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
16229
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
15699
16230
|
|
|
15700
16231
|
# form parameters
|
|
15701
16232
|
form_params = opts[:form_params] || {}
|
|
@@ -15731,6 +16262,7 @@ module XeroRuby
|
|
|
15731
16262
|
# @param file_name [String] Name of the attachment
|
|
15732
16263
|
# @param body [String] Byte array of file in body of request
|
|
15733
16264
|
# @param [Hash] opts the optional parameters
|
|
16265
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
15734
16266
|
# @return [Attachments]
|
|
15735
16267
|
def update_account_attachment_by_file_name(xero_tenant_id, account_id, file_name, body, opts = {})
|
|
15736
16268
|
data, _status_code, _headers = update_account_attachment_by_file_name_with_http_info(xero_tenant_id, account_id, file_name, body, opts)
|
|
@@ -15743,6 +16275,7 @@ module XeroRuby
|
|
|
15743
16275
|
# @param file_name [String] Name of the attachment
|
|
15744
16276
|
# @param body [String] Byte array of file in body of request
|
|
15745
16277
|
# @param [Hash] opts the optional parameters
|
|
16278
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
15746
16279
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
|
15747
16280
|
def update_account_attachment_by_file_name_with_http_info(xero_tenant_id, account_id, file_name, body, options = {})
|
|
15748
16281
|
opts = options.dup
|
|
@@ -15785,6 +16318,7 @@ module XeroRuby
|
|
|
15785
16318
|
# HTTP header 'Content-Type'
|
|
15786
16319
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
|
15787
16320
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
16321
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
15788
16322
|
|
|
15789
16323
|
# form parameters
|
|
15790
16324
|
form_params = opts[:form_params] || {}
|
|
@@ -15820,6 +16354,7 @@ module XeroRuby
|
|
|
15820
16354
|
# @param bank_transactions [BankTransactions]
|
|
15821
16355
|
# @param [Hash] opts the optional parameters
|
|
15822
16356
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
16357
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
15823
16358
|
# @return [BankTransactions]
|
|
15824
16359
|
def update_bank_transaction(xero_tenant_id, bank_transaction_id, bank_transactions, opts = {})
|
|
15825
16360
|
data, _status_code, _headers = update_bank_transaction_with_http_info(xero_tenant_id, bank_transaction_id, bank_transactions, opts)
|
|
@@ -15832,6 +16367,7 @@ module XeroRuby
|
|
|
15832
16367
|
# @param bank_transactions [BankTransactions]
|
|
15833
16368
|
# @param [Hash] opts the optional parameters
|
|
15834
16369
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
16370
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
15835
16371
|
# @return [Array<(BankTransactions, Integer, Hash)>] BankTransactions data, response status code and response headers
|
|
15836
16372
|
def update_bank_transaction_with_http_info(xero_tenant_id, bank_transaction_id, bank_transactions, options = {})
|
|
15837
16373
|
opts = options.dup
|
|
@@ -15871,6 +16407,7 @@ module XeroRuby
|
|
|
15871
16407
|
# HTTP header 'Content-Type'
|
|
15872
16408
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
15873
16409
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
16410
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
15874
16411
|
|
|
15875
16412
|
# form parameters
|
|
15876
16413
|
form_params = opts[:form_params] || {}
|
|
@@ -15906,6 +16443,7 @@ module XeroRuby
|
|
|
15906
16443
|
# @param file_name [String] Name of the attachment
|
|
15907
16444
|
# @param body [String] Byte array of file in body of request
|
|
15908
16445
|
# @param [Hash] opts the optional parameters
|
|
16446
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
15909
16447
|
# @return [Attachments]
|
|
15910
16448
|
def update_bank_transaction_attachment_by_file_name(xero_tenant_id, bank_transaction_id, file_name, body, opts = {})
|
|
15911
16449
|
data, _status_code, _headers = update_bank_transaction_attachment_by_file_name_with_http_info(xero_tenant_id, bank_transaction_id, file_name, body, opts)
|
|
@@ -15918,6 +16456,7 @@ module XeroRuby
|
|
|
15918
16456
|
# @param file_name [String] Name of the attachment
|
|
15919
16457
|
# @param body [String] Byte array of file in body of request
|
|
15920
16458
|
# @param [Hash] opts the optional parameters
|
|
16459
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
15921
16460
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
|
15922
16461
|
def update_bank_transaction_attachment_by_file_name_with_http_info(xero_tenant_id, bank_transaction_id, file_name, body, options = {})
|
|
15923
16462
|
opts = options.dup
|
|
@@ -15960,6 +16499,7 @@ module XeroRuby
|
|
|
15960
16499
|
# HTTP header 'Content-Type'
|
|
15961
16500
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
|
15962
16501
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
16502
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
15963
16503
|
|
|
15964
16504
|
# form parameters
|
|
15965
16505
|
form_params = opts[:form_params] || {}
|
|
@@ -15994,6 +16534,7 @@ module XeroRuby
|
|
|
15994
16534
|
# @param file_name [String] Name of the attachment
|
|
15995
16535
|
# @param body [String] Byte array of file in body of request
|
|
15996
16536
|
# @param [Hash] opts the optional parameters
|
|
16537
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
15997
16538
|
# @return [Attachments]
|
|
15998
16539
|
def update_bank_transfer_attachment_by_file_name(xero_tenant_id, bank_transfer_id, file_name, body, opts = {})
|
|
15999
16540
|
data, _status_code, _headers = update_bank_transfer_attachment_by_file_name_with_http_info(xero_tenant_id, bank_transfer_id, file_name, body, opts)
|
|
@@ -16005,6 +16546,7 @@ module XeroRuby
|
|
|
16005
16546
|
# @param file_name [String] Name of the attachment
|
|
16006
16547
|
# @param body [String] Byte array of file in body of request
|
|
16007
16548
|
# @param [Hash] opts the optional parameters
|
|
16549
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16008
16550
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
|
16009
16551
|
def update_bank_transfer_attachment_by_file_name_with_http_info(xero_tenant_id, bank_transfer_id, file_name, body, options = {})
|
|
16010
16552
|
opts = options.dup
|
|
@@ -16047,6 +16589,7 @@ module XeroRuby
|
|
|
16047
16589
|
# HTTP header 'Content-Type'
|
|
16048
16590
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
|
16049
16591
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
16592
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
16050
16593
|
|
|
16051
16594
|
# form parameters
|
|
16052
16595
|
form_params = opts[:form_params] || {}
|
|
@@ -16081,6 +16624,7 @@ module XeroRuby
|
|
|
16081
16624
|
# @param contact_id [String] Unique identifier for a Contact
|
|
16082
16625
|
# @param contacts [Contacts] an array of Contacts containing single Contact object with properties to update
|
|
16083
16626
|
# @param [Hash] opts the optional parameters
|
|
16627
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16084
16628
|
# @return [Contacts]
|
|
16085
16629
|
def update_contact(xero_tenant_id, contact_id, contacts, opts = {})
|
|
16086
16630
|
data, _status_code, _headers = update_contact_with_http_info(xero_tenant_id, contact_id, contacts, opts)
|
|
@@ -16092,6 +16636,7 @@ module XeroRuby
|
|
|
16092
16636
|
# @param contact_id [String] Unique identifier for a Contact
|
|
16093
16637
|
# @param contacts [Contacts] an array of Contacts containing single Contact object with properties to update
|
|
16094
16638
|
# @param [Hash] opts the optional parameters
|
|
16639
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16095
16640
|
# @return [Array<(Contacts, Integer, Hash)>] Contacts data, response status code and response headers
|
|
16096
16641
|
def update_contact_with_http_info(xero_tenant_id, contact_id, contacts, options = {})
|
|
16097
16642
|
opts = options.dup
|
|
@@ -16130,6 +16675,7 @@ module XeroRuby
|
|
|
16130
16675
|
# HTTP header 'Content-Type'
|
|
16131
16676
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
16132
16677
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
16678
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
16133
16679
|
|
|
16134
16680
|
# form parameters
|
|
16135
16681
|
form_params = opts[:form_params] || {}
|
|
@@ -16164,6 +16710,7 @@ module XeroRuby
|
|
|
16164
16710
|
# @param file_name [String] Name of the attachment
|
|
16165
16711
|
# @param body [String] Byte array of file in body of request
|
|
16166
16712
|
# @param [Hash] opts the optional parameters
|
|
16713
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16167
16714
|
# @return [Attachments]
|
|
16168
16715
|
def update_contact_attachment_by_file_name(xero_tenant_id, contact_id, file_name, body, opts = {})
|
|
16169
16716
|
data, _status_code, _headers = update_contact_attachment_by_file_name_with_http_info(xero_tenant_id, contact_id, file_name, body, opts)
|
|
@@ -16175,6 +16722,7 @@ module XeroRuby
|
|
|
16175
16722
|
# @param file_name [String] Name of the attachment
|
|
16176
16723
|
# @param body [String] Byte array of file in body of request
|
|
16177
16724
|
# @param [Hash] opts the optional parameters
|
|
16725
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16178
16726
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
|
16179
16727
|
def update_contact_attachment_by_file_name_with_http_info(xero_tenant_id, contact_id, file_name, body, options = {})
|
|
16180
16728
|
opts = options.dup
|
|
@@ -16217,6 +16765,7 @@ module XeroRuby
|
|
|
16217
16765
|
# HTTP header 'Content-Type'
|
|
16218
16766
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
|
16219
16767
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
16768
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
16220
16769
|
|
|
16221
16770
|
# form parameters
|
|
16222
16771
|
form_params = opts[:form_params] || {}
|
|
@@ -16251,6 +16800,7 @@ module XeroRuby
|
|
|
16251
16800
|
# @param contact_group_id [String] Unique identifier for a Contact Group
|
|
16252
16801
|
# @param contact_groups [ContactGroups] an array of Contact groups with Name of specific group to update
|
|
16253
16802
|
# @param [Hash] opts the optional parameters
|
|
16803
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16254
16804
|
# @return [ContactGroups]
|
|
16255
16805
|
def update_contact_group(xero_tenant_id, contact_group_id, contact_groups, opts = {})
|
|
16256
16806
|
data, _status_code, _headers = update_contact_group_with_http_info(xero_tenant_id, contact_group_id, contact_groups, opts)
|
|
@@ -16262,6 +16812,7 @@ module XeroRuby
|
|
|
16262
16812
|
# @param contact_group_id [String] Unique identifier for a Contact Group
|
|
16263
16813
|
# @param contact_groups [ContactGroups] an array of Contact groups with Name of specific group to update
|
|
16264
16814
|
# @param [Hash] opts the optional parameters
|
|
16815
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16265
16816
|
# @return [Array<(ContactGroups, Integer, Hash)>] ContactGroups data, response status code and response headers
|
|
16266
16817
|
def update_contact_group_with_http_info(xero_tenant_id, contact_group_id, contact_groups, options = {})
|
|
16267
16818
|
opts = options.dup
|
|
@@ -16300,6 +16851,7 @@ module XeroRuby
|
|
|
16300
16851
|
# HTTP header 'Content-Type'
|
|
16301
16852
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
16302
16853
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
16854
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
16303
16855
|
|
|
16304
16856
|
# form parameters
|
|
16305
16857
|
form_params = opts[:form_params] || {}
|
|
@@ -16335,6 +16887,7 @@ module XeroRuby
|
|
|
16335
16887
|
# @param credit_notes [CreditNotes] an array of Credit Notes containing credit note details to update
|
|
16336
16888
|
# @param [Hash] opts the optional parameters
|
|
16337
16889
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
16890
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16338
16891
|
# @return [CreditNotes]
|
|
16339
16892
|
def update_credit_note(xero_tenant_id, credit_note_id, credit_notes, opts = {})
|
|
16340
16893
|
data, _status_code, _headers = update_credit_note_with_http_info(xero_tenant_id, credit_note_id, credit_notes, opts)
|
|
@@ -16347,6 +16900,7 @@ module XeroRuby
|
|
|
16347
16900
|
# @param credit_notes [CreditNotes] an array of Credit Notes containing credit note details to update
|
|
16348
16901
|
# @param [Hash] opts the optional parameters
|
|
16349
16902
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
16903
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16350
16904
|
# @return [Array<(CreditNotes, Integer, Hash)>] CreditNotes data, response status code and response headers
|
|
16351
16905
|
def update_credit_note_with_http_info(xero_tenant_id, credit_note_id, credit_notes, options = {})
|
|
16352
16906
|
opts = options.dup
|
|
@@ -16386,6 +16940,7 @@ module XeroRuby
|
|
|
16386
16940
|
# HTTP header 'Content-Type'
|
|
16387
16941
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
16388
16942
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
16943
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
16389
16944
|
|
|
16390
16945
|
# form parameters
|
|
16391
16946
|
form_params = opts[:form_params] || {}
|
|
@@ -16421,6 +16976,7 @@ module XeroRuby
|
|
|
16421
16976
|
# @param file_name [String] Name of the attachment
|
|
16422
16977
|
# @param body [String] Byte array of file in body of request
|
|
16423
16978
|
# @param [Hash] opts the optional parameters
|
|
16979
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16424
16980
|
# @return [Attachments]
|
|
16425
16981
|
def update_credit_note_attachment_by_file_name(xero_tenant_id, credit_note_id, file_name, body, opts = {})
|
|
16426
16982
|
data, _status_code, _headers = update_credit_note_attachment_by_file_name_with_http_info(xero_tenant_id, credit_note_id, file_name, body, opts)
|
|
@@ -16433,6 +16989,7 @@ module XeroRuby
|
|
|
16433
16989
|
# @param file_name [String] Name of the attachment
|
|
16434
16990
|
# @param body [String] Byte array of file in body of request
|
|
16435
16991
|
# @param [Hash] opts the optional parameters
|
|
16992
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16436
16993
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
|
16437
16994
|
def update_credit_note_attachment_by_file_name_with_http_info(xero_tenant_id, credit_note_id, file_name, body, options = {})
|
|
16438
16995
|
opts = options.dup
|
|
@@ -16475,6 +17032,7 @@ module XeroRuby
|
|
|
16475
17032
|
# HTTP header 'Content-Type'
|
|
16476
17033
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
|
16477
17034
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
17035
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
16478
17036
|
|
|
16479
17037
|
# form parameters
|
|
16480
17038
|
form_params = opts[:form_params] || {}
|
|
@@ -16509,6 +17067,7 @@ module XeroRuby
|
|
|
16509
17067
|
# @param expense_claim_id [String] Unique identifier for a ExpenseClaim
|
|
16510
17068
|
# @param expense_claims [ExpenseClaims]
|
|
16511
17069
|
# @param [Hash] opts the optional parameters
|
|
17070
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16512
17071
|
# @return [ExpenseClaims]
|
|
16513
17072
|
def update_expense_claim(xero_tenant_id, expense_claim_id, expense_claims, opts = {})
|
|
16514
17073
|
data, _status_code, _headers = update_expense_claim_with_http_info(xero_tenant_id, expense_claim_id, expense_claims, opts)
|
|
@@ -16520,6 +17079,7 @@ module XeroRuby
|
|
|
16520
17079
|
# @param expense_claim_id [String] Unique identifier for a ExpenseClaim
|
|
16521
17080
|
# @param expense_claims [ExpenseClaims]
|
|
16522
17081
|
# @param [Hash] opts the optional parameters
|
|
17082
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16523
17083
|
# @return [Array<(ExpenseClaims, Integer, Hash)>] ExpenseClaims data, response status code and response headers
|
|
16524
17084
|
def update_expense_claim_with_http_info(xero_tenant_id, expense_claim_id, expense_claims, options = {})
|
|
16525
17085
|
opts = options.dup
|
|
@@ -16558,6 +17118,7 @@ module XeroRuby
|
|
|
16558
17118
|
# HTTP header 'Content-Type'
|
|
16559
17119
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
16560
17120
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
17121
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
16561
17122
|
|
|
16562
17123
|
# form parameters
|
|
16563
17124
|
form_params = opts[:form_params] || {}
|
|
@@ -16593,6 +17154,7 @@ module XeroRuby
|
|
|
16593
17154
|
# @param invoices [Invoices]
|
|
16594
17155
|
# @param [Hash] opts the optional parameters
|
|
16595
17156
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
17157
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16596
17158
|
# @return [Invoices]
|
|
16597
17159
|
def update_invoice(xero_tenant_id, invoice_id, invoices, opts = {})
|
|
16598
17160
|
data, _status_code, _headers = update_invoice_with_http_info(xero_tenant_id, invoice_id, invoices, opts)
|
|
@@ -16605,6 +17167,7 @@ module XeroRuby
|
|
|
16605
17167
|
# @param invoices [Invoices]
|
|
16606
17168
|
# @param [Hash] opts the optional parameters
|
|
16607
17169
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
17170
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16608
17171
|
# @return [Array<(Invoices, Integer, Hash)>] Invoices data, response status code and response headers
|
|
16609
17172
|
def update_invoice_with_http_info(xero_tenant_id, invoice_id, invoices, options = {})
|
|
16610
17173
|
opts = options.dup
|
|
@@ -16644,6 +17207,7 @@ module XeroRuby
|
|
|
16644
17207
|
# HTTP header 'Content-Type'
|
|
16645
17208
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
16646
17209
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
17210
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
16647
17211
|
|
|
16648
17212
|
# form parameters
|
|
16649
17213
|
form_params = opts[:form_params] || {}
|
|
@@ -16679,6 +17243,7 @@ module XeroRuby
|
|
|
16679
17243
|
# @param file_name [String] Name of the attachment
|
|
16680
17244
|
# @param body [String] Byte array of file in body of request
|
|
16681
17245
|
# @param [Hash] opts the optional parameters
|
|
17246
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16682
17247
|
# @return [Attachments]
|
|
16683
17248
|
def update_invoice_attachment_by_file_name(xero_tenant_id, invoice_id, file_name, body, opts = {})
|
|
16684
17249
|
data, _status_code, _headers = update_invoice_attachment_by_file_name_with_http_info(xero_tenant_id, invoice_id, file_name, body, opts)
|
|
@@ -16691,6 +17256,7 @@ module XeroRuby
|
|
|
16691
17256
|
# @param file_name [String] Name of the attachment
|
|
16692
17257
|
# @param body [String] Byte array of file in body of request
|
|
16693
17258
|
# @param [Hash] opts the optional parameters
|
|
17259
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16694
17260
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
|
16695
17261
|
def update_invoice_attachment_by_file_name_with_http_info(xero_tenant_id, invoice_id, file_name, body, options = {})
|
|
16696
17262
|
opts = options.dup
|
|
@@ -16733,6 +17299,7 @@ module XeroRuby
|
|
|
16733
17299
|
# HTTP header 'Content-Type'
|
|
16734
17300
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
|
16735
17301
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
17302
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
16736
17303
|
|
|
16737
17304
|
# form parameters
|
|
16738
17305
|
form_params = opts[:form_params] || {}
|
|
@@ -16768,6 +17335,7 @@ module XeroRuby
|
|
|
16768
17335
|
# @param items [Items]
|
|
16769
17336
|
# @param [Hash] opts the optional parameters
|
|
16770
17337
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
17338
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16771
17339
|
# @return [Items]
|
|
16772
17340
|
def update_item(xero_tenant_id, item_id, items, opts = {})
|
|
16773
17341
|
data, _status_code, _headers = update_item_with_http_info(xero_tenant_id, item_id, items, opts)
|
|
@@ -16780,6 +17348,7 @@ module XeroRuby
|
|
|
16780
17348
|
# @param items [Items]
|
|
16781
17349
|
# @param [Hash] opts the optional parameters
|
|
16782
17350
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
17351
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16783
17352
|
# @return [Array<(Items, Integer, Hash)>] Items data, response status code and response headers
|
|
16784
17353
|
def update_item_with_http_info(xero_tenant_id, item_id, items, options = {})
|
|
16785
17354
|
opts = options.dup
|
|
@@ -16819,6 +17388,7 @@ module XeroRuby
|
|
|
16819
17388
|
# HTTP header 'Content-Type'
|
|
16820
17389
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
16821
17390
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
17391
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
16822
17392
|
|
|
16823
17393
|
# form parameters
|
|
16824
17394
|
form_params = opts[:form_params] || {}
|
|
@@ -16853,6 +17423,7 @@ module XeroRuby
|
|
|
16853
17423
|
# @param linked_transaction_id [String] Unique identifier for a LinkedTransaction
|
|
16854
17424
|
# @param linked_transactions [LinkedTransactions]
|
|
16855
17425
|
# @param [Hash] opts the optional parameters
|
|
17426
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16856
17427
|
# @return [LinkedTransactions]
|
|
16857
17428
|
def update_linked_transaction(xero_tenant_id, linked_transaction_id, linked_transactions, opts = {})
|
|
16858
17429
|
data, _status_code, _headers = update_linked_transaction_with_http_info(xero_tenant_id, linked_transaction_id, linked_transactions, opts)
|
|
@@ -16864,6 +17435,7 @@ module XeroRuby
|
|
|
16864
17435
|
# @param linked_transaction_id [String] Unique identifier for a LinkedTransaction
|
|
16865
17436
|
# @param linked_transactions [LinkedTransactions]
|
|
16866
17437
|
# @param [Hash] opts the optional parameters
|
|
17438
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16867
17439
|
# @return [Array<(LinkedTransactions, Integer, Hash)>] LinkedTransactions data, response status code and response headers
|
|
16868
17440
|
def update_linked_transaction_with_http_info(xero_tenant_id, linked_transaction_id, linked_transactions, options = {})
|
|
16869
17441
|
opts = options.dup
|
|
@@ -16902,6 +17474,7 @@ module XeroRuby
|
|
|
16902
17474
|
# HTTP header 'Content-Type'
|
|
16903
17475
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
16904
17476
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
17477
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
16905
17478
|
|
|
16906
17479
|
# form parameters
|
|
16907
17480
|
form_params = opts[:form_params] || {}
|
|
@@ -16936,6 +17509,7 @@ module XeroRuby
|
|
|
16936
17509
|
# @param manual_journal_id [String] Unique identifier for a ManualJournal
|
|
16937
17510
|
# @param manual_journals [ManualJournals]
|
|
16938
17511
|
# @param [Hash] opts the optional parameters
|
|
17512
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16939
17513
|
# @return [ManualJournals]
|
|
16940
17514
|
def update_manual_journal(xero_tenant_id, manual_journal_id, manual_journals, opts = {})
|
|
16941
17515
|
data, _status_code, _headers = update_manual_journal_with_http_info(xero_tenant_id, manual_journal_id, manual_journals, opts)
|
|
@@ -16947,6 +17521,7 @@ module XeroRuby
|
|
|
16947
17521
|
# @param manual_journal_id [String] Unique identifier for a ManualJournal
|
|
16948
17522
|
# @param manual_journals [ManualJournals]
|
|
16949
17523
|
# @param [Hash] opts the optional parameters
|
|
17524
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16950
17525
|
# @return [Array<(ManualJournals, Integer, Hash)>] ManualJournals data, response status code and response headers
|
|
16951
17526
|
def update_manual_journal_with_http_info(xero_tenant_id, manual_journal_id, manual_journals, options = {})
|
|
16952
17527
|
opts = options.dup
|
|
@@ -16985,6 +17560,7 @@ module XeroRuby
|
|
|
16985
17560
|
# HTTP header 'Content-Type'
|
|
16986
17561
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
16987
17562
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
17563
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
16988
17564
|
|
|
16989
17565
|
# form parameters
|
|
16990
17566
|
form_params = opts[:form_params] || {}
|
|
@@ -17020,6 +17596,7 @@ module XeroRuby
|
|
|
17020
17596
|
# @param file_name [String] Name of the attachment
|
|
17021
17597
|
# @param body [String] Byte array of file in body of request
|
|
17022
17598
|
# @param [Hash] opts the optional parameters
|
|
17599
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17023
17600
|
# @return [Attachments]
|
|
17024
17601
|
def update_manual_journal_attachment_by_file_name(xero_tenant_id, manual_journal_id, file_name, body, opts = {})
|
|
17025
17602
|
data, _status_code, _headers = update_manual_journal_attachment_by_file_name_with_http_info(xero_tenant_id, manual_journal_id, file_name, body, opts)
|
|
@@ -17032,6 +17609,7 @@ module XeroRuby
|
|
|
17032
17609
|
# @param file_name [String] Name of the attachment
|
|
17033
17610
|
# @param body [String] Byte array of file in body of request
|
|
17034
17611
|
# @param [Hash] opts the optional parameters
|
|
17612
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17035
17613
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
|
17036
17614
|
def update_manual_journal_attachment_by_file_name_with_http_info(xero_tenant_id, manual_journal_id, file_name, body, options = {})
|
|
17037
17615
|
opts = options.dup
|
|
@@ -17074,6 +17652,7 @@ module XeroRuby
|
|
|
17074
17652
|
# HTTP header 'Content-Type'
|
|
17075
17653
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
|
17076
17654
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
17655
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
17077
17656
|
|
|
17078
17657
|
# form parameters
|
|
17079
17658
|
form_params = opts[:form_params] || {}
|
|
@@ -17109,6 +17688,7 @@ module XeroRuby
|
|
|
17109
17688
|
# @param [Hash] opts the optional parameters
|
|
17110
17689
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
17111
17690
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
17691
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17112
17692
|
# @return [BankTransactions]
|
|
17113
17693
|
def update_or_create_bank_transactions(xero_tenant_id, bank_transactions, opts = {})
|
|
17114
17694
|
data, _status_code, _headers = update_or_create_bank_transactions_with_http_info(xero_tenant_id, bank_transactions, opts)
|
|
@@ -17121,6 +17701,7 @@ module XeroRuby
|
|
|
17121
17701
|
# @param [Hash] opts the optional parameters
|
|
17122
17702
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
17123
17703
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
17704
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17124
17705
|
# @return [Array<(BankTransactions, Integer, Hash)>] BankTransactions data, response status code and response headers
|
|
17125
17706
|
def update_or_create_bank_transactions_with_http_info(xero_tenant_id, bank_transactions, options = {})
|
|
17126
17707
|
opts = options.dup
|
|
@@ -17157,6 +17738,7 @@ module XeroRuby
|
|
|
17157
17738
|
# HTTP header 'Content-Type'
|
|
17158
17739
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
17159
17740
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
17741
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
17160
17742
|
|
|
17161
17743
|
# form parameters
|
|
17162
17744
|
form_params = opts[:form_params] || {}
|
|
@@ -17191,6 +17773,7 @@ module XeroRuby
|
|
|
17191
17773
|
# @param contacts [Contacts]
|
|
17192
17774
|
# @param [Hash] opts the optional parameters
|
|
17193
17775
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
17776
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17194
17777
|
# @return [Contacts]
|
|
17195
17778
|
def update_or_create_contacts(xero_tenant_id, contacts, opts = {})
|
|
17196
17779
|
data, _status_code, _headers = update_or_create_contacts_with_http_info(xero_tenant_id, contacts, opts)
|
|
@@ -17202,6 +17785,7 @@ module XeroRuby
|
|
|
17202
17785
|
# @param contacts [Contacts]
|
|
17203
17786
|
# @param [Hash] opts the optional parameters
|
|
17204
17787
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
17788
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17205
17789
|
# @return [Array<(Contacts, Integer, Hash)>] Contacts data, response status code and response headers
|
|
17206
17790
|
def update_or_create_contacts_with_http_info(xero_tenant_id, contacts, options = {})
|
|
17207
17791
|
opts = options.dup
|
|
@@ -17237,6 +17821,7 @@ module XeroRuby
|
|
|
17237
17821
|
# HTTP header 'Content-Type'
|
|
17238
17822
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
17239
17823
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
17824
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
17240
17825
|
|
|
17241
17826
|
# form parameters
|
|
17242
17827
|
form_params = opts[:form_params] || {}
|
|
@@ -17272,6 +17857,7 @@ module XeroRuby
|
|
|
17272
17857
|
# @param [Hash] opts the optional parameters
|
|
17273
17858
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
17274
17859
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
17860
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17275
17861
|
# @return [CreditNotes]
|
|
17276
17862
|
def update_or_create_credit_notes(xero_tenant_id, credit_notes, opts = {})
|
|
17277
17863
|
data, _status_code, _headers = update_or_create_credit_notes_with_http_info(xero_tenant_id, credit_notes, opts)
|
|
@@ -17284,6 +17870,7 @@ module XeroRuby
|
|
|
17284
17870
|
# @param [Hash] opts the optional parameters
|
|
17285
17871
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
17286
17872
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
17873
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17287
17874
|
# @return [Array<(CreditNotes, Integer, Hash)>] CreditNotes data, response status code and response headers
|
|
17288
17875
|
def update_or_create_credit_notes_with_http_info(xero_tenant_id, credit_notes, options = {})
|
|
17289
17876
|
opts = options.dup
|
|
@@ -17320,6 +17907,7 @@ module XeroRuby
|
|
|
17320
17907
|
# HTTP header 'Content-Type'
|
|
17321
17908
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
17322
17909
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
17910
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
17323
17911
|
|
|
17324
17912
|
# form parameters
|
|
17325
17913
|
form_params = opts[:form_params] || {}
|
|
@@ -17354,6 +17942,7 @@ module XeroRuby
|
|
|
17354
17942
|
# @param employees [Employees] Employees with array of Employee object in body of request
|
|
17355
17943
|
# @param [Hash] opts the optional parameters
|
|
17356
17944
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
17945
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17357
17946
|
# @return [Employees]
|
|
17358
17947
|
def update_or_create_employees(xero_tenant_id, employees, opts = {})
|
|
17359
17948
|
data, _status_code, _headers = update_or_create_employees_with_http_info(xero_tenant_id, employees, opts)
|
|
@@ -17365,6 +17954,7 @@ module XeroRuby
|
|
|
17365
17954
|
# @param employees [Employees] Employees with array of Employee object in body of request
|
|
17366
17955
|
# @param [Hash] opts the optional parameters
|
|
17367
17956
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
17957
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17368
17958
|
# @return [Array<(Employees, Integer, Hash)>] Employees data, response status code and response headers
|
|
17369
17959
|
def update_or_create_employees_with_http_info(xero_tenant_id, employees, options = {})
|
|
17370
17960
|
opts = options.dup
|
|
@@ -17400,6 +17990,7 @@ module XeroRuby
|
|
|
17400
17990
|
# HTTP header 'Content-Type'
|
|
17401
17991
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
17402
17992
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
17993
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
17403
17994
|
|
|
17404
17995
|
# form parameters
|
|
17405
17996
|
form_params = opts[:form_params] || {}
|
|
@@ -17435,6 +18026,7 @@ module XeroRuby
|
|
|
17435
18026
|
# @param [Hash] opts the optional parameters
|
|
17436
18027
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
17437
18028
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
18029
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17438
18030
|
# @return [Invoices]
|
|
17439
18031
|
def update_or_create_invoices(xero_tenant_id, invoices, opts = {})
|
|
17440
18032
|
data, _status_code, _headers = update_or_create_invoices_with_http_info(xero_tenant_id, invoices, opts)
|
|
@@ -17447,6 +18039,7 @@ module XeroRuby
|
|
|
17447
18039
|
# @param [Hash] opts the optional parameters
|
|
17448
18040
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
17449
18041
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
18042
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17450
18043
|
# @return [Array<(Invoices, Integer, Hash)>] Invoices data, response status code and response headers
|
|
17451
18044
|
def update_or_create_invoices_with_http_info(xero_tenant_id, invoices, options = {})
|
|
17452
18045
|
opts = options.dup
|
|
@@ -17483,6 +18076,7 @@ module XeroRuby
|
|
|
17483
18076
|
# HTTP header 'Content-Type'
|
|
17484
18077
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
17485
18078
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
18079
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
17486
18080
|
|
|
17487
18081
|
# form parameters
|
|
17488
18082
|
form_params = opts[:form_params] || {}
|
|
@@ -17518,6 +18112,7 @@ module XeroRuby
|
|
|
17518
18112
|
# @param [Hash] opts the optional parameters
|
|
17519
18113
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
17520
18114
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
18115
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17521
18116
|
# @return [Items]
|
|
17522
18117
|
def update_or_create_items(xero_tenant_id, items, opts = {})
|
|
17523
18118
|
data, _status_code, _headers = update_or_create_items_with_http_info(xero_tenant_id, items, opts)
|
|
@@ -17530,6 +18125,7 @@ module XeroRuby
|
|
|
17530
18125
|
# @param [Hash] opts the optional parameters
|
|
17531
18126
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
17532
18127
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
18128
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17533
18129
|
# @return [Array<(Items, Integer, Hash)>] Items data, response status code and response headers
|
|
17534
18130
|
def update_or_create_items_with_http_info(xero_tenant_id, items, options = {})
|
|
17535
18131
|
opts = options.dup
|
|
@@ -17566,6 +18162,7 @@ module XeroRuby
|
|
|
17566
18162
|
# HTTP header 'Content-Type'
|
|
17567
18163
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
17568
18164
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
18165
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
17569
18166
|
|
|
17570
18167
|
# form parameters
|
|
17571
18168
|
form_params = opts[:form_params] || {}
|
|
@@ -17600,6 +18197,7 @@ module XeroRuby
|
|
|
17600
18197
|
# @param manual_journals [ManualJournals] ManualJournals array with ManualJournal object in body of request
|
|
17601
18198
|
# @param [Hash] opts the optional parameters
|
|
17602
18199
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
18200
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17603
18201
|
# @return [ManualJournals]
|
|
17604
18202
|
def update_or_create_manual_journals(xero_tenant_id, manual_journals, opts = {})
|
|
17605
18203
|
data, _status_code, _headers = update_or_create_manual_journals_with_http_info(xero_tenant_id, manual_journals, opts)
|
|
@@ -17611,6 +18209,7 @@ module XeroRuby
|
|
|
17611
18209
|
# @param manual_journals [ManualJournals] ManualJournals array with ManualJournal object in body of request
|
|
17612
18210
|
# @param [Hash] opts the optional parameters
|
|
17613
18211
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
18212
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17614
18213
|
# @return [Array<(ManualJournals, Integer, Hash)>] ManualJournals data, response status code and response headers
|
|
17615
18214
|
def update_or_create_manual_journals_with_http_info(xero_tenant_id, manual_journals, options = {})
|
|
17616
18215
|
opts = options.dup
|
|
@@ -17646,6 +18245,7 @@ module XeroRuby
|
|
|
17646
18245
|
# HTTP header 'Content-Type'
|
|
17647
18246
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
17648
18247
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
18248
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
17649
18249
|
|
|
17650
18250
|
# form parameters
|
|
17651
18251
|
form_params = opts[:form_params] || {}
|
|
@@ -17680,6 +18280,7 @@ module XeroRuby
|
|
|
17680
18280
|
# @param purchase_orders [PurchaseOrders]
|
|
17681
18281
|
# @param [Hash] opts the optional parameters
|
|
17682
18282
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
18283
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17683
18284
|
# @return [PurchaseOrders]
|
|
17684
18285
|
def update_or_create_purchase_orders(xero_tenant_id, purchase_orders, opts = {})
|
|
17685
18286
|
data, _status_code, _headers = update_or_create_purchase_orders_with_http_info(xero_tenant_id, purchase_orders, opts)
|
|
@@ -17691,6 +18292,7 @@ module XeroRuby
|
|
|
17691
18292
|
# @param purchase_orders [PurchaseOrders]
|
|
17692
18293
|
# @param [Hash] opts the optional parameters
|
|
17693
18294
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
18295
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17694
18296
|
# @return [Array<(PurchaseOrders, Integer, Hash)>] PurchaseOrders data, response status code and response headers
|
|
17695
18297
|
def update_or_create_purchase_orders_with_http_info(xero_tenant_id, purchase_orders, options = {})
|
|
17696
18298
|
opts = options.dup
|
|
@@ -17726,6 +18328,7 @@ module XeroRuby
|
|
|
17726
18328
|
# HTTP header 'Content-Type'
|
|
17727
18329
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
17728
18330
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
18331
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
17729
18332
|
|
|
17730
18333
|
# form parameters
|
|
17731
18334
|
form_params = opts[:form_params] || {}
|
|
@@ -17760,6 +18363,7 @@ module XeroRuby
|
|
|
17760
18363
|
# @param quotes [Quotes]
|
|
17761
18364
|
# @param [Hash] opts the optional parameters
|
|
17762
18365
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
18366
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17763
18367
|
# @return [Quotes]
|
|
17764
18368
|
def update_or_create_quotes(xero_tenant_id, quotes, opts = {})
|
|
17765
18369
|
data, _status_code, _headers = update_or_create_quotes_with_http_info(xero_tenant_id, quotes, opts)
|
|
@@ -17771,6 +18375,7 @@ module XeroRuby
|
|
|
17771
18375
|
# @param quotes [Quotes]
|
|
17772
18376
|
# @param [Hash] opts the optional parameters
|
|
17773
18377
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
18378
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17774
18379
|
# @return [Array<(Quotes, Integer, Hash)>] Quotes data, response status code and response headers
|
|
17775
18380
|
def update_or_create_quotes_with_http_info(xero_tenant_id, quotes, options = {})
|
|
17776
18381
|
opts = options.dup
|
|
@@ -17806,6 +18411,7 @@ module XeroRuby
|
|
|
17806
18411
|
# HTTP header 'Content-Type'
|
|
17807
18412
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
17808
18413
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
18414
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
17809
18415
|
|
|
17810
18416
|
# form parameters
|
|
17811
18417
|
form_params = opts[:form_params] || {}
|
|
@@ -17840,6 +18446,7 @@ module XeroRuby
|
|
|
17840
18446
|
# @param repeating_invoices [RepeatingInvoices] RepeatingInvoices with an array of repeating invoice objects in body of request
|
|
17841
18447
|
# @param [Hash] opts the optional parameters
|
|
17842
18448
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
|
18449
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17843
18450
|
# @return [RepeatingInvoices]
|
|
17844
18451
|
def update_or_create_repeating_invoices(xero_tenant_id, repeating_invoices, opts = {})
|
|
17845
18452
|
data, _status_code, _headers = update_or_create_repeating_invoices_with_http_info(xero_tenant_id, repeating_invoices, opts)
|
|
@@ -17851,6 +18458,7 @@ module XeroRuby
|
|
|
17851
18458
|
# @param repeating_invoices [RepeatingInvoices] RepeatingInvoices with an array of repeating invoice objects in body of request
|
|
17852
18459
|
# @param [Hash] opts the optional parameters
|
|
17853
18460
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
18461
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17854
18462
|
# @return [Array<(RepeatingInvoices, Integer, Hash)>] RepeatingInvoices data, response status code and response headers
|
|
17855
18463
|
def update_or_create_repeating_invoices_with_http_info(xero_tenant_id, repeating_invoices, options = {})
|
|
17856
18464
|
opts = options.dup
|
|
@@ -17886,6 +18494,7 @@ module XeroRuby
|
|
|
17886
18494
|
# HTTP header 'Content-Type'
|
|
17887
18495
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
17888
18496
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
18497
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
17889
18498
|
|
|
17890
18499
|
# form parameters
|
|
17891
18500
|
form_params = opts[:form_params] || {}
|
|
@@ -17920,6 +18529,7 @@ module XeroRuby
|
|
|
17920
18529
|
# @param purchase_order_id [String] Unique identifier for an Purchase Order
|
|
17921
18530
|
# @param purchase_orders [PurchaseOrders]
|
|
17922
18531
|
# @param [Hash] opts the optional parameters
|
|
18532
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17923
18533
|
# @return [PurchaseOrders]
|
|
17924
18534
|
def update_purchase_order(xero_tenant_id, purchase_order_id, purchase_orders, opts = {})
|
|
17925
18535
|
data, _status_code, _headers = update_purchase_order_with_http_info(xero_tenant_id, purchase_order_id, purchase_orders, opts)
|
|
@@ -17931,6 +18541,7 @@ module XeroRuby
|
|
|
17931
18541
|
# @param purchase_order_id [String] Unique identifier for an Purchase Order
|
|
17932
18542
|
# @param purchase_orders [PurchaseOrders]
|
|
17933
18543
|
# @param [Hash] opts the optional parameters
|
|
18544
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17934
18545
|
# @return [Array<(PurchaseOrders, Integer, Hash)>] PurchaseOrders data, response status code and response headers
|
|
17935
18546
|
def update_purchase_order_with_http_info(xero_tenant_id, purchase_order_id, purchase_orders, options = {})
|
|
17936
18547
|
opts = options.dup
|
|
@@ -17969,6 +18580,7 @@ module XeroRuby
|
|
|
17969
18580
|
# HTTP header 'Content-Type'
|
|
17970
18581
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
17971
18582
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
18583
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
17972
18584
|
|
|
17973
18585
|
# form parameters
|
|
17974
18586
|
form_params = opts[:form_params] || {}
|
|
@@ -18004,6 +18616,7 @@ module XeroRuby
|
|
|
18004
18616
|
# @param file_name [String] Name of the attachment
|
|
18005
18617
|
# @param body [String] Byte array of file in body of request
|
|
18006
18618
|
# @param [Hash] opts the optional parameters
|
|
18619
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
18007
18620
|
# @return [Attachments]
|
|
18008
18621
|
def update_purchase_order_attachment_by_file_name(xero_tenant_id, purchase_order_id, file_name, body, opts = {})
|
|
18009
18622
|
data, _status_code, _headers = update_purchase_order_attachment_by_file_name_with_http_info(xero_tenant_id, purchase_order_id, file_name, body, opts)
|
|
@@ -18016,6 +18629,7 @@ module XeroRuby
|
|
|
18016
18629
|
# @param file_name [String] Name of the attachment
|
|
18017
18630
|
# @param body [String] Byte array of file in body of request
|
|
18018
18631
|
# @param [Hash] opts the optional parameters
|
|
18632
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
18019
18633
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
|
18020
18634
|
def update_purchase_order_attachment_by_file_name_with_http_info(xero_tenant_id, purchase_order_id, file_name, body, options = {})
|
|
18021
18635
|
opts = options.dup
|
|
@@ -18058,6 +18672,7 @@ module XeroRuby
|
|
|
18058
18672
|
# HTTP header 'Content-Type'
|
|
18059
18673
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
|
18060
18674
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
18675
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
18061
18676
|
|
|
18062
18677
|
# form parameters
|
|
18063
18678
|
form_params = opts[:form_params] || {}
|
|
@@ -18092,6 +18707,7 @@ module XeroRuby
|
|
|
18092
18707
|
# @param quote_id [String] Unique identifier for an Quote
|
|
18093
18708
|
# @param quotes [Quotes]
|
|
18094
18709
|
# @param [Hash] opts the optional parameters
|
|
18710
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
18095
18711
|
# @return [Quotes]
|
|
18096
18712
|
def update_quote(xero_tenant_id, quote_id, quotes, opts = {})
|
|
18097
18713
|
data, _status_code, _headers = update_quote_with_http_info(xero_tenant_id, quote_id, quotes, opts)
|
|
@@ -18103,6 +18719,7 @@ module XeroRuby
|
|
|
18103
18719
|
# @param quote_id [String] Unique identifier for an Quote
|
|
18104
18720
|
# @param quotes [Quotes]
|
|
18105
18721
|
# @param [Hash] opts the optional parameters
|
|
18722
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
18106
18723
|
# @return [Array<(Quotes, Integer, Hash)>] Quotes data, response status code and response headers
|
|
18107
18724
|
def update_quote_with_http_info(xero_tenant_id, quote_id, quotes, options = {})
|
|
18108
18725
|
opts = options.dup
|
|
@@ -18141,6 +18758,7 @@ module XeroRuby
|
|
|
18141
18758
|
# HTTP header 'Content-Type'
|
|
18142
18759
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
18143
18760
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
18761
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
18144
18762
|
|
|
18145
18763
|
# form parameters
|
|
18146
18764
|
form_params = opts[:form_params] || {}
|
|
@@ -18176,6 +18794,7 @@ module XeroRuby
|
|
|
18176
18794
|
# @param file_name [String] Name of the attachment
|
|
18177
18795
|
# @param body [String] Byte array of file in body of request
|
|
18178
18796
|
# @param [Hash] opts the optional parameters
|
|
18797
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
18179
18798
|
# @return [Attachments]
|
|
18180
18799
|
def update_quote_attachment_by_file_name(xero_tenant_id, quote_id, file_name, body, opts = {})
|
|
18181
18800
|
data, _status_code, _headers = update_quote_attachment_by_file_name_with_http_info(xero_tenant_id, quote_id, file_name, body, opts)
|
|
@@ -18188,6 +18807,7 @@ module XeroRuby
|
|
|
18188
18807
|
# @param file_name [String] Name of the attachment
|
|
18189
18808
|
# @param body [String] Byte array of file in body of request
|
|
18190
18809
|
# @param [Hash] opts the optional parameters
|
|
18810
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
18191
18811
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
|
18192
18812
|
def update_quote_attachment_by_file_name_with_http_info(xero_tenant_id, quote_id, file_name, body, options = {})
|
|
18193
18813
|
opts = options.dup
|
|
@@ -18230,6 +18850,7 @@ module XeroRuby
|
|
|
18230
18850
|
# HTTP header 'Content-Type'
|
|
18231
18851
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
|
18232
18852
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
18853
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
18233
18854
|
|
|
18234
18855
|
# form parameters
|
|
18235
18856
|
form_params = opts[:form_params] || {}
|
|
@@ -18265,6 +18886,7 @@ module XeroRuby
|
|
|
18265
18886
|
# @param receipts [Receipts]
|
|
18266
18887
|
# @param [Hash] opts the optional parameters
|
|
18267
18888
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
18889
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
18268
18890
|
# @return [Receipts]
|
|
18269
18891
|
def update_receipt(xero_tenant_id, receipt_id, receipts, opts = {})
|
|
18270
18892
|
data, _status_code, _headers = update_receipt_with_http_info(xero_tenant_id, receipt_id, receipts, opts)
|
|
@@ -18277,6 +18899,7 @@ module XeroRuby
|
|
|
18277
18899
|
# @param receipts [Receipts]
|
|
18278
18900
|
# @param [Hash] opts the optional parameters
|
|
18279
18901
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
18902
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
18280
18903
|
# @return [Array<(Receipts, Integer, Hash)>] Receipts data, response status code and response headers
|
|
18281
18904
|
def update_receipt_with_http_info(xero_tenant_id, receipt_id, receipts, options = {})
|
|
18282
18905
|
opts = options.dup
|
|
@@ -18316,6 +18939,7 @@ module XeroRuby
|
|
|
18316
18939
|
# HTTP header 'Content-Type'
|
|
18317
18940
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
18318
18941
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
18942
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
18319
18943
|
|
|
18320
18944
|
# form parameters
|
|
18321
18945
|
form_params = opts[:form_params] || {}
|
|
@@ -18351,6 +18975,7 @@ module XeroRuby
|
|
|
18351
18975
|
# @param file_name [String] Name of the attachment
|
|
18352
18976
|
# @param body [String] Byte array of file in body of request
|
|
18353
18977
|
# @param [Hash] opts the optional parameters
|
|
18978
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
18354
18979
|
# @return [Attachments]
|
|
18355
18980
|
def update_receipt_attachment_by_file_name(xero_tenant_id, receipt_id, file_name, body, opts = {})
|
|
18356
18981
|
data, _status_code, _headers = update_receipt_attachment_by_file_name_with_http_info(xero_tenant_id, receipt_id, file_name, body, opts)
|
|
@@ -18363,6 +18988,7 @@ module XeroRuby
|
|
|
18363
18988
|
# @param file_name [String] Name of the attachment
|
|
18364
18989
|
# @param body [String] Byte array of file in body of request
|
|
18365
18990
|
# @param [Hash] opts the optional parameters
|
|
18991
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
18366
18992
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
|
18367
18993
|
def update_receipt_attachment_by_file_name_with_http_info(xero_tenant_id, receipt_id, file_name, body, options = {})
|
|
18368
18994
|
opts = options.dup
|
|
@@ -18405,6 +19031,7 @@ module XeroRuby
|
|
|
18405
19031
|
# HTTP header 'Content-Type'
|
|
18406
19032
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
|
18407
19033
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
19034
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
18408
19035
|
|
|
18409
19036
|
# form parameters
|
|
18410
19037
|
form_params = opts[:form_params] || {}
|
|
@@ -18439,6 +19066,7 @@ module XeroRuby
|
|
|
18439
19066
|
# @param repeating_invoice_id [String] Unique identifier for a Repeating Invoice
|
|
18440
19067
|
# @param repeating_invoices [RepeatingInvoices]
|
|
18441
19068
|
# @param [Hash] opts the optional parameters
|
|
19069
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
18442
19070
|
# @return [RepeatingInvoices]
|
|
18443
19071
|
def update_repeating_invoice(xero_tenant_id, repeating_invoice_id, repeating_invoices, opts = {})
|
|
18444
19072
|
data, _status_code, _headers = update_repeating_invoice_with_http_info(xero_tenant_id, repeating_invoice_id, repeating_invoices, opts)
|
|
@@ -18450,6 +19078,7 @@ module XeroRuby
|
|
|
18450
19078
|
# @param repeating_invoice_id [String] Unique identifier for a Repeating Invoice
|
|
18451
19079
|
# @param repeating_invoices [RepeatingInvoices]
|
|
18452
19080
|
# @param [Hash] opts the optional parameters
|
|
19081
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
18453
19082
|
# @return [Array<(RepeatingInvoices, Integer, Hash)>] RepeatingInvoices data, response status code and response headers
|
|
18454
19083
|
def update_repeating_invoice_with_http_info(xero_tenant_id, repeating_invoice_id, repeating_invoices, options = {})
|
|
18455
19084
|
opts = options.dup
|
|
@@ -18488,6 +19117,7 @@ module XeroRuby
|
|
|
18488
19117
|
# HTTP header 'Content-Type'
|
|
18489
19118
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
18490
19119
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
19120
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
18491
19121
|
|
|
18492
19122
|
# form parameters
|
|
18493
19123
|
form_params = opts[:form_params] || {}
|
|
@@ -18523,6 +19153,7 @@ module XeroRuby
|
|
|
18523
19153
|
# @param file_name [String] Name of the attachment
|
|
18524
19154
|
# @param body [String] Byte array of file in body of request
|
|
18525
19155
|
# @param [Hash] opts the optional parameters
|
|
19156
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
18526
19157
|
# @return [Attachments]
|
|
18527
19158
|
def update_repeating_invoice_attachment_by_file_name(xero_tenant_id, repeating_invoice_id, file_name, body, opts = {})
|
|
18528
19159
|
data, _status_code, _headers = update_repeating_invoice_attachment_by_file_name_with_http_info(xero_tenant_id, repeating_invoice_id, file_name, body, opts)
|
|
@@ -18535,6 +19166,7 @@ module XeroRuby
|
|
|
18535
19166
|
# @param file_name [String] Name of the attachment
|
|
18536
19167
|
# @param body [String] Byte array of file in body of request
|
|
18537
19168
|
# @param [Hash] opts the optional parameters
|
|
19169
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
18538
19170
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
|
18539
19171
|
def update_repeating_invoice_attachment_by_file_name_with_http_info(xero_tenant_id, repeating_invoice_id, file_name, body, options = {})
|
|
18540
19172
|
opts = options.dup
|
|
@@ -18577,6 +19209,7 @@ module XeroRuby
|
|
|
18577
19209
|
# HTTP header 'Content-Type'
|
|
18578
19210
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
|
18579
19211
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
19212
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
18580
19213
|
|
|
18581
19214
|
# form parameters
|
|
18582
19215
|
form_params = opts[:form_params] || {}
|
|
@@ -18610,6 +19243,7 @@ module XeroRuby
|
|
|
18610
19243
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
18611
19244
|
# @param tax_rates [TaxRates]
|
|
18612
19245
|
# @param [Hash] opts the optional parameters
|
|
19246
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
18613
19247
|
# @return [TaxRates]
|
|
18614
19248
|
def update_tax_rate(xero_tenant_id, tax_rates, opts = {})
|
|
18615
19249
|
data, _status_code, _headers = update_tax_rate_with_http_info(xero_tenant_id, tax_rates, opts)
|
|
@@ -18620,6 +19254,7 @@ module XeroRuby
|
|
|
18620
19254
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
18621
19255
|
# @param tax_rates [TaxRates]
|
|
18622
19256
|
# @param [Hash] opts the optional parameters
|
|
19257
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
18623
19258
|
# @return [Array<(TaxRates, Integer, Hash)>] TaxRates data, response status code and response headers
|
|
18624
19259
|
def update_tax_rate_with_http_info(xero_tenant_id, tax_rates, options = {})
|
|
18625
19260
|
opts = options.dup
|
|
@@ -18654,6 +19289,7 @@ module XeroRuby
|
|
|
18654
19289
|
# HTTP header 'Content-Type'
|
|
18655
19290
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
18656
19291
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
19292
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
18657
19293
|
|
|
18658
19294
|
# form parameters
|
|
18659
19295
|
form_params = opts[:form_params] || {}
|
|
@@ -18688,6 +19324,7 @@ module XeroRuby
|
|
|
18688
19324
|
# @param tracking_category_id [String] Unique identifier for a TrackingCategory
|
|
18689
19325
|
# @param tracking_category [TrackingCategory]
|
|
18690
19326
|
# @param [Hash] opts the optional parameters
|
|
19327
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
18691
19328
|
# @return [TrackingCategories]
|
|
18692
19329
|
def update_tracking_category(xero_tenant_id, tracking_category_id, tracking_category, opts = {})
|
|
18693
19330
|
data, _status_code, _headers = update_tracking_category_with_http_info(xero_tenant_id, tracking_category_id, tracking_category, opts)
|
|
@@ -18699,6 +19336,7 @@ module XeroRuby
|
|
|
18699
19336
|
# @param tracking_category_id [String] Unique identifier for a TrackingCategory
|
|
18700
19337
|
# @param tracking_category [TrackingCategory]
|
|
18701
19338
|
# @param [Hash] opts the optional parameters
|
|
19339
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
18702
19340
|
# @return [Array<(TrackingCategories, Integer, Hash)>] TrackingCategories data, response status code and response headers
|
|
18703
19341
|
def update_tracking_category_with_http_info(xero_tenant_id, tracking_category_id, tracking_category, options = {})
|
|
18704
19342
|
opts = options.dup
|
|
@@ -18737,6 +19375,7 @@ module XeroRuby
|
|
|
18737
19375
|
# HTTP header 'Content-Type'
|
|
18738
19376
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
18739
19377
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
19378
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
18740
19379
|
|
|
18741
19380
|
# form parameters
|
|
18742
19381
|
form_params = opts[:form_params] || {}
|
|
@@ -18772,6 +19411,7 @@ module XeroRuby
|
|
|
18772
19411
|
# @param tracking_option_id [String] Unique identifier for a Tracking Option
|
|
18773
19412
|
# @param tracking_option [TrackingOption]
|
|
18774
19413
|
# @param [Hash] opts the optional parameters
|
|
19414
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
18775
19415
|
# @return [TrackingOptions]
|
|
18776
19416
|
def update_tracking_options(xero_tenant_id, tracking_category_id, tracking_option_id, tracking_option, opts = {})
|
|
18777
19417
|
data, _status_code, _headers = update_tracking_options_with_http_info(xero_tenant_id, tracking_category_id, tracking_option_id, tracking_option, opts)
|
|
@@ -18784,6 +19424,7 @@ module XeroRuby
|
|
|
18784
19424
|
# @param tracking_option_id [String] Unique identifier for a Tracking Option
|
|
18785
19425
|
# @param tracking_option [TrackingOption]
|
|
18786
19426
|
# @param [Hash] opts the optional parameters
|
|
19427
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
18787
19428
|
# @return [Array<(TrackingOptions, Integer, Hash)>] TrackingOptions data, response status code and response headers
|
|
18788
19429
|
def update_tracking_options_with_http_info(xero_tenant_id, tracking_category_id, tracking_option_id, tracking_option, options = {})
|
|
18789
19430
|
opts = options.dup
|
|
@@ -18826,6 +19467,7 @@ module XeroRuby
|
|
|
18826
19467
|
# HTTP header 'Content-Type'
|
|
18827
19468
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
18828
19469
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
|
19470
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
18829
19471
|
|
|
18830
19472
|
# form parameters
|
|
18831
19473
|
form_params = opts[:form_params] || {}
|