xero-ruby 3.15.0 → 3.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7cf036e746cf06c49d997cee30a28ca8e74cb022bf90c3ea5fdb62d2cdeb7d5
4
- data.tar.gz: 3129b96cedce8ac8a3ba3da37ab261111f468b17a898050f9501753a33b99663
3
+ metadata.gz: fd27a05f0bb738c8238e1972b8f72085f6589bec2e56259b25900b472a7ebae6
4
+ data.tar.gz: ca2c2f2ad209d4c5c3dfd40e9c4961d13490d8776d74a0b64b42edb2559bd475
5
5
  SHA512:
6
- metadata.gz: 166a4fcfaf12b575d8d49b2cc946e4bf640286348e935ae1db2a269a9466d42b101d4f5ac32a2dde234e12b8fd6bf9652988156eda75cff4f4f7e2c835a36628
7
- data.tar.gz: 3edd6d7e65437d1133601ab0a91d94db00817ce5e6c9aad74282a5d75982427a1addc464c0106f82150d12e6ecb5e2b40f8f337296faf4173c012af912556d94
6
+ metadata.gz: c4b281f34599bbea6407a0d4bd1af0a49f4dc67087489a1d75e36531dc53532cedca1587380004fb7747461c3c1fb549f8e16cf6c7b25da0662f57447ea785c6
7
+ data.tar.gz: 1512846c0cef01d14b24f68df2f5061ab3eed4263d570c6604436b67f16b0c1e291732a03b0b106545e03156079688873662bb623ca07fdd55d5f2da5d6f4d4e
@@ -850,21 +850,21 @@ module XeroRuby
850
850
  # Creates a new custom payment service for a specific branding theme
851
851
  # @param xero_tenant_id [String] Xero identifier for Tenant
852
852
  # @param branding_theme_id [String] Unique identifier for a Branding Theme
853
- # @param payment_service [PaymentService] PaymentService object in body of request
853
+ # @param payment_services [PaymentServices] PaymentServices array with PaymentService object in body of request
854
854
  # @param [Hash] opts the optional parameters
855
855
  # @return [PaymentServices]
856
- def create_branding_theme_payment_services(xero_tenant_id, branding_theme_id, payment_service, opts = {})
857
- data, _status_code, _headers = create_branding_theme_payment_services_with_http_info(xero_tenant_id, branding_theme_id, payment_service, opts)
856
+ def create_branding_theme_payment_services(xero_tenant_id, branding_theme_id, payment_services, opts = {})
857
+ data, _status_code, _headers = create_branding_theme_payment_services_with_http_info(xero_tenant_id, branding_theme_id, payment_services, opts)
858
858
  data
859
859
  end
860
860
 
861
861
  # Creates a new custom payment service for a specific branding theme
862
862
  # @param xero_tenant_id [String] Xero identifier for Tenant
863
863
  # @param branding_theme_id [String] Unique identifier for a Branding Theme
864
- # @param payment_service [PaymentService] PaymentService object in body of request
864
+ # @param payment_services [PaymentServices] PaymentServices array with PaymentService object in body of request
865
865
  # @param [Hash] opts the optional parameters
866
866
  # @return [Array<(PaymentServices, Integer, Hash)>] PaymentServices data, response status code and response headers
867
- def create_branding_theme_payment_services_with_http_info(xero_tenant_id, branding_theme_id, payment_service, options = {})
867
+ def create_branding_theme_payment_services_with_http_info(xero_tenant_id, branding_theme_id, payment_services, options = {})
868
868
  opts = options.dup
869
869
  if @api_client.config.debugging
870
870
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_branding_theme_payment_services ...'
@@ -877,9 +877,9 @@ module XeroRuby
877
877
  if @api_client.config.client_side_validation && branding_theme_id.nil?
878
878
  fail ArgumentError, "Missing the required parameter 'branding_theme_id' when calling AccountingApi.create_branding_theme_payment_services"
879
879
  end
880
- # verify the required parameter 'payment_service' is set
881
- if @api_client.config.client_side_validation && payment_service.nil?
882
- fail ArgumentError, "Missing the required parameter 'payment_service' when calling AccountingApi.create_branding_theme_payment_services"
880
+ # verify the required parameter 'payment_services' is set
881
+ if @api_client.config.client_side_validation && payment_services.nil?
882
+ fail ArgumentError, "Missing the required parameter 'payment_services' when calling AccountingApi.create_branding_theme_payment_services"
883
883
  end
884
884
  # resource path
885
885
  local_var_path = '/BrandingThemes/{BrandingThemeID}/PaymentServices'.sub('{' + 'BrandingThemeID' + '}', branding_theme_id.to_s)
@@ -906,7 +906,7 @@ module XeroRuby
906
906
  form_params = opts[:form_params] || {}
907
907
 
908
908
  # http body (model)
909
- post_body = opts[:body] || @api_client.object_to_http_body(payment_service)
909
+ post_body = opts[:body] || @api_client.object_to_http_body(payment_services)
910
910
 
911
911
  # return_type
912
912
  return_type = opts[:return_type] || 'PaymentServices'
@@ -775,7 +775,7 @@ module XeroRuby
775
775
  # @param [Hash] opts the optional parameters
776
776
  # @option opts [Integer] :page Set to 1 by default. The requested number of the page in paged response - Must be a number greater than 0.
777
777
  # @option opts [Integer] :page_size Optional, it is set to 50 by default. The number of items to return per page in a paged response - Must be a number between 1 and 500.
778
- # @option opts [String] :task_ids taskIdsSearch for all tasks that match a comma separated list of taskIds, i.e. GET https://.../tasks?taskIds&#x3D;{taskID},{taskID}
778
+ # @option opts [String] :task_ids Search for all tasks that match a comma separated list of taskIds, i.e. GET https://.../tasks?taskIds&#x3D;{taskID},{taskID}
779
779
  # @option opts [ChargeType] :charge_type
780
780
  # @return [Tasks]
781
781
  def get_tasks(xero_tenant_id, project_id, opts = {})
@@ -790,7 +790,7 @@ module XeroRuby
790
790
  # @param [Hash] opts the optional parameters
791
791
  # @option opts [Integer] :page Set to 1 by default. The requested number of the page in paged response - Must be a number greater than 0.
792
792
  # @option opts [Integer] :page_size Optional, it is set to 50 by default. The number of items to return per page in a paged response - Must be a number between 1 and 500.
793
- # @option opts [String] :task_ids taskIdsSearch for all tasks that match a comma separated list of taskIds, i.e. GET https://.../tasks?taskIds&#x3D;{taskID},{taskID}
793
+ # @option opts [String] :task_ids Search for all tasks that match a comma separated list of taskIds, i.e. GET https://.../tasks?taskIds&#x3D;{taskID},{taskID}
794
794
  # @option opts [ChargeType] :charge_type
795
795
  # @return [Array<(Tasks, Integer, Hash)>] Tasks data, response status code and response headers
796
796
  def get_tasks_with_http_info(xero_tenant_id, project_id, options = {})
@@ -132,9 +132,9 @@ module XeroRuby::Accounting
132
132
  :'payments' => :'Array<Payment>',
133
133
  :'type' => :'String',
134
134
  :'status' => :'String',
135
- :'total_amount' => :'String',
135
+ :'total_amount' => :'BigDecimal',
136
136
  :'updated_date_utc' => :'DateTime',
137
- :'is_reconciled' => :'String',
137
+ :'is_reconciled' => :'Boolean',
138
138
  :'validation_errors' => :'Array<ValidationError>'
139
139
  }
140
140
  end
@@ -35,6 +35,9 @@ module XeroRuby::Accounting
35
35
  attr_accessor :credit_note_number
36
36
 
37
37
 
38
+ attr_accessor :batch_payment
39
+
40
+
38
41
  attr_accessor :account
39
42
 
40
43
  # Code of account you are using to make the payment e.g. 001 (note- not all accounts have a code value)
@@ -135,6 +138,7 @@ module XeroRuby::Accounting
135
138
  :'overpayment' => :'Overpayment',
136
139
  :'invoice_number' => :'InvoiceNumber',
137
140
  :'credit_note_number' => :'CreditNoteNumber',
141
+ :'batch_payment' => :'BatchPayment',
138
142
  :'account' => :'Account',
139
143
  :'code' => :'Code',
140
144
  :'date' => :'Date',
@@ -167,6 +171,7 @@ module XeroRuby::Accounting
167
171
  :'overpayment' => :'Overpayment',
168
172
  :'invoice_number' => :'String',
169
173
  :'credit_note_number' => :'String',
174
+ :'batch_payment' => :'BatchPayment',
170
175
  :'account' => :'Account',
171
176
  :'code' => :'String',
172
177
  :'date' => :'Date',
@@ -229,6 +234,10 @@ module XeroRuby::Accounting
229
234
  self.credit_note_number = attributes[:'credit_note_number']
230
235
  end
231
236
 
237
+ if attributes.key?(:'batch_payment')
238
+ self.batch_payment = attributes[:'batch_payment']
239
+ end
240
+
232
241
  if attributes.key?(:'account')
233
242
  self.account = attributes[:'account']
234
243
  end
@@ -364,6 +373,7 @@ module XeroRuby::Accounting
364
373
  overpayment == o.overpayment &&
365
374
  invoice_number == o.invoice_number &&
366
375
  credit_note_number == o.credit_note_number &&
376
+ batch_payment == o.batch_payment &&
367
377
  account == o.account &&
368
378
  code == o.code &&
369
379
  date == o.date &&
@@ -395,7 +405,7 @@ module XeroRuby::Accounting
395
405
  # Calculates hash code according to all attributes.
396
406
  # @return [Integer] Hash code
397
407
  def hash
398
- [invoice, credit_note, prepayment, overpayment, invoice_number, credit_note_number, account, code, date, currency_rate, amount, bank_amount, reference, is_reconciled, status, payment_type, updated_date_utc, payment_id, batch_payment_id, bank_account_number, particulars, details, has_account, has_validation_errors, status_attribute_string, validation_errors].hash
408
+ [invoice, credit_note, prepayment, overpayment, invoice_number, credit_note_number, batch_payment, account, code, date, currency_rate, amount, bank_amount, reference, is_reconciled, status, payment_type, updated_date_utc, payment_id, batch_payment_id, bank_account_number, particulars, details, has_account, has_validation_errors, status_attribute_string, validation_errors].hash
399
409
  end
400
410
 
401
411
  # Builds the object from hash
@@ -123,6 +123,9 @@ module XeroRuby::Accounting
123
123
  GOODSIMPORT ||= "GOODSIMPORT".freeze
124
124
  NONEINPUT ||= "NONEINPUT".freeze
125
125
  NOTREPORTED ||= "NOTREPORTED".freeze
126
+ SROVRRS ||= "SROVRRS".freeze
127
+ SROVRLVG ||= "SROVRLVG".freeze
128
+ SRLVG ||= "SRLVG".freeze
126
129
 
127
130
  # Boolean to describe if tax rate can be used for asset accounts i.e. true,false
128
131
  attr_accessor :can_apply_to_assets
@@ -281,7 +284,7 @@ module XeroRuby::Accounting
281
284
  def valid?
282
285
  status_validator = EnumAttributeValidator.new('String', ["ACTIVE", "DELETED", "ARCHIVED", "PENDING"])
283
286
  return false unless status_validator.valid?(@status)
284
- report_tax_type_validator = EnumAttributeValidator.new('String', ["AVALARA", "BASEXCLUDED", "CAPITALSALESOUTPUT", "CAPITALEXPENSESINPUT", "ECOUTPUT", "ECOUTPUTSERVICES", "ECINPUT", "ECACQUISITIONS", "EXEMPTEXPENSES", "EXEMPTINPUT", "EXEMPTOUTPUT", "GSTONIMPORTS", "INPUT", "INPUTTAXED", "MOSSSALES", "NONE", "NONEOUTPUT", "OUTPUT", "PURCHASESINPUT", "SALESOUTPUT", "EXEMPTCAPITAL", "EXEMPTEXPORT", "CAPITALEXINPUT", "GSTONCAPIMPORTS", "GSTONCAPITALIMPORTS", "REVERSECHARGES", "PAYMENTS", "INVOICE", "CASH", "ACCRUAL", "FLATRATECASH", "FLATRATEACCRUAL", "ACCRUALS", "TXCA", "SRCAS", "DSOUTPUT", "BLINPUT2", "EPINPUT", "IMINPUT2", "MEINPUT", "IGDSINPUT2", "ESN33OUTPUT", "OPINPUT", "OSOUTPUT", "TXN33INPUT", "TXESSINPUT", "TXREINPUT", "TXPETINPUT", "NRINPUT", "ES33OUTPUT", "ZERORATEDINPUT", "ZERORATEDOUTPUT", "DRCHARGESUPPLY", "DRCHARGE", "CAPINPUT", "CAPIMPORTS", "IMINPUT", "INPUT2", "CIUINPUT", "SRINPUT", "OUTPUT2", "SROUTPUT", "CAPOUTPUT", "SROUTPUT2", "CIUOUTPUT", "ZROUTPUT", "ZREXPORT", "ACC28PLUS", "ACCUPTO28", "OTHEROUTPUT", "SHOUTPUT", "ZRINPUT", "BADDEBT", "OTHERINPUT", "BADDEBTRELIEF", "IGDSINPUT3", "SROVR", "TOURISTREFUND", "TXRCN33INPUT", "TXRCREINPUT", "TXRCESSINPUT", "TXRCTSINPUT", "CAPEXINPUT", "UNDEFINED", "CAPEXOUTPUT", "ZEROEXPOUTPUT", "GOODSIMPORT", "NONEINPUT", "NOTREPORTED"])
287
+ report_tax_type_validator = EnumAttributeValidator.new('String', ["AVALARA", "BASEXCLUDED", "CAPITALSALESOUTPUT", "CAPITALEXPENSESINPUT", "ECOUTPUT", "ECOUTPUTSERVICES", "ECINPUT", "ECACQUISITIONS", "EXEMPTEXPENSES", "EXEMPTINPUT", "EXEMPTOUTPUT", "GSTONIMPORTS", "INPUT", "INPUTTAXED", "MOSSSALES", "NONE", "NONEOUTPUT", "OUTPUT", "PURCHASESINPUT", "SALESOUTPUT", "EXEMPTCAPITAL", "EXEMPTEXPORT", "CAPITALEXINPUT", "GSTONCAPIMPORTS", "GSTONCAPITALIMPORTS", "REVERSECHARGES", "PAYMENTS", "INVOICE", "CASH", "ACCRUAL", "FLATRATECASH", "FLATRATEACCRUAL", "ACCRUALS", "TXCA", "SRCAS", "DSOUTPUT", "BLINPUT2", "EPINPUT", "IMINPUT2", "MEINPUT", "IGDSINPUT2", "ESN33OUTPUT", "OPINPUT", "OSOUTPUT", "TXN33INPUT", "TXESSINPUT", "TXREINPUT", "TXPETINPUT", "NRINPUT", "ES33OUTPUT", "ZERORATEDINPUT", "ZERORATEDOUTPUT", "DRCHARGESUPPLY", "DRCHARGE", "CAPINPUT", "CAPIMPORTS", "IMINPUT", "INPUT2", "CIUINPUT", "SRINPUT", "OUTPUT2", "SROUTPUT", "CAPOUTPUT", "SROUTPUT2", "CIUOUTPUT", "ZROUTPUT", "ZREXPORT", "ACC28PLUS", "ACCUPTO28", "OTHEROUTPUT", "SHOUTPUT", "ZRINPUT", "BADDEBT", "OTHERINPUT", "BADDEBTRELIEF", "IGDSINPUT3", "SROVR", "TOURISTREFUND", "TXRCN33INPUT", "TXRCREINPUT", "TXRCESSINPUT", "TXRCTSINPUT", "CAPEXINPUT", "UNDEFINED", "CAPEXOUTPUT", "ZEROEXPOUTPUT", "GOODSIMPORT", "NONEINPUT", "NOTREPORTED", "SROVRRS", "SROVRLVG", "SRLVG"])
285
288
  return false unless report_tax_type_validator.valid?(@report_tax_type)
286
289
  true
287
290
  end
@@ -299,7 +302,7 @@ module XeroRuby::Accounting
299
302
  # Custom attribute writer method checking allowed values (enum).
300
303
  # @param [Object] report_tax_type Object to be assigned
301
304
  def report_tax_type=(report_tax_type)
302
- validator = EnumAttributeValidator.new('String', ["AVALARA", "BASEXCLUDED", "CAPITALSALESOUTPUT", "CAPITALEXPENSESINPUT", "ECOUTPUT", "ECOUTPUTSERVICES", "ECINPUT", "ECACQUISITIONS", "EXEMPTEXPENSES", "EXEMPTINPUT", "EXEMPTOUTPUT", "GSTONIMPORTS", "INPUT", "INPUTTAXED", "MOSSSALES", "NONE", "NONEOUTPUT", "OUTPUT", "PURCHASESINPUT", "SALESOUTPUT", "EXEMPTCAPITAL", "EXEMPTEXPORT", "CAPITALEXINPUT", "GSTONCAPIMPORTS", "GSTONCAPITALIMPORTS", "REVERSECHARGES", "PAYMENTS", "INVOICE", "CASH", "ACCRUAL", "FLATRATECASH", "FLATRATEACCRUAL", "ACCRUALS", "TXCA", "SRCAS", "DSOUTPUT", "BLINPUT2", "EPINPUT", "IMINPUT2", "MEINPUT", "IGDSINPUT2", "ESN33OUTPUT", "OPINPUT", "OSOUTPUT", "TXN33INPUT", "TXESSINPUT", "TXREINPUT", "TXPETINPUT", "NRINPUT", "ES33OUTPUT", "ZERORATEDINPUT", "ZERORATEDOUTPUT", "DRCHARGESUPPLY", "DRCHARGE", "CAPINPUT", "CAPIMPORTS", "IMINPUT", "INPUT2", "CIUINPUT", "SRINPUT", "OUTPUT2", "SROUTPUT", "CAPOUTPUT", "SROUTPUT2", "CIUOUTPUT", "ZROUTPUT", "ZREXPORT", "ACC28PLUS", "ACCUPTO28", "OTHEROUTPUT", "SHOUTPUT", "ZRINPUT", "BADDEBT", "OTHERINPUT", "BADDEBTRELIEF", "IGDSINPUT3", "SROVR", "TOURISTREFUND", "TXRCN33INPUT", "TXRCREINPUT", "TXRCESSINPUT", "TXRCTSINPUT", "CAPEXINPUT", "UNDEFINED", "CAPEXOUTPUT", "ZEROEXPOUTPUT", "GOODSIMPORT", "NONEINPUT", "NOTREPORTED"])
305
+ validator = EnumAttributeValidator.new('String', ["AVALARA", "BASEXCLUDED", "CAPITALSALESOUTPUT", "CAPITALEXPENSESINPUT", "ECOUTPUT", "ECOUTPUTSERVICES", "ECINPUT", "ECACQUISITIONS", "EXEMPTEXPENSES", "EXEMPTINPUT", "EXEMPTOUTPUT", "GSTONIMPORTS", "INPUT", "INPUTTAXED", "MOSSSALES", "NONE", "NONEOUTPUT", "OUTPUT", "PURCHASESINPUT", "SALESOUTPUT", "EXEMPTCAPITAL", "EXEMPTEXPORT", "CAPITALEXINPUT", "GSTONCAPIMPORTS", "GSTONCAPITALIMPORTS", "REVERSECHARGES", "PAYMENTS", "INVOICE", "CASH", "ACCRUAL", "FLATRATECASH", "FLATRATEACCRUAL", "ACCRUALS", "TXCA", "SRCAS", "DSOUTPUT", "BLINPUT2", "EPINPUT", "IMINPUT2", "MEINPUT", "IGDSINPUT2", "ESN33OUTPUT", "OPINPUT", "OSOUTPUT", "TXN33INPUT", "TXESSINPUT", "TXREINPUT", "TXPETINPUT", "NRINPUT", "ES33OUTPUT", "ZERORATEDINPUT", "ZERORATEDOUTPUT", "DRCHARGESUPPLY", "DRCHARGE", "CAPINPUT", "CAPIMPORTS", "IMINPUT", "INPUT2", "CIUINPUT", "SRINPUT", "OUTPUT2", "SROUTPUT", "CAPOUTPUT", "SROUTPUT2", "CIUOUTPUT", "ZROUTPUT", "ZREXPORT", "ACC28PLUS", "ACCUPTO28", "OTHEROUTPUT", "SHOUTPUT", "ZRINPUT", "BADDEBT", "OTHERINPUT", "BADDEBTRELIEF", "IGDSINPUT3", "SROVR", "TOURISTREFUND", "TXRCN33INPUT", "TXRCREINPUT", "TXRCESSINPUT", "TXRCTSINPUT", "CAPEXINPUT", "UNDEFINED", "CAPEXOUTPUT", "ZEROEXPOUTPUT", "GOODSIMPORT", "NONEINPUT", "NOTREPORTED", "SROVRRS", "SROVRLVG", "SRLVG"])
303
306
  unless validator.valid?(report_tax_type)
304
307
  fail ArgumentError, "invalid value for \"report_tax_type\", must be one of #{validator.allowable_values}."
305
308
  end
@@ -81,6 +81,21 @@ module XeroRuby::Accounting
81
81
  TXRCREINPUT ||= "TXRCREINPUT".freeze
82
82
  TXRCESSINPUT ||= "TXRCESSINPUT".freeze
83
83
  TXRCTSINPUT ||= "TXRCTSINPUT".freeze
84
+ OUTPUTY23 ||= "OUTPUTY23".freeze
85
+ DSOUTPUTY23 ||= "DSOUTPUTY23".freeze
86
+ INPUTY23 ||= "INPUTY23".freeze
87
+ IMINPUT2_Y23 ||= "IMINPUT2Y23".freeze
88
+ IGDSINPUT2_Y23 ||= "IGDSINPUT2Y23".freeze
89
+ TXPETINPUTY23 ||= "TXPETINPUTY23".freeze
90
+ TXESSINPUTY23 ||= "TXESSINPUTY23".freeze
91
+ TXN33_INPUTY23 ||= "TXN33INPUTY23".freeze
92
+ TXREINPUTY23 ||= "TXREINPUTY23".freeze
93
+ TXCAY23 ||= "TXCAY23".freeze
94
+ BADDEBTRELIEFY23 ||= "BADDEBTRELIEFY23".freeze
95
+ IGDSINPUT3_Y23 ||= "IGDSINPUT3Y23".freeze
96
+ SROVRRSY23 ||= "SROVRRSY23".freeze
97
+ SROVRLVGY23 ||= "SROVRLVGY23".freeze
98
+ SRLVGY23 ||= "SRLVGY23".freeze
84
99
 
85
100
  # Builds the enum from string
86
101
  # @param [String] The enum value in the form of the string
@@ -7,9 +7,9 @@ Contact: api@xero.com
7
7
  Generated by: https://openapi-generator.tech
8
8
  OpenAPI Generator version: 4.3.1
9
9
 
10
- The version of the XeroOpenAPI document: 2.31.0
10
+ The version of the XeroOpenAPI document: 2.33.1
11
11
  =end
12
12
 
13
13
  module XeroRuby
14
- VERSION = '3.15.0'
14
+ VERSION = '3.16.0'
15
15
  end
@@ -44,6 +44,8 @@ module XeroRuby
44
44
  'Contact.ContactID'
45
45
  when :contact_number
46
46
  'Contact.ContactNumber'
47
+ when :invoice_id
48
+ 'Invoice.InvoiceId'
47
49
  else
48
50
  camelize_key(key)
49
51
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xero-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.15.0
4
+ version: 3.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xero API Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-08 00:00:00.000000000 Z
11
+ date: 2022-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday