xero-ruby 4.3.0 → 5.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 +540 -0
- 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 +76 -18
- data/lib/xero-ruby/api/payroll_au_api.rb +95 -30
- data/lib/xero-ruby/api/payroll_nz_api.rb +87 -0
- 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/models/accounting/account_type.rb +0 -4
- data/lib/xero-ruby/models/accounting/allocation.rb +21 -1
- data/lib/xero-ruby/models/accounting/contact.rb +1 -11
- data/lib/xero-ruby/models/accounting/currency_code.rb +0 -1
- data/lib/xero-ruby/models/accounting/tax_rate.rb +3 -2
- data/lib/xero-ruby/models/accounting/tax_type.rb +24 -0
- data/lib/xero-ruby/models/accounting/ten_ninety_nine_contact.rb +75 -4
- data/lib/xero-ruby/models/finance/problem_type.rb +1 -0
- data/lib/xero-ruby/models/payroll_au/country_of_residence.rb +0 -1
- 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_nz/employee.rb +14 -4
- data/lib/xero-ruby/models/projects/currency_code.rb +0 -1
- data/lib/xero-ruby/version.rb +2 -2
- metadata +9 -9
@@ -20,6 +20,7 @@ module XeroRuby
|
|
20
20
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
21
21
|
# @param timesheet_id [String] Identifier for the timesheet
|
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 [TimesheetObject]
|
24
25
|
def approve_timesheet(xero_tenant_id, timesheet_id, opts = {})
|
25
26
|
data, _status_code, _headers = approve_timesheet_with_http_info(xero_tenant_id, timesheet_id, opts)
|
@@ -30,6 +31,7 @@ module XeroRuby
|
|
30
31
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
31
32
|
# @param timesheet_id [String] Identifier for the timesheet
|
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<(TimesheetObject, Integer, Hash)>] TimesheetObject data, response status code and response headers
|
34
36
|
def approve_timesheet_with_http_info(xero_tenant_id, timesheet_id, options = {})
|
35
37
|
opts = options.dup
|
@@ -62,6 +64,7 @@ module XeroRuby
|
|
62
64
|
# HTTP header 'Accept' (if needed)
|
63
65
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
64
66
|
header_params[:'Xero-Tenant-Id'] = xero_tenant_id
|
67
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
65
68
|
|
66
69
|
# form parameters
|
67
70
|
form_params = opts[:form_params] || {}
|
@@ -95,6 +98,7 @@ module XeroRuby
|
|
95
98
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
96
99
|
# @param deduction [Deduction]
|
97
100
|
# @param [Hash] opts the optional parameters
|
101
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
98
102
|
# @return [DeductionObject]
|
99
103
|
def create_deduction(xero_tenant_id, deduction, opts = {})
|
100
104
|
data, _status_code, _headers = create_deduction_with_http_info(xero_tenant_id, deduction, opts)
|
@@ -105,6 +109,7 @@ module XeroRuby
|
|
105
109
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
106
110
|
# @param deduction [Deduction]
|
107
111
|
# @param [Hash] opts the optional parameters
|
112
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
108
113
|
# @return [Array<(DeductionObject, Integer, Hash)>] DeductionObject data, response status code and response headers
|
109
114
|
def create_deduction_with_http_info(xero_tenant_id, deduction, options = {})
|
110
115
|
opts = options.dup
|
@@ -139,6 +144,7 @@ module XeroRuby
|
|
139
144
|
# HTTP header 'Content-Type'
|
140
145
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
141
146
|
header_params[:'Xero-Tenant-Id'] = xero_tenant_id
|
147
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
142
148
|
|
143
149
|
# form parameters
|
144
150
|
form_params = opts[:form_params] || {}
|
@@ -172,6 +178,7 @@ module XeroRuby
|
|
172
178
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
173
179
|
# @param earnings_rate [EarningsRate]
|
174
180
|
# @param [Hash] opts the optional parameters
|
181
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
175
182
|
# @return [EarningsRateObject]
|
176
183
|
def create_earnings_rate(xero_tenant_id, earnings_rate, opts = {})
|
177
184
|
data, _status_code, _headers = create_earnings_rate_with_http_info(xero_tenant_id, earnings_rate, opts)
|
@@ -182,6 +189,7 @@ module XeroRuby
|
|
182
189
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
183
190
|
# @param earnings_rate [EarningsRate]
|
184
191
|
# @param [Hash] opts the optional parameters
|
192
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
185
193
|
# @return [Array<(EarningsRateObject, Integer, Hash)>] EarningsRateObject data, response status code and response headers
|
186
194
|
def create_earnings_rate_with_http_info(xero_tenant_id, earnings_rate, options = {})
|
187
195
|
opts = options.dup
|
@@ -216,6 +224,7 @@ module XeroRuby
|
|
216
224
|
# HTTP header 'Content-Type'
|
217
225
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
218
226
|
header_params[:'Xero-Tenant-Id'] = xero_tenant_id
|
227
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
219
228
|
|
220
229
|
# form parameters
|
221
230
|
form_params = opts[:form_params] || {}
|
@@ -249,6 +258,7 @@ module XeroRuby
|
|
249
258
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
250
259
|
# @param employee [Employee]
|
251
260
|
# @param [Hash] opts the optional parameters
|
261
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
252
262
|
# @return [EmployeeObject]
|
253
263
|
def create_employee(xero_tenant_id, employee, opts = {})
|
254
264
|
data, _status_code, _headers = create_employee_with_http_info(xero_tenant_id, employee, opts)
|
@@ -259,6 +269,7 @@ module XeroRuby
|
|
259
269
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
260
270
|
# @param employee [Employee]
|
261
271
|
# @param [Hash] opts the optional parameters
|
272
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
262
273
|
# @return [Array<(EmployeeObject, Integer, Hash)>] EmployeeObject data, response status code and response headers
|
263
274
|
def create_employee_with_http_info(xero_tenant_id, employee, options = {})
|
264
275
|
opts = options.dup
|
@@ -293,6 +304,7 @@ module XeroRuby
|
|
293
304
|
# HTTP header 'Content-Type'
|
294
305
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
295
306
|
header_params[:'Xero-Tenant-Id'] = xero_tenant_id
|
307
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
296
308
|
|
297
309
|
# form parameters
|
298
310
|
form_params = opts[:form_params] || {}
|
@@ -327,6 +339,7 @@ module XeroRuby
|
|
327
339
|
# @param employee_id [String] Employee id for single object
|
328
340
|
# @param earnings_template [EarningsTemplate]
|
329
341
|
# @param [Hash] opts the optional parameters
|
342
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
330
343
|
# @return [EarningsTemplateObject]
|
331
344
|
def create_employee_earnings_template(xero_tenant_id, employee_id, earnings_template, opts = {})
|
332
345
|
data, _status_code, _headers = create_employee_earnings_template_with_http_info(xero_tenant_id, employee_id, earnings_template, opts)
|
@@ -338,6 +351,7 @@ module XeroRuby
|
|
338
351
|
# @param employee_id [String] Employee id for single object
|
339
352
|
# @param earnings_template [EarningsTemplate]
|
340
353
|
# @param [Hash] opts the optional parameters
|
354
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
341
355
|
# @return [Array<(EarningsTemplateObject, Integer, Hash)>] EarningsTemplateObject data, response status code and response headers
|
342
356
|
def create_employee_earnings_template_with_http_info(xero_tenant_id, employee_id, earnings_template, options = {})
|
343
357
|
opts = options.dup
|
@@ -376,6 +390,7 @@ module XeroRuby
|
|
376
390
|
# HTTP header 'Content-Type'
|
377
391
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
378
392
|
header_params[:'Xero-Tenant-Id'] = xero_tenant_id
|
393
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
379
394
|
|
380
395
|
# form parameters
|
381
396
|
form_params = opts[:form_params] || {}
|
@@ -410,6 +425,7 @@ module XeroRuby
|
|
410
425
|
# @param employee_id [String] Employee id for single object
|
411
426
|
# @param employee_leave [EmployeeLeave]
|
412
427
|
# @param [Hash] opts the optional parameters
|
428
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
413
429
|
# @return [EmployeeLeaveObject]
|
414
430
|
def create_employee_leave(xero_tenant_id, employee_id, employee_leave, opts = {})
|
415
431
|
data, _status_code, _headers = create_employee_leave_with_http_info(xero_tenant_id, employee_id, employee_leave, opts)
|
@@ -421,6 +437,7 @@ module XeroRuby
|
|
421
437
|
# @param employee_id [String] Employee id for single object
|
422
438
|
# @param employee_leave [EmployeeLeave]
|
423
439
|
# @param [Hash] opts the optional parameters
|
440
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
424
441
|
# @return [Array<(EmployeeLeaveObject, Integer, Hash)>] EmployeeLeaveObject data, response status code and response headers
|
425
442
|
def create_employee_leave_with_http_info(xero_tenant_id, employee_id, employee_leave, options = {})
|
426
443
|
opts = options.dup
|
@@ -459,6 +476,7 @@ module XeroRuby
|
|
459
476
|
# HTTP header 'Content-Type'
|
460
477
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
461
478
|
header_params[:'Xero-Tenant-Id'] = xero_tenant_id
|
479
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
462
480
|
|
463
481
|
# form parameters
|
464
482
|
form_params = opts[:form_params] || {}
|
@@ -493,6 +511,7 @@ module XeroRuby
|
|
493
511
|
# @param employee_id [String] Employee id for single object
|
494
512
|
# @param employee_leave_setup [EmployeeLeaveSetup]
|
495
513
|
# @param [Hash] opts the optional parameters
|
514
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
496
515
|
# @return [EmployeeLeaveSetupObject]
|
497
516
|
def create_employee_leave_setup(xero_tenant_id, employee_id, employee_leave_setup, opts = {})
|
498
517
|
data, _status_code, _headers = create_employee_leave_setup_with_http_info(xero_tenant_id, employee_id, employee_leave_setup, opts)
|
@@ -504,6 +523,7 @@ module XeroRuby
|
|
504
523
|
# @param employee_id [String] Employee id for single object
|
505
524
|
# @param employee_leave_setup [EmployeeLeaveSetup]
|
506
525
|
# @param [Hash] opts the optional parameters
|
526
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
507
527
|
# @return [Array<(EmployeeLeaveSetupObject, Integer, Hash)>] EmployeeLeaveSetupObject data, response status code and response headers
|
508
528
|
def create_employee_leave_setup_with_http_info(xero_tenant_id, employee_id, employee_leave_setup, options = {})
|
509
529
|
opts = options.dup
|
@@ -542,6 +562,7 @@ module XeroRuby
|
|
542
562
|
# HTTP header 'Content-Type'
|
543
563
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
544
564
|
header_params[:'Xero-Tenant-Id'] = xero_tenant_id
|
565
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
545
566
|
|
546
567
|
# form parameters
|
547
568
|
form_params = opts[:form_params] || {}
|
@@ -576,6 +597,7 @@ module XeroRuby
|
|
576
597
|
# @param employee_id [String] Employee id for single object
|
577
598
|
# @param employee_leave_type [EmployeeLeaveType]
|
578
599
|
# @param [Hash] opts the optional parameters
|
600
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
579
601
|
# @return [EmployeeLeaveTypeObject]
|
580
602
|
def create_employee_leave_type(xero_tenant_id, employee_id, employee_leave_type, opts = {})
|
581
603
|
data, _status_code, _headers = create_employee_leave_type_with_http_info(xero_tenant_id, employee_id, employee_leave_type, opts)
|
@@ -587,6 +609,7 @@ module XeroRuby
|
|
587
609
|
# @param employee_id [String] Employee id for single object
|
588
610
|
# @param employee_leave_type [EmployeeLeaveType]
|
589
611
|
# @param [Hash] opts the optional parameters
|
612
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
590
613
|
# @return [Array<(EmployeeLeaveTypeObject, Integer, Hash)>] EmployeeLeaveTypeObject data, response status code and response headers
|
591
614
|
def create_employee_leave_type_with_http_info(xero_tenant_id, employee_id, employee_leave_type, options = {})
|
592
615
|
opts = options.dup
|
@@ -625,6 +648,7 @@ module XeroRuby
|
|
625
648
|
# HTTP header 'Content-Type'
|
626
649
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
627
650
|
header_params[:'Xero-Tenant-Id'] = xero_tenant_id
|
651
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
628
652
|
|
629
653
|
# form parameters
|
630
654
|
form_params = opts[:form_params] || {}
|
@@ -659,6 +683,7 @@ module XeroRuby
|
|
659
683
|
# @param employee_id [String] Employee id for single object
|
660
684
|
# @param employee_opening_balance [Array<EmployeeOpeningBalance>]
|
661
685
|
# @param [Hash] opts the optional parameters
|
686
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
662
687
|
# @return [EmployeeOpeningBalancesObject]
|
663
688
|
def create_employee_opening_balances(xero_tenant_id, employee_id, employee_opening_balance, opts = {})
|
664
689
|
data, _status_code, _headers = create_employee_opening_balances_with_http_info(xero_tenant_id, employee_id, employee_opening_balance, opts)
|
@@ -670,6 +695,7 @@ module XeroRuby
|
|
670
695
|
# @param employee_id [String] Employee id for single object
|
671
696
|
# @param employee_opening_balance [Array<EmployeeOpeningBalance>]
|
672
697
|
# @param [Hash] opts the optional parameters
|
698
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
673
699
|
# @return [Array<(EmployeeOpeningBalancesObject, Integer, Hash)>] EmployeeOpeningBalancesObject data, response status code and response headers
|
674
700
|
def create_employee_opening_balances_with_http_info(xero_tenant_id, employee_id, employee_opening_balance, options = {})
|
675
701
|
opts = options.dup
|
@@ -708,6 +734,7 @@ module XeroRuby
|
|
708
734
|
# HTTP header 'Content-Type'
|
709
735
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
710
736
|
header_params[:'Xero-Tenant-Id'] = xero_tenant_id
|
737
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
711
738
|
|
712
739
|
# form parameters
|
713
740
|
form_params = opts[:form_params] || {}
|
@@ -742,6 +769,7 @@ module XeroRuby
|
|
742
769
|
# @param employee_id [String] Employee id for single object
|
743
770
|
# @param payment_method [PaymentMethod]
|
744
771
|
# @param [Hash] opts the optional parameters
|
772
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
745
773
|
# @return [PaymentMethodObject]
|
746
774
|
def create_employee_payment_method(xero_tenant_id, employee_id, payment_method, opts = {})
|
747
775
|
data, _status_code, _headers = create_employee_payment_method_with_http_info(xero_tenant_id, employee_id, payment_method, opts)
|
@@ -753,6 +781,7 @@ module XeroRuby
|
|
753
781
|
# @param employee_id [String] Employee id for single object
|
754
782
|
# @param payment_method [PaymentMethod]
|
755
783
|
# @param [Hash] opts the optional parameters
|
784
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
756
785
|
# @return [Array<(PaymentMethodObject, Integer, Hash)>] PaymentMethodObject data, response status code and response headers
|
757
786
|
def create_employee_payment_method_with_http_info(xero_tenant_id, employee_id, payment_method, options = {})
|
758
787
|
opts = options.dup
|
@@ -791,6 +820,7 @@ module XeroRuby
|
|
791
820
|
# HTTP header 'Content-Type'
|
792
821
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
793
822
|
header_params[:'Xero-Tenant-Id'] = xero_tenant_id
|
823
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
794
824
|
|
795
825
|
# form parameters
|
796
826
|
form_params = opts[:form_params] || {}
|
@@ -825,6 +855,7 @@ module XeroRuby
|
|
825
855
|
# @param employee_id [String] Employee id for single object
|
826
856
|
# @param salary_and_wage [SalaryAndWage]
|
827
857
|
# @param [Hash] opts the optional parameters
|
858
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
828
859
|
# @return [SalaryAndWageObject]
|
829
860
|
def create_employee_salary_and_wage(xero_tenant_id, employee_id, salary_and_wage, opts = {})
|
830
861
|
data, _status_code, _headers = create_employee_salary_and_wage_with_http_info(xero_tenant_id, employee_id, salary_and_wage, opts)
|
@@ -836,6 +867,7 @@ module XeroRuby
|
|
836
867
|
# @param employee_id [String] Employee id for single object
|
837
868
|
# @param salary_and_wage [SalaryAndWage]
|
838
869
|
# @param [Hash] opts the optional parameters
|
870
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
839
871
|
# @return [Array<(SalaryAndWageObject, Integer, Hash)>] SalaryAndWageObject data, response status code and response headers
|
840
872
|
def create_employee_salary_and_wage_with_http_info(xero_tenant_id, employee_id, salary_and_wage, options = {})
|
841
873
|
opts = options.dup
|
@@ -874,6 +906,7 @@ module XeroRuby
|
|
874
906
|
# HTTP header 'Content-Type'
|
875
907
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
876
908
|
header_params[:'Xero-Tenant-Id'] = xero_tenant_id
|
909
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
877
910
|
|
878
911
|
# form parameters
|
879
912
|
form_params = opts[:form_params] || {}
|
@@ -908,6 +941,7 @@ module XeroRuby
|
|
908
941
|
# @param employee_id [String] Employee id for single object
|
909
942
|
# @param employment [Employment]
|
910
943
|
# @param [Hash] opts the optional parameters
|
944
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
911
945
|
# @return [EmploymentObject]
|
912
946
|
def create_employment(xero_tenant_id, employee_id, employment, opts = {})
|
913
947
|
data, _status_code, _headers = create_employment_with_http_info(xero_tenant_id, employee_id, employment, opts)
|
@@ -919,6 +953,7 @@ module XeroRuby
|
|
919
953
|
# @param employee_id [String] Employee id for single object
|
920
954
|
# @param employment [Employment]
|
921
955
|
# @param [Hash] opts the optional parameters
|
956
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
922
957
|
# @return [Array<(EmploymentObject, Integer, Hash)>] EmploymentObject data, response status code and response headers
|
923
958
|
def create_employment_with_http_info(xero_tenant_id, employee_id, employment, options = {})
|
924
959
|
opts = options.dup
|
@@ -957,6 +992,7 @@ module XeroRuby
|
|
957
992
|
# HTTP header 'Content-Type'
|
958
993
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
959
994
|
header_params[:'Xero-Tenant-Id'] = xero_tenant_id
|
995
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
960
996
|
|
961
997
|
# form parameters
|
962
998
|
form_params = opts[:form_params] || {}
|
@@ -990,6 +1026,7 @@ module XeroRuby
|
|
990
1026
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
991
1027
|
# @param leave_type [LeaveType]
|
992
1028
|
# @param [Hash] opts the optional parameters
|
1029
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
993
1030
|
# @return [LeaveTypeObject]
|
994
1031
|
def create_leave_type(xero_tenant_id, leave_type, opts = {})
|
995
1032
|
data, _status_code, _headers = create_leave_type_with_http_info(xero_tenant_id, leave_type, opts)
|
@@ -1000,6 +1037,7 @@ module XeroRuby
|
|
1000
1037
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1001
1038
|
# @param leave_type [LeaveType]
|
1002
1039
|
# @param [Hash] opts the optional parameters
|
1040
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
1003
1041
|
# @return [Array<(LeaveTypeObject, Integer, Hash)>] LeaveTypeObject data, response status code and response headers
|
1004
1042
|
def create_leave_type_with_http_info(xero_tenant_id, leave_type, options = {})
|
1005
1043
|
opts = options.dup
|
@@ -1034,6 +1072,7 @@ module XeroRuby
|
|
1034
1072
|
# HTTP header 'Content-Type'
|
1035
1073
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1036
1074
|
header_params[:'Xero-Tenant-Id'] = xero_tenant_id
|
1075
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
1037
1076
|
|
1038
1077
|
# form parameters
|
1039
1078
|
form_params = opts[:form_params] || {}
|
@@ -1068,6 +1107,7 @@ module XeroRuby
|
|
1068
1107
|
# @param employee_id [String] Employee id for single object
|
1069
1108
|
# @param earnings_template [Array<EarningsTemplate>]
|
1070
1109
|
# @param [Hash] opts the optional parameters
|
1110
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
1071
1111
|
# @return [EmployeeEarningsTemplates]
|
1072
1112
|
def create_multiple_employee_earnings_template(xero_tenant_id, employee_id, earnings_template, opts = {})
|
1073
1113
|
data, _status_code, _headers = create_multiple_employee_earnings_template_with_http_info(xero_tenant_id, employee_id, earnings_template, opts)
|
@@ -1079,6 +1119,7 @@ module XeroRuby
|
|
1079
1119
|
# @param employee_id [String] Employee id for single object
|
1080
1120
|
# @param earnings_template [Array<EarningsTemplate>]
|
1081
1121
|
# @param [Hash] opts the optional parameters
|
1122
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
1082
1123
|
# @return [Array<(EmployeeEarningsTemplates, Integer, Hash)>] EmployeeEarningsTemplates data, response status code and response headers
|
1083
1124
|
def create_multiple_employee_earnings_template_with_http_info(xero_tenant_id, employee_id, earnings_template, options = {})
|
1084
1125
|
opts = options.dup
|
@@ -1117,6 +1158,7 @@ module XeroRuby
|
|
1117
1158
|
# HTTP header 'Content-Type'
|
1118
1159
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1119
1160
|
header_params[:'Xero-Tenant-Id'] = xero_tenant_id
|
1161
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
1120
1162
|
|
1121
1163
|
# form parameters
|
1122
1164
|
form_params = opts[:form_params] || {}
|
@@ -1150,6 +1192,7 @@ module XeroRuby
|
|
1150
1192
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1151
1193
|
# @param pay_run [PayRun]
|
1152
1194
|
# @param [Hash] opts the optional parameters
|
1195
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
1153
1196
|
# @return [PayRunObject]
|
1154
1197
|
def create_pay_run(xero_tenant_id, pay_run, opts = {})
|
1155
1198
|
data, _status_code, _headers = create_pay_run_with_http_info(xero_tenant_id, pay_run, opts)
|
@@ -1160,6 +1203,7 @@ module XeroRuby
|
|
1160
1203
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1161
1204
|
# @param pay_run [PayRun]
|
1162
1205
|
# @param [Hash] opts the optional parameters
|
1206
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
1163
1207
|
# @return [Array<(PayRunObject, Integer, Hash)>] PayRunObject data, response status code and response headers
|
1164
1208
|
def create_pay_run_with_http_info(xero_tenant_id, pay_run, options = {})
|
1165
1209
|
opts = options.dup
|
@@ -1194,6 +1238,7 @@ module XeroRuby
|
|
1194
1238
|
# HTTP header 'Content-Type'
|
1195
1239
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1196
1240
|
header_params[:'Xero-Tenant-Id'] = xero_tenant_id
|
1241
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
1197
1242
|
|
1198
1243
|
# form parameters
|
1199
1244
|
form_params = opts[:form_params] || {}
|
@@ -1227,6 +1272,7 @@ module XeroRuby
|
|
1227
1272
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1228
1273
|
# @param pay_run_calendar [PayRunCalendar]
|
1229
1274
|
# @param [Hash] opts the optional parameters
|
1275
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
1230
1276
|
# @return [PayRunCalendarObject]
|
1231
1277
|
def create_pay_run_calendar(xero_tenant_id, pay_run_calendar, opts = {})
|
1232
1278
|
data, _status_code, _headers = create_pay_run_calendar_with_http_info(xero_tenant_id, pay_run_calendar, opts)
|
@@ -1237,6 +1283,7 @@ module XeroRuby
|
|
1237
1283
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1238
1284
|
# @param pay_run_calendar [PayRunCalendar]
|
1239
1285
|
# @param [Hash] opts the optional parameters
|
1286
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
1240
1287
|
# @return [Array<(PayRunCalendarObject, Integer, Hash)>] PayRunCalendarObject data, response status code and response headers
|
1241
1288
|
def create_pay_run_calendar_with_http_info(xero_tenant_id, pay_run_calendar, options = {})
|
1242
1289
|
opts = options.dup
|
@@ -1271,6 +1318,7 @@ module XeroRuby
|
|
1271
1318
|
# HTTP header 'Content-Type'
|
1272
1319
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1273
1320
|
header_params[:'Xero-Tenant-Id'] = xero_tenant_id
|
1321
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
1274
1322
|
|
1275
1323
|
# form parameters
|
1276
1324
|
form_params = opts[:form_params] || {}
|
@@ -1304,6 +1352,7 @@ module XeroRuby
|
|
1304
1352
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1305
1353
|
# @param reimbursement [Reimbursement]
|
1306
1354
|
# @param [Hash] opts the optional parameters
|
1355
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
1307
1356
|
# @return [ReimbursementObject]
|
1308
1357
|
def create_reimbursement(xero_tenant_id, reimbursement, opts = {})
|
1309
1358
|
data, _status_code, _headers = create_reimbursement_with_http_info(xero_tenant_id, reimbursement, opts)
|
@@ -1314,6 +1363,7 @@ module XeroRuby
|
|
1314
1363
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1315
1364
|
# @param reimbursement [Reimbursement]
|
1316
1365
|
# @param [Hash] opts the optional parameters
|
1366
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
1317
1367
|
# @return [Array<(ReimbursementObject, Integer, Hash)>] ReimbursementObject data, response status code and response headers
|
1318
1368
|
def create_reimbursement_with_http_info(xero_tenant_id, reimbursement, options = {})
|
1319
1369
|
opts = options.dup
|
@@ -1348,6 +1398,7 @@ module XeroRuby
|
|
1348
1398
|
# HTTP header 'Content-Type'
|
1349
1399
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1350
1400
|
header_params[:'Xero-Tenant-Id'] = xero_tenant_id
|
1401
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
1351
1402
|
|
1352
1403
|
# form parameters
|
1353
1404
|
form_params = opts[:form_params] || {}
|
@@ -1381,6 +1432,7 @@ module XeroRuby
|
|
1381
1432
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1382
1433
|
# @param benefit [Benefit]
|
1383
1434
|
# @param [Hash] opts the optional parameters
|
1435
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
1384
1436
|
# @return [SuperannuationObject]
|
1385
1437
|
def create_superannuation(xero_tenant_id, benefit, opts = {})
|
1386
1438
|
data, _status_code, _headers = create_superannuation_with_http_info(xero_tenant_id, benefit, opts)
|
@@ -1391,6 +1443,7 @@ module XeroRuby
|
|
1391
1443
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1392
1444
|
# @param benefit [Benefit]
|
1393
1445
|
# @param [Hash] opts the optional parameters
|
1446
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
1394
1447
|
# @return [Array<(SuperannuationObject, Integer, Hash)>] SuperannuationObject data, response status code and response headers
|
1395
1448
|
def create_superannuation_with_http_info(xero_tenant_id, benefit, options = {})
|
1396
1449
|
opts = options.dup
|
@@ -1425,6 +1478,7 @@ module XeroRuby
|
|
1425
1478
|
# HTTP header 'Content-Type'
|
1426
1479
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1427
1480
|
header_params[:'Xero-Tenant-Id'] = xero_tenant_id
|
1481
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
1428
1482
|
|
1429
1483
|
# form parameters
|
1430
1484
|
form_params = opts[:form_params] || {}
|
@@ -1458,6 +1512,7 @@ module XeroRuby
|
|
1458
1512
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1459
1513
|
# @param timesheet [Timesheet]
|
1460
1514
|
# @param [Hash] opts the optional parameters
|
1515
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
1461
1516
|
# @return [TimesheetObject]
|
1462
1517
|
def create_timesheet(xero_tenant_id, timesheet, opts = {})
|
1463
1518
|
data, _status_code, _headers = create_timesheet_with_http_info(xero_tenant_id, timesheet, opts)
|
@@ -1468,6 +1523,7 @@ module XeroRuby
|
|
1468
1523
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1469
1524
|
# @param timesheet [Timesheet]
|
1470
1525
|
# @param [Hash] opts the optional parameters
|
1526
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
1471
1527
|
# @return [Array<(TimesheetObject, Integer, Hash)>] TimesheetObject data, response status code and response headers
|
1472
1528
|
def create_timesheet_with_http_info(xero_tenant_id, timesheet, options = {})
|
1473
1529
|
opts = options.dup
|
@@ -1502,6 +1558,7 @@ module XeroRuby
|
|
1502
1558
|
# HTTP header 'Content-Type'
|
1503
1559
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1504
1560
|
header_params[:'Xero-Tenant-Id'] = xero_tenant_id
|
1561
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
1505
1562
|
|
1506
1563
|
# form parameters
|
1507
1564
|
form_params = opts[:form_params] || {}
|
@@ -1536,6 +1593,7 @@ module XeroRuby
|
|
1536
1593
|
# @param timesheet_id [String] Identifier for the timesheet
|
1537
1594
|
# @param timesheet_line [TimesheetLine]
|
1538
1595
|
# @param [Hash] opts the optional parameters
|
1596
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
1539
1597
|
# @return [TimesheetLineObject]
|
1540
1598
|
def create_timesheet_line(xero_tenant_id, timesheet_id, timesheet_line, opts = {})
|
1541
1599
|
data, _status_code, _headers = create_timesheet_line_with_http_info(xero_tenant_id, timesheet_id, timesheet_line, opts)
|
@@ -1547,6 +1605,7 @@ module XeroRuby
|
|
1547
1605
|
# @param timesheet_id [String] Identifier for the timesheet
|
1548
1606
|
# @param timesheet_line [TimesheetLine]
|
1549
1607
|
# @param [Hash] opts the optional parameters
|
1608
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
1550
1609
|
# @return [Array<(TimesheetLineObject, Integer, Hash)>] TimesheetLineObject data, response status code and response headers
|
1551
1610
|
def create_timesheet_line_with_http_info(xero_tenant_id, timesheet_id, timesheet_line, options = {})
|
1552
1611
|
opts = options.dup
|
@@ -1585,6 +1644,7 @@ module XeroRuby
|
|
1585
1644
|
# HTTP header 'Content-Type'
|
1586
1645
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1587
1646
|
header_params[:'Xero-Tenant-Id'] = xero_tenant_id
|
1647
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
1588
1648
|
|
1589
1649
|
# form parameters
|
1590
1650
|
form_params = opts[:form_params] || {}
|
@@ -4572,6 +4632,7 @@ module XeroRuby
|
|
4572
4632
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4573
4633
|
# @param timesheet_id [String] Identifier for the timesheet
|
4574
4634
|
# @param [Hash] opts the optional parameters
|
4635
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
4575
4636
|
# @return [TimesheetObject]
|
4576
4637
|
def revert_timesheet(xero_tenant_id, timesheet_id, opts = {})
|
4577
4638
|
data, _status_code, _headers = revert_timesheet_with_http_info(xero_tenant_id, timesheet_id, opts)
|
@@ -4582,6 +4643,7 @@ module XeroRuby
|
|
4582
4643
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4583
4644
|
# @param timesheet_id [String] Identifier for the timesheet
|
4584
4645
|
# @param [Hash] opts the optional parameters
|
4646
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
4585
4647
|
# @return [Array<(TimesheetObject, Integer, Hash)>] TimesheetObject data, response status code and response headers
|
4586
4648
|
def revert_timesheet_with_http_info(xero_tenant_id, timesheet_id, options = {})
|
4587
4649
|
opts = options.dup
|
@@ -4614,6 +4676,7 @@ module XeroRuby
|
|
4614
4676
|
# HTTP header 'Accept' (if needed)
|
4615
4677
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
4616
4678
|
header_params[:'Xero-Tenant-Id'] = xero_tenant_id
|
4679
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
4617
4680
|
|
4618
4681
|
# form parameters
|
4619
4682
|
form_params = opts[:form_params] || {}
|
@@ -4648,6 +4711,7 @@ module XeroRuby
|
|
4648
4711
|
# @param employee_id [String] Employee id for single object
|
4649
4712
|
# @param employee [Employee]
|
4650
4713
|
# @param [Hash] opts the optional parameters
|
4714
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
4651
4715
|
# @return [EmployeeObject]
|
4652
4716
|
def update_employee(xero_tenant_id, employee_id, employee, opts = {})
|
4653
4717
|
data, _status_code, _headers = update_employee_with_http_info(xero_tenant_id, employee_id, employee, opts)
|
@@ -4659,6 +4723,7 @@ module XeroRuby
|
|
4659
4723
|
# @param employee_id [String] Employee id for single object
|
4660
4724
|
# @param employee [Employee]
|
4661
4725
|
# @param [Hash] opts the optional parameters
|
4726
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
4662
4727
|
# @return [Array<(EmployeeObject, Integer, Hash)>] EmployeeObject data, response status code and response headers
|
4663
4728
|
def update_employee_with_http_info(xero_tenant_id, employee_id, employee, options = {})
|
4664
4729
|
opts = options.dup
|
@@ -4697,6 +4762,7 @@ module XeroRuby
|
|
4697
4762
|
# HTTP header 'Content-Type'
|
4698
4763
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
4699
4764
|
header_params[:'Xero-Tenant-Id'] = xero_tenant_id
|
4765
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
4700
4766
|
|
4701
4767
|
# form parameters
|
4702
4768
|
form_params = opts[:form_params] || {}
|
@@ -4732,6 +4798,7 @@ module XeroRuby
|
|
4732
4798
|
# @param pay_template_earning_id [String] Id for single pay template earnings object
|
4733
4799
|
# @param earnings_template [EarningsTemplate]
|
4734
4800
|
# @param [Hash] opts the optional parameters
|
4801
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
4735
4802
|
# @return [EarningsTemplateObject]
|
4736
4803
|
def update_employee_earnings_template(xero_tenant_id, employee_id, pay_template_earning_id, earnings_template, opts = {})
|
4737
4804
|
data, _status_code, _headers = update_employee_earnings_template_with_http_info(xero_tenant_id, employee_id, pay_template_earning_id, earnings_template, opts)
|
@@ -4744,6 +4811,7 @@ module XeroRuby
|
|
4744
4811
|
# @param pay_template_earning_id [String] Id for single pay template earnings object
|
4745
4812
|
# @param earnings_template [EarningsTemplate]
|
4746
4813
|
# @param [Hash] opts the optional parameters
|
4814
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
4747
4815
|
# @return [Array<(EarningsTemplateObject, Integer, Hash)>] EarningsTemplateObject data, response status code and response headers
|
4748
4816
|
def update_employee_earnings_template_with_http_info(xero_tenant_id, employee_id, pay_template_earning_id, earnings_template, options = {})
|
4749
4817
|
opts = options.dup
|
@@ -4786,6 +4854,7 @@ module XeroRuby
|
|
4786
4854
|
# HTTP header 'Content-Type'
|
4787
4855
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
4788
4856
|
header_params[:'Xero-Tenant-Id'] = xero_tenant_id
|
4857
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
4789
4858
|
|
4790
4859
|
# form parameters
|
4791
4860
|
form_params = opts[:form_params] || {}
|
@@ -4821,6 +4890,7 @@ module XeroRuby
|
|
4821
4890
|
# @param leave_id [String] Leave id for single object
|
4822
4891
|
# @param employee_leave [EmployeeLeave]
|
4823
4892
|
# @param [Hash] opts the optional parameters
|
4893
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
4824
4894
|
# @return [EmployeeLeaveObject]
|
4825
4895
|
def update_employee_leave(xero_tenant_id, employee_id, leave_id, employee_leave, opts = {})
|
4826
4896
|
data, _status_code, _headers = update_employee_leave_with_http_info(xero_tenant_id, employee_id, leave_id, employee_leave, opts)
|
@@ -4833,6 +4903,7 @@ module XeroRuby
|
|
4833
4903
|
# @param leave_id [String] Leave id for single object
|
4834
4904
|
# @param employee_leave [EmployeeLeave]
|
4835
4905
|
# @param [Hash] opts the optional parameters
|
4906
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
4836
4907
|
# @return [Array<(EmployeeLeaveObject, Integer, Hash)>] EmployeeLeaveObject data, response status code and response headers
|
4837
4908
|
def update_employee_leave_with_http_info(xero_tenant_id, employee_id, leave_id, employee_leave, options = {})
|
4838
4909
|
opts = options.dup
|
@@ -4875,6 +4946,7 @@ module XeroRuby
|
|
4875
4946
|
# HTTP header 'Content-Type'
|
4876
4947
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
4877
4948
|
header_params[:'Xero-Tenant-Id'] = xero_tenant_id
|
4949
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
4878
4950
|
|
4879
4951
|
# form parameters
|
4880
4952
|
form_params = opts[:form_params] || {}
|
@@ -4910,6 +4982,7 @@ module XeroRuby
|
|
4910
4982
|
# @param salary_and_wages_id [String] Id for single pay template earnings object
|
4911
4983
|
# @param salary_and_wage [SalaryAndWage]
|
4912
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.
|
4913
4986
|
# @return [SalaryAndWageObject]
|
4914
4987
|
def update_employee_salary_and_wage(xero_tenant_id, employee_id, salary_and_wages_id, salary_and_wage, opts = {})
|
4915
4988
|
data, _status_code, _headers = update_employee_salary_and_wage_with_http_info(xero_tenant_id, employee_id, salary_and_wages_id, salary_and_wage, opts)
|
@@ -4922,6 +4995,7 @@ module XeroRuby
|
|
4922
4995
|
# @param salary_and_wages_id [String] Id for single pay template earnings object
|
4923
4996
|
# @param salary_and_wage [SalaryAndWage]
|
4924
4997
|
# @param [Hash] opts the optional parameters
|
4998
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
4925
4999
|
# @return [Array<(SalaryAndWageObject, Integer, Hash)>] SalaryAndWageObject data, response status code and response headers
|
4926
5000
|
def update_employee_salary_and_wage_with_http_info(xero_tenant_id, employee_id, salary_and_wages_id, salary_and_wage, options = {})
|
4927
5001
|
opts = options.dup
|
@@ -4964,6 +5038,7 @@ module XeroRuby
|
|
4964
5038
|
# HTTP header 'Content-Type'
|
4965
5039
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
4966
5040
|
header_params[:'Xero-Tenant-Id'] = xero_tenant_id
|
5041
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
4967
5042
|
|
4968
5043
|
# form parameters
|
4969
5044
|
form_params = opts[:form_params] || {}
|
@@ -4998,6 +5073,7 @@ module XeroRuby
|
|
4998
5073
|
# @param employee_id [String] Employee id for single object
|
4999
5074
|
# @param employee_tax [EmployeeTax]
|
5000
5075
|
# @param [Hash] opts the optional parameters
|
5076
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
5001
5077
|
# @return [EmployeeTaxObject]
|
5002
5078
|
def update_employee_tax(xero_tenant_id, employee_id, employee_tax, opts = {})
|
5003
5079
|
data, _status_code, _headers = update_employee_tax_with_http_info(xero_tenant_id, employee_id, employee_tax, opts)
|
@@ -5009,6 +5085,7 @@ module XeroRuby
|
|
5009
5085
|
# @param employee_id [String] Employee id for single object
|
5010
5086
|
# @param employee_tax [EmployeeTax]
|
5011
5087
|
# @param [Hash] opts the optional parameters
|
5088
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
5012
5089
|
# @return [Array<(EmployeeTaxObject, Integer, Hash)>] EmployeeTaxObject data, response status code and response headers
|
5013
5090
|
def update_employee_tax_with_http_info(xero_tenant_id, employee_id, employee_tax, options = {})
|
5014
5091
|
opts = options.dup
|
@@ -5047,6 +5124,7 @@ module XeroRuby
|
|
5047
5124
|
# HTTP header 'Content-Type'
|
5048
5125
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
5049
5126
|
header_params[:'Xero-Tenant-Id'] = xero_tenant_id
|
5127
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
5050
5128
|
|
5051
5129
|
# form parameters
|
5052
5130
|
form_params = opts[:form_params] || {}
|
@@ -5081,6 +5159,7 @@ module XeroRuby
|
|
5081
5159
|
# @param pay_run_id [String] Identifier for the pay run
|
5082
5160
|
# @param pay_run [PayRun]
|
5083
5161
|
# @param [Hash] opts the optional parameters
|
5162
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
5084
5163
|
# @return [PayRunObject]
|
5085
5164
|
def update_pay_run(xero_tenant_id, pay_run_id, pay_run, opts = {})
|
5086
5165
|
data, _status_code, _headers = update_pay_run_with_http_info(xero_tenant_id, pay_run_id, pay_run, opts)
|
@@ -5092,6 +5171,7 @@ module XeroRuby
|
|
5092
5171
|
# @param pay_run_id [String] Identifier for the pay run
|
5093
5172
|
# @param pay_run [PayRun]
|
5094
5173
|
# @param [Hash] opts the optional parameters
|
5174
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
5095
5175
|
# @return [Array<(PayRunObject, Integer, Hash)>] PayRunObject data, response status code and response headers
|
5096
5176
|
def update_pay_run_with_http_info(xero_tenant_id, pay_run_id, pay_run, options = {})
|
5097
5177
|
opts = options.dup
|
@@ -5130,6 +5210,7 @@ module XeroRuby
|
|
5130
5210
|
# HTTP header 'Content-Type'
|
5131
5211
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
5132
5212
|
header_params[:'Xero-Tenant-Id'] = xero_tenant_id
|
5213
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
5133
5214
|
|
5134
5215
|
# form parameters
|
5135
5216
|
form_params = opts[:form_params] || {}
|
@@ -5164,6 +5245,7 @@ module XeroRuby
|
|
5164
5245
|
# @param pay_slip_id [String] Identifier for the payslip
|
5165
5246
|
# @param pay_slip [PaySlip]
|
5166
5247
|
# @param [Hash] opts the optional parameters
|
5248
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
5167
5249
|
# @return [PaySlipObject]
|
5168
5250
|
def update_pay_slip_line_items(xero_tenant_id, pay_slip_id, pay_slip, opts = {})
|
5169
5251
|
data, _status_code, _headers = update_pay_slip_line_items_with_http_info(xero_tenant_id, pay_slip_id, pay_slip, opts)
|
@@ -5175,6 +5257,7 @@ module XeroRuby
|
|
5175
5257
|
# @param pay_slip_id [String] Identifier for the payslip
|
5176
5258
|
# @param pay_slip [PaySlip]
|
5177
5259
|
# @param [Hash] opts the optional parameters
|
5260
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
5178
5261
|
# @return [Array<(PaySlipObject, Integer, Hash)>] PaySlipObject data, response status code and response headers
|
5179
5262
|
def update_pay_slip_line_items_with_http_info(xero_tenant_id, pay_slip_id, pay_slip, options = {})
|
5180
5263
|
opts = options.dup
|
@@ -5213,6 +5296,7 @@ module XeroRuby
|
|
5213
5296
|
# HTTP header 'Content-Type'
|
5214
5297
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
5215
5298
|
header_params[:'Xero-Tenant-Id'] = xero_tenant_id
|
5299
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
5216
5300
|
|
5217
5301
|
# form parameters
|
5218
5302
|
form_params = opts[:form_params] || {}
|
@@ -5248,6 +5332,7 @@ module XeroRuby
|
|
5248
5332
|
# @param timesheet_line_id [String] Identifier for the timesheet line
|
5249
5333
|
# @param timesheet_line [TimesheetLine]
|
5250
5334
|
# @param [Hash] opts the optional parameters
|
5335
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
5251
5336
|
# @return [TimesheetLineObject]
|
5252
5337
|
def update_timesheet_line(xero_tenant_id, timesheet_id, timesheet_line_id, timesheet_line, opts = {})
|
5253
5338
|
data, _status_code, _headers = update_timesheet_line_with_http_info(xero_tenant_id, timesheet_id, timesheet_line_id, timesheet_line, opts)
|
@@ -5260,6 +5345,7 @@ module XeroRuby
|
|
5260
5345
|
# @param timesheet_line_id [String] Identifier for the timesheet line
|
5261
5346
|
# @param timesheet_line [TimesheetLine]
|
5262
5347
|
# @param [Hash] opts the optional parameters
|
5348
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
5263
5349
|
# @return [Array<(TimesheetLineObject, Integer, Hash)>] TimesheetLineObject data, response status code and response headers
|
5264
5350
|
def update_timesheet_line_with_http_info(xero_tenant_id, timesheet_id, timesheet_line_id, timesheet_line, options = {})
|
5265
5351
|
opts = options.dup
|
@@ -5302,6 +5388,7 @@ module XeroRuby
|
|
5302
5388
|
# HTTP header 'Content-Type'
|
5303
5389
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
5304
5390
|
header_params[:'Xero-Tenant-Id'] = xero_tenant_id
|
5391
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
5305
5392
|
|
5306
5393
|
# form parameters
|
5307
5394
|
form_params = opts[:form_params] || {}
|