avalara_sdk 25.11.0 → 25.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/docs/A1099/V2/CompaniesW9Api.md +5 -5
- data/docs/A1099/V2/CoveredIndividual.md +0 -2
- data/docs/A1099/V2/Form1099ListRequest.md +1 -1
- data/docs/A1099/V2/Form1099R.md +2 -2
- data/docs/A1099/V2/Forms1099Api.md +9 -9
- data/docs/A1099/V2/FormsW9Api.md +9 -9
- data/docs/A1099/V2/IssuerBase.md +3 -3
- data/docs/A1099/V2/IssuerRequest.md +3 -3
- data/docs/A1099/V2/IssuerResponse.md +3 -3
- data/docs/A1099/V2/Issuers1099Api.md +7 -7
- data/docs/A1099/V2/JobsApi.md +1 -1
- data/docs/A1099/V2/StateAndLocalWithholding.md +4 -4
- data/docs/A1099/V2/ValidationError.md +3 -1
- data/lib/avalara_sdk/api/A1099/V2/companies_w9_api.rb +1 -1
- data/lib/avalara_sdk/api/A1099/V2/forms1099_api.rb +1 -1
- data/lib/avalara_sdk/api/A1099/V2/forms_w9_api.rb +1 -1
- data/lib/avalara_sdk/api/A1099/V2/issuers1099_api.rb +1 -1
- data/lib/avalara_sdk/api/A1099/V2/jobs_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/data_input_fields_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/documents_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/interop_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/mandates_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/subscriptions_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/tax_identifiers_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/trading_partners_api.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/covered_individual.rb +1 -12
- data/lib/avalara_sdk/models/A1099/V2/form1042_s.rb +2 -2
- data/lib/avalara_sdk/models/A1099/V2/form1095_b.rb +2 -2
- data/lib/avalara_sdk/models/A1099/V2/form1095_c.rb +2 -2
- data/lib/avalara_sdk/models/A1099/V2/form1099_base.rb +2 -2
- data/lib/avalara_sdk/models/A1099/V2/form1099_div.rb +2 -2
- data/lib/avalara_sdk/models/A1099/V2/form1099_int.rb +2 -2
- data/lib/avalara_sdk/models/A1099/V2/form1099_k.rb +2 -2
- data/lib/avalara_sdk/models/A1099/V2/form1099_list_request.rb +3 -2
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc.rb +2 -2
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec.rb +2 -2
- data/lib/avalara_sdk/models/A1099/V2/form1099_r.rb +6 -6
- data/lib/avalara_sdk/models/A1099/V2/issuer_base.rb +4 -4
- data/lib/avalara_sdk/models/A1099/V2/issuer_request.rb +4 -4
- data/lib/avalara_sdk/models/A1099/V2/issuer_response.rb +4 -4
- data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding.rb +17 -17
- data/lib/avalara_sdk/models/A1099/V2/validation_error.rb +18 -5
- data/lib/avalara_sdk/version.rb +1 -1
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/byebug-11.1.3/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/date-3.4.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debase-0.2.9/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debug-1.10.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/erb-5.0.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/io-console-0.8.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.12.2/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/prism-1.4.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/psych-5.2.6/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/racc-1.8.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.1.7/gem_make.out +5 -5
- metadata +2 -2
|
@@ -33,9 +33,6 @@ module AvalaraSdk::A1099::V2
|
|
|
33
33
|
# Covered individual's date of birth - Required when SSN is missing.
|
|
34
34
|
attr_accessor :birth_date
|
|
35
35
|
|
|
36
|
-
# Coverage indicator for all 12 months
|
|
37
|
-
attr_accessor :covered_all_months
|
|
38
|
-
|
|
39
36
|
# Coverage indicator for January
|
|
40
37
|
attr_accessor :covered_january
|
|
41
38
|
|
|
@@ -82,7 +79,6 @@ module AvalaraSdk::A1099::V2
|
|
|
82
79
|
:'name_suffix' => :'nameSuffix',
|
|
83
80
|
:'tin' => :'tin',
|
|
84
81
|
:'birth_date' => :'birthDate',
|
|
85
|
-
:'covered_all_months' => :'coveredAllMonths',
|
|
86
82
|
:'covered_january' => :'coveredJanuary',
|
|
87
83
|
:'covered_february' => :'coveredFebruary',
|
|
88
84
|
:'covered_march' => :'coveredMarch',
|
|
@@ -113,7 +109,6 @@ module AvalaraSdk::A1099::V2
|
|
|
113
109
|
:'name_suffix' => :'String',
|
|
114
110
|
:'tin' => :'String',
|
|
115
111
|
:'birth_date' => :'Date',
|
|
116
|
-
:'covered_all_months' => :'Boolean',
|
|
117
112
|
:'covered_january' => :'Boolean',
|
|
118
113
|
:'covered_february' => :'Boolean',
|
|
119
114
|
:'covered_march' => :'Boolean',
|
|
@@ -139,7 +134,6 @@ module AvalaraSdk::A1099::V2
|
|
|
139
134
|
:'name_suffix',
|
|
140
135
|
:'tin',
|
|
141
136
|
:'birth_date',
|
|
142
|
-
:'covered_all_months',
|
|
143
137
|
:'covered_january',
|
|
144
138
|
:'covered_february',
|
|
145
139
|
:'covered_march',
|
|
@@ -202,10 +196,6 @@ module AvalaraSdk::A1099::V2
|
|
|
202
196
|
self.birth_date = attributes[:'birth_date']
|
|
203
197
|
end
|
|
204
198
|
|
|
205
|
-
if attributes.key?(:'covered_all_months')
|
|
206
|
-
self.covered_all_months = attributes[:'covered_all_months']
|
|
207
|
-
end
|
|
208
|
-
|
|
209
199
|
if attributes.key?(:'covered_january')
|
|
210
200
|
self.covered_january = attributes[:'covered_january']
|
|
211
201
|
end
|
|
@@ -282,7 +272,6 @@ module AvalaraSdk::A1099::V2
|
|
|
282
272
|
name_suffix == o.name_suffix &&
|
|
283
273
|
tin == o.tin &&
|
|
284
274
|
birth_date == o.birth_date &&
|
|
285
|
-
covered_all_months == o.covered_all_months &&
|
|
286
275
|
covered_january == o.covered_january &&
|
|
287
276
|
covered_february == o.covered_february &&
|
|
288
277
|
covered_march == o.covered_march &&
|
|
@@ -306,7 +295,7 @@ module AvalaraSdk::A1099::V2
|
|
|
306
295
|
# Calculates hash code according to all attributes.
|
|
307
296
|
# @return [Integer] Hash code
|
|
308
297
|
def hash
|
|
309
|
-
[id, first_name, middle_name, last_name, name_suffix, tin, birth_date,
|
|
298
|
+
[id, first_name, middle_name, last_name, name_suffix, tin, birth_date, covered_january, covered_february, covered_march, covered_april, covered_may, covered_june, covered_july, covered_august, covered_september, covered_october, covered_november, covered_december].hash
|
|
310
299
|
end
|
|
311
300
|
|
|
312
301
|
# Builds the object from hash
|
|
@@ -756,7 +756,7 @@ module AvalaraSdk::A1099::V2
|
|
|
756
756
|
chap4_status_code_validator = EnumAttributeValidator.new('String', ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50"])
|
|
757
757
|
return false unless chap4_status_code_validator.valid?(@chap4_status_code)
|
|
758
758
|
return false if @type.nil?
|
|
759
|
-
type_validator = EnumAttributeValidator.new('String', ["
|
|
759
|
+
type_validator = EnumAttributeValidator.new('String', ["1042-S", "1095-B", "1095-C", "1099-DIV", "1099-INT", "1099-K", "1099-MISC", "1099-NEC", "1099-R"])
|
|
760
760
|
return false unless type_validator.valid?(@type)
|
|
761
761
|
true
|
|
762
762
|
end
|
|
@@ -854,7 +854,7 @@ module AvalaraSdk::A1099::V2
|
|
|
854
854
|
# Custom attribute writer method checking allowed values (enum).
|
|
855
855
|
# @param [Object] type Object to be assigned
|
|
856
856
|
def type=(type)
|
|
857
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
857
|
+
validator = EnumAttributeValidator.new('String', ["1042-S", "1095-B", "1095-C", "1099-DIV", "1099-INT", "1099-K", "1099-MISC", "1099-NEC", "1099-R"])
|
|
858
858
|
unless validator.valid?(type)
|
|
859
859
|
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
|
860
860
|
end
|
|
@@ -577,7 +577,7 @@ module AvalaraSdk::A1099::V2
|
|
|
577
577
|
origin_of_health_coverage_code_validator = EnumAttributeValidator.new('String', ["A", "B", "C", "D", "E", "F", "G"])
|
|
578
578
|
return false unless origin_of_health_coverage_code_validator.valid?(@origin_of_health_coverage_code)
|
|
579
579
|
return false if @type.nil?
|
|
580
|
-
type_validator = EnumAttributeValidator.new('String', ["
|
|
580
|
+
type_validator = EnumAttributeValidator.new('String', ["1042-S", "1095-B", "1095-C", "1099-DIV", "1099-INT", "1099-K", "1099-MISC", "1099-NEC", "1099-R"])
|
|
581
581
|
return false unless type_validator.valid?(@type)
|
|
582
582
|
tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
|
583
583
|
return false unless tin_type_validator.valid?(@tin_type)
|
|
@@ -597,7 +597,7 @@ module AvalaraSdk::A1099::V2
|
|
|
597
597
|
# Custom attribute writer method checking allowed values (enum).
|
|
598
598
|
# @param [Object] type Object to be assigned
|
|
599
599
|
def type=(type)
|
|
600
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
600
|
+
validator = EnumAttributeValidator.new('String', ["1042-S", "1095-B", "1095-C", "1099-DIV", "1099-INT", "1099-K", "1099-MISC", "1099-NEC", "1099-R"])
|
|
601
601
|
unless validator.valid?(type)
|
|
602
602
|
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
|
603
603
|
end
|
|
@@ -605,7 +605,7 @@ module AvalaraSdk::A1099::V2
|
|
|
605
605
|
return false unless plan_start_month_validator.valid?(@plan_start_month)
|
|
606
606
|
return false if @offer_and_coverages.nil?
|
|
607
607
|
return false if @type.nil?
|
|
608
|
-
type_validator = EnumAttributeValidator.new('String', ["
|
|
608
|
+
type_validator = EnumAttributeValidator.new('String', ["1042-S", "1095-B", "1095-C", "1099-DIV", "1099-INT", "1099-K", "1099-MISC", "1099-NEC", "1099-R"])
|
|
609
609
|
return false unless type_validator.valid?(@type)
|
|
610
610
|
tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
|
611
611
|
return false unless tin_type_validator.valid?(@tin_type)
|
|
@@ -625,7 +625,7 @@ module AvalaraSdk::A1099::V2
|
|
|
625
625
|
# Custom attribute writer method checking allowed values (enum).
|
|
626
626
|
# @param [Object] type Object to be assigned
|
|
627
627
|
def type=(type)
|
|
628
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
628
|
+
validator = EnumAttributeValidator.new('String', ["1042-S", "1095-B", "1095-C", "1099-DIV", "1099-INT", "1099-K", "1099-MISC", "1099-NEC", "1099-R"])
|
|
629
629
|
unless validator.valid?(type)
|
|
630
630
|
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
|
631
631
|
end
|
|
@@ -490,7 +490,7 @@ module AvalaraSdk::A1099::V2
|
|
|
490
490
|
def valid?
|
|
491
491
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
492
492
|
return false if @type.nil?
|
|
493
|
-
type_validator = EnumAttributeValidator.new('String', ["
|
|
493
|
+
type_validator = EnumAttributeValidator.new('String', ["1042-S", "1095-B", "1095-C", "1099-DIV", "1099-INT", "1099-K", "1099-MISC", "1099-NEC", "1099-R"])
|
|
494
494
|
return false unless type_validator.valid?(@type)
|
|
495
495
|
tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
|
496
496
|
return false unless tin_type_validator.valid?(@tin_type)
|
|
@@ -500,7 +500,7 @@ module AvalaraSdk::A1099::V2
|
|
|
500
500
|
# Custom attribute writer method checking allowed values (enum).
|
|
501
501
|
# @param [Object] type Object to be assigned
|
|
502
502
|
def type=(type)
|
|
503
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
503
|
+
validator = EnumAttributeValidator.new('String', ["1042-S", "1095-B", "1095-C", "1099-DIV", "1099-INT", "1099-K", "1099-MISC", "1099-NEC", "1099-R"])
|
|
504
504
|
unless validator.valid?(type)
|
|
505
505
|
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
|
506
506
|
end
|
|
@@ -688,7 +688,7 @@ module AvalaraSdk::A1099::V2
|
|
|
688
688
|
def valid?
|
|
689
689
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
690
690
|
return false if @type.nil?
|
|
691
|
-
type_validator = EnumAttributeValidator.new('String', ["
|
|
691
|
+
type_validator = EnumAttributeValidator.new('String', ["1042-S", "1095-B", "1095-C", "1099-DIV", "1099-INT", "1099-K", "1099-MISC", "1099-NEC", "1099-R"])
|
|
692
692
|
return false unless type_validator.valid?(@type)
|
|
693
693
|
tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
|
694
694
|
return false unless tin_type_validator.valid?(@tin_type)
|
|
@@ -698,7 +698,7 @@ module AvalaraSdk::A1099::V2
|
|
|
698
698
|
# Custom attribute writer method checking allowed values (enum).
|
|
699
699
|
# @param [Object] type Object to be assigned
|
|
700
700
|
def type=(type)
|
|
701
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
701
|
+
validator = EnumAttributeValidator.new('String', ["1042-S", "1095-B", "1095-C", "1099-DIV", "1099-INT", "1099-K", "1099-MISC", "1099-NEC", "1099-R"])
|
|
702
702
|
unless validator.valid?(type)
|
|
703
703
|
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
|
704
704
|
end
|
|
@@ -648,7 +648,7 @@ module AvalaraSdk::A1099::V2
|
|
|
648
648
|
def valid?
|
|
649
649
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
650
650
|
return false if @type.nil?
|
|
651
|
-
type_validator = EnumAttributeValidator.new('String', ["
|
|
651
|
+
type_validator = EnumAttributeValidator.new('String', ["1042-S", "1095-B", "1095-C", "1099-DIV", "1099-INT", "1099-K", "1099-MISC", "1099-NEC", "1099-R"])
|
|
652
652
|
return false unless type_validator.valid?(@type)
|
|
653
653
|
tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
|
654
654
|
return false unless tin_type_validator.valid?(@tin_type)
|
|
@@ -658,7 +658,7 @@ module AvalaraSdk::A1099::V2
|
|
|
658
658
|
# Custom attribute writer method checking allowed values (enum).
|
|
659
659
|
# @param [Object] type Object to be assigned
|
|
660
660
|
def type=(type)
|
|
661
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
661
|
+
validator = EnumAttributeValidator.new('String', ["1042-S", "1095-B", "1095-C", "1099-DIV", "1099-INT", "1099-K", "1099-MISC", "1099-NEC", "1099-R"])
|
|
662
662
|
unless validator.valid?(type)
|
|
663
663
|
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
|
664
664
|
end
|
|
@@ -710,7 +710,7 @@ module AvalaraSdk::A1099::V2
|
|
|
710
710
|
payment_type_validator = EnumAttributeValidator.new('String', ["PaymentCard", "ThirdPartyNetwork"])
|
|
711
711
|
return false unless payment_type_validator.valid?(@payment_type)
|
|
712
712
|
return false if @type.nil?
|
|
713
|
-
type_validator = EnumAttributeValidator.new('String', ["
|
|
713
|
+
type_validator = EnumAttributeValidator.new('String', ["1042-S", "1095-B", "1095-C", "1099-DIV", "1099-INT", "1099-K", "1099-MISC", "1099-NEC", "1099-R"])
|
|
714
714
|
return false unless type_validator.valid?(@type)
|
|
715
715
|
tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
|
716
716
|
return false unless tin_type_validator.valid?(@tin_type)
|
|
@@ -740,7 +740,7 @@ module AvalaraSdk::A1099::V2
|
|
|
740
740
|
# Custom attribute writer method checking allowed values (enum).
|
|
741
741
|
# @param [Object] type Object to be assigned
|
|
742
742
|
def type=(type)
|
|
743
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
743
|
+
validator = EnumAttributeValidator.new('String', ["1042-S", "1095-B", "1095-C", "1099-DIV", "1099-INT", "1099-K", "1099-MISC", "1099-NEC", "1099-R"])
|
|
744
744
|
unless validator.valid?(type)
|
|
745
745
|
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
|
746
746
|
end
|
|
@@ -11,6 +11,7 @@ require 'time'
|
|
|
11
11
|
|
|
12
12
|
module AvalaraSdk::A1099::V2
|
|
13
13
|
class Form1099ListRequest
|
|
14
|
+
# Available form types: * `1042-S` * `1095-B` * `1095-C` * `1099-DIV` * `1099-INT` * `1099-K` * `1099-MISC` * `1099-NEC` * `1099-R`
|
|
14
15
|
attr_accessor :type
|
|
15
16
|
|
|
16
17
|
attr_accessor :forms
|
|
@@ -102,7 +103,7 @@ module AvalaraSdk::A1099::V2
|
|
|
102
103
|
# @return true if the model is valid
|
|
103
104
|
def valid?
|
|
104
105
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
105
|
-
type_validator = EnumAttributeValidator.new('String', ["
|
|
106
|
+
type_validator = EnumAttributeValidator.new('String', ["1042-S", "1095-B", "1095-C", "1099-DIV", "1099-INT", "1099-K", "1099-MISC", "1099-NEC", "1099-R"])
|
|
106
107
|
return false unless type_validator.valid?(@type)
|
|
107
108
|
true
|
|
108
109
|
end
|
|
@@ -110,7 +111,7 @@ module AvalaraSdk::A1099::V2
|
|
|
110
111
|
# Custom attribute writer method checking allowed values (enum).
|
|
111
112
|
# @param [Object] type Object to be assigned
|
|
112
113
|
def type=(type)
|
|
113
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
114
|
+
validator = EnumAttributeValidator.new('String', ["1042-S", "1095-B", "1095-C", "1099-DIV", "1099-INT", "1099-K", "1099-MISC", "1099-NEC", "1099-R"])
|
|
114
115
|
unless validator.valid?(type)
|
|
115
116
|
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
|
116
117
|
end
|
|
@@ -648,7 +648,7 @@ module AvalaraSdk::A1099::V2
|
|
|
648
648
|
def valid?
|
|
649
649
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
650
650
|
return false if @type.nil?
|
|
651
|
-
type_validator = EnumAttributeValidator.new('String', ["
|
|
651
|
+
type_validator = EnumAttributeValidator.new('String', ["1042-S", "1095-B", "1095-C", "1099-DIV", "1099-INT", "1099-K", "1099-MISC", "1099-NEC", "1099-R"])
|
|
652
652
|
return false unless type_validator.valid?(@type)
|
|
653
653
|
tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
|
654
654
|
return false unless tin_type_validator.valid?(@tin_type)
|
|
@@ -658,7 +658,7 @@ module AvalaraSdk::A1099::V2
|
|
|
658
658
|
# Custom attribute writer method checking allowed values (enum).
|
|
659
659
|
# @param [Object] type Object to be assigned
|
|
660
660
|
def type=(type)
|
|
661
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
661
|
+
validator = EnumAttributeValidator.new('String', ["1042-S", "1095-B", "1095-C", "1099-DIV", "1099-INT", "1099-K", "1099-MISC", "1099-NEC", "1099-R"])
|
|
662
662
|
unless validator.valid?(type)
|
|
663
663
|
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
|
664
664
|
end
|
|
@@ -540,7 +540,7 @@ module AvalaraSdk::A1099::V2
|
|
|
540
540
|
def valid?
|
|
541
541
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
542
542
|
return false if @type.nil?
|
|
543
|
-
type_validator = EnumAttributeValidator.new('String', ["
|
|
543
|
+
type_validator = EnumAttributeValidator.new('String', ["1042-S", "1095-B", "1095-C", "1099-DIV", "1099-INT", "1099-K", "1099-MISC", "1099-NEC", "1099-R"])
|
|
544
544
|
return false unless type_validator.valid?(@type)
|
|
545
545
|
tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
|
546
546
|
return false unless tin_type_validator.valid?(@tin_type)
|
|
@@ -550,7 +550,7 @@ module AvalaraSdk::A1099::V2
|
|
|
550
550
|
# Custom attribute writer method checking allowed values (enum).
|
|
551
551
|
# @param [Object] type Object to be assigned
|
|
552
552
|
def type=(type)
|
|
553
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
553
|
+
validator = EnumAttributeValidator.new('String', ["1042-S", "1095-B", "1095-C", "1099-DIV", "1099-INT", "1099-K", "1099-MISC", "1099-NEC", "1099-R"])
|
|
554
554
|
unless validator.valid?(type)
|
|
555
555
|
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
|
556
556
|
end
|
|
@@ -36,10 +36,10 @@ module AvalaraSdk::A1099::V2
|
|
|
36
36
|
# Net unrealized appreciation in employer's securities
|
|
37
37
|
attr_accessor :net_unrealized_appreciation_in_employer_securities
|
|
38
38
|
|
|
39
|
-
# Distribution code. Available values: - 1: Early distribution, no known exception (in most cases, under age 59½) - 2: Early distribution, exception applies (under age 59½) - 3: Disability - 4: Death - 5: Prohibited transaction - 6: Section 1035 exchange (a tax-free exchange of life insurance, annuity, qualified long-term care insurance, or endowment contracts) - 7: Normal distribution - 8: Excess contributions plus earnings/excess deferrals (and/or earnings) taxable in payment year - 9: Cost of current life insurance protection (premiums paid by a trustee or custodian for current insurance protection) - A: May be eligible for 10-year tax option - B: Designated Roth account distribution - C: Reportable Death Benefits Under Section 6050Y(c) - D: Annuity payments from nonqualified annuity payments and distributions from life insurance contracts that may be subject to tax under section 1411 - E: Distribution under Employee Plans Compliance Resolution System (EPCRS) - F: Charitable gift annuity - G: Direct rollover and rollover contribution - H: Direct rollover of distribution from a designated Roth account to a Roth IRA - J: Early distribution from a Roth IRA (This code may be used with a Code 8 or P) - K: Distribution of IRA Assets Not Having A Readily Available FMV - L: Loans treated as deemed distributions under section 72(p) - M: Qualified Plan Loan Offsets - N: Recharacterized IRA contribution made for year following payment year - P: Excess contributions plus earnings/excess deferrals taxable for year prior to payment year - Q: Qualified distribution from a Roth IRA (Distribution from a Roth IRA when the 5-year holding period has been met, and the recipient has reached 59½, has died, or is disabled) - R: Recharacterized IRA contribution made for year prior to payment year - S: Early distribution from a SIMPLE IRA in first 2 years no known exceptions - T: Roth IRA distribution exception applies because participant has reached 59½, died or is disabled, but it is unknown if the 5-year period has been met - U: Distribution from ESOP under Section 404(k) - W: Charges or payments for purchasing qualified long-term care insurance contracts under combined arrangements
|
|
39
|
+
# Distribution code. Available values: - 1: Early distribution, no known exception (in most cases, under age 59½) - 2: Early distribution, exception applies (under age 59½) - 3: Disability - 4: Death - 5: Prohibited transaction - 6: Section 1035 exchange (a tax-free exchange of life insurance, annuity, qualified long-term care insurance, or endowment contracts) - 7: Normal distribution - 8: Excess contributions plus earnings/excess deferrals (and/or earnings) taxable in payment year - 9: Cost of current life insurance protection (premiums paid by a trustee or custodian for current insurance protection) - A: May be eligible for 10-year tax option - B: Designated Roth account distribution - C: Reportable Death Benefits Under Section 6050Y(c) - D: Annuity payments from nonqualified annuity payments and distributions from life insurance contracts that may be subject to tax under section 1411 - E: Distribution under Employee Plans Compliance Resolution System (EPCRS) - F: Charitable gift annuity - G: Direct rollover and rollover contribution - H: Direct rollover of distribution from a designated Roth account to a Roth IRA - J: Early distribution from a Roth IRA (This code may be used with a Code 8 or P) - K: Distribution of IRA Assets Not Having A Readily Available FMV - L: Loans treated as deemed distributions under section 72(p) - M: Qualified Plan Loan Offsets - N: Recharacterized IRA contribution made for year following payment year - P: Excess contributions plus earnings/excess deferrals taxable for year prior to payment year - Q: Qualified distribution from a Roth IRA (Distribution from a Roth IRA when the 5-year holding period has been met, and the recipient has reached 59½, has died, or is disabled) - R: Recharacterized IRA contribution made for year prior to payment year - S: Early distribution from a SIMPLE IRA in first 2 years no known exceptions - T: Roth IRA distribution exception applies because participant has reached 59½, died or is disabled, but it is unknown if the 5-year period has been met - U: Distribution from ESOP under Section 404(k) - W: Charges or payments for purchasing qualified long-term care insurance contracts under combined arrangements - Y: Qualified charitable distribution (QCD) claimed under section 408(d)(8) (Available for 2025 on)
|
|
40
40
|
attr_accessor :distribution_code
|
|
41
41
|
|
|
42
|
-
# Second distribution code. Must be a valid combination with the first distribution code. See DistributionCode property documentation for code descriptions. Valid combinations based on first distribution code: - 1: _, 8, B, D, K, L, M, P - 2: _, 8, B, D, K, L, M, P - 3: _, D - 4: _, 8, A, B, D, G, H, K, L, M, P - 5: _ - 6: _, W - 7: _, A, B, D, K, L, M - 8: _, 1, 2, 4, B, J, K - 9: _ - A: 4, 7 - B: _, 1, 2, 4, 7, 8, G, L, M, P, U - C: _, D - D: 1, 2, 3, 4, 7, C - E: _ - F: _ - G: _, 4, B, K - H: _, 4 - J: _, 8, P - K: 1, 2, 4, 7, 8, G - L: _, 1, 2, 4, 7, B - M: _, 1, 2, 4, 7, B - N: _ - P: _, 1, 2, 4, B, J - Q: _ - R: _ - S: _ - T: _ - U: _, B - W: _, 6 (_ indicates no second distribution code) (format: firstDistributionCode: availableSecondDistributionCodes)
|
|
42
|
+
# Second distribution code. Must be a valid combination with the first distribution code. See DistributionCode property documentation for code descriptions. Valid combinations based on first distribution code: - 1: _, 8, B, D, K, L, M, P - 2: _, 8, B, D, K, L, M, P - 3: _, D - 4: _, 8, A, B, D, G, H, K, L, M, P - 5: _ - 6: _, W - 7: _, A, B, D, K, L, M - 8: _, 1, 2, 4, B, J, K - 9: _ - A: 4, 7 - B: _, 1, 2, 4, 7, 8, G, L, M, P, U - C: _, D - D: 1, 2, 3, 4, 7, C - E: _ - F: _ - G: _, 4, B, K - H: _, 4 - J: _, 8, P - K: 1, 2, 4, 7, 8, G - L: _, 1, 2, 4, 7, B - M: _, 1, 2, 4, 7, B - N: _ - P: _, 1, 2, 4, B, J - Q: _ - R: _ - S: _ - T: _ - U: _, B - W: _, 6 - Y: 4, 7, K (_ indicates no second distribution code) (format: firstDistributionCode: availableSecondDistributionCodes)
|
|
43
43
|
attr_accessor :second_distribution_code
|
|
44
44
|
|
|
45
45
|
# IRA/SEP/SIMPLE
|
|
@@ -699,12 +699,12 @@ module AvalaraSdk::A1099::V2
|
|
|
699
699
|
# @return true if the model is valid
|
|
700
700
|
def valid?
|
|
701
701
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
702
|
-
distribution_code_validator = EnumAttributeValidator.new('String', ["1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "J", "K", "L", "M", "N", "P", "Q", "R", "S", "T", "U", "W"])
|
|
702
|
+
distribution_code_validator = EnumAttributeValidator.new('String', ["1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "J", "K", "L", "M", "N", "P", "Q", "R", "S", "T", "U", "W", "Y"])
|
|
703
703
|
return false unless distribution_code_validator.valid?(@distribution_code)
|
|
704
704
|
second_distribution_code_validator = EnumAttributeValidator.new('String', ["1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "J", "K", "L", "M", "N", "P", "Q", "R", "S", "T", "U", "W"])
|
|
705
705
|
return false unless second_distribution_code_validator.valid?(@second_distribution_code)
|
|
706
706
|
return false if @type.nil?
|
|
707
|
-
type_validator = EnumAttributeValidator.new('String', ["
|
|
707
|
+
type_validator = EnumAttributeValidator.new('String', ["1042-S", "1095-B", "1095-C", "1099-DIV", "1099-INT", "1099-K", "1099-MISC", "1099-NEC", "1099-R"])
|
|
708
708
|
return false unless type_validator.valid?(@type)
|
|
709
709
|
tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
|
710
710
|
return false unless tin_type_validator.valid?(@tin_type)
|
|
@@ -714,7 +714,7 @@ module AvalaraSdk::A1099::V2
|
|
|
714
714
|
# Custom attribute writer method checking allowed values (enum).
|
|
715
715
|
# @param [Object] distribution_code Object to be assigned
|
|
716
716
|
def distribution_code=(distribution_code)
|
|
717
|
-
validator = EnumAttributeValidator.new('String', ["1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "J", "K", "L", "M", "N", "P", "Q", "R", "S", "T", "U", "W"])
|
|
717
|
+
validator = EnumAttributeValidator.new('String', ["1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "J", "K", "L", "M", "N", "P", "Q", "R", "S", "T", "U", "W", "Y"])
|
|
718
718
|
unless validator.valid?(distribution_code)
|
|
719
719
|
fail ArgumentError, "invalid value for \"distribution_code\", must be one of #{validator.allowable_values}."
|
|
720
720
|
end
|
|
@@ -734,7 +734,7 @@ module AvalaraSdk::A1099::V2
|
|
|
734
734
|
# Custom attribute writer method checking allowed values (enum).
|
|
735
735
|
# @param [Object] type Object to be assigned
|
|
736
736
|
def type=(type)
|
|
737
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
737
|
+
validator = EnumAttributeValidator.new('String', ["1042-S", "1095-B", "1095-C", "1099-DIV", "1099-INT", "1099-K", "1099-MISC", "1099-NEC", "1099-R"])
|
|
738
738
|
unless validator.valid?(type)
|
|
739
739
|
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
|
740
740
|
end
|
|
@@ -26,13 +26,13 @@ module AvalaraSdk::A1099::V2
|
|
|
26
26
|
# Contact phone number (must contain at least 10 digits, max 15 characters). For recipient inquiries.
|
|
27
27
|
attr_accessor :telephone
|
|
28
28
|
|
|
29
|
-
# Tax year for which the forms are being filed (e.g., 2024). Must be within current tax year and current tax year - 4.
|
|
29
|
+
# Tax year for which the forms are being filed (e.g., 2024). Must be within current tax year and current tax year - 4. It's only required on creation, and cannot be modified on update.
|
|
30
30
|
attr_accessor :tax_year
|
|
31
31
|
|
|
32
32
|
# Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes. If there is a transfer agent, use the transfer agent's shipping address.
|
|
33
33
|
attr_accessor :country_code
|
|
34
34
|
|
|
35
|
-
# Contact email address. For recipient inquiries.
|
|
35
|
+
# Contact email address. For recipient inquiries. Phone will be used on communications if you don't specify an email
|
|
36
36
|
attr_accessor :email
|
|
37
37
|
|
|
38
38
|
# Address.
|
|
@@ -171,12 +171,12 @@ module AvalaraSdk::A1099::V2
|
|
|
171
171
|
|
|
172
172
|
if attributes.key?(:'country_code')
|
|
173
173
|
self.country_code = attributes[:'country_code']
|
|
174
|
+
else
|
|
175
|
+
self.country_code = nil
|
|
174
176
|
end
|
|
175
177
|
|
|
176
178
|
if attributes.key?(:'email')
|
|
177
179
|
self.email = attributes[:'email']
|
|
178
|
-
else
|
|
179
|
-
self.email = nil
|
|
180
180
|
end
|
|
181
181
|
|
|
182
182
|
if attributes.key?(:'address')
|
|
@@ -26,13 +26,13 @@ module AvalaraSdk::A1099::V2
|
|
|
26
26
|
# Contact phone number (must contain at least 10 digits, max 15 characters). For recipient inquiries.
|
|
27
27
|
attr_accessor :telephone
|
|
28
28
|
|
|
29
|
-
# Tax year for which the forms are being filed (e.g., 2024). Must be within current tax year and current tax year - 4.
|
|
29
|
+
# Tax year for which the forms are being filed (e.g., 2024). Must be within current tax year and current tax year - 4. It's only required on creation, and cannot be modified on update.
|
|
30
30
|
attr_accessor :tax_year
|
|
31
31
|
|
|
32
32
|
# Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes. If there is a transfer agent, use the transfer agent's shipping address.
|
|
33
33
|
attr_accessor :country_code
|
|
34
34
|
|
|
35
|
-
# Contact email address. For recipient inquiries.
|
|
35
|
+
# Contact email address. For recipient inquiries. Phone will be used on communications if you don't specify an email
|
|
36
36
|
attr_accessor :email
|
|
37
37
|
|
|
38
38
|
# Address.
|
|
@@ -178,12 +178,12 @@ module AvalaraSdk::A1099::V2
|
|
|
178
178
|
|
|
179
179
|
if attributes.key?(:'country_code')
|
|
180
180
|
self.country_code = attributes[:'country_code']
|
|
181
|
+
else
|
|
182
|
+
self.country_code = nil
|
|
181
183
|
end
|
|
182
184
|
|
|
183
185
|
if attributes.key?(:'email')
|
|
184
186
|
self.email = attributes[:'email']
|
|
185
|
-
else
|
|
186
|
-
self.email = nil
|
|
187
187
|
end
|
|
188
188
|
|
|
189
189
|
if attributes.key?(:'address')
|
|
@@ -35,13 +35,13 @@ module AvalaraSdk::A1099::V2
|
|
|
35
35
|
# Contact phone number (must contain at least 10 digits, max 15 characters). For recipient inquiries.
|
|
36
36
|
attr_accessor :telephone
|
|
37
37
|
|
|
38
|
-
# Tax year for which the forms are being filed (e.g., 2024). Must be within current tax year and current tax year - 4.
|
|
38
|
+
# Tax year for which the forms are being filed (e.g., 2024). Must be within current tax year and current tax year - 4. It's only required on creation, and cannot be modified on update.
|
|
39
39
|
attr_accessor :tax_year
|
|
40
40
|
|
|
41
41
|
# Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes. If there is a transfer agent, use the transfer agent's shipping address.
|
|
42
42
|
attr_accessor :country_code
|
|
43
43
|
|
|
44
|
-
# Contact email address. For recipient inquiries.
|
|
44
|
+
# Contact email address. For recipient inquiries. Phone will be used on communications if you don't specify an email
|
|
45
45
|
attr_accessor :email
|
|
46
46
|
|
|
47
47
|
# Address.
|
|
@@ -205,12 +205,12 @@ module AvalaraSdk::A1099::V2
|
|
|
205
205
|
|
|
206
206
|
if attributes.key?(:'country_code')
|
|
207
207
|
self.country_code = attributes[:'country_code']
|
|
208
|
+
else
|
|
209
|
+
self.country_code = nil
|
|
208
210
|
end
|
|
209
211
|
|
|
210
212
|
if attributes.key?(:'email')
|
|
211
213
|
self.email = attributes[:'email']
|
|
212
|
-
else
|
|
213
|
-
self.email = nil
|
|
214
214
|
end
|
|
215
215
|
|
|
216
216
|
if attributes.key?(:'address')
|
|
@@ -17,8 +17,8 @@ module AvalaraSdk::A1099::V2
|
|
|
17
17
|
# US state
|
|
18
18
|
attr_accessor :state
|
|
19
19
|
|
|
20
|
-
# State ID
|
|
21
|
-
attr_accessor :
|
|
20
|
+
# State ID of the entity issuing the form
|
|
21
|
+
attr_accessor :state_id
|
|
22
22
|
|
|
23
23
|
# Amount of state income
|
|
24
24
|
attr_accessor :state_income
|
|
@@ -29,8 +29,8 @@ module AvalaraSdk::A1099::V2
|
|
|
29
29
|
# Locality name
|
|
30
30
|
attr_accessor :locality
|
|
31
31
|
|
|
32
|
-
# Locality ID
|
|
33
|
-
attr_accessor :
|
|
32
|
+
# Locality ID of the entity issuing the form
|
|
33
|
+
attr_accessor :locality_id
|
|
34
34
|
|
|
35
35
|
# Amount of local income
|
|
36
36
|
attr_accessor :local_income
|
|
@@ -40,11 +40,11 @@ module AvalaraSdk::A1099::V2
|
|
|
40
40
|
{
|
|
41
41
|
:'state_tax_withheld' => :'stateTaxWithheld',
|
|
42
42
|
:'state' => :'state',
|
|
43
|
-
:'
|
|
43
|
+
:'state_id' => :'stateId',
|
|
44
44
|
:'state_income' => :'stateIncome',
|
|
45
45
|
:'local_tax_withheld' => :'localTaxWithheld',
|
|
46
46
|
:'locality' => :'locality',
|
|
47
|
-
:'
|
|
47
|
+
:'locality_id' => :'localityId',
|
|
48
48
|
:'local_income' => :'localIncome'
|
|
49
49
|
}
|
|
50
50
|
end
|
|
@@ -59,11 +59,11 @@ module AvalaraSdk::A1099::V2
|
|
|
59
59
|
{
|
|
60
60
|
:'state_tax_withheld' => :'Float',
|
|
61
61
|
:'state' => :'String',
|
|
62
|
-
:'
|
|
62
|
+
:'state_id' => :'String',
|
|
63
63
|
:'state_income' => :'Float',
|
|
64
64
|
:'local_tax_withheld' => :'Float',
|
|
65
65
|
:'locality' => :'String',
|
|
66
|
-
:'
|
|
66
|
+
:'locality_id' => :'String',
|
|
67
67
|
:'local_income' => :'Float'
|
|
68
68
|
}
|
|
69
69
|
end
|
|
@@ -73,11 +73,11 @@ module AvalaraSdk::A1099::V2
|
|
|
73
73
|
Set.new([
|
|
74
74
|
:'state_tax_withheld',
|
|
75
75
|
:'state',
|
|
76
|
-
:'
|
|
76
|
+
:'state_id',
|
|
77
77
|
:'state_income',
|
|
78
78
|
:'local_tax_withheld',
|
|
79
79
|
:'locality',
|
|
80
|
-
:'
|
|
80
|
+
:'locality_id',
|
|
81
81
|
:'local_income'
|
|
82
82
|
])
|
|
83
83
|
end
|
|
@@ -105,8 +105,8 @@ module AvalaraSdk::A1099::V2
|
|
|
105
105
|
self.state = attributes[:'state']
|
|
106
106
|
end
|
|
107
107
|
|
|
108
|
-
if attributes.key?(:'
|
|
109
|
-
self.
|
|
108
|
+
if attributes.key?(:'state_id')
|
|
109
|
+
self.state_id = attributes[:'state_id']
|
|
110
110
|
end
|
|
111
111
|
|
|
112
112
|
if attributes.key?(:'state_income')
|
|
@@ -121,8 +121,8 @@ module AvalaraSdk::A1099::V2
|
|
|
121
121
|
self.locality = attributes[:'locality']
|
|
122
122
|
end
|
|
123
123
|
|
|
124
|
-
if attributes.key?(:'
|
|
125
|
-
self.
|
|
124
|
+
if attributes.key?(:'locality_id')
|
|
125
|
+
self.locality_id = attributes[:'locality_id']
|
|
126
126
|
end
|
|
127
127
|
|
|
128
128
|
if attributes.key?(:'local_income')
|
|
@@ -152,11 +152,11 @@ module AvalaraSdk::A1099::V2
|
|
|
152
152
|
self.class == o.class &&
|
|
153
153
|
state_tax_withheld == o.state_tax_withheld &&
|
|
154
154
|
state == o.state &&
|
|
155
|
-
|
|
155
|
+
state_id == o.state_id &&
|
|
156
156
|
state_income == o.state_income &&
|
|
157
157
|
local_tax_withheld == o.local_tax_withheld &&
|
|
158
158
|
locality == o.locality &&
|
|
159
|
-
|
|
159
|
+
locality_id == o.locality_id &&
|
|
160
160
|
local_income == o.local_income
|
|
161
161
|
end
|
|
162
162
|
|
|
@@ -169,7 +169,7 @@ module AvalaraSdk::A1099::V2
|
|
|
169
169
|
# Calculates hash code according to all attributes.
|
|
170
170
|
# @return [Integer] Hash code
|
|
171
171
|
def hash
|
|
172
|
-
[state_tax_withheld, state,
|
|
172
|
+
[state_tax_withheld, state, state_id, state_income, local_tax_withheld, locality, locality_id, local_income].hash
|
|
173
173
|
end
|
|
174
174
|
|
|
175
175
|
# Builds the object from hash
|
|
@@ -17,11 +17,15 @@ module AvalaraSdk::A1099::V2
|
|
|
17
17
|
# The list of error messages
|
|
18
18
|
attr_accessor :errors
|
|
19
19
|
|
|
20
|
+
# The list of error codes (only present when api_error_codes flag is enabled)
|
|
21
|
+
attr_accessor :error_codes
|
|
22
|
+
|
|
20
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
24
|
def self.attribute_map
|
|
22
25
|
{
|
|
23
26
|
:'field' => :'field',
|
|
24
|
-
:'errors' => :'errors'
|
|
27
|
+
:'errors' => :'errors',
|
|
28
|
+
:'error_codes' => :'errorCodes'
|
|
25
29
|
}
|
|
26
30
|
end
|
|
27
31
|
|
|
@@ -34,7 +38,8 @@ module AvalaraSdk::A1099::V2
|
|
|
34
38
|
def self.openapi_types
|
|
35
39
|
{
|
|
36
40
|
:'field' => :'String',
|
|
37
|
-
:'errors' => :'Array<String>'
|
|
41
|
+
:'errors' => :'Array<String>',
|
|
42
|
+
:'error_codes' => :'Array<String>'
|
|
38
43
|
}
|
|
39
44
|
end
|
|
40
45
|
|
|
@@ -42,7 +47,8 @@ module AvalaraSdk::A1099::V2
|
|
|
42
47
|
def self.openapi_nullable
|
|
43
48
|
Set.new([
|
|
44
49
|
:'field',
|
|
45
|
-
:'errors'
|
|
50
|
+
:'errors',
|
|
51
|
+
:'error_codes'
|
|
46
52
|
])
|
|
47
53
|
end
|
|
48
54
|
|
|
@@ -70,6 +76,12 @@ module AvalaraSdk::A1099::V2
|
|
|
70
76
|
self.errors = value
|
|
71
77
|
end
|
|
72
78
|
end
|
|
79
|
+
|
|
80
|
+
if attributes.key?(:'error_codes')
|
|
81
|
+
if (value = attributes[:'error_codes']).is_a?(Array)
|
|
82
|
+
self.error_codes = value
|
|
83
|
+
end
|
|
84
|
+
end
|
|
73
85
|
end
|
|
74
86
|
|
|
75
87
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -93,7 +105,8 @@ module AvalaraSdk::A1099::V2
|
|
|
93
105
|
return true if self.equal?(o)
|
|
94
106
|
self.class == o.class &&
|
|
95
107
|
field == o.field &&
|
|
96
|
-
errors == o.errors
|
|
108
|
+
errors == o.errors &&
|
|
109
|
+
error_codes == o.error_codes
|
|
97
110
|
end
|
|
98
111
|
|
|
99
112
|
# @see the `==` method
|
|
@@ -105,7 +118,7 @@ module AvalaraSdk::A1099::V2
|
|
|
105
118
|
# Calculates hash code according to all attributes.
|
|
106
119
|
# @return [Integer] Hash code
|
|
107
120
|
def hash
|
|
108
|
-
[field, errors].hash
|
|
121
|
+
[field, errors, error_codes].hash
|
|
109
122
|
end
|
|
110
123
|
|
|
111
124
|
# Builds the object from hash
|
data/lib/avalara_sdk/version.rb
CHANGED