xero-ruby 4.3.0 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- 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 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] || {}
|
@@ -15569,6 +15992,7 @@ module XeroRuby
|
|
15569
15992
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
15570
15993
|
# @param setup [Setup] Object including an accounts array, a conversion balances array and a conversion date object in body of request
|
15571
15994
|
# @param [Hash] opts the optional parameters
|
15995
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
15572
15996
|
# @return [ImportSummaryObject]
|
15573
15997
|
def post_setup(xero_tenant_id, setup, opts = {})
|
15574
15998
|
data, _status_code, _headers = post_setup_with_http_info(xero_tenant_id, setup, opts)
|
@@ -15579,6 +16003,7 @@ module XeroRuby
|
|
15579
16003
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
15580
16004
|
# @param setup [Setup] Object including an accounts array, a conversion balances array and a conversion date object in body of request
|
15581
16005
|
# @param [Hash] opts the optional parameters
|
16006
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
15582
16007
|
# @return [Array<(ImportSummaryObject, Integer, Hash)>] ImportSummaryObject data, response status code and response headers
|
15583
16008
|
def post_setup_with_http_info(xero_tenant_id, setup, options = {})
|
15584
16009
|
opts = options.dup
|
@@ -15613,6 +16038,7 @@ module XeroRuby
|
|
15613
16038
|
# HTTP header 'Content-Type'
|
15614
16039
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
15615
16040
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
16041
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
15616
16042
|
|
15617
16043
|
# form parameters
|
15618
16044
|
form_params = opts[:form_params] || {}
|
@@ -15647,6 +16073,7 @@ module XeroRuby
|
|
15647
16073
|
# @param account_id [String] Unique identifier for Account object
|
15648
16074
|
# @param accounts [Accounts] Request of type Accounts array with one Account
|
15649
16075
|
# @param [Hash] opts the optional parameters
|
16076
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
15650
16077
|
# @return [Accounts]
|
15651
16078
|
def update_account(xero_tenant_id, account_id, accounts, opts = {})
|
15652
16079
|
data, _status_code, _headers = update_account_with_http_info(xero_tenant_id, account_id, accounts, opts)
|
@@ -15658,6 +16085,7 @@ module XeroRuby
|
|
15658
16085
|
# @param account_id [String] Unique identifier for Account object
|
15659
16086
|
# @param accounts [Accounts] Request of type Accounts array with one Account
|
15660
16087
|
# @param [Hash] opts the optional parameters
|
16088
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
15661
16089
|
# @return [Array<(Accounts, Integer, Hash)>] Accounts data, response status code and response headers
|
15662
16090
|
def update_account_with_http_info(xero_tenant_id, account_id, accounts, options = {})
|
15663
16091
|
opts = options.dup
|
@@ -15696,6 +16124,7 @@ module XeroRuby
|
|
15696
16124
|
# HTTP header 'Content-Type'
|
15697
16125
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
15698
16126
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
16127
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
15699
16128
|
|
15700
16129
|
# form parameters
|
15701
16130
|
form_params = opts[:form_params] || {}
|
@@ -15731,6 +16160,7 @@ module XeroRuby
|
|
15731
16160
|
# @param file_name [String] Name of the attachment
|
15732
16161
|
# @param body [String] Byte array of file in body of request
|
15733
16162
|
# @param [Hash] opts the optional parameters
|
16163
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
15734
16164
|
# @return [Attachments]
|
15735
16165
|
def update_account_attachment_by_file_name(xero_tenant_id, account_id, file_name, body, opts = {})
|
15736
16166
|
data, _status_code, _headers = update_account_attachment_by_file_name_with_http_info(xero_tenant_id, account_id, file_name, body, opts)
|
@@ -15743,6 +16173,7 @@ module XeroRuby
|
|
15743
16173
|
# @param file_name [String] Name of the attachment
|
15744
16174
|
# @param body [String] Byte array of file in body of request
|
15745
16175
|
# @param [Hash] opts the optional parameters
|
16176
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
15746
16177
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
15747
16178
|
def update_account_attachment_by_file_name_with_http_info(xero_tenant_id, account_id, file_name, body, options = {})
|
15748
16179
|
opts = options.dup
|
@@ -15785,6 +16216,7 @@ module XeroRuby
|
|
15785
16216
|
# HTTP header 'Content-Type'
|
15786
16217
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
15787
16218
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
16219
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
15788
16220
|
|
15789
16221
|
# form parameters
|
15790
16222
|
form_params = opts[:form_params] || {}
|
@@ -15820,6 +16252,7 @@ module XeroRuby
|
|
15820
16252
|
# @param bank_transactions [BankTransactions]
|
15821
16253
|
# @param [Hash] opts the optional parameters
|
15822
16254
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
16255
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
15823
16256
|
# @return [BankTransactions]
|
15824
16257
|
def update_bank_transaction(xero_tenant_id, bank_transaction_id, bank_transactions, opts = {})
|
15825
16258
|
data, _status_code, _headers = update_bank_transaction_with_http_info(xero_tenant_id, bank_transaction_id, bank_transactions, opts)
|
@@ -15832,6 +16265,7 @@ module XeroRuby
|
|
15832
16265
|
# @param bank_transactions [BankTransactions]
|
15833
16266
|
# @param [Hash] opts the optional parameters
|
15834
16267
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
16268
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
15835
16269
|
# @return [Array<(BankTransactions, Integer, Hash)>] BankTransactions data, response status code and response headers
|
15836
16270
|
def update_bank_transaction_with_http_info(xero_tenant_id, bank_transaction_id, bank_transactions, options = {})
|
15837
16271
|
opts = options.dup
|
@@ -15871,6 +16305,7 @@ module XeroRuby
|
|
15871
16305
|
# HTTP header 'Content-Type'
|
15872
16306
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
15873
16307
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
16308
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
15874
16309
|
|
15875
16310
|
# form parameters
|
15876
16311
|
form_params = opts[:form_params] || {}
|
@@ -15906,6 +16341,7 @@ module XeroRuby
|
|
15906
16341
|
# @param file_name [String] Name of the attachment
|
15907
16342
|
# @param body [String] Byte array of file in body of request
|
15908
16343
|
# @param [Hash] opts the optional parameters
|
16344
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
15909
16345
|
# @return [Attachments]
|
15910
16346
|
def update_bank_transaction_attachment_by_file_name(xero_tenant_id, bank_transaction_id, file_name, body, opts = {})
|
15911
16347
|
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 +16354,7 @@ module XeroRuby
|
|
15918
16354
|
# @param file_name [String] Name of the attachment
|
15919
16355
|
# @param body [String] Byte array of file in body of request
|
15920
16356
|
# @param [Hash] opts the optional parameters
|
16357
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
15921
16358
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
15922
16359
|
def update_bank_transaction_attachment_by_file_name_with_http_info(xero_tenant_id, bank_transaction_id, file_name, body, options = {})
|
15923
16360
|
opts = options.dup
|
@@ -15960,6 +16397,7 @@ module XeroRuby
|
|
15960
16397
|
# HTTP header 'Content-Type'
|
15961
16398
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
15962
16399
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
16400
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
15963
16401
|
|
15964
16402
|
# form parameters
|
15965
16403
|
form_params = opts[:form_params] || {}
|
@@ -15994,6 +16432,7 @@ module XeroRuby
|
|
15994
16432
|
# @param file_name [String] Name of the attachment
|
15995
16433
|
# @param body [String] Byte array of file in body of request
|
15996
16434
|
# @param [Hash] opts the optional parameters
|
16435
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
15997
16436
|
# @return [Attachments]
|
15998
16437
|
def update_bank_transfer_attachment_by_file_name(xero_tenant_id, bank_transfer_id, file_name, body, opts = {})
|
15999
16438
|
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 +16444,7 @@ module XeroRuby
|
|
16005
16444
|
# @param file_name [String] Name of the attachment
|
16006
16445
|
# @param body [String] Byte array of file in body of request
|
16007
16446
|
# @param [Hash] opts the optional parameters
|
16447
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
16008
16448
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
16009
16449
|
def update_bank_transfer_attachment_by_file_name_with_http_info(xero_tenant_id, bank_transfer_id, file_name, body, options = {})
|
16010
16450
|
opts = options.dup
|
@@ -16047,6 +16487,7 @@ module XeroRuby
|
|
16047
16487
|
# HTTP header 'Content-Type'
|
16048
16488
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
16049
16489
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
16490
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
16050
16491
|
|
16051
16492
|
# form parameters
|
16052
16493
|
form_params = opts[:form_params] || {}
|
@@ -16081,6 +16522,7 @@ module XeroRuby
|
|
16081
16522
|
# @param contact_id [String] Unique identifier for a Contact
|
16082
16523
|
# @param contacts [Contacts] an array of Contacts containing single Contact object with properties to update
|
16083
16524
|
# @param [Hash] opts the optional parameters
|
16525
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
16084
16526
|
# @return [Contacts]
|
16085
16527
|
def update_contact(xero_tenant_id, contact_id, contacts, opts = {})
|
16086
16528
|
data, _status_code, _headers = update_contact_with_http_info(xero_tenant_id, contact_id, contacts, opts)
|
@@ -16092,6 +16534,7 @@ module XeroRuby
|
|
16092
16534
|
# @param contact_id [String] Unique identifier for a Contact
|
16093
16535
|
# @param contacts [Contacts] an array of Contacts containing single Contact object with properties to update
|
16094
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.
|
16095
16538
|
# @return [Array<(Contacts, Integer, Hash)>] Contacts data, response status code and response headers
|
16096
16539
|
def update_contact_with_http_info(xero_tenant_id, contact_id, contacts, options = {})
|
16097
16540
|
opts = options.dup
|
@@ -16130,6 +16573,7 @@ module XeroRuby
|
|
16130
16573
|
# HTTP header 'Content-Type'
|
16131
16574
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
16132
16575
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
16576
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
16133
16577
|
|
16134
16578
|
# form parameters
|
16135
16579
|
form_params = opts[:form_params] || {}
|
@@ -16164,6 +16608,7 @@ module XeroRuby
|
|
16164
16608
|
# @param file_name [String] Name of the attachment
|
16165
16609
|
# @param body [String] Byte array of file in body of request
|
16166
16610
|
# @param [Hash] opts the optional parameters
|
16611
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
16167
16612
|
# @return [Attachments]
|
16168
16613
|
def update_contact_attachment_by_file_name(xero_tenant_id, contact_id, file_name, body, opts = {})
|
16169
16614
|
data, _status_code, _headers = update_contact_attachment_by_file_name_with_http_info(xero_tenant_id, contact_id, file_name, body, opts)
|
@@ -16175,6 +16620,7 @@ module XeroRuby
|
|
16175
16620
|
# @param file_name [String] Name of the attachment
|
16176
16621
|
# @param body [String] Byte array of file in body of request
|
16177
16622
|
# @param [Hash] opts the optional parameters
|
16623
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
16178
16624
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
16179
16625
|
def update_contact_attachment_by_file_name_with_http_info(xero_tenant_id, contact_id, file_name, body, options = {})
|
16180
16626
|
opts = options.dup
|
@@ -16217,6 +16663,7 @@ module XeroRuby
|
|
16217
16663
|
# HTTP header 'Content-Type'
|
16218
16664
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
16219
16665
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
16666
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
16220
16667
|
|
16221
16668
|
# form parameters
|
16222
16669
|
form_params = opts[:form_params] || {}
|
@@ -16251,6 +16698,7 @@ module XeroRuby
|
|
16251
16698
|
# @param contact_group_id [String] Unique identifier for a Contact Group
|
16252
16699
|
# @param contact_groups [ContactGroups] an array of Contact groups with Name of specific group to update
|
16253
16700
|
# @param [Hash] opts the optional parameters
|
16701
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
16254
16702
|
# @return [ContactGroups]
|
16255
16703
|
def update_contact_group(xero_tenant_id, contact_group_id, contact_groups, opts = {})
|
16256
16704
|
data, _status_code, _headers = update_contact_group_with_http_info(xero_tenant_id, contact_group_id, contact_groups, opts)
|
@@ -16262,6 +16710,7 @@ module XeroRuby
|
|
16262
16710
|
# @param contact_group_id [String] Unique identifier for a Contact Group
|
16263
16711
|
# @param contact_groups [ContactGroups] an array of Contact groups with Name of specific group to update
|
16264
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.
|
16265
16714
|
# @return [Array<(ContactGroups, Integer, Hash)>] ContactGroups data, response status code and response headers
|
16266
16715
|
def update_contact_group_with_http_info(xero_tenant_id, contact_group_id, contact_groups, options = {})
|
16267
16716
|
opts = options.dup
|
@@ -16300,6 +16749,7 @@ module XeroRuby
|
|
16300
16749
|
# HTTP header 'Content-Type'
|
16301
16750
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
16302
16751
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
16752
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
16303
16753
|
|
16304
16754
|
# form parameters
|
16305
16755
|
form_params = opts[:form_params] || {}
|
@@ -16335,6 +16785,7 @@ module XeroRuby
|
|
16335
16785
|
# @param credit_notes [CreditNotes] an array of Credit Notes containing credit note details to update
|
16336
16786
|
# @param [Hash] opts the optional parameters
|
16337
16787
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
16788
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
16338
16789
|
# @return [CreditNotes]
|
16339
16790
|
def update_credit_note(xero_tenant_id, credit_note_id, credit_notes, opts = {})
|
16340
16791
|
data, _status_code, _headers = update_credit_note_with_http_info(xero_tenant_id, credit_note_id, credit_notes, opts)
|
@@ -16347,6 +16798,7 @@ module XeroRuby
|
|
16347
16798
|
# @param credit_notes [CreditNotes] an array of Credit Notes containing credit note details to update
|
16348
16799
|
# @param [Hash] opts the optional parameters
|
16349
16800
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
16801
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
16350
16802
|
# @return [Array<(CreditNotes, Integer, Hash)>] CreditNotes data, response status code and response headers
|
16351
16803
|
def update_credit_note_with_http_info(xero_tenant_id, credit_note_id, credit_notes, options = {})
|
16352
16804
|
opts = options.dup
|
@@ -16386,6 +16838,7 @@ module XeroRuby
|
|
16386
16838
|
# HTTP header 'Content-Type'
|
16387
16839
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
16388
16840
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
16841
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
16389
16842
|
|
16390
16843
|
# form parameters
|
16391
16844
|
form_params = opts[:form_params] || {}
|
@@ -16421,6 +16874,7 @@ module XeroRuby
|
|
16421
16874
|
# @param file_name [String] Name of the attachment
|
16422
16875
|
# @param body [String] Byte array of file in body of request
|
16423
16876
|
# @param [Hash] opts the optional parameters
|
16877
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
16424
16878
|
# @return [Attachments]
|
16425
16879
|
def update_credit_note_attachment_by_file_name(xero_tenant_id, credit_note_id, file_name, body, opts = {})
|
16426
16880
|
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 +16887,7 @@ module XeroRuby
|
|
16433
16887
|
# @param file_name [String] Name of the attachment
|
16434
16888
|
# @param body [String] Byte array of file in body of request
|
16435
16889
|
# @param [Hash] opts the optional parameters
|
16890
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
16436
16891
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
16437
16892
|
def update_credit_note_attachment_by_file_name_with_http_info(xero_tenant_id, credit_note_id, file_name, body, options = {})
|
16438
16893
|
opts = options.dup
|
@@ -16475,6 +16930,7 @@ module XeroRuby
|
|
16475
16930
|
# HTTP header 'Content-Type'
|
16476
16931
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
16477
16932
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
16933
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
16478
16934
|
|
16479
16935
|
# form parameters
|
16480
16936
|
form_params = opts[:form_params] || {}
|
@@ -16509,6 +16965,7 @@ module XeroRuby
|
|
16509
16965
|
# @param expense_claim_id [String] Unique identifier for a ExpenseClaim
|
16510
16966
|
# @param expense_claims [ExpenseClaims]
|
16511
16967
|
# @param [Hash] opts the optional parameters
|
16968
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
16512
16969
|
# @return [ExpenseClaims]
|
16513
16970
|
def update_expense_claim(xero_tenant_id, expense_claim_id, expense_claims, opts = {})
|
16514
16971
|
data, _status_code, _headers = update_expense_claim_with_http_info(xero_tenant_id, expense_claim_id, expense_claims, opts)
|
@@ -16520,6 +16977,7 @@ module XeroRuby
|
|
16520
16977
|
# @param expense_claim_id [String] Unique identifier for a ExpenseClaim
|
16521
16978
|
# @param expense_claims [ExpenseClaims]
|
16522
16979
|
# @param [Hash] opts the optional parameters
|
16980
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
16523
16981
|
# @return [Array<(ExpenseClaims, Integer, Hash)>] ExpenseClaims data, response status code and response headers
|
16524
16982
|
def update_expense_claim_with_http_info(xero_tenant_id, expense_claim_id, expense_claims, options = {})
|
16525
16983
|
opts = options.dup
|
@@ -16558,6 +17016,7 @@ module XeroRuby
|
|
16558
17016
|
# HTTP header 'Content-Type'
|
16559
17017
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
16560
17018
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
17019
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
16561
17020
|
|
16562
17021
|
# form parameters
|
16563
17022
|
form_params = opts[:form_params] || {}
|
@@ -16593,6 +17052,7 @@ module XeroRuby
|
|
16593
17052
|
# @param invoices [Invoices]
|
16594
17053
|
# @param [Hash] opts the optional parameters
|
16595
17054
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
17055
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
16596
17056
|
# @return [Invoices]
|
16597
17057
|
def update_invoice(xero_tenant_id, invoice_id, invoices, opts = {})
|
16598
17058
|
data, _status_code, _headers = update_invoice_with_http_info(xero_tenant_id, invoice_id, invoices, opts)
|
@@ -16605,6 +17065,7 @@ module XeroRuby
|
|
16605
17065
|
# @param invoices [Invoices]
|
16606
17066
|
# @param [Hash] opts the optional parameters
|
16607
17067
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
17068
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
16608
17069
|
# @return [Array<(Invoices, Integer, Hash)>] Invoices data, response status code and response headers
|
16609
17070
|
def update_invoice_with_http_info(xero_tenant_id, invoice_id, invoices, options = {})
|
16610
17071
|
opts = options.dup
|
@@ -16644,6 +17105,7 @@ module XeroRuby
|
|
16644
17105
|
# HTTP header 'Content-Type'
|
16645
17106
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
16646
17107
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
17108
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
16647
17109
|
|
16648
17110
|
# form parameters
|
16649
17111
|
form_params = opts[:form_params] || {}
|
@@ -16679,6 +17141,7 @@ module XeroRuby
|
|
16679
17141
|
# @param file_name [String] Name of the attachment
|
16680
17142
|
# @param body [String] Byte array of file in body of request
|
16681
17143
|
# @param [Hash] opts the optional parameters
|
17144
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
16682
17145
|
# @return [Attachments]
|
16683
17146
|
def update_invoice_attachment_by_file_name(xero_tenant_id, invoice_id, file_name, body, opts = {})
|
16684
17147
|
data, _status_code, _headers = update_invoice_attachment_by_file_name_with_http_info(xero_tenant_id, invoice_id, file_name, body, opts)
|
@@ -16691,6 +17154,7 @@ module XeroRuby
|
|
16691
17154
|
# @param file_name [String] Name of the attachment
|
16692
17155
|
# @param body [String] Byte array of file in body of request
|
16693
17156
|
# @param [Hash] opts the optional parameters
|
17157
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
16694
17158
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
16695
17159
|
def update_invoice_attachment_by_file_name_with_http_info(xero_tenant_id, invoice_id, file_name, body, options = {})
|
16696
17160
|
opts = options.dup
|
@@ -16733,6 +17197,7 @@ module XeroRuby
|
|
16733
17197
|
# HTTP header 'Content-Type'
|
16734
17198
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
16735
17199
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
17200
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
16736
17201
|
|
16737
17202
|
# form parameters
|
16738
17203
|
form_params = opts[:form_params] || {}
|
@@ -16768,6 +17233,7 @@ module XeroRuby
|
|
16768
17233
|
# @param items [Items]
|
16769
17234
|
# @param [Hash] opts the optional parameters
|
16770
17235
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
17236
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
16771
17237
|
# @return [Items]
|
16772
17238
|
def update_item(xero_tenant_id, item_id, items, opts = {})
|
16773
17239
|
data, _status_code, _headers = update_item_with_http_info(xero_tenant_id, item_id, items, opts)
|
@@ -16780,6 +17246,7 @@ module XeroRuby
|
|
16780
17246
|
# @param items [Items]
|
16781
17247
|
# @param [Hash] opts the optional parameters
|
16782
17248
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
17249
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
16783
17250
|
# @return [Array<(Items, Integer, Hash)>] Items data, response status code and response headers
|
16784
17251
|
def update_item_with_http_info(xero_tenant_id, item_id, items, options = {})
|
16785
17252
|
opts = options.dup
|
@@ -16819,6 +17286,7 @@ module XeroRuby
|
|
16819
17286
|
# HTTP header 'Content-Type'
|
16820
17287
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
16821
17288
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
17289
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
16822
17290
|
|
16823
17291
|
# form parameters
|
16824
17292
|
form_params = opts[:form_params] || {}
|
@@ -16853,6 +17321,7 @@ module XeroRuby
|
|
16853
17321
|
# @param linked_transaction_id [String] Unique identifier for a LinkedTransaction
|
16854
17322
|
# @param linked_transactions [LinkedTransactions]
|
16855
17323
|
# @param [Hash] opts the optional parameters
|
17324
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
16856
17325
|
# @return [LinkedTransactions]
|
16857
17326
|
def update_linked_transaction(xero_tenant_id, linked_transaction_id, linked_transactions, opts = {})
|
16858
17327
|
data, _status_code, _headers = update_linked_transaction_with_http_info(xero_tenant_id, linked_transaction_id, linked_transactions, opts)
|
@@ -16864,6 +17333,7 @@ module XeroRuby
|
|
16864
17333
|
# @param linked_transaction_id [String] Unique identifier for a LinkedTransaction
|
16865
17334
|
# @param linked_transactions [LinkedTransactions]
|
16866
17335
|
# @param [Hash] opts the optional parameters
|
17336
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
16867
17337
|
# @return [Array<(LinkedTransactions, Integer, Hash)>] LinkedTransactions data, response status code and response headers
|
16868
17338
|
def update_linked_transaction_with_http_info(xero_tenant_id, linked_transaction_id, linked_transactions, options = {})
|
16869
17339
|
opts = options.dup
|
@@ -16902,6 +17372,7 @@ module XeroRuby
|
|
16902
17372
|
# HTTP header 'Content-Type'
|
16903
17373
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
16904
17374
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
17375
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
16905
17376
|
|
16906
17377
|
# form parameters
|
16907
17378
|
form_params = opts[:form_params] || {}
|
@@ -16936,6 +17407,7 @@ module XeroRuby
|
|
16936
17407
|
# @param manual_journal_id [String] Unique identifier for a ManualJournal
|
16937
17408
|
# @param manual_journals [ManualJournals]
|
16938
17409
|
# @param [Hash] opts the optional parameters
|
17410
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
16939
17411
|
# @return [ManualJournals]
|
16940
17412
|
def update_manual_journal(xero_tenant_id, manual_journal_id, manual_journals, opts = {})
|
16941
17413
|
data, _status_code, _headers = update_manual_journal_with_http_info(xero_tenant_id, manual_journal_id, manual_journals, opts)
|
@@ -16947,6 +17419,7 @@ module XeroRuby
|
|
16947
17419
|
# @param manual_journal_id [String] Unique identifier for a ManualJournal
|
16948
17420
|
# @param manual_journals [ManualJournals]
|
16949
17421
|
# @param [Hash] opts the optional parameters
|
17422
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
16950
17423
|
# @return [Array<(ManualJournals, Integer, Hash)>] ManualJournals data, response status code and response headers
|
16951
17424
|
def update_manual_journal_with_http_info(xero_tenant_id, manual_journal_id, manual_journals, options = {})
|
16952
17425
|
opts = options.dup
|
@@ -16985,6 +17458,7 @@ module XeroRuby
|
|
16985
17458
|
# HTTP header 'Content-Type'
|
16986
17459
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
16987
17460
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
17461
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
16988
17462
|
|
16989
17463
|
# form parameters
|
16990
17464
|
form_params = opts[:form_params] || {}
|
@@ -17020,6 +17494,7 @@ module XeroRuby
|
|
17020
17494
|
# @param file_name [String] Name of the attachment
|
17021
17495
|
# @param body [String] Byte array of file in body of request
|
17022
17496
|
# @param [Hash] opts the optional parameters
|
17497
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
17023
17498
|
# @return [Attachments]
|
17024
17499
|
def update_manual_journal_attachment_by_file_name(xero_tenant_id, manual_journal_id, file_name, body, opts = {})
|
17025
17500
|
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 +17507,7 @@ module XeroRuby
|
|
17032
17507
|
# @param file_name [String] Name of the attachment
|
17033
17508
|
# @param body [String] Byte array of file in body of request
|
17034
17509
|
# @param [Hash] opts the optional parameters
|
17510
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
17035
17511
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
17036
17512
|
def update_manual_journal_attachment_by_file_name_with_http_info(xero_tenant_id, manual_journal_id, file_name, body, options = {})
|
17037
17513
|
opts = options.dup
|
@@ -17074,6 +17550,7 @@ module XeroRuby
|
|
17074
17550
|
# HTTP header 'Content-Type'
|
17075
17551
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
17076
17552
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
17553
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
17077
17554
|
|
17078
17555
|
# form parameters
|
17079
17556
|
form_params = opts[:form_params] || {}
|
@@ -17109,6 +17586,7 @@ module XeroRuby
|
|
17109
17586
|
# @param [Hash] opts the optional parameters
|
17110
17587
|
# @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
17588
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
17589
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
17112
17590
|
# @return [BankTransactions]
|
17113
17591
|
def update_or_create_bank_transactions(xero_tenant_id, bank_transactions, opts = {})
|
17114
17592
|
data, _status_code, _headers = update_or_create_bank_transactions_with_http_info(xero_tenant_id, bank_transactions, opts)
|
@@ -17121,6 +17599,7 @@ module XeroRuby
|
|
17121
17599
|
# @param [Hash] opts the optional parameters
|
17122
17600
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
17123
17601
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
17602
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
17124
17603
|
# @return [Array<(BankTransactions, Integer, Hash)>] BankTransactions data, response status code and response headers
|
17125
17604
|
def update_or_create_bank_transactions_with_http_info(xero_tenant_id, bank_transactions, options = {})
|
17126
17605
|
opts = options.dup
|
@@ -17157,6 +17636,7 @@ module XeroRuby
|
|
17157
17636
|
# HTTP header 'Content-Type'
|
17158
17637
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
17159
17638
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
17639
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
17160
17640
|
|
17161
17641
|
# form parameters
|
17162
17642
|
form_params = opts[:form_params] || {}
|
@@ -17191,6 +17671,7 @@ module XeroRuby
|
|
17191
17671
|
# @param contacts [Contacts]
|
17192
17672
|
# @param [Hash] opts the optional parameters
|
17193
17673
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
17674
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
17194
17675
|
# @return [Contacts]
|
17195
17676
|
def update_or_create_contacts(xero_tenant_id, contacts, opts = {})
|
17196
17677
|
data, _status_code, _headers = update_or_create_contacts_with_http_info(xero_tenant_id, contacts, opts)
|
@@ -17202,6 +17683,7 @@ module XeroRuby
|
|
17202
17683
|
# @param contacts [Contacts]
|
17203
17684
|
# @param [Hash] opts the optional parameters
|
17204
17685
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
17686
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
17205
17687
|
# @return [Array<(Contacts, Integer, Hash)>] Contacts data, response status code and response headers
|
17206
17688
|
def update_or_create_contacts_with_http_info(xero_tenant_id, contacts, options = {})
|
17207
17689
|
opts = options.dup
|
@@ -17237,6 +17719,7 @@ module XeroRuby
|
|
17237
17719
|
# HTTP header 'Content-Type'
|
17238
17720
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
17239
17721
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
17722
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
17240
17723
|
|
17241
17724
|
# form parameters
|
17242
17725
|
form_params = opts[:form_params] || {}
|
@@ -17272,6 +17755,7 @@ module XeroRuby
|
|
17272
17755
|
# @param [Hash] opts the optional parameters
|
17273
17756
|
# @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
17757
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
17758
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
17275
17759
|
# @return [CreditNotes]
|
17276
17760
|
def update_or_create_credit_notes(xero_tenant_id, credit_notes, opts = {})
|
17277
17761
|
data, _status_code, _headers = update_or_create_credit_notes_with_http_info(xero_tenant_id, credit_notes, opts)
|
@@ -17284,6 +17768,7 @@ module XeroRuby
|
|
17284
17768
|
# @param [Hash] opts the optional parameters
|
17285
17769
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
17286
17770
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
17771
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
17287
17772
|
# @return [Array<(CreditNotes, Integer, Hash)>] CreditNotes data, response status code and response headers
|
17288
17773
|
def update_or_create_credit_notes_with_http_info(xero_tenant_id, credit_notes, options = {})
|
17289
17774
|
opts = options.dup
|
@@ -17320,6 +17805,7 @@ module XeroRuby
|
|
17320
17805
|
# HTTP header 'Content-Type'
|
17321
17806
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
17322
17807
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
17808
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
17323
17809
|
|
17324
17810
|
# form parameters
|
17325
17811
|
form_params = opts[:form_params] || {}
|
@@ -17354,6 +17840,7 @@ module XeroRuby
|
|
17354
17840
|
# @param employees [Employees] Employees with array of Employee object in body of request
|
17355
17841
|
# @param [Hash] opts the optional parameters
|
17356
17842
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
17843
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
17357
17844
|
# @return [Employees]
|
17358
17845
|
def update_or_create_employees(xero_tenant_id, employees, opts = {})
|
17359
17846
|
data, _status_code, _headers = update_or_create_employees_with_http_info(xero_tenant_id, employees, opts)
|
@@ -17365,6 +17852,7 @@ module XeroRuby
|
|
17365
17852
|
# @param employees [Employees] Employees with array of Employee object in body of request
|
17366
17853
|
# @param [Hash] opts the optional parameters
|
17367
17854
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
17855
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
17368
17856
|
# @return [Array<(Employees, Integer, Hash)>] Employees data, response status code and response headers
|
17369
17857
|
def update_or_create_employees_with_http_info(xero_tenant_id, employees, options = {})
|
17370
17858
|
opts = options.dup
|
@@ -17400,6 +17888,7 @@ module XeroRuby
|
|
17400
17888
|
# HTTP header 'Content-Type'
|
17401
17889
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
17402
17890
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
17891
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
17403
17892
|
|
17404
17893
|
# form parameters
|
17405
17894
|
form_params = opts[:form_params] || {}
|
@@ -17435,6 +17924,7 @@ module XeroRuby
|
|
17435
17924
|
# @param [Hash] opts the optional parameters
|
17436
17925
|
# @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
17926
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
17927
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
17438
17928
|
# @return [Invoices]
|
17439
17929
|
def update_or_create_invoices(xero_tenant_id, invoices, opts = {})
|
17440
17930
|
data, _status_code, _headers = update_or_create_invoices_with_http_info(xero_tenant_id, invoices, opts)
|
@@ -17447,6 +17937,7 @@ module XeroRuby
|
|
17447
17937
|
# @param [Hash] opts the optional parameters
|
17448
17938
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
17449
17939
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
17940
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
17450
17941
|
# @return [Array<(Invoices, Integer, Hash)>] Invoices data, response status code and response headers
|
17451
17942
|
def update_or_create_invoices_with_http_info(xero_tenant_id, invoices, options = {})
|
17452
17943
|
opts = options.dup
|
@@ -17483,6 +17974,7 @@ module XeroRuby
|
|
17483
17974
|
# HTTP header 'Content-Type'
|
17484
17975
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
17485
17976
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
17977
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
17486
17978
|
|
17487
17979
|
# form parameters
|
17488
17980
|
form_params = opts[:form_params] || {}
|
@@ -17518,6 +18010,7 @@ module XeroRuby
|
|
17518
18010
|
# @param [Hash] opts the optional parameters
|
17519
18011
|
# @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
18012
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
18013
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
17521
18014
|
# @return [Items]
|
17522
18015
|
def update_or_create_items(xero_tenant_id, items, opts = {})
|
17523
18016
|
data, _status_code, _headers = update_or_create_items_with_http_info(xero_tenant_id, items, opts)
|
@@ -17530,6 +18023,7 @@ module XeroRuby
|
|
17530
18023
|
# @param [Hash] opts the optional parameters
|
17531
18024
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
17532
18025
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
18026
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
17533
18027
|
# @return [Array<(Items, Integer, Hash)>] Items data, response status code and response headers
|
17534
18028
|
def update_or_create_items_with_http_info(xero_tenant_id, items, options = {})
|
17535
18029
|
opts = options.dup
|
@@ -17566,6 +18060,7 @@ module XeroRuby
|
|
17566
18060
|
# HTTP header 'Content-Type'
|
17567
18061
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
17568
18062
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
18063
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
17569
18064
|
|
17570
18065
|
# form parameters
|
17571
18066
|
form_params = opts[:form_params] || {}
|
@@ -17600,6 +18095,7 @@ module XeroRuby
|
|
17600
18095
|
# @param manual_journals [ManualJournals] ManualJournals array with ManualJournal object in body of request
|
17601
18096
|
# @param [Hash] opts the optional parameters
|
17602
18097
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
18098
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
17603
18099
|
# @return [ManualJournals]
|
17604
18100
|
def update_or_create_manual_journals(xero_tenant_id, manual_journals, opts = {})
|
17605
18101
|
data, _status_code, _headers = update_or_create_manual_journals_with_http_info(xero_tenant_id, manual_journals, opts)
|
@@ -17611,6 +18107,7 @@ module XeroRuby
|
|
17611
18107
|
# @param manual_journals [ManualJournals] ManualJournals array with ManualJournal object in body of request
|
17612
18108
|
# @param [Hash] opts the optional parameters
|
17613
18109
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
18110
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
17614
18111
|
# @return [Array<(ManualJournals, Integer, Hash)>] ManualJournals data, response status code and response headers
|
17615
18112
|
def update_or_create_manual_journals_with_http_info(xero_tenant_id, manual_journals, options = {})
|
17616
18113
|
opts = options.dup
|
@@ -17646,6 +18143,7 @@ module XeroRuby
|
|
17646
18143
|
# HTTP header 'Content-Type'
|
17647
18144
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
17648
18145
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
18146
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
17649
18147
|
|
17650
18148
|
# form parameters
|
17651
18149
|
form_params = opts[:form_params] || {}
|
@@ -17680,6 +18178,7 @@ module XeroRuby
|
|
17680
18178
|
# @param purchase_orders [PurchaseOrders]
|
17681
18179
|
# @param [Hash] opts the optional parameters
|
17682
18180
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
18181
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
17683
18182
|
# @return [PurchaseOrders]
|
17684
18183
|
def update_or_create_purchase_orders(xero_tenant_id, purchase_orders, opts = {})
|
17685
18184
|
data, _status_code, _headers = update_or_create_purchase_orders_with_http_info(xero_tenant_id, purchase_orders, opts)
|
@@ -17691,6 +18190,7 @@ module XeroRuby
|
|
17691
18190
|
# @param purchase_orders [PurchaseOrders]
|
17692
18191
|
# @param [Hash] opts the optional parameters
|
17693
18192
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
18193
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
17694
18194
|
# @return [Array<(PurchaseOrders, Integer, Hash)>] PurchaseOrders data, response status code and response headers
|
17695
18195
|
def update_or_create_purchase_orders_with_http_info(xero_tenant_id, purchase_orders, options = {})
|
17696
18196
|
opts = options.dup
|
@@ -17726,6 +18226,7 @@ module XeroRuby
|
|
17726
18226
|
# HTTP header 'Content-Type'
|
17727
18227
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
17728
18228
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
18229
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
17729
18230
|
|
17730
18231
|
# form parameters
|
17731
18232
|
form_params = opts[:form_params] || {}
|
@@ -17760,6 +18261,7 @@ module XeroRuby
|
|
17760
18261
|
# @param quotes [Quotes]
|
17761
18262
|
# @param [Hash] opts the optional parameters
|
17762
18263
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
18264
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
17763
18265
|
# @return [Quotes]
|
17764
18266
|
def update_or_create_quotes(xero_tenant_id, quotes, opts = {})
|
17765
18267
|
data, _status_code, _headers = update_or_create_quotes_with_http_info(xero_tenant_id, quotes, opts)
|
@@ -17771,6 +18273,7 @@ module XeroRuby
|
|
17771
18273
|
# @param quotes [Quotes]
|
17772
18274
|
# @param [Hash] opts the optional parameters
|
17773
18275
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
18276
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
17774
18277
|
# @return [Array<(Quotes, Integer, Hash)>] Quotes data, response status code and response headers
|
17775
18278
|
def update_or_create_quotes_with_http_info(xero_tenant_id, quotes, options = {})
|
17776
18279
|
opts = options.dup
|
@@ -17806,6 +18309,7 @@ module XeroRuby
|
|
17806
18309
|
# HTTP header 'Content-Type'
|
17807
18310
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
17808
18311
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
18312
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
17809
18313
|
|
17810
18314
|
# form parameters
|
17811
18315
|
form_params = opts[:form_params] || {}
|
@@ -17840,6 +18344,7 @@ module XeroRuby
|
|
17840
18344
|
# @param repeating_invoices [RepeatingInvoices] RepeatingInvoices with an array of repeating invoice objects in body of request
|
17841
18345
|
# @param [Hash] opts the optional parameters
|
17842
18346
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
|
18347
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
17843
18348
|
# @return [RepeatingInvoices]
|
17844
18349
|
def update_or_create_repeating_invoices(xero_tenant_id, repeating_invoices, opts = {})
|
17845
18350
|
data, _status_code, _headers = update_or_create_repeating_invoices_with_http_info(xero_tenant_id, repeating_invoices, opts)
|
@@ -17851,6 +18356,7 @@ module XeroRuby
|
|
17851
18356
|
# @param repeating_invoices [RepeatingInvoices] RepeatingInvoices with an array of repeating invoice objects in body of request
|
17852
18357
|
# @param [Hash] opts the optional parameters
|
17853
18358
|
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
|
18359
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
17854
18360
|
# @return [Array<(RepeatingInvoices, Integer, Hash)>] RepeatingInvoices data, response status code and response headers
|
17855
18361
|
def update_or_create_repeating_invoices_with_http_info(xero_tenant_id, repeating_invoices, options = {})
|
17856
18362
|
opts = options.dup
|
@@ -17886,6 +18392,7 @@ module XeroRuby
|
|
17886
18392
|
# HTTP header 'Content-Type'
|
17887
18393
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
17888
18394
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
18395
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
17889
18396
|
|
17890
18397
|
# form parameters
|
17891
18398
|
form_params = opts[:form_params] || {}
|
@@ -17920,6 +18427,7 @@ module XeroRuby
|
|
17920
18427
|
# @param purchase_order_id [String] Unique identifier for an Purchase Order
|
17921
18428
|
# @param purchase_orders [PurchaseOrders]
|
17922
18429
|
# @param [Hash] opts the optional parameters
|
18430
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
17923
18431
|
# @return [PurchaseOrders]
|
17924
18432
|
def update_purchase_order(xero_tenant_id, purchase_order_id, purchase_orders, opts = {})
|
17925
18433
|
data, _status_code, _headers = update_purchase_order_with_http_info(xero_tenant_id, purchase_order_id, purchase_orders, opts)
|
@@ -17931,6 +18439,7 @@ module XeroRuby
|
|
17931
18439
|
# @param purchase_order_id [String] Unique identifier for an Purchase Order
|
17932
18440
|
# @param purchase_orders [PurchaseOrders]
|
17933
18441
|
# @param [Hash] opts the optional parameters
|
18442
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
17934
18443
|
# @return [Array<(PurchaseOrders, Integer, Hash)>] PurchaseOrders data, response status code and response headers
|
17935
18444
|
def update_purchase_order_with_http_info(xero_tenant_id, purchase_order_id, purchase_orders, options = {})
|
17936
18445
|
opts = options.dup
|
@@ -17969,6 +18478,7 @@ module XeroRuby
|
|
17969
18478
|
# HTTP header 'Content-Type'
|
17970
18479
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
17971
18480
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
18481
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
17972
18482
|
|
17973
18483
|
# form parameters
|
17974
18484
|
form_params = opts[:form_params] || {}
|
@@ -18004,6 +18514,7 @@ module XeroRuby
|
|
18004
18514
|
# @param file_name [String] Name of the attachment
|
18005
18515
|
# @param body [String] Byte array of file in body of request
|
18006
18516
|
# @param [Hash] opts the optional parameters
|
18517
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
18007
18518
|
# @return [Attachments]
|
18008
18519
|
def update_purchase_order_attachment_by_file_name(xero_tenant_id, purchase_order_id, file_name, body, opts = {})
|
18009
18520
|
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 +18527,7 @@ module XeroRuby
|
|
18016
18527
|
# @param file_name [String] Name of the attachment
|
18017
18528
|
# @param body [String] Byte array of file in body of request
|
18018
18529
|
# @param [Hash] opts the optional parameters
|
18530
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
18019
18531
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
18020
18532
|
def update_purchase_order_attachment_by_file_name_with_http_info(xero_tenant_id, purchase_order_id, file_name, body, options = {})
|
18021
18533
|
opts = options.dup
|
@@ -18058,6 +18570,7 @@ module XeroRuby
|
|
18058
18570
|
# HTTP header 'Content-Type'
|
18059
18571
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
18060
18572
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
18573
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
18061
18574
|
|
18062
18575
|
# form parameters
|
18063
18576
|
form_params = opts[:form_params] || {}
|
@@ -18092,6 +18605,7 @@ module XeroRuby
|
|
18092
18605
|
# @param quote_id [String] Unique identifier for an Quote
|
18093
18606
|
# @param quotes [Quotes]
|
18094
18607
|
# @param [Hash] opts the optional parameters
|
18608
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
18095
18609
|
# @return [Quotes]
|
18096
18610
|
def update_quote(xero_tenant_id, quote_id, quotes, opts = {})
|
18097
18611
|
data, _status_code, _headers = update_quote_with_http_info(xero_tenant_id, quote_id, quotes, opts)
|
@@ -18103,6 +18617,7 @@ module XeroRuby
|
|
18103
18617
|
# @param quote_id [String] Unique identifier for an Quote
|
18104
18618
|
# @param quotes [Quotes]
|
18105
18619
|
# @param [Hash] opts the optional parameters
|
18620
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
18106
18621
|
# @return [Array<(Quotes, Integer, Hash)>] Quotes data, response status code and response headers
|
18107
18622
|
def update_quote_with_http_info(xero_tenant_id, quote_id, quotes, options = {})
|
18108
18623
|
opts = options.dup
|
@@ -18141,6 +18656,7 @@ module XeroRuby
|
|
18141
18656
|
# HTTP header 'Content-Type'
|
18142
18657
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
18143
18658
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
18659
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
18144
18660
|
|
18145
18661
|
# form parameters
|
18146
18662
|
form_params = opts[:form_params] || {}
|
@@ -18176,6 +18692,7 @@ module XeroRuby
|
|
18176
18692
|
# @param file_name [String] Name of the attachment
|
18177
18693
|
# @param body [String] Byte array of file in body of request
|
18178
18694
|
# @param [Hash] opts the optional parameters
|
18695
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
18179
18696
|
# @return [Attachments]
|
18180
18697
|
def update_quote_attachment_by_file_name(xero_tenant_id, quote_id, file_name, body, opts = {})
|
18181
18698
|
data, _status_code, _headers = update_quote_attachment_by_file_name_with_http_info(xero_tenant_id, quote_id, file_name, body, opts)
|
@@ -18188,6 +18705,7 @@ module XeroRuby
|
|
18188
18705
|
# @param file_name [String] Name of the attachment
|
18189
18706
|
# @param body [String] Byte array of file in body of request
|
18190
18707
|
# @param [Hash] opts the optional parameters
|
18708
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
18191
18709
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
18192
18710
|
def update_quote_attachment_by_file_name_with_http_info(xero_tenant_id, quote_id, file_name, body, options = {})
|
18193
18711
|
opts = options.dup
|
@@ -18230,6 +18748,7 @@ module XeroRuby
|
|
18230
18748
|
# HTTP header 'Content-Type'
|
18231
18749
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
18232
18750
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
18751
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
18233
18752
|
|
18234
18753
|
# form parameters
|
18235
18754
|
form_params = opts[:form_params] || {}
|
@@ -18265,6 +18784,7 @@ module XeroRuby
|
|
18265
18784
|
# @param receipts [Receipts]
|
18266
18785
|
# @param [Hash] opts the optional parameters
|
18267
18786
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
18787
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
18268
18788
|
# @return [Receipts]
|
18269
18789
|
def update_receipt(xero_tenant_id, receipt_id, receipts, opts = {})
|
18270
18790
|
data, _status_code, _headers = update_receipt_with_http_info(xero_tenant_id, receipt_id, receipts, opts)
|
@@ -18277,6 +18797,7 @@ module XeroRuby
|
|
18277
18797
|
# @param receipts [Receipts]
|
18278
18798
|
# @param [Hash] opts the optional parameters
|
18279
18799
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
18800
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
18280
18801
|
# @return [Array<(Receipts, Integer, Hash)>] Receipts data, response status code and response headers
|
18281
18802
|
def update_receipt_with_http_info(xero_tenant_id, receipt_id, receipts, options = {})
|
18282
18803
|
opts = options.dup
|
@@ -18316,6 +18837,7 @@ module XeroRuby
|
|
18316
18837
|
# HTTP header 'Content-Type'
|
18317
18838
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
18318
18839
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
18840
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
18319
18841
|
|
18320
18842
|
# form parameters
|
18321
18843
|
form_params = opts[:form_params] || {}
|
@@ -18351,6 +18873,7 @@ module XeroRuby
|
|
18351
18873
|
# @param file_name [String] Name of the attachment
|
18352
18874
|
# @param body [String] Byte array of file in body of request
|
18353
18875
|
# @param [Hash] opts the optional parameters
|
18876
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
18354
18877
|
# @return [Attachments]
|
18355
18878
|
def update_receipt_attachment_by_file_name(xero_tenant_id, receipt_id, file_name, body, opts = {})
|
18356
18879
|
data, _status_code, _headers = update_receipt_attachment_by_file_name_with_http_info(xero_tenant_id, receipt_id, file_name, body, opts)
|
@@ -18363,6 +18886,7 @@ module XeroRuby
|
|
18363
18886
|
# @param file_name [String] Name of the attachment
|
18364
18887
|
# @param body [String] Byte array of file in body of request
|
18365
18888
|
# @param [Hash] opts the optional parameters
|
18889
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
18366
18890
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
18367
18891
|
def update_receipt_attachment_by_file_name_with_http_info(xero_tenant_id, receipt_id, file_name, body, options = {})
|
18368
18892
|
opts = options.dup
|
@@ -18405,6 +18929,7 @@ module XeroRuby
|
|
18405
18929
|
# HTTP header 'Content-Type'
|
18406
18930
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
18407
18931
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
18932
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
18408
18933
|
|
18409
18934
|
# form parameters
|
18410
18935
|
form_params = opts[:form_params] || {}
|
@@ -18439,6 +18964,7 @@ module XeroRuby
|
|
18439
18964
|
# @param repeating_invoice_id [String] Unique identifier for a Repeating Invoice
|
18440
18965
|
# @param repeating_invoices [RepeatingInvoices]
|
18441
18966
|
# @param [Hash] opts the optional parameters
|
18967
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
18442
18968
|
# @return [RepeatingInvoices]
|
18443
18969
|
def update_repeating_invoice(xero_tenant_id, repeating_invoice_id, repeating_invoices, opts = {})
|
18444
18970
|
data, _status_code, _headers = update_repeating_invoice_with_http_info(xero_tenant_id, repeating_invoice_id, repeating_invoices, opts)
|
@@ -18450,6 +18976,7 @@ module XeroRuby
|
|
18450
18976
|
# @param repeating_invoice_id [String] Unique identifier for a Repeating Invoice
|
18451
18977
|
# @param repeating_invoices [RepeatingInvoices]
|
18452
18978
|
# @param [Hash] opts the optional parameters
|
18979
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
18453
18980
|
# @return [Array<(RepeatingInvoices, Integer, Hash)>] RepeatingInvoices data, response status code and response headers
|
18454
18981
|
def update_repeating_invoice_with_http_info(xero_tenant_id, repeating_invoice_id, repeating_invoices, options = {})
|
18455
18982
|
opts = options.dup
|
@@ -18488,6 +19015,7 @@ module XeroRuby
|
|
18488
19015
|
# HTTP header 'Content-Type'
|
18489
19016
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
18490
19017
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
19018
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
18491
19019
|
|
18492
19020
|
# form parameters
|
18493
19021
|
form_params = opts[:form_params] || {}
|
@@ -18523,6 +19051,7 @@ module XeroRuby
|
|
18523
19051
|
# @param file_name [String] Name of the attachment
|
18524
19052
|
# @param body [String] Byte array of file in body of request
|
18525
19053
|
# @param [Hash] opts the optional parameters
|
19054
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
18526
19055
|
# @return [Attachments]
|
18527
19056
|
def update_repeating_invoice_attachment_by_file_name(xero_tenant_id, repeating_invoice_id, file_name, body, opts = {})
|
18528
19057
|
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 +19064,7 @@ module XeroRuby
|
|
18535
19064
|
# @param file_name [String] Name of the attachment
|
18536
19065
|
# @param body [String] Byte array of file in body of request
|
18537
19066
|
# @param [Hash] opts the optional parameters
|
19067
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
18538
19068
|
# @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
|
18539
19069
|
def update_repeating_invoice_attachment_by_file_name_with_http_info(xero_tenant_id, repeating_invoice_id, file_name, body, options = {})
|
18540
19070
|
opts = options.dup
|
@@ -18577,6 +19107,7 @@ module XeroRuby
|
|
18577
19107
|
# HTTP header 'Content-Type'
|
18578
19108
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
18579
19109
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
19110
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
18580
19111
|
|
18581
19112
|
# form parameters
|
18582
19113
|
form_params = opts[:form_params] || {}
|
@@ -18610,6 +19141,7 @@ module XeroRuby
|
|
18610
19141
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
18611
19142
|
# @param tax_rates [TaxRates]
|
18612
19143
|
# @param [Hash] opts the optional parameters
|
19144
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
18613
19145
|
# @return [TaxRates]
|
18614
19146
|
def update_tax_rate(xero_tenant_id, tax_rates, opts = {})
|
18615
19147
|
data, _status_code, _headers = update_tax_rate_with_http_info(xero_tenant_id, tax_rates, opts)
|
@@ -18620,6 +19152,7 @@ module XeroRuby
|
|
18620
19152
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
18621
19153
|
# @param tax_rates [TaxRates]
|
18622
19154
|
# @param [Hash] opts the optional parameters
|
19155
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
18623
19156
|
# @return [Array<(TaxRates, Integer, Hash)>] TaxRates data, response status code and response headers
|
18624
19157
|
def update_tax_rate_with_http_info(xero_tenant_id, tax_rates, options = {})
|
18625
19158
|
opts = options.dup
|
@@ -18654,6 +19187,7 @@ module XeroRuby
|
|
18654
19187
|
# HTTP header 'Content-Type'
|
18655
19188
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
18656
19189
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
19190
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
18657
19191
|
|
18658
19192
|
# form parameters
|
18659
19193
|
form_params = opts[:form_params] || {}
|
@@ -18688,6 +19222,7 @@ module XeroRuby
|
|
18688
19222
|
# @param tracking_category_id [String] Unique identifier for a TrackingCategory
|
18689
19223
|
# @param tracking_category [TrackingCategory]
|
18690
19224
|
# @param [Hash] opts the optional parameters
|
19225
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
18691
19226
|
# @return [TrackingCategories]
|
18692
19227
|
def update_tracking_category(xero_tenant_id, tracking_category_id, tracking_category, opts = {})
|
18693
19228
|
data, _status_code, _headers = update_tracking_category_with_http_info(xero_tenant_id, tracking_category_id, tracking_category, opts)
|
@@ -18699,6 +19234,7 @@ module XeroRuby
|
|
18699
19234
|
# @param tracking_category_id [String] Unique identifier for a TrackingCategory
|
18700
19235
|
# @param tracking_category [TrackingCategory]
|
18701
19236
|
# @param [Hash] opts the optional parameters
|
19237
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
18702
19238
|
# @return [Array<(TrackingCategories, Integer, Hash)>] TrackingCategories data, response status code and response headers
|
18703
19239
|
def update_tracking_category_with_http_info(xero_tenant_id, tracking_category_id, tracking_category, options = {})
|
18704
19240
|
opts = options.dup
|
@@ -18737,6 +19273,7 @@ module XeroRuby
|
|
18737
19273
|
# HTTP header 'Content-Type'
|
18738
19274
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
18739
19275
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
19276
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
18740
19277
|
|
18741
19278
|
# form parameters
|
18742
19279
|
form_params = opts[:form_params] || {}
|
@@ -18772,6 +19309,7 @@ module XeroRuby
|
|
18772
19309
|
# @param tracking_option_id [String] Unique identifier for a Tracking Option
|
18773
19310
|
# @param tracking_option [TrackingOption]
|
18774
19311
|
# @param [Hash] opts the optional parameters
|
19312
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
18775
19313
|
# @return [TrackingOptions]
|
18776
19314
|
def update_tracking_options(xero_tenant_id, tracking_category_id, tracking_option_id, tracking_option, opts = {})
|
18777
19315
|
data, _status_code, _headers = update_tracking_options_with_http_info(xero_tenant_id, tracking_category_id, tracking_option_id, tracking_option, opts)
|
@@ -18784,6 +19322,7 @@ module XeroRuby
|
|
18784
19322
|
# @param tracking_option_id [String] Unique identifier for a Tracking Option
|
18785
19323
|
# @param tracking_option [TrackingOption]
|
18786
19324
|
# @param [Hash] opts the optional parameters
|
19325
|
+
# @option opts [String] :idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
18787
19326
|
# @return [Array<(TrackingOptions, Integer, Hash)>] TrackingOptions data, response status code and response headers
|
18788
19327
|
def update_tracking_options_with_http_info(xero_tenant_id, tracking_category_id, tracking_option_id, tracking_option, options = {})
|
18789
19328
|
opts = options.dup
|
@@ -18826,6 +19365,7 @@ module XeroRuby
|
|
18826
19365
|
# HTTP header 'Content-Type'
|
18827
19366
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
18828
19367
|
header_params[:'xero-tenant-id'] = xero_tenant_id
|
19368
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
18829
19369
|
|
18830
19370
|
# form parameters
|
18831
19371
|
form_params = opts[:form_params] || {}
|