xero-ruby 5.0.0 → 7.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18bdffd499f4b2da45d04f3d6540ee20f798aadb3acf8f3518ca27ac9868542a
4
- data.tar.gz: a57b5aec5c85fbaaa63d00dd189907d5e67e15e4a109c6226feb80351b8a7f2b
3
+ metadata.gz: 2d67efc5594cf08152e6c19e21be97c9d10523fb57b0417f8e25bae32c661529
4
+ data.tar.gz: b1450c96d030b62fc025c5487e8d6f3df56cc3a76cec6528adab922de24b66f5
5
5
  SHA512:
6
- metadata.gz: 783bde6cb3c87a4be9c96633242574ea671a0ad0819bdd0c8329699b0be6dc5914d9069c7f6c1112d8514fe0263721b51a02a636446644fd4690408584a01b66
7
- data.tar.gz: d5bacee33d3788cb09349916053c313b5742ea558fb865821948ae73c8e734dd5bbe1ff97c8124ab06aa43eecf6f3ae03fc779b28966228430b90e3ffa72e61f
6
+ metadata.gz: 33c8ac8aff08468d9a45d5b6c07c567d0af5ba22ac0e10354669c219d87436f3c37a19fd694e6fec9124966722dde4f3b1a397ccc4d354cf9a292922d8c7b6ac
7
+ data.tar.gz: be35c7fb0ecc15333ab0cca08a694ca2d237d2c9be91a534d3bfc0ff6990a05f77789400cd5fee62ed1ce83568ca0c06dc2a82e85b86c6b5e9e2f5b88553ffed
data/README.md CHANGED
@@ -46,7 +46,7 @@ Sample apps can get you started quickly with simple auth flows to advanced usage
46
46
  | --- | --- | --- |
47
47
  | [`xero-ruby-oauth2-starter`](https://github.com/XeroAPI/Xero-ruby-oauth2-starter) | A Sinatra application showing the basic getting started code to work with the sdk | <img src="https://i.imgur.com/9H4F98M.png" alt="drawing" width="300"/>
48
48
  | [`xero-ruby-oauth2-app`](https://github.com/XeroAPI/Xero-ruby-oauth2-app) | Complete rails app with +95% of api set examples, complex filters, pagination, and user/token management in postgres | <img src="https://i.imgur.com/XsAp9Ww.png" alt="drawing" width="500"/>
49
- | [`xero-ruby-custom-connections-starter`](https://github.com/XeroAPI/xero-ruby-custom-connections-starter) | A getting started Sinatra app showing Custom Connections - a Xero [premium option](https://developer.xero.com/documentation/oauth2/custom-connections) for building M2M integrations to a single org | <img src="https://i.imgur.com/YEkScui.png" alt="drawing" width="300"/>
49
+ | [`xero-ruby-custom-connections-starter`](https://github.com/XeroAPI/xero-ruby-custom-connections-starter) | A getting started Sinatra app showing Custom Connections - a Xero [premium option](https://developer.xero.com/documentation/guides/oauth2/custom-connections) for building M2M integrations to a single org | <img src="https://i.imgur.com/YEkScui.png" alt="drawing" width="300"/>
50
50
  | [`xero-ruby-sso-form`](https://github.com/XeroAPI/xero-ruby-sso-form) | A basic Sinatra app showing how to implement SSU to Lead | <img src="https://i.imgur.com/Nf95GVd.png" alt="drawing" width="300"/>
51
51
 
52
52
  <hr>
@@ -15604,12 +15604,86 @@ module XeroRuby
15604
15604
  return data, status_code, headers
15605
15605
  end
15606
15606
 
15607
+ # Retrieves a specific tax rate according to given TaxType code
15608
+ # @param xero_tenant_id [String] Xero identifier for Tenant
15609
+ # @param tax_type [String] A valid TaxType code
15610
+ # @param [Hash] opts the optional parameters
15611
+ # @return [TaxRates]
15612
+ def get_tax_rate_by_tax_type(xero_tenant_id, tax_type, opts = {})
15613
+ data, _status_code, _headers = get_tax_rate_by_tax_type_with_http_info(xero_tenant_id, tax_type, opts)
15614
+ data
15615
+ end
15616
+
15617
+ # Retrieves a specific tax rate according to given TaxType code
15618
+ # @param xero_tenant_id [String] Xero identifier for Tenant
15619
+ # @param tax_type [String] A valid TaxType code
15620
+ # @param [Hash] opts the optional parameters
15621
+ # @return [Array<(TaxRates, Integer, Hash)>] TaxRates data, response status code and response headers
15622
+ def get_tax_rate_by_tax_type_with_http_info(xero_tenant_id, tax_type, options = {})
15623
+ opts = options.dup
15624
+ if @api_client.config.debugging
15625
+ @api_client.config.logger.debug 'Calling API: AccountingApi.get_tax_rate_by_tax_type ...'
15626
+ end
15627
+ # verify the required parameter 'xero_tenant_id' is set
15628
+ if @api_client.config.client_side_validation && xero_tenant_id.nil?
15629
+ fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_tax_rate_by_tax_type"
15630
+ end
15631
+ # verify the required parameter 'tax_type' is set
15632
+ if @api_client.config.client_side_validation && tax_type.nil?
15633
+ fail ArgumentError, "Missing the required parameter 'tax_type' when calling AccountingApi.get_tax_rate_by_tax_type"
15634
+ end
15635
+ # resource path
15636
+ local_var_path = '/TaxRates/{TaxType}'.sub('{' + 'TaxType' + '}', tax_type.to_s)
15637
+
15638
+ # camelize keys of incoming `where` opts
15639
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
15640
+
15641
+ # query parameters
15642
+ query_params = opts[:query_params] || {}
15643
+
15644
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
15645
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
15646
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
15647
+
15648
+ # header parameters
15649
+ header_params = opts[:header_params] || {}
15650
+ # HTTP header 'Accept' (if needed)
15651
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
15652
+ header_params[:'xero-tenant-id'] = xero_tenant_id
15653
+
15654
+ # form parameters
15655
+ form_params = opts[:form_params] || {}
15656
+
15657
+ # http body (model)
15658
+ post_body = opts[:body]
15659
+
15660
+ # return_type
15661
+ return_type = opts[:return_type] || 'TaxRates'
15662
+
15663
+ # auth_names
15664
+ auth_names = opts[:auth_names] || ['OAuth2']
15665
+
15666
+ new_options = opts.merge(
15667
+ :header_params => header_params,
15668
+ :query_params => query_params,
15669
+ :form_params => form_params,
15670
+ :body => post_body,
15671
+ :auth_names => auth_names,
15672
+ :return_type => return_type
15673
+ )
15674
+
15675
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
15676
+ if @api_client.config.debugging
15677
+ @api_client.config.logger.debug "API called: AccountingApi#get_tax_rate_by_tax_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
15678
+ end
15679
+ return data, status_code, headers
15680
+ end
15681
+
15607
15682
  # Retrieves tax rates
15608
15683
  # @param xero_tenant_id [String] Xero identifier for Tenant
15609
15684
  # @param [Hash] opts the optional parameters
15610
15685
  # @option opts [String] :where Filter by an any element
15611
15686
  # @option opts [String] :order Order by an any element
15612
- # @option opts [String] :tax_type Filter by tax type
15613
15687
  # @return [TaxRates]
15614
15688
  def get_tax_rates(xero_tenant_id, opts = {})
15615
15689
  data, _status_code, _headers = get_tax_rates_with_http_info(xero_tenant_id, opts)
@@ -15621,7 +15695,6 @@ module XeroRuby
15621
15695
  # @param [Hash] opts the optional parameters
15622
15696
  # @option opts [String] :where Filter by an any element
15623
15697
  # @option opts [String] :order Order by an any element
15624
- # @option opts [String] :tax_type Filter by tax type
15625
15698
  # @return [Array<(TaxRates, Integer, Hash)>] TaxRates data, response status code and response headers
15626
15699
  def get_tax_rates_with_http_info(xero_tenant_id, options = {})
15627
15700
  opts = options.dup
@@ -15642,7 +15715,6 @@ module XeroRuby
15642
15715
  query_params = opts[:query_params] || {}
15643
15716
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
15644
15717
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
15645
- query_params[:'TaxType'] = opts[:'tax_type'] if !opts[:'tax_type'].nil?
15646
15718
 
15647
15719
  # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
15648
15720
  query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
@@ -18,7 +18,7 @@ module XeroRuby::Accounting
18
18
  class Allocation
19
19
  # Xero generated unique identifier
20
20
  attr_accessor :allocation_id
21
-
21
+
22
22
 
23
23
  attr_accessor :invoice
24
24
 
@@ -39,7 +39,7 @@ module XeroRuby::Accounting
39
39
 
40
40
  # A flag that returns true when the allocation is succesfully deleted
41
41
  attr_accessor :is_deleted
42
-
42
+
43
43
  # A string to indicate if a invoice status
44
44
  attr_accessor :status_attribute_string
45
45
 
@@ -168,6 +168,9 @@ module XeroRuby::Accounting
168
168
  NON_GST_CASHBOOK ||= "NON_GST_CASHBOOK".freeze
169
169
  ULTIMATE ||= "ULTIMATE".freeze
170
170
  LITE ||= "LITE".freeze
171
+ IGNITE ||= "IGNITE".freeze
172
+ GROW ||= "GROW".freeze
173
+ COMPREHENSIVE ||= "COMPREHENSIVE".freeze
171
174
 
172
175
  # BUSINESS or PARTNER. Partner edition organisations are sold exclusively through accounting partners and have restricted functionality (e.g. no access to invoicing)
173
176
  attr_accessor :edition
@@ -463,7 +466,7 @@ module XeroRuby::Accounting
463
466
  return false unless sales_tax_period_validator.valid?(@sales_tax_period)
464
467
  organisation_entity_type_validator = EnumAttributeValidator.new('String', ["ACCOUNTING_PRACTICE", "COMPANY", "CHARITY", "CLUB_OR_SOCIETY", "INDIVIDUAL", "LOOK_THROUGH_COMPANY", "NOT_FOR_PROFIT", "PARTNERSHIP", "S_CORPORATION", "SELF_MANAGED_SUPERANNUATION_FUND", "SOLE_TRADER", "SUPERANNUATION_FUND", "TRUST"])
465
468
  return false unless organisation_entity_type_validator.valid?(@organisation_entity_type)
466
- _class_validator = EnumAttributeValidator.new('String', ["DEMO", "TRIAL", "STARTER", "STANDARD", "PREMIUM", "PREMIUM_20", "PREMIUM_50", "PREMIUM_100", "LEDGER", "GST_CASHBOOK", "NON_GST_CASHBOOK", "ULTIMATE", "LITE"])
469
+ _class_validator = EnumAttributeValidator.new('String', ["DEMO", "TRIAL", "STARTER", "STANDARD", "PREMIUM", "PREMIUM_20", "PREMIUM_50", "PREMIUM_100", "LEDGER", "GST_CASHBOOK", "NON_GST_CASHBOOK", "ULTIMATE", "LITE", "IGNITE", "GROW", "COMPREHENSIVE"])
467
470
  return false unless _class_validator.valid?(@_class)
468
471
  edition_validator = EnumAttributeValidator.new('String', ["BUSINESS", "PARTNER"])
469
472
  return false unless edition_validator.valid?(@edition)
@@ -523,7 +526,7 @@ module XeroRuby::Accounting
523
526
  # Custom attribute writer method checking allowed values (enum).
524
527
  # @param [Object] _class Object to be assigned
525
528
  def _class=(_class)
526
- validator = EnumAttributeValidator.new('String', ["DEMO", "TRIAL", "STARTER", "STANDARD", "PREMIUM", "PREMIUM_20", "PREMIUM_50", "PREMIUM_100", "LEDGER", "GST_CASHBOOK", "NON_GST_CASHBOOK", "ULTIMATE", "LITE"])
529
+ validator = EnumAttributeValidator.new('String', ["DEMO", "TRIAL", "STARTER", "STANDARD", "PREMIUM", "PREMIUM_20", "PREMIUM_50", "PREMIUM_100", "LEDGER", "GST_CASHBOOK", "NON_GST_CASHBOOK", "ULTIMATE", "LITE", "IGNITE", "GROW", "COMPREHENSIVE"])
527
530
  unless validator.valid?(_class)
528
531
  fail ArgumentError, "invalid value for \"_class\", must be one of #{validator.allowable_values}."
529
532
  end
@@ -107,6 +107,9 @@ module XeroRuby::Accounting
107
107
  # Displays array of validation error messages from the API
108
108
  attr_accessor :validation_errors
109
109
 
110
+ # Displays array of warning messages from the API
111
+ attr_accessor :warnings
112
+
110
113
  class EnumAttributeValidator
111
114
  attr_reader :datatype
112
115
  attr_reader :allowable_values
@@ -158,7 +161,8 @@ module XeroRuby::Accounting
158
161
  :'has_account' => :'HasAccount',
159
162
  :'has_validation_errors' => :'HasValidationErrors',
160
163
  :'status_attribute_string' => :'StatusAttributeString',
161
- :'validation_errors' => :'ValidationErrors'
164
+ :'validation_errors' => :'ValidationErrors',
165
+ :'warnings' => :'Warnings'
162
166
  }
163
167
  end
164
168
 
@@ -191,7 +195,8 @@ module XeroRuby::Accounting
191
195
  :'has_account' => :'Boolean',
192
196
  :'has_validation_errors' => :'Boolean',
193
197
  :'status_attribute_string' => :'String',
194
- :'validation_errors' => :'Array<ValidationError>'
198
+ :'validation_errors' => :'Array<ValidationError>',
199
+ :'warnings' => :'Array<ValidationError>'
195
200
  }
196
201
  end
197
202
 
@@ -323,6 +328,12 @@ module XeroRuby::Accounting
323
328
  self.validation_errors = value
324
329
  end
325
330
  end
331
+
332
+ if attributes.key?(:'warnings')
333
+ if (value = attributes[:'warnings']).is_a?(Array)
334
+ self.warnings = value
335
+ end
336
+ end
326
337
  end
327
338
 
328
339
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -393,7 +404,8 @@ module XeroRuby::Accounting
393
404
  has_account == o.has_account &&
394
405
  has_validation_errors == o.has_validation_errors &&
395
406
  status_attribute_string == o.status_attribute_string &&
396
- validation_errors == o.validation_errors
407
+ validation_errors == o.validation_errors &&
408
+ warnings == o.warnings
397
409
  end
398
410
 
399
411
  # @see the `==` method
@@ -405,7 +417,7 @@ module XeroRuby::Accounting
405
417
  # Calculates hash code according to all attributes.
406
418
  # @return [Integer] Hash code
407
419
  def 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
420
+ [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, warnings].hash
409
421
  end
410
422
 
411
423
  # Builds the object from hash
@@ -132,6 +132,7 @@ module XeroRuby::Accounting
132
132
  IMRE ||= "IMRE".freeze
133
133
  BADDEBTRECOVERY ||= "BADDEBTRECOVERY".freeze
134
134
  USSALESTAX ||= "USSALESTAX".freeze
135
+ BLINPUT3 ||= "BLINPUT3".freeze
135
136
 
136
137
  # Boolean to describe if tax rate can be used for asset accounts i.e. true,false
137
138
  attr_accessor :can_apply_to_assets
@@ -290,7 +291,7 @@ module XeroRuby::Accounting
290
291
  def valid?
291
292
  status_validator = EnumAttributeValidator.new('String', ["ACTIVE", "DELETED", "ARCHIVED", "PENDING"])
292
293
  return false unless status_validator.valid?(@status)
293
- 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", "TXRCN33", "TXRCRE", "TXRCESS", "TXRCTS", "CAPEXINPUT", "UNDEFINED", "CAPEXOUTPUT", "ZEROEXPOUTPUT", "GOODSIMPORT", "NONEINPUT", "NOTREPORTED", "SROVRRS", "SROVRLVG", "SRLVG", "IM", "IMESS", "IMN33", "IMRE", "BADDEBTRECOVERY", "USSALESTAX"])
294
+ 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", "TXRCN33", "TXRCRE", "TXRCESS", "TXRCTS", "CAPEXINPUT", "UNDEFINED", "CAPEXOUTPUT", "ZEROEXPOUTPUT", "GOODSIMPORT", "NONEINPUT", "NOTREPORTED", "SROVRRS", "SROVRLVG", "SRLVG", "IM", "IMESS", "IMN33", "IMRE", "BADDEBTRECOVERY", "USSALESTAX", "BLINPUT3"])
294
295
  return false unless report_tax_type_validator.valid?(@report_tax_type)
295
296
  true
296
297
  end
@@ -308,7 +309,7 @@ module XeroRuby::Accounting
308
309
  # Custom attribute writer method checking allowed values (enum).
309
310
  # @param [Object] report_tax_type Object to be assigned
310
311
  def report_tax_type=(report_tax_type)
311
- 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", "TXRCN33", "TXRCRE", "TXRCESS", "TXRCTS", "CAPEXINPUT", "UNDEFINED", "CAPEXOUTPUT", "ZEROEXPOUTPUT", "GOODSIMPORT", "NONEINPUT", "NOTREPORTED", "SROVRRS", "SROVRLVG", "SRLVG", "IM", "IMESS", "IMN33", "IMRE", "BADDEBTRECOVERY", "USSALESTAX"])
312
+ 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", "TXRCN33", "TXRCRE", "TXRCESS", "TXRCTS", "CAPEXINPUT", "UNDEFINED", "CAPEXOUTPUT", "ZEROEXPOUTPUT", "GOODSIMPORT", "NONEINPUT", "NOTREPORTED", "SROVRRS", "SROVRLVG", "SRLVG", "IM", "IMESS", "IMN33", "IMRE", "BADDEBTRECOVERY", "USSALESTAX", "BLINPUT3"])
312
313
  unless validator.valid?(report_tax_type)
313
314
  fail ArgumentError, "invalid value for \"report_tax_type\", must be one of #{validator.allowable_values}."
314
315
  end
@@ -134,6 +134,9 @@ module XeroRuby::Accounting
134
134
  IMREY24 ||= "IMREY24".freeze
135
135
  BADDEBTRECOVERYY24 ||= "BADDEBTRECOVERYY24".freeze
136
136
  OSOUTPUT2 ||= "OSOUTPUT2".freeze
137
+ BLINPUT3 ||= "BLINPUT3".freeze
138
+ BLINPUT3_Y23 ||= "BLINPUT3Y23".freeze
139
+ BLINPUT3_Y24 ||= "BLINPUT3Y24".freeze
137
140
 
138
141
  # Builds the enum from string
139
142
  # @param [String] The enum value in the form of the string
@@ -84,10 +84,10 @@ module XeroRuby::Accounting
84
84
 
85
85
  # Contact legal name
86
86
  attr_accessor :legal_name
87
-
87
+
88
88
  # Contact business name
89
89
  attr_accessor :business_name
90
-
90
+
91
91
  # Contact federal tax classification
92
92
  attr_accessor :federal_tax_classification
93
93
  SOLE_PROPRIETOR ||= "SOLE_PROPRIETOR".freeze
@@ -97,7 +97,7 @@ module XeroRuby::Accounting
97
97
  C_CORP ||= "C_CORP".freeze
98
98
  S_CORP ||= "S_CORP".freeze
99
99
  OTHER ||= "OTHER".freeze
100
-
100
+
101
101
  class EnumAttributeValidator
102
102
  attr_reader :datatype
103
103
  attr_reader :allowable_values
@@ -16,6 +16,15 @@ module XeroRuby::Files
16
16
  require 'bigdecimal'
17
17
 
18
18
  class Association
19
+ # Boolean flag to determines whether the file is sent with the document it is attached to on client facing communications. Note- The SendWithObject element is only returned when using /Associations/{ObjectId} endpoint.
20
+ attr_accessor :send_with_object
21
+
22
+ # The name of the associated file. Note- The Name element is only returned when using /Associations/{ObjectId} endpoint.
23
+ attr_accessor :name
24
+
25
+ # The size of the associated file in bytes. Note- The Size element is only returned when using /Associations/{ObjectId} endpoint.
26
+ attr_accessor :size
27
+
19
28
  # The unique identifier of the file
20
29
  attr_accessor :file_id
21
30
 
@@ -31,6 +40,9 @@ module XeroRuby::Files
31
40
  # Attribute mapping from ruby-style variable name to JSON key.
32
41
  def self.attribute_map
33
42
  {
43
+ :'send_with_object' => :'SendWithObject',
44
+ :'name' => :'Name',
45
+ :'size' => :'Size',
34
46
  :'file_id' => :'FileId',
35
47
  :'object_id' => :'ObjectId',
36
48
  :'object_group' => :'ObjectGroup',
@@ -41,6 +53,9 @@ module XeroRuby::Files
41
53
  # Attribute type mapping.
42
54
  def self.openapi_types
43
55
  {
56
+ :'send_with_object' => :'Boolean',
57
+ :'name' => :'String',
58
+ :'size' => :'Integer',
44
59
  :'file_id' => :'String',
45
60
  :'object_id' => :'String',
46
61
  :'object_group' => :'ObjectGroup',
@@ -63,6 +78,18 @@ module XeroRuby::Files
63
78
  h[k.to_sym] = v
64
79
  }
65
80
 
81
+ if attributes.key?(:'send_with_object')
82
+ self.send_with_object = attributes[:'send_with_object']
83
+ end
84
+
85
+ if attributes.key?(:'name')
86
+ self.name = attributes[:'name']
87
+ end
88
+
89
+ if attributes.key?(:'size')
90
+ self.size = attributes[:'size']
91
+ end
92
+
66
93
  if attributes.key?(:'file_id')
67
94
  self.file_id = attributes[:'file_id']
68
95
  end
@@ -98,6 +125,9 @@ module XeroRuby::Files
98
125
  def ==(o)
99
126
  return true if self.equal?(o)
100
127
  self.class == o.class &&
128
+ send_with_object == o.send_with_object &&
129
+ name == o.name &&
130
+ size == o.size &&
101
131
  file_id == o.file_id &&
102
132
  object_id == o.object_id &&
103
133
  object_group == o.object_group &&
@@ -113,7 +143,7 @@ module XeroRuby::Files
113
143
  # Calculates hash code according to all attributes.
114
144
  # @return [Integer] Hash code
115
145
  def hash
116
- [file_id, object_id, object_group, object_type].hash
146
+ [send_with_object, name, size, file_id, object_id, object_group, object_type].hash
117
147
  end
118
148
 
119
149
  # Builds the object from hash
@@ -20,7 +20,6 @@ module XeroRuby::PayrollAu
20
20
  MEALS ||= "MEALS".freeze
21
21
  TRAVEL ||= "TRAVEL".freeze
22
22
  OTHER ||= "OTHER".freeze
23
- JOBKEEPER ||= "JOBKEEPER".freeze
24
23
  TOOLS ||= "TOOLS".freeze
25
24
  TASKS ||= "TASKS".freeze
26
25
  QUALIFICATIONS ||= "QUALIFICATIONS".freeze
@@ -62,7 +62,7 @@ module XeroRuby::PayrollNz
62
62
 
63
63
  # Employee's job title
64
64
  attr_accessor :job_title
65
-
65
+
66
66
  class EnumAttributeValidator
67
67
  attr_reader :datatype
68
68
  attr_reader :allowable_values
@@ -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: 3.0.0
10
+ The version of the XeroOpenAPI document: 4.0.0
11
11
  =end
12
12
 
13
13
  module XeroRuby
14
- VERSION = '5.0.0'
14
+ VERSION = '7.0.0'
15
15
  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: 5.0.0
4
+ version: 7.0.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: 2024-02-02 00:00:00.000000000 Z
11
+ date: 2024-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday