avalara_sdk 25.8.0 → 25.8.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.
Files changed (185) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +32 -6
  4. data/docs/A1099/V2/BulkUpsert1099FormsRequest.md +4 -0
  5. data/docs/A1099/V2/CompaniesW9Api.md +6 -6
  6. data/docs/A1099/V2/CoveredIndividualRequest.md +26 -26
  7. data/docs/A1099/V2/Create1099Form201Response.md +4 -0
  8. data/docs/A1099/V2/ErrorResponse.md +1 -1
  9. data/docs/A1099/V2/ErrorResponseItem.md +20 -0
  10. data/docs/A1099/V2/Form1042S.md +140 -0
  11. data/docs/A1099/V2/Form1042SListItem.md +12 -8
  12. data/docs/A1099/V2/Form1042SListItemResponse.md +19 -9
  13. data/docs/A1099/V2/Form1042SRequest.md +14 -10
  14. data/docs/A1099/V2/Form1042SResponse.md +10 -6
  15. data/docs/A1099/V2/Form1095B.md +14 -2
  16. data/docs/A1099/V2/Form1095BListItem.md +14 -8
  17. data/docs/A1099/V2/Form1095BListItemResponse.md +20 -8
  18. data/docs/A1099/V2/Form1095BRequest.md +14 -8
  19. data/docs/A1099/V2/Form1095BResponse.md +106 -0
  20. data/docs/A1099/V2/Form1095CList.md +20 -0
  21. data/docs/A1099/V2/Form1095CListItem.md +90 -0
  22. data/docs/A1099/V2/Form1099Base.md +14 -2
  23. data/docs/A1099/V2/Form1099BaseResponse.md +20 -8
  24. data/docs/A1099/V2/Form1099Div.md +130 -0
  25. data/docs/A1099/V2/Form1099DivListItem.md +32 -28
  26. data/docs/A1099/V2/Form1099DivListItemResponse.md +130 -0
  27. data/docs/A1099/V2/Form1099DivRequest.md +32 -28
  28. data/docs/A1099/V2/Form1099DivResponse.md +48 -6
  29. data/docs/A1099/V2/Form1099Int.md +122 -0
  30. data/docs/A1099/V2/Form1099IntList.md +20 -0
  31. data/docs/A1099/V2/Form1099IntListItem.md +100 -0
  32. data/docs/A1099/V2/Form1099IntListItemResponse.md +122 -0
  33. data/docs/A1099/V2/Form1099IntRequest.md +96 -0
  34. data/docs/A1099/V2/Form1099IntResponse.md +120 -0
  35. data/docs/A1099/V2/Form1099K.md +14 -2
  36. data/docs/A1099/V2/Form1099KListItem.md +14 -8
  37. data/docs/A1099/V2/Form1099KListItemResponse.md +20 -8
  38. data/docs/A1099/V2/Form1099KRequest.md +18 -12
  39. data/docs/A1099/V2/Form1099KResponse.md +132 -0
  40. data/docs/A1099/V2/Form1099ListResponseValueInner.md +4 -0
  41. data/docs/A1099/V2/Form1099Misc.md +24 -12
  42. data/docs/A1099/V2/Form1099MiscListItem.md +14 -12
  43. data/docs/A1099/V2/Form1099MiscListItemResponse.md +30 -16
  44. data/docs/A1099/V2/Form1099MiscRequest.md +14 -12
  45. data/docs/A1099/V2/Form1099MiscResponse.md +12 -10
  46. data/docs/A1099/V2/Form1099Nec.md +14 -2
  47. data/docs/A1099/V2/Form1099NecListItem.md +14 -10
  48. data/docs/A1099/V2/Form1099NecListItemResponse.md +20 -8
  49. data/docs/A1099/V2/Form1099NecRequest.md +14 -10
  50. data/docs/A1099/V2/Form1099NecResponse.md +10 -8
  51. data/docs/A1099/V2/Form1099ProccessResult.md +3 -1
  52. data/docs/A1099/V2/Form1099ProccessResultProcessedFormsInner.md +61 -0
  53. data/docs/A1099/V2/Form1099R.md +14 -4
  54. data/docs/A1099/V2/Form1099RListItem.md +12 -8
  55. data/docs/A1099/V2/Form1099RListItemResponse.md +20 -10
  56. data/docs/A1099/V2/Form1099RRequest.md +12 -8
  57. data/docs/A1099/V2/Form1099RResponse.md +132 -0
  58. data/docs/A1099/V2/FormRequestBase.md +14 -8
  59. data/docs/A1099/V2/FormRequestListItemBase.md +14 -8
  60. data/docs/A1099/V2/FormResponseBase.md +10 -6
  61. data/docs/A1099/V2/FormSingleRequestBase.md +14 -8
  62. data/docs/A1099/V2/Forms1099Api.md +11 -11
  63. data/docs/A1099/V2/FormsW9Api.md +21 -19
  64. data/docs/A1099/V2/Get1099Form200Response.md +4 -0
  65. data/docs/A1099/V2/ICreateForm1099Request.md +2 -0
  66. data/docs/A1099/V2/IUpdateForm1099Request.md +2 -0
  67. data/docs/A1099/V2/IrsResponse.md +20 -0
  68. data/docs/A1099/V2/Issuers1099Api.md +6 -6
  69. data/docs/A1099/V2/Jobs1099Api.md +1 -1
  70. data/docs/A1099/V2/OfferAndCoverageRequest.md +26 -0
  71. data/docs/A1099/V2/PaginatedQueryResultModelCompanyResponse.md +1 -1
  72. data/docs/A1099/V2/PaginatedQueryResultModelIssuerResponse.md +1 -1
  73. data/docs/A1099/V2/PaginatedQueryResultModelW9FormBaseResponse.md +22 -0
  74. data/docs/A1099/V2/TinMatchStatusResponse.md +22 -0
  75. data/docs/A1099/V2/Update1099Form200Response.md +8 -0
  76. data/docs/A1099/V2/W4FormResponse.md +1 -29
  77. data/docs/A1099/V2/W8BenEFormResponse.md +1 -29
  78. data/docs/A1099/V2/W8BenFormResponse.md +1 -29
  79. data/docs/A1099/V2/W8ImyFormResponse.md +1 -29
  80. data/docs/A1099/V2/W9FormBaseResponse.md +3 -3
  81. data/docs/A1099/V2/W9FormResponse.md +2 -28
  82. data/lib/avalara_sdk/api/A1099/V2/companies_w9_api.rb +1 -1
  83. data/lib/avalara_sdk/api/A1099/V2/forms1099_api.rb +3 -3
  84. data/lib/avalara_sdk/api/A1099/V2/forms_w9_api.rb +30 -14
  85. data/lib/avalara_sdk/api/A1099/V2/issuers1099_api.rb +1 -1
  86. data/lib/avalara_sdk/api/A1099/V2/jobs1099_api.rb +1 -1
  87. data/lib/avalara_sdk/api/EInvoicing/V1/data_input_fields_api.rb +1 -1
  88. data/lib/avalara_sdk/api/EInvoicing/V1/documents_api.rb +1 -1
  89. data/lib/avalara_sdk/api/EInvoicing/V1/interop_api.rb +1 -1
  90. data/lib/avalara_sdk/api/EInvoicing/V1/mandates_api.rb +1 -1
  91. data/lib/avalara_sdk/api/EInvoicing/V1/subscriptions_api.rb +1 -1
  92. data/lib/avalara_sdk/api/EInvoicing/V1/tax_identifiers_api.rb +1 -1
  93. data/lib/avalara_sdk/api/EInvoicing/V1/trading_partners_api.rb +1 -1
  94. data/lib/avalara_sdk/models/A1099/V2/bulk_upsert1099_forms_request.rb +2 -0
  95. data/lib/avalara_sdk/models/A1099/V2/covered_individual_reference.rb +1 -1
  96. data/lib/avalara_sdk/models/A1099/V2/covered_individual_request.rb +79 -79
  97. data/lib/avalara_sdk/models/A1099/V2/create1099_form201_response.rb +2 -0
  98. data/lib/avalara_sdk/models/A1099/V2/error_response.rb +1 -1
  99. data/lib/avalara_sdk/models/A1099/V2/error_response_item.rb +221 -0
  100. data/lib/avalara_sdk/models/A1099/V2/form1042_s.rb +824 -0
  101. data/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item.rb +44 -119
  102. data/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item_response.rb +67 -12
  103. data/lib/avalara_sdk/models/A1099/V2/form1042_s_request.rb +55 -132
  104. data/lib/avalara_sdk/models/A1099/V2/form1042_s_response.rb +43 -24
  105. data/lib/avalara_sdk/models/A1099/V2/form1095_b.rb +68 -9
  106. data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item.rb +54 -119
  107. data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item_response.rb +77 -12
  108. data/lib/avalara_sdk/models/A1099/V2/form1095_b_request.rb +56 -121
  109. data/lib/avalara_sdk/models/A1099/V2/form1095_b_response.rb +709 -0
  110. data/lib/avalara_sdk/models/A1099/V2/form1095_c_list.rb +238 -0
  111. data/lib/avalara_sdk/models/A1099/V2/form1095_c_list_item.rb +662 -0
  112. data/lib/avalara_sdk/models/A1099/V2/form1099_base.rb +68 -9
  113. data/lib/avalara_sdk/models/A1099/V2/form1099_base_response.rb +77 -12
  114. data/lib/avalara_sdk/models/A1099/V2/form1099_div.rb +781 -0
  115. data/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item.rb +93 -147
  116. data/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item_response.rb +931 -0
  117. data/lib/avalara_sdk/models/A1099/V2/form1099_div_request.rb +93 -149
  118. data/lib/avalara_sdk/models/A1099/V2/form1099_div_response.rb +214 -24
  119. data/lib/avalara_sdk/models/A1099/V2/form1099_int.rb +741 -0
  120. data/lib/avalara_sdk/models/A1099/V2/form1099_int_list.rb +238 -0
  121. data/lib/avalara_sdk/models/A1099/V2/form1099_int_list_item.rb +702 -0
  122. data/lib/avalara_sdk/models/A1099/V2/form1099_int_list_item_response.rb +887 -0
  123. data/lib/avalara_sdk/models/A1099/V2/form1099_int_request.rb +684 -0
  124. data/lib/avalara_sdk/models/A1099/V2/form1099_int_response.rb +773 -0
  125. data/lib/avalara_sdk/models/A1099/V2/form1099_k.rb +68 -9
  126. data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item.rb +56 -119
  127. data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item_response.rb +77 -12
  128. data/lib/avalara_sdk/models/A1099/V2/form1099_k_request.rb +82 -123
  129. data/lib/avalara_sdk/models/A1099/V2/form1099_k_response.rb +839 -0
  130. data/lib/avalara_sdk/models/A1099/V2/form1099_list_response_value_inner.rb +2 -0
  131. data/lib/avalara_sdk/models/A1099/V2/form1099_misc.rb +106 -47
  132. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item.rb +52 -135
  133. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item_response.rb +116 -40
  134. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_request.rb +52 -137
  135. data/lib/avalara_sdk/models/A1099/V2/form1099_misc_response.rb +49 -39
  136. data/lib/avalara_sdk/models/A1099/V2/form1099_nec.rb +68 -9
  137. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item.rb +56 -129
  138. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item_response.rb +77 -12
  139. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_request.rb +56 -131
  140. data/lib/avalara_sdk/models/A1099/V2/form1099_nec_response.rb +43 -33
  141. data/lib/avalara_sdk/models/A1099/V2/form1099_proccess_result.rb +22 -4
  142. data/lib/avalara_sdk/models/A1099/V2/form1099_proccess_result_processed_forms_inner.rb +107 -0
  143. data/lib/avalara_sdk/models/A1099/V2/form1099_r.rb +68 -19
  144. data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item.rb +46 -119
  145. data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item_response.rb +77 -23
  146. data/lib/avalara_sdk/models/A1099/V2/form1099_r_request.rb +46 -121
  147. data/lib/avalara_sdk/models/A1099/V2/form1099_r_response.rb +839 -0
  148. data/lib/avalara_sdk/models/A1099/V2/form1099_status_detail.rb +1 -1
  149. data/lib/avalara_sdk/models/A1099/V2/form_request_base.rb +54 -119
  150. data/lib/avalara_sdk/models/A1099/V2/form_request_list_item_base.rb +56 -119
  151. data/lib/avalara_sdk/models/A1099/V2/form_response_base.rb +43 -24
  152. data/lib/avalara_sdk/models/A1099/V2/form_single_request_base.rb +56 -121
  153. data/lib/avalara_sdk/models/A1099/V2/get1099_form200_response.rb +2 -0
  154. data/lib/avalara_sdk/models/A1099/V2/i_create_form1099_request.rb +1 -0
  155. data/lib/avalara_sdk/models/A1099/V2/i_update_form1099_request.rb +1 -0
  156. data/lib/avalara_sdk/models/A1099/V2/included_base.rb +1 -1
  157. data/lib/avalara_sdk/models/A1099/V2/irs_response.rb +221 -0
  158. data/lib/avalara_sdk/models/A1099/V2/issuer_command.rb +1 -0
  159. data/lib/avalara_sdk/models/A1099/V2/offer_and_coverage_request.rb +256 -0
  160. data/lib/avalara_sdk/models/A1099/V2/paginated_query_result_model_w9_form_base_response.rb +234 -0
  161. data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding.rb +1 -1
  162. data/lib/avalara_sdk/models/A1099/V2/state_efile_status_detail.rb +1 -1
  163. data/lib/avalara_sdk/models/A1099/V2/tin_match_status_response.rb +267 -0
  164. data/lib/avalara_sdk/models/A1099/V2/update1099_form200_response.rb +4 -0
  165. data/lib/avalara_sdk/models/A1099/V2/validation_error.rb +1 -1
  166. data/lib/avalara_sdk/models/A1099/V2/w4_form_response.rb +15 -157
  167. data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_response.rb +14 -156
  168. data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_response.rb +15 -157
  169. data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_response.rb +15 -157
  170. data/lib/avalara_sdk/models/A1099/V2/w9_form_base_response.rb +19 -14
  171. data/lib/avalara_sdk/models/A1099/V2/w9_form_response.rb +18 -150
  172. data/lib/avalara_sdk/version.rb +1 -1
  173. data/lib/avalara_sdk.rb +21 -1
  174. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/byebug-11.1.3/gem_make.out +5 -5
  175. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/date-3.4.1/gem_make.out +5 -5
  176. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debase-0.2.9/gem_make.out +5 -5
  177. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debug-1.10.0/gem_make.out +5 -5
  178. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/erb-5.0.1/gem_make.out +5 -5
  179. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/io-console-0.8.0/gem_make.out +5 -5
  180. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.12.2/gem_make.out +5 -5
  181. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/prism-1.4.0/gem_make.out +5 -5
  182. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/psych-5.2.6/gem_make.out +5 -5
  183. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/racc-1.8.1/gem_make.out +5 -5
  184. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.1.7/gem_make.out +5 -5
  185. metadata +42 -2
@@ -12,9 +12,6 @@ require 'time'
12
12
  module AvalaraSdk::A1099::V2
13
13
  # 1099-NEC - Nonemployee compensation
14
14
  class Form1099NecListItem
15
- # Second TIN notice
16
- attr_accessor :second_tin_notice
17
-
18
15
  # Nonemployee compensation
19
16
  attr_accessor :nonemployee_compensation
20
17
 
@@ -67,7 +64,7 @@ module AvalaraSdk::A1099::V2
67
64
  attr_accessor :zip
68
65
 
69
66
  # Recipient email address
70
- attr_accessor :recipient_email
67
+ attr_accessor :email
71
68
 
72
69
  # Account number
73
70
  attr_accessor :account_number
@@ -76,7 +73,7 @@ module AvalaraSdk::A1099::V2
76
73
  attr_accessor :office_code
77
74
 
78
75
  # Foreign province
79
- attr_accessor :recipient_non_us_province
76
+ attr_accessor :non_us_province
80
77
 
81
78
  # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes
82
79
  attr_accessor :country_code
@@ -93,6 +90,15 @@ module AvalaraSdk::A1099::V2
93
90
  # Boolean indicating that TIN Matching should be scheduled for this form
94
91
  attr_accessor :tin_match
95
92
 
93
+ # Indicates whether the recipient has no TIN
94
+ attr_accessor :no_tin
95
+
96
+ # Second TIN notice in three years
97
+ attr_accessor :second_tin_notice
98
+
99
+ # Fatca filing requirement
100
+ attr_accessor :fatca_filing_requirement
101
+
96
102
  # Boolean indicating that address verification should be scheduled for this form
97
103
  attr_accessor :address_verification
98
104
 
@@ -124,7 +130,6 @@ module AvalaraSdk::A1099::V2
124
130
  # Attribute mapping from ruby-style variable name to JSON key.
125
131
  def self.attribute_map
126
132
  {
127
- :'second_tin_notice' => :'secondTinNotice',
128
133
  :'nonemployee_compensation' => :'nonemployeeCompensation',
129
134
  :'direct_sales_indicator' => :'directSalesIndicator',
130
135
  :'federal_income_tax_withheld' => :'federalIncomeTaxWithheld',
@@ -142,15 +147,18 @@ module AvalaraSdk::A1099::V2
142
147
  :'city' => :'city',
143
148
  :'state' => :'state',
144
149
  :'zip' => :'zip',
145
- :'recipient_email' => :'recipientEmail',
150
+ :'email' => :'email',
146
151
  :'account_number' => :'accountNumber',
147
152
  :'office_code' => :'officeCode',
148
- :'recipient_non_us_province' => :'recipientNonUsProvince',
153
+ :'non_us_province' => :'nonUsProvince',
149
154
  :'country_code' => :'countryCode',
150
155
  :'federal_e_file' => :'federalEFile',
151
156
  :'postal_mail' => :'postalMail',
152
157
  :'state_e_file' => :'stateEFile',
153
158
  :'tin_match' => :'tinMatch',
159
+ :'no_tin' => :'noTin',
160
+ :'second_tin_notice' => :'secondTinNotice',
161
+ :'fatca_filing_requirement' => :'fatcaFilingRequirement',
154
162
  :'address_verification' => :'addressVerification',
155
163
  :'state_and_local_withholding' => :'stateAndLocalWithholding'
156
164
  }
@@ -164,7 +172,6 @@ module AvalaraSdk::A1099::V2
164
172
  # Attribute type mapping.
165
173
  def self.openapi_types
166
174
  {
167
- :'second_tin_notice' => :'Boolean',
168
175
  :'nonemployee_compensation' => :'Float',
169
176
  :'direct_sales_indicator' => :'Boolean',
170
177
  :'federal_income_tax_withheld' => :'Float',
@@ -182,15 +189,18 @@ module AvalaraSdk::A1099::V2
182
189
  :'city' => :'String',
183
190
  :'state' => :'String',
184
191
  :'zip' => :'String',
185
- :'recipient_email' => :'String',
192
+ :'email' => :'String',
186
193
  :'account_number' => :'String',
187
194
  :'office_code' => :'String',
188
- :'recipient_non_us_province' => :'String',
195
+ :'non_us_province' => :'String',
189
196
  :'country_code' => :'String',
190
197
  :'federal_e_file' => :'Boolean',
191
198
  :'postal_mail' => :'Boolean',
192
199
  :'state_e_file' => :'Boolean',
193
200
  :'tin_match' => :'Boolean',
201
+ :'no_tin' => :'Boolean',
202
+ :'second_tin_notice' => :'Boolean',
203
+ :'fatca_filing_requirement' => :'Boolean',
194
204
  :'address_verification' => :'Boolean',
195
205
  :'state_and_local_withholding' => :'StateAndLocalWithholdingRequest'
196
206
  }
@@ -199,14 +209,25 @@ module AvalaraSdk::A1099::V2
199
209
  # List of attributes with nullable: true
200
210
  def self.openapi_nullable
201
211
  Set.new([
212
+ :'issuer_reference_id',
213
+ :'issuer_tin',
202
214
  :'issuer_id',
203
215
  :'reference_id',
216
+ :'recipient_tin',
217
+ :'recipient_name',
204
218
  :'recipient_second_name',
219
+ :'address',
205
220
  :'address2',
206
- :'recipient_email',
221
+ :'city',
222
+ :'state',
223
+ :'zip',
224
+ :'email',
207
225
  :'account_number',
208
226
  :'office_code',
209
- :'recipient_non_us_province',
227
+ :'non_us_province',
228
+ :'country_code',
229
+ :'second_tin_notice',
230
+ :'state_and_local_withholding'
210
231
  ])
211
232
  end
212
233
 
@@ -232,10 +253,6 @@ module AvalaraSdk::A1099::V2
232
253
  h[k.to_sym] = v
233
254
  }
234
255
 
235
- if attributes.key?(:'second_tin_notice')
236
- self.second_tin_notice = attributes[:'second_tin_notice']
237
- end
238
-
239
256
  if attributes.key?(:'nonemployee_compensation')
240
257
  self.nonemployee_compensation = attributes[:'nonemployee_compensation']
241
258
  else
@@ -278,8 +295,6 @@ module AvalaraSdk::A1099::V2
278
295
 
279
296
  if attributes.key?(:'recipient_name')
280
297
  self.recipient_name = attributes[:'recipient_name']
281
- else
282
- self.recipient_name = nil
283
298
  end
284
299
 
285
300
  if attributes.key?(:'tin_type')
@@ -292,8 +307,6 @@ module AvalaraSdk::A1099::V2
292
307
 
293
308
  if attributes.key?(:'address')
294
309
  self.address = attributes[:'address']
295
- else
296
- self.address = nil
297
310
  end
298
311
 
299
312
  if attributes.key?(:'address2')
@@ -302,8 +315,6 @@ module AvalaraSdk::A1099::V2
302
315
 
303
316
  if attributes.key?(:'city')
304
317
  self.city = attributes[:'city']
305
- else
306
- self.city = nil
307
318
  end
308
319
 
309
320
  if attributes.key?(:'state')
@@ -314,8 +325,8 @@ module AvalaraSdk::A1099::V2
314
325
  self.zip = attributes[:'zip']
315
326
  end
316
327
 
317
- if attributes.key?(:'recipient_email')
318
- self.recipient_email = attributes[:'recipient_email']
328
+ if attributes.key?(:'email')
329
+ self.email = attributes[:'email']
319
330
  end
320
331
 
321
332
  if attributes.key?(:'account_number')
@@ -326,14 +337,12 @@ module AvalaraSdk::A1099::V2
326
337
  self.office_code = attributes[:'office_code']
327
338
  end
328
339
 
329
- if attributes.key?(:'recipient_non_us_province')
330
- self.recipient_non_us_province = attributes[:'recipient_non_us_province']
340
+ if attributes.key?(:'non_us_province')
341
+ self.non_us_province = attributes[:'non_us_province']
331
342
  end
332
343
 
333
344
  if attributes.key?(:'country_code')
334
345
  self.country_code = attributes[:'country_code']
335
- else
336
- self.country_code = nil
337
346
  end
338
347
 
339
348
  if attributes.key?(:'federal_e_file')
@@ -352,6 +361,18 @@ module AvalaraSdk::A1099::V2
352
361
  self.tin_match = attributes[:'tin_match']
353
362
  end
354
363
 
364
+ if attributes.key?(:'no_tin')
365
+ self.no_tin = attributes[:'no_tin']
366
+ end
367
+
368
+ if attributes.key?(:'second_tin_notice')
369
+ self.second_tin_notice = attributes[:'second_tin_notice']
370
+ end
371
+
372
+ if attributes.key?(:'fatca_filing_requirement')
373
+ self.fatca_filing_requirement = attributes[:'fatca_filing_requirement']
374
+ end
375
+
355
376
  if attributes.key?(:'address_verification')
356
377
  self.address_verification = attributes[:'address_verification']
357
378
  end
@@ -374,38 +395,6 @@ module AvalaraSdk::A1099::V2
374
395
  invalid_properties.push('invalid value for "tax_year", tax_year cannot be nil.')
375
396
  end
376
397
 
377
- if @recipient_name.nil?
378
- invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.')
379
- end
380
-
381
- if @recipient_name.to_s.length < 1
382
- invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.')
383
- end
384
-
385
- if @address.nil?
386
- invalid_properties.push('invalid value for "address", address cannot be nil.')
387
- end
388
-
389
- if @address.to_s.length < 1
390
- invalid_properties.push('invalid value for "address", the character length must be great than or equal to 1.')
391
- end
392
-
393
- if @city.nil?
394
- invalid_properties.push('invalid value for "city", city cannot be nil.')
395
- end
396
-
397
- if @city.to_s.length < 1
398
- invalid_properties.push('invalid value for "city", the character length must be great than or equal to 1.')
399
- end
400
-
401
- if @country_code.nil?
402
- invalid_properties.push('invalid value for "country_code", country_code cannot be nil.')
403
- end
404
-
405
- if @country_code.to_s.length < 1
406
- invalid_properties.push('invalid value for "country_code", the character length must be great than or equal to 1.')
407
- end
408
-
409
398
  invalid_properties
410
399
  end
411
400
 
@@ -415,33 +404,11 @@ module AvalaraSdk::A1099::V2
415
404
  warn '[DEPRECATED] the `valid?` method is obsolete'
416
405
  return false if @nonemployee_compensation.nil?
417
406
  return false if @tax_year.nil?
418
- return false if @recipient_name.nil?
419
- return false if @recipient_name.to_s.length < 1
420
407
  tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
421
408
  return false unless tin_type_validator.valid?(@tin_type)
422
- return false if @address.nil?
423
- return false if @address.to_s.length < 1
424
- return false if @city.nil?
425
- return false if @city.to_s.length < 1
426
- return false if @country_code.nil?
427
- return false if @country_code.to_s.length < 1
428
409
  true
429
410
  end
430
411
 
431
- # Custom attribute writer method with validation
432
- # @param [Object] recipient_name Value to be assigned
433
- def recipient_name=(recipient_name)
434
- if recipient_name.nil?
435
- fail ArgumentError, 'recipient_name cannot be nil'
436
- end
437
-
438
- if recipient_name.to_s.length < 1
439
- fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.'
440
- end
441
-
442
- @recipient_name = recipient_name
443
- end
444
-
445
412
  # Custom attribute writer method checking allowed values (enum).
446
413
  # @param [Object] tin_type Object to be assigned
447
414
  def tin_type=(tin_type)
@@ -452,54 +419,11 @@ module AvalaraSdk::A1099::V2
452
419
  @tin_type = tin_type
453
420
  end
454
421
 
455
- # Custom attribute writer method with validation
456
- # @param [Object] address Value to be assigned
457
- def address=(address)
458
- if address.nil?
459
- fail ArgumentError, 'address cannot be nil'
460
- end
461
-
462
- if address.to_s.length < 1
463
- fail ArgumentError, 'invalid value for "address", the character length must be great than or equal to 1.'
464
- end
465
-
466
- @address = address
467
- end
468
-
469
- # Custom attribute writer method with validation
470
- # @param [Object] city Value to be assigned
471
- def city=(city)
472
- if city.nil?
473
- fail ArgumentError, 'city cannot be nil'
474
- end
475
-
476
- if city.to_s.length < 1
477
- fail ArgumentError, 'invalid value for "city", the character length must be great than or equal to 1.'
478
- end
479
-
480
- @city = city
481
- end
482
-
483
- # Custom attribute writer method with validation
484
- # @param [Object] country_code Value to be assigned
485
- def country_code=(country_code)
486
- if country_code.nil?
487
- fail ArgumentError, 'country_code cannot be nil'
488
- end
489
-
490
- if country_code.to_s.length < 1
491
- fail ArgumentError, 'invalid value for "country_code", the character length must be great than or equal to 1.'
492
- end
493
-
494
- @country_code = country_code
495
- end
496
-
497
422
  # Checks equality by comparing each attribute.
498
423
  # @param [Object] Object to be compared
499
424
  def ==(o)
500
425
  return true if self.equal?(o)
501
426
  self.class == o.class &&
502
- second_tin_notice == o.second_tin_notice &&
503
427
  nonemployee_compensation == o.nonemployee_compensation &&
504
428
  direct_sales_indicator == o.direct_sales_indicator &&
505
429
  federal_income_tax_withheld == o.federal_income_tax_withheld &&
@@ -517,15 +441,18 @@ module AvalaraSdk::A1099::V2
517
441
  city == o.city &&
518
442
  state == o.state &&
519
443
  zip == o.zip &&
520
- recipient_email == o.recipient_email &&
444
+ email == o.email &&
521
445
  account_number == o.account_number &&
522
446
  office_code == o.office_code &&
523
- recipient_non_us_province == o.recipient_non_us_province &&
447
+ non_us_province == o.non_us_province &&
524
448
  country_code == o.country_code &&
525
449
  federal_e_file == o.federal_e_file &&
526
450
  postal_mail == o.postal_mail &&
527
451
  state_e_file == o.state_e_file &&
528
452
  tin_match == o.tin_match &&
453
+ no_tin == o.no_tin &&
454
+ second_tin_notice == o.second_tin_notice &&
455
+ fatca_filing_requirement == o.fatca_filing_requirement &&
529
456
  address_verification == o.address_verification &&
530
457
  state_and_local_withholding == o.state_and_local_withholding
531
458
  end
@@ -539,7 +466,7 @@ module AvalaraSdk::A1099::V2
539
466
  # Calculates hash code according to all attributes.
540
467
  # @return [Integer] Hash code
541
468
  def hash
542
- [second_tin_notice, nonemployee_compensation, direct_sales_indicator, federal_income_tax_withheld, issuer_reference_id, issuer_tin, tax_year, issuer_id, reference_id, recipient_tin, recipient_name, 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
469
+ [nonemployee_compensation, direct_sales_indicator, federal_income_tax_withheld, issuer_reference_id, issuer_tin, tax_year, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, no_tin, second_tin_notice, fatca_filing_requirement, address_verification, state_and_local_withholding].hash
543
470
  end
544
471
 
545
472
  # Builds the object from hash
@@ -68,6 +68,9 @@ module AvalaraSdk::A1099::V2
68
68
  # Address verification status
69
69
  attr_accessor :address_verification_status
70
70
 
71
+ # EDelivery status
72
+ attr_accessor :e_delivery_status
73
+
71
74
  # Reference ID
72
75
  attr_accessor :reference_id
73
76
 
@@ -80,6 +83,12 @@ module AvalaraSdk::A1099::V2
80
83
  # Recipient Tax ID Number
81
84
  attr_accessor :tin
82
85
 
86
+ # Indicates whether the recipient has no TIN
87
+ attr_accessor :no_tin
88
+
89
+ # Second Tin Notice
90
+ attr_accessor :second_tin_notice
91
+
83
92
  # Recipient name
84
93
  attr_accessor :recipient_name
85
94
 
@@ -102,11 +111,20 @@ module AvalaraSdk::A1099::V2
102
111
  attr_accessor :zip
103
112
 
104
113
  # Foreign province
105
- attr_accessor :foreign_province
114
+ attr_accessor :non_us_province
106
115
 
107
116
  # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes
108
117
  attr_accessor :country_code
109
118
 
119
+ # Account Number
120
+ attr_accessor :account_number
121
+
122
+ # Office Code
123
+ attr_accessor :office_code
124
+
125
+ # FATCA filing requirement
126
+ attr_accessor :fatca_filing_requirement
127
+
110
128
  # Validation errors
111
129
  attr_accessor :validation_errors
112
130
 
@@ -140,10 +158,13 @@ module AvalaraSdk::A1099::V2
140
158
  :'tin_match_status' => :'tinMatchStatus',
141
159
  :'address_verification' => :'addressVerification',
142
160
  :'address_verification_status' => :'addressVerificationStatus',
161
+ :'e_delivery_status' => :'eDeliveryStatus',
143
162
  :'reference_id' => :'referenceId',
144
163
  :'email' => :'email',
145
164
  :'tin_type' => :'tinType',
146
165
  :'tin' => :'tin',
166
+ :'no_tin' => :'noTin',
167
+ :'second_tin_notice' => :'secondTinNotice',
147
168
  :'recipient_name' => :'recipientName',
148
169
  :'recipient_second_name' => :'recipientSecondName',
149
170
  :'address' => :'address',
@@ -151,8 +172,11 @@ module AvalaraSdk::A1099::V2
151
172
  :'city' => :'city',
152
173
  :'state' => :'state',
153
174
  :'zip' => :'zip',
154
- :'foreign_province' => :'foreignProvince',
175
+ :'non_us_province' => :'nonUsProvince',
155
176
  :'country_code' => :'countryCode',
177
+ :'account_number' => :'accountNumber',
178
+ :'office_code' => :'officeCode',
179
+ :'fatca_filing_requirement' => :'fatcaFilingRequirement',
156
180
  :'validation_errors' => :'validationErrors',
157
181
  :'created_at' => :'createdAt',
158
182
  :'updated_at' => :'updatedAt',
@@ -178,19 +202,22 @@ module AvalaraSdk::A1099::V2
178
202
  :'issuer_tin' => :'String',
179
203
  :'tax_year' => :'Integer',
180
204
  :'federal_efile' => :'Boolean',
181
- :'federal_efile_status' => :'Form1099StatusDetailResponse',
205
+ :'federal_efile_status' => :'StatusDetail',
182
206
  :'state_efile' => :'Boolean',
183
207
  :'state_efile_status' => :'Array<StateEfileStatusDetailResponse>',
184
208
  :'postal_mail' => :'Boolean',
185
- :'postal_mail_status' => :'Form1099StatusDetailResponse',
209
+ :'postal_mail_status' => :'StatusDetail',
186
210
  :'tin_match' => :'Boolean',
187
- :'tin_match_status' => :'Form1099StatusDetailResponse',
211
+ :'tin_match_status' => :'StatusDetail',
188
212
  :'address_verification' => :'Boolean',
189
- :'address_verification_status' => :'Form1099StatusDetailResponse',
213
+ :'address_verification_status' => :'StatusDetail',
214
+ :'e_delivery_status' => :'StatusDetail',
190
215
  :'reference_id' => :'String',
191
216
  :'email' => :'String',
192
217
  :'tin_type' => :'String',
193
218
  :'tin' => :'String',
219
+ :'no_tin' => :'Boolean',
220
+ :'second_tin_notice' => :'Boolean',
194
221
  :'recipient_name' => :'String',
195
222
  :'recipient_second_name' => :'String',
196
223
  :'address' => :'String',
@@ -198,8 +225,11 @@ module AvalaraSdk::A1099::V2
198
225
  :'city' => :'String',
199
226
  :'state' => :'String',
200
227
  :'zip' => :'String',
201
- :'foreign_province' => :'String',
228
+ :'non_us_province' => :'String',
202
229
  :'country_code' => :'String',
230
+ :'account_number' => :'String',
231
+ :'office_code' => :'String',
232
+ :'fatca_filing_requirement' => :'Boolean',
203
233
  :'validation_errors' => :'Array<ValidationErrorResponse>',
204
234
  :'created_at' => :'Time',
205
235
  :'updated_at' => :'Time',
@@ -218,10 +248,12 @@ module AvalaraSdk::A1099::V2
218
248
  :'postal_mail_status',
219
249
  :'tin_match_status',
220
250
  :'address_verification_status',
251
+ :'e_delivery_status',
221
252
  :'reference_id',
222
253
  :'email',
223
254
  :'tin_type',
224
255
  :'tin',
256
+ :'second_tin_notice',
225
257
  :'recipient_name',
226
258
  :'recipient_second_name',
227
259
  :'address',
@@ -229,8 +261,11 @@ module AvalaraSdk::A1099::V2
229
261
  :'city',
230
262
  :'state',
231
263
  :'zip',
232
- :'foreign_province',
264
+ :'non_us_province',
233
265
  :'country_code',
266
+ :'account_number',
267
+ :'office_code',
268
+ :'fatca_filing_requirement',
234
269
  :'validation_errors',
235
270
  :'state_and_local_withholding'
236
271
  ])
@@ -352,6 +387,10 @@ module AvalaraSdk::A1099::V2
352
387
  self.address_verification_status = attributes[:'address_verification_status']
353
388
  end
354
389
 
390
+ if attributes.key?(:'e_delivery_status')
391
+ self.e_delivery_status = attributes[:'e_delivery_status']
392
+ end
393
+
355
394
  if attributes.key?(:'reference_id')
356
395
  self.reference_id = attributes[:'reference_id']
357
396
  end
@@ -368,6 +407,14 @@ module AvalaraSdk::A1099::V2
368
407
  self.tin = attributes[:'tin']
369
408
  end
370
409
 
410
+ if attributes.key?(:'no_tin')
411
+ self.no_tin = attributes[:'no_tin']
412
+ end
413
+
414
+ if attributes.key?(:'second_tin_notice')
415
+ self.second_tin_notice = attributes[:'second_tin_notice']
416
+ end
417
+
371
418
  if attributes.key?(:'recipient_name')
372
419
  self.recipient_name = attributes[:'recipient_name']
373
420
  end
@@ -396,14 +443,26 @@ module AvalaraSdk::A1099::V2
396
443
  self.zip = attributes[:'zip']
397
444
  end
398
445
 
399
- if attributes.key?(:'foreign_province')
400
- self.foreign_province = attributes[:'foreign_province']
446
+ if attributes.key?(:'non_us_province')
447
+ self.non_us_province = attributes[:'non_us_province']
401
448
  end
402
449
 
403
450
  if attributes.key?(:'country_code')
404
451
  self.country_code = attributes[:'country_code']
405
452
  end
406
453
 
454
+ if attributes.key?(:'account_number')
455
+ self.account_number = attributes[:'account_number']
456
+ end
457
+
458
+ if attributes.key?(:'office_code')
459
+ self.office_code = attributes[:'office_code']
460
+ end
461
+
462
+ if attributes.key?(:'fatca_filing_requirement')
463
+ self.fatca_filing_requirement = attributes[:'fatca_filing_requirement']
464
+ end
465
+
407
466
  if attributes.key?(:'validation_errors')
408
467
  if (value = attributes[:'validation_errors']).is_a?(Array)
409
468
  self.validation_errors = value
@@ -552,10 +611,13 @@ module AvalaraSdk::A1099::V2
552
611
  tin_match_status == o.tin_match_status &&
553
612
  address_verification == o.address_verification &&
554
613
  address_verification_status == o.address_verification_status &&
614
+ e_delivery_status == o.e_delivery_status &&
555
615
  reference_id == o.reference_id &&
556
616
  email == o.email &&
557
617
  tin_type == o.tin_type &&
558
618
  tin == o.tin &&
619
+ no_tin == o.no_tin &&
620
+ second_tin_notice == o.second_tin_notice &&
559
621
  recipient_name == o.recipient_name &&
560
622
  recipient_second_name == o.recipient_second_name &&
561
623
  address == o.address &&
@@ -563,8 +625,11 @@ module AvalaraSdk::A1099::V2
563
625
  city == o.city &&
564
626
  state == o.state &&
565
627
  zip == o.zip &&
566
- foreign_province == o.foreign_province &&
628
+ non_us_province == o.non_us_province &&
567
629
  country_code == o.country_code &&
630
+ account_number == o.account_number &&
631
+ office_code == o.office_code &&
632
+ fatca_filing_requirement == o.fatca_filing_requirement &&
568
633
  validation_errors == o.validation_errors &&
569
634
  created_at == o.created_at &&
570
635
  updated_at == o.updated_at &&
@@ -580,7 +645,7 @@ module AvalaraSdk::A1099::V2
580
645
  # Calculates hash code according to all attributes.
581
646
  # @return [Integer] Hash code
582
647
  def hash
583
- [nonemployee_compensation, federal_income_tax_withheld, direct_sales_indicator, 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
648
+ [nonemployee_compensation, federal_income_tax_withheld, direct_sales_indicator, 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, e_delivery_status, reference_id, email, tin_type, tin, no_tin, second_tin_notice, recipient_name, recipient_second_name, address, address2, city, state, zip, non_us_province, country_code, account_number, office_code, fatca_filing_requirement, validation_errors, created_at, updated_at, state_and_local_withholding].hash
584
649
  end
585
650
 
586
651
  # Builds the object from hash