xero-ruby 3.7.0 → 3.7.1

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: 29e6f0618655087a784f836d1267fca44bde1a7ab7d0e43fa979eee59e635185
4
- data.tar.gz: b62700762b38fe788780dfc19bd0bd40b9cfe14911c66b431449c815aa8c9469
3
+ metadata.gz: 2ca9c97d0563f7c0afdfd394027980e8e1c03fa8b976e89897b81bb4c70a8516
4
+ data.tar.gz: f664ff155e620b8b744ff781c7ee3292e44c0f272df4f1b2b9436a073cdaf599
5
5
  SHA512:
6
- metadata.gz: 9d3c5d78a58a4a32a53f4cbf4b5e236730bb93362534c43d4d201e8543aa82b77ceda220a76feab29c4bfea7112b0d69f83e1552170fbe6eeca6b0fb16a3bf82
7
- data.tar.gz: 6912ff3d5ba867f63e7694fa14899f32641e0e9a8525d187a6576b969f1a81ef7349e28b2ef29b91b0b0ef2b117b57ad90980c6cbc4ef8fdcd302ee47240b5bf
6
+ metadata.gz: 416eb3d2e28e3cd3be72fed48695f767f6c2e6db156cddbded08fd6c514efa7a9e6ce8f006d4eec5d81d18729c2c65f573f83b9d3897cc748f14d5557521bf4d
7
+ data.tar.gz: 0f405451c84c1f83ea23639e3c2648a905313cced2a482604af726f307c7ed8421c1dbea3bb38cfd780fe01dc07143367484bd2e09292361e9aaee11c70e19a3
@@ -50,6 +50,7 @@ module XeroRuby::Accounting
50
50
  COMPANY ||= "COMPANY".freeze
51
51
  CHARITY ||= "CHARITY".freeze
52
52
  CLUB_OR_SOCIETY ||= "CLUB_OR_SOCIETY".freeze
53
+ INDIVIDUAL ||= "INDIVIDUAL".freeze
53
54
  LOOK_THROUGH_COMPANY ||= "LOOK_THROUGH_COMPANY".freeze
54
55
  NOT_FOR_PROFIT ||= "NOT_FOR_PROFIT".freeze
55
56
  PARTNERSHIP ||= "PARTNERSHIP".freeze
@@ -139,6 +140,7 @@ module XeroRuby::Accounting
139
140
  COMPANY ||= "COMPANY".freeze
140
141
  CHARITY ||= "CHARITY".freeze
141
142
  CLUB_OR_SOCIETY ||= "CLUB_OR_SOCIETY".freeze
143
+ INDIVIDUAL ||= "INDIVIDUAL".freeze
142
144
  LOOK_THROUGH_COMPANY ||= "LOOK_THROUGH_COMPANY".freeze
143
145
  NOT_FOR_PROFIT ||= "NOT_FOR_PROFIT".freeze
144
146
  PARTNERSHIP ||= "PARTNERSHIP".freeze
@@ -451,13 +453,13 @@ module XeroRuby::Accounting
451
453
  def valid?
452
454
  version_validator = EnumAttributeValidator.new('String', ["AU", "NZ", "GLOBAL", "UK", "US", "AUONRAMP", "NZONRAMP", "GLOBALONRAMP", "UKONRAMP", "USONRAMP"])
453
455
  return false unless version_validator.valid?(@version)
454
- organisation_type_validator = EnumAttributeValidator.new('String', ["ACCOUNTING_PRACTICE", "COMPANY", "CHARITY", "CLUB_OR_SOCIETY", "LOOK_THROUGH_COMPANY", "NOT_FOR_PROFIT", "PARTNERSHIP", "S_CORPORATION", "SELF_MANAGED_SUPERANNUATION_FUND", "SOLE_TRADER", "SUPERANNUATION_FUND", "TRUST"])
456
+ organisation_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"])
455
457
  return false unless organisation_type_validator.valid?(@organisation_type)
456
458
  sales_tax_basis_validator = EnumAttributeValidator.new('String', ["PAYMENTS", "INVOICE", "NONE", "CASH", "ACCRUAL", "FLATRATECASH", "FLATRATEACCRUAL", "ACCRUALS"])
457
459
  return false unless sales_tax_basis_validator.valid?(@sales_tax_basis)
458
460
  sales_tax_period_validator = EnumAttributeValidator.new('String', ["MONTHLY", "QUARTERLY1", "QUARTERLY2", "QUARTERLY3", "ANNUALLY", "ONEMONTHS", "TWOMONTHS", "SIXMONTHS", "1MONTHLY", "2MONTHLY", "3MONTHLY", "6MONTHLY", "QUARTERLY", "YEARLY", "NONE"])
459
461
  return false unless sales_tax_period_validator.valid?(@sales_tax_period)
460
- organisation_entity_type_validator = EnumAttributeValidator.new('String', ["ACCOUNTING_PRACTICE", "COMPANY", "CHARITY", "CLUB_OR_SOCIETY", "LOOK_THROUGH_COMPANY", "NOT_FOR_PROFIT", "PARTNERSHIP", "S_CORPORATION", "SELF_MANAGED_SUPERANNUATION_FUND", "SOLE_TRADER", "SUPERANNUATION_FUND", "TRUST"])
462
+ 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"])
461
463
  return false unless organisation_entity_type_validator.valid?(@organisation_entity_type)
462
464
  _class_validator = EnumAttributeValidator.new('String', ["DEMO", "TRIAL", "STARTER", "STANDARD", "PREMIUM", "PREMIUM_20", "PREMIUM_50", "PREMIUM_100", "LEDGER", "GST_CASHBOOK", "NON_GST_CASHBOOK"])
463
465
  return false unless _class_validator.valid?(@_class)
@@ -479,7 +481,7 @@ module XeroRuby::Accounting
479
481
  # Custom attribute writer method checking allowed values (enum).
480
482
  # @param [Object] organisation_type Object to be assigned
481
483
  def organisation_type=(organisation_type)
482
- validator = EnumAttributeValidator.new('String', ["ACCOUNTING_PRACTICE", "COMPANY", "CHARITY", "CLUB_OR_SOCIETY", "LOOK_THROUGH_COMPANY", "NOT_FOR_PROFIT", "PARTNERSHIP", "S_CORPORATION", "SELF_MANAGED_SUPERANNUATION_FUND", "SOLE_TRADER", "SUPERANNUATION_FUND", "TRUST"])
484
+ 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"])
483
485
  unless validator.valid?(organisation_type)
484
486
  fail ArgumentError, "invalid value for \"organisation_type\", must be one of #{validator.allowable_values}."
485
487
  end
@@ -509,7 +511,7 @@ module XeroRuby::Accounting
509
511
  # Custom attribute writer method checking allowed values (enum).
510
512
  # @param [Object] organisation_entity_type Object to be assigned
511
513
  def organisation_entity_type=(organisation_entity_type)
512
- validator = EnumAttributeValidator.new('String', ["ACCOUNTING_PRACTICE", "COMPANY", "CHARITY", "CLUB_OR_SOCIETY", "LOOK_THROUGH_COMPANY", "NOT_FOR_PROFIT", "PARTNERSHIP", "S_CORPORATION", "SELF_MANAGED_SUPERANNUATION_FUND", "SOLE_TRADER", "SUPERANNUATION_FUND", "TRUST"])
514
+ 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"])
513
515
  unless validator.valid?(organisation_entity_type)
514
516
  fail ArgumentError, "invalid value for \"organisation_entity_type\", must be one of #{validator.allowable_values}."
515
517
  end
@@ -52,7 +52,7 @@ module XeroRuby::Finance
52
52
  :'bank_transaction_id' => :'String',
53
53
  :'batch_payment_id' => :'String',
54
54
  :'contact' => :'ContactResponse',
55
- :'date' => :'DateTime',
55
+ :'date' => :'Date',
56
56
  :'amount' => :'BigDecimal',
57
57
  :'line_items' => :'Array<LineItemResponse>'
58
58
  }
@@ -67,7 +67,7 @@ module XeroRuby::Finance
67
67
  {
68
68
  :'payment_id' => :'String',
69
69
  :'batch_payment_id' => :'String',
70
- :'date' => :'DateTime',
70
+ :'date' => :'Date',
71
71
  :'amount' => :'BigDecimal',
72
72
  :'bank_amount' => :'BigDecimal',
73
73
  :'currency_rate' => :'Float',
@@ -78,12 +78,12 @@ module XeroRuby::Finance
78
78
  def self.openapi_types
79
79
  {
80
80
  :'statement_line_id' => :'String',
81
- :'posted_date' => :'DateTime',
81
+ :'posted_date' => :'Date',
82
82
  :'reference' => :'String',
83
83
  :'notes' => :'String',
84
84
  :'cheque_no' => :'String',
85
85
  :'amount' => :'BigDecimal',
86
- :'transaction_date' => :'DateTime',
86
+ :'transaction_date' => :'Date',
87
87
  :'type' => :'String',
88
88
  :'is_reconciled' => :'Boolean',
89
89
  :'is_duplicate' => :'Boolean',
@@ -50,8 +50,8 @@ module XeroRuby::Finance
50
50
  def self.openapi_types
51
51
  {
52
52
  :'statement_id' => :'String',
53
- :'start_date' => :'DateTime',
54
- :'end_date' => :'DateTime',
53
+ :'start_date' => :'Date',
54
+ :'end_date' => :'Date',
55
55
  :'imported_date_time_utc' => :'DateTime',
56
56
  :'import_source' => :'String',
57
57
  :'statement_lines' => :'Array<StatementLineResponse>'
@@ -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.19.1
10
+ The version of the XeroOpenAPI document: 2.19.3
11
11
  =end
12
12
 
13
13
  module XeroRuby
14
- VERSION = '3.7.0'
14
+ VERSION = '3.7.1'
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: 3.7.0
4
+ version: 3.7.1
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-03-08 00:00:00.000000000 Z
11
+ date: 2022-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday