avalara_sdk 25.6.0 → 25.7.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.
Files changed (116) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -3
  3. data/docs/A1099/V2/BulkUpsert1099FormsRequest.md +3 -1
  4. data/docs/A1099/V2/CompaniesW9Api.md +45 -31
  5. data/docs/A1099/V2/CoveredIndividualReference.md +58 -0
  6. data/docs/A1099/V2/CoveredIndividualRequest.md +54 -0
  7. data/docs/A1099/V2/Form1095B.md +86 -0
  8. data/docs/A1099/V2/Form1095BList.md +20 -0
  9. data/docs/A1099/V2/Form1095BListItem.md +74 -0
  10. data/docs/A1099/V2/Form1095BRequest.md +76 -0
  11. data/docs/A1099/V2/Form1099Base.md +8 -8
  12. data/docs/A1099/V2/Form1099DivListItem.md +11 -11
  13. data/docs/A1099/V2/Form1099DivRequest.md +11 -17
  14. data/docs/A1099/V2/Form1099DivResponse.md +88 -0
  15. data/docs/A1099/V2/Form1099K.md +8 -8
  16. data/docs/A1099/V2/Form1099KListItem.md +11 -11
  17. data/docs/A1099/V2/Form1099KRequest.md +11 -17
  18. data/docs/A1099/V2/Form1099List.md +1 -1
  19. data/docs/A1099/V2/Form1099ListDataInner.md +32 -0
  20. data/docs/A1099/V2/Form1099Misc.md +8 -8
  21. data/docs/A1099/V2/Form1099MiscListItem.md +11 -11
  22. data/docs/A1099/V2/Form1099MiscRequest.md +11 -17
  23. data/docs/A1099/V2/Form1099MiscResponse.md +120 -0
  24. data/docs/A1099/V2/Form1099Nec.md +8 -8
  25. data/docs/A1099/V2/Form1099NecListItem.md +11 -11
  26. data/docs/A1099/V2/Form1099NecRequest.md +11 -17
  27. data/docs/A1099/V2/Form1099NecResponse.md +96 -0
  28. data/docs/A1099/V2/Form1099R.md +8 -8
  29. data/docs/A1099/V2/Form1099RListItem.md +11 -11
  30. data/docs/A1099/V2/Form1099RRequest.md +11 -17
  31. data/docs/A1099/V2/FormRequestBase.md +9 -13
  32. data/docs/A1099/V2/FormRequestCsvBase.md +66 -0
  33. data/docs/A1099/V2/FormResponseBase.md +43 -9
  34. data/docs/A1099/V2/FormSingleRequestBase.md +11 -15
  35. data/docs/A1099/V2/Forms1099Api.md +75 -57
  36. data/docs/A1099/V2/FormsW9Api.md +63 -123
  37. data/docs/A1099/V2/Get1099Form200Response.md +55 -0
  38. data/docs/A1099/V2/IncludedBase.md +20 -0
  39. data/docs/A1099/V2/Issuers1099Api.md +45 -31
  40. data/docs/A1099/V2/Jobs1099Api.md +10 -6
  41. data/docs/A1099/V2/StateAndLocalWithholdingResponse.md +32 -0
  42. data/docs/A1099/V2/StateEfileStatusDetail.md +1 -1
  43. data/docs/A1099/V2/StateEfileStatusDetailApp.md +22 -0
  44. data/docs/A1099/V2/StatusDetail.md +20 -0
  45. data/docs/A1099/V2/Update1099Form200Response.md +53 -0
  46. data/docs/A1099/V2/ValidationErrorApp.md +20 -0
  47. data/docs/EInvoicing/V1/DataInputFieldsApi.md +4 -4
  48. data/docs/EInvoicing/V1/DocumentsApi.md +2 -2
  49. data/docs/EInvoicing/V1/MandatesApi.md +4 -4
  50. data/docs/EInvoicing/V1/SubscriptionsApi.md +4 -4
  51. data/docs/EInvoicing/V1/TradingPartnersApi.md +4 -4
  52. data/lib/avalara_sdk/api/A1099/V2/companies_w9_api.rb +103 -43
  53. data/lib/avalara_sdk/api/A1099/V2/forms1099_api.rb +171 -87
  54. data/lib/avalara_sdk/api/A1099/V2/forms_w9_api.rb +135 -176
  55. data/lib/avalara_sdk/api/A1099/V2/issuers1099_api.rb +103 -43
  56. data/lib/avalara_sdk/api/A1099/V2/jobs1099_api.rb +19 -7
  57. data/lib/avalara_sdk/api/EInvoicing/V1/data_input_fields_api.rb +6 -6
  58. data/lib/avalara_sdk/api/EInvoicing/V1/documents_api.rb +4 -4
  59. data/lib/avalara_sdk/api/EInvoicing/V1/interop_api.rb +1 -1
  60. data/lib/avalara_sdk/api/EInvoicing/V1/mandates_api.rb +6 -6
  61. data/lib/avalara_sdk/api/EInvoicing/V1/subscriptions_api.rb +6 -6
  62. data/lib/avalara_sdk/api/EInvoicing/V1/trading_partners_api.rb +7 -7
  63. data/lib/avalara_sdk/models/A1099/V2/bulk_upsert1099_forms_request.rb +1 -0
  64. data/lib/avalara_sdk/models/A1099/V2/covered_individual_reference.rb +403 -0
  65. data/lib/avalara_sdk/models/A1099/V2/covered_individual_request.rb +378 -0
  66. data/lib/avalara_sdk/models/A1099/V2/form1095_b.rb +572 -0
  67. data/lib/avalara_sdk/models/A1099/V2/form1095_b_list.rb +238 -0
  68. data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item.rb +538 -0
  69. data/lib/avalara_sdk/models/A1099/V2/form1095_b_request.rb +559 -0
  70. data/lib/avalara_sdk/models/A1099/V2/form1099_base.rb +29 -29
  71. data/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item.rb +78 -36
  72. data/lib/avalara_sdk/models/A1099/V2/form1099_div_request.rb +80 -53
  73. data/lib/avalara_sdk/models/A1099/V2/form1099_div_response.rb +600 -0
  74. data/lib/avalara_sdk/models/A1099/V2/form1099_k.rb +29 -29
  75. data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item.rb +56 -37
  76. data/lib/avalara_sdk/models/A1099/V2/form1099_k_request.rb +80 -54
  77. data/lib/avalara_sdk/models/A1099/V2/form1099_list.rb +1 -1
  78. data/lib/avalara_sdk/models/A1099/V2/form1099_list_data_inner.rb +20 -68
  79. data/lib/avalara_sdk/models/A1099/V2/form1099_misc.rb +29 -29
  80. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item.rb +78 -36
  81. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_request.rb +80 -53
  82. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_response.rb +744 -0
  83. data/lib/avalara_sdk/models/A1099/V2/form1099_nec.rb +29 -29
  84. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item.rb +78 -36
  85. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_request.rb +80 -53
  86. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_response.rb +636 -0
  87. data/lib/avalara_sdk/models/A1099/V2/form1099_r.rb +29 -29
  88. data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item.rb +56 -36
  89. data/lib/avalara_sdk/models/A1099/V2/form1099_r_request.rb +80 -53
  90. data/lib/avalara_sdk/models/A1099/V2/form_request_base.rb +68 -44
  91. data/lib/avalara_sdk/models/A1099/V2/form_request_csv_base.rb +475 -0
  92. data/lib/avalara_sdk/models/A1099/V2/form_response_base.rb +252 -31
  93. data/lib/avalara_sdk/models/A1099/V2/form_single_request_base.rb +80 -44
  94. data/lib/avalara_sdk/models/A1099/V2/get1099_form200_response.rb +104 -0
  95. data/lib/avalara_sdk/models/A1099/V2/included_base.rb +219 -0
  96. data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding_request.rb +1 -0
  97. data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding_response.rb +274 -0
  98. data/lib/avalara_sdk/models/A1099/V2/state_efile_status_detail_app.rb +231 -0
  99. data/lib/avalara_sdk/models/A1099/V2/status_detail.rb +221 -0
  100. data/lib/avalara_sdk/models/A1099/V2/update1099_form200_response.rb +103 -0
  101. data/lib/avalara_sdk/models/A1099/V2/validation_error_app.rb +229 -0
  102. data/lib/avalara_sdk/version.rb +1 -1
  103. data/lib/avalara_sdk.rb +17 -0
  104. data/spec/integration/a1099_spec.rb +12 -12
  105. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/byebug-11.1.3/gem_make.out +5 -5
  106. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/date-3.4.1/gem_make.out +5 -5
  107. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debase-0.2.9/gem_make.out +5 -5
  108. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debug-1.10.0/gem_make.out +5 -5
  109. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/erb-5.0.1/gem_make.out +5 -5
  110. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/io-console-0.8.0/gem_make.out +5 -5
  111. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.12.2/gem_make.out +5 -5
  112. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/prism-1.4.0/gem_make.out +5 -5
  113. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/psych-5.2.6/gem_make.out +5 -5
  114. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/racc-1.8.1/gem_make.out +5 -5
  115. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.1.7/gem_make.out +5 -5
  116. metadata +36 -2
@@ -87,17 +87,17 @@ module AvalaraSdk::A1099::V2
87
87
 
88
88
  attr_accessor :email
89
89
 
90
- attr_accessor :type_of_tin
90
+ attr_accessor :tin_type
91
91
 
92
92
  attr_accessor :tin
93
93
 
94
- attr_accessor :first_payee_name
94
+ attr_accessor :recipient_name
95
95
 
96
- attr_accessor :second_payee_name
96
+ attr_accessor :recipient_second_name
97
97
 
98
98
  attr_accessor :address
99
99
 
100
- attr_accessor :address_recipient_second
100
+ attr_accessor :address2
101
101
 
102
102
  attr_accessor :city
103
103
 
@@ -158,12 +158,12 @@ module AvalaraSdk::A1099::V2
158
158
  :'address_verification_status' => :'addressVerificationStatus',
159
159
  :'reference_id' => :'referenceId',
160
160
  :'email' => :'email',
161
- :'type_of_tin' => :'typeOfTin',
161
+ :'tin_type' => :'tinType',
162
162
  :'tin' => :'tin',
163
- :'first_payee_name' => :'firstPayeeName',
164
- :'second_payee_name' => :'secondPayeeName',
163
+ :'recipient_name' => :'recipientName',
164
+ :'recipient_second_name' => :'recipientSecondName',
165
165
  :'address' => :'address',
166
- :'address_recipient_second' => :'addressRecipientSecond',
166
+ :'address2' => :'address2',
167
167
  :'city' => :'city',
168
168
  :'state' => :'state',
169
169
  :'zip' => :'zip',
@@ -222,12 +222,12 @@ module AvalaraSdk::A1099::V2
222
222
  :'address_verification_status' => :'Form1099StatusDetail',
223
223
  :'reference_id' => :'String',
224
224
  :'email' => :'String',
225
- :'type_of_tin' => :'String',
225
+ :'tin_type' => :'String',
226
226
  :'tin' => :'String',
227
- :'first_payee_name' => :'String',
228
- :'second_payee_name' => :'String',
227
+ :'recipient_name' => :'String',
228
+ :'recipient_second_name' => :'String',
229
229
  :'address' => :'String',
230
- :'address_recipient_second' => :'String',
230
+ :'address2' => :'String',
231
231
  :'city' => :'String',
232
232
  :'state' => :'String',
233
233
  :'zip' => :'String',
@@ -271,12 +271,12 @@ module AvalaraSdk::A1099::V2
271
271
  :'address_verification_status',
272
272
  :'reference_id',
273
273
  :'email',
274
- :'type_of_tin',
274
+ :'tin_type',
275
275
  :'tin',
276
- :'first_payee_name',
277
- :'second_payee_name',
276
+ :'recipient_name',
277
+ :'recipient_second_name',
278
278
  :'address',
279
- :'address_recipient_second',
279
+ :'address2',
280
280
  :'city',
281
281
  :'state',
282
282
  :'zip',
@@ -463,28 +463,28 @@ module AvalaraSdk::A1099::V2
463
463
  self.email = attributes[:'email']
464
464
  end
465
465
 
466
- if attributes.key?(:'type_of_tin')
467
- self.type_of_tin = attributes[:'type_of_tin']
466
+ if attributes.key?(:'tin_type')
467
+ self.tin_type = attributes[:'tin_type']
468
468
  end
469
469
 
470
470
  if attributes.key?(:'tin')
471
471
  self.tin = attributes[:'tin']
472
472
  end
473
473
 
474
- if attributes.key?(:'first_payee_name')
475
- self.first_payee_name = attributes[:'first_payee_name']
474
+ if attributes.key?(:'recipient_name')
475
+ self.recipient_name = attributes[:'recipient_name']
476
476
  end
477
477
 
478
- if attributes.key?(:'second_payee_name')
479
- self.second_payee_name = attributes[:'second_payee_name']
478
+ if attributes.key?(:'recipient_second_name')
479
+ self.recipient_second_name = attributes[:'recipient_second_name']
480
480
  end
481
481
 
482
482
  if attributes.key?(:'address')
483
483
  self.address = attributes[:'address']
484
484
  end
485
485
 
486
- if attributes.key?(:'address_recipient_second')
487
- self.address_recipient_second = attributes[:'address_recipient_second']
486
+ if attributes.key?(:'address2')
487
+ self.address2 = attributes[:'address2']
488
488
  end
489
489
 
490
490
  if attributes.key?(:'city')
@@ -596,12 +596,12 @@ module AvalaraSdk::A1099::V2
596
596
  address_verification_status == o.address_verification_status &&
597
597
  reference_id == o.reference_id &&
598
598
  email == o.email &&
599
- type_of_tin == o.type_of_tin &&
599
+ tin_type == o.tin_type &&
600
600
  tin == o.tin &&
601
- first_payee_name == o.first_payee_name &&
602
- second_payee_name == o.second_payee_name &&
601
+ recipient_name == o.recipient_name &&
602
+ recipient_second_name == o.recipient_second_name &&
603
603
  address == o.address &&
604
- address_recipient_second == o.address_recipient_second &&
604
+ address2 == o.address2 &&
605
605
  city == o.city &&
606
606
  state == o.state &&
607
607
  zip == o.zip &&
@@ -622,7 +622,7 @@ module AvalaraSdk::A1099::V2
622
622
  # Calculates hash code according to all attributes.
623
623
  # @return [Integer] Hash code
624
624
  def hash
625
- [gross_distributions, taxable_amount, taxable_amount_not_determined, total_distribution_indicator, capital_gain, fed_income_tax_withheld, employee_contributions, net_unrealized_appreciation, distribution_code_required, distribution_code_optional, ira_sep_simple_indicator, total_ira_sep_simple_distribution, other, other_percent, percentage_total_distribution, total_employee_contributions, amount_allocable_to_irr, first_year_designated_roth_contrib, fatca_requirement_indicator, date_of_payment, id, type, issuer_id, issuer_reference_id, issuer_tin, tax_year, federal_efile, federal_efile_status, state_efile, state_efile_status, postal_mail, postal_mail_status, tin_match, tin_match_status, address_verification, address_verification_status, reference_id, email, type_of_tin, tin, first_payee_name, second_payee_name, address, address_recipient_second, city, state, zip, foreign_province, country_code, validation_errors, created_at, updated_at, state_and_local_withholding].hash
625
+ [gross_distributions, taxable_amount, taxable_amount_not_determined, total_distribution_indicator, capital_gain, fed_income_tax_withheld, employee_contributions, net_unrealized_appreciation, distribution_code_required, distribution_code_optional, ira_sep_simple_indicator, total_ira_sep_simple_distribution, other, other_percent, percentage_total_distribution, total_employee_contributions, amount_allocable_to_irr, first_year_designated_roth_contrib, fatca_requirement_indicator, date_of_payment, id, type, issuer_id, issuer_reference_id, issuer_tin, tax_year, federal_efile, federal_efile_status, state_efile, state_efile_status, postal_mail, postal_mail_status, tin_match, tin_match_status, address_verification, address_verification_status, reference_id, email, tin_type, tin, recipient_name, recipient_second_name, address, address2, city, state, zip, foreign_province, country_code, validation_errors, created_at, updated_at, state_and_local_withholding].hash
626
626
  end
627
627
 
628
628
  # Builds the object from hash
@@ -11,8 +11,6 @@ require 'time'
11
11
 
12
12
  module AvalaraSdk::A1099::V2
13
13
  class Form1099RListItem
14
- attr_accessor :state_and_local_withholding
15
-
16
14
  attr_accessor :gross_distribution
17
15
 
18
16
  attr_accessor :taxable_amount
@@ -53,14 +51,14 @@ module AvalaraSdk::A1099::V2
53
51
 
54
52
  attr_accessor :date_of_payment
55
53
 
56
- attr_accessor :issuer_id
57
-
58
54
  attr_accessor :issuer_reference_id
59
55
 
60
56
  attr_accessor :issuer_tin
61
57
 
62
58
  attr_accessor :tax_year
63
59
 
60
+ attr_accessor :issuer_id
61
+
64
62
  attr_accessor :reference_id
65
63
 
66
64
  attr_accessor :recipient_name
@@ -71,9 +69,9 @@ module AvalaraSdk::A1099::V2
71
69
 
72
70
  attr_accessor :recipient_second_name
73
71
 
74
- attr_accessor :street_address
72
+ attr_accessor :address
75
73
 
76
- attr_accessor :street_address_line2
74
+ attr_accessor :address2
77
75
 
78
76
  attr_accessor :city
79
77
 
@@ -101,6 +99,8 @@ module AvalaraSdk::A1099::V2
101
99
 
102
100
  attr_accessor :address_verification
103
101
 
102
+ attr_accessor :state_and_local_withholding
103
+
104
104
  class EnumAttributeValidator
105
105
  attr_reader :datatype
106
106
  attr_reader :allowable_values
@@ -126,7 +126,6 @@ module AvalaraSdk::A1099::V2
126
126
  # Attribute mapping from ruby-style variable name to JSON key.
127
127
  def self.attribute_map
128
128
  {
129
- :'state_and_local_withholding' => :'stateAndLocalWithholding',
130
129
  :'gross_distribution' => :'grossDistribution',
131
130
  :'taxable_amount' => :'taxableAmount',
132
131
  :'taxable_amount_not_determined' => :'taxableAmountNotDetermined',
@@ -147,17 +146,17 @@ module AvalaraSdk::A1099::V2
147
146
  :'first_year_of_designated_roth_contribution' => :'firstYearOfDesignatedRothContribution',
148
147
  :'fatca_filing_requirement' => :'fatcaFilingRequirement',
149
148
  :'date_of_payment' => :'dateOfPayment',
150
- :'issuer_id' => :'issuerId',
151
149
  :'issuer_reference_id' => :'issuerReferenceId',
152
150
  :'issuer_tin' => :'issuerTin',
153
151
  :'tax_year' => :'taxYear',
152
+ :'issuer_id' => :'issuerId',
154
153
  :'reference_id' => :'referenceId',
155
154
  :'recipient_name' => :'recipientName',
156
155
  :'recipient_tin' => :'recipientTin',
157
156
  :'tin_type' => :'tinType',
158
157
  :'recipient_second_name' => :'recipientSecondName',
159
- :'street_address' => :'streetAddress',
160
- :'street_address_line2' => :'streetAddressLine2',
158
+ :'address' => :'address',
159
+ :'address2' => :'address2',
161
160
  :'city' => :'city',
162
161
  :'state' => :'state',
163
162
  :'zip' => :'zip',
@@ -170,7 +169,8 @@ module AvalaraSdk::A1099::V2
170
169
  :'postal_mail' => :'postalMail',
171
170
  :'state_e_file' => :'stateEFile',
172
171
  :'tin_match' => :'tinMatch',
173
- :'address_verification' => :'addressVerification'
172
+ :'address_verification' => :'addressVerification',
173
+ :'state_and_local_withholding' => :'stateAndLocalWithholding'
174
174
  }
175
175
  end
176
176
 
@@ -182,7 +182,6 @@ module AvalaraSdk::A1099::V2
182
182
  # Attribute type mapping.
183
183
  def self.openapi_types
184
184
  {
185
- :'state_and_local_withholding' => :'StateAndLocalWithholding',
186
185
  :'gross_distribution' => :'Float',
187
186
  :'taxable_amount' => :'Float',
188
187
  :'taxable_amount_not_determined' => :'Boolean',
@@ -203,17 +202,17 @@ module AvalaraSdk::A1099::V2
203
202
  :'first_year_of_designated_roth_contribution' => :'Integer',
204
203
  :'fatca_filing_requirement' => :'Boolean',
205
204
  :'date_of_payment' => :'Time',
206
- :'issuer_id' => :'String',
207
205
  :'issuer_reference_id' => :'String',
208
206
  :'issuer_tin' => :'String',
209
207
  :'tax_year' => :'Integer',
208
+ :'issuer_id' => :'String',
210
209
  :'reference_id' => :'String',
211
210
  :'recipient_name' => :'String',
212
211
  :'recipient_tin' => :'String',
213
- :'tin_type' => :'Integer',
212
+ :'tin_type' => :'String',
214
213
  :'recipient_second_name' => :'String',
215
- :'street_address' => :'String',
216
- :'street_address_line2' => :'String',
214
+ :'address' => :'String',
215
+ :'address2' => :'String',
217
216
  :'city' => :'String',
218
217
  :'state' => :'String',
219
218
  :'zip' => :'String',
@@ -226,7 +225,8 @@ module AvalaraSdk::A1099::V2
226
225
  :'postal_mail' => :'Boolean',
227
226
  :'state_e_file' => :'Boolean',
228
227
  :'tin_match' => :'Boolean',
229
- :'address_verification' => :'Boolean'
228
+ :'address_verification' => :'Boolean',
229
+ :'state_and_local_withholding' => :'StateAndLocalWithholdingRequest'
230
230
  }
231
231
  end
232
232
 
@@ -234,13 +234,21 @@ module AvalaraSdk::A1099::V2
234
234
  def self.openapi_nullable
235
235
  Set.new([
236
236
  :'second_distribution_code',
237
+ :'issuer_id',
238
+ :'reference_id',
239
+ :'recipient_name',
240
+ :'address2',
241
+ :'recipient_email',
242
+ :'account_number',
243
+ :'office_code',
244
+ :'recipient_non_us_province',
237
245
  ])
238
246
  end
239
247
 
240
248
  # List of class defined in allOf (OpenAPI v3)
241
249
  def self.openapi_all_of
242
250
  [
243
- :'FormRequestBase'
251
+ :'FormRequestCsvBase'
244
252
  ]
245
253
  end
246
254
 
@@ -259,10 +267,6 @@ module AvalaraSdk::A1099::V2
259
267
  h[k.to_sym] = v
260
268
  }
261
269
 
262
- if attributes.key?(:'state_and_local_withholding')
263
- self.state_and_local_withholding = attributes[:'state_and_local_withholding']
264
- end
265
-
266
270
  if attributes.key?(:'gross_distribution')
267
271
  self.gross_distribution = attributes[:'gross_distribution']
268
272
  end
@@ -343,10 +347,6 @@ module AvalaraSdk::A1099::V2
343
347
  self.date_of_payment = attributes[:'date_of_payment']
344
348
  end
345
349
 
346
- if attributes.key?(:'issuer_id')
347
- self.issuer_id = attributes[:'issuer_id']
348
- end
349
-
350
350
  if attributes.key?(:'issuer_reference_id')
351
351
  self.issuer_reference_id = attributes[:'issuer_reference_id']
352
352
  end
@@ -359,6 +359,10 @@ module AvalaraSdk::A1099::V2
359
359
  self.tax_year = attributes[:'tax_year']
360
360
  end
361
361
 
362
+ if attributes.key?(:'issuer_id')
363
+ self.issuer_id = attributes[:'issuer_id']
364
+ end
365
+
362
366
  if attributes.key?(:'reference_id')
363
367
  self.reference_id = attributes[:'reference_id']
364
368
  end
@@ -379,12 +383,12 @@ module AvalaraSdk::A1099::V2
379
383
  self.recipient_second_name = attributes[:'recipient_second_name']
380
384
  end
381
385
 
382
- if attributes.key?(:'street_address')
383
- self.street_address = attributes[:'street_address']
386
+ if attributes.key?(:'address')
387
+ self.address = attributes[:'address']
384
388
  end
385
389
 
386
- if attributes.key?(:'street_address_line2')
387
- self.street_address_line2 = attributes[:'street_address_line2']
390
+ if attributes.key?(:'address2')
391
+ self.address2 = attributes[:'address2']
388
392
  end
389
393
 
390
394
  if attributes.key?(:'city')
@@ -438,6 +442,10 @@ module AvalaraSdk::A1099::V2
438
442
  if attributes.key?(:'address_verification')
439
443
  self.address_verification = attributes[:'address_verification']
440
444
  end
445
+
446
+ if attributes.key?(:'state_and_local_withholding')
447
+ self.state_and_local_withholding = attributes[:'state_and_local_withholding']
448
+ end
441
449
  end
442
450
 
443
451
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -456,6 +464,8 @@ module AvalaraSdk::A1099::V2
456
464
  return false unless distribution_code_validator.valid?(@distribution_code)
457
465
  second_distribution_code_validator = EnumAttributeValidator.new('String', ["EarlyDistributionNoException", "EarlyDistributionWithException", "Disability", "Death", "ProhibitedTransaction", "Section1035Exchange", "NormalDistribution", "ExcessContributionsCurrentYear", "CurrentLifeInsuranceProtectionCost", "TenYearTaxOption", "DesignatedRothDistribution", "ReportableDeathBenefits", "NonqualifiedAnnuityPayments", "EPCRSDistribution", "CharitableGiftAnnuity", "DirectRollover", "RothAccountToIRADirectRollover", "EarlyRothIRADistribution", "IRAAssetsNoFMV", "LoansDeemedDistributions", "QualifiedPlanLoanOffsets", "RecharacterizedIRANextYear", "ExcessContributionsPreviousYear", "QualifiedRothIRADistribution", "RecharacterizedIRAPreviousYear", "EarlySimpleIRADistribution", "RothIRADistributionException", "ESOPDistribution", "LongTermCareInsurance"])
458
466
  return false unless second_distribution_code_validator.valid?(@second_distribution_code)
467
+ tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
468
+ return false unless tin_type_validator.valid?(@tin_type)
459
469
  true
460
470
  end
461
471
 
@@ -479,12 +489,21 @@ module AvalaraSdk::A1099::V2
479
489
  @second_distribution_code = second_distribution_code
480
490
  end
481
491
 
492
+ # Custom attribute writer method checking allowed values (enum).
493
+ # @param [Object] tin_type Object to be assigned
494
+ def tin_type=(tin_type)
495
+ validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
496
+ unless validator.valid?(tin_type)
497
+ fail ArgumentError, "invalid value for \"tin_type\", must be one of #{validator.allowable_values}."
498
+ end
499
+ @tin_type = tin_type
500
+ end
501
+
482
502
  # Checks equality by comparing each attribute.
483
503
  # @param [Object] Object to be compared
484
504
  def ==(o)
485
505
  return true if self.equal?(o)
486
506
  self.class == o.class &&
487
- state_and_local_withholding == o.state_and_local_withholding &&
488
507
  gross_distribution == o.gross_distribution &&
489
508
  taxable_amount == o.taxable_amount &&
490
509
  taxable_amount_not_determined == o.taxable_amount_not_determined &&
@@ -505,17 +524,17 @@ module AvalaraSdk::A1099::V2
505
524
  first_year_of_designated_roth_contribution == o.first_year_of_designated_roth_contribution &&
506
525
  fatca_filing_requirement == o.fatca_filing_requirement &&
507
526
  date_of_payment == o.date_of_payment &&
508
- issuer_id == o.issuer_id &&
509
527
  issuer_reference_id == o.issuer_reference_id &&
510
528
  issuer_tin == o.issuer_tin &&
511
529
  tax_year == o.tax_year &&
530
+ issuer_id == o.issuer_id &&
512
531
  reference_id == o.reference_id &&
513
532
  recipient_name == o.recipient_name &&
514
533
  recipient_tin == o.recipient_tin &&
515
534
  tin_type == o.tin_type &&
516
535
  recipient_second_name == o.recipient_second_name &&
517
- street_address == o.street_address &&
518
- street_address_line2 == o.street_address_line2 &&
536
+ address == o.address &&
537
+ address2 == o.address2 &&
519
538
  city == o.city &&
520
539
  state == o.state &&
521
540
  zip == o.zip &&
@@ -528,7 +547,8 @@ module AvalaraSdk::A1099::V2
528
547
  postal_mail == o.postal_mail &&
529
548
  state_e_file == o.state_e_file &&
530
549
  tin_match == o.tin_match &&
531
- address_verification == o.address_verification
550
+ address_verification == o.address_verification &&
551
+ state_and_local_withholding == o.state_and_local_withholding
532
552
  end
533
553
 
534
554
  # @see the `==` method
@@ -540,7 +560,7 @@ module AvalaraSdk::A1099::V2
540
560
  # Calculates hash code according to all attributes.
541
561
  # @return [Integer] Hash code
542
562
  def hash
543
- [state_and_local_withholding, gross_distribution, taxable_amount, taxable_amount_not_determined, total_distribution_determined, capital_gain, federal_income_tax_withheld, employee_contributions_or_designated_roth_or_insurance_premiums, net_unrealized_appreciation_in_employer_securities, distribution_code, second_distribution_code, ira_sep_simple, traditional_ira_sep_simple_or_roth_conversion_amount, other_amount, other_percentage, total_distribution_percentage, total_employee_contributions, amount_allocable_to_irr_within5_years, first_year_of_designated_roth_contribution, fatca_filing_requirement, date_of_payment, issuer_id, issuer_reference_id, issuer_tin, tax_year, reference_id, recipient_name, recipient_tin, tin_type, recipient_second_name, street_address, street_address_line2, city, state, zip, recipient_email, account_number, office_code, recipient_non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, address_verification].hash
563
+ [gross_distribution, taxable_amount, taxable_amount_not_determined, total_distribution_determined, capital_gain, federal_income_tax_withheld, employee_contributions_or_designated_roth_or_insurance_premiums, net_unrealized_appreciation_in_employer_securities, distribution_code, second_distribution_code, ira_sep_simple, traditional_ira_sep_simple_or_roth_conversion_amount, other_amount, other_percentage, total_distribution_percentage, total_employee_contributions, amount_allocable_to_irr_within5_years, first_year_of_designated_roth_contribution, fatca_filing_requirement, date_of_payment, issuer_reference_id, issuer_tin, tax_year, issuer_id, reference_id, recipient_name, recipient_tin, tin_type, recipient_second_name, address, address2, city, state, zip, recipient_email, account_number, office_code, recipient_non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, address_verification, state_and_local_withholding].hash
544
564
  end
545
565
 
546
566
  # Builds the object from hash